/* How big is your vocabulary? A blue event field (the question and its options) beside a navy panel. Base in ../style.css. */
.stage { display: grid; }
.field { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: 0 var(--pad) 22px; display: flex; flex-direction: column; }
.field > * { position: relative; }
/* One giant pictogram, cropped off the field's edge. White, since the field is blue. */
.giant { position: absolute; top: 62px; right: calc(-1 * clamp(28px, 5vw, 80px)); width: clamp(120px, 22vw, 300px); aspect-ratio: 1; color: #fff; }
.giant svg { width: 100%; height: 100%; display: block; }
@media (max-width: 899px) { .giant { top: 36px; right: -22vw; width: 64vw; color: rgba(255, 255, 255, 0.16); } }
.field h1 { font-size: clamp(36px, 9vw, 68px); margin: 22px 0 20px; max-width: min(7em, calc(100% - clamp(80px, 16vw, 220px))); }

/* The question: count and progress, what to do, the word (big) or the sentence, then the options. */
/* Clear of the giant pictogram on the field's right edge, like the title. */
.quiz { max-width: min(640px, calc(100% - clamp(80px, 16vw, 220px))); }
.count { display: flex; justify-content: space-between; color: rgba(255, 255, 255, 0.9); }
.bar { height: 6px; margin-top: 8px; background: rgba(255, 255, 255, 0.25); }
.bar i { display: block; height: 100%; width: 0; background: #fff; transition: width 0.3s var(--ease); }
.ask { margin-top: 22px; color: rgba(255, 255, 255, 0.9); }
.focus { margin-top: 6px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; overflow-wrap: anywhere; }
.focus.word { font-size: clamp(40px, 8vw, 72px); }
.focus.sentence { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.015em; line-height: 1.2; }
.focus .blank { letter-spacing: 0; }
.options { display: grid; gap: 8px; margin-top: 18px; }
.options button { display: block; width: 100%; padding: 12px 14px; border: 2px solid #fff; border-radius: 0; background: transparent; color: #fff; font: 700 17px / 1.3 var(--font); text-align: left; cursor: pointer; transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease); }
@media (hover: hover) { .options button:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); color: var(--ink); } }
.options button:active:not(:disabled) { transform: scale(0.97); }
.options button:disabled { cursor: default; opacity: 0.45; }
.options button.answer { background: #fff; color: var(--ink); opacity: 1; }
.options button.picked { background: var(--orange); border-color: var(--orange); color: var(--ink); opacity: 1; text-decoration: line-through; }
.after { margin-top: 10px; min-height: 52px; }
.idk, .next { padding: 12px 18px; border: 2px solid #fff; border-radius: 0; background: transparent; color: #fff; font: 800 13px var(--font); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.idk { border-style: dashed; }
.next { margin-top: 12px; background: #fff; color: var(--ink); min-width: 140px; }
@media (hover: hover) { .idk:hover, .next:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); border-style: solid; } }
.idk:active, .next:active { transform: scale(0.97); }
.explain { font-size: 17px; line-height: 1.4; }
.explain b { font-weight: 800; }
.explain i { font-style: normal; opacity: 0.9; }

/* The score on the field when a game ends, so a phone player sees it without scrolling. */
.result { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 18px; }
.result b { font-size: clamp(32px, 6vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.result a { color: inherit; }

.panel { background: var(--navy); color: #fff; padding: 24px var(--pad) 28px; }
.soft, .ev.soft { color: var(--navy-soft); }
.panel-title { font-size: clamp(28px, 5vw, 38px); letter-spacing: -0.02em; line-height: 1.05; }
.panel .hook { margin-top: 12px; font-size: 18px; }
.panel .fine { margin: 14px 0 0; padding: 0; font-size: 14px; color: var(--navy-soft); }
.cta { display: inline-block; margin-top: 20px; padding: 16px 24px; border: 2px solid #fff; border-radius: 0; background: #fff; color: var(--ink); font: 800 14px var(--font); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease); }
@media (hover: hover) { .cta:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); color: var(--ink); } }
.cta:active { transform: scale(0.97); }
.cta:disabled { opacity: 0.5; cursor: default; }

/* The end: the score, actions, and every word with its meaning (misses first). */
.end .big { font-size: clamp(44px, 5.6vw, 84px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; margin: 12px 0 6px; font-variant-numeric: tabular-nums; }
.end .big .of { font-size: 0.4em; letter-spacing: -0.01em; }
.end .band { margin-top: 6px; }
.end .line { font-size: 18px; margin-top: 14px; }
.end .small { font-size: 15px; margin: 10px 0 20px; }
.end .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.end button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border: 2px solid #fff; border-radius: 0; background: transparent; color: #fff; font: 800 13px var(--font); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.end button.primary { background: #fff; color: var(--ink); }
@media (hover: hover) { .end button:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); } }
.end button .icon { width: 18px; height: 18px; }
.end .list-head { margin-top: 28px; padding-top: 10px; border-top: 2px solid rgba(255, 255, 255, 0.3); }
.review { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.review li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.35; }
.review strong { font-weight: 800; }
.chip { display: block; padding: 4px 0; text-align: center; font-size: 11px; }
.chip.win { background: #fff; color: var(--ink); }
.chip.miss { background: var(--orange); color: var(--ink); }
.chip.skip { outline: 2px solid var(--navy-soft); outline-offset: -2px; color: var(--navy-soft); }

@media (min-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1.55fr) minmax(380px, 1fr); min-height: 100svh; }
  .field { padding-bottom: 36px; }
  .panel { padding-top: 76px; padding-bottom: 36px; }
}
/* Phones, mid-game: the title and giant pictogram give their room to the question. */
@media (max-width: 899px) {
  .playing .field h1, .playing .giant { display: none; }
  .playing .quiz { margin-top: 14px; }
  .playing .ask { margin-top: 14px; }
  .playing .quiz { max-width: none; }
  .options button { padding: 10px 12px; font-size: 16px; }
}
/* Short phones (Safari's 553px on a small iPhone): everything tighter, so the Next button stays on screen. */
@media (max-width: 899px) and (max-height: 700px) {
  .playing .quiz { margin-top: 8px; }
  .playing .ask { margin-top: 10px; }
  .focus.sentence { font-size: 19px; line-height: 1.18; }
  .focus.word { font-size: 38px; }
  .options { gap: 6px; margin-top: 12px; }
  .options button { padding: 8px 12px; font-size: 15px; line-height: 1.25; }
  .after { margin-top: 8px; }
  .explain { font-size: 15px; line-height: 1.3; }
  .next { margin-top: 8px; padding: 10px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
