@font-face {
    font-family: "Orbitron";
    src: url("font/Orbitron-ExtraBold.ttf") format("truetype");
    font-weight: 800;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 18px 16px 35px;
    background: #0b0f19;
    color: #ffffff;
    font-family: "Orbitron", system-ui, sans-serif;
}

button,
input {
    font: inherit;
}

.game {
    width: min(100%, 440px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#score-display {
    position: fixed;
    top: 18px;
    left: 18px;
    padding: 10px 18px;
    border: 2px solid #00f0ff;
    border-radius: 999px;
    background: #0b0f19;
    color: #00f0ff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.card,
.musiccard,
.answercard {
    width: 100%;
    border: 2px solid #00f0ff;
    background: #151c2e;
}

.card {
    min-height: 100px;
    margin-top: 42px;
    border-radius: 50px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.card h1 {
    margin: 0;
    color: #ffb703;
    font-size: clamp(52px, 16vw, 82px);
    font-weight: 800;
    line-height: 1;
}

.musiccard {
    min-height: 300px;
    padding: 28px;
    border-radius: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

#audioPlayer {
    display: none;
}

#afspelen {
    width: 132px;
    height: 132px;
    padding: 0;
    border: 3px solid #00f0ff;
    border-radius: 50%;
    background: #111827;
    cursor: pointer;
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

#afspelen:hover {
    transform: scale(1.05);
    border-color: #ffb703;
}

#play-icon {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
}

.audio-controls {
    width: 100%;
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #151c2e;
    border: 2px solid #00f0ff;
    border-radius: 25px;
}

.progress-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

#progress {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    accent-color: #ffb703;
}

#current-time,
#total-time {
    min-width: 34px;
    color: #ffffff;
    font-size: 10px;
    text-align: center;
}

.volume-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#volume-icon {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

#volume {
    width: 160px;
    cursor: pointer;
    accent-color: #00f0ff;
}

.answercard {
    min-height: 310px;
    padding: 28px 24px;
    border-radius: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.answer-header h2 {
    margin: 0;
    font-size: 36px;
}

.categorie {
    margin: 12px 0 22px;
    color: #ffb703;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
}

.input-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.input-container label {
    font-size: 13px;
    letter-spacing: 1px;
}

.input-container input {
    width: 92%;
    min-height: 50px;
    padding: 12px 15px;
    border: 2px solid #00f0ff;
    border-radius: 16px;
    background: #151c2e;
    color: #ffffff;
    font-size: 15px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.input-container input:focus {
    border-color: #ffb703;
}

#check-answer {
    width: 92%;
    min-height: 50px;
    margin-top: 6px;
    border: 2px solid #ffb703;
    border-radius: 16px;
    background: #ffb703;
    color: #0b0f19;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

#check-answer:hover {
    background: #00f0ff;
    border-color: #00f0ff;
}

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    align-items: center;
    justify-content: center;
}

.popup-overlay.show {
    display: flex;
}

.antwoord-popup {
    width: min(100%, 390px);
    padding: 34px;
    border: 2px solid #00f0ff;
    border-radius: 35px;
    background: #151c2e;
    text-align: center;
}

#popup-status {
    margin: 0 0 18px;
    font-size: 34px;
}

#popup-status.correct {
    color: #4dff00;
}

#popup-status.incorrect {
    color: #ff5577;
}

#popup-title {
    margin: 0 0 18px;
    color: #ffb703;
    font-size: 24px;
}

.antwoord-popup p {
    margin: 8px 0;
}

#volgende {
    width: 92%;
    min-height: 50px;
    margin-top: 24px;
    border: 2px solid #ffb703;
    border-radius: 16px;
    background: #ffb703;
    color: #0b0f19;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

#volgende:hover {
    background: #00f0ff;
    border-color: #00f0ff;
}

@media (max-width: 560px) {
    body {
        padding: 12px 10px 28px;
    }

    #score-display {
        position: static;
        width: max-content;
        margin: 0 auto 10px;
    }

    .card {
        margin-top: 0;
    }

    .musiccard,
    .answercard {
        border-radius: 38px;
    }

    .musiccard {
        min-height: 280px;
        padding: 22px 18px;
    }

    #afspelen {
        width: 112px;
        height: 112px;
    }

    .audio-controls {
        padding: 14px 12px;
    }

    #current-time,
    #total-time {
        font-size: 9px;
    }

    .answer-header h2 {
        font-size: 30px;
    }

    .categorie {
        font-size: 23px;
    }
}

@media (max-width: 360px) {
    .musiccard {
        padding-inline: 12px;
    }

    #afspelen {
        width: 100px;
        height: 100px;
    }

    #volume {
        width: 110px;
    }
}