/**
 * Ye Cinema? — printed on a ticket.
 *
 * The whole interface is one material: aged buff stock, letterpress ink, and rubber
 * stamps. There is no second theme layered over it — no velvet, no glow. Gold appears
 * exactly once, on the stock of a solved film, and nowhere else. The
 * reference is a 1996 Gaiety (Bombay-50) theatre stub: buff kraft gone warm, type that
 * is brown-black rather than black, punched perforations, soft fold creases, and one
 * violet date stamp doing all the colour work.
 *
 * Colour is reserved and it means something. Violet is the booking clerk's stamp. Green
 * and amber appear only on verdict stamps, because those three inks ARE the game's
 * signal. Nothing else is coloured, and nothing glows.
 *
 * Every surface is CSS gradients. The reference is a photograph; shipping it would mean
 * a raster that tiles wrong at every card width.
 */

:root {
  /* The house. A near-neutral light room, deliberately NOT the same family as the
     stock: the old ground was #211c15, a brown 35deg away from the buff, which put ten
     of twelve palette colours inside an 8-degree hue band and made the whole screen read
     as one muddy tone. A cool-neutral room is what lets the buff cards read as warm.
     Tickets now sit on a lit table instead of in a dark room. */
  --ground: #cbcbc6;
  --ground-lit: #d9d9d4;

  /* Type that sits directly on the room, not on a card. Its own tokens because
     `--ticket-lit` means "a paler shade of the stock", and reusing that
     for text is what made flipping the room a hunt through the whole stylesheet. */
  --on-ground: #332a1e;
  --on-ground-dim: #5a5044;

  /* Ticket stock. The stub colour it was sampled from is 25% saturation, which is a
     gold, not a paper — and once the room came up light, four large gold panels (the
     masthead, the search box, the era row, the clue rack) were most of the screen.
     13% is the landing point: 6% was tried and read as generic off-white, with the aged
     stock character gone entirely. Contrast still improves on the original either way —
     ink 10.0 -> 13.2:1. */
  --ticket: #ede3ce;
  --ticket-lit: #f8f2e6;
  /* Light type on a dark fill — the ink-filled calendar header, the gold button. Its own
     token because it is not a shade of the stock and must not follow it lighter. */
  --on-ink: #f7f3e9;
  --ticket-edge: #7e6c4e;
  --ticket-ink: #241c13;
  --ticket-faint: #60523b;

  /* The three inks. */
  /* Green ticket stock — same value and saturation as the buff, rotated to a warm
     yellow-green so a hit reads as a different ticket rather than a tinted one. */
  --ticket-green: #d3edce;
  /* The answer's stock. Green means "connected" and the film itself is not a stronger
     version of that — it is the end of the game, so it gets a stock of its own. Gold, at
     42% saturation against the buff's 13%: close in hue, far enough in richness that it
     reads as a different, better ticket rather than a slightly warmer one. */
  --ticket-gold: #ebd088;

  --stamp: #57318c;
  --stamp-green: #176034;
  --stamp-amber: #77490e;
  --stamp-red: #8c2119;

  /* Anton and Oswald have no Telugu glyphs. Naming Anek Telugu second means a Telugu
     label set in either face falls back to the house Telugu face, not the system's. */
  --display: 'Anton', 'Anek Telugu', Impact, sans-serif;
  --telugu: 'Anek Telugu', system-ui, sans-serif;
  --chrome: 'Oswald', 'Anek Telugu', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

/* Set while an overlay is open. Without it the page scrolls behind the scrim on iOS,
   which is the most obvious "this is a web page, not an app" tell there is. */
body.overlay-open {
  overflow: hidden;
}

/* Announced, never drawn. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body {
  background: var(--ground);
  background-image: radial-gradient(120% 80% at 50% 0%, var(--ground-lit), transparent 70%);
  color: var(--ticket-ink);
  font-family: var(--chrome);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  overflow-x: hidden;
}

/* Paper grain, over everything. Pure CSS — no asset to ship. */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 25;
  pointer-events: none;
}

/* ============================================================== ticket primitives */

/* --- the stock ---------------------------------------------------------------- */
.paper {
  position: relative;
  color: var(--ticket-ink);
  background-color: var(--ticket);
  background-image:
    /* Two vertical creases and one horizontal. Each is a dark valley with a lit crest
       on its far side — that pairing is what makes a fold read as a fold rather than as
       a printed rule. Kept faint; at full strength they became stripes. */
    linear-gradient(90deg, transparent 0 33.5%, rgba(70, 52, 24, 0.05) 33.7%,
      rgba(255, 250, 235, 0.22) 33.95%, transparent 34.2%),
    linear-gradient(90deg, transparent 0 71.5%, rgba(70, 52, 24, 0.04) 71.7%,
      rgba(255, 250, 235, 0.18) 71.95%, transparent 72.2%),
    linear-gradient(180deg, transparent 0 61.2%, rgba(70, 52, 24, 0.04) 61.4%,
      rgba(255, 250, 235, 0.18) 61.65%, transparent 61.9%),
    /* Mottle, off-centre and at three sizes so no repeat is visible. */
    radial-gradient(70% 120% at 12% 18%, rgba(255, 249, 232, 0.5), transparent 62%),
    radial-gradient(60% 100% at 88% 76%, rgba(150, 124, 78, 0.15), transparent 66%),
    radial-gradient(40% 70% at 62% 8%, rgba(150, 124, 78, 0.1), transparent 70%);
  border: 1px solid var(--ticket-edge);
  border-radius: 1px;
  /* Lifts the stub off a lit table. The old shadow was 0 8px 20px at 45% black, which
     is what a card needs when it is the only bright thing in a dark room; on a light
     ground the same value reads as dirt under the card. */
  box-shadow: 0 1px 2px rgba(74, 58, 32, 0.16), 0 6px 16px rgba(74, 58, 32, 0.13);
}

/* --- the perforation ----------------------------------------------------------- */
/* Holes are painted in the GROUND colour, not a lighter paper tone, so they read as
   punched through to the table rather than printed on. */
.perf-left::before,
.perf-right::after {
  content: '';
  position: absolute;
  top: 5px;
  bottom: 5px;
  width: 7px;
  z-index: 1;
  background-image: radial-gradient(circle at 50% 50%,
      var(--ground) 0 2.5px, rgba(120, 96, 58, 0.45) 2.6px 3.3px, transparent 3.5px);
  background-size: 7px 11px;
  background-repeat: repeat-y;
  pointer-events: none;
}

.perf-left::before {
  left: 8px;
}

.perf-right::after {
  right: 8px;
}

/* --- the rubber stamp ---------------------------------------------------------- */
/* Rotated, double-ruled and never fully opaque, because a hand-held stamp cannot be
   square and cannot ink evenly. */
.stamp,
.v-stamp,
.date-stamp {
  display: inline-block;
  font-family: var(--chrome);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 2px solid currentColor;
  border-radius: 1px;
  padding: 3px 8px;
  /* No opacity here. `multiply` alone gives the sunk-into-the-paper look; the 0.84 that
     used to sit alongside it was pure contrast loss, and on a spent card it took the
     stamp to 2.8:1 — the reason NO was hard to read at all. */
  mix-blend-mode: multiply;
  white-space: nowrap;
}

/* ===================================================================== masthead */

