:root {
    --bg: #f7f5fb;
    --card: #ffffff;
    --accent: #ff6b81;
    --muted: #6b6b7a
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: linear-gradient(180deg, var(--bg), #fff);
    padding: 2rem;
    color: #222;
    min-height: 100vh
}

.container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto
}

.card {
    background: var(--card);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(20, 20, 50, 0.06)
}

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

.subtitle {
    color: var(--muted)
}

#question-area h2 {
    margin: 0 0 0.75rem
}

#choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem
}

.choice {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fafafa;
    cursor: pointer
}

.choice.selected {
    border-color: var(--accent);
    box-shadow: 0 6px 18px rgba(255, 107, 129, 0.12);
    background: linear-gradient(90deg, #fff, #fffef2)
}

.controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem
}

.card #choices {
    margin-bottom: 1.75rem
}

.controls>.btn {
    flex: 1
}

.controls>.btn.secondary {
    flex: 1
}

.controls>.btn+.btn {
    margin-left: 0.5rem
}

.controls>#restart-btn {
    flex: 0 0 auto;
    margin-left: 0.5rem
}

.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer
}

.btn.secondary {
    background: #eef2ff;
    color: #333
}

footer {
    margin-top: 1rem;
    text-align: center;
    color: var(--muted)
}

.video-wrap {
    margin-top: 1rem;
    position: relative;
    padding-bottom: 56.25%;
    height: 0
}

.video-wrap iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%
}

@media (min-width:600px) {
    #choices {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:599px) {
    body {
        padding: 1rem
    }

    .card {
        padding: 0.9rem
    }

    .btn {
        padding: 0.55rem 0.75rem
    }

    #question-area h2 {
        font-size: 1rem
    }

    #choices {
        gap: 0.4rem
    }

    .controls {
        flex-direction: column
    }

    .controls>.btn {
        width: 100%;
        margin-left: 0
    }

    .controls>#restart-btn {
        margin-top: 0.6rem
    }

    #choices {
        grid-template-columns: 1fr
    }

    .choice {
        padding: 0.7rem
    }

    .surprise-box {
        padding: 0.9rem;
        margin: 0.5rem
    }

    #surprise-text {
        font-size: 1rem
    }

    .video-wrap {
        padding-bottom: 56.25%
    }
}

@media (min-width:900px) {
    .card {
        padding: 1.5rem
    }

    #question-area h2 {
        font-size: 1.25rem
    }

    #surprise-text {
        font-size: 1.25rem
    }
}

.overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 12, 20, 0.5);
    z-index: 60
}

.overlay-card {
    width: 90%;
    max-width: 420px;
    text-align: center
}

.overlay-card input[type="text"] {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 0.6rem
}

.overlay-card .btn {
    width: 100%
}

.card {
    display: block
}

.card h2,
.card p,
.card .btn,
.controls,
footer,
.overlay-card h2,
.overlay-card .subtitle {
    text-align: center
}

#question {
    text-align: left
}

#surprise-text {
    text-align: left
}

#choices .choice {
    text-align: left
}

.play-again-wrap {
    display: flex;
    justify-content: center
}

.video-wrap.hidden {
    display: none;
    padding: 0;
    height: 0;
    margin: 0
}

.surprise-box {
    background: linear-gradient(180deg, #fff, #fffefb);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(20, 20, 50, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    max-width: 760px;
    margin: 0.6rem auto 0;
    word-wrap: break-word;
    white-space: normal
}

.surprise-box p {
    margin: 0
}

#surprise-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #222;
    text-align: left
}

@media (max-width:420px) {
    #surprise-text {
        font-size: 1rem
    }

    .surprise-box {
        padding: 0.75rem
    }
}