/* Colour chapters: whole flat fields of blue, red, black and navy, one typeface, square corners. */
@font-face { font-family: Epilogue; src: url(/fonts/epilogue-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Epilogue; src: url(/fonts/epilogue-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #ffffff; --surface: #f3f3f3; --ink: #0a0a0a; --muted: #6b6b6b;
  --blue: #2436ff; --red: #ff3b1f; --navy: #050a5c; --black: #0a0a0a; --paper: #ffffff;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --gutter: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 Epilogue, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #ffc400; outline-offset: 2px; }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; background: var(--blue); color: #fff; border: 0; font-weight: 500; text-decoration: none; transition: transform .14s var(--ease), background-color .14s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn.big { min-height: 54px; padding: 12px 28px; font-size: var(--step-lead); font-weight: 900; letter-spacing: -.02em; }
.btn.ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.link { background: none; border: 0; padding: 0; color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; transition: opacity .14s; }
.link:hover { opacity: .72; }
.mark { display: inline-flex; align-items: center; padding: 0 18px; min-height: 48px; background: var(--ink); color: #fff; font-weight: 900; letter-spacing: -.04em; font-size: var(--step-lead); text-decoration: none; }
.wait { padding: 20vh var(--gutter); font-size: var(--step-lead); }

/* ---------- masthead */
.mast { display: flex; flex-direction: column; min-height: 100svh; position: relative; }
.mosaic { height: 52svh; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 1fr); }
.mosaic > * { min-height: 0; min-width: 0; width: 100%; height: 100%; }
.mosaic > img { object-fit: cover; }
.mosaic > div { position: relative; overflow: hidden; }
.mosaic > div img { position: absolute; left: 7%; top: 7%; width: 86%; height: 86%; max-width: none; object-fit: contain; }
.tile-red { background: var(--red); } .tile-blue { background: var(--blue); } .tile-navy { background: var(--navy); } .tile-black { background: var(--black); }
.m-a { grid-column: 1 / span 2; grid-row: 1; } .m-b { grid-column: 3; grid-row: 1 / span 2; } .m-c { grid-column: 4; grid-row: 1; } .m-d { grid-column: 5; grid-row: 1; } .m-e { grid-column: 6; grid-row: 1; }
.m-f { grid-column: 1; grid-row: 2; } .m-g { grid-column: 2; grid-row: 2; } .m-h { grid-column: 4; grid-row: 2; } .m-i { grid-column: 5 / span 2; grid-row: 2; }
.mast-nav { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: stretch; min-height: 48px; }
.mast-tab { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); padding: 0 20px; background: var(--blue); color: #fff; width: calc(42% - 90px); min-width: max-content; }
.mast-tab a { text-decoration: none; font-weight: 500; font-size: var(--step-small); white-space: nowrap; transition: opacity .14s; }
.mast-tab a:hover { opacity: .72; }
.nav-find { margin-left: auto; background: var(--ink); min-height: 48px; }
.mast-text { flex: 1; display: grid; grid-template-columns: 42% 1fr; padding: clamp(32px, 6svh, 80px) var(--gutter) var(--gutter); align-items: start; }
.mast-side { max-width: 34ch; padding-right: var(--gutter); }
.stand { font-size: var(--step-lead); line-height: 1.25; margin-bottom: 24px; }
.mast-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mast-h { font-size: clamp(56px, 7.5vw, 124px); font-weight: 900; letter-spacing: -.05em; line-height: .92; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: block; animation: lineUp .9s var(--ease) both; }
.ln:nth-child(2) > span { animation-delay: .11s; }
@keyframes lineUp { from { transform: translateY(104%); } to { transform: none; } }

/* ---------- chapters */
.ch { padding: clamp(64px, 11svh, 140px) var(--gutter); min-height: 90svh; }
.ch-blue { background: var(--blue); color: #fff; } .ch-black { background: var(--black); color: #fff; } .ch-red { background: var(--red); color: var(--ink); } .ch-white { background: #fff; color: var(--ink); } .ch-navy { background: var(--navy); color: #fff; }
.ch-h { font-size: clamp(56px, 10vw, 168px); font-weight: 900; letter-spacing: -.05em; line-height: .92; }
.ch-line { font-size: var(--step-lead); line-height: 1.25; max-width: 40ch; margin-top: 24px; font-weight: 500; }
.rise { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rise.in { opacity: 1; transform: none; }

/* ---------- a game in the catalogue */
.mode { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; min-width: 0; }
.mode img { width: 100%; height: auto; margin-bottom: 12px; transition: transform .18s var(--ease); }
.mode:hover img { transform: translateY(-5px); }
.mode:active img { transform: translateY(0); }
.mode-name { font-size: var(--step-lead); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.mode-line { line-height: 1.35; }
.mode-wait { font-weight: 500; }
.mode-wait:empty { display: none; }
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) var(--gutter); margin-top: clamp(40px, 6svh, 72px); align-items: start; }
.wall-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wall-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trio { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gutter); margin-top: clamp(40px, 6svh, 72px); align-items: start; }
.mode-big .mode-name { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); letter-spacing: -.03em; }
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gutter); margin-top: clamp(40px, 6svh, 72px); }
.mode-row { display: grid; grid-template-columns: clamp(96px, 11vw, 168px) 1fr; column-gap: 20px; grid-template-rows: auto auto 1fr; align-items: start; }
.mode-row img { grid-row: 1 / span 3; margin: 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: clamp(40px, 6svh, 72px); }
.mode-feature .mode-name { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); letter-spacing: -.03em; }

