@font-face { font-family: 'Gentium Book Plus'; font-weight: 400; font-display: swap; src: url(/fonts/gentiumbookplus-400.woff2) format('woff2'); }
@font-face { font-family: 'Gentium Book Plus'; font-weight: 700; font-display: swap; src: url(/fonts/gentiumbookplus-700.woff2) format('woff2'); }
@font-face { font-family: 'Gentium Book Plus'; font-weight: 700; font-style: italic; font-display: swap; src: url(/fonts/gentiumbookplus-700-i.woff2) format('woff2'); }
@font-face { font-family: 'Murecho'; font-weight: 400 800; font-display: swap; src: url(/fonts/murecho-400-800.woff2) format('woff2'); }
@font-face { font-family: 'Shadows Into Light'; font-weight: 400; font-display: swap; src: url(/fonts/shadowsintolight-400.woff2) format('woff2'); }

/* Margin: a squared maths exercise book. The page is 5 mm squared paper with the red margin rule down the left,
   the header and footer are the matte blue cover. Charts are drawn in pencil against a ruler, gains and losses are
   hatched in green and red coloured pencil, liquidation prices and disqualifications are marked in red pen, final
   amounts are double-underlined like the answer to a sum. Gentium Book Plus (textbook serif) for the word mark,
   headings and figures, Murecho for text, Shadows Into Light only for pencil notes on the charts. */
:root {
  --paper: #fdfcf8; --paper-2: #f4f2ea; --sheet: #ffffff;
  --grid: #e1eaf1; --grid-2: #c7d7e4;
  --ink: #1d1f24; --ink-2: #3c3f46; --muted: #6b6f78; --line: #dfe5ea; --line-2: #b9c6d1;
  --graphite: #34363c; --graphite-l: #8a8d93;
  --margin: #e0443e; --redpen: #cc2a2a;
  --cover: #213f8a; --cover-d: #172d66; --cover-l: #2f55b0;
  --blue: #2445b5; --blue-d: #142c80; --blue-l: #3d5fd0;
  --up: #1b7a44; --down: #c22c2a;
  --hl: #fff27a;
  --display: 'Gentium Book Plus', 'Iowan Old Style', Georgia, serif;
  --text: 'Murecho', 'Helvetica Neue', Arial, sans-serif;
  --pencil: 'Shadows Into Light', 'Comic Neue', cursive;
  --sq: 24px;
  --squares: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.6 var(--text); font-variant-numeric: tabular-nums; font-synthesis: none;
  background-color: var(--paper); background-image: var(--squares); background-size: var(--sq) var(--sq); background-position: -1px -1px;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-d); }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.005em; margin: 0 0 .45em; color: var(--ink); }
