:root {
  --bg: #1b1622; --panel: #2a2233; --panel2: #352b40; --ink: #f6efe6; --muted: #b9adc4;
  --accent: #ffb347; --accent-ink: #2a1a00; --good: #3fbf7f; --bad: #e5534b; --line: #4a3d57;
  --g: #4caf50; --y: #e3b341; --x: #4a4452; --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { min-height: 100dvh; }
body.center { display: grid; place-items: center; padding: 16px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
button, input, textarea { font: inherit; color: inherit; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; width: min(420px, 100%); }
.err { color: var(--bad); margin: 0; }
input, textarea { width: 100%; padding: 14px; border-radius: 12px; border: 2px solid var(--line); background: #17121d; font-size: 18px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }

button { border: 0; border-radius: 12px; padding: 14px 16px; font-size: 18px; font-weight: 650; background: var(--panel2); cursor: pointer; touch-action: manipulation; }
button.primary { background: var(--accent); color: var(--accent-ink); }
button.danger { background: var(--bad); color: white; }
button.good { background: var(--good); color: #062; }
button.ghost { background: transparent; border: 2px solid var(--line); }
button:disabled { opacity: .45; cursor: default; }
button:active:not(:disabled) { transform: scale(.97); }

/* ---------- widget tree ---------- */
.w-col { display: grid; gap: 12px; align-content: start; }
.w-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; align-items: start; }
.w-h1 { font-size: 28px; text-align: center; }
.w-h2 { font-size: 22px; }
.w-h3 { font-size: 17px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.w-text { margin: 0; white-space: pre-wrap; }
.w-text.muted { color: var(--muted); font-size: 15px; }
.w-text.big { font-size: 22px; font-weight: 650; }
.w-text.center { text-align: center; }
.w-card { background: var(--panel2); border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; border-left: 6px solid var(--card, var(--accent)); }
.w-card .emoji { font-size: 40px; line-height: 1; }
.w-card .title { font-size: 21px; font-weight: 700; white-space: pre-wrap; }
.w-card .text { color: var(--muted); white-space: pre-wrap; }
.w-card img { width: 100%; border-radius: 10px; }
.w-secret > button { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.w-secret.hold > button { background: repeating-linear-gradient(45deg, #3b2f48, #3b2f48 10px, #33283f 10px, #33283f 20px); padding: 22px 16px; }
.w-secret .body { margin-top: 10px; display: grid; gap: 12px; }
.w-choices { display: grid; gap: 8px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.w-choices button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; min-height: 56px; font-size: 16px; overflow: hidden; }
.w-choices button.sel { outline: 3px solid var(--accent); background: #4a3a22; }
.w-choices .lbl { display: grid; min-width: 0; }
.w-choices .lbl span { overflow: hidden; text-overflow: ellipsis; }
.w-choices .sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.w-choices .emo { font-size: 26px; }
.w-choices.one button { font-size: 18px; min-height: 64px; }
.w-toggles { display: grid; gap: 6px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.w-toggles button { font-size: 14px; padding: 9px 8px; text-align: left; font-weight: 500; }
.w-toggles button.off { opacity: .35; text-decoration: line-through; }
.w-input { display: grid; gap: 8px; }
.w-timer { font-variant-numeric: tabular-nums; font-size: 30px; font-weight: 800; text-align: center; padding: 4px; border-radius: 12px; background: var(--panel); }
.w-timer.low { color: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.w-avatars { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { display: grid; justify-items: center; gap: 2px; position: relative; font-size: 13px; width: 64px; text-align: center; }
.chip.dim { opacity: .4; }
.chip.glow .av { box-shadow: 0 0 0 4px var(--accent), 0 0 24px var(--accent); }
.chip .tag { position: absolute; top: -6px; right: 0; font-size: 18px; }
.chip span { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-avatars.m .chip { width: 92px; font-size: 16px; }
.w-avatars.l .chip { width: 120px; font-size: 20px; }
.av { width: 52px; height: 52px; border-radius: 50%; background: #463a52 center/cover; display: grid; place-items: center; font-weight: 800; flex: none; }
.w-avatars.m .av { width: 76px; height: 76px; }
.w-avatars.l .av { width: 104px; height: 104px; }
.w-choices .av { width: 40px; height: 40px; }
.w-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.w-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--panel); border-radius: 10px; }
.w-list li .av { width: 32px; height: 32px; }
.w-list li .l { flex: 1; }
.w-list li .r { font-weight: 700; color: var(--accent); text-align: right; }
.w-list li.strong { outline: 2px solid var(--accent); }
.w-qr { display: grid; justify-items: center; gap: 8px; }
.w-qr img { width: min(300px, 70vw); background: white; border-radius: 12px; padding: 8px; }
.w-qr .code { font-size: 56px; font-weight: 900; letter-spacing: .15em; }
.w-qr .url { color: var(--muted); font-size: 14px; word-break: break-all; text-align: center; }

/* wordle */
.w-wordle { display: grid; gap: 10px; justify-items: center; }
.wgrid { display: grid; gap: 5px; }
.wrow { display: grid; grid-template-columns: repeat(var(--len), 1fr); gap: 5px; }
.wcell { width: 52px; height: 52px; border: 2px solid var(--line); display: grid; place-items: center; font-size: 26px; font-weight: 800; border-radius: 6px; }
.wcell.g { background: var(--g); border-color: var(--g); }
.wcell.y { background: var(--y); border-color: var(--y); color: #222; }
.wcell.x { background: var(--x); border-color: var(--x); }
.wcell.typed { border-color: #8c7d9c; }
.mini .wcell { width: 20px; height: 20px; font-size: 11px; border-width: 1px; border-radius: 3px; }
.wkeys { display: grid; gap: 6px; width: 100%; }
.wkrow { display: flex; gap: 5px; justify-content: center; }
.wkrow button { padding: 0; height: 52px; flex: 1; max-width: 42px; font-size: 17px; }
.wkrow button.wide { max-width: 68px; flex: 1.6; font-size: 13px; }
.wkrow button.g { background: var(--g); } .wkrow button.y { background: var(--y); color: #222; } .wkrow button.x { background: #221c28; color: #6d6378; }
.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- phone shell ---------- */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(27, 22, 34, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .code { font-weight: 900; letter-spacing: .12em; }
.topbar .me { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar .av { width: 34px; height: 34px; }
.topbar button { padding: 8px 12px; font-size: 15px; }
main { padding: 14px; max-width: 560px; margin: 0 auto; display: grid; gap: 12px; padding-bottom: 80px; }
.menu { display: grid; gap: 8px; padding: 12px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.banner { text-align: center; padding: 8px; background: var(--bad); color: white; font-size: 14px; }
.hidden { display: none !important; }

/* ---------- drawing pad ---------- */
.w-draw { display: grid; gap: 10px; }
.w-draw .draw-prompt { font-size: 22px; font-weight: 700; text-align: center; padding: 10px; background: var(--panel2); border-radius: var(--radius); }
.w-draw .draw-canvas { width: 100%; aspect-ratio: 1; background: #fff; border-radius: var(--radius); touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.w-draw .draw-tools { display: grid; gap: 8px; }
.w-draw .draw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.w-draw .swatch { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 3px solid transparent; }
.w-draw .swatch.sel { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.w-draw .size { width: 44px; height: 38px; padding: 0; display: grid; place-items: center; }
.w-draw .size i { display: block; border-radius: 50%; background: var(--ink, #f6efe6); }
.w-draw .size.sel, .w-draw .tool.sel { outline: 3px solid var(--accent); }
.w-draw .tool { padding: 8px 12px; font-size: 16px; }
.w-row > .w-card img { width: 100%; }

/* ---------- TV ---------- */
body.tv { overflow: hidden; }
#scene { position: fixed; inset: 0; z-index: 0; }
#board { position: fixed; z-index: 1; inset: 0; padding: 3vh 3vw; pointer-events: none; display: grid; align-content: start; }
#board > .w-col { pointer-events: auto; max-width: 50vw; margin-left: auto; background: rgba(27, 22, 34, .82); padding: 24px; border-radius: 20px; backdrop-filter: blur(6px); font-size: 22px; max-height: 94vh; overflow: auto; }
#board.wide > .w-col { max-width: none; margin: 0 auto; width: 100%; }
#board .w-card .title { font-size: 30px; }
#board .w-h1 { font-size: 44px; }
#board .w-h2 { font-size: 32px; }
#board .w-text.big { font-size: 32px; }
#board .w-timer { font-size: 54px; }
#board .w-list li { font-size: 22px; padding: 10px 14px; }
.tvbar { position: fixed; z-index: 2; left: 16px; bottom: 16px; display: flex; gap: 8px; }
.tvbar button { font-size: 15px; padding: 10px 14px; opacity: .8; }

/* ---------- Sky Aces arena ---------- */
.sky-arena { position: fixed; inset: 0; z-index: 4; background: #8ecbff; touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; }
.sky-arena canvas { display: block; width: 100%; height: 100%; }
body.has-arena { overflow: hidden; }
body.has-arena .menu { position: relative; z-index: 6; }
body.tv .sky-arena { z-index: 0; }
body.tv.has-arena #scene { display: none; }
body.tv.has-arena #board > .w-col { max-width: 360px; font-size: 16px; padding: 14px; background: rgba(27, 22, 34, .6); }
body.tv.has-arena #board .w-timer { font-size: 34px; }
body.tv.has-arena #board .w-list li { font-size: 17px; padding: 5px 10px; }
.sky-hud { position: absolute; inset: 0; pointer-events: none; color: #fff; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sky-hud > * { pointer-events: auto; }
.sky-hud .sky-top, .sky-hud .sky-feed, .sky-hud .sky-msg, .sky-hud .sky-arrows, .sky-hud .sky-follow { pointer-events: none; }
.sky-top { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); display: flex; gap: 16px; align-items: center; font-size: 20px; background: rgba(20,16,28,.45); padding: 6px 14px; border-radius: 14px; }
body.tv .sky-top { top: 3vh; left: 3vw; transform: none; font-size: 28px; }
.sky-hp { width: 120px; height: 12px; background: rgba(0,0,0,.4); border-radius: 6px; overflow: hidden; display: inline-block; }
.sky-hp i { display: block; height: 100%; width: 100%; background: #5bd36a; transition: width .2s; }
.sky-feed { position: absolute; top: 110px; left: 12px; display: grid; gap: 4px; font-size: 15px; }
body.tv .sky-feed { top: 10vh; left: 3vw; font-size: 24px; }
.sky-feed div { background: rgba(20,16,28,.5); padding: 4px 10px; border-radius: 10px; }
.sky-msg { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); font-size: 26px; text-align: center; white-space: pre-line; background: rgba(20,16,28,.55); padding: 12px 20px; border-radius: 16px; }
.sky-msg.warn { color: #ffd36b; animation: skyblink .5s infinite alternate; }
@keyframes skyblink { to { opacity: .35; } }
.sky-toast { position: absolute; top: 28%; left: 50%; transform: translateX(-50%); font-size: 34px; pointer-events: none; animation: skytoast 1.4s forwards; }
@keyframes skytoast { from { transform: translate(-50%, 10px); opacity: 0; } 20% { transform: translate(-50%, 0); opacity: 1; } to { opacity: 0; } }
.sky-arrow { position: absolute; width: 0; height: 0; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 22px solid currentColor; filter: drop-shadow(0 0 3px #000); }
.sky-follow { position: absolute; bottom: 10vh; left: 3vw; font-size: 30px; background: rgba(20,16,28,.55); padding: 8px 18px; border-radius: 14px; }
.sky-follow i { display: inline-block; width: 18px; height: 18px; border-radius: 4px; vertical-align: middle; }
.sky-stickzone { position: absolute; left: 0; bottom: 0; width: 55%; height: 62%; }
.sky-hint { position: absolute; left: 24px; bottom: 30px; opacity: .8; font-size: 16px; max-width: 70%; }
.sky-base { position: fixed; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.5); }
.sky-knob { position: absolute; left: 40px; top: 40px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.75); }
.sky-fire { position: absolute; right: 22px; bottom: 26px; width: 112px; height: 112px; border-radius: 50%; background: rgba(229,57,53,.8); color: #fff; font-size: 22px; font-weight: 900; border: 3px solid rgba(255,255,255,.7); touch-action: none; }
.sky-fire.on { background: #ff7043; transform: scale(.95); }
.sky-thr { position: absolute; right: 150px; bottom: 26px; display: grid; justify-items: center; font-size: 12px; }
.sky-thr input { writing-mode: vertical-lr; direction: rtl; height: 120px; width: 34px; }
.sky-btns { position: absolute; top: 64px; right: 10px; display: grid; gap: 6px; justify-items: end; }
.sky-btns button { font-size: 13px; padding: 6px 10px; background: rgba(20,16,28,.55); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; }
.sky-hud.in-vr .sky-stickzone, .sky-hud.in-vr .sky-fire, .sky-hud.in-vr .sky-thr { display: none; }
@media (pointer: fine) { .sky-fire, .sky-thr { opacity: .55; } }

/* ---------- Hubbub ---------- */
.sky-arena.arena-hubbub { background: radial-gradient(circle at 50% 30%, #3a2a55, #1b1622 70%); overflow-y: auto; touch-action: manipulation; }
.hb { min-height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 64px 14px 18px; box-sizing: border-box; text-align: center; }
.hb-top { display: flex; justify-content: space-between; color: var(--muted, #b9aecb); font-weight: 700; }
.hb-call { font-size: clamp(30px, 9vw, 64px); font-weight: 900; line-height: 1.05; min-height: 1.1em; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.hb-bar { height: 10px; border-radius: 5px; background: rgba(255,255,255,.12); overflow: hidden; }
.hb-bar i { display: block; height: 100%; width: 0; background: #ffd36b; }
.hb-main { flex: 1; display: grid; align-content: center; gap: 12px; }
.hb-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 100%; min-height: 55vh; }
@media (orientation: landscape) { .hb-pads { grid-template-columns: repeat(3, 1fr); min-height: 50vh; } }
.hb-pad { background: #2a2236; border: 3px solid rgba(255,255,255,.12); border-radius: 22px; padding: 8%; display: grid; place-items: center; touch-action: manipulation; }
.hb-pad svg { width: 100%; height: 100%; max-height: 22vh; }
.hb-pad.hit { border-color: #fff; transform: scale(.94); }
.hb-pad:disabled { opacity: .55; }
.hb-move { display: grid; justify-items: center; gap: 12px; }
.hb-icon { font-size: 96px; line-height: 1; min-height: 96px; }
.hb-big { font-size: 26px; font-weight: 800; margin: 0; }
.hb-rules { font-size: 20px; line-height: 1.5; }
.hb-prog { width: 80%; height: 18px; border-radius: 9px; background: rgba(255,255,255,.12); overflow: hidden; }
.hb-prog i { display: block; height: 100%; width: 0; background: #5bd36a; transition: width .1s; }
.hb-note { font-size: 26px; font-weight: 800; min-height: 1.3em; color: #ffd36b; }
.hb .primary, .hb button { font-size: 22px; padding: 16px 22px; }
.hb-good { animation: hbgood .5s; }
.hb-bad { animation: hbbad .5s; }
@keyframes hbgood { from { box-shadow: inset 0 0 0 100vmax rgba(60, 200, 100, .45); } }
@keyframes hbbad { from { box-shadow: inset 0 0 0 100vmax rgba(220, 50, 50, .45); } }

/* ---------- Floor pad page ---------- */
body.padpage { margin: 0; overflow: hidden; background: #120e18; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#pad { position: fixed; inset: 0; display: grid; place-items: center; background: #221a2e; transition: background .2s; }
#pad.idle { background: #120e18; }
#pad.dim #padShape { opacity: .25; }
#pad.pressed { background: #3a2d4e; }
#pad.good { animation: padgood .7s; }
#pad.bad { animation: padbad .7s; }
@keyframes padgood { from { background: #2fbf5a; } }
@keyframes padbad { from { background: #d33; } }
#padShape { width: min(86vw, 86vh); height: min(86vw, 86vh); grid-area: 1 / 1; }
#padShape svg { width: 100%; height: 100%; }
#padText { grid-area: 1 / 1; font-size: clamp(22px, 6vw, 48px); font-weight: 900; text-align: center; white-space: pre-line; padding: 20px; text-shadow: 0 2px 6px #000; pointer-events: none; }
.pad-corner { position: fixed; top: 8px; left: 10px; z-index: 2; font-size: 13px; opacity: .6; }
.pad-corner button { font-size: 14px; padding: 2px 8px; }
#padClaim { position: fixed; inset: 0; z-index: 3; background: rgba(18,14,24,.94); padding: 20px; overflow: auto; text-align: center; }
#padClaim h2 { font-size: 28px; }
.pad-claim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.pad-claim-grid button { display: grid; justify-items: center; gap: 6px; padding: 10px; font-size: 18px; }
.pad-claim-grid .av { width: 64px; height: 64px; }

/* ---------- Word Agents grid ---------- */
.w-wordgrid { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 6px; }
.w-wordgrid .wg { position: relative; padding: 14px 2px; min-height: 54px; border-radius: 10px; background: #f3ead8; color: #2a2233; border: 3px solid transparent; font-weight: 800; font-size: clamp(10px, 2.9vw, 17px); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; }
.w-wordgrid .wg:disabled { opacity: 1; cursor: default; }
.w-wordgrid .wg.mine { border-color: #ffb347; box-shadow: 0 0 0 2px #ffb347; }
.w-wordgrid .wg .votes { position: absolute; top: 2px; right: 4px; font-size: 9px; color: #e5534b; letter-spacing: 1px; }
/* Chief's key (unrevealed): a coloured edge. Revealed: solid colour. */
.w-wordgrid .wg.k-red { border-bottom: 7px solid #c8433b; }
.w-wordgrid .wg.k-blue { border-bottom: 7px solid #3b6fc8; }
.w-wordgrid .wg.k-neutral { border-bottom: 7px solid #b8a888; }
.w-wordgrid .wg.k-trap { border-bottom: 7px solid #111; }
.w-wordgrid .wg.rev { border: 3px solid transparent; }
.w-wordgrid .wg.rev.k-red { background: #c8433b; color: #fff; }
.w-wordgrid .wg.rev.k-blue { background: #3b6fc8; color: #fff; }
.w-wordgrid .wg.rev.k-neutral { background: #b8a888; color: #3a3226; }
.w-wordgrid .wg.rev.k-trap { background: #111; color: #ff6b6b; }
#board .w-wordgrid .wg { font-size: 22px; padding: 22px 4px; }

/* ---------- Tile Pile ---------- */
.w-tilepile { display: grid; gap: 10px; }
.tp-rack { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 360px; margin: 0 auto; width: 100%; }
.tp-slot { aspect-ratio: 1; font-size: 30px; font-weight: 900; border-radius: 10px; background: rgba(255,255,255,.06); border: 2px dashed rgba(255,255,255,.25); color: #fff; padding: 0; }
.tp-slot.full { background: #ffb347; color: #2a2233; border: 2px solid #ffb347; }
.tp-slot:disabled { opacity: 1; }
.tp-msg { text-align: center; min-height: 1.4em; color: #ffd36b; font-weight: 700; }
/* The heap: tiles on a half-tile grid, each spanning two cells; higher layers sit on top. */
.tp-heap { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: var(--ar); background: rgba(0,0,0,.18); border-radius: 16px; container-type: inline-size; }
.tp-tile { position: absolute; display: grid; place-items: center; padding: 0; border: none; border-radius: 9%; font-size: calc(var(--tw) * .55); font-weight: 900; line-height: 1;
  background: #c9b48e; color: #3a2e20; box-shadow: 0 4px 0 #4a3a28, 0 5px 6px rgba(0,0,0,.35); }
.tp-tile.free { background: #fbf2dc; color: #2a2233; cursor: pointer; box-shadow: 0 4px 0 #a8977a, 0 6px 10px rgba(0,0,0,.4); }
.tp-tile.free:active { transform: translateY(3px); box-shadow: 0 1px 0 #a8977a; }
.tp-tile.gone { visibility: hidden; }

/* ---------- Crosshatch ---------- */
.w-swapgrid { display: grid; justify-items: center; gap: 6px; }
.sg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: min(92vw, 380px); }
.sg-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: 30px; font-weight: 900; color: #fff; background: #5a5266; border: none; padding: 0; text-transform: uppercase; }
.sg-cell.g { background: #4caf50; }
.sg-cell.y { background: #e3b341; }
.sg-cell.sel { outline: 4px solid #fff; transform: scale(.92); }
.sg-hole { aspect-ratio: 1; }
.w-swapgrid.mini .sg-grid { width: 90px; gap: 2px; }
.w-swapgrid.mini .sg-cell { border-radius: 3px; font-size: 0; }
.sg-label { font-size: 14px; font-weight: 700; }
#board .w-swapgrid.mini .sg-grid { width: 110px; }

/* ---------- Help page ---------- */
body.helppage { max-width: 760px; margin: 0 auto; padding: 0 14px 40px; }
.help-head { display: flex; align-items: center; gap: 14px; position: sticky; top: 0; background: var(--bg, #1b1622); padding: 10px 0; z-index: 2; }
.help-head h1 { margin: 0; font-size: 26px; }
.help-back { color: #ffb347; text-decoration: none; font-weight: 700; }
.help-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.help-toc a { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: inherit; text-decoration: none; font-size: 14px; }
.help-card { background: rgba(255,255,255,.05); border-radius: 16px; padding: 14px 18px; margin-bottom: 14px; scroll-margin-top: 60px; }
.help-card h2 { margin: 0 0 6px; }
.help-card h2 small { font-size: 14px; font-weight: 600; opacity: .65; margin-left: 6px; }
.help-card li { margin: 6px 0; line-height: 1.45; }
.help-blurb { opacity: .8; font-style: italic; }
.help-opts { font-size: 14px; opacity: .75; }
.help-link { display: block; text-align: center; margin-top: 10px; color: #ffb347; font-weight: 700; text-decoration: none; }
/* Covered tiles show their letter in the strip that peeks out above the tile in front. */
