/* kids-shell.css — shared DOM play shell for the 18 games.
   Tokens come from design-system.css (loaded by layout.html).
   Spec: docs/superpowers/specs/2026-09-26-games-and-teacher-redesign-design.md
   Bright tokens (--sun --sky --mint --tangerine --berry) are fills and borders
   only; any text uses the -ink sibling. Guarded by test_kids_shell.py. */

/* ---- Page wrapper: neutralise Bulma's section/container around the shell ---- */
body.kids-shell-page { background: var(--paper); color: var(--ink); }
body.kids-shell-page main > .section { padding: 0 !important; }
body.kids-shell-page main > .section > .container { max-width: none !important; padding: 0 !important; margin: 0 !important; }

/* ---- Shell frame ---- */
.sw-shell {
  display: flex; flex-direction: column; min-height: 80vh; min-height: 80dvh;
  container-type: inline-size;
  font-family: var(--font-body); font-size: 17px; line-height: 1.5; color: var(--ink);
  background: var(--paper);
}
.sw-shell :focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 3px; }
:where(.sw-shell) button { font: inherit; cursor: pointer; }  /* zero-specificity reset: .sw-tile/.sw-btn sizes must win */
.sw-shell [hidden] { display: none !important; }            /* display:flex rules would otherwise defeat the hidden attribute */

