/* Aurora: Pictionary, Differences, Escape room, Truth or lie, Telephone, Pronunciation
   Owned by the "games-b" screen group, and only by it. Loaded after /style.css and
   /aurora/base.css, so a rule here overrides both. Never edit style.css or
   base.css from here: use the tokens (--au-*, --ink, --muted...) and the base
   pieces (.card, .btn.brand, .au-hero, .au-tile, .au-chip, .au-stat, .au-ring,
   .au-progress, .seg/.tabs, .au-row, .au-dock...) described in base.css.
   Scope every rule to this group's own classes.

   Each game's root is `.gb .gb-<game>` and carries its hue as `--g` ("r g b",
   from web/shared/hues.ts). The hue only ever shows as a glow or a dot.
   Also here: the common game strip (.banner, used by every game) and the
   sentence practice cards (.sp-*, vocabulary and reading quizzes). */

/* ---------- the game root ---------- */

.gb {
  --hue: rgb(var(--g, 154 131 255));
  /* Warm hues go muddy at full strength: they glow at about half. */
  --g-o: 0.42;
  width: 100%; max-width: 1040px; margin-inline: auto;
}
.gb-pic, .gb-pr { --g-o: 0.26; }
.gb.stack { gap: 16px; }
.gb .card h3 { margin: 0; }
.gb .muted .i { width: 15px; height: 15px; vertical-align: -3px; }

/* A quiet well inside a glass card: a tint and a hairline, visible in both
   themes (night: white over navy; polar day: navy over white). */
.gb :is(.statement, .chain-step, .pic-entry, .clue, .tl-mine, .es-answer) {
  border: 0;
  background: rgb(var(--fg) / 0.05);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--line);
}

/* The big round picture of a moment (sent, opened, the answer). */
.gb .hero-icon {
  width: 64px; height: 64px; margin: 0 auto 8px; border: 0; border-radius: 22px; color: var(--ink);
  background:
    radial-gradient(70px 70px at 78% 12%, rgb(var(--g, 154 131 255) / 0.5), transparent 72%),
    linear-gradient(var(--au-glass-hi) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--line), 0 14px 26px -14px rgba(0, 0, 0, 0.55);
}
.gb .hero-icon.ok {
  color: var(--au-teal);
  background: radial-gradient(70px 70px at 78% 12%, color-mix(in srgb, var(--au-teal) 45%, transparent), transparent 72%), linear-gradient(var(--au-glass-hi) 0 0);
}

/* ---------- the strip on top of every game (.banner) ---------- */