/* The header of the stub: the cinema's name, the house it belongs to, the serial. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding: calc(13px + env(safe-area-inset-top)) 0 0;
}

.masthead-inner {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.wordmark {
  font-family: var(--telugu);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--ticket-ink);
  letter-spacing: 0.005em;
  /* Letterpress bites unevenly; a hair of light under the glyph is the whole effect. */
  text-shadow: 0 1px 0 rgba(255, 250, 235, 0.5);
}

.wordmark a {
  color: inherit;
  text-decoration: none;
}

.wordmark a:focus-visible {
  outline: 1px solid var(--stamp);
  outline-offset: 3px;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-latin {
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ticket-faint);
  font-weight: 600;
}

.brand-subtitle {
  font-size: 7px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stamp);
  font-weight: 700;
  margin-top: 1px;
}

.masthead-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

/* The streak, printed like a fare box. */
/* The three masthead boxes are one row of equal squares. They used to be three different
   sizes — the reel 46 wide by whatever its two lines came to, the icon buttons 44x44 —
   which read as a wonky row rather than a set. 44 is also the HIG touch minimum. */
.reel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--ticket-edge);
  border-radius: 1px;
  color: var(--ticket-ink);
}

.reel-count {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
}

.reel-label {
  font-size: 6.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ticket-faint);
  margin-top: 2px;
  font-weight: 600;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ticket-edge);
  border-radius: 1px;
  color: var(--ticket-faint);
  cursor: pointer;
  font-family: var(--chrome);
  font-size: 12px;
  padding: 0;
  line-height: 1;
  transition: 0.14s;
}

.icon-btn:hover {
  border-color: var(--ticket-ink);
  color: var(--ticket-ink);
}

.icon-btn span {
  opacity: 0.45;
  font-size: 10px;
}

/* The word under the glyph. Same face as the streak box's label, so the three read as
   a set; overrides the dimming above, which is for the glyph. */
.icon-btn .reel-label {
  opacity: 1;
  margin-top: 0;
  font-size: 6.5px;
  white-space: nowrap;
}

/* `.icon-btn span` above outranks `.help-icon` on specificity, which is what left the ? at
   10px and half opacity — the faintest thing in the masthead. */
.icon-btn .help-icon {
  opacity: 1;
  font-size: 16px;
}

#archive-btn {
  width: 52px;
}

.calendar-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 1px;
  opacity: 1 !important;
}

.calendar-icon::before {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  top: 4px;
  border-top: 1px solid currentColor;
}

.calendar-icon::after {
  content: '••';
  position: absolute;
  left: 3px;
  top: 6px;
  font-size: 10px;
  line-height: 7px;
  letter-spacing: 4px;
}

/* The fare line: serial, class, and the clerk's date stamp. */
.puzzle-strip {
  max-width: 660px;
  margin: 11px auto 0;
  padding: 9px 26px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px dashed var(--ticket-edge);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ticket-faint);
  font-weight: 600;
}

#puzzle-number {
  font-family: var(--chrome);
}

.difficulty {
  border: 1px solid var(--ticket-edge);
  border-radius: 1px;
  padding: 2px 7px;
  font-size: 8.5px;
  letter-spacing: 0.2em;
}

.difficulty[data-level='hard'] {
  color: var(--stamp-red);
  border-color: var(--stamp-red);
}

.theater-stamp {
  display: inline-block;
  color: var(--stamp);
  border: 3px double currentColor;
  border-radius: 1px;
  padding: 4px 9px 3px;
  font-family: var(--chrome), var(--telugu), sans-serif;
  font-size: 9px;
  letter-spacing: 0.13em;
  transform: rotate(-3.5deg);
  opacity: 0.78;
  mix-blend-mode: multiply;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px currentColor;
}

/* Same stamp as ARCHIVE, in the green ink — this is the live puzzle, not a replay. */
.today-mark {
  color: var(--stamp-green);
  border: 1px solid var(--stamp-green);
  border-radius: 1px;
  padding: 2px 7px;
  font-family: var(--telugu);
  font-size: 9px;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
}

.archive-mark {
  color: var(--stamp);
  border: 1px solid var(--stamp);
  border-radius: 1px;
  padding: 2px 7px;
  font-family: var(--telugu);
  font-size: 9px;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
}

.date-stamp {
  margin-left: auto;
  font-size: 10px;
  padding: 3px 8px;
  transform: rotate(-2.5deg);
}

/* ======================================================================== stage */

.stage {
  max-width: 660px;
  margin: 0 auto;
  /* `viewport-fit=cover` in the viewport meta opts the page INTO the display cutout, so
     the insets have to be paid back by hand. Without this the give-up button and the
     attribution sit under the home indicator on every notched iPhone. */
  padding: 22px calc(18px + env(safe-area-inset-right))
           calc(30px + env(safe-area-inset-bottom))
           calc(18px + env(safe-area-inset-left));
}

/* ------------------------------------------------------------------- the guess box */

.search-frame {
  position: relative;
  z-index: 6;
}

/* Everything on this page is the same buff stock, which is the whole design — and it is
   exactly why the one thing you can TYPE into needed marking. Players were told the field
   was there and still could not find it: transparent background, no border, no caret cue,
   sitting in a paper card among other paper cards that only ever printed text at you.
   A label that says what to do, a magnifier, and a ruled line to write on. */
/* The goal, said once and said big. It is a statement, not an instruction — the label
   under it is the instruction. */
/* ================================================================== language */

/* Telugu mode. The small-caps labels across the page are tracked 0.1–0.26em, and
   spacing Telugu letters apart pulls each vowel sign off its consonant (మొ ద లు). One
   rule rather than an override on each of the forty selectors that set tracking. */
html:lang(te) body * {
  letter-spacing: 0 !important;
}

/* Anton is a single heavy weight, so its Telugu fallback came through at 400 and the
   headings read thin beside the English ones. Anek Telugu at 800 matches their weight. */
html:lang(te) .stage-goal,
html:lang(te) .intro-title,
html:lang(te) .intro-hero {
  font-family: var(--telugu);
  font-weight: 800;
}

.stage-goal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.stage-goal-row .stage-goal {
  margin-bottom: 0;
}

/* EN / తెలుగు. A two-way switch, so both options are always visible: a single button
   that says the OTHER language is a guess about what tapping it does. */
.lang-seg {
  display: inline-flex;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--ticket-edge);
  border-radius: 1px;
  background-color: var(--ticket);
}

