/* Fold - "Daylight Lab, Live Race". Cool white bench, cobalt + sunflower, 2px ink rules, square 4px corners,
   flat fills only (no gradients, glow, blur, shadows). Bricolage Grotesque for words, Geist Mono for every number. */
:root {
  --bench: #EEF2F6; --panel: #FFFFFF; --ink: #0B1533; --ink-2: #55607A; --rule: #C9D3E0;
  --cobalt: #2340FF; --cobalt-deep: #1428B8; --sun: #FFC21A; --sun-deep: #E0A400; --teal: #2BB59A;
  --r: 4px; --bw: 2px; --wrap: 1240px; --g: clamp(16px, 3vw, 40px);
  --sans: "Bricolage", "Bricolage Grotesque", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bench); color: var(--ink); font: 400 18px/1.5 var(--sans); font-variation-settings: "opsz" 14; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
a, button, [role=button], [onclick], summary, label, .ca, .catag, .cachip, .picbtn, select { cursor: pointer; }
input[type=text], input:not([type]), input[name] { cursor: text; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-variation-settings: normal; }
.skip { position: absolute; left: 8px; top: -80px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }
.kick { font: 600 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
h2 { font-weight: 800; font-variation-settings: "opsz" 96; font-size: clamp(40px, 6.4vw, 92px); line-height: .95; letter-spacing: -.035em; margin: 0; }
h3 { font-weight: 800; font-variation-settings: "opsz" 48; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 10px; }

/* ------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 22px; padding: 0 var(--g); background: var(--bench); border-bottom: var(--bw) solid var(--ink); }
.wm { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 26px; letter-spacing: -.03em; font-variation-settings: "opsz" 48; }
.wm img { width: 32px; height: 32px; }
.tnav { display: flex; gap: 22px; }
.tnav a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.tnav a:hover, .tnav a[aria-current] { border-bottom-color: var(--cobalt); }
.sp { flex: 1; }
.xtile { width: 44px; height: 44px; display: inline-grid; place-items: center; background: var(--panel); border: var(--bw) solid var(--ink); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: background .15s, color .15s, transform .1s; flex: none; }
.xtile:hover { background: var(--ink); color: #fff; }
.xtile:active { transform: translateY(2px); }
.xtile.big { width: 52px; height: 52px; }
.wtile { height: 44px; padding: 0 14px; background: var(--panel); border: var(--bw) solid var(--ink); border-radius: var(--r); font: 600 14px var(--mono); transition: background .15s, color .15s; }
.wtile:hover { background: var(--ink); color: #fff; }
.wtile.on { background: var(--bench); }

/* ------------------------------------------------------------ buttons: rectangle + a round "well" cell */
.btn { --bg: var(--panel); --dot: var(--sun); --fg: var(--ink); display: inline-flex; align-items: stretch; height: 52px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--bg); color: var(--fg); text-decoration: none; font: 700 17px/1 var(--sans); white-space: nowrap; transition: transform .1s, background .15s; padding: 0; }
.btn .well { width: 48px; flex: none; display: grid; place-items: center; border-right: var(--bw) solid var(--ink); }
.btn .well::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--dot); border: var(--bw) solid var(--ink); transition: background .15s; }
.btn .bl { display: flex; align-items: center; padding: 0 20px; }
.btn:hover .well::before { background: var(--ink); }
.btn:active { transform: translateY(2px); }
.btn.cobalt { --bg: var(--cobalt); --fg: #fff; --dot: var(--sun); }
.btn.cobalt:active { --bg: var(--cobalt-deep); }
.btn.sun { --bg: var(--sun); --dot: #fff; }
.btn.sun:active { --bg: var(--sun-deep); }
.btn.sm { height: 44px; font-size: 15px; }
.btn.sm .well { width: 40px; }
.btn.sm .bl { padding: 0 14px; }
.btn[disabled], .btn.busy { opacity: .7; cursor: progress; }

/* ------------------------------------------------------------ hero: the viewer */
.hero { padding: 18px var(--g) 0; }
.viewer { position: relative; min-height: calc(92dvh - 64px); min-height: max(560px, calc(92dvh - 64px)); max-width: 1680px; margin: 0 auto; background-color: var(--panel); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; touch-action: pan-y;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px;
  display: grid; grid-template-rows: 1fr auto 1fr; }
.viewer.gl { cursor: grab; }
.viewer.dragging { cursor: grabbing; }
.rcv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.rb { z-index: 1; }
.vname { position: relative; z-index: 2; grid-row: 1; display: flex; align-items: flex-end; justify-content: center; gap: 24px; padding: 70px 16px 26px; pointer-events: none; }
.rf { z-index: 3; }
.name { margin: 0; font-weight: 800; font-variation-settings: "opsz" 96; font-size: clamp(110px, 19vw, 280px); line-height: .82; letter-spacing: -.045em; color: var(--ink); }
.flaskfb { display: none; width: 220px; height: auto; }
.viewer.nogl .flaskfb { display: block; }
.lede { position: relative; z-index: 4; grid-row: 2; justify-self: center; text-align: center; max-width: 30ch; margin: 0 16px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; font-weight: 500; }
.readout { position: absolute; z-index: 4; left: 0; bottom: 0; margin: 0; padding: 0 24px 24px; display: flex; gap: 28px; align-items: flex-end; }
.readout div { display: flex; flex-direction: column-reverse; }
.readout dt { font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
.readout dd { margin: 0; font: 600 32px/1 var(--mono); }
.demo { font: 700 11px/1 var(--mono); letter-spacing: .08em; padding: 4px 6px; border: var(--bw) dashed var(--ink); border-radius: var(--r); background: var(--sun); color: var(--ink); align-self: flex-start; }
.readout .demo { align-self: flex-end; margin-bottom: 2px; }
.hacts { position: absolute; z-index: 5; right: 24px; bottom: 24px; display: flex; gap: 10px; align-items: center; }
.draghint { position: absolute; z-index: 4; left: 50%; top: 18px; transform: translateX(-50%); margin: 0; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.viewer.nogl .draghint { display: none; }
/* CA: a sun-yellow sample label pinned top-right, slightly turned */
.catag { position: absolute; z-index: 6; top: 26px; right: 26px; transform: rotate(-3deg); display: inline-flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; background: var(--sun); border: var(--bw) solid var(--ink); border-radius: var(--r); font: 600 15px var(--mono); }
.catag::before { content: ""; position: absolute; left: 50%; top: -9px; width: 34px; height: 14px; margin-left: -17px; background: rgba(255,255,255,.75); border: 1px solid var(--rule); transform: rotate(2deg); }
.ctk { font: 700 12px var(--mono); letter-spacing: .08em; padding: 2px 5px; background: var(--ink); color: var(--sun); border-radius: 2px; }
.cbtn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--panel); padding: 0; }
.cbtn:hover { background: var(--ink); color: #fff; }
.ci .ck { opacity: 0; stroke-dasharray: 16; stroke-dashoffset: 16; }
.copied .ci rect, .copied .ci path:not(.ck) { opacity: 0; }
.copied .ci .ck { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .35s ease-out; }
.copied .cl { position: static !important; width: auto; height: auto; clip: auto; font-size: 13px; }
.ca-off .cbtn { display: none; }

/* ------------------------------------------------------------ the race */
.race { padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 110px); }
.shead { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 48px; align-items: end; margin-bottom: 34px; }
.sdesc { margin: 0; max-width: 46ch; color: var(--ink); }
.seg { grid-column: 1 / -1; display: inline-flex; justify-self: start; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.seg button { border: 0; background: none; padding: 10px 16px; font: 600 14px var(--mono); }
.seg button + button { border-left: var(--bw) solid var(--ink); }
.seg [aria-selected=true] { background: var(--ink); color: #fff; }
.board { background: var(--panel); border: var(--bw) solid var(--ink); border-radius: var(--r); }
.bhead, .brow { display: grid; grid-template-columns: 76px minmax(0, 1fr) 128px 150px; align-items: center; gap: 16px; padding: 0 20px; }
.bhead { height: 40px; border-bottom: var(--bw) solid var(--ink); font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.bhead span:nth-child(3), .bhead span:nth-child(4) { text-align: right; }
.brows { position: relative; min-height: 372px; }
.brow { min-height: 62px; text-decoration: none; border-bottom: 1px solid var(--rule); position: relative; transition: background .15s; }
.brow:last-child { border-bottom: 0; }
.brow:hover { background: var(--bench); }
.rk { font: 600 16px var(--mono); color: var(--ink-2); }
.tm { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 0; min-width: 0; }
.tm .bar { grid-column: 1 / -1; }
.brow.fold .tm .bar, .brow.entry .tm .bar { grid-column: 2; }
.tn { display: flex; flex-direction: column; min-width: 0; }
.tn b { font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow.team .tn b { color: var(--ink-2); font-weight: 500; }
.brow.fold .tn b { font-weight: 800; }
.tk { font: 600 13px var(--mono); color: var(--cobalt); }
.nx { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx b { color: var(--ink); font-weight: 600; }
.bar { height: 8px; margin-top: 6px; background: var(--bench); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--rule); transition: width .4s ease; }
.brow.fold .bar i { background: var(--cobalt); }
.cpic { width: 40px; height: 40px; border-radius: var(--r); border: var(--bw) solid var(--ink); object-fit: cover; grid-row: 1 / 3; background: var(--bench); }
.cpic.ini { display: inline-grid; place-items: center; font: 700 14px var(--mono); background: var(--cobalt); color: #fff; }
.cpic.ent { border-style: dashed; background: var(--panel); }
.sc { text-align: right; font: 600 17px var(--mono); }
.pc { text-align: right; font-size: 14px; display: flex; justify-content: flex-end; align-items: baseline; gap: 4px; }
.pc em { font-style: normal; color: var(--teal); font-weight: 700; }
.pc small { color: var(--ink-2); font-size: 13px; }
.brow.fold { background: #F4F6FF; }
.brow.fold:hover { background: #E9EDFF; }
.brow.passed { outline: var(--bw) solid var(--sun); outline-offset: -2px; z-index: 1; }
.brow.entry { border: var(--bw) dashed var(--sun-deep); background: #FFF8E4; margin: 6px 10px 10px; border-radius: var(--r); }
.brow.entry .tn b { font-weight: 700; }
.bgap { height: 30px; display: flex; align-items: center; padding-left: 20px; border-bottom: 1px solid var(--rule); background-image: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 12px); background-size: 100% 1px; background-position: 0 50%; background-repeat: no-repeat; }
.bgap span { background: var(--panel); padding: 0 8px; font-size: 12px; color: var(--ink-2); }
.bgap:empty { display: none; }
.bload { margin: 0; padding: 28px 20px; color: var(--ink-2); }
.bsrc { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------------ fee -> GPU (cobalt block, pinned horizontal scrub) */
.how { background: var(--cobalt); color: #fff; border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); overflow: hidden; }
.how-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 56px 0 48px; }
.how-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 28px; padding: 0 var(--g); margin-bottom: 36px; }
.how-head .kick { color: #fff; grid-column: 1 / -1; }
.how-head h2 { color: #fff; }
.how-dots { display: flex; gap: 8px; list-style: none; margin: 0 0 12px auto; padding: 0; }
.how-dots li { width: 34px; height: 10px; border: var(--bw) solid #fff; border-radius: 2px; }
.how-dots li.on { background: var(--sun); border-color: var(--sun); }
.how-track { display: flex; gap: 28px; padding: 0 var(--g); will-change: transform; }
.step { flex: none; width: min(560px, 80vw); background: var(--panel); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 26px 28px 28px; display: flex; flex-direction: column; min-height: 520px; }
.step p { margin: 0 0 18px; max-width: 42ch; }
.sn { font: 600 13px var(--mono); color: var(--cobalt); margin: 0 0 18px !important; }
.step .obj { margin: auto 0 0; display: flex; justify-content: center; }
.step .obj img { max-height: 250px; width: auto; }
.splitbars { margin-top: auto; display: grid; grid-template-columns: calc(var(--g, 90) * 1fr) calc(var(--d, 5) * 1fr) calc(var(--p, 5) * 1fr); grid-template-columns: 18fr 3fr 3fr; gap: 8px; align-items: end; }
.sbar { border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 90px; }
.sbar b { font: 600 30px/1 var(--mono); }
.sbar span { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.sbar.gpu { background: var(--cobalt); color: #fff; min-height: 260px; }
.sbar.dev, .sbar.pad { background: var(--panel); padding: 8px 6px; }
.sbar.dev b, .sbar.pad b { font-size: 18px; }
.sbar.dev span, .sbar.pad span { font-size: 10px; letter-spacing: .02em; }
.jar { margin-top: 16px; }
.segs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 26px; }
.segs i { border: var(--bw) solid var(--ink); border-radius: 2px; background: var(--panel); transition: background .2s; }
.segs i.on { background: var(--sun); }
.jar p { margin: 8px 0 0 !important; font-size: 13px; }
.spec { margin: 16px 0 0; border-top: var(--bw) solid var(--ink); }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.spec dt { color: var(--ink-2); }
.spec dd { margin: 0; text-align: right; }
.odo { margin-top: 18px; border-top: var(--bw) solid var(--ink); padding-top: 14px; }
.odo .num { display: flex; font: 600 clamp(36px, 4vw, 52px)/1 var(--mono); height: 1em; }
.ocol { display: inline-block; height: 1em; overflow: hidden; }
.ostrip { display: block; line-height: 1em; transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.osep { display: inline-block; }
.odo small { display: block; margin-top: 8px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.howvid { padding: 0 var(--g) 64px; max-width: 1180px; margin: 0 auto; }
.howvid video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); display: block; }
.vp { position: relative; background: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; }
.vp-st { position: relative; aspect-ratio: 16 / 9; background: var(--ink) url(/assets/video/howto-poster.webp) center / cover; }
.vp:not(.started) video { display: none; }
.vp video { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 0; cursor: pointer; }
.vp:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; } .vp:fullscreen .vp-st { flex: 1; min-height: 0; aspect-ratio: auto; } .vp:fullscreen video { height: 100%; aspect-ratio: auto; object-fit: contain; }
.vp-big { position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto; width: max-content; height: max-content; display: flex; align-items: center; gap: 14px; padding: 18px 28px; background: var(--sun); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); font: 700 17px/1 var(--sans); cursor: pointer; }
.vp-big svg { width: 28px; height: 28px; } .vp-big span { font: 600 14px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.vp-big:hover { background: var(--sun-deep); }
.vp.started .vp-big { display: none; }
.vp-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--panel); border-top: var(--bw) solid var(--ink); color: var(--ink); }
.vp-b { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--panel); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 0; cursor: pointer; }
.vp-b:hover { background: var(--cobalt); color: #fff; } .vp-b:active { background: var(--cobalt-deep); color: #fff; }
.vp-t { flex: none; font: 500 13px var(--mono); font-variant-numeric: tabular-nums; min-width: 9ch; }
.vp-seek { position: relative; flex: 1; min-width: 40px; height: 44px; cursor: pointer; touch-action: none; }
.vp-seek::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; background: var(--rule); border: 1.5px solid var(--ink); border-radius: 2px; }
.vp-seek i { position: absolute; left: 0; top: 50%; height: 8px; margin-top: -4px; background: var(--cobalt); border-radius: 2px 0 0 2px; width: 0; }
.vp-seek b { position: absolute; top: 50%; width: 12px; height: 20px; margin-top: -10px; background: var(--sun); border: var(--bw) solid var(--ink); border-radius: 2px; }
@media (max-width: 480px) { .vp-bar { gap: 6px; padding: 6px; } .vp-b { width: 40px; height: 40px; } .vp-t { font-size: 11px; min-width: 0; } .vp-big { padding: 14px 18px; } .vp-big span { display: none; } }

/* ------------------------------------------------------------ receipts (sun block, white ledger) */
.receipts { background: var(--sun); border-bottom: var(--bw) solid var(--ink); padding: clamp(64px, 9vw, 130px) 0; }
.rc-grid { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 48px; align-items: start; }
.rc-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 96px; }
.rc-side .clip { width: 190px; transform: rotate(-4deg); }
.rc-side h2 { font-size: clamp(40px, 4.6vw, 64px); }
.rc-side p { margin: 14px 0 0; }
.receipts .kick { color: var(--ink); }
.ledger { background: var(--panel); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 6px 0 12px; position: relative; min-height: 220px; }
.ledger::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 6px, var(--panel) 0) 0 0 / 14px 10px repeat-x, linear-gradient(45deg, transparent 6px, var(--panel) 0) 0 0 / 14px 10px repeat-x; }
.lhead, .lrow { display: grid; grid-template-columns: 110px 90px minmax(70px, 1fr) 70px 120px 90px; gap: 12px; align-items: center; padding: 0 18px; }
.lhead { height: 38px; border-bottom: var(--bw) solid var(--ink); font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.lrow { min-height: 44px; border-bottom: 1px dashed var(--rule); font-size: 15px; }
.lrow .lk a { margin-right: 8px; font: 600 13px var(--mono); }
.lrow.print { animation: print .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-8px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.lempty { margin: 0; padding: 34px 22px 18px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -.01em; max-width: 26ch; }
.lblank { height: 44px; border-bottom: 1px dashed var(--rule); margin: 0 18px; }

/* ------------------------------------------------------------ start a team */
.start { padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 100px); }
.start h2 { margin-bottom: 34px; }
.tname { display: block; max-width: 620px; }
.fl { display: block; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.fl em { text-transform: none; font-style: normal; letter-spacing: 0; }
input:not([type=file]) { width: 100%; height: 54px; padding: 0 14px; background: var(--panel); border: var(--bw) solid var(--ink); border-radius: var(--r); font: 500 18px var(--mono); outline: none; }
input:focus { outline: 3px solid var(--cobalt); outline-offset: 0; }
.tname input { height: 64px; font-size: 24px; }
.previewrow { margin: 18px 0 22px; max-width: 900px; background: var(--panel); border: var(--bw) solid var(--ink); border-radius: var(--r); }
.previewrow .brow.entry { margin: 8px; }
.stacts { display: flex; gap: 10px; flex-wrap: wrap; }
.endline { margin-top: 42px; padding-top: 22px; border-top: var(--bw) solid var(--ink); display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.endline a { font-weight: 600; }
.caline { display: inline-flex; align-items: center; gap: 10px; font: 500 15px var(--mono); min-width: 0; max-width: 100%; }
.caline .num { overflow-wrap: anywhere; }

/* ------------------------------------------------------------ footer */
.foot { border-top: var(--bw) solid var(--ink); padding: 26px var(--g) 34px; background: var(--bench); }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; max-width: var(--wrap); margin: 0 auto; }
.flinks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.flinks a { font-weight: 600; font-size: 15px; text-decoration: none; }
.flinks a:hover { text-decoration: underline; }
.fine { max-width: var(--wrap); margin: 18px auto 0; font-size: 13px; color: var(--ink-2); }

/* ------------------------------------------------------------ inner pages */
.inner main { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--g) 80px; }
.phead { margin-bottom: 30px; }
.phead h1 { font-weight: 800; font-variation-settings: "opsz" 96; font-size: clamp(48px, 8vw, 110px); line-height: .9; letter-spacing: -.04em; margin: 0 0 14px; }
.phead p { margin: 0; max-width: 56ch; font-size: 19px; }
.panel { background: var(--panel); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 24px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lform { display: flex; flex-direction: column; gap: 18px; }
.lrowf.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.qm { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 50%; font: 700 11px var(--mono); font-style: normal; color: var(--ink); vertical-align: 1px; margin-left: 4px; cursor: help; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 42px; min-width: 52px; padding: 0 12px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--panel); font: 600 14px var(--mono); transition: background .15s; }
.chip:hover { background: var(--bench); }
.chip.on { background: var(--ink); color: #fff; }
.picbtn { display: flex; align-items: center; gap: 14px; padding: 10px; border: var(--bw) dashed var(--ink); border-radius: var(--r); background: var(--panel); }
.picbtn:hover { background: var(--bench); }
.prevslot { width: 56px; height: 56px; flex: none; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--bench) url(/assets/art/mark.webp) center / 34px no-repeat; overflow: hidden; }
.prevslot img { width: 100%; height: 100%; object-fit: cover; }
.picbtn b { display: block; }
.picv { font-size: 13px; color: var(--ink-2); font-family: var(--mono); }
.split { display: grid; grid-template-columns: var(--gw, 90fr) var(--dw, 5fr) var(--pw, 5fr); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; height: 58px; }
.split span { display: flex; flex-direction: column; justify-content: center; padding: 0 10px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.split span + span { border-left: var(--bw) solid var(--ink); }
.split b { font: 600 16px var(--mono); }
.split .sg { background: var(--cobalt); color: #fff; }
.split .sd { background: var(--panel); }
.split .sp5 { background: var(--sun); }
.lgo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sum { font-size: 14px; color: var(--ink-2); }
.ferr { margin: 0; padding: 10px 12px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--sun); font-weight: 600; }
.notes { display: flex; flex-direction: column; gap: 14px; }
.notes h3 { font-size: 22px; }
.notes p { margin: 0; }
.kv { display: flex; flex-direction: column; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.kv div:last-child { border-bottom: 0; }
.kv dt, .kv span:first-child { color: var(--ink-2); }
.kv dd { margin: 0; text-align: right; }
.killer { font-weight: 800; font-variation-settings: "opsz" 72; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 30px; max-width: 22ch; }
.killer .num { font-weight: 600; letter-spacing: -.02em; color: var(--cobalt); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.tile { background: var(--panel); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 16px; }
.tile span { display: block; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tile b { display: block; margin-top: 10px; font: 600 28px/1 var(--mono); }
.lst { display: flex; flex-direction: column; }
.lst .li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.lst .li:last-child { border-bottom: 0; }
.lst .li .cpic { grid-row: auto; }
.empty { margin: 0; color: var(--ink-2); }
.carow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.carow .lab { font: 700 11px var(--mono); padding: 2px 5px; background: var(--ink); color: var(--sun); border-radius: 2px; }
.cachip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--panel); font: 600 13px var(--mono); }
.cachip:hover { background: var(--bench); }
.carow .lk { font: 600 13px var(--mono); }
.claimbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--sun); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 16px 18px; margin-bottom: 20px; }
.claimbar b { font: 600 26px var(--mono); }
.docs h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 46px 0 14px; }
.docs p, .docs li { max-width: 70ch; }
.docs ol, .docs ul { padding-left: 22px; }
.docs code, .docs .num { font-size: .92em; }
.pidline { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }

/* coin page */
.coinhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-bottom: 26px; }
.coinhead .cpic { width: 96px; height: 96px; grid-row: auto; }
.coinhead h1 { font-weight: 800; font-variation-settings: "opsz" 96; font-size: clamp(40px, 7vw, 96px); line-height: .9; letter-spacing: -.04em; margin: 0; overflow-wrap: anywhere; }
.coinhead .tk { font-size: 18px; }
.bigscore { font: 600 clamp(48px, 7vw, 96px)/1 var(--mono); margin: 0; }
.flag { display: inline-block; padding: 4px 8px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--sun); font: 700 12px var(--mono); }
.actrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ------------------------------------------------------------ toasts + tooltips */
.tstack { position: fixed; z-index: 60; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 40px 12px 14px; position: relative; background: var(--panel); border: var(--bw) solid var(--ink); border-radius: var(--r); font-size: 15px; }
.toast.ok { background: #EAFBF6; }
.toast.err { background: var(--sun); }
.toast a { font: 600 13px var(--mono); }
.toast .tx { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; background: none; font-size: 22px; line-height: 1; }
.tipt { position: fixed; z-index: 70; max-width: 280px; padding: 8px 10px; background: var(--ink); color: #fff; font: 500 12px/1.45 var(--mono); border-radius: 0; pointer-events: none; }

/* ------------------------------------------------------------ 404 */
.e404 main { min-height: calc(100vh - 64px); display: grid; place-items: center; text-align: center; padding: 40px var(--g); }
.e404 .spill { width: min(420px, 80vw); margin: 0 auto 10px; }
.e404 h1 { font-weight: 800; font-variation-settings: "opsz" 96; font-size: clamp(44px, 7vw, 88px); letter-spacing: -.04em; line-height: .95; margin: 0 0 22px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .tnav a:nth-child(n+5) { display: none; }
  .lhead, .lrow { grid-template-columns: 96px 80px minmax(60px, 1fr) 64px 110px 80px; gap: 8px; padding: 0 12px; }
}
@media (max-width: 899px) {
  .how-pin { min-height: 0; padding: 64px 0; }
  .how-track { flex-direction: column; padding: 0 var(--g); }
  .step { width: 100%; min-height: 0; }
    .how-head { grid-template-columns: 1fr; }
  .how-dots { display: none; }
  .rc-grid { grid-template-columns: 1fr; gap: 30px; }
  .rc-side { flex-direction: row; align-items: flex-start; position: static; }
  .rc-side .clip { width: 120px; flex: none; }
  .ledger { overflow-x: auto; }
  .lhead, .lrow { min-width: 620px; }
  .grid2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shead { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tnav, .wtile { display: none; }
  .top { gap: 10px; }
  .viewer { min-height: max(600px, calc(92dvh - 64px)); }
  .vname { padding-top: 96px; }
  .viewer { grid-template-rows: 1fr auto auto auto auto; }
  .readout { position: relative; grid-row: 4; padding-top: 22px; }
  .catag { top: 16px; right: 14px; font-size: 13px; padding: 7px 8px 7px 10px; }
  .readout { padding: 0 16px 16px; gap: 18px; flex-wrap: wrap; }
  .readout dd { font-size: 24px; }
  .readout dt { font-size: 10px; }
  .hacts { position: relative; right: auto; bottom: auto; grid-row: 5; padding: 0 16px 16px; flex-wrap: wrap; }
  .draghint { display: none; }
  .bhead, .brow { grid-template-columns: 48px minmax(0, 1fr) 82px; gap: 10px; padding: 0 12px; }
  .bhead span:nth-child(4), .brow .pc { display: none; }
  .brow.entry { margin: 6px; }
  .cpic { width: 34px; height: 34px; }
  .sc { font-size: 15px; }
  .lrowf.two { grid-template-columns: 1fr; }
  .coinhead { grid-template-columns: auto minmax(0, 1fr); }
  .coinhead .cpic { width: 64px; height: 64px; }
  .coinhead > :last-child { grid-column: 1 / -1; }
  .btn .bl { padding: 0 14px; }
}
@media (max-width: 380px) {
  .btn { font-size: 15px; }
  .btn .well { width: 40px; }
  .wm span { font-size: 22px; }
  .top .btn.sm .bl { padding: 0 10px; }
}
@media (min-width: 2000px) { .viewer { min-height: 900px; max-height: 1200px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
