:root {
    --bg-color: #0d0914;
    --primary: #9d4edd;
    --secondary: #7b2cbf;
    --black: #000;
    --text: #f8f9fa;
    --border: 1px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 20px;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.back-btn {
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: var(--border) solid var(--primary);
    border-radius: 4px;
    transition: 0.2s;
}
.back-btn:hover {
    background: rgba(123, 44, 191, 0.2);
    color: var(--text);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.game-container {
    display: flex;
    gap: 40px;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.click-area {
    flex: 1;
    background: #110c1b;
    border: var(--border) solid var(--secondary);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(123, 44, 191, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.score-display {
    text-align: center;
    margin-bottom: 40px;
}

#score {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.score-label {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary);
}

.sps-label {
    font-size: 1rem;
    font-weight: 400;
    color: #a9a9a9;
    margin-top: 5px;
}

.unicorn-btn {
    font-size: 8rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.05s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0px 0px 10px rgba(157, 78, 221, 0.5));
}

.unicorn-btn:active {
    transform: scale(0.95);
}

.upgrades-panel {
    width: 400px;
    background: #110c1b;
    border: var(--border) solid var(--secondary);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(123, 44, 191, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upgrades-panel h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: var(--border) solid var(--secondary);
    padding-bottom: 10px;
    color: var(--text);
}

.upgrade-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: var(--border) solid var(--secondary);
    border-radius: 4px;
    padding: 15px;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
    position: relative;
    color: var(--text);
}

.upgrade-btn:hover:not(:disabled) {
    background: rgba(123, 44, 191, 0.15);
    border-color: var(--primary);
}
.upgrade-btn:active:not(:disabled) {
    background: rgba(123, 44, 191, 0.3);
}
.upgrade-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
    color: #555;
    cursor: not-allowed;
}

.upg-info {
    display: flex;
    flex-direction: column;
}

.upg-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.upg-desc {
    font-size: 0.85rem;
    color: #a9a9a9;
}

.upg-cost {
    font-weight: 600;
    font-size: 1.1rem;
}

.upg-count {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--bg-color);
    color: var(--primary);
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid var(--secondary);
}

/* Floating text animation */
.float-text {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    pointer-events: none;
    animation: floatUp 1s forwards ease-out;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-80px) scale(1.2); opacity: 0; }
}

@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
    }
    .upgrades-panel {
        width: 100%;
        box-sizing: border-box;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
}