.live { margin-top: clamp(56px, 8svh, 96px); display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); align-items: start; }
.live-h { font-size: var(--step-lead); font-weight: 900; letter-spacing: -.02em; }
.live-list { display: flex; flex-direction: column; gap: 2px; grid-column: 2; grid-row: 1 / span 2; }
.live-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 16px; padding: 12px 14px; background: #1a2bdc; text-decoration: none; transition: background-color .14s; }
.live-row:hover { background: #0f1fb8; }
.live-game { font-weight: 900; } .live-tc { font-variant-numeric: tabular-nums; }
.live-on { grid-column: 1; }

.crowd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; min-height: 70svh; }
.crowd-text .ch-h, .tree-text .ch-h { font-size: clamp(56px, 7.5vw, 124px); }
.crowd-live { margin: 24px 0; font-size: var(--step-body); max-width: 44ch; }
.crowd-board { container-type: inline-size; }
.crowd-board .board2d { width: min(100%, 72svh); margin-left: auto; cursor: default; }

.tree { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; }
.tree-pic img { width: 100%; }
figcaption { font-size: var(--step-small); margin-top: 8px; }
.prints { display: grid; grid-template-columns: 5fr 4fr 4fr; gap: var(--gutter); margin-top: clamp(64px, 10svh, 120px); align-items: start; }
.prints img { width: 100%; }

/* ---------- footer */
.foot { background: var(--blue); color: #fff; padding: 0 var(--gutter) 24px; overflow: hidden; }
.foot-name { font-size: clamp(120px, 34vw, 560px); font-weight: 900; letter-spacing: -.06em; line-height: .86; margin-left: -.03em; white-space: nowrap; padding-top: 16px; }
.foot-row { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); margin-top: 72px; }
.foot-big { display: flex; flex-direction: column; gap: 8px; }
.foot-big a { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; text-decoration: none; transition: opacity .14s; }
.foot-big a:hover { opacity: .72; }
.foot-cols { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter); font-size: var(--step-small); line-height: 1.4; }
.foot-cols a { text-underline-offset: 2px; }
.foot-cols > div:first-child a { display: block; text-decoration: none; padding: 2px 0; }
.foot-cols p { margin-bottom: 6px; }
.foot-h { font-size: var(--step-small); font-weight: 900; margin-bottom: 8px; }
.foot-end { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 96px; font-size: var(--step-small); }