/* Not a flat orange slab: a small hero, violet night with the game's hue
   glowing in the top-right and a teal one bottom-left. A dark island in the
   polar day too. */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  border: 0; border-radius: var(--au-r-card); padding: 16px 20px;
  color: #f3f7ff;
  font: 600 18px/1.35 var(--display); letter-spacing: -0.01em;
  background:
    radial-gradient(280px 200px at calc(100% + 30px) -50px, rgb(var(--g, 154 131 255) / calc(var(--g-o, 0.42) + 0.08)), transparent 70%),
    radial-gradient(220px 180px at -40px calc(100% + 40px), rgb(62 230 200 / 0.24), transparent 70%),
    var(--au-hero-violet);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 36px -20px rgba(0, 0, 0, 0.65);
}
.banner b { font-weight: 700; }
.banner .i { width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }
.banner.center { text-align: center; }
.banner.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.banner .pill.glass { font-family: var(--display); font-size: 14px; }
.banner .pill.glass .i { width: 15px; height: 15px; margin: 0; vertical-align: -3px; }
/* Verdicts: teal for "got it", pink for "not this time". */
.banner.ok {
  background:
    radial-gradient(300px 220px at calc(100% + 30px) -50px, rgb(62 230 200 / 0.55), transparent 70%),
    radial-gradient(220px 180px at -40px calc(100% + 40px), rgb(154 131 255 / 0.3), transparent 70%),
    var(--au-hero-navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 36px -18px rgba(34, 195, 166, 0.55);
}
.banner.bad {
  background:
    radial-gradient(300px 220px at calc(100% + 30px) -50px, rgb(255 93 122 / 0.5), transparent 70%),
    radial-gradient(220px 180px at -40px calc(100% + 40px), rgb(154 131 255 / 0.3), transparent 70%),
    var(--au-hero-violet);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 36px -18px rgba(255, 93, 122, 0.5);
}
/* The quiet strip: a glass card with a small glow of the game. */
.banner.soft {
  color: var(--ink);
  font: 600 15.5px/1.45 var(--font); letter-spacing: 0;
  background-color: var(--au-glass-base);
  background-image: radial-gradient(150px 130px at calc(100% - 8px) 0, rgb(var(--g, 154 131 255) / var(--g-o, 0.42)), transparent 72%), var(--au-glass);
  box-shadow: var(--au-shadow);
}
/* The island keeps the night's ink in the polar day. */
:root[data-theme="light"] .banner:not(.soft, .coach-banner) {
  --ink: #f3f7ff; --ink-2: #c9d6ef; --muted: #a3b3d2; --fg: 255 255 255;
  --line: rgba(255, 255, 255, 0.08); --line-hi: rgba(255, 255, 255, 0.14);
  --ok: #3fe0a5; --bad: #ff5d7a; --warn: #ffc94d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 34px -18px rgba(30, 70, 130, 0.45);
}
@media (max-width: 480px) {
  .banner { padding: 14px 16px; font-size: 16.5px; border-radius: 22px; }
  .banner.soft { font-size: 14.5px; }
}

/* ---------- Pictionary ---------- */

.pic-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
@media (max-width: 700px) { .pic-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1024px) { .pic-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; } }
.pic-main { gap: 12px; }

/* The paper stays white, set in a glass frame with the game's glow. */
.pic-frame {
  padding: 10px; border-radius: 28px;
  background-color: var(--au-glass-base);
  background-image: radial-gradient(220px 170px at calc(100% - 10px) 0, rgb(var(--g) / var(--g-o)), transparent 72%), var(--au-glass);
  box-shadow: var(--au-shadow);
}
.pic-frame .canvas-wrap {
  background: var(--paper); border: 0; border-radius: 20px;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.5);
}
@media (max-width: 480px) {
  .pic-frame { padding: 6px; border-radius: 22px; }
  .pic-frame .canvas-wrap { border-radius: 16px; }
}