.lang-seg button {
  padding: 5px 9px;
  border: 0;
  background: transparent;
  color: var(--ticket-faint);
  cursor: pointer;
  font-family: var(--chrome);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.lang-seg button[lang='te'] {
  font-family: var(--telugu);
  font-size: 12px;
  letter-spacing: 0;
}

.lang-seg button[aria-pressed='true'] {
  background-color: var(--ticket-ink);
  color: var(--on-ink);
  cursor: default;
}

.lang-seg[hidden],
.intro-lang[hidden] {
  display: none;
}

.intro-lang {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}

.stage-goal {
  margin-bottom: 5px;
  color: var(--on-ground);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ======================================================================== slate */

/* The clapperboard. Black slate and chalk on the light room: the one dark object on the
   page, which is what makes it the thing the eye goes to, the way the cassette is in a
   music game. Its own palette, not the room's tokens — a slate is black whatever the
   room is. */
.slate {
  --slate: #1d1c1b;
  --chalk: #efe9dc;
  --chalk-dim: #a8a193;
  --chalk-line: rgba(239, 233, 220, 0.28);
  /* Room above for the open stick: hinged at the left, its far end rises ~18px. */
  margin: 26px 0 0;
  filter: drop-shadow(0 3px 0 rgba(36, 28, 19, 0.18));
}

.slate-sticks {
  position: relative;
  height: 22px;
}

/* The two striped sticks. The top one is hinged at its left end and rides open; it
   claps shut on each take and stays shut once the board is over. */
.slate-stick {
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  border: 2px solid var(--slate);
  border-radius: 2px;
  background-color: var(--chalk);
  background-image: repeating-linear-gradient(-60deg, var(--slate) 0 9px, transparent 9px 18px);
}

.slate-stick:not(.top) {
  bottom: 0;
}

.slate-stick.top {
  bottom: 10px;
  transform-origin: 7px 100%;
  transform: rotate(-3deg);
  transition: transform 0.25s;
}

/* The hinge. */
.slate-stick.top::before {
  content: '';
  position: absolute;
  left: 1px;
  bottom: -7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--chalk-dim);
  box-shadow: 0 0 0 2px var(--slate);
}

.slate.closed .slate-stick.top {
  transform: rotate(0deg);
}

.slate.clap .slate-stick.top {
  animation: clap 0.42s cubic-bezier(0.3, 1.5, 0.5, 1);
}

/* The open stick's far end rises with the slate's width (~5% of it at 3deg). 26px clears
   a phone; the full-width slate on a desktop needs more or it touches the search box. */
@media (min-width: 520px) {
  .slate {
    margin-top: 42px;
  }
}

@keyframes clap {
  0% { transform: rotate(-3deg); }
  30% { transform: rotate(0deg); }
  100% { transform: rotate(-3deg); }
}

.slate.closed.clap .slate-stick.top {
  animation: none;
}

.slate-board {
  margin-top: -1px;
  border: 2px solid var(--slate);
  border-radius: 0 0 4px 4px;
  background-color: var(--slate);
  background-image: radial-gradient(130% 90% at 30% 0%, rgba(255, 255, 255, 0.06), transparent 70%);
  color: var(--chalk);
}

.slate-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding: 8px 12px;
}

.slate-line + .slate-line {
  border-top: 1px solid var(--chalk-line);
}

.slate-line[hidden] {
  display: none;
}

.slate-k {
  color: var(--chalk-dim);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.slate-caption {
  color: var(--ticket-gold);
  font-weight: 700;
}

.slate-v {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Chalk dots between the facts, not cell rules: one line instead of a grid. */
.slate-fact + .slate-fact::before {
  content: '·';
  margin-right: 8px;
  color: var(--chalk-dim);
}

.slate-take-k {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--chalk-line);
}

/* One chalk box per guess, in the share card's colours. */
.slate-takes {
  display: flex;
  gap: 4px;
}

.take {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--chalk-dim);
  border-radius: 2px;
}

.take.empty {
  border-style: dashed;
  opacity: 0.6;
}

.take.t2 { background-color: #7fc48f; border-color: #7fc48f; }
.take.t1 { background-color: #e2b04f; border-color: #e2b04f; }
.take.t0 { background-color: #6e6a62; border-color: #6e6a62; }
.take.hit { background-color: var(--ticket-gold); border-color: var(--chalk); }

@media (prefers-reduced-motion: reduce) {
  .slate.clap .slate-stick.top { animation: none; }
  .slate-stick.top { transition: none; }
}

/* A sentence now, not a micro-label. At 9.5px with 0.24em tracking it was styled as a
   field caption, which is the wrong shape for the only instruction on the screen. */
.search-label {
  display: block;
  margin: 0 0 8px 2px;
  color: var(--on-ground-dim);
  font-family: var(--telugu);
  font-size: 13px;
  line-height: 1.4;
  cursor: text;
}

/* The five things that count, as tokens you can scan instead of a list you have to read.
   Onboarding, so they go once the player has made a guess and knows. */
.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 9px 2px;
  list-style: none;
}

.search-chips li {
  border: 1px solid var(--ticket-edge);
  border-radius: 1px;
  padding: 3px 8px;
  color: var(--on-ground);
  font-family: var(--chrome);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not(.fresh) .search-chips {
  display: none;
}

.search-box {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* A magnifier, drawn rather than fetched — the CSP-free, font-free way to say "search"
   in the one place on the page where a universal icon beats a thematic one. */
.search-glyph {
  flex: none;
  align-self: center;
  position: relative;
  width: 15px;
  height: 15px;
  /* Was 16px to clear the perforation strip, which the box no longer has — that left it
     inset from nothing. 14px is the card's own edge inset. */
  margin-left: 14px;
  border: 2px solid var(--ticket-faint);
  border-radius: 50%;
  opacity: 0.75;
}

.search-glyph::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: var(--ticket-faint);
  transform: rotate(45deg);
}

.search-box:focus-within .search-glyph,
.search-box:focus-within .search-glyph::after {
  border-color: var(--ticket-ink);
  background-color: var(--ticket-ink);
  opacity: 1;
}

.search-box:focus-within {
  border-color: var(--ticket-ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(36, 28, 19, 0.16);
}

#search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  /* No underline. The magnifier and the label above already say "type here"; the dashed
     rule was a third signal and it read as a stray perforation across the box. */
  border: 0;
  outline: none;
  font-family: var(--telugu);
  font-size: 17px;
  color: var(--ticket-ink);
  padding: 15px 16px 15px 10px;
}

#search-input:disabled {
  cursor: progress;
}

#search-input::placeholder {
  color: rgba(96, 82, 59, 0.85);
}

.guess-counter {
  display: flex;
  align-items: center;
  padding: 0 15px;
  flex: none;
  border-left: 1px dashed var(--ticket-edge);
  font-family: var(--chrome);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ticket-faint);
}

.guess-counter.spent {
  color: var(--stamp-red);
}

.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 7;
  list-style: none;
  max-height: 396px;
  overflow-y: auto;
  /* Declare the gesture. pan-y tells the browser a vertical drag on a row belongs to
     this list, and overscroll-behavior stops the page behind rubber-banding once the
     list hits an end. Without these a scroll that starts on a row is ambiguous. */
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.suggestions:empty {
  display: none;
}

.suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  cursor: pointer;
  border-bottom: 1px dashed var(--ticket-edge);
}

.suggestion:last-child {
  border-bottom: 0;
}

.suggestion:hover,
.suggestion.active {
  background: rgba(36, 28, 19, 0.1);
}

.suggestion:active {
  background: rgba(36, 28, 19, 0.18);
}

.suggestion.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Portraits print as halftone: desaturated and contrasty, like newsprint. */
.thumb {
  width: 38px;
  height: 38px;
  flex: none;
  object-fit: cover;
  border-radius: 1px;
  border: 1px solid var(--ticket-edge);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 13px;
  color: var(--ticket-faint);
  background: rgba(120, 96, 58, 0.16);
}

.thumb.film {
  width: 34px;
  height: 50px;
}