/* ---- Header ---- */
.sw-shell__head { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 24px; border-bottom: var(--line); background: var(--paper); }
.sw-shell__back {
  height: var(--tap-min); border-radius: var(--r-pill); border: 2px solid var(--ink); background: transparent; color: var(--ink);
  display: flex; align-items: center; gap: 8px; padding: 0 16px; font-weight: 700; font-size: 15px; flex: none; text-decoration: none;
}
.sw-shell__back:hover { background: var(--paper-3); }
.sw-shell__titlewrap { min-width: 0; flex: 1; }
.sw-shell__title { font-family: var(--font-display); font-weight: 900; font-size: 19px; letter-spacing: -.01em; line-height: 1.2; margin: 0; }
.sw-shell__dots { display: flex; gap: 5px; margin-top: 7px; max-width: 260px; }
.sw-shell__dot { flex: 1; height: 8px; border-radius: 4px; background: var(--paper-3); }
.sw-shell__dot--first { background: var(--mint); }
.sw-shell__dot--retry { background: var(--ink-soft); }
.sw-shell__dot--current { background: var(--tangerine); }
.sw-shell__count { font-size: 15px; font-weight: 700; color: var(--ink-soft); flex: none; }
.sw-shell__stars {
  display: flex; align-items: center; gap: 6px; border: var(--line); border-radius: var(--r-pill);
  padding: 0 14px; height: var(--tap-min); font-weight: 700; color: var(--sun-ink); flex: none;
}
.sw-shell__gear {
  width: var(--tap-min); height: var(--tap-min); border-radius: 50%; border: var(--line); background: var(--paper-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; position: relative;
}
.sw-shell__gear:hover { background: var(--paper-3); }
.sw-settings { position: absolute; right: 24px; top: calc(100% + 8px); z-index: 20; background: var(--paper-2); border: var(--line); border-radius: var(--r-lg); padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 240px; text-align: left; }
.sw-settings label { display: flex; align-items: center; gap: 10px; min-height: var(--tap-min); font-weight: 700; font-size: 16px; }
.sw-settings input { width: 22px; height: 22px; }

/* ---- Stage ---- */
.sw-shell__stage { flex: 1; display: flex; flex-direction: column; align-items: center; padding: clamp(20px, 4vw, 44px) 16px; position: relative; }
.sw-card {
  width: 100%; max-width: 760px; background: var(--paper-2); border: var(--line); border-radius: var(--r-xl);
  padding: 40px 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.sw-prompt { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.sw-speaker {
  width: 96px; height: 96px; border-radius: 50%; border: none; background: var(--sky); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 44px;
}
.sw-speaker:hover { background: var(--sky-ink); }
.sw-wordcard { display: flex; align-items: center; gap: 14px; background: var(--paper-2); border: var(--line); border-radius: var(--r-lg); padding: 10px 12px 10px 22px; }
.sw-wordcard__word { font-family: var(--font-body); font-weight: 700; font-size: 38px; line-height: 1; }
.sw-wordcard .sw-speaker { width: 52px; height: 52px; font-size: 24px; }
.sw-instruction { font-size: 18px; color: var(--ink-soft); max-width: 30ch; text-wrap: balance; }
.sw-caps { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.sw-group { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.sw-rule { width: 100%; height: 0; border-top: var(--line); background: none; }

/* ---- Tiles ---- */
.sw-tiles { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sw-tile {
  width: 72px; height: 80px; border-radius: var(--r-md); border: 2px solid var(--ink); background: var(--paper-2); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 38px; display: flex; align-items: center; justify-content: center; padding: 0;
}
.sw-tile:not([disabled]):hover { background: var(--tangerine-tint); }
.sw-tile--active { border: 3px solid var(--tangerine); }
.sw-tile--empty { border: 2px dashed var(--ink-faint); background: var(--paper); cursor: default; }
.sw-tile--used { border: 2px dashed var(--ink-faint); background: var(--paper-3); color: transparent; cursor: default; }
.sw-tile--right { background: var(--mint-tint); color: var(--mint-ink); border: 2px solid var(--mint-ink); }
.sw-tile--wrong { border: 2px solid var(--berry-ink); }
.sw-tile--reveal { background: var(--paper-3); border: 2px solid var(--ink); }
.sw-tile[disabled] { cursor: default; }

/* ---- Feedback ---- */
.sw-feedback { width: 100%; display: flex; align-items: center; gap: 12px; border-radius: var(--r-md); padding: 14px 18px; font-size: 18px; font-weight: 700; }
.sw-feedback i { font-size: 26px; flex: none; }
.sw-feedback:empty { display: none; }
.sw-feedback--right { background: var(--mint-tint); color: var(--mint-ink); }
.sw-feedback--wrong { background: var(--berry-tint); color: var(--berry-ink); }
.sw-feedback--reveal { background: var(--paper-3); color: var(--ink); }

/* ---- Actions ---- */
.sw-actions { display: flex; gap: 12px; width: 100%; max-width: 440px; }
.sw-btn {
  min-height: 60px; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 900; font-size: 18px;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; text-decoration: none;
}
.sw-btn--outline { border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.sw-btn--outline:hover { background: var(--paper-3); }
.sw-btn--fill { border: none; background: var(--tangerine-dark); color: #fff; flex: 1.4; }
.sw-btn--fill:hover { background: var(--tangerine-ink); }
.sw-btn--fill[disabled] { background: var(--paper-3); color: var(--ink-soft); cursor: default; }
.sw-kbd-hint { margin-top: 16px; font-size: 14.5px; color: var(--ink-soft); }

/* ---- Results ---- */
.sw-card--results { max-width: 560px; padding: 40px; gap: 20px; text-align: center; }
.sw-results__mascot { width: 120px; height: 120px; border-radius: 50%; object-fit: contain; }
.sw-results__title { font-family: var(--font-display); font-weight: 900; font-size: 34px; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.sw-results__sub { font-size: 19px; color: var(--ink-soft); }
.sw-results__stars { display: flex; gap: 10px; font-size: 44px; color: var(--sun-ink); }
.sw-results__recap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sw-chip { display: flex; align-items: center; gap: 6px; border-radius: var(--r-pill); padding: 6px 14px; font-weight: 700; font-size: 17px; background: var(--paper-3); color: var(--ink); }
.sw-chip--first { background: var(--mint-tint); color: var(--mint-ink); }
.sw-results__links { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.sw-results__links a { color: var(--sky-ink); font-weight: 700; }

/* ---- System states ---- */
.sw-skeleton { display: flex; flex-direction: column; gap: 14px; align-items: center; width: 100%; }
.sw-skeleton__bar { height: 22px; width: 60%; border-radius: 8px; background: var(--paper-3); }
.sw-skeleton__tiles { display: flex; gap: 8px; }
.sw-skeleton__tile { width: 56px; height: 64px; border-radius: var(--r-md); background: var(--paper-3); }
.sw-state--error { width: 100%; background: var(--berry-tint); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sw-state--error strong { color: var(--berry-ink); display: flex; gap: 8px; align-items: center; font-size: 18px; }
.sw-state--error .sw-btn { align-self: flex-start; flex: none; min-height: var(--tap-min); padding: 0 18px; background: var(--ink); color: #fff; border: none; font-family: var(--font-body); font-weight: 700; font-size: 16px; }
.sw-state--offline { width: 100%; background: var(--sun-tint); color: var(--ink); border-radius: var(--r-md); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 15.5px; }
.sw-state--offline i { color: var(--sun-ink); font-size: 20px; }

/* ---- Motion ---- */
@keyframes swPop { 0% { transform: scale(.86); } 60% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes swShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.sw-anim-pop { animation: swPop .35s ease-out; }
.sw-anim-shake { animation: swShake .4s ease-out; }
@media (prefers-reduced-motion: reduce) { .sw-shell *, .sw-shell *::before, .sw-shell *::after { animation: none !important; transition: none !important; } }
.sw-shell--still *, .sw-shell--still *::before, .sw-shell--still *::after { animation: none !important; transition: none !important; }

/* ---- Prompt hint (definition / clue under the instruction) ---- */
.sw-hint { font-size: 16px; color: var(--ink-soft); max-width: 40ch; text-align: center; }

/* ---- Pattern 6: timer bar ---- */
.sw-timer { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; }
.sw-timer i { font-size: 22px; color: var(--tangerine-ink); flex: none; }
.sw-timer--late i { color: var(--berry-ink); }
.sw-timer__track { flex: 1; height: 14px; border-radius: 7px; background: var(--paper-3); overflow: hidden; }
.sw-timer__fill { height: 100%; width: 100%; background: var(--tangerine); transition: width .25s linear; }
.sw-timer--late .sw-timer__fill { background: var(--berry); }
.sw-timer__text { font-weight: 700; font-size: 17px; }

/* ---- Pattern 7: option rows (also the difficulty chooser) ---- */
.sw-options { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 380px; }
.sw-opt {
  min-height: 64px; border-radius: var(--r-lg); border: 2px solid var(--ink); background: var(--paper-2); color: var(--ink);
  display: flex; align-items: center; gap: 14px; padding: 0 18px; font-family: var(--font-body); font-weight: 700; font-size: 22px; text-align: left; text-decoration: none; width: 100%;
}
.sw-opt:not([disabled]):hover { background: var(--tangerine-tint); }
.sw-opt__label { flex: 1; }
.sw-opt__sub { font-weight: 400; font-size: 15px; color: var(--ink-soft); }
.sw-opt i { font-size: 24px; flex: none; }
.sw-opt--right { background: var(--mint-tint); color: var(--mint-ink); border: 3px solid var(--mint); }
.sw-opt--wrong { background: var(--berry-tint); color: var(--berry-ink); border: 3px solid var(--berry); }
.sw-opt--dim { opacity: .45; }
.sw-opt[disabled] { cursor: default; }
.sw-options--chips { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
.sw-options--chips .sw-opt { width: auto; min-width: 64px; justify-content: center; font-size: 26px; }
.sw-options--bins { flex-direction: row; max-width: 440px; }
.sw-options--bins .sw-opt { flex: 1; justify-content: center; font-size: 18px; }

/* ---- Lightning Round: locked card, boss question ---- */
.sw-lock { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.sw-lock__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sw-lock__chip { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill); padding: 6px 14px; font-weight: 700; background: var(--paper-3); color: var(--ink); }
.sw-lock__chip--done { background: var(--mint-tint); color: var(--mint-ink); }
.sw-card--boss { border-top: 14px solid var(--sun); }

/* ---- Pattern 3: well + chips ---- */
.sw-well { border: 2px dashed var(--ink-faint); border-radius: var(--r-md); padding: 10px; min-width: 260px; min-height: 76px; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.sw-well__empty { font-size: 15px; color: var(--ink-soft); }
.sw-chipbtn {
  min-height: 56px; padding: 0 18px; border-radius: var(--r-md); border: 2px solid var(--ink); background: var(--paper-2); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 26px; display: flex; align-items: center;
}
.sw-chipbtn:not([disabled]):hover { background: var(--tangerine-tint); }
.sw-chipbtn--placed { background: var(--tangerine-tint); }
.sw-chipbtn--used { background: var(--paper-3); border-style: dashed; border-color: var(--ink-faint); color: transparent; }
.sw-chipbtn--right { background: var(--mint-tint); color: var(--mint-ink); border-color: var(--mint-ink); }
.sw-chipbtn--wrong { border-color: var(--berry-ink); }
.sw-chipbtn--reveal { background: var(--paper-3); }

/* ---- Fixed (given) letters in a type-in row ---- */
.sw-tile--fixed { background: var(--paper-3); cursor: default; }

/* ---- Pattern 2: tap-count drum; Pattern 7 multi: 3-col grid; gap-split ---- */
.sw-drumrow { display: flex; align-items: center; gap: 22px; }
.sw-dots { display: flex; gap: 8px; }
.sw-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-faint); }
.sw-dot--on { background: var(--ink); border-color: var(--ink); }
.sw-drum { width: 120px; height: 120px; border-radius: 50%; border: none; background: var(--tangerine-dark); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 19px; }
.sw-drum i { font-size: 36px; }
.sw-drum:not([disabled]):hover { background: var(--tangerine-ink); }
.sw-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 440px; }
.sw-grid .sw-opt { min-height: 60px; justify-content: center; font-size: 21px; padding: 0 8px; }
.sw-opt--on { border-width: 3px; }
.sw-opt--missed { border: 2px dashed var(--mint-ink); }
/* One line at any width (compounds run to 11 letters): tiles and gaps shrink, letters
   scale with the row; a closed gap keeps a wider invisible hit area over the tile edges. */
.sw-gaprow { gap: 0; align-items: center; flex-wrap: nowrap; width: 100%; container-type: inline-size; }
.sw-gaprow .sw-tile { flex: 0 1 auto; min-width: 0; font-size: min(38px, 7cqi); }
.sw-gap { position: relative; flex: 0 4 auto; min-width: 12px; width: 28px; min-height: 64px; border: none; background: transparent; color: var(--ink-soft); font-weight: 700; font-size: 22px; border-radius: var(--r-md); }
.sw-gap::before { content: ""; position: absolute; inset: 0 -8px; }
.sw-gap:not([disabled]):hover { background: var(--tangerine-tint); }
.sw-gap--open { width: 44px; background: var(--paper-3); color: var(--ink); }
.sw-gap--right { background: var(--mint-tint); color: var(--mint-ink); }
.sw-gap--wrong { background: var(--berry-tint); color: var(--berry-ink); }
@media (pointer: coarse) { .sw-gap { width: 36px; } }

/* ---- Under 640px (handoff container query) ---- */
@container (max-width: 640px) {
  .sw-hide-sm { display: none !important; }
  .sw-sr-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sw-shell__head { padding: 10px 14px; }
  .sw-card { padding: 22px 16px; border-radius: var(--r-lg); }
  .sw-tile { width: 56px; height: 60px; font-size: 30px; }
  .sw-actions > * { flex: 1 1 0 !important; }
  .sw-settings { right: 14px; }
}

/* ---- Rich option rows (Pilot gates): numeral, pips, key chip, arrow ---- */
.sw-opt--rich { min-height: 84px; gap: 16px; padding: 0 20px; }
.sw-opt__num { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; min-width: 36px; }
.sw-pips { display: flex; gap: 6px; flex: 1; }
.sw-pips span { width: 14px; height: 14px; border-radius: 50%; background: currentColor; }
.sw-opt__key { font-size: 13px; border: 1.5px solid currentColor; border-radius: 6px; padding: 1px 7px; }
.sw-opt--rich .sw-opt__icon i { font-size: 26px; }

/* ---- Tap-count stars (Star Quest) ---- */
.sw-starrow { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sw-starbtn {
  width: 64px; height: 64px; border-radius: var(--r-md); border: 2px dashed var(--ink-faint); background: transparent; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px; padding: 0;
}
.sw-starbtn--on { background: var(--sun); border: 2px solid var(--ink); color: var(--ink); }
.sw-starbtn[disabled] { cursor: default; }

/* ---- Actor: a flat SVG beside the options, moved once per answer ---- */
.sw-group--actor { flex-direction: row; justify-content: space-between; gap: 16px; }
.sw-group--actor .sw-options { flex: 1; max-width: 320px; min-width: 200px; }
.sw-actor { flex: none; width: 130px; transition: transform .35s ease-out; }
.sw-actor svg { display: block; width: 100%; height: auto; }

/* ---- Dark stage (arcade games). Design literals are scoped here, not global tokens:
   --sw-dark-muted #E9DDF0 (instruction/dim text, 13.6:1 on --ink) and
   --sw-dark-dim #3A2547 (dimmed rows). Contrast guarded in test_kids_shell.py. ---- */
.sw-shell--dark { --sw-dark-muted: #E9DDF0; --sw-dark-dim: #3A2547; background: var(--ink); color: #fff; }
.sw-shell--dark :focus-visible { outline-color: #ffffff; }  /* white on ink: 16.1:1, see test_kids_shell.py */
.sw-shell--dark .sw-shell__head { background: var(--ink); border-bottom: 1.5px solid var(--currant); }
.sw-shell--dark .sw-shell__title { color: #fff; }
.sw-shell--dark .sw-shell__back { border-color: #fff; color: #fff; }
.sw-shell--dark .sw-shell__back:hover, .sw-shell--dark .sw-shell__gear:hover { background: var(--currant); }
.sw-shell--dark .sw-shell__gear { background: transparent; border: 2px solid #fff; color: #fff; }
.sw-shell--dark .sw-settings { color: var(--ink); }
.sw-shell--dark .sw-shell__dot { background: var(--currant); }
.sw-shell--dark .sw-shell__dot--first { background: var(--mint); }
.sw-shell--dark .sw-shell__dot--retry { background: var(--ink-faint); }
.sw-shell--dark .sw-shell__dot--current { background: var(--sun); }
.sw-shell--dark .sw-shell__count { color: var(--sw-dark-muted); }
.sw-shell--dark .sw-shell__stars { border: 1.5px solid var(--currant); color: var(--sun); }
.sw-shell--dark .sw-shell__stage { background: var(--ink); overflow: hidden; }
.sw-shell--dark .sw-shell__stage::after {   /* the floor */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 0; background: var(--currant);
  border-top-left-radius: 50% 60px; border-top-right-radius: 50% 60px; pointer-events: none;
}
.sw-shell--dark .sw-shell__stage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sw-shell--dark .sw-shell__stage > * { position: relative; z-index: 1; }
.sw-shell--dark .sw-card:not(.sw-card--results) { background: transparent; border: none; }
.sw-shell--dark .sw-card--results { color: var(--ink); }
.sw-shell--dark .sw-wordcard { background: var(--paper); color: var(--ink); border: none; }
.sw-shell--dark .sw-instruction, .sw-shell--dark .sw-hint, .sw-shell--dark .sw-caps,
.sw-shell--dark .sw-kbd-hint { color: var(--sw-dark-muted); }
.sw-shell--dark .sw-btn--outline { border-color: #fff; color: #fff; }
.sw-shell--dark .sw-btn--outline:hover { background: var(--currant); }
.sw-shell--dark .sw-opt { border: 3px solid var(--paper-2); }
.sw-shell--dark .sw-opt--right { border-color: var(--mint); }
.sw-shell--dark .sw-opt--wrong { border-color: var(--berry); }
.sw-shell--dark .sw-opt--dim { opacity: 1; background: var(--sw-dark-dim); color: var(--sw-dark-muted); border-color: var(--sw-dark-dim); }
.sw-shell--dark .sw-opt__sub { color: inherit; }
/* Static per-theme decoration (nothing loops) */
.sw-shell--dark[data-theme="cosmic"] .sw-shell__stage::before {
  background:
    radial-gradient(circle at 12% 14%, var(--ink-faint) 2px, transparent 3px),
    radial-gradient(circle at 82% 10%, var(--ink-faint) 2px, transparent 3px),
    radial-gradient(circle at 64% 26%, var(--sun) 2px, transparent 3px),
    radial-gradient(circle at 30% 34%, var(--ink-faint) 1.5px, transparent 2.5px),
    radial-gradient(circle at 90% 44%, var(--ink-faint) 1.5px, transparent 2.5px),
    radial-gradient(circle at 6% 52%, var(--sun) 2px, transparent 3px);
}
.sw-shell--dark[data-theme="pilot"] .sw-shell__stage::before {
  background:
    radial-gradient(ellipse 90px 26px at 14% 18%, var(--currant) 98%, transparent 100%),
    radial-gradient(ellipse 120px 32px at 84% 30%, var(--currant) 98%, transparent 100%);
}
.sw-shell--dark[data-theme="jump"] .sw-shell__stage::before {
  background: radial-gradient(ellipse 34% 7% at 50% 90%, var(--sw-dark-dim) 98%, transparent 100%);
  z-index: 1;
}
.sw-shell--dark[data-theme="treasure"] .sw-shell__stage::before {
  background:
    radial-gradient(circle at 10% 30%, transparent 5px, var(--ink-faint) 6px, transparent 7.5px),
    radial-gradient(circle at 16% 22%, transparent 3px, var(--ink-faint) 4px, transparent 5.5px),
    radial-gradient(circle at 88% 40%, transparent 6px, var(--ink-faint) 7px, transparent 8.5px),
    radial-gradient(circle at 92% 30%, transparent 3px, var(--ink-faint) 4px, transparent 5.5px),
    radial-gradient(circle at 80% 20%, transparent 4px, var(--ink-faint) 5px, transparent 6.5px);
}
@container (max-width: 640px) {
  .sw-group--actor { flex-direction: column; align-items: center; }
  .sw-group--actor .sw-options { max-width: none; width: 100%; }
  .sw-actor { width: 96px; }
  /* 5 rich rows (Pilot) + the word card must fit 390x844 above the fold. */
  .sw-group--actor .sw-options { gap: 6px; }
  .sw-opt--rich { min-height: 72px; }
}