/* The drawer's tools: one glass bar. */
.pic-tools.card { padding: 10px 12px; gap: 8px; border-radius: 22px; }
.pic-tools .swatch {
  width: 30px; height: 30px; border: 0;
  box-shadow: inset 0 0 0 1px rgba(13, 33, 64, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 4px 10px -6px rgba(0, 0, 0, 0.6);
}
.pic-tools .swatch.on { outline: 2px solid var(--au-teal); outline-offset: 3px; transform: scale(1.06); }
.pic-sep { width: 1px; height: 24px; margin: 0 4px; background: var(--line-hi); }
.pic-tools [data-act="pic-size"] { width: 38px; height: 34px; padding: 0; display: inline-grid; place-items: center; }
.pic-tools [data-act="pic-size"]:not(.ghost) { color: var(--au-teal); box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 2px var(--au-teal); }
.pic-tools :is([data-act="pic-undo"], [data-act="pic-clear"]) { width: 38px; height: 34px; padding: 0; display: inline-grid; place-items: center; }
@media (max-width: 480px) {
  .pic-tools.card { padding: 8px 10px; gap: 6px; }
  .pic-tools .swatch { width: 26px; height: 26px; }
  .pic-sep { display: none; }
}

/* Picking the word to draw: three glass tiles. */
.pic-choose { padding: 22px; }
.pic-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; width: 100%; }
.pic-opt.btn.ghost {
  min-height: 68px; border-radius: 20px; white-space: normal;
  font: 600 19px/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink);
  background-color: var(--au-glass-base);
  background-image: radial-gradient(110px 100px at calc(100% - 6px) 0, rgb(var(--g) / var(--g-o)), transparent 72%), var(--au-glass);
  box-shadow: var(--au-shadow);
}
@media (hover: hover) and (pointer: fine) { .pic-opt.btn.ghost:hover { transform: translateY(-1px); filter: brightness(1.08); background-color: var(--au-glass-base); } }
.pic-word {
  display: inline-block; margin-left: 6px; padding: 2px 12px; border-radius: 12px;
  font: 700 26px/1.2 var(--display); letter-spacing: -0.02em; color: #fff;
  background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.pic-reveal { padding: 22px; }
.pic-reveal .au-chip.big { font: 600 18px/1.2 var(--display); min-height: 40px; padding: 0 16px; }

/* The side: the hint, the guess box and the log. */
.pic-side { align-content: start; gap: 12px; }
.pic-side .au-eyebrow { margin-bottom: 6px; }
.pic-side .hint {
  padding: 12px 14px; border-radius: 16px; text-align: center; word-break: break-word;
  font-size: 26px; letter-spacing: 0.22em; color: var(--ink);
  background: rgb(var(--fg) / 0.05); box-shadow: inset 0 0 0 1px var(--line);
}
.pic-side .guess-log { gap: 6px; }
@media (min-width: 1024px) { .pic-side .guess-log { max-height: 380px; } }
.pic-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 8px 10px; border-radius: 12px; font-size: 14px; line-height: 1.35; }
.gb .pic-entry.solved {
  background: color-mix(in srgb, var(--au-teal) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--au-teal) 40%, transparent);
}
.pic-entry .btn.small { margin-left: auto; }
/* Nothing to show beside the canvas yet (picking a word, between turns): the
   side stays in its column, so the canvas keeps the place and width it has in
   play (its bitmap is sized once, on mount). Instead of an empty glass pill it
   stretches to the canvas height as a quiet "guesses go here" panel. */
