:root {
    --bg-color: #0a0a1a;
    --text-color: #ffffff;
    --zedd-color: #00d9ff;
    /* Electric Cyan */
    --zeds-dead-color: #ff00ff;
    /* Neon Magenta */
    --accent-color: #ffff00;
    /* Electric Yellow */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-main: 'Fredoka One', cursive;
    --font-secondary: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    /* Allow scrolling on mobile if needed */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 50% 0%, #1a0033 0%, #0a0a1a 70%);
}

#app {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 3.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(255, 255, 0, 0.3);
    color: var(--text-color);
}

.zedd-text {
    color: var(--zedd-color);
    text-shadow: 0 0 20px var(--zedd-color);
}

.zeds-dead-text {
    color: var(--zeds-dead-color);
    text-shadow: 0 0 20px var(--zeds-dead-color);
}

.question {
    color: var(--accent-color);
}

.divider {
    font-weight: 300;
    color: #666;
    font-size: 1.5rem;
    vertical-align: middle;
    margin: 0 0.5rem;
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.label {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.value {
    font-size: 1.5rem;
    font-weight: 700;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    /* increase vertical spacing */
}

/* Visualizer / Play Button Area */
.visualizer-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    /* move further down */
    margin-bottom: 1rem;
    /* extra space below */
    border-radius: 50%;
    overflow: visible;
    /* allow ripples to expand beyond container */
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    /* no extra margin, container handles positioning */
}

.play-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.play-btn:active {
    transform: scale(0.95);
}

.visualizer-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    height: 100%;
    animation: pulse 2s infinite;
    opacity: 0;
}

.visualizer-ring:nth-child(1) {
    animation-delay: 0s;
}

.visualizer-ring:nth-child(2) {
    animation-delay: 0.6s;
}

.visualizer-ring:nth-child(3) {
    animation-delay: 1.2s;
}

.playing .visualizer-ring {
    opacity: 1;
    border-color: var(--accent-color);
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.status-message {
    font-family: var(--font-main);
    font-size: 1.5rem;
    color: var(--accent-color);
    min-height: 1.5em;
    text-align: center;
    margin-top: 1rem;
    /* push status message down */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Choices */
.choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
    /* move buttons further down */
}

.choice-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.choice-btn .artist-name {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    z-index: 2;
}

.choice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.choice-btn:hover::before {
    transform: translateX(100%);
}

.choice-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.choice-btn.zedd:hover {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
    border-color: var(--zedd-color);
    transform: translateY(-5px) rotate(-2deg);
}

.choice-btn.zeds-dead:hover {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
    border-color: var(--zeds-dead-color);
    transform: translateY(-5px) rotate(2deg);
}

/* Animations */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px) rotate(-5deg);
    }

    75% {
        transform: translateX(10px) rotate(5deg);
    }
}

.shake {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 0.8s;
}

/* Mobile Layout */
@media (max-width: 600px) {
    #app {
        padding: 1rem;
        padding-top: 3.5rem;
    }

    h1 {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        font-size: 2.25rem;
        line-height: 1.1;
        margin-bottom: 1.25rem;
    }

    .divider {
        font-size: 1.1rem;
        margin: 0;
    }

    header {
        margin-bottom: 3.5rem;
    }

    .score-board {
        gap: 1.75rem;
    }

    .value {
        font-size: 1.4rem;
    }

    .game-container {
        gap: 1rem;
    }

    .visualizer-container {
        width: 120px;
        height: 120px;
        transform: translateY(-3rem);
    }

    .play-btn {
        width: 65px;
        height: 65px;
    }

    .play-btn svg {
        width: 30px;
        height: 30px;
    }

    .status-message {
        font-size: 1.2rem;
    }

    .choices {
        gap: 1rem;
    }

    .choice-btn {
        padding: 1.25rem;
    }

    .choice-btn .artist-name {
        font-size: 1.25rem;
    }
}

/* Feedback States */
.choice-btn.correct {
    background: var(--zedd-color);
    color: #000;
    border-color: var(--zedd-color);
}

.choice-btn.wrong {
    background: #ff3333;
    border-color: #ff3333;
}

footer {
    text-align: center;
    color: #444;
    font-size: 0.8rem;
    margin-top: auto;
}

.hidden-player {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}