.s-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.s-name {
  font-family: var(--telugu);
  font-size: 15px;
  font-weight: 700;
  color: var(--ticket-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s-te {
  font-family: var(--telugu);
  font-size: 12.5px;
  color: var(--ticket-faint);
}

/* Two-role labels ("music director · playback singer") are more than twice as wide as
   the one-word ones they replaced, so the chip has to be allowed to give way — at
   `flex: none` it pushed the name out of a phone-width row. It shrinks to a third of
   the row and wraps to a second line before the name loses any space. */
.s-type {
  font-size: 7.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ticket-faint);
  flex: 0 1 auto;
  min-width: 0;
  max-width: 34%;
  text-align: right;
  line-height: 1.35;
}

/* --------------------------------------------------------------------- year range */

/* The dropdown used by the report sheet. Named `.era-*` when the year-range guess
   owned it; that guess is gone (clue 1 gives the year away more cheaply) but the
   report role picker still needs a styled select. */
.select-wrap {
  position: relative;
  display: block;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--ticket-ink);
  border-bottom: 1px solid var(--ticket-ink);
  transform: rotate(45deg);
  pointer-events: none;
}

.select-input {
  width: 82px;
  height: 42px;
  color: var(--ticket-ink);
  font-family: var(--display);
  font-size: 18px;
  padding: 6px 22px 6px 6px;
  text-align: center;
  letter-spacing: 0.04em;
  appearance: none;
  cursor: pointer;
}

.select-input:focus {
  outline: none;
  border-color: var(--ticket-ink);
}

.select-input option {
  padding: 4px 2px;
}

.select-input option:checked {
  background: var(--stamp);
  color: var(--on-ink);
}


/* -------------------------------------------------------------------- the toast */

.toast {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 10px;
  z-index: 5;
  text-align: center;
  font-family: var(--telugu);
  font-weight: 700;
  font-size: 17px;
  color: var(--on-ground);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.warn {
  color: #d98b7f;
}

/* ======================================================================== board */

.board {
  margin-top: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 9px;
}

/* No guesses yet: the board is a zero-height element still pushing everything down. */
.board:empty {
  margin-top: 0;
}

/* ======================================================================== found */

/* The credits you have uncovered — one small stub each, not rows inside a bigger ticket.
   Stacked in a single panel they read as a list; as separate portraits they read as a
   set you are collecting, which is what finding someone actually feels like. */
/* Empty until the puzzle is won, so it must not add space of its own. */
.win-card:empty {
  display: none;
}

.win-card {
  margin-top: 16px;
}

.found {
  margin-top: 16px;
}

.found[hidden] {
  display: none;
}

.found-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 9px;
}

.found-title {
  color: var(--stamp-green);
  font-family: var(--chrome);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.found-count {
  margin-left: auto;
  color: var(--stamp-green);
  font-family: var(--display);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* Horizontal chips, two across a phone: portrait left, name / role / character right.
   Tall portrait tiles took a 150px row for every three people found and pushed the
   guesses off the screen; a chip row is ~65px for two. */
.found-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 7px;
  list-style: none;
}

.found-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 9px;
  align-items: center;
  padding: 6px 10px 6px 6px;
  text-align: left;
  /* The confirmation: green stock and a green edge, the same inks a YES verdict uses. */
  background-color: var(--ticket-green);
  border-color: var(--stamp-green);
}

/* The tick sits on the corner like a punched mark. */
.found-tick {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 2;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--stamp-green);
  color: var(--on-ink);
  font-size: 9px;
  line-height: 1;
}

.found-thumb {
  grid-row: 1 / span 3;
  grid-column: 1;
  width: 34px;
  height: 44px;
  margin: 0;
  object-fit: cover;
  border: 1px solid var(--ticket-edge);
  background: rgba(120, 96, 58, 0.12);
}

img.found-thumb {
  display: block;
}

/* TMDB has no portrait for a lot of TFI crew, and `thumbEl` swaps in an initials plate —
   a div sharing the same class, which needs to centre its own text. */
div.found-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 12px;
  color: var(--ticket-faint);
}

.found-thumb.film {
  object-fit: contain;
}

/* The tear line, with a notch bitten out of each edge where it meets them. Anchored to
   the name block rather than the card so both always sit directly under the portrait,
   whatever height the portrait resolves to at this tile width. */
.found-name,
.found-role,
.found-character {
  grid-column: 2;
}

.found-name {
  margin-top: 0;
  font-family: var(--telugu);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ticket-ink);
  overflow-wrap: anywhere;
}

.found-role {
  margin-top: 1px;
  color: var(--stamp-green);
  font-family: var(--chrome);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* The part they played — the actual reward for the guess. One line in a chip; the ellipsis
   only ever eats the tail of a long name. */
.found-character {
  margin-top: 2px;
  color: var(--ticket-faint);
  font-family: var(--telugu);
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

/* A guess is a torn stub. */
.guess-card {
  position: relative;
  /* Top: room for the printed band. Left: the counterfoil. */
  padding: 22px 14px 10px 38px;
  display: flex;
  align-items: center;
  gap: 13px;
  animation: slam 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
  /* Stubs are torn by hand; no two sit perfectly square in a stack. */
  transform: rotate(var(--tilt, 0deg));
}

/* --- a local theatre ticket -----------------------------------------------------
   What makes a single-screen ticket read as one, and what this stub lacked: a
   counterfoil torn off along a perforation, the house printed small in one cheap ink, a
   red numbering-machine serial on both halves, and coloured newsprint stock. (A seat
   class per verdict — Box, Balcony, First class, Nela — was tried and dropped.) */
.guess-card {
  --tkt-print: #34406e;   /* the one printing ink: cheap navy */
  --tkt-serial: #b0281d;  /* the numbering machine's red */
}

/* The counterfoil replaces the punched holes. */
.guess-card.perf-left::before {
  display: none;
}

.tkt-stub {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1.5px dashed rgba(52, 64, 110, 0.4);
  background-color: rgba(52, 64, 110, 0.05);
}

.tkt-stub span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--tkt-serial);
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.tkt-band {
  position: absolute;
  top: 6px;
  left: 38px;
  right: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--tkt-print);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Cheap letterpress never sits quite in register. */
  text-shadow: 0.4px 0.3px 0 rgba(52, 64, 110, 0.35);
  white-space: nowrap;
}

/* Tracked far less than the caps around it: spacing Telugu letters apart pulls each
   akshara's vowel sign away from its consonant. */
.tkt-house {
  font-family: var(--chrome), var(--telugu);
  font-size: 8px;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tkt-no {
  margin-left: auto;
  color: var(--tkt-serial);
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-shadow: none;
}

.guess-card .thumb {
  width: 52px;
  height: 64px;
  object-fit: contain;
  background: rgba(120, 96, 58, 0.12);
}

.guess-card .thumb.film {
  width: 44px;
  height: 64px;
}

.guess-card:nth-child(3n) {
  --tilt: 0.3deg;
}

.guess-card:nth-child(3n+1) {
  --tilt: -0.22deg;
}

.guess-card.torn-1,
.guess-card.torn-2,
.guess-card.torn-3 {
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.4)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.42));
}

.guess-card.torn-1 {
  clip-path: polygon(0% 3%, 7% 1%, 15% 2%, 24% 1%, 34% 2%, 44% 1%, 54% 2%, 64% 1%, 74% 2%, 84% 1%, 93% 2%, 100% 3%,
      99% 18%, 100% 35%, 99% 52%, 100% 69%, 99% 86%, 100% 97%, 91% 99%, 81% 98%, 71% 99%, 61% 98%,
      51% 99%, 41% 98%, 31% 99%, 21% 98%, 11% 99%, 0% 97%, 1% 80%, 0% 63%, 1% 46%, 0% 29%);
}

