/* Gains: a weightlifting gym in daylight. Board-formed concrete walls, black rubber floor, chalk, a wall-mounted
   interval timer with red LED digits, a whiteboard for the standings (written in marker), loaded barbells whose plates
   are the stack. One strong accent: timer and 25 kg plate red. Russo One for signage and the timer, Titillium Web for
   reading, Patrick Hand only for what is written on the whiteboard. */
@font-face { font-family: 'Russo One'; src: url(/fonts/russo-one.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Titillium Web'; font-weight: 400; src: url(/fonts/titillium-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Titillium Web'; font-weight: 600; src: url(/fonts/titillium-600.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Titillium Web'; font-weight: 700; src: url(/fonts/titillium-700.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Titillium Web'; font-weight: 900; src: url(/fonts/titillium-900.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Patrick Hand'; src: url(/fonts/patrick-hand.woff2) format('woff2'); font-display: swap; }

:root {
  --concrete: #e4e4e0; --concrete-hi: #efefec; --concrete-lo: #cfcfca; --seam: #c3c3be;
  --rubber: #17181a; --rubber-2: #26282c; --chalk: #fbfbf8; --board: #fcfcfa; --ink: #17181a; --muted: #5d605e; --rule: #d6d8d6;
  --red: #e23b2e; --red-hi: #f0574a; --red-lo: #a8241b; --led: #ff4434;
  --steel: #c3c8ce; --steel-hi: #eef0f2; --steel-lo: #7c838b;
  --marker: #1c1f26; --marker-blue: #1f4fa8;
  --up: #1d7a44; --down: #c42c22;
  --plate-red: #d8352a; --plate-blue: #2556b8; --plate-yellow: #e8b923; --plate-green: #2f8f4e; --plate-white: #e9e9e4;
  --plate-black: #25272a; --plate-grey: #7d838a; --plate-orange: #e07a2c;
  --display: 'Russo One', 'Arial Black', sans-serif;
  --text: 'Titillium Web', ui-sans-serif, system-ui, sans-serif;
  --hand: 'Patrick Hand', 'Comic Sans MS', cursive;
  --r: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 16.5px/1.5 var(--text); font-variant-numeric: tabular-nums; min-height: 100vh;
  background-color: var(--concrete);
  /* board-formed concrete: fine aggregate noise, faint horizontal form-board lines, tie holes */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .28 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='240'%3E%3Cpath d='M0 119.5H480' stroke='%23000' stroke-opacity='.035'/%3E%3Cpath d='M0 239.5H480' stroke='%23fff' stroke-opacity='.35'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #ebebe8 0%, var(--concrete) 40%, #dedeD9 100%);
}
a { color: inherit; }
img { max-width: 100%; }
.ico { width: 1em; height: 1em; vertical-align: -0.12em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.up { color: var(--up); } .down { color: var(--down); }
code { font: 600 0.88em/1 var(--text); background: #eceeec; padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; font-weight: 400; }

/* ---------- header: the black wall band with the painted red line ---------- */
.top { background: var(--rubber); border-bottom: 5px solid var(--red); box-shadow: 0 6px 18px rgba(0,0,0,.18); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 22px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--chalk); font: 400 29px/1 var(--display); letter-spacing: .01em; }
.logo-mark { width: 48px; height: 48px; }
.nav { display: flex; gap: 2px; margin-left: 10px; flex: 1; }
.nav a { color: #d6d7d3; text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { background: rgba(255,255,255,.08); color: var(--chalk); }
.nav a.on { color: var(--chalk); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.x-link { color: var(--chalk); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; font-size: 18px; }
.x-link:hover { background: rgba(255,255,255,.1); }
.mode-strip { background: var(--rubber-2); color: #d9dad6; font-size: 14px; text-align: center; padding: 7px 16px; }
.ca-strip { background: var(--chalk); border-bottom: 3px solid var(--red); display: flex; gap: 12px; align-items: center; justify-content: center; padding: 8px 16px; flex-wrap: wrap; }
.ca-strip span { overflow-wrap: anywhere; font-weight: 600; }

/* ---------- buttons: rubber-coated, heavy bottom edge ---------- */
.btn { --bg: var(--chalk); --fg: var(--ink); --lo: #b9bab5; --line: rgba(23,24,26,.18);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--bg); color: var(--fg); font: 700 16.5px/1.1 var(--text); padding: 13px 22px; border-radius: 9px;
  box-shadow: inset 0 0 0 1.5px var(--line), 0 4px 0 var(--lo), 0 8px 14px rgba(0,0,0,.14);
  transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px var(--line), 0 1px 0 var(--lo), 0 3px 8px rgba(0,0,0,.14); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn:focus-visible { outline: 3px solid var(--marker-blue); outline-offset: 2px; }
.btn-chip { --bg: linear-gradient(var(--red-hi), var(--red)); --fg: #fff; --lo: var(--red-lo); --line: rgba(0,0,0,.12); }
.btn-ivory { --bg: var(--chalk); --fg: var(--ink); --lo: #9fa09b; --line: var(--ink); }
.top .btn-ivory { --lo: #000; --line: rgba(255,255,255,.2); }
.btn-paper { --bg: #fff; --fg: var(--ink); --lo: var(--rule); --line: rgba(23,24,26,.16); box-shadow: inset 0 0 0 1.5px var(--line), 0 2px 0 var(--lo); }
.btn-ink { --bg: var(--rubber); --fg: var(--chalk); --lo: #000; --line: rgba(255,255,255,.12); }
.btn-buy { --bg: linear-gradient(#22874c, #186b3b); --fg: #f3fff6; --lo: #0e4425; --line: rgba(0,0,0,.1); }
.btn-sell { --bg: linear-gradient(#cc3a2f, #a82a21); --fg: #fff4f1; --lo: #6b1712; --line: rgba(0,0,0,.1); }
.btn-small { padding: 8px 14px; font-size: 14.5px; }
.btn-big { padding: 17px 28px; font-size: 18.5px; }
.btn-wide { width: 100%; }
.btn-wallet { padding: 10px 18px; font-size: 15px; white-space: nowrap; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--marker-blue); text-decoration: underline; cursor: pointer; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- layout ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 36px 24px 64px; display: block; }
/* every card is a whiteboard: gloss white in an anodised aluminium frame */
.placard { background: linear-gradient(160deg, #ffffff 0%, var(--board) 45%, #f2f3f1 100%); border-radius: var(--r); padding: 22px 24px; position: relative;
  border: 7px solid; border-color: #e3e6e9 #b3b9c0 #a2a8af #d2d6da;
  box-shadow: 0 0 0 1px rgba(0,0,0,.28), 0 14px 26px rgba(30,30,28,.16), inset 0 0 0 1px rgba(0,0,0,.05); }
.placard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.placard-head h2 { font: 400 25px/1.1 var(--display); color: var(--ink); }
.placard h3 { font: 700 15.5px/1.3 var(--text); margin: 18px 0 8px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px 48px; align-items: center; padding: 18px 0 8px; }
.hero h1 { font: 400 clamp(40px, 5.2vw, 72px)/1.04 var(--display); color: var(--ink); letter-spacing: -.005em; }
.hero h1 span { color: var(--red); }
.lede { font-size: 19.5px; line-height: 1.5; max-width: 34em; margin: 22px 0 28px; }
.hero .lede { color: #2b2d2f; }
/* the loaded barbell on the rubber floor (drawn by face.js) */
.hero-floor { grid-column: 1 / -1; margin: 6px -24px 0; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.hero-floor svg { display: block; width: 100%; height: auto; }

/* ---------- the clock: a wall-mounted interval timer ---------- */
.clock { border-radius: 16px; padding: 14px; background: linear-gradient(170deg, #34373c 0%, #1d1f22 40%, #121315 100%);
  box-shadow: 0 0 0 1px #000, 0 18px 34px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.18); position: relative; }
.clock::before { content: ''; position: absolute; inset: 7px; pointer-events: none; border-radius: 10px;
  background: radial-gradient(circle at 0 0, #8d939a 0 2.2px, transparent 2.8px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 100% 0, #8d939a 0 2.2px, transparent 2.8px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 0 100%, #8d939a 0 2.2px, transparent 2.8px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 100% 100%, #8d939a 0 2.2px, transparent 2.8px) 0 0 / 100% 100% no-repeat; }
.clock-screen { border-radius: 8px; color: #dcddd8; padding: 18px 22px 16px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #170807 0%, #0d0505 100%); box-shadow: inset 0 0 0 2px #050202, inset 0 8px 24px rgba(0,0,0,.7); }
.clock-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.07) 0 22%, transparent 22% 100%); }
.clock-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15.5px; color: #f0f0ec; }
.clock-state { color: #9c9e99; font-weight: 600; }
.clock-time { display: flex; flex-direction: column; align-items: center; margin: 8px 0 12px; }
.clock-label { color: #9c9e99; font-size: 14px; font-weight: 600; }
.clock-digits { font: 400 clamp(56px, 8vw, 104px)/1.02 var(--display); letter-spacing: .04em; color: var(--led); }
.clock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px 18px; margin: 0; padding: 12px 0; border-top: 1px solid #3a2522; border-bottom: 1px solid #3a2522; }
.clock-grid div { display: flex; flex-direction: column; }
.clock-grid dt { color: #9c9e99; font-size: 13.5px; font-weight: 600; }
.clock-grid dd { margin: 0; font: 700 22px/1.2 var(--text); color: #f4f4f0; }
.clock-pay { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; padding-top: 10px; color: #f0f0ec; font-size: 15.5px; }
.clock-pay b { color: var(--led); }
.clock-hero .clock-digits { font-size: clamp(64px, 9vw, 116px); }
.clock-hero .clock-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- lobby bands ---------- */
.band { margin-top: 38px; }
.band-title { font: 400 30px/1.1 var(--display); color: var(--ink); margin: 0 0 16px; }
.band-empty { color: var(--muted); }
.placards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.tplacard { display: flex; flex-direction: column; gap: 10px; }
.tp-name { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.tp-name h3 { font: 400 26px/1.05 var(--display); color: var(--ink); margin: 0; }
.tp-time { font-weight: 700; color: var(--muted); font-size: 15px; }
.tp-clock { margin: 0; font-size: 15.5px; }
.tp-clock b { font: 400 32px/1 var(--hand); margin-left: 4px; color: var(--red); }
.tp-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 4px 0 6px; font-size: 15.5px; }
.tp-kv dt { color: var(--muted); }
.tp-kv dd { margin: 0; font: 400 20px/1.25 var(--hand); color: var(--marker); text-align: right; }
.tp-cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.tp-more { font-size: 14.5px; color: var(--marker-blue); text-align: center; }
.runcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.runcard { text-decoration: none; display: block; }
.rc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.rc-head h3 { font: 400 23px/1.1 var(--display); color: var(--ink); margin: 0; }
.rc-clock b { font: 400 26px/1 var(--hand); color: var(--red); }
.results { display: flex; flex-direction: column; gap: 0; padding: 10px 24px; }
.result-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; flex-wrap: wrap; }
.result-row:last-child { border-bottom: 0; }
.rr-win { display: inline-flex; align-items: center; gap: 6px; font: 400 19px/1 var(--hand); }
.rr-win .row-chip { width: 16px; height: 16px; }

/* ---------- standings: marker on the whiteboard, each value a loaded barbell sleeve ---------- */
.board::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: -15px; height: 9px; border-radius: 0 0 4px 4px;
  background: linear-gradient(#c9cdd2, #9aa0a7); box-shadow: 0 3px 4px rgba(0,0,0,.2); }
.board-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.row { display: grid; grid-template-columns: 34px 26px minmax(96px, 150px) minmax(0, 1fr) 104px 108px; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; will-change: transform;
  background: none; border-bottom: 1.5px solid rgba(28,31,38,.12); }
.row.mine { box-shadow: inset 0 0 0 2.5px var(--red); border-radius: 18px 12px 20px 10px / 12px 18px 10px 16px; }
.row.dq { opacity: .55; }
.row-place { font: 400 27px/1 var(--hand); text-align: center; color: var(--marker); }
.row-chip, .seat-card { width: 24px; height: 24px; border-radius: 50%; display: inline-block;
  background: radial-gradient(circle, #e8eaed 0 18%, #2a2c2f 18% 26%, var(--c) 26% 86%, rgba(0,0,0,.35) 86% 100%); box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.row-who { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.row-who b { font: 400 21px/1.05 var(--hand); color: var(--marker-blue); }
.row-who em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--red); }
.row-wallet { font-size: 12.5px; color: var(--muted); }
/* the sleeve: steel bar through the middle; the plates loaded on it are the value; the collar marks the starting stack */
.row-bar { position: relative; height: 26px;
  background: linear-gradient(180deg, transparent 0 10px, #eef0f2 10px 11.5px, #b9bfc6 11.5px 14.5px, #868d95 14.5px 16px, transparent 16px); }
.stack { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w) * 100%); border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.28)),
    repeating-linear-gradient(90deg, var(--c) 0 9px, rgba(0,0,0,.6) 9px 10.5px);
  transition: width .7s cubic-bezier(.2,.8,.2,1); box-shadow: 1px 0 0 rgba(0,0,0,.4); }
.start-line { position: absolute; top: 5px; bottom: 5px; left: calc(var(--start) * 100%); width: 6px; margin-left: -3px; border-radius: 2px;
  background: linear-gradient(90deg, #8a9098, #eef0f2 45%, #9aa0a7); box-shadow: 0 0 0 1px rgba(0,0,0,.45); }
.row-val { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.row-val b { font: 400 21px/1.05 var(--hand); color: var(--marker); }
.row-pnl { font: 400 18px/1.1 var(--hand); }
.row-meta { font-size: 13.5px; color: var(--muted); text-align: right; }
.row-empty { padding: 18px; color: var(--muted); text-align: center; font: 400 21px/1.3 var(--hand); }
.board-rows.mini .row { grid-template-columns: 26px 20px minmax(70px, 110px) minmax(0, 1fr) 84px; padding: 5px 8px; }
.board-rows.mini .row-meta { display: none; }
.board-rows.mini .row-chip { width: 18px; height: 18px; }
.chip-claret { --c: var(--plate-red); } .chip-teal { --c: var(--plate-green); }
.chip-mustard { --c: var(--plate-yellow); } .chip-onyx { --c: var(--plate-black); }
.chip-ivory { --c: var(--plate-white); } .chip-slate { --c: var(--plate-blue); }
.chip-orange { --c: var(--plate-orange); } .chip-plum { --c: var(--plate-grey); }

/* ---------- competition page ---------- */
.tpage-head { margin-bottom: 18px; }
.back { color: var(--marker-blue); font-weight: 700; text-decoration: none; font-size: 15.5px; }
.back::before { content: '‹ '; }
.tpage-title { font: 400 clamp(34px, 4.4vw, 56px)/1.05 var(--display); color: var(--ink); margin: 6px 0 6px; }
.tpage-title span { color: var(--red); }
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; margin-top: 24px; align-items: start; }
.tmain, .tside { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.seat-card { width: auto; height: auto; padding: 4px 12px; border-radius: 6px; font: 400 20px/1.1 var(--hand); color: var(--marker);
  background: #fff; box-shadow: inset 0 0 0 2px var(--c), 0 1px 2px rgba(0,0,0,.25); }
.seat-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.seat-sum div { display: flex; flex-direction: column; padding: 6px 8px; border-left: 3px solid var(--rule); }
.seat-sum span { font-size: 13px; }
.seat-sum b { font: 400 22px/1.15 var(--hand); color: var(--marker); }
.seat-sum b.up { color: var(--up); } .seat-sum b.down { color: var(--down); }
.warn { color: var(--down); font-weight: 700; }
.result { font: 400 24px/1.2 var(--display); color: var(--red); }
.trade { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 14px; border-radius: 8px; background: #f4f5f4; box-shadow: inset 0 0 0 1px var(--rule); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #e2e3e1; border-radius: 8px; padding: 4px; }
.seg button { border: 0; background: none; padding: 9px; border-radius: 6px; font: 700 15.5px/1 var(--text); cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--rubber); color: var(--chalk); }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); font-weight: 600; }
select, .amt { font: 600 17px/1.2 var(--text); color: var(--ink); background: #fff; border: 1.5px solid #c7c9c6; border-radius: 8px; padding: 11px 12px; width: 100%; min-width: 0; }
select:focus, .amt:focus { outline: 2px solid var(--marker-blue); outline-offset: 1px; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.est { min-height: 1.4em; margin: 0; }
.bags, .fills, .payouts, .checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bags li { display: grid; grid-template-columns: 22px auto 1fr auto; gap: 8px; align-items: center; font-size: 15.5px; }
.bags img, .coin-name img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.coin-dot { width: 22px; height: 22px; border-radius: 50%; background: #dfe1df; display: inline-block; }
.fills li { display: flex; flex-direction: column; font-size: 15px; padding: 6px 0; border-bottom: 1px dashed var(--rule); }
.payouts li { font-size: 15px; padding: 4px 0; overflow-wrap: anywhere; }
.checks li { font-weight: 600; }
.checks .ok { color: var(--up); }
.checks .bad { color: var(--down); }
.coin-table { display: flex; flex-direction: column; margin-top: 8px; }
.coin-row { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.coin-row > span { text-align: right; }
.coin-headrow { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.coin-name { display: flex; gap: 8px; align-items: center; text-decoration: none; min-width: 0; }
.coin-name .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

/* ---------- prose pages ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose.wide { max-width: 980px; }
.prose h1 { font: 400 clamp(32px, 4vw, 48px)/1.1 var(--display); color: var(--ink); margin-bottom: 10px; }
.prose h2 { font: 400 22px/1.2 var(--display); color: var(--ink); margin: 26px 0 8px; }
.prose p { margin: 10px 0; }
.prose .lede { font-size: 18.5px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 12px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 700; }
.kv-row { grid-template-columns: repeat(4, auto 1fr); }
.verify-out { margin-top: 18px; }

/* ---------- footer: the rubber floor ---------- */
.foot { background-color: var(--rubber); color: #b9bab6; border-top: 5px solid #2e3034;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 -.55'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 26px 24px 34px; font-size: 14.5px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--chalk); }
.dlg { border: 0; padding: 0; border-radius: 12px; width: min(460px, calc(100vw - 32px)); background: var(--board); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.dlg::backdrop { background: rgba(23, 24, 26, .62); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--rubber); color: var(--chalk); border-bottom: 4px solid var(--red); }
.dlg-head h2 { font: 400 23px/1.1 var(--display); }
.dlg-x { background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; padding: 4px; }
.dlg-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.dlg-body p { margin: 0; }
.wallets { display: flex; flex-direction: column; gap: 8px; }
.wallets button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; border: 1.5px solid #c7c9c6; background: #fff; font: 700 16px/1 var(--text); cursor: pointer; }
.wallets img { width: 28px; height: 28px; border-radius: 6px; }
.addr { overflow-wrap: anywhere; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--rubber); color: var(--chalk); padding: 12px 18px; border-radius: 8px; z-index: 60; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.35); border-left: 5px solid var(--red); }

/* ---------- narrow screens ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tgrid { display: flex; flex-direction: column; }
  .tmain, .tside { display: contents; }
  .tgrid .board { order: 1; } .tgrid .seat { order: 2; } .tgrid .coins { order: 3; } .tgrid .record { order: 4; }
}
@media (max-width: 720px) {
  .top-in { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .logo { font-size: 24px; gap: 8px; } .logo-mark { width: 36px; height: 36px; }
  .nav { order: 3; flex-basis: 100%; margin: 0; overflow-x: auto; }
  .nav a { padding: 6px 9px; font-size: 15px; white-space: nowrap; }
  .x-link { margin-left: auto; width: 32px; }
  .btn-wallet { padding: 8px 12px; font-size: 14px; }
  main { padding: 22px 16px 48px; }
  .hero-floor { margin: 4px -16px 0; }
  .placard { padding: 16px 14px; border-width: 5px; }
  .runcards { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 24px 20px minmax(0, 1fr) 82px; grid-template-areas: 'p c w v' 'b b b b'; gap: 4px 8px; }
  .row-place { grid-area: p; font-size: 22px; } .row-chip { grid-area: c; width: 20px; height: 20px; } .row-who { grid-area: w; flex-direction: row; gap: 6px; align-items: baseline; flex-wrap: wrap; }
  .row-val { grid-area: v; } .row-bar { grid-area: b; height: 20px; background: linear-gradient(180deg, transparent 0 7.5px, #eef0f2 7.5px 9px, #b9bfc6 9px 11.5px, #868d95 11.5px 13px, transparent 13px); } .row-meta { display: none; }
  .start-line { top: 3px; bottom: 3px; }
  .board-rows.mini .row { grid-template-columns: 22px 18px minmax(0, 1fr) 76px; }
  .coin-row { grid-template-columns: minmax(0, 1.6fr) 1fr 1fr; } .coin-row > :nth-child(3) { display: none; }
  .kv-row { grid-template-columns: auto 1fr; }
  .clock-screen { padding: 14px 14px 12px; }
  .clock-grid dd { font-size: 19px; }
  .clock-hero .clock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seat-sum b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .stack { transition: none; } }

/* barbell art motion: plates slide on once, chalk dust drifts off the grips */
.hf-plate { animation: hf-load .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
.hf-l { --from: -70px; } .hf-r { --from: 70px; }
@keyframes hf-load { from { transform: translateX(var(--from)); opacity: 0; } to { transform: none; opacity: 1; } }
.hf-still .hf-plate { animation: none; }
.hf-dust { opacity: 0; animation: hf-dust 7s ease-out infinite; animation-delay: var(--t); }
@keyframes hf-dust { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .75; } 100% { opacity: 0; transform: translate(var(--dx), -46px); } }
@media (prefers-reduced-motion: reduce) { .hf-plate, .hf-dust { animation: none; } .hf-dust { opacity: 0; } }
