:root {
    --bg-color: #3fbfff;
    /* Sky Blue */
    --text-color: #ffffff;
    --goose-color: #d95763;
    /* Red Duck/Goose */
    --geese-color: #000000;
    /* Black Duck/Geese */
    --accent-color: #83d313;
    /* Grass Green */
    --wood-color: #9c5a3c;
    /* Wood/Ground Brown */
    --font-main: 'Press Start 2P', cursive;
    --font-secondary: 'Press Start 2P', cursive;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-image: url('./assets/duck_bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    image-rendering: pixelated;
}

#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: 3rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 4px 4px 0px #000000;
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border: 4px solid #ffffff;
}

.divider {
    font-weight: 400;
    color: var(--accent-color);
    font-size: 1.5rem;
    vertical-align: middle;
    margin: 0 0.5rem;
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background-color: #000;
    border: 4px solid #fff;
    padding: 10px 20px;
}

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

.score-label {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.value {
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
}

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;
}

/* Visualizer / Play Button Area */
.visualizer-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 0;
    background: var(--accent-color);
    color: #000;
    border: 4px solid #fff;
    box-shadow: 4px 4px 0px #000;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
    background: #9eff2e;
}

.play-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

.visualizer-ring {
    display: none;
    /* position: absolute;
    border-radius: 0;
    border: 4px solid var(--accent-color);
    width: 100%;
    height: 100%;
    animation: pulse 2s infinite steps(4);
    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: #fff;
}

@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.2rem;
    color: #fff;
    min-height: 1.5em;
    text-align: center;
    text-shadow: 2px 2px 0px #000;
    background: #000;
    padding: 10px;
    border: 2px solid #fff;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Choices */
.choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.choice-btn {
    background: #000;
    border: 4px solid #fff;
    padding: 2rem;
    border-radius: 0;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.1s steps(2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    z-index: 10;
    /* Ensure above dog */
}

.choice-btn .artist-name {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    z-index: 2;
    text-shadow: 2px 2px 0px #000;
}

.choice-btn::before {
    display: none;
}

.choice-btn:hover::before {
    display: none;
}

.choice-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
    background: #333;
}

.choice-btn.goose:hover {
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
    border-color: var(--geese-color);
    color: #fff;
    transform: translate(-2px, -2px);
}

.choice-btn.geese:hover {
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
    border-color: var(--geese-color);
    color: #fff;
    /* Geese is black, so keep text white */
    transform: translate(-2px, -2px);
}

/* 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) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        background-image: url('./assets/duck_bg_mobile.png');
    }

    #app {
        padding: 1rem;
        height: auto;
        min-height: 100vh;
        padding-top: 1.5rem;
    }

    header {
        margin-bottom: 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;
    }

    .score-board {
        gap: 1.75rem;
    }

    .value {
        font-size: 1.4rem;
    }

    .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;
    }

    .game-container {
        gap: 1rem;
    }

    .choices {
        gap: 1rem;
    }

    .choice-btn {
        padding: 1.25rem;
    }

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

/* Feedback States */
/* Feedback States */
.choice-btn.correct {
    background: var(--accent-color);
    color: #000;
    border-color: #fff;
    box-shadow: inset 4px 4px 0px rgba(0, 0, 0, 0.2);
}

.choice-btn.wrong {
    background: var(--goose-color);
    border-color: #fff;
    color: #fff;
    box-shadow: inset 4px 4px 0px rgba(0, 0, 0, 0.2);
}

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;
}

/* Dog Overlay */
/* .dog-overlay {
    position: fixed;
    bottom: 22%;
    left: 15%;
    transform: translateX(-50%) translateY(100%);
    z-index: 5;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dog-overlay.show {
    transform: translateX(-50%) translateY(0);
}

.dog-overlay img {
    width: 180px;
    height: auto;
    image-rendering: pixelated;
}

.dog-overlay.hidden {
    display: none;
} */

/* Prize Container */
.prize-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: bounce 1s infinite;
}

.prize-text {
    font-family: var(--font-main);
    color: #FFD700;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000;
    text-align: center;
}

.prize-container.hidden {
    display: none;
}

.prize-link {
    background: #FFD700;
    /* Gold */
    color: #000;
    font-family: var(--font-main);
    font-size: 0.8rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border: 4px solid #fff;
    box-shadow: 4px 4px 0px #000;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.prize-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
    background: #ffed4a;
}

.prize-link:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}