.guess-card.torn-2 {
  clip-path: polygon(0% 2%, 5% 1%, 12% 3%, 19% 1%, 27% 2%, 36% 1%, 45% 3%, 54% 1%, 63% 2%, 72% 1%, 82% 3%, 91% 1%, 100% 2%,
      98% 14%, 100% 27%, 98% 40%, 100% 53%, 98% 66%, 100% 79%, 98% 91%, 100% 98%, 92% 97%, 84% 99%, 75% 97%,
      66% 99%, 57% 97%, 48% 99%, 39% 97%, 30% 99%, 21% 97%, 12% 99%, 0% 98%, 2% 86%, 0% 73%, 2% 60%, 0% 47%, 2% 34%, 0% 21%, 2% 9%);
}

.guess-card.torn-3 {
  clip-path: polygon(0% 4%, 8% 2%, 16% 1%, 25% 3%, 34% 1%, 43% 2%, 52% 1%, 61% 3%, 70% 1%, 79% 2%, 88% 1%, 100% 4%,
      98% 16%, 100% 32%, 98% 48%, 100% 64%, 98% 80%, 100% 96%, 90% 98%, 80% 97%, 70% 99%, 60% 97%,
      50% 98%, 40% 97%, 30% 99%, 20% 97%, 10% 98%, 0% 96%, 2% 82%, 0% 68%, 2% 54%, 0% 40%, 2% 26%, 0% 12%);
}

@keyframes slam {
  0% {
    transform: translateX(-10px) rotate(var(--tilt, 0deg));
    opacity: 0;
  }

  100% {
    transform: rotate(var(--tilt, 0deg));
    opacity: 1;
  }
}

.g-names {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.g-name {
  font-family: var(--telugu);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ticket-ink);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-shadow: 0 0.5px 0 rgba(255, 250, 235, 0.45);
}

.g-te {
  font-family: var(--telugu);
  font-size: 12.5px;
  color: var(--ticket-faint);
}

.g-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}

.badge {
  font-size: 7.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ticket-faint);
  border: 1px solid var(--ticket-edge);
  padding: 2px 6px;
  border-radius: 1px;
  font-weight: 600;
  min-width: 0;
  line-height: 1.35;
}

.guess-card.era {
  padding-left: 38px;
}

.guess-card.era .g-name {
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 0.03em;
  text-transform: none;
}

/* --- the verdict, inked on ------------------------------------------------------ */
.g-verdict {
  text-align: right;
  flex: none;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.v-stamp {
  /* The stamp is the verdict — the one thing on the card that has to be readable at a
     glance — and it was the smallest type on it. */
  font-size: 11px;
  padding: 3px 8px;
  transform: rotate(-5.5deg);
}

.v-stamp.hit {
  font-size: 13px;
  padding: 5px 11px;
  transform: rotate(-7deg);
  border-width: 3px;
  opacity: 0.95;
}

.v-why {
  font-family: var(--telugu);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ticket-faint);
}

/* A miss is quieter than a hit, but it still has to be read — this is the verdict the
   player gets most often. At 0.76 the whole card washed toward the room and took its
   stamp under 3:1 with it. */
.guess-card.tier-0 {
  opacity: 0.92;
}

.guess-card.tier-0 .v-stamp {
  color: var(--ticket-faint);
}

.guess-card.tier-1 .v-stamp {
  color: var(--stamp-amber);
}

.guess-card.tier-2 .v-stamp {
  color: var(--stamp-green);
}

/* A hit is printed on green stock, not just stamped in green ink. The verdict was
   carried entirely by a small rotated stamp; the card itself now says it too.
   `.guess-card.correct` follows this rule and overrides it — the answer keeps the
   brightest stock on the board. */
.guess-card.tier-2 {
  background-color: var(--ticket-green);
}

/* First class is printed on canary newsprint — the yellow of the share card's square. */
.guess-card.tier-1 {
  /* Pale enough to stay clearly apart from the answer's gold Box stock. */
  background-color: #f6efc8;
}

/* The winning stub: cleaner stock, the clerk's violet, nothing else. */
.guess-card.correct {
  background-color: var(--ticket-gold);
  opacity: 1;
}

.guess-card.correct .g-name {
  font-size: 19px;
}

.guess-card.correct .v-stamp,
.guess-card.correct .v-why {
  color: var(--stamp);
}

.guess-card.correct .v-why {
  font-weight: 700;
  font-size: 12.5px;
}

/* ---------------------------------------------------------------- empty / clue */

/* 40px of nothing used to sit here, on top of the empty board's own 20px margin — 60px
   of gap on the one screen that has the least to show. */
.empty-state {
  text-align: center;
  padding: 14px 20px 4px;
  color: var(--on-ground-dim);
}

.empty-state[hidden] {
  display: none;
}

/* Five blank stubs, one per guess.
   The full-width placeholder rows that used to live on the board were removed for good
   reason — drawn at the same weight as real guesses, they read as a list of nothing. But
   removing them left the middle of the landing screen completely empty, with no focal
   point and the five-guess budget stated only in prose. These are a twentieth of the
   area, carry no numbers, and sit below the fold of attention rather than competing with
   the search box. They fill as the real cards land above them. */
.slots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 14px;
}

.slot {
  position: relative;
  width: 34px;
  height: 22px;
  border: 1px dashed var(--ticket-edge);
  border-radius: 1px;
  background: rgba(237, 227, 206, 0.55);
  opacity: 0.85;
}

/* The perforated stub edge, at stub scale. */
.slot::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 6px;
  width: 3px;
  background-image: radial-gradient(circle at 50% 50%,
      var(--ground) 0 1px, transparent 1.2px);
  background-size: 3px 5px;
  background-repeat: repeat-y;
}


/* The colour key, printed on the empty board like the legend on the back of a ticket.
   It lives here rather than in the header because this is where a first-timer is
   looking before their first guess; the ? button carries the full rules afterwards. */
.key {
  max-width: 420px;
  margin: 16px auto 0;
  padding-top: 16px;
  border-top: 1px dashed var(--ticket-edge);
  text-align: left;
  font-family: var(--chrome);
}