@media (min-width: 701px) {
  .pic-grid:not(:has(> .pic-side :is(.pic-entry, .guess-form, #pic-hint > *))) > .pic-side {
    align-self: stretch; place-content: center; justify-items: center;
    position: relative; min-height: 160px;
  }
  .pic-grid:not(:has(> .pic-side :is(.pic-entry, .guess-form, #pic-hint > *))) > .pic-side::before {
    content: ''; position: absolute; inset: 10px; border-radius: 18px;
    border: 1.5px dashed var(--line-hi); pointer-events: none;
  }
  .pic-grid:not(:has(> .pic-side :is(.pic-entry, .guess-form, #pic-hint > *))) > .pic-side::after {
    content: ''; width: 44px; height: 44px; opacity: 0.35; background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* ---------- Differences ---------- */

.diff-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
@media (max-width: 760px) { .diff-layout { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1024px) { .diff-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; } }
#df-top.stack { gap: 12px; }
.df-teams.card { padding: 12px 16px; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.df-team::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; background: var(--side-a); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--side-a) 60%, transparent); }
.df-team.side-b::before { background: var(--side-b); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--side-b) 60%, transparent); }
.df-found.au-chip.big { font: 600 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.df-found .i { width: 16px; height: 16px; }
.df-board.card { padding: 16px; }
.df-help { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; }

.gb .scene-label { font: 600 12px/1 var(--display); color: var(--muted); }
.gb .cell {
  border: 0; border-radius: 14px; background: var(--paper); color: var(--paper-ink);
  box-shadow: inset 0 -3px 0 rgba(13, 33, 64, 0.07), 0 6px 14px -9px rgba(0, 0, 0, 0.55);
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2);
}
/* The cell's state is a ring and a glow in one colour (--ring). A found or
   flagged cell always shows as such, whoever marked it. */
:root[data-theme="light"] .gb .cell:not(.mine, .found, .diff, .shake) { box-shadow: inset 0 -3px 0 rgba(13, 33, 64, 0.07), inset 0 0 0 1px rgba(13, 33, 64, 0.08), 0 6px 14px -9px rgba(30, 70, 130, 0.45); }
.gb .cell:is(.mine, .found, .diff, .shake) { box-shadow: 0 0 0 3px var(--ring), 0 0 18px 2px color-mix(in srgb, var(--ring) 55%, transparent); }
.gb .cell.mine { --ring: var(--side-a); }
.gb .cell.side-b.mine { --ring: var(--side-b); }
.gb .cell.found, .gb .cell.side-b.found { --ring: #22c3a6; background: #e6fbf6; }
.gb .cell.diff, .gb .cell.side-b.diff { --ring: var(--au-gold); background: #fff4d6; }
.gb .cell.shake, .gb .cell.side-b.shake { --ring: #ff5d7a; }
.gb .cell.theirs::after {
  top: 4px; right: 4px; width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 50%; font-size: 11px; background: rgba(13, 33, 64, 0.78);
}
.gb .cell.found::before {
  content: '✓'; top: 4px; left: 4px; width: 18px; height: 18px; display: grid; place-items: center;
  border-radius: 50%; background: #22c3a6; color: #053a33; font: 900 11px/1 var(--font);
}
@media (max-width: 480px) {
  .df-board.card { padding: 12px; }
  .gb .scene-grid { gap: 4px; }
  .gb .cell { border-radius: 10px; padding: 2px; }
  .gb .cell:is(.mine, .found, .diff, .shake) { box-shadow: 0 0 0 2px var(--ring), 0 0 12px 1px color-mix(in srgb, var(--ring) 50%, transparent); }
  .gb .cell.found::before { width: 14px; height: 14px; font-size: 9px; top: 2px; left: 2px; }
  .gb .cell.theirs::after { width: 16px; height: 16px; font-size: 9px; top: 2px; right: 2px; }
}

/* The words beside the grid: chips grouped under eyebrows. */
.df-vocab.card { padding: 16px; gap: 14px; }
.df-vocab h4 { margin: 0 0 6px; font: 700 11px/14px var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--au-teal); }
.df-vocab .chips { gap: 6px; }
.df-vocab .chips span {
  padding: 3px 10px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgb(var(--fg) / 0.06); box-shadow: inset 0 0 0 1px var(--line);
}
.gb .scenes-end { gap: 16px; }
.df-scene h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; }
.df-scene h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--side-a); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--side-a) 60%, transparent); }
.df-scene.side-b h3::before { background: var(--side-b); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--side-b) 60%, transparent); }

/* ---------- Escape room ---------- */

