/* Sensei 21 — sensei21.com
   One pixel size: 1 art px = 2 CSS px, 1 glyph px = 1 CSS px (half an art px), as in the game
   (docs/STYLE_GUIDE.md). Frames, keys and badges are the game's 9-slice sprites; text is Jersey
   at its four on-grid sizes. Only light is soft. */

@font-face { font-family: "Jersey 10"; src: url(/assets/fonts/Jersey10.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Jersey 15"; src: url(/assets/fonts/Jersey15.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Jersey 20"; src: url(/assets/fonts/Jersey20.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Jersey 25"; src: url(/assets/fonts/Jersey25.woff2) format("woff2"); font-display: block; }

:root {
  color-scheme: dark;
  --ink: #160E0C;
  --ceiling: #0E0907;
  --night-0: #1B1210;
  --night-1: #241815;
  --night-2: #2F201B;
  --night-3: #3D2A22;
  --paper: #F3E4C3;
  --paper-hi: #FFF7E3;
  --ink-on-paper: #22150F;
  --ink-muted: #5E4E3E;
  --gold: #F0B43C;
  --gold-hi: #FFD878;
  --gold-text: #8A5A10;
  --lacquer-text: #9C2A22;
  --jade-text: #17603F;
  --text-1: #F6EAD3;
  --text-2: #C9B496;
  --text-3: #9A846D;
  --felt: #17573F;
  --f10: "Jersey 10", system-ui, sans-serif;
  --f15: "Jersey 15", system-ui, sans-serif;
  --f20: "Jersey 20", system-ui, sans-serif;
  --f25: "Jersey 25", system-ui, sans-serif;
  image-rendering: pixelated;
}

* { box-sizing: border-box; }
html { background: var(--night-0); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night-0);
  color: var(--text-1);
  font: 400 18.6667px/22px var(--f10);
  overflow-x: hidden;
}
img { display: block; max-width: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold-hi); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--paper-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 8px 12px; background: var(--paper); color: var(--ink-on-paper); }
.skip:focus { top: 8px; }

/* Type: the four cuts, each at exactly 1 CSS px per glyph px */
.t10 { font: 400 18.6667px/20px var(--f10); }
.t15 { font: 400 27px/28px var(--f15); }
.t20 { font: 400 34px/34px var(--f20); }
.t25 { font: 400 41px/42px var(--f25); }

/* 9-slice frames (assets/ui/frames), drawn at 2x */
.p-dark   { border: 8px solid transparent; border-image: url(/assets/img/ui/p_dark.png) 4 fill stretch; }
.p-raised { border: 8px solid transparent; border-image: url(/assets/img/ui/p_raised.png) 4 fill stretch; }
.p-paper  { border-style: solid; border-color: transparent; border-width: 8px 8px 10px; border-image: url(/assets/img/ui/p_paper.png) 4 4 5 4 fill stretch; color: var(--ink-on-paper); }
.k-paper, .k-red, .k-dark, .k-jade { border-style: solid; border-color: transparent; border-width: 8px 8px 16px; }
.k-paper { border-image: url(/assets/img/ui/k_paper.png) 4 4 8 4 fill stretch; color: var(--ink-on-paper); }
.k-red   { border-image: url(/assets/img/ui/k_red.png) 4 4 8 4 fill stretch; color: var(--paper-hi); }
.k-dark  { border-image: url(/assets/img/ui/k_dark.png) 4 4 8 4 fill stretch; color: var(--text-1); }
.k-jade  { border-image: url(/assets/img/ui/k_jade.png) 4 4 8 4 fill stretch; color: var(--ink-on-paper); }

/* Keys: the label sits in the face; pressed, the down sprite and the label 4 px lower */
.key {
  display: block; position: relative; height: 64px; padding: 0 4px; margin: 0;
  font: 400 27px/40px var(--f15); text-align: center; text-decoration: none; white-space: nowrap;
  background: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.key:hover { color: inherit; }
.k-paper:hover, .k-jade:hover { color: var(--ink-on-paper); }
.k-red:hover { color: var(--paper-hi); }
.k-dark:hover { color: var(--text-1); }
.key.table { height: 60px; line-height: 36px; }
.key:active, .key.down { padding-top: 4px; }
.k-paper:active, .k-paper.down { border-image-source: url(/assets/img/ui/k_paper_down.png); }
.k-red:active, .k-red.down { border-image-source: url(/assets/img/ui/k_red_down.png); }
.k-dark:active, .k-dark.down { border-image-source: url(/assets/img/ui/k_dark_down.png); }
.k-jade:active, .k-jade.down { border-image-source: url(/assets/img/ui/k_jade_down.png); }
.key[disabled] { cursor: default; }

/* The ceiling band and the header */
.top {
  position: relative; z-index: 20; height: 56px; background: var(--ceiling);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px 0 12px;
  view-transition-name: top;
}
.brand-box { display: flex; flex-direction: column; min-width: 0; }
.brand { display: block; color: var(--gold); text-decoration: none; font: 400 34px/30px var(--f20); padding-top: 2px; white-space: nowrap; }
.brand:hover { color: var(--gold-hi); }
.brand-note { font: 400 18.6667px/18px var(--f10); color: var(--text-2); white-space: nowrap; }
.chip {
  display: flex; align-items: center; height: 40px; padding: 0 4px;
  color: var(--gold-hi); text-decoration: none; font: 400 18.6667px/24px var(--f10); white-space: nowrap;
}
.chip:hover { color: var(--paper-hi); }

/* ---------------------------------------------------------------------------------------------
   The table (home): the game's lesson screen, compact. Numbers are the mockup's (pt = CSS px);
   x is measured from --ox, the left edge of the game's 390-wide frame, centred and rounded down
   to a whole art px. The UI (keys, sheet) lives in the content column, at most 430 wide.
   --------------------------------------------------------------------------------------------- */
.scene { position: relative; margin-top: -56px; container-type: inline-size; }
.stage {
  --ox: calc(50% - 195px);
  --cw: min(100%, 430px);
  --cx: calc(50% - var(--cw) / 2);
  --kw: calc((var(--cw) - 44px) / 2);
  --sw: var(--cw);
  position: relative; height: 704px; overflow: hidden; background: var(--night-0);
  -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
@supports (width: round(down, 5px, 2px)) {
  .stage {
    --ox: round(down, calc(50cqw - 195px), 2px);
    --cw: round(down, min(100cqw, 430px), 2px);
    --sw: round(up, min(100cqw, 430px), 2px);
    --cx: round(down, calc(50cqw - var(--cw) / 2), 2px);
    --kw: round(down, calc((var(--cw) - 44px) / 2), 2px);
  }
}
.stage > * { position: absolute; }
.ceil { left: 0; right: 0; top: 0; height: 48px; background: var(--ceiling); }
/* The wall: the game's 200 art px, one bay of the room each side (a lit post, one more lantern),
   then 24 art px in which the room goes dark (STYLE_GUIDE.md §2). */
.wall { left: calc(var(--ox) - 130px); top: 40px; width: 652px; height: 304px; }
.wall-end { top: 40px; height: 304px; width: 48px; }
.wall-end.l { left: calc(var(--ox) - 130px); background: linear-gradient(90deg, var(--night-0), rgba(27, 18, 16, 0)); }
.wall-end.r { left: calc(var(--ox) + 474px); background: linear-gradient(270deg, var(--night-0), rgba(27, 18, 16, 0)); }
.neon { left: calc(var(--ox) + 105px); top: 74px; width: 180px; height: 180px; background: radial-gradient(closest-side, rgba(245, 42, 175, 0.16), rgba(245, 42, 175, 0)); animation: neon 5s steps(1, end) infinite; }
@keyframes neon { 0%, 90%, 100% { opacity: 1; } 91% { opacity: .45; } 93% { opacity: 1; } 95% { opacity: .7; } }
.top-fade { left: 0; right: 0; top: 0; height: 120px; background: linear-gradient(rgba(14, 9, 7, 0.85), rgba(14, 9, 7, 0)); }
.sensei { left: calc(var(--ox) + 76px); top: 132px; width: 256px; height: 256px; }
.sensei.bonk { left: calc(var(--ox) + 66px); top: 120px; }

.bubble { left: calc(var(--ox) + 180px); top: 172px; transform: translate(-100%, -100%); z-index: 2; }
.bubble p { padding: 2px 4px 0; text-align: center; white-space: pre-line; max-width: 172px; font: 400 18.6667px/20px var(--f10); }
.bubble .tail { position: absolute; right: 12px; bottom: -8px; width: 14px; height: 14px; }

.felt { left: 0; right: 0; top: 300px; height: 270px; background: var(--felt) url(/assets/img/bg/felt.png) 0 0 / 64px 64px repeat; background-position: var(--ox) 0; }
.felt-light {
  left: 0; right: 0; top: 300px; height: 270px;
  background:
    radial-gradient(130% 70% at 50% 28%, rgba(255, 222, 160, 0.12), rgba(255, 222, 160, 0) 60%),
    linear-gradient(90deg, rgba(5, 16, 11, 0.55), rgba(5, 16, 11, 0) 26%, rgba(5, 16, 11, 0) 74%, rgba(5, 16, 11, 0.55)),
    linear-gradient(rgba(5, 16, 11, 0.4), rgba(5, 16, 11, 0) 24%);
}
.edge { left: 0; right: 0; top: 296px; height: 8px; background: #5B3823; box-shadow: inset 0 2px 0 #8A5A36, inset 0 -2px 0 var(--ink), 0 -2px 0 var(--ink); }
.rail { left: 0; right: 0; top: 570px; height: 36px; background: linear-gradient(var(--ink) 0 2px, #9A6040 2px 4px, #7A4A30 4px 10px, #5E3826 10px 22px, #46291C 22px 30px, #2E1B13 30px 34px, var(--ink) 34px 36px); }

.hand { left: var(--ox); top: 0; width: 0; height: 0; }
.hand .card { position: absolute; width: 64px; height: 88px; filter: drop-shadow(0 4px 0 rgba(5, 16, 11, 0.5)); }
.hand .at-d1 { left: 140px; top: 316px; }
.hand .at-d2 { left: 188px; top: 316px; }
.hand .at-p1 { left: 150px; top: 458px; }
.hand .at-p2 { left: 178px; top: 446px; }

.badge { left: calc(var(--ox) + 196px); transform: translateX(-50%); height: 36px; min-width: 36px; padding: 0 4px; text-align: center; white-space: nowrap; font: 400 18.6667px/20px var(--f10); color: var(--text-1); }
.badge.dealer { top: 390px; }
.badge.player { top: 530px; }
.badge .res { color: var(--text-2); }
.badge .res.won { color: var(--text-1); }
.tag { top: 466px; height: 38px; display: flex; align-items: center; gap: 4px; padding: 0 4px; z-index: 2; white-space: nowrap; font: 400 18.6667px/20px var(--f10); }
.tag img { display: none; width: 14px; height: 14px; }
.tag.fixed img { display: block; }
.tag.again, .tag.last { color: var(--lacquer-text); }
.tag.fixed { color: var(--gold-text); }

.turtle { left: calc(var(--ox) - 64px); top: 438px; width: 256px; height: 256px; animation: idle 1.4s steps(1, end) infinite; }
@keyframes idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
.burst { left: max(calc(var(--ox) + 12px), -8px); top: 368px; width: 140px; height: 104px; z-index: 3; }
.burst img { width: 140px; height: 104px; }
.burst span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 400 34px/34px var(--f20); color: #B5312A; }
.burst.legendary span { font: 400 41px/42px var(--f25); }
.spark { width: 14px; height: 14px; z-index: 3; left: var(--ox); top: 480px; }

.panel-bar { left: 0; right: 0; top: 606px; height: 98px; background: var(--night-0); box-shadow: inset 0 2px 0 var(--ink), inset 0 4px 0 var(--night-3); }
.panel { left: var(--cx); width: var(--cw); top: 606px; height: 98px; padding: 4px 16px 0; z-index: 4; }
.ask { height: 20px; margin-bottom: 6px; text-align: center; font: 400 18.6667px/20px var(--f10); color: var(--text-1); white-space: nowrap; }
.keys { display: flex; justify-content: space-between; }
.keys .key { width: calc(50% - 6px); }
@supports (width: round(down, 5px, 2px)) { .keys .key { width: var(--kw); } }
/* Without JavaScript the table can't play: its keys give way to one line. */
.stage.no-js .answer { visibility: hidden; }
.nojs-line { position: absolute; left: 16px; right: 16px; top: 34px; text-align: center; font: 400 18.6667px/22px var(--f10); color: var(--text-2); }
.card-keys { margin-top: 26px; gap: 12px; }
.card-keys .key { flex: 1 1 0; width: auto; min-width: 0; height: 60px; line-height: 36px; }

/* The cards over the dimmed table: the lost-hand card and the waitlist's nudge. */
.dim { left: 0; right: 0; top: 0; height: 606px; background: rgba(14, 9, 7, 0.62); z-index: 6; }
.note-card { left: calc(var(--cx) + 16px); width: calc(var(--cw) - 32px); top: 360px; z-index: 7; padding: 4px 6px 2px; }
.note-card:focus { outline: 0; }
.note-label { font: 400 18.6667px/20px var(--f10); color: var(--ink-muted); }
.note-title { margin-top: 4px; font: 400 34px/34px var(--f20); color: var(--ink-on-paper); text-wrap: balance; }
.note-rule { margin-top: 8px; font: 400 27px/28px var(--f15); color: var(--ink-on-paper); }
.note-why { margin-top: 8px; font: 400 18.6667px/22px var(--f10); color: var(--ink-on-paper); }

/* The sheet rises where the keys were; its bottom edge lies just off the table. */
.sheet { left: var(--cx); width: var(--sw); bottom: -10px; z-index: 8; display: flex; flex-direction: column; padding: 4px 8px 4px; }
.sheet.bonked { padding-top: 8px; }
.sheet-first { margin-top: 6px; font: 400 18.6667px/22px var(--f10); color: var(--ink-muted); }
.sheet-head { display: flex; align-items: center; gap: 8px; }
.sheet-head img { width: 26px; height: 20px; }
.sheet-head h3 { font: 400 27px/28px var(--f15); }
.sheet.right .sheet-head h3 { color: var(--jade-text); }
.sheet.bonked .sheet-head h3 { color: var(--lacquer-text); }
.sheet-body { margin-top: 4px; font: 400 18.6667px/22px var(--f10); color: var(--ink-on-paper); }
.sheet.bonked .sheet-body { margin-top: 10px; }
.sheet .key { margin-top: 8px; width: 100%; flex: 0 0 auto; height: 60px; line-height: 36px; }
.sheet.bonked .key { margin-top: 12px; }

/* The sound key: the game's HUD row, under the header at the content column's right. */
.sound-key { left: calc(var(--cx) + var(--cw) - 56px); top: 64px; width: 44px; height: 44px; padding: 0; z-index: 9; display: flex; align-items: center; justify-content: center; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.sound-key img { width: 24px; height: 22px; }
.sound-key:active img { transform: translateY(2px); }

/* ---------------------------------------------------------------------------------------------
   Pages below the table
   --------------------------------------------------------------------------------------------- */
.wrap { width: min(100%, 680px); margin: 0 auto; padding: 0 16px; }
main { display: block; }
.sec { padding-top: 48px; }
.sec:first-child { padding-top: 40px; }
.scene + main .intro { padding-top: 8px; }
.kicker { font: 400 18.6667px/20px var(--f10); color: var(--gold-hi); margin-bottom: 8px; }
.h1, .h2 { font: 400 34px/34px var(--f20); color: var(--text-1); text-wrap: balance; }
.h2 { margin-bottom: 12px; }
.h1 { margin-bottom: 12px; }
.lead, .text { color: var(--text-2); }
.lead, .text, .fine, .how p, .belt-what, .promises span, .prose p, .qa .answer p, .foot p { text-wrap: pretty; }
.lead + .lead, .text + .text { margin-top: 12px; }
.text strong, .lead strong { font-weight: 400; color: var(--text-1); }
.fine { margin-top: 12px; font: 400 18.6667px/22px var(--f10); color: var(--text-3); }
.fine a { color: var(--text-2); }
.fine a:hover { color: var(--paper-hi); }

.panel-box { padding: 10px 8px 12px; }
.panel-box > .h2 { margin: 0 0 8px 4px; }
.panel-box > .text { margin: 0 4px 12px; }

/* The waitlist */
.label { display: block; margin: 0 0 6px 4px; font: 400 18.6667px/20px var(--f10); color: var(--text-2); }
.field { display: flex; align-items: center; height: 52px; padding: 0 6px; }
.field input {
  width: 100%; height: 34px; padding: 0; border: 0; background: transparent; outline: 0;
  color: var(--ink-on-paper); font: 400 27px/34px var(--f15); caret-color: var(--ink-on-paper);
}
.field input::placeholder { color: var(--ink-muted); opacity: 1; }
.field:focus-within { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.form-gap { height: 16px; }
.choice { display: block; margin-top: 12px; }
.choice legend { padding: 0; }
.opts { display: flex; gap: 12px; }
.opt { position: relative; flex: 1 1 0; min-width: 0; }
.opt input, .row input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.opt .key { width: 100%; height: 60px; line-height: 36px; cursor: pointer; }
.opt .key img { display: none; }
.opt input:checked + .key { padding-top: 4px; border-image-source: url(/assets/img/ui/k_paper_down.png); }
.opt input:checked + .key img { display: inline-block; vertical-align: -1px; width: 26px; height: 20px; margin-right: 6px; }
.opt input:focus-visible + .key { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 4px; cursor: pointer; }
.row-text { flex: 1 1 auto; min-width: 0; font: 400 18.6667px/20px var(--f10); color: var(--text-1); }
.tester-row { margin-top: 12px; min-height: 52px; padding: 4px 6px; gap: 10px; }
.tester-row img { flex: 0 0 18px; width: 18px; height: 20px; }
.sw { flex: 0 0 36px; width: 36px; height: 20px; background: url(/assets/img/ui/sw_off.png) 0 0 / 36px 20px no-repeat; }
.row input:checked ~ .sw { background-image: url(/assets/img/ui/sw_on.png); }
.row:has(input:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.err { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 6px 4px; font: 400 18.6667px/22px var(--f10); color: var(--lacquer-text); }
.err img { flex: 0 0 26px; width: 26px; height: 20px; }
.submit { margin-top: 16px; width: 100%; }
#join-fine { margin: 10px 4px 0; }
.submit[disabled] { opacity: 1; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.done { display: flex; flex-direction: column; gap: 16px; padding: 4px; }
.done:focus { outline: 0; }
.said { display: flex; align-items: flex-start; gap: 12px; }
.portrait { flex: 0 0 auto; width: 112px; height: 100px; padding: 0; }
.portrait img { width: 96px; height: 84px; }
.quote { flex: 1 1 auto; min-width: 0; padding: 6px 8px 4px; font: 400 18.6667px/22px var(--f10); text-align: center; align-self: center; }

/* How the dojo works: four short rows */
.how { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.how li { display: flex; gap: 12px; }
.how .ico { flex: 0 0 26px; display: flex; justify-content: center; align-items: flex-start; padding-top: 4px; }
.how h3 { font: 400 27px/28px var(--f15); color: var(--text-1); }
.how p { margin-top: 2px; color: var(--text-2); }

.belts { margin-top: 16px; padding: 4px 6px; }
.belt-group { padding: 10px 4px 12px; }
.belt-group + .belt-group { box-shadow: 0 -2px 0 var(--night-2); }
.belt-row { display: flex; align-items: flex-end; gap: 4px; height: 20px; }
@media (min-width: 360px) { .belt-row { gap: 12px; } }
.belt-row img { flex: 0 0 auto; }
.belt-gold { margin-left: 4px; align-self: center; font: 400 18.6667px/20px var(--f10); color: var(--gold-hi); white-space: nowrap; }
.belt-what { margin-top: 8px; color: var(--text-2); }
.belt-name { color: var(--text-1); }

.promises { margin-top: -4px; }
.promises li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; color: var(--text-1); }
.promises img { flex: 0 0 26px; width: 26px; height: 20px; margin-top: 1px; }

/* Testers wanted: the words beside the turtle, centred on his height, the key under them (on
   phones the key runs the box's width under both). */
.testers-box {
  position: relative; overflow: hidden; padding: 10px 12px 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) 128px; column-gap: 12px;
  grid-template-areas: "title who" "text who" "key key";
}
.testers-box .t-body { display: contents; }
.testers-box .h2 { grid-area: title; align-self: end; margin: 0 0 8px; }
.testers-box .text { grid-area: text; align-self: start; }
.testers-box .who { grid-area: who; position: relative; width: 128px; height: 176px; overflow: hidden; }
.testers-box .who img { position: absolute; left: -66px; top: -44px; width: 256px; height: 256px; animation: idle 1.4s steps(1, end) infinite; }
.testers-box .key { grid-area: key; margin-top: 12px; }

.closing { display: flex; flex-direction: column; gap: 16px; }
.sec.closing { padding-top: 40px; }

/* The footer: centred, one size of type (Jersey 10) at every width; on phones the links stand in
   two even columns (about the game | the legal pages), on wide screens in one row. */
.foot { margin-top: 48px; background: var(--ceiling); box-shadow: inset 0 2px 0 var(--ink), inset 0 4px 0 var(--night-1); }
.foot .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.foot .foot-brand { font: 400 34px/34px var(--f20); color: var(--gold); }
.foot-nav { margin-top: 14px; width: min(100%, 320px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 16px; }
.foot-nav a { display: block; padding: 6px 0; color: var(--text-1); text-decoration: none; }
.foot-nav a:hover { color: var(--gold-hi); text-decoration: underline; }
.foot p { color: var(--text-3); }
.foot .foot-note { margin-top: 18px; }
.foot .foot-note + p { margin-top: 4px; }
.foot p a { color: var(--text-2); }
.foot p a:hover { color: var(--paper-hi); }
.foot .small { margin-top: 18px; padding-top: 16px; box-shadow: 0 -2px 0 var(--night-1); align-self: stretch; }
.select { user-select: all; -webkit-user-select: all; color: var(--text-1); }

/* Text pages (FAQ, privacy, press…) */
.page-head { display: flex; align-items: flex-end; gap: 12px; padding-top: 32px; }
.page-head .portrait { flex: 0 0 auto; }
.page-head .bubble-in { position: relative; align-self: flex-start; margin-top: 4px; }
.page-head .bubble-in p { padding: 2px 4px 0; text-align: center; font: 400 18.6667px/20px var(--f10); white-space: pre; }
.page-head .bubble-in .tail { position: absolute; left: 12px; bottom: -8px; width: 14px; height: 14px; }
.prose { color: var(--text-2); }
.prose h2 { font: 400 27px/28px var(--f15); color: var(--text-1); margin: 32px 0 8px; }
.prose h3 { font: 400 18.6667px/22px var(--f10); color: var(--text-1); margin: 20px 0 4px; }
.prose p, .prose ul, .prose ol, .prose dl { margin-top: 8px; }
.prose ul li { position: relative; padding-left: 22px; margin-top: 6px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 14px; background: url(/assets/img/ui/i_spark.png) 0 0 / 14px 14px no-repeat; }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; position: relative; padding-left: 28px; margin-top: 6px; }
.prose ol li::before { content: counter(n) "."; position: absolute; left: 0; color: var(--gold-hi); }
.prose strong { font-weight: 400; color: var(--text-1); }
.prose .updated { color: var(--text-3); margin-top: 4px; }
.qa { margin-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.qa details { border: 8px solid transparent; border-image: url(/assets/img/ui/p_dark.png) 4 fill stretch; padding: 0 4px; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; font: 400 27px/28px var(--f15); color: var(--text-1); -webkit-tap-highlight-color: transparent; }
.qa summary:hover { color: var(--paper-hi); }
.qa .answer p { color: var(--text-2); }
.qa .answer a { color: var(--gold-hi); }
.more { margin-top: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: 0 0 auto; margin-left: auto; padding-left: 12px; font: 400 27px/28px var(--f15); color: var(--gold-hi); }
.qa details[open] summary::after { content: "–"; }
.qa .answer { padding: 0 0 12px; color: var(--text-2); }
.qa .answer p + p { margin-top: 8px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 16px; row-gap: 8px; margin-top: 12px; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; color: var(--text-1); }
.center-page { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 48px; }

/* Sections come in as they scroll into view: 8 px up in whole art px, fading in. */
.js .reveal.wait { opacity: 0; transform: translateY(8px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 420ms ease-out, transform 280ms steps(4, end); }

/* From page to page: the header stays, the page fades through (where the browser can). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 140ms ease-in both page-out; }
::view-transition-new(root) { animation: 260ms ease-out both page-in; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } }

@media print {
  .js .reveal.wait { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .neon, .turtle { animation: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal.wait { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Wider screens: the same pixel size, the next cut up for reading */
@media (min-width: 760px) {
  .top { padding: 0 12px 0 16px; }
  .brand-box { flex-direction: row; align-items: baseline; gap: 16px; }
  .brand { line-height: 34px; }
  .wrap { width: min(100%, 720px); padding: 0 24px; }
  .sec { padding-top: 64px; }
  .h1, .h2 { font: 400 41px/42px var(--f25); }
  .h2 { margin-bottom: 16px; }
  .lead, .text, .how p, .belt-what, .promises li, .prose, .qa .answer { font: 400 27px/32px var(--f15); }
  .how h3, .qa summary, .prose h2 { font: 400 34px/34px var(--f20); }
  .prose h3 { font: 400 27px/32px var(--f15); }
  .how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; margin-top: 8px; }
  .row-text, .label, .kicker, .quote { font: 400 27px/32px var(--f15); }
  .testers-box { grid-template-areas: "body who"; column-gap: 24px; padding: 12px 24px 12px 20px; align-items: center; }
  .testers-box .t-body { display: block; grid-area: body; }
  .testers-box .h2 { margin-bottom: 8px; }
  .testers-box .key { display: inline-block; min-width: 280px; padding: 0 24px; margin-top: 20px; }
  .kicker { margin-bottom: 4px; }
  .how .ico { padding-top: 6px; }
  .promises img { margin-top: 5px; }
  .belts { padding: 8px 10px; }
  .belt-group { padding: 14px 8px 16px; }
  .belt-row { gap: 20px; }
  .belt-what { margin-top: 10px; }
  .foot-nav { width: auto; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 28px; }
  .facts { font: 400 27px/32px var(--f15); }
  .center-page { padding-top: 72px; }
}

/* The playtest form (/playtest/): a long list of choices stacks, four wrap two to a row; notes on paper */
.opts-col { flex-direction: column; gap: 8px; }
.opts-col .opt { flex: none; }
.opts-col .opt .key { height: 52px; line-height: 28px; }
.opts-two { flex-wrap: wrap; }
.opts-two .opt { flex: 1 1 calc(50% - 6px); }
.qn { display: inline-block; margin-right: 8px; font: 400 27px/20px var(--f15); color: var(--gold-hi); vertical-align: -2px; }
.note-box { margin-top: 8px; padding: 4px 6px; }
.note-box textarea {
  display: block; width: 100%; min-height: 44px; padding: 4px 2px; border: 0; background: transparent; outline: 0; resize: vertical;
  color: var(--ink-on-paper); font: 400 18.6667px/22px var(--f10); caret-color: var(--ink-on-paper);
}
.note-box textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.note-box:focus-within { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