.key dt {
  margin-top: 11px;
  color: var(--ticket-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.key dt:first-child {
  margin-top: 0;
}

/* Chip in a fixed left column, description in the second — every row starts at the same
   place, and a long description wraps under itself instead of under the chip. */
.key dd {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 9px;
  align-items: baseline;
  margin: 4px 0 0;
  color: var(--on-ground-dim);
  font-size: 11px;
  line-height: 1.5;
}

.key dd .key-chip {
  justify-self: start;
}

.key dt + dd {
  margin-top: 6px;
}

.key-chip {
  display: inline-block;
  margin-right: 3px;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 1px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Not decoration — these are the three inks the verdict stamps are printed in, so the
   key and the board are unmistakably the same vocabulary. */
.key-chip.green {
  color: var(--stamp-green);
}

.key-chip.yellow {
  color: var(--stamp-amber);
}

.key-chip.grey {
  color: var(--ticket-faint);
}

/* At 13px in the chrome face the ? read as a thin hairline next to the drawn calendar
   glyph, which has a 1px border all round. Bigger and heavier so the two carry equal
   weight in the row. */
.help-icon {
  display: inline-block;
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  color: var(--ticket-ink);
}

.clue-rack {
  margin-top: 18px;
  padding: 14px 16px 15px 26px;
}

.clue-rack[hidden] {
  display: none;
}

.clue-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.clue-title {
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ticket-faint);
  font-weight: 700;
}

.clue-left {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ticket-faint);
  opacity: 0.8;
}

.clue {
  margin-top: 12px;
  border-left: 2px solid var(--ticket-edge);
  padding-left: 12px;
  animation: slam 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.clue-label {
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stamp);
  font-weight: 700;
}

.clue-text {
  font-family: var(--telugu);
  font-size: 14px;
  color: var(--ticket-ink);
  line-height: 1.5;
  margin-top: 5px;
}

.clue-btn {
  margin-top: 13px;
  width: 100%;
  background: transparent;
  color: var(--ticket-ink);
  border: 1px dashed var(--ticket-edge);
  border-radius: 1px;
  padding: 10px;
  font-family: var(--chrome);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.14s;
}

.clue-btn:hover:not(:disabled) {
  border-style: solid;
  background: rgba(36, 28, 19, 0.09);
}

.clue-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ======================================================================= footer */

.foot {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.attribution {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ticket-faint);
  opacity: 0.7;
}

.ghost-btn,
.gold-btn {
  font-family: var(--chrome);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 11px 22px;
  border-radius: 1px;
  cursor: pointer;
  transition: 0.14s;
}

/* The unfilled button. It appears on paper (share sheet) and on the dark ground
   (give up), and ink-on-paper is invisible against the ground — so the base case is
   paper and the footer overrides it. */
.ghost-btn {
  background: transparent;
  border: 1px solid var(--ticket-edge);
  color: var(--ticket-ink);
}

.ghost-btn:hover {
  border-color: var(--ticket-ink);
  background: rgba(36, 28, 19, 0.09);
}

.foot .ghost-btn {
  color: var(--on-ground);
}

.foot .ghost-btn:hover {
  border-color: var(--stamp-red);
  color: #d98b7f;
  background: transparent;
}

/* Named for its old role; it is now simply the printed, inked button. */
.gold-btn {
  background: var(--ticket-ink);
  border: 1px solid var(--ticket-ink);
  color: var(--on-ink);
  text-transform: uppercase;
}

.gold-btn:hover {
  background: #3a2d1e;
}

body.finished .search-frame,
body.finished .era-frame,
body.finished .clue-rack,
body.finished #giveup-btn {
  display: none;
}

/* The mirror image of `.finished`: before the first guess there is nothing to be stuck
   on and nothing to give up, so the clue rack and the give-up button are noise. Landing
   on a screen that offers surrender as one of five things you could do is the single
   biggest reason it reads as complicated. */
body.fresh .clue-rack,
body.fresh #giveup-btn {
  display: none;
}

/* `hidden` is only the default state; once the board is closed this is the way back in. */
body.finished #reopen-btn[hidden] {
  display: inline-block;
}

/* ====================================================================== overlays */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  background: rgba(46, 39, 28, 0.62);
  backdrop-filter: blur(3px);
  padding: calc(22px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
           calc(40px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  /* A scrolling sheet must not hand its overscroll to the page behind it. */
  overscroll-behavior: contain;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.overlay[hidden] {
  display: none;
}

.intro-card {
  position: relative;
  width: min(100%, 360px);
  padding: 34px 28px 26px;
  text-align: center;
}

.intro-title {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ticket-ink);
}

/* The walkthrough. Three steps that SHOW the board rather than listing rules — the old
   version was eight bullets, two of which were a full sentence of colour logic each. */
/* A game played through, top to bottom. The connecting rules make it read as a sequence
   of moves rather than three unrelated examples — which is the thing a newcomer is
   actually missing: that guesses chain toward the answer. */
.demo-play {
  margin-top: 14px;
  padding-left: 13px;
  border-left: 1px dashed var(--ticket-edge);
}

.demo-play .demo-card {
  position: relative;
}

.demo-play .demo-card::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 9px;
  height: 1px;
  background: var(--ticket-edge);
}

/* Five cards is a taller step, so they tighten up. */
.demo-play .demo-card {
  margin-top: 6px;
  padding: 7px 9px;
}

.demo-play .demo-why {
  margin-top: 1px;
}

/* The case tag. This is what stops the two rule blocks reading as one: an
   unmissable banner naming which of the two situations you are looking at, in the same
   words the board key uses. */
.intro-case {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 10px;
  border: 1px solid var(--ticket-ink);
  border-radius: 1px;
  background: var(--ticket-ink);
  color: var(--on-ink);
  font-family: var(--chrome);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.intro-case + .intro-lead {
  margin-top: 11px;
}

/* Marks each example with what kind of thing it is, so the two cases stay distinct even
   for someone flicking through without reading. */
.demo-card .demo-type {
  flex: none;
  margin-left: 6px;
}

/* Step one's headline. The premise of the whole game gets the display face and enough
   size to be read before anything else on the card. */
.intro-hero {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ticket-ink);
}

.intro-hero + .intro-lead {
  margin-top: 9px;
}

.intro-lead {
  margin-top: 14px;
  color: var(--ticket-ink);
  font-family: var(--telugu);
  font-size: 15px;
  line-height: 1.4;
}

/* The supporting text under each step. It was a paragraph, which is the wrong shape for
   what it actually is — three or four separate facts you scan, not a sentence you read. */
.intro-facts {
  margin-top: 12px;
  list-style: none;
  color: var(--ticket-faint);
  font-family: var(--telugu);
  font-size: 12.5px;
  line-height: 1.45;
}

.intro-facts li {
  position: relative;
  padding-left: 14px;
  margin-top: 5px;
}

.intro-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--ticket-edge);
}

/* The four jobs, as tappable-looking tokens rather than a comma list. */
.intro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.intro-chips span {
  border: 1px solid var(--ticket-edge);
  border-radius: 1px;
  padding: 4px 9px;
  color: var(--ticket-ink);
  font-family: var(--chrome);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

/* The colour rule, as a two-column key. Reuses `.key-chip` from the board, so the swatch
   a first-timer learns here is the exact one they meet on the empty board. */
.intro-key {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: baseline;
  margin-top: 12px;
}

.intro-key dd {
  color: var(--ticket-faint);
  font-family: var(--telugu);
  font-size: 12.5px;
  line-height: 1.35;
}

/* `.intro-card` centres everything, which is right for the title and wrong for all of
   this: centred rows in the two-column key wander away from their chips, and a centred
   list item leaves its dash stranded at the far left. */
.intro-step {
  text-align: left;
}

.intro-step[hidden] {
  display: none;
}

/* A miniature of the search box. */




/* Blinks so the box reads as live rather than as a screenshot of an empty field. */



/* Verdict miniatures. The tier classes and `.v-stamp` are the board's own, so these
   examples are inked by the same rules the real cards are. */
/* Stock, border and shadow all come from `.paper`, exactly as a real guess card gets
   them — an example cannot drift away from the thing it illustrates if it is made of the
   same parts. */
.demo-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 9px 11px;
}

/* Exactly the board's own tier colours. `background-color`, never the `background`
   shorthand — the shorthand resets `background-image` and would strip the creases and
   mottle `.paper` paints, which is why the real cards use the longhand too. */
.demo-card.tier-0 {
  opacity: 0.92;
}

.demo-card.tier-2 {
  background-color: var(--ticket-green);
}

.demo-card.correct {
  background-color: var(--ticket-gold);
  opacity: 1;
}

/* The board overrides the tier-2 green here — ADMIT ONE is stamped in the clerk's violet,
   not the verdict green. Without this the example printed a green stamp the game never
   shows. */