h3, h4 { font-family: var(--text); font-weight: 700; line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: clamp(40px, 4.7vw, 64px); }
h2 { font-size: clamp(27px, 2.6vw, 36px); }
/* section headings ruled off in red, as in an exercise book */
.block > h2, .doc h2, .board-head h2 { display: inline-block; padding-bottom: 6px; background: linear-gradient(var(--margin), var(--margin)) 0 100% / 100% 2px no-repeat; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p { margin: 0 0 .8em; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .8em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--ink); }
.ico { width: 1em; height: 1em; vertical-align: -.12em; margin-left: .25em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.app { flex: 1; padding-bottom: 64px; position: relative; }
/* the margin rule */
.app::before { content: ''; position: absolute; top: 0; bottom: 0; left: max(6px, calc(50% - 650px)); width: 2px; background: var(--margin); pointer-events: none; }
.loading { padding: 80px 0; }

/* ---------- header: the blue cover ---------- */
.top {
  position: sticky; top: 0; z-index: 20; color: #fff;
  background: linear-gradient(180deg, #2548a0 0, var(--cover) 55%, #1c3779 100%);
  box-shadow: 0 1px 0 var(--cover-d), 0 3px 0 rgba(23, 45, 102, .12), 0 6px 14px rgba(29, 31, 36, .12);
}
.top-in { max-width: 1240px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 700 35px/1 var(--display); letter-spacing: -.005em; }
.brand:hover { color: #fff; }
.brand-mark { width: 44px; height: 44px; filter: drop-shadow(0 2px 0 rgba(10, 22, 56, .45)); }
.brand-mark.sm { width: 26px; height: 26px; vertical-align: -6px; margin-right: 6px; filter: none; }
.nav { display: flex; gap: 26px; flex: 1; }
.nav a { color: #c9d5f2; text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 0 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a.on { color: #fff; border-bottom-color: var(--margin); }
.top-r { display: flex; align-items: center; gap: 14px; }
.xlink { color: #fff; font-size: 20px; display: inline-flex; }
.xlink .ico { margin: 0; }
.ca-strip { background: var(--ink); color: #fff; font-size: 13px; padding: 6px 16px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ca-strip span { overflow-wrap: anywhere; }
.ca-strip a, .ca-strip .linkish { color: #ffd9d6; }

/* ---------- buttons: fountain-pen blue; long and short in green and red ink ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 17px/1 var(--text); border: 0; border-radius: 6px; padding: 15px 24px 14px; cursor: pointer; text-decoration: none; transition: transform .06s, box-shadow .06s, background .15s; }
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-main { background: linear-gradient(180deg, var(--blue-l) 0, var(--blue) 100%); color: #fff; box-shadow: inset 0 0 0 1px var(--blue-d), inset 0 1px 0 rgba(255,255,255,.25), 0 4px 0 var(--blue-d); }
.btn-main:hover { background: linear-gradient(180deg, #4a6be0 0, #2a4cc4 100%); color: #fff; }
.btn-main:active { box-shadow: inset 0 0 0 1px var(--blue-d), 0 2px 0 var(--blue-d); }
.top .btn-main { background: var(--sheet); color: var(--blue-d); box-shadow: inset 0 0 0 1px #0f2257, 0 3px 0 #0f2257; }
.top .btn-main:hover { background: #eef2ff; color: var(--blue-d); }
.btn-quiet { background: var(--sheet); color: var(--blue-d); box-shadow: inset 0 0 0 1.5px var(--blue), 0 4px 0 var(--grid-2); }
.btn-quiet:hover { background: #f3f6ff; color: var(--blue-d); box-shadow: inset 0 0 0 2px var(--blue), 0 4px 0 var(--line-2); }
.btn-long, .btn-short { color: #fff; flex: 1; }
.btn-long { background: var(--up); box-shadow: inset 0 0 0 1px #0d4d29, 0 4px 0 #0d4d29; }
.btn-short { background: var(--down); box-shadow: inset 0 0 0 1px #7a1714, 0 4px 0 #7a1714; }
.btn-small { padding: 10px 16px 9px; font-size: 15px; }
.wide { width: 100%; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; padding: 48px 0 30px; }
.hero h1 { max-width: 16ch; }
.lede { font-size: 19px; max-width: 58ch; color: var(--ink-2); }
.hero-next { margin-top: 24px; padding-top: 18px; border-top: 1.5px solid var(--graphite); }
.hero-next p { font-size: 18px; }
.hero-next .mono { font: 700 20px/1 var(--display); color: var(--blue-d); background: none; padding: 0 2px; }

/* ---------- the clock: a protractor ---------- */
.blk { width: 100%; max-width: 280px; margin: 0 auto; text-align: center; }
.blk-big { max-width: 380px; }
.pr-svg { width: 100%; height: auto; display: block; overflow: visible; }
.pr-tick { stroke: #4f6f86; }
.pr-num { font: 600 9px var(--text); fill: #4f6f86; }
.pr-hand { transition: transform .8s cubic-bezier(.3,.7,.2,1); }
.pr-label { font: 700 11px var(--text); letter-spacing: .14em; fill: var(--ink-2); }
.pr-count { font: 700 40px var(--display); fill: var(--ink); }
.blk-last5 .pr-count { fill: var(--redpen); }
.pr-name { font: 400 19px var(--pencil); fill: var(--graphite); }
.bk-cap { font-size: 15px; color: var(--muted); margin: 6px 0 0; }

/* ---------- lobby: each contest on an index card ---------- */
.block { padding: 30px 0 8px; }
.block h2 { margin-bottom: 18px; }
.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.slot {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 14px 22px 18px; color: var(--ink); text-decoration: none; border-radius: 3px;
  background: linear-gradient(transparent 49px, var(--margin) 49px, var(--margin) 51px, transparent 51px), var(--sheet);
  box-shadow: 0 0 0 1px #d9e0e6, 0 2px 0 #e7ebee, 0 10px 20px rgba(29, 31, 36, .07); transition: transform .15s, box-shadow .15s;
}
.slot:hover { transform: translateY(-3px) rotate(-.3deg); color: var(--ink); box-shadow: 0 0 0 1px #c9d3dc, 0 2px 0 #e7ebee, 0 16px 26px rgba(29, 31, 36, .1); }
.slot-name { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font: 700 28px/1.1 var(--display); color: var(--ink); }
.slot-name .mono { font: 400 15px/1 var(--text); color: var(--muted); }
.slot-when { grid-column: 1 / -1; font: 700 15px/28px var(--text); color: var(--ink-2); }
.slot-state { grid-column: 1 / -1; font-size: 15px; line-height: 28px; margin-bottom: 0; }
.slot-state b, .thead-state b { font: 700 22px/1 var(--display); color: var(--blue-d); }
.slot-kv { display: flex; flex-direction: column; line-height: 1.25; padding-top: 3px; }
.slot-kv i { font-style: normal; font-size: 13px; color: var(--muted); }
.slot-kv b { font-size: 16px; font-weight: 700; }
.slot-live .slot-state { color: var(--up); font-weight: 700; }
.slot-live .slot-name { text-decoration: underline 3px var(--up); text-underline-offset: 7px; }
.next-line { margin-top: 18px; }

/* how a contest is scored: four worked steps */
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; counter-reset: step; }
.how-item { position: relative; padding: 4px 0 0 46px; counter-increment: step; }
.how-item::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; font: 700 21px/1 var(--display); color: var(--blue-d); border: 1.6px solid var(--redpen); border-radius: 52% 48% 50% 46%; rotate: -6deg; }
.how-item h3 { font: 700 22px/1.15 var(--display); color: var(--ink); margin: 0 0 8px; }
.how-item p { font-size: 15px; color: var(--ink-2); margin: 0; }

.results { display: flex; flex-direction: column; gap: 6px; }
.result { display: grid; grid-template-columns: 60px 150px 170px 1fr; gap: 12px; align-items: baseline; padding: 11px 14px; background: var(--sheet); color: var(--ink); text-decoration: none; border-radius: 3px; box-shadow: 0 0 0 1px #d9e0e6; }
.result:hover { box-shadow: 0 0 0 1.5px var(--blue); color: var(--ink); }
.result-win { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.fine { font-size: 14px; color: var(--muted); max-width: 90ch; margin-top: 40px; }

/* ---------- a contest ---------- */
.thead { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; padding: 34px 0 24px; }
.crumb { font-size: 15px; color: var(--muted); }
.thead-state { font-size: 18px; }
.facts { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 16px; margin: 18px 0 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.tbody { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.board-head h2 { margin: 0; }
.board-head .muted { font-size: 15px; }

/* the pencil chart on its own sheet */
.board-art { margin-bottom: 18px; border-radius: 2px; overflow: hidden; background: var(--sheet); box-shadow: 0 0 0 1px #d9e0e6, 0 3px 0 #e9edf0, 0 14px 26px rgba(29, 31, 36, .08); }
.ch-svg { display: block; width: 100%; height: auto; }
.ch-rk { font: 700 23px var(--display); fill: var(--blue-d); }
.ch-tag { font: 700 18px var(--display); fill: var(--ink); }
.ch-tag-n { font-size: 15px; }
.ch-val { font: 700 24px var(--display); }
.ch-val-n { font-size: 17px; }
.ch-note { font: 400 20px var(--pencil); fill: var(--graphite); }
.ch-note-n { font-size: 14px; }
.ch-red { fill: var(--redpen); }
.ch-rule { font: 600 12.5px var(--text); fill: #4f6f86; }
.ch-zero { font: 400 18px var(--pencil); fill: var(--graphite); }
.ch-foot { font: 400 15px var(--text); fill: var(--muted); }

/* the standings list */
.board { list-style: none; margin: 0; padding: 0; border-radius: 2px; overflow: hidden; background: var(--sheet); box-shadow: 0 0 0 1px #d9e0e6, 0 3px 0 #e9edf0; }
.board .empty { padding: 26px; text-align: center; }
.tcard {
  position: relative; display: grid; grid-template-columns: 54px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 2px 14px; align-items: center;
  padding: 12px 16px; color: var(--ink); border-bottom: 1px solid #d3e1ec;
}
.tcard:last-child { border-bottom: 0; }
.tc-rank { font: 700 25px/1 var(--display); color: var(--blue-d); text-align: center; }
.tc-id { display: flex; flex-direction: column; min-width: 0; }
.tc-no { font: 700 16px var(--text); color: var(--ink); display: flex; align-items: center; gap: 7px; }
.tc-dir { flex: none; width: 18px; height: 14px; }
.tc-id a { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-pnl b { font: 700 27px/1 var(--display); }
.tc-pnl small { font-size: 14px; color: var(--muted); }
.tc-pnl.up b { color: var(--up); }
.tc-pnl.down b { color: var(--down); }
.tc-pos { font-size: 14px; display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--ink-2); }
.tc-pos .pos em { font-style: normal; }
/* the prize is the answer: double-underlined in red */
.tc-prize { font: 700 19px/1.1 var(--display); color: var(--blue-d); padding: 0 2px 5px; background: linear-gradient(var(--redpen), var(--redpen)) 0 calc(100% - 3px) / 100% 1.5px no-repeat, linear-gradient(var(--redpen), var(--redpen)) 0 100% / 100% 1.5px no-repeat; }
.tc-note { grid-column: 2 / -1; font-size: 14px; color: var(--redpen); }
.tcard-refused, .tcard-paid { opacity: .55; }
.tcard-disqualified .tc-pnl b { text-decoration: line-through 2px var(--redpen); }
.tcard-p1 .tc-rank, .tcard-p2 .tc-rank, .tcard-p3 .tc-rank { font-size: 18px; width: 46px; height: 40px; display: grid; place-items: center; margin: 0 auto; border: 1.7px solid var(--redpen); border-radius: 52% 47% 50% 45% / 50% 54% 46% 50%; rotate: -5deg; }
.tcard-me { background: linear-gradient(transparent 12%, rgba(255, 242, 122, .55) 12%, rgba(255, 242, 122, .55) 88%, transparent 88%); }
.stamped .tc-pnl b { animation: flash .6s ease-out; }
@keyframes flash { 0% { background: rgba(255, 242, 122, .9); } 100% { background: transparent; } }

.tside { display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--sheet); border-radius: 2px; padding: 18px 20px; box-shadow: 0 0 0 1px #d9e0e6, 0 3px 0 #e9edf0; }
.panel h3 { font: 700 23px/1.15 var(--display); color: var(--ink); }
.panel .addr { font-size: 13px; overflow-wrap: anywhere; }
.join, .mine { padding-left: 42px; background: linear-gradient(90deg, transparent 24px, var(--margin) 24px, var(--margin) 26px, transparent 26px), var(--sheet); box-shadow: 0 0 0 1px #c9d3dc, 0 3px 0 #e1e6ea, 0 12px 22px rgba(29, 31, 36, .08); }
.warnline { background: #fff4c2; padding: 8px 10px; border-radius: 3px; font-size: 15px; box-shadow: inset 3px 0 0 var(--redpen); }
.ready { font-weight: 700; }
.orders { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.order-row { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.order-row .inp { flex: 1; min-width: 0; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1; font: 700 15px/1 var(--text); padding: 10px 0 9px; border: 0; border-radius: 5px; background: var(--paper-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.seg button:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue); }
.inp { font: inherit; font-size: 16px; padding: 11px 14px 10px; border-radius: 5px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); width: 100%; }
.inp:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
select.inp { width: auto; flex: 0 0 110px; }
.feed-list, .pay-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.feed-list li { display: grid; grid-template-columns: 64px 90px 1fr auto; gap: 8px; padding: 6px 0; border-bottom: 1px solid #d3e1ec; }
.feed-t { color: var(--ink-2); }
.pay-list li { display: grid; grid-template-columns: 54px 1fr auto auto; gap: 10px; padding: 6px 0; border-bottom: 1px solid #d3e1ec; align-items: baseline; }

/* ---------- dialog: a loose page with its margin ---------- */
.dlg { border: 0; border-radius: 3px; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--ink);
  background: linear-gradient(90deg, transparent 18px, var(--margin) 18px, var(--margin) 20px, transparent 20px), var(--sheet); box-shadow: 0 0 0 1px #c9d3dc, 0 30px 80px rgba(23, 30, 50, .3); }
.dlg::backdrop { background: rgba(22, 32, 60, .5); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 6px; border-bottom: 1.5px solid var(--graphite); margin: 0 22px 0 36px; }
.dlg-head h2 { margin: 0 0 8px; font-size: 30px; }
.dlg-x { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); padding: 6px; }
.dlg-x .ico { margin: 0; }
.dlg-body { padding: 14px 22px 24px 36px; }
.dlg-body .btn { margin-top: 10px; }
.wallets { display: flex; flex-direction: column; gap: 8px; }
.wallet-pick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 5px; border: 0; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); font: 700 16px var(--text); color: var(--ink); cursor: pointer; }
.wallet-pick:hover { box-shadow: inset 0 0 0 1.5px var(--blue); background: #fff; }
.choices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.choice { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 5px; border: 0; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; cursor: pointer; color: var(--ink); }
.choice span { font-size: 15px; color: var(--muted); }
.choice.on { box-shadow: inset 0 0 0 2px var(--blue); background: #f3f6ff; }
.inp-wrap { margin-top: 8px; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 12px; font-size: 15px; margin: 0 0 8px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- documents ---------- */
.doc { max-width: 820px; padding-top: 40px; }
.doc.wide { max-width: 1100px; }
.doc h2 { margin-top: 1.2em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; overflow-wrap: anywhere; }
.doc p { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 10px 0 20px; border-radius: 2px; box-shadow: 0 0 0 1px #d9e0e6; }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--sheet); }
.tbl th { text-align: left; font-weight: 700; color: #fff; background: var(--cover); padding: 9px 10px; white-space: nowrap; }
.tbl td { border-bottom: 1px solid #d3e1ec; padding: 8px 10px; white-space: nowrap; }
.verify-out { margin: 20px 0; }

/* ---------- footer: the back cover ---------- */
.foot { background: linear-gradient(180deg, var(--cover), #1a3373); color: #c9d5f2; padding: 24px 0 22px; font-size: 15px; margin-top: 14px; }
.foot-in { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.foot a { color: #c9d5f2; }
.foot a:hover { color: #fff; }
.foot-brand { font: 700 28px var(--display); color: #fff; margin-right: auto; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--cover-d); color: #fff; padding: 12px 18px 11px; border-radius: 6px; font-size: 16px; z-index: 50; max-width: calc(100vw - 32px); box-shadow: inset 3px 0 0 var(--margin), 0 10px 30px rgba(23, 30, 50, .3); }

@media (max-width: 1020px) {
  .tbody { grid-template-columns: minmax(0, 1fr); }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .top-in { flex-wrap: wrap; gap: 8px 16px; padding: 9px 16px 10px; }
  .brand { font-size: 31px; }
  .brand-mark { width: 38px; height: 38px; }
  .nav { order: 3; flex-basis: 100%; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .nav a { font-size: 15px; white-space: nowrap; }
  .top-r { margin-left: auto; }
  .wrap { padding: 0 16px 0 20px; }
  .app::before { left: 9px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px 0 12px; }
  .hero .blk { max-width: 320px; }
  .thead { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .thead .blk { max-width: 240px; margin: 0; }
  .facts { grid-template-columns: 100px minmax(0, 1fr); font-size: 15px; }
  .tcard { grid-template-columns: 46px minmax(0, 1fr) auto; padding: 10px 12px; }
  .tc-rank { font-size: 23px; grid-row: span 2; }
  .tcard-p1 .tc-rank, .tcard-p2 .tc-rank, .tcard-p3 .tc-rank { width: 40px; height: 34px; font-size: 16px; }
  .tc-pnl { grid-column: 3; grid-row: 1; text-align: right; }
  .tc-pnl b { font-size: 23px; }
  .tc-pnl small { display: block; }
  .tc-pos { grid-column: 2 / -1; }
  .tc-prize { grid-column: 2 / -1; justify-self: start; }
  .result { grid-template-columns: 44px minmax(0, 1fr); }
  .result > :nth-child(3), .result > :nth-child(4) { grid-column: 2; }
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rack { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .pr-hand, .stamped .tc-pnl b { transition: none; animation: none; } .slot { transition: none; } }