.gb .locks { gap: 16px; }
.gb .lock.card {
  gap: 12px; border-color: transparent;
  background-color: var(--au-glass-base);
  background-image: radial-gradient(150px 140px at calc(100% - 8px) 0, rgb(var(--g) / 0.32), transparent 72%), var(--au-glass);
}
.gb .lock h3 { font-size: 17px; gap: 10px; }
.es-disc {
  width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; border-radius: 50%;
  background: linear-gradient(var(--au-glass-hi) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--line), 0 0 16px -4px rgb(var(--g) / 0.7);
}
.es-disc .i { width: 18px; height: 18px; }
.gb .lock.solved {
  border-color: transparent;
  background-color: var(--au-glass-base);
  background-image: radial-gradient(170px 150px at calc(100% - 8px) 0, color-mix(in srgb, var(--au-teal) 40%, transparent), transparent 72%), var(--au-glass);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--au-teal) 65%, transparent), var(--au-shadow);
}
.gb .lock.shake { border-color: transparent; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bad) 80%, transparent), var(--au-shadow); }
.es-open { display: grid; justify-items: center; gap: 2px; padding: 8px 0; font-family: var(--display); font-size: 17px; }
.es-role { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
/* The clue: a note in a well, a gold dot in its corner. */
.gb .clue {
  position: relative; border-radius: 16px; padding: 12px 30px 12px 14px;
  font: 600 17px/1.4 var(--display); letter-spacing: -0.005em;
}
.gb .clue::before {
  content: ''; position: absolute; top: 14px; right: 12px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--au-gold); box-shadow: 0 0 10px 2px rgba(255, 201, 77, 0.55);
}
.gb .clue.native { font: 500 14px/1.45 var(--font); color: var(--ink-2); background: transparent; }
.gb .clue.native::before { background: var(--au-teal); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--au-teal) 55%, transparent); }
.gb .clue.native .i { width: 15px; height: 15px; color: var(--au-teal); }
.gb .shelf { border-radius: 14px; padding: 10px; box-shadow: inset 0 -6px 0 #3f2b19, inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 22px -14px rgba(0, 0, 0, 0.7); }
/* The code: three boxes like the room-code boxes, then the one orange button. */
.gb .digits { grid-template-columns: repeat(3, minmax(0, 56px)) minmax(0, 1fr); gap: 8px; }
.gb .digits input { height: 56px; padding: 0; border-radius: var(--au-r-small); font: 700 24px/1 var(--display); }
.gb .digits .btn { min-height: 56px; }
.gb .wires { gap: 10px; }
.gb .wire {
  height: 24px; border: 0;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.25), 0 6px 12px -6px rgba(0, 0, 0, 0.5);
}
.gb .clock-ctl { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
.gb .clock-face { filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35)); }
.es-hours { align-items: center; }
.es-time.timer { min-width: 70px; text-align: center; font-size: 26px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.es-mins { gap: 6px; }
.es-answer { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; font-family: var(--display); }
.es-answer .i { width: 16px; height: 16px; color: var(--au-gold); }
.es-wire-dot.swatch { display: inline-block; vertical-align: middle; width: 20px; height: 20px; border: 0; cursor: default; }
@media (max-width: 480px) {
  .gb .clock-ctl { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .gb .clock-face { width: 96px; height: 96px; }
  .gb .digits { grid-template-columns: repeat(3, minmax(0, 50px)) minmax(0, 1fr); gap: 6px; }
  .gb .digits input, .gb .digits .btn { height: 50px; min-height: 50px; }
}

/* ---------- Truth or lie ---------- */

.gb .statement {
  grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  border-radius: 18px; padding: 12px 14px;
}
.gb .statement .num {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  font: 700 17px/1 var(--display); color: var(--ink);
  background: linear-gradient(var(--au-glass-hi) 0 0);
  box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--line), 0 0 16px -4px rgb(var(--g) / 0.8);
}
.gb .statement .text { font-size: 17px; font-weight: 600; line-height: 1.4; }
.gb .statement.lie {
  background: radial-gradient(150px 120px at calc(100% - 6px) 0, color-mix(in srgb, var(--bad) 26%, transparent), transparent 72%), rgb(var(--fg) / 0.05);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bad) 75%, transparent), 0 10px 24px -14px color-mix(in srgb, var(--bad) 60%, transparent);
}
.gb .statement.truth {
  background: radial-gradient(150px 120px at calc(100% - 6px) 0, color-mix(in srgb, var(--au-teal) 18%, transparent), transparent 72%), rgb(var(--fg) / 0.05);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--au-teal) 50%, transparent);
}
.tl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 4px; font-size: 13px; }
.tl-form.card { gap: 12px; padding: 20px; }
.tl-write textarea.input { min-height: 64px; resize: vertical; font-size: 15.5px; }
.tl-lie-pick.pill { min-height: 38px; padding: 0 12px; gap: 8px; }
.tl-lie-pick input { margin: 0; accent-color: #ff5d7a; }
.tl-lie-pick:has(input:checked) {
  color: var(--bad);
  background: linear-gradient(color-mix(in srgb, var(--bad) 16%, transparent) 0 0), linear-gradient(var(--au-glass-base) 0 0);
  border-color: color-mix(in srgb, var(--bad) 65%, transparent);
  box-shadow: 0 0 16px -4px color-mix(in srgb, var(--bad) 55%, transparent);
}
.tl-wait.card { padding: 18px; }
.tl-mine { display: block; padding: 10px 12px; border-radius: 14px; font-weight: 600; }
.tl-body.card { gap: 10px; }
/* The vote: each sentence a glass tile; mine turns pink (I call it a lie). */
.gb .vote-btn.btn { min-height: 60px; padding: 15px 18px; border-radius: 20px; white-space: normal; text-align: left; font: 600 16.5px/1.35 var(--font); }
.gb .vote-btn.btn.ghost { color: var(--ink); background-color: var(--au-glass-base); background-image: var(--au-glass); box-shadow: var(--au-shadow); }
@media (max-width: 480px) {
  .gb .statement { grid-template-columns: auto minmax(0, 1fr); padding: 12px; gap: 10px; }
  .gb .statement > :nth-child(3) { grid-column: 2; justify-self: start; }
  .gb .statement > div:nth-child(3):empty { display: none; }
  .gb .statement .text { font-size: 16px; }
}

/* ---------- Telephone ---------- */

.gb .chain { gap: 10px; }
.gb .chain-step { position: relative; border-radius: 18px; padding: 12px 14px; animation: pop var(--dur-3) var(--ease-out); }
/* The thread between two links. */
.gb .chain > .chain-step + .chain-step::before {
  content: ''; position: absolute; left: 36px; top: -11px; width: 2px; height: 12px; border-radius: 2px;
  background: linear-gradient(var(--au-teal), var(--au-violet)); opacity: 0.75;
}
.gb .chain-step.seed { background: radial-gradient(140px 110px at calc(100% - 6px) 0, color-mix(in srgb, var(--au-green) 22%, transparent), transparent 72%), rgb(var(--fg) / 0.05); }
.tel-flag { display: inline-flex; align-items: center; align-self: center; }
.tel-flag .i { width: 22px; height: 22px; color: var(--au-green); }
.gb .chain-step .who { font-size: 12px; font-weight: 700; }
.gb .chain-step .txt { font-size: 17px; font-weight: 600; line-height: 1.35; }
.gb .card.chain { padding: 14px; }
.tel-form.card { gap: 12px; padding: 20px; }
.tel-field { display: grid; gap: 8px; }
.tel-field textarea.input { min-height: 96px; resize: vertical; font-size: 16px; }
.tel-done.card { padding: 26px 20px; }
.tel-done p { margin: 6px 0 0; }
.tel-mine { font-size: 16px; font-weight: 600; font-style: italic; }
.tel-chain-card.card { gap: 12px; }
.tel-chain-card.winner {
  background-image: radial-gradient(220px 170px at calc(100% - 8px) 0, rgba(255, 201, 77, 0.32), transparent 72%), var(--au-glass);
  box-shadow: inset 0 0 0 2px rgba(255, 201, 77, 0.7), 0 0 30px -8px rgba(255, 201, 77, 0.45), var(--au-drop);
}
@media (min-width: 1024px) {
  /* The finished chains side by side, never one long stretched list. */
  #tel-final.gb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  #tel-final.gb > .banner { grid-column: 1 / -1; }
}

/* ---------- the send button of a form card (Truth or lie, Telephone) ---------- */

/* On a wide screen the one orange button closes the card on the right, as in
   lessons and drills, never a bar the width of the card. */
@media (min-width: 1024px) {
  .gb form.card[data-form] > .btn.brand.big:last-child { justify-self: end; width: auto; min-width: 220px; }
}

/* ---------- Pronunciation ---------- */

.pr-card.card { padding: 20px; gap: 14px; justify-items: stretch; }
.pr-lang { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-lang .pill .i { width: 14px; height: 14px; color: var(--au-brand-hi); }
.gb .phrase { font: 700 clamp(24px, 4vw, 34px)/1.25 var(--display); letter-spacing: -0.02em; padding: 14px 8px 8px; }
.pr-rec { justify-items: center; }
.pr-rec .btn.big { min-width: min(260px, 100%); }
.pr-on-air {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700;
  background: color-mix(in srgb, var(--bad) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 40%, transparent);
}
.pr-live { min-height: 1.4em; font-size: 15px; }
.pr-audio { width: 100%; height: 44px; }
.pr-body { gap: 12px; }
.pr-meter { gap: 10px; flex-wrap: nowrap; }
.gb .meter { height: 10px; background: var(--line-hi); }
.gb .meter div { border-radius: inherit; background: linear-gradient(90deg, #ff5d7a, var(--au-gold), var(--au-teal)); }
.pr-meter b { min-width: 48px; text-align: right; font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.gb .stars { gap: 8px; }
.gb .stars button .i { width: 38px; height: 38px; color: var(--au-gold); }
.gb .stars button.on .i { fill: var(--au-gold); filter: drop-shadow(0 0 8px rgba(255, 201, 77, 0.55)); }
.pr-rank.card { padding: 10px; gap: 8px; }
.pr-rank .list-item { padding: 10px 12px; flex-wrap: nowrap; }
.pr-rank .list-item b { font-family: var(--display); font-weight: 600; font-size: 16px; }
.pr-stars { font: 600 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.pr-rank .rank { background: linear-gradient(var(--au-glass-hi) 0 0); box-shadow: inset 0 1px 0 var(--au-highlight), inset 0 0 0 1px var(--line); font-family: var(--display); }
@media (max-width: 480px) {
  .gb .stars button .i { width: 32px; height: 32px; }
  .pr-rank .list-item { flex-wrap: wrap; }
}

/* ---------- sentence practice (.sp-*: vocabulary and reading quizzes) ---------- */

.sp-card.card {
  gap: 14px;
  background-image: radial-gradient(170px 150px at calc(100% - 8px) 0, color-mix(in srgb, var(--au-teal) 22%, transparent), transparent 72%), var(--au-glass);
}
.sp-sentence { font: 600 clamp(19px, 2.4vw, 24px)/1.4 var(--display); letter-spacing: -0.01em; }
.sp-blank { color: var(--au-teal); border-bottom-color: currentColor; }
.sp-hint .i { color: var(--au-gold); }
.sp-options { gap: 10px; }
.sp-option.btn {
  position: relative; min-height: 54px; padding: 14px 16px; border-radius: var(--au-r-btn);
  font: 600 15.5px/1.35 var(--font);
}
.sp-option.btn.ghost { color: var(--ink); background-color: var(--au-glass-base); background-image: var(--au-glass); box-shadow: var(--au-shadow); }
/* Verdicts: a teal or pink ring and glow, and a round mark at the end. */
.sp-option.btn.right {
  opacity: 1; color: var(--ink);
  background-image: radial-gradient(120px 100px at calc(100% - 6px) 0, color-mix(in srgb, var(--au-teal) 32%, transparent), transparent 72%), var(--au-glass);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--au-teal) 85%, transparent), 0 0 22px -6px color-mix(in srgb, var(--au-teal) 60%, transparent);
}
.sp-option.btn.wrong {
  opacity: 1;
  background-image: radial-gradient(120px 100px at calc(100% - 6px) 0, rgba(255, 93, 122, 0.3), transparent 72%), var(--au-glass);
  box-shadow: inset 0 0 0 2px rgba(255, 93, 122, 0.85), 0 0 22px -6px rgba(255, 93, 122, 0.6);
}
.sp-option.right::after, .sp-option.wrong::after {
  content: '✓'; margin-left: auto; flex: none; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: #22c3a6; color: #053a33; font: 900 12px/1 var(--font);
}
.sp-option.wrong::after { content: '✕'; background: #ff5d7a; color: #fff; }
.sp-form { gap: 10px; }
.sp-form .input { min-height: 52px; font-size: 17px; }
.sp-listen { gap: 10px; flex-wrap: wrap; }
.sp-credit { color: var(--muted); }