.demo-card.correct .v-stamp,
.demo-card.correct .demo-why {
  color: var(--stamp);
}

.demo-card .v-stamp {
  flex: none;
  margin-left: auto;
  font-size: 8.5px;
  transform: rotate(-4deg);
}

.demo-card.tier-0 .v-stamp { color: var(--ticket-faint); }
.demo-card.tier-1 .v-stamp { color: var(--stamp-amber); }
.demo-card.tier-2 .v-stamp { color: var(--stamp-green); }

.demo-name {
  font-family: var(--telugu);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ticket-ink);
}

.demo-type,
.demo-why {
  font-family: var(--chrome);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ticket-faint);
}

.demo-why {
  order: 3;
  flex-basis: 100%;
  margin-top: -2px;
  letter-spacing: 0.1em;
}

.demo-card {
  flex-wrap: wrap;
}

.intro-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.intro-count {
  margin-left: auto;
  color: var(--ticket-faint);
  font-family: var(--chrome);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

.intro-back[hidden] {
  display: none;
}

.intro-btn {
  margin-left: auto;
  padding: 10px 24px;
  cursor: pointer;
}

.poster-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 26px 24px 24px 32px;
  animation: slam 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
  border: 7px solid var(--ticket-ink);
  outline: 1px dashed var(--ticket-edge);
  outline-offset: -4px;
  box-shadow: 0 0 25px rgba(216, 198, 162, 0.45), 0 20px 40px rgba(0, 0, 0, 0.8);
}

#win-overlay .poster-card {
  border-color: var(--ticket-ink);
  outline: 1px dashed var(--stamp-amber);
  box-shadow:
    0 0 0 3px rgba(216, 198, 162, 0.72),
    0 0 0 6px rgba(138, 85, 16, 0.62),
    0 0 28px rgba(216, 198, 162, 0.38),
    0 22px 46px rgba(0, 0, 0, 0.86);
}

.close-x {
  position: absolute;
  top: 9px;
  right: 12px;
  z-index: 3;
  background: transparent;
  border: 0;
  color: var(--ticket-faint);
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
}

.close-x:hover {
  color: var(--ticket-ink);
}

.win-burst {
  text-align: center;
  margin-bottom: 20px;
}

.win-burst .theater-stamp {
  margin-bottom: 12px;
}

.win-title {
  font-family: var(--telugu);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  color: var(--ticket-ink);
  text-shadow: 0 1px 0 rgba(255, 250, 235, 0.5);
}

/* Telugu first, English under it. Telugu gets no tracking: spacing the letters pulls each
   vowel sign off its consonant. */
.win-sub-te {
  display: block;
  font-family: var(--telugu);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ticket-ink);
}

.win-sub-en {
  display: block;
  margin-top: 4px;
}

.stamp-te {
  font-family: var(--telugu);
  letter-spacing: 0;
}

/* The countdown to tomorrow's puzzle, under the share buttons. */
.win-next {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
}

.win-next[hidden] {
  display: none;
}

.win-next-k {
  color: var(--ticket-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.win-next-v {
  color: var(--ticket-ink);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.win-next-out {
  color: var(--stamp);
  font-family: var(--chrome);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.win-sub {
  font-size: 8.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ticket-faint);
  margin-top: 8px;
  font-weight: 600;
}

.answer-film {
  display: grid;
  grid-template-columns: minmax(0, 128px) minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
}

.answer-poster {
  width: 128px;
  border-radius: 1px;
  border: 1px solid var(--ticket-edge);
  flex: none;
}

.answer-body {
  min-width: 0;
  grid-column: 2;
}

.answer-body:first-child {
  grid-column: 1 / -1;
}

.answer-credits {
  grid-column: 1 / -1;
  margin-top: -4px;
}

.a-title {
  font-family: var(--telugu);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ticket-ink);
  text-transform: uppercase;
}

.a-te {
  font-family: var(--telugu);
  font-size: 15px;
  color: var(--ticket-faint);
  margin-top: 2px;
}

.a-meta {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ticket-faint);
  margin-top: 8px;
  font-weight: 600;
}

.a-tagline {
  font-family: var(--telugu);
  font-size: 14px;
  color: var(--stamp);
  margin-top: 11px;
  font-style: italic;
  line-height: 1.35;
}

.a-fact {
  display: flex;
  gap: 9px;
  margin-top: 9px;
  align-items: baseline;
}

.a-k {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ticket-faint);
  flex: none;
  width: 84px;
  text-align: left;
  font-weight: 700;
  padding-top: 2px;
}

.a-v {
  font-family: var(--telugu);
  font-size: 14px;
  color: var(--ticket-ink);
  line-height: 1.35;
}

.share-block {
  margin-top: 22px;
  border-top: 1px dashed var(--ticket-edge);
  padding-top: 17px;
}

.share-preview {
  font-family: var(--telugu);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  border: 1px dashed var(--ticket-edge);
  border-radius: 1px;
  padding: 12px;
  color: var(--ticket-ink);
}

/* ======================================================================= report */

/* The way in, under the share block — the credits are only visible once the puzzle is
   over, so this is the first moment a player can spot a wrong one. Quiet on purpose:
   it is a safety valve, not a call to action. */
.report-link {
  display: block;
  margin: 14px auto 0;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px dashed var(--ticket-edge);
  background: none;
  color: var(--ticket-faint);
  font-family: var(--chrome);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.report-link:hover,
.report-link:focus-visible {
  color: var(--stamp);
  border-bottom-color: var(--stamp);
}

/* Once a report is away, the link stops asking and starts confirming. It stays tappable
   — a player may spot a second mistake on the same film. */
.report-link.is-done {
  color: var(--stamp-green);
  border-bottom-color: var(--stamp-green);
}

.report-film {
  margin-bottom: 18px;
  color: var(--ticket-faint);
  font-family: var(--telugu);
  font-size: 13px;
}

.report-field {
  position: relative;
  margin-bottom: 17px;
}

.report-field[hidden] {
  display: none;
}

.report-k {
  display: block;
  margin-bottom: 7px;
  color: var(--ticket-faint);
  font-family: var(--chrome);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* "optional" rides along inside the label rather than taking a line of its own. */
.report-opt[hidden] {
  display: none;
}

.report-opt {
  margin-left: 5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  opacity: 0.7;
}

.report-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-kind,
.report-chip {
  border: 1px solid var(--ticket-edge);
  border-radius: 1px;
  background: rgba(36, 28, 19, 0.03);
  color: var(--ticket-ink);
  font-family: var(--chrome);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 9px 12px;
  min-height: 40px;
  cursor: pointer;
}

.report-kind.is-on {
  border-color: var(--stamp);
  box-shadow: inset 0 0 0 1px var(--stamp);
  color: var(--stamp);
  font-weight: 700;
}

.report-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin-bottom: 9px;
}

.report-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  padding: 7px 10px;
  min-height: 36px;
}

/* Which verdict this guess got, so the two kinds of report are told apart at a glance. */
.chip-mark {
  font-size: 9px;
  line-height: 1;
}

.chip-mark.yes {
  color: var(--stamp-green);
}

.chip-mark.no {
  color: var(--ticket-faint);
}

.report-chip.is-on {
  border-color: var(--stamp);
  box-shadow: inset 0 0 0 1px var(--stamp);
  color: var(--stamp);
  font-weight: 700;
}

