* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { --ink: #282a2b; --paper: #faf7f2; --accent: #ea6933; --unit: clamp(18px, 1.4vw, 44px); }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 var(--unit)/1.4 var(--ubuntu); user-select: none; -webkit-user-select: none; }
button { font: 500 1em/1.2 var(--ubuntu); cursor: pointer; min-height: 64px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button:focus-visible { outline: 4px solid #252525; outline-offset: 5px; box-shadow: 0 0 0 9px white; }
h1, h2, p { margin: 0; }
h1:focus, h2:focus { outline: none; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.header { background: #ea6933; color: white; display: flex; justify-content: space-between; align-items: center; padding: 1.6vh 4vw; gap: 24px; }
.header img { width: clamp(150px, 12vw, 480px); height: auto; }
.event { display: flex; align-items: center; gap: 1.2em; font-size: .54em; letter-spacing: .13em; }
.event b { display: flex; gap: .55em; font-size: 2em; letter-spacing: -.04em; }
main { width: 100%; padding: 2vh 5vw; display: grid; align-items: center; }
.screen { width: 100%; max-width: 1760px; margin: auto; animation: arrive .3s ease-out both; }
.eyebrow { font-size: .52em; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 1.2em; border: 0; border-radius: 999px; padding: .85em 1.4em; min-height: max(64px, 3em); text-decoration: none; }
.primary { background: #c4491c; color: white; font-weight: 700; box-shadow: 0 6px 18px #a0441920; }
.primary:hover { background: #a93713; }
.primary:active { transform: translateY(2px); }
.primary:disabled { opacity: .6; }
.secondary { background: white; color: var(--ink); border: 2px solid #d8d3cc; }
.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 3%; align-items: center; }
.welcome-copy { padding: 2vh 0; }
.welcome-copy .eyebrow { color: #94401f; }
.live-dot { display: inline-block; width: .65em; height: .65em; border-radius: 50%; background: #c4491c; margin-right: .6em; }
h1 { margin: .18em 0 .2em; font-size: clamp(70px, 8vw, 190px); line-height: .96; letter-spacing: -.065em; }
h1 em { color: #c4491c; font-style: normal; }
.intro { font-size: .92em; line-height: 1.55; color: #68635d; }
.rules { display: flex; gap: 1.4em; margin: 1.7em 0; font-size: .56em; }
.rules span { border-right: 1px solid #d7cfc4; padding-right: 1.4em; }
.rules span:last-child { border: 0; padding: 0; }
.rules b { display: block; font-size: 1.9em; color: var(--ink); }
.welcome-art { position: relative; min-height: 59vh; }
.deck-orbit { position: absolute; width: 92%; aspect-ratio: 1; background: #f0e9df; border-radius: 50%; top: 8%; left: 4%; }
.deck-card { position: absolute; width: 33%; height: auto; border-radius: 16px; box-shadow: 0 18px 35px #31251e26; top: 17%; left: 33.5%; }
.deck-back-left { transform: translate(-52%, -10%) rotate(-28deg); }
.deck-back-right { transform: translate(52%, -10%) rotate(28deg); }
.deck-left { transform: translate(-30%, 1%) rotate(-14deg); }
.deck-right { transform: translate(30%, 1%) rotate(14deg); }
.deck-front { transform: translateY(8%); }
.deck-caption { position: absolute; left: 0; bottom: 2%; width: 100%; text-align: center; font-size: .46em; letter-spacing: .2em; color: #73665c; }
.footer { display: flex; align-items: center; justify-content: space-between; padding: 0 3vw 0 5vw; font-size: .44em; letter-spacing: .12em; color: #68635d; }
.footer b { color: #c4491c; margin-left: .6em; }
.operator-access { min-width: 64px; background: transparent; border: 0; color: #75685d; font-size: 30px; letter-spacing: .05em; }
.category-screen { text-align: center; }
.category-screen > .eyebrow { color: #94401f; }
.screen h2 { font-size: clamp(32px, 3.2vw, 100px); line-height: 1.13; letter-spacing: -.04em; }
.category-screen h2 { margin: .15em 0; }
.section-note { font-size: .7em; color: #68635d; }
.category-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5vh 1.6vw; width: min(76vw, 62vh); margin: 1.6vh auto .3vh; }
.category-card { display: block; position: relative; background: var(--category-color); border: 0; border-radius: 12px; padding: 0; overflow: hidden; box-shadow: 0 5px 13px #31251e18; transition: transform .18s, box-shadow .18s; }
.category-card:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 10px 20px #31251e26; }
.category-art { display: block; width: 100%; height: auto; }
.text-button { border: 0; background: transparent; color: #68635d; padding: .3em 1em; font-size: .6em; text-decoration: underline; text-underline-offset: .25em; }
.question-screen { max-width: 1580px; }
.game-top { display: flex; align-items: center; gap: 1.3em; justify-content: space-between; margin-bottom: 1em; font-size: .65em; }
.category-tag { position: relative; border-radius: 999px; padding: .55em 1em .55em 1.8em; background: white; color: var(--ink); font-weight: 500; border: 1px solid #e5ded5; }
.category-tag::before { content: ''; position: absolute; left: .7em; top: calc(50% - .3em); width: .6em; height: .6em; border-radius: 50%; background: var(--accent); }
.progress { display: flex; align-items: center; gap: 1em; }
.round-dots { display: flex; gap: .35em; }
.round-dots i { width: .65em; height: .65em; border: 1px solid #9b9388; border-radius: 50%; }
.round-dots .active { background: var(--ink); border-color: var(--ink); }
.round-dots .done { background: #63846e; border-color: #63846e; }
.score b { display: inline-grid; place-items: center; background: #ece6dd; border-radius: 50%; width: 1.8em; height: 1.8em; margin-left: .4em; }
.question-layout { display: grid; grid-template-columns: .29fr 1fr; gap: 2.4vw; align-items: center; }
.question-identity { display: grid; justify-items: center; gap: 1.2em; }
.question-identity img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 14px 30px #31251e1c; transform: rotate(-4deg); }
.question-identity > span { color: #75685d; font-size: .4em; letter-spacing: .16em; text-align: center; }
.question-card { background: white; padding: 1.15em 1.35em; border: 1px solid #ebe4db; border-top: 6px solid var(--accent); border-radius: 22px; box-shadow: 0 12px 40px #31251e08; }
.question-heading { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin-bottom: .25em; }
.question-heading .eyebrow { color: #756b60; font-size: .42em; }
.timer { display: flex; align-items: baseline; gap: .35em; color: var(--ink); font-size: .6em; }
.timer b { font-size: 2em; font-variant-numeric: tabular-nums; line-height: 1; }
.timer.urgent { color: #b22f22; }
.question-card h2 { font-size: clamp(27px, 2.1vw, 76px); line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; margin: .4em 0 .7em; }
.time-track { height: 4px; background: #ece6dd; border-radius: 5px; margin-bottom: 1em; overflow: hidden; }
.time-track span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: left; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5em; }
.option { display: flex; align-items: center; gap: .8em; padding: .5em .8em; min-height: max(64px, 3.15em); border: 1px solid #dcd6ce; border-radius: 12px; background: white; color: var(--ink); text-align: left; font-size: .77em; }
.option:not(:disabled):hover { border-color: #736458; background: #f7f3ed; }
.option .letter { flex: none; display: grid; place-items: center; width: 1.85em; height: 1.85em; border-radius: 50%; background: #f1ede7; color: #74695d; font-weight: 700; }
.option .option-text { flex: 1; min-width: 0; }
.option.correct { background: #eaf4eb; border-color: #2b7c4f; color: #175933; }
.option.correct .letter { background: #2b7c4f; color: white; }
.option.wrong { background: #fff0eb; border-color: #b33c24; color: #8f2a18; }
.option.wrong .letter { background: #b33c24; color: white; }
.option:disabled:not(.correct):not(.wrong) { color: #8a7a6e; background: #f6f3ee; }
.answer-note { margin: 1em 0 0; text-align: center; color: #756b60; font-size: .5em; }
.feedback-row { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-top: .8em; padding-top: .6em; border-top: 1px solid #e5ded5; }
.feedback { font-size: .58em; min-width: 0; }
.feedback b { color: #175933; }
.feedback p { font-size: .9em; line-height: 1.4; margin-top: .25em; }
.feedback[data-outcome="wrong"] b, .feedback[data-outcome="timeout"] b { color: #9a361c; }
.feedback-row .primary { font-size: .6em; flex: none; padding: .7em 1.2em; }
.game-footnote { text-align: center; font-size: .5em; margin-top: 1.2em; color: #756b60; }
.result-screen { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 7%; position: relative; }
.result-copy > .eyebrow { color: #94401f; }
.result-score { font-size: clamp(80px, 8vw, 220px); font-weight: 700; letter-spacing: -.06em; line-height: 1; color: #c4491c; margin-top: .2em; }
.result-score span { font-size: .48em; color: #9a9084; letter-spacing: -.03em; }
.result-score-label { font-size: .44em; letter-spacing: .15em; margin: .5em 0 1.2em; color: #756b60; }
.result-copy h2 { font-size: clamp(32px, 3.1vw, 100px); }
.result-message { font-size: .78em; margin-top: .7em; max-width: 28em; color: #68635d; }
.fact { margin: 1em 0; padding: .8em 1em; background: white; border-left: .2em solid var(--accent); border-radius: .6em; max-width: 32em; font-size: .62em; }
.fact > span { color: #756b60; font-size: .65em; font-weight: 700; letter-spacing: .1em; }
.fact p { margin-top: .4em; line-height: 1.45; }
.result-copy > .primary { font-size: .78em; }
.return-note { font-size: .48em; margin-top: 1em; color: #756b60; }
.result-art { position: relative; display: grid; place-items: center; }
.result-art > img { width: 62%; height: auto; max-height: 60vh; object-fit: contain; border-radius: 18px; box-shadow: 0 20px 45px #31251e20; transform: rotate(7deg); }
.stamp { position: absolute; bottom: -5%; right: 0; border: 2px dashed #a55e36; outline: 8px solid #f4e7d1; background: #f4e7d1; border-radius: 50%; width: 8em; height: 8em; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(-12deg); font-size: .68em; color: #98421e; }
.stamp > span { font-size: 1.5em; }.stamp b { line-height: 1.1; font-size: 1.35em; }.stamp small { font-size: .4em; letter-spacing: .04em; margin-top: .8em; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }.confetti i { position: absolute; width: 9px; height: 18px; left: var(--x); top: -20px; background: var(--color); animation: fall 2.5s var(--delay) ease-in both; }
.load-error { position: fixed; inset: 0; padding: 10vw; background: var(--paper); display: flex; flex-direction: column; align-items: start; justify-content: center; gap: 1em; z-index: 10; }
dialog { border: 1px solid #e5ded5; border-radius: 24px; background: var(--paper); color: var(--ink); padding: clamp(24px, 2.5vw, 64px); max-width: min(94vw, 900px); max-height: 90svh; overflow: auto; font: 400 clamp(18px, 1.3vw, 28px)/1.45 var(--ubuntu); box-shadow: 0 30px 100px #31251e40; }
dialog::backdrop { background: #28231caa; backdrop-filter: blur(5px); }
dialog h2 { font-size: 1.5em; margin: .4em 0 .7em; }dialog p { margin: .7em 0; }dialog .eyebrow { color: #94401f; }
dialog .primary, dialog .secondary { font-size: .8em; min-height: 64px; }dialog .dialog-actions { display: flex; gap: .6em; margin-top: 1em; }
.sound-setting { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: 2em; margin: 1em 0; }.sound-setting input { width: 64px; height: 40px; accent-color: #c4491c; }
.dialog-note, .editorial-status, #fullscreen-status { font-size: .75em; color: #68635d; }.editorial-status { background: #ede6db; padding: 1em; border-radius: .6em; }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fall { to { transform: translateY(80vh) rotate(600deg); opacity: 0; } }
@media (min-width: 2200px) { .screen { max-width: 3300px; }.question-screen { max-width: 3100px; }.time-track { height: 8px; }.category-card { border-radius: 24px; } }
@media (max-height: 800px) and (orientation: landscape) {
  .header { padding-top: 10px; padding-bottom: 10px; }main { padding-top: 1vh; padding-bottom: 1vh; }
  h1 { font-size: min(8vw, 17vh); }.welcome-art { min-height: 61vh; }.rules { margin: 1.2em 0; }
  .category-list { width: min(76vw, 58vh); gap: 1.5vh 1.6vw; }.category-screen h2 { font-size: 3vw; }
  .question-card { padding: .8em 1em; }.question-card h2 { font-size: 2.05vw; margin: .3em 0 .5em; }
  .question-heading .eyebrow { font-size: .46em; }.question-identity img { max-height: 53vh; width: auto; max-width: 100%; }
  .feedback { font-size: .58em; }.result-score { font-size: 13vh; }.result-copy h2 { font-size: 3vw; }
}
@media (orientation: portrait) {
  :root { --unit: clamp(20px, 2.65vw, 38px); }
  .header { padding: 1.8vh 5vw; }.header img { width: 29vw; }.event { flex-direction: column; gap: .1em; align-items: end; font-size: .4em; }.event b { font-size: 2.4em; }
  main { padding: 2vh 6vw; }
  .welcome { grid-template-columns: 1fr; text-align: center; gap: 2vh; }.welcome-copy { padding-top: 0; }h1 { font-size: 14vw; }.intro { font-size: .9em; }
  .rules { justify-content: center; margin: 1.4em 0; }.welcome-art { width: 76%; min-height: 34vh; margin: auto; }.deck-orbit { width: 80%; left: 10%; top: -3%; }.deck-card { width: 32%; left: 34%; top: 3%; }.deck-caption { bottom: 0; }
  .category-list { width: min(72vw, 65vh); gap: 1.6vh 2.2vw; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 3vh; }.category-art { width: 100%; }.category-screen h2 { font-size: 7vw; }.section-note { font-size: .7em; max-width: 27em; margin: auto; }
  .game-top { flex-wrap: wrap; gap: .6em; font-size: .65em; }.category-tag { max-width: 77%; }.progress { width: 100%; order: 2; justify-content: space-between; }
  .question-layout { grid-template-columns: 1fr; gap: 0; }.question-identity { display: none; }.question-card { margin-top: 1vh; padding: 1.2em; border-radius: 22px; }.question-card h2 { font-size: 4.4vw; min-height: 3.4em; margin: .6em 0; }.question-heading .eyebrow { font-size: .45em; max-width: 65%; }
  .options { grid-template-columns: 1fr; gap: .65em; }.option { min-height: 3.7em; font-size: .95em; }.feedback-row { align-items: stretch; flex-direction: column; gap: .6em; }.feedback { font-size: .72em; }.feedback-row .primary { align-self: end; font-size: .75em; }
  .result-screen { grid-template-columns: 1fr; text-align: center; gap: 3vh; }.result-score { font-size: 17vw; }.result-copy h2 { font-size: 6vw; }.fact, .result-message { margin-left: auto; margin-right: auto; }.result-art { width: 56%; margin: auto; }.result-art > img { width: auto; height: 25vh; }.stamp { width: 8em; height: 8em; font-size: .55em; right: -12%; bottom: -3%; }
  .footer { padding-left: 6vw; }.footer > span { max-width: 76%; }
}
@media (orientation: portrait) and (min-height: 1000px) { .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(60vw, 29vh); gap: 1.6vh 3vw; margin-top: 2vh; } }
@media (max-width: 600px) {
  .event > span { display: none; }.eyebrow { font-size: .45em; }.intro { font-size: .75em; }.intro br { display: none; }.rules { font-size: .48em; gap: 1em; }.welcome-art { width: 80%; min-height: 30vh; }.deck-caption { font-size: .36em; }
  .category-list { width: 86%; gap: 12px; }.category-screen h2 { font-size: 8vw; }.category-screen .section-note { font-size: .6em; }
  .question-card { padding: .85em; }.question-card h2 { font-size: 5.6vw; }.game-top { font-size: .55em; }.option { font-size: .78em; min-height: 64px; }.question-heading .eyebrow { font-size: .37em; }.feedback { font-size: .6em; }.feedback-row .primary { font-size: .65em; }
  .result-art > img { height: 22vh; }.footer > span { font-size: .8em; }dialog .dialog-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
