/* v 260520.1850 UTC */

:root {
    --cream: #f4ead7;
    --paper: #fff7e7;
    --ink: #173033;
    --teal: #156a6c;
    --teal-soft: #2b7c7d;
    --coral: #ef6b2e;
    --mustard: #dfa93a;
    --mint: #b9d8b5;
    --wrong: #e89a84;
    --shadow: rgba(34, 26, 20, 0.22);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 18%, rgba(239, 107, 46, 0.28), transparent 27%),
        radial-gradient(circle at 85% 78%, rgba(43, 124, 125, 0.24), transparent 30%),
        radial-gradient(circle at 78% 16%, rgba(223, 169, 58, 0.22), transparent 25%),
        linear-gradient(135deg, #f5ebd8, #dbcdb8 58%, #cbbfae);
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(23, 48, 51, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 48, 51, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mix-blend-mode: multiply;
}

.qod-mark {
    position: fixed;
    top: 2vh;
    right: 4vw;
    z-index: 0;
    color: rgba(239, 107, 46, 0.18);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(6rem, 18vw, 18rem);
    line-height: 0.8;
    letter-spacing: -0.08em;
    transform: rotate(-5deg);
    pointer-events: none;
    user-select: none;
}

.qod-shape {
    position: fixed;
    pointer-events: none;
    opacity: 0.72;
    z-index: 0;
}

.qod-shape-one {
    left: 7vw;
    bottom: 11vh;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 26px solid rgba(43, 124, 125, 0.2);
}

.qod-shape-two {
    right: 9vw;
    bottom: 18vh;
    width: 220px;
    height: 78px;
    border-radius: 60px;
    background: rgba(223, 169, 58, 0.28);
    transform: rotate(-18deg);
}

.qod-shape-three {
    left: 17vw;
    top: 11vh;
    width: 0;
    height: 0;
    border-left: 62px solid transparent;
    border-right: 62px solid transparent;
    border-bottom: 116px solid rgba(239, 107, 46, 0.2);
    transform: rotate(18deg);
}

.back-link {
    position: fixed;
    top: 22px;
    left: 24px;
    z-index: 20;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: rgba(255, 247, 231, 0.78);
    border: 2px solid rgba(23, 48, 51, 0.14);
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.quiz-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 88px 28px 48px;
}

.intro-panel,
.quiz-card,
.result-panel,
.empty-panel {
    width: min(1080px, 100%);
    background: rgba(255, 247, 231, 0.88);
    border: 4px solid rgba(23, 48, 51, 0.14);
    border-radius: 34px;
    box-shadow: 0 30px 70px var(--shadow);
    backdrop-filter: blur(8px);
}

.intro-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1fr);
    align-items: center;
    gap: 24px;
    padding: clamp(24px, 4vw, 48px);
}

.intro-art-wrap,
.result-art-wrap {
    position: relative;
    display: grid;
    place-items: center;
}

.intro-art {
    width: min(100%, 500px);
    height: auto;
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.2));
}

.intro-copy,
.result-copy {
    container-type: inline-size;
}

.intro-copy h1,
.empty-panel h1 {
    margin: 0 0 16px;

    font-family: Impact, "Arial Black", sans-serif;

    font-size: clamp(2.6rem, 6.8vw, 7rem);

    line-height: 0.84;

    letter-spacing: -0.055em;

    color: var(--teal);

    text-transform: uppercase;

    white-space: nowrap;

    text-wrap: nowrap;
}

.intro-copy p {
    max-width: 560px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--coral);
    text-transform: uppercase;
    font-weight: 900;
    white-space: nowrap;
    line-height: 1;

    font-size: min(1.3rem, 2.05vw);
    letter-spacing: min(0.28em, 0.42vw);
}

.small-note {
    margin-top: 18px;
    color: rgba(23, 48, 51, 0.68);
    font-size: 0.95rem !important;
}

.primary-button,
.next-button {
    border: 0;
    border-radius: 999px;
    padding: 16px 26px;
    color: #fff8ec;
    background: var(--teal);
    box-shadow: 0 10px 0 #0e4042, 0 22px 32px rgba(21, 106, 108, 0.24);
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    background: var(--coral);
    color: #fff8ec;
    box-shadow: 0 8px 0 #b94722, 0 22px 32px rgba(239, 107, 46, 0.28);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(1.15rem, 2.4vw, 1.85rem);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.primary-button::before {
    content: "▶";
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--teal);
    background: #fff8ec;
    font-size: 0.72em;
    line-height: 1;
    padding-left: 0.12em;
}

.primary-button:hover,
.next-button:hover {
    transform: translateY(-2px);
}

.primary-button:hover {
    box-shadow: 0 10px 0 #b94722, 0 26px 36px rgba(239, 107, 46, 0.3);
}

.next-button:hover {
    box-shadow: 0 12px 0 #0e4042, 0 26px 36px rgba(21, 106, 108, 0.25);
}