#report-search,
#report-details,
#report-note {
  width: 100%;
  border: 0;
  border-bottom: 1px dashed var(--ticket-edge);
  background: transparent;
  outline: none;
  color: var(--ticket-ink);
  font-family: var(--telugu);
  /* 16px is the floor that stops iOS zooming the page when the field takes focus. */
  font-size: 16px;
  padding: 6px 2px;
}

#report-search:focus,
#report-details:focus,
#report-note:focus {
  border-bottom-color: var(--ticket-ink);
}

/* Anchored to its own field rather than to the search frame, and shorter than the guess
   box's list because it opens halfway down a sheet. Positioning, scroll and touch
   behaviour all come from `.suggestions`; the stock comes from `paper`. */
.report-suggestions {
  max-height: 210px;
}

.report-suggestions:empty {
  display: none;
}

.report-picked {
  margin-top: 9px;
  color: var(--stamp);
  font-family: var(--telugu);
  font-size: 15px;
  font-weight: 700;
}

.report-picked[hidden] {
  display: none;
}

/* `.select-input` is 82px of centred display type, sized for a 4-digit year — "Production
   house" needs the whole row and a reading face. The wrapper comes along for its chevron. */
#report-role {
  width: 100%;
  font-family: var(--chrome);
  /* 16px is the floor that stops iOS zooming the page when a form control takes focus —
     selects count, not just text inputs. */
  font-size: 16px;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 6px 26px 6px 10px;
}

.report-send {
  width: 100%;
  margin-top: 4px;
}

.report-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.share-actions {
  display: flex;
  gap: 10px;
  margin-top: 13px;
}

.sheet-title {
  font-family: var(--telugu);
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--ticket-ink);
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat {
  border: 1px solid var(--ticket-edge);
  border-radius: 1px;
  padding: 12px 6px;
  text-align: center;
}

.stat-v {
  font-family: var(--display);
  font-size: 23px;
  color: var(--ticket-ink);
}

.stat-k {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ticket-faint);
  margin-top: 4px;
  font-weight: 600;
}

.dist {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dist-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--ticket-faint);
}

.dist-bar {
  background: var(--ticket-ink);
  color: var(--on-ink);
  border-radius: 1px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
  min-width: 22px;
}

.dist-bar.empty {
  background: var(--ticket-edge);
  padding: 0;
  min-width: 3px;
}

.dist-k {
  width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.archive-calendar {
  margin-top: 14px;
  padding: 10px 0 0;
  border-top: 2px solid var(--ticket-ink);
  background: rgba(255, 250, 235, 0.18);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 9px;
  color: var(--ticket-ink);
  font: 700 19px var(--chrome);
  letter-spacing: 0;
  text-transform: none;
}

/* 44x44 is the HIG minimum and these are the primary control in the archive sheet.
   The inked glyph stays small; the tappable box is grown to reach it. */
.calendar-nav {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  color: var(--ticket-ink);
  background: var(--ticket-lit);
  font: 21px/18px var(--chrome);
  cursor: pointer;
}

.calendar-nav:hover:not(:disabled) {
  border-color: var(--stamp);
  color: var(--stamp);
}

.calendar-nav:disabled {
  color: rgba(96, 82, 59, 0.55);
  background: rgba(120, 96, 58, 0.10);
  cursor: default;
}

.calendar-weekdays,
.calendar-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  text-align: center;
  width: 100%;
}

.calendar-weekdays {
  margin-top: 0;
  padding: 6px 0;
  color: var(--on-ink);
  background: var(--ticket-ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.calendar-grid {
  margin-top: 0;
  border-left: 1px solid var(--ticket-edge);
  border-top: 1px solid var(--ticket-edge);
}

.calendar-day {
  /* Anchors the `today` dot; without it the dot escapes to the nearest positioned
     ancestor and lands somewhere else entirely. */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  color: rgba(96, 82, 59, 0.62);
  font: 600 15px var(--chrome);
  border-right: 1px solid var(--ticket-edge);
  border-bottom: 1px solid var(--ticket-edge);
}

button.calendar-day {
  appearance: none;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-right: 1px solid var(--ticket-edge);
  border-bottom: 1px solid var(--ticket-edge);
  border-radius: 0;
  color: var(--ticket-ink);
  background: rgba(230, 215, 184, 0.42);
  cursor: pointer;
}

button.calendar-day:hover,
button.calendar-day:focus-visible {
  background: rgba(87, 49, 140, 0.14);
  box-shadow: inset 0 0 0 2px var(--stamp);
  outline: none;
}

/* Open to you: the clerk's violet, the same ink the date stamp is in. */
button.calendar-day.playable {
  color: var(--stamp);
  background: rgba(87, 49, 140, 0.13);
  box-shadow: inset 0 -3px 0 var(--stamp);
}

/* Already solved — the green verdict ink, inked solid so a filled square reads as
   "done" from across the grid without having to be counted. */
button.calendar-day.solved {
  color: var(--on-ink);
  background: var(--stamp-green);
  box-shadow: none;
}

button.calendar-day.missed {
  color: var(--on-ink);
  background: var(--stamp-red);
  box-shadow: none;
}

button.calendar-day.solved:hover,
button.calendar-day.solved:focus-visible,
button.calendar-day.missed:hover,
button.calendar-day.missed:focus-visible {
  background: var(--stamp);
  color: var(--on-ink);
}

/* Today: a dot under the number. Deliberately NOT a box-shadow — that is the property
   the three state colours use, so a ring here overwrote the violet "playable" underline
   and left today looking like a different kind of day rather than a marked one. ::after
   composes with any state. */
button.calendar-day.today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}

/* The puzzle on the board right now. `outline` for the same reason — it stacks on top of
   whatever the cell already is instead of replacing it. */
button.calendar-day.current {
  outline: 2px solid var(--ticket-ink);
  outline-offset: -2px;
  font-weight: 700;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 10px 2px;
  color: var(--ticket-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  border: 1px solid var(--ticket-edge);
}

.legend-swatch.playable {
  background: rgba(87, 49, 140, 0.13);
  border-bottom: 3px solid var(--stamp);
}

.legend-swatch.solved {
  background: var(--stamp-green);
}

.legend-swatch.missed {
  background: var(--stamp-red);
}

/* Matches the dot drawn under today's number in the grid. */
.legend-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ticket-ink);
}

.calendar-day.blank {
  min-height: 0;
  background: rgba(120, 96, 58, 0.08);
}

.calendar-weekdays > span,
.calendar-grid > .calendar-day {
  min-width: 0;
}

/* ======================================================================== small */

@media (max-width: 420px) {
  .wordmark {
    font-size: 25px;
  }

  .win-title {
    font-size: 29px;
  }

  .guess-counter {
    font-size: 10px;
    padding: 0 11px;
  }

  .g-verdict {
    max-width: 46%;
  }

  .v-why {
    font-size: 10.5px;
  }

  .answer-poster {
    width: 104px;
  }

  .answer-film {
    grid-template-columns: minmax(0, 104px) minmax(0, 1fr);
    gap: 12px;
  }

  #win-overlay .poster-card {
    padding-left: 25px;
    padding-right: 19px;
  }

  .a-k {
    width: 60px;
  }

  .masthead-inner,
  .puzzle-strip {
    padding-left: 22px;
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .guess-card,
  .clue,
  .poster-card {
    animation: none;
  }

  /* The block used to stop at animations and leave every transition running — the toast
     still slid, every button still eased. */
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}