/* ---------- setup page */
.setup { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.fam-chess .setup-info, .setup.fam-chess .setup-info { background: var(--blue); color: #fff; }
.setup.fam-rules .setup-info { background: var(--red); color: var(--ink); }
.setup.fam-armies .setup-info { background: var(--ink); color: #fff; }
.setup.fam-boards .setup-info { background: var(--navy); color: #fff; }
.setup.fam-east .setup-info { background: var(--ink); color: #fff; }
.setup-info { padding: 0 var(--gutter) var(--gutter); display: flex; flex-direction: column; position: sticky; top: 0; height: 100svh; align-self: start; overflow-y: auto; }
.setup-top { display: flex; align-items: center; gap: 20px; margin-left: calc(-1 * var(--gutter)); }
.setup-crumb { font-weight: 500; font-size: var(--step-small); text-decoration: none; }
.setup-crumb:hover { text-decoration: underline; }
.setup-name { font-size: clamp(48px, 7.4vw, 128px); font-weight: 900; letter-spacing: -.05em; line-height: .92; margin-top: clamp(24px, 5svh, 56px); }
.setup-blurb { font-size: var(--step-lead); line-height: 1.25; margin: 16px 0 28px; max-width: 34ch; font-weight: 500; }
.setup-lower { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: var(--gutter); margin-top: auto; align-items: end; }
.setup-board { width: 100%; max-height: 62svh; object-fit: contain; object-position: left bottom; }
.setup-how { font-size: 1rem; }
.setup-go { padding: clamp(24px, 5svh, 56px) var(--gutter) 64px; display: flex; flex-direction: column; gap: 28px; }
.how-h, .go-h { font-size: var(--step-lead); font-weight: 900; letter-spacing: -.02em; margin-bottom: 10px; }
.how li { margin-bottom: 6px; line-height: 1.4; max-width: 60ch; }
.how-h { margin-bottom: 8px; }
.go-block { background: var(--surface); padding: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { min-height: 40px; padding: 8px 14px; background: #e3e3e3; border: 0; font-weight: 500; font-size: var(--step-small); transition: background-color .12s, transform .12s; }
.chip:hover { background: #d4d4d4; }
.chip:active { transform: translateY(1px); }
.chip.on { background: var(--ink); color: #fff; }
.go-note { margin-top: 10px; font-size: var(--step-small); line-height: 1.4; }
.go-row { display: flex; flex-wrap: wrap; gap: 8px; }
.name-in { width: min(100%, 320px); min-height: 44px; padding: 8px 12px; background: #fff; border: 2px solid var(--ink); }
.ghost-on { background: var(--ink); }

/* ---------- playing */
.shell { display: flex; flex-direction: column; height: 100svh; background: #0a0a0a; color: #fff; }
.bar { display: flex; align-items: stretch; min-height: 48px; flex: none; }
.bar-tab { flex: 1; display: flex; align-items: center; padding: 0 18px; background: var(--blue); color: #fff; min-width: 0; }
.bar.fam-rules .bar-tab { background: var(--red); color: var(--ink); }
.bar.fam-armies .bar-tab { background: #f3f3f3; color: var(--ink); }
.bar.fam-boards .bar-tab { background: var(--navy); }
.bar.fam-east .bar-tab { background: #b3261e; }
.bar-title { font-size: 1.0625rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-link { display: flex; align-items: center; padding: 0 18px; background: #1b1b1f; color: #fff; text-decoration: none; font-size: var(--step-small); font-weight: 500; white-space: nowrap; transition: background-color .12s; }
.bar-link:hover { background: #2a2a2f; }
.shell > div:last-child { flex: 1; min-height: 0; }

.play { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 27vw, 420px); grid-template-rows: auto auto auto minmax(0, 1fr) auto auto auto; gap: 2px;
  grid-template-areas: "stage top" "stage status" "stage extra" "stage moves" "stage ctl" "stage rules" "stage bot"; }
.stage { grid-area: stage; position: relative; min-height: 0; min-width: 0; container-type: size; --ar: 1; padding: 0; }
.stage-in { position: absolute; inset: clamp(8px, 1.4vw, 20px); display: grid; place-items: center; }
.player { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 14px; background: #17171b; align-items: center; }
.player:nth-of-type(2) { grid-area: top; }
.player.to-move { background: #24242a; }
.who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.name { font-weight: 900; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { font-size: var(--step-small); color: #b9b9c0; }
.clock { grid-column: 2; grid-row: 1; font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; padding: 2px 10px; background: #2a2a30; color: #cfcfd6; min-width: 4ch; text-align: right; line-height: 1.3; }
.clock:empty { display: none; }
.clock.on { background: #fff; color: #0a0a0a; }
.clock.low.on { background: var(--red); color: #0a0a0a; }
.hand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px; }
.hand:empty { display: none; }
.hand-b { position: relative; width: 38px; height: 38px; padding: 2px; background: #2a2a30; border: 0; transition: background-color .12s; }
.hand-b img { width: 100%; height: 100%; }
.hand-b:hover:enabled { background: #3a3a42; }
.hand-b.on { background: #12c26b; }
.hand-b:disabled { cursor: default; }
.hand-n { position: absolute; right: 1px; bottom: 0; font-size: 13px; font-weight: 900; background: #fff; color: #0a0a0a; padding: 0 3px; line-height: 1.2; }
.status { grid-area: status; padding: 10px 14px; background: #17171b; }
.status-line { font-weight: 500; line-height: 1.3; font-size: var(--step-body); }
.status.over .status-line { font-weight: 900; font-size: var(--step-lead); letter-spacing: -.02em; }
.status-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.status-acts:not(:empty) { margin-top: 10px; }
.status-acts .btn { min-height: 40px; padding: 6px 14px; font-size: var(--step-small); }
.extra { grid-area: extra; background: #17171b; }
.extra:empty { display: none; }
.moves { grid-area: moves; background: #111114; overflow-y: auto; padding: 8px 10px; display: grid; grid-template-columns: 2.4em 1fr 1fr; align-content: start; gap: 1px 4px; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.mv-n { color: #8f8f98; padding: 4px 0; text-align: right; padding-right: 8px; }
.mv-c { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; }
.mv { background: none; border: 0; padding: 4px 6px; text-align: left; transition: background-color .1s; overflow-wrap: anywhere; }
.mv:hover { background: #26262c; }
.mv.cur { background: #fff; color: #0a0a0a; font-weight: 500; }
.mv-empty { grid-column: 1 / -1; color: #b9b9c0; padding: 6px; }
.ctl { grid-area: ctl; display: flex; flex-wrap: wrap; gap: 2px; background: #111114; padding: 0; }
.tool { flex: 1 1 auto; min-height: 40px; min-width: 40px; padding: 6px 10px; background: #1f1f24; border: 0; color: #fff; font-size: var(--step-small); font-weight: 500; transition: background-color .1s; }
.tool:hover { background: #33333a; }
.tool:disabled { opacity: .4; cursor: default; }
select.tool { appearance: auto; }
.rules { grid-area: rules; background: #17171b; padding: 8px 14px; font-size: var(--step-small); line-height: 1.4; max-height: 40vh; overflow-y: auto; }
.rules summary { cursor: pointer; font-weight: 500; }
.rules ul { margin-top: 8px; }
.rules li { margin-bottom: 6px; }
.play > .player:last-child { grid-area: bot; }

.board2d { position: relative; width: min(100cqw, calc(100cqh * var(--ar))); max-width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; color: #fff; }
.stage-in { container-type: size; }
.board2d.is-cube { touch-action: none; }
.b-bg, .b-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.b-marks, .b-pieces, .b-arrows { position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%; }
.pc, .mk { position: absolute; left: 0; top: 0; }
.pc { background-size: contain; background-position: center; background-repeat: no-repeat; transition: transform .17s var(--ease); }
.pc.no-anim { transition: none; }
.pc.is-drag { z-index: 5; transition: none; }
.pc.is-hole { background: #0a0a0a; }
.is-hex .pc.is-hole { clip-path: polygon(0 50%, 25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%); }
.mk-last { background: rgba(255, 214, 51, .52); }
.mk-sel { background: rgba(18, 194, 107, .62); }
.mk-check { background: rgba(255, 40, 16, .78); }
.mk-fog { background: #0b0b12; }
.mk-dot::after { content: ''; position: absolute; left: 34%; top: 34%; width: 32%; height: 32%; border-radius: 50%; background: rgba(18, 194, 107, .92); }
.mk-cap { border: clamp(3px, .5cqw, 6px) solid rgba(255, 40, 16, .9); }
.hx { clip-path: polygon(0 50%, 25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%); }
.hx.mk-cap { border: 0; background: rgba(255, 40, 16, .62); }
.board3d { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.board3d canvas { width: 100%; height: 100%; display: block; }
.board3d:active { cursor: grabbing; }

.promo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; color: #0a0a0a; padding: 18px; z-index: 10; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); /* taste-skill-ignore: a real dialog over the board */ }
.promo-t { font-weight: 900; font-size: var(--step-lead); margin-bottom: 10px; letter-spacing: -.02em; }
.promo-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.promo-b { width: 72px; height: 72px; padding: 4px; background: #bdbab0; border: 0; transition: background-color .1s; }
.promo-b:hover, .promo-b:focus-visible { background: #ffc400; }
.promo-b img { width: 100%; height: 100%; }

.cr-count { font-weight: 500; padding: 10px 14px 0; font-variant-numeric: tabular-nums; }
.cr-count:empty { display: none; }
.cr-tally { padding: 8px 14px; display: flex; flex-direction: column; gap: 2px; font-size: var(--step-small); max-height: 22vh; overflow-y: auto; }
.cr-tally:empty { display: none; }
.cr-row { display: flex; justify-content: space-between; padding: 4px 8px; background: #2a2a30; }
.cr-row.mine { background: #12c26b; color: #0a0a0a; }
.cr-mv { font-weight: 900; } .cr-n { font-variant-numeric: tabular-nums; }
.cr-next { padding: 0 14px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.cr-next:empty { display: none; }
.cr-next .chip { color: #0a0a0a; }
.cr-next .chip.on { color: #fff; background: var(--blue); }
.cr-h { width: 100%; font-weight: 900; }
.cr-rec { padding: 0 14px 10px; font-size: var(--step-small); color: #cfcfd6; }

.seekbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 12px var(--gutter); background: #ffc400; color: #0a0a0a; font-weight: 500; animation: seekUp .24s var(--ease) both; }
.seek-c { font-variant-numeric: tabular-nums; font-weight: 900; }
@keyframes seekUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- narrower screens */
@media (max-width: 1100px) {
  .wall, .wall-5, .wall-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mast-tab { width: auto; flex: 1; min-width: 0; }
}
@media (max-width: 860px) {
  .shell { height: auto; min-height: 100svh; }
  .play { height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "top" "stage" "bot" "status" "extra" "ctl" "moves" "rules"; }
  .stage { height: calc(100vw / var(--ar)); max-height: 78svh; }
  .stage.is-3d { height: 100vw; }
  .stage-in { inset: 0; }
  .moves { max-height: 34svh; }
  .setup { grid-template-columns: minmax(0, 1fr); }
  .setup-info { position: static; height: auto; overflow: visible; }
  .setup-lower { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .mast { min-height: 0; }
  .mast-text { padding-bottom: 64px; }
  .mosaic { height: 38svh; grid-template-columns: repeat(3, 1fr); padding-top: 48px; background: var(--ink); }
  .m-a { grid-column: 1 / span 2; grid-row: 1; } .m-b { grid-column: 3; grid-row: 1; } .m-c { grid-column: 3; grid-row: 2; } .m-d { grid-column: 1; grid-row: 2; } .m-g { grid-column: 2; grid-row: 2; }
  .m-e, .m-f, .m-h, .m-i { display: none; }
  .mast-tab { display: none; }
  .mast-text { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 20px; }
  .mast-h { order: -1; font-size: 11.6vw; }
  .mast-side { max-width: none; padding: 0; }
  .ch { min-height: 0; padding-top: 64px; padding-bottom: 72px; }
  .ch-h { font-size: 15vw; }
  .wall, .wall-5, .wall-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gutter); }
  .mode-name { font-size: 1.25rem; }
  .mode-line { font-size: 1rem; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio .mode:first-child { grid-column: 1 / -1; }
  .rows, .feature { grid-template-columns: minmax(0, 1fr); }
  .mode-row { grid-template-columns: 112px 1fr; }
  .live { grid-template-columns: minmax(0, 1fr); }
  .live-list { grid-column: 1; grid-row: auto; }
  .live-row { grid-template-columns: 1fr auto; }
  .live-names { grid-column: 1 / -1; grid-row: 2; }
  .crowd-grid, .tree { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .crowd-board .board2d { width: 100%; }
  .prints { grid-template-columns: minmax(0, 1fr); }
  .foot-row, .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .foot-end { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
}