.quiz-card {
    overflow: hidden;
}

.question-image {
    min-height: clamp(220px, 36vh, 370px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(0.8) contrast(0.94) sepia(0.08);
    position: relative;
}

.question-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(244, 234, 215, 0.08), rgba(23, 48, 51, 0.12)),
        radial-gradient(circle at 65% 30%, rgba(255, 247, 231, 0.18), transparent 36%);
}

.quiz-card.answered .question-image {
    filter: saturate(0.98) contrast(1) sepia(0.03);
}

.question-content {
    padding: clamp(28px, 5vw, 48px);
}

.quiz-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(23, 48, 51, 0.68);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

.question-content h2 {
    margin: 20px 0 28px;
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    line-height: 1.12;
    max-width: 900px;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.answer-option {
    min-height: 78px;
    border: 3px solid rgba(23, 48, 51, 0.14);
    border-radius: 22px;
    padding: 18px 20px;
    color: var(--ink);
    background: #d6e8df;
    box-shadow: 0 8px 0 rgba(23, 48, 51, 0.12);
    font: inherit;
    font-size: 1.08rem;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.answer-option:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #c5e2de;
}

.answer-option.correct {
    background: var(--mint);
    border-color: rgba(38, 100, 58, 0.24);
}

.answer-option.wrong {
    background: var(--wrong);
    border-color: rgba(120, 20, 10, 0.18);
}

.answer-option:disabled {
    cursor: default;
}

.answer-note {
    min-height: 28px;
    margin-top: 20px;
    font-weight: 900;
    color: var(--coral);
}

.next-button {
    margin-top: 12px;
    background: var(--mustard);
    color: var(--ink);
    box-shadow: 0 10px 0 #9c7628, 0 22px 32px rgba(156, 118, 40, 0.2);
}

.result-panel {
    display: grid;
    grid-template-columns: minmax(300px, 1.15fr) minmax(320px, 0.95fr);
    align-items: center;
    padding: clamp(22px, 4vw, 42px);
    gap: clamp(24px, 4vw, 46px);
}

.result-copy {
    min-width: 0;
}

.result-art {
    width: min(100%, 680px);
    height: auto;
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.22));
}

.qod-score-overlay {
    position: absolute;

    top: 49%;
    left: 45%;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: baseline;
    justify-content: center;

    font-family: Impact, "Arial Black", sans-serif;

    font-size: clamp(3.9rem, 7vw, 6.4rem);

    line-height: 0.78;

    letter-spacing: -0.04em;

    text-shadow:
        0.025em 0.025em 0 rgba(0, 0, 0, 0.08);

    white-space: nowrap;
}

.qod-score-main {
    color: var(--coral);
    font-size: 1.16em;
}

.qod-score-divider {
    color: var(--teal);
    padding: 0 0.09em;
    transform: translateY(-0.02em);
}

.qod-score-total {
    color: var(--mustard);
    font-size: 0.78em;
    letter-spacing: -0.025em;
}

.result-copy h2 {
    margin: 0 0 14px;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(2.05rem, 5.2vw, 4.8rem);
    line-height: 0.9;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: -0.045em;
    white-space: nowrap;
    max-width: 100%;
}

.result-copy .eyebrow {
    width: 100%;
    max-width: 100%;
}

.result-copy p:not(.eyebrow) {
    font-size: 1.1rem;
    line-height: 1.6;
}

.secondary-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
    border-bottom: 3px solid var(--coral);
}

.empty-panel {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 44px;
}

.empty-panel img {
    width: min(360px, 80%);
    margin-bottom: 12px;
}

@media (max-width: 820px) {
    .intro-panel,
    .result-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .intro-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .primary-button {
        margin-left: auto;
        margin-right: auto;
    }

    .answer-grid {
        grid-template-columns: 1fr;
    }

    .quiz-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-panel {
        padding-top: 34px;
    }

    .result-copy h2 {
        font-size: clamp(2.1rem, 11vw, 4.4rem);
    }

    .eyebrow {
        font-size: clamp(0.62rem, 1.8vw, 0.92rem);

        letter-spacing: 0.08em;
    }

    .qod-score-overlay {
        top: 52%;
        left: 47%;
        font-size: clamp(2.8rem, 12vw, 5.4rem);
    }
}

@media (max-width: 520px) {
    .quiz-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .intro-copy h1 {
        font-size: clamp(2.25rem, 15vw, 4.3rem);
    }

    .result-copy h2 {
        font-size: clamp(1.7rem, 10vw, 3.1rem);
    }

    .primary-button {
        font-size: clamp(1rem, 5vw, 1.35rem);
        padding: 13px 18px;
    }

    .primary-button::before {
        width: 34px;
        height: 34px;
    }
}


.eyebrow,
.intro-copy h1,
.result-copy h2 {
    white-space: nowrap;
}