/* Arenix — tokens */
:root {
  --paper: #ECE6DA;
  --paper-2: #E2DACB;
  --paper-3: #D5CBB8;
  --ink: #1B1713;
  --ink-2: #4A433B;
  --ink-3: #8A8175;
  --rule: rgba(27, 23, 19, .16);
  --wax: #6B0E19;
  --wax-2: #8E1A27;
  --wax-soft: rgba(107, 14, 25, .09);
  --rail: 92px;
  --gutter: 6vw;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: 'Baloo 2', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; cursor: none; background: var(--paper); }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .35; mix-blend-mode: multiply;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .06 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; cursor: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
input, textarea { font: inherit; color: inherit; cursor: text; }
::selection { background: var(--wax); color: var(--paper); }
:focus-visible { outline: 2px solid var(--wax); outline-offset: 3px; }

.main { margin-left: var(--rail); position: relative; z-index: 2; }

/* Type */
.d1 { font-size: clamp(88px, 12.5vw, 250px); font-weight: 800; font-variation-settings: 'wdth' 125; line-height: .84; letter-spacing: -.04em; }
.d2 { font-size: clamp(56px, 7vw, 136px); font-weight: 800; font-variation-settings: 'wdth' 118; line-height: .9; letter-spacing: -.035em; }
.d3 { font-size: clamp(34px, 3.4vw, 60px); font-weight: 700; font-variation-settings: 'wdth' 112; line-height: .98; letter-spacing: -.025em; }
.lede { font-size: 21px; line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.small { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }
.wax { color: var(--wax); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; font-weight: 600; font-size: 16px; border: 1px solid var(--ink); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.wax { background: var(--wax); border-color: var(--wax); color: var(--paper); }
.btn.wax:hover { background: var(--wax-2); border-color: var(--wax-2); }
.btn:disabled { opacity: .45; }

/* Rail navigation (left edge, rotated tabs) */
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 50; background: var(--paper); border-right: 2px solid var(--ink); display: flex; flex-direction: column; align-items: stretch; }
.rail .seal-mark { display: grid; place-items: center; height: 104px; border-bottom: 2px solid var(--ink); }
.rail .seal-mark svg { width: 58px; height: 58px; filter: drop-shadow(2px 3px 2px rgba(27,23,19,.35)); transition: transform .8s var(--ease); }
.rail .seal-mark:hover svg { transform: rotate(-200deg) scale(1.08); }
.rail nav { flex: 1; display: flex; flex-direction: column; }
.rail nav a { flex: 1; display: grid; place-items: center; border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; transition: color .35s; }
.rail nav a span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 19px; font-weight: 800; font-variation-settings: 'wdth' 112; letter-spacing: -.01em; position: relative; z-index: 1; white-space: nowrap; }
.rail nav a::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: translateX(-101%); transition: transform .45s var(--ease); }
.rail nav a:hover { color: var(--paper); }
.rail nav a:hover::before { transform: none; }
.rail nav a[aria-current] { background: var(--wax); color: var(--paper); }
.rail nav a[aria-current]::before { background: var(--wax-2); }
.rail .wk { height: 120px; display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Brand (top left) */
.brand { position: fixed; top: 0; left: var(--rail); z-index: 58; background: var(--ink); color: var(--paper); padding: 16px 30px 18px 26px; display: flex; flex-direction: column; border-bottom-right-radius: 0; }
.brand b { font-size: 46px; line-height: .9; font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.045em; display: flex; align-items: center; gap: 10px; }
.brand b::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--wax-2); box-shadow: 0 0 0 3px rgba(236,230,218,.12); }
.brand span { font-size: 13px; font-weight: 600; color: rgba(236,230,218,.62); margin-top: 6px; letter-spacing: .01em; }
.brand:hover b::after { background: #c43b50; }

/* Top right: X, CA, wallet */
.topright { position: fixed; top: 22px; right: 30px; z-index: 60; display: flex; gap: 10px; align-items: stretch; }
.chip-x, .chip-ca { display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1.5px solid var(--ink); background: var(--paper); font-size: 14px; font-weight: 700; transition: background .3s, color .3s; }
.chip-x:hover, .chip-ca:hover { background: var(--ink); color: var(--paper); }
.chip-ca em { font-style: normal; background: var(--wax); color: var(--paper); padding: 3px 7px; font-size: 12px; }
.chip-ca span { font-variant-numeric: tabular-nums; min-width: 92px; text-align: left; }

/* Wallet (top right) */
.wallet { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1.5px solid var(--ink); background: var(--paper); font-size: 14px; font-weight: 700; transition: background .3s, color .3s; }
.wallet:hover { background: var(--ink); color: var(--paper); }
.wallet .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.wallet.on .dot { background: var(--wax); border-color: var(--wax); }
.wallet-panel { position: fixed; top: 76px; right: 30px; width: 380px; z-index: 61; background: var(--paper); border: 1px solid var(--ink); padding: 28px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); box-shadow: 0 30px 60px -30px rgba(27, 23, 19, .45); }
.wallet-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.wallet-panel h4 { font-size: 24px; font-weight: 800; font-variation-settings: 'wdth' 115; letter-spacing: -.02em; margin-bottom: 10px; }
.wallet-panel p { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin-bottom: 20px; }
.wallet-panel .addr { font-variant-numeric: tabular-nums; font-weight: 600; word-break: break-all; color: var(--ink); }
.wallet-panel .msg { margin-top: 14px; font-size: 14px; color: var(--wax); min-height: 1em; }

/* Week dock (bottom centre) */
.dock { position: fixed; bottom: 62px; left: calc(50% + var(--rail) / 2); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 24px; background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: 0 20px 44px -20px rgba(27, 23, 19, .6); transition: transform .6s var(--ease); }
.dock.hide { transform: translate(-50%, 140%); }
.dock .t { font-weight: 700; font-variation-settings: 'wdth' 115; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.dock .lbl { color: rgba(236, 230, 218, .6); }
.dock a { background: var(--wax); padding: 12px 18px; font-weight: 600; transition: background .3s; }
.dock a:hover { background: var(--wax-2); }

/* Scroll progress (right edge) */
.progress { position: fixed; right: 0; top: 0; width: 4px; height: 100vh; z-index: 55; }
.progress i { display: block; width: 100%; height: 100%; background: var(--wax); transform-origin: top; transform: scaleY(0); }

/* Cursor */
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 200; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--wax); }
.cur-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, border-color .3s; }
.cur-ring span { font-size: 12px; font-weight: 700; color: var(--paper); opacity: 0; white-space: nowrap; transition: opacity .2s; }
.cur-ring.hov { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--wax); }
.cur-ring.lab { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--wax); border-color: var(--wax); }
.cur-ring.lab span { opacity: 1; }
.cur-hidden .cur-dot, .cur-hidden .cur-ring { opacity: 0; }

/* Redaction bars */
.redact { position: relative; display: inline-block; }
.redact::after { content: ''; position: absolute; left: -.04em; right: -.06em; top: .08em; bottom: .02em; background: var(--wax); transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease); }
.redact.on::after { transform: scaleX(1); }

/* Footer */
.foot { position: relative; z-index: 2; margin-left: var(--rail); padding: 70px var(--gutter) 150px; display: flex; justify-content: space-between; gap: 40px; background: var(--ink); color: rgba(236,230,218,.6); font-size: 14px; }
.foot .foot-brand { display: block; font-size: 120px; line-height: .8; font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.05em; color: var(--paper); margin-bottom: 18px; }
.foot-links { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; text-align: right; }
.foot nav { display: flex; gap: 28px; color: var(--paper); font-weight: 600; }
.foot .ca-full { margin-left: 18px; font-variant-numeric: tabular-nums; }
.foot a:hover { color: var(--wax-2); }

/* Generic section */
.sec { padding: 180px var(--gutter); position: relative; }
.empty { padding: 60px 0; font-size: 20px; color: var(--ink-2); }
.empty button { text-decoration: underline; text-underline-offset: 4px; }

/* ================================================================ Home */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--gutter) 130px; position: relative; }
.hero h1 .line { display: block; white-space: nowrap; will-change: transform; }
.hero h1 { font-size: clamp(80px, 9.6vw, 200px); position: relative; z-index: 2; }
.hero h1 .line:nth-child(2) { padding-left: 4vw; }
.hero .meta { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 56px; gap: 40px; }
.hero .stat { text-align: right; }
.hero .stat b { display: block; font-size: 40px; font-weight: 800; font-variation-settings: 'wdth' 120; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero .redact::after { transform-origin: right; }
.hero .redact.on::after { transform-origin: left; }
.hero .redact.on:hover::after { transform: scaleX(0); transform-origin: right; transition-duration: .7s; }
.hero .redact.on:hover { color: var(--wax); }

.week { height: 420vh; position: relative; }
.week .stick { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.week .track { display: flex; will-change: transform; }
.week .intro { width: 46vw; flex: none; padding: 0 6vw 0 var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.panel { width: 66vw; flex: none; height: 64vh; border-left: 1px solid var(--rule); padding: 0 8vw 0 3.2vw; display: flex; flex-direction: column; justify-content: space-between; }
.panel .day { font-size: 16px; font-weight: 700; color: var(--wax); font-variant-numeric: tabular-nums; }
.panel .lede { max-width: 30ch; }
.panel .fig { height: 120px; display: flex; align-items: flex-end; gap: 6px; }
.panel .fig i { flex: 1; background: var(--ink); max-width: 18px; }
.panel .fig.flat { align-items: center; }
.panel .fig.flat i { height: 1px; max-width: none; background: var(--ink-3); }

.room { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; margin-top: 90px; }
.room h4 { font-size: 15px; font-weight: 700; padding-bottom: 16px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; }
.room h4 span { color: var(--ink-3); font-weight: 500; }
.room .row { display: grid; grid-template-columns: 1.1fr 1.2fr .8fr 1fr; align-items: center; height: 74px; border-bottom: 1px solid var(--rule); font-size: 18px; font-variant-numeric: tabular-nums; }
.room .row b { font-weight: 800; font-variation-settings: 'wdth' 115; font-size: 22px; }
.room .row .r { text-align: right; }
.room .sealed .row { display: flex; gap: 10px; }
.room .sealed .row i { height: 22px; background: var(--ink); transition: background .4s; }
.room .sealed .row:hover i { background: var(--wax); }
.room .settle { margin-top: 44px; display: flex; align-items: center; gap: 30px; }
.room .result { font-size: 22px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.room .result.on { opacity: 1; transform: none; }
.room .result b { font-size: 34px; font-weight: 800; font-variation-settings: 'wdth' 120; color: var(--wax); margin-right: 10px; }

.letters { padding: 200px var(--gutter) 160px; overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.letters .word { font-size: clamp(90px, 12.5vw, 250px); line-height: .9; white-space: nowrap; letter-spacing: -.03em; user-select: none; }
.letters .word span { display: inline-block; font-weight: var(--g, 300); font-variation-settings: 'wdth' var(--w, 90); }
.letters .word span.sp { width: .25em; }
.letters .lede { margin-top: 48px; margin-left: auto; }

.score { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 100px; border-top: 1px solid var(--ink); }
.score > div { padding: 40px 3vw 0 0; }
.score > div + div { padding-left: 3vw; border-left: 1px solid var(--rule); }
.score h3 { margin-bottom: 26px; }
.score ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.score li span { color: var(--ink-3); font-weight: 500; margin-left: 6px; font-size: 15px; }

.end { padding: 220px var(--gutter) 200px; }
.end .d1 { max-width: 12ch; }
.end .acts { display: flex; gap: 20px; margin-top: 60px; }

/* ================================================================ Live */
.live { min-height: 100vh; padding: 130px var(--gutter) 150px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 5vw; align-content: end; }
.clock { display: flex; gap: 2.4vw; margin-top: 24px; }
.clock div b { display: block; font-size: clamp(96px, 10vw, 200px); font-weight: 800; font-variation-settings: 'wdth' 125; line-height: .84; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.clock div span { display: block; margin-top: 14px; font-size: 15px; color: var(--ink-3); }
.live .label { font-size: 18px; font-weight: 600; }
.figs { display: flex; flex-direction: column; gap: 46px; align-self: end; }
.figs b { display: block; font-size: clamp(56px, 5.4vw, 104px); font-weight: 800; font-variation-settings: 'wdth' 122; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.figs b small { font-size: .32em; letter-spacing: 0; font-weight: 600; margin-left: 8px; color: var(--ink-3); }
.figs span { font-size: 15px; color: var(--ink-3); }
.field-of-seals { grid-column: 1 / -1; margin-top: 40px; }
.marks { display: grid; grid-template-columns: repeat(auto-fill, minmax(9px, 1fr)); gap: 5px; }
.marks i { height: 26px; background: var(--ink); transition: background .3s; }
.marks i:hover { background: var(--wax); }
.marks-cap { display: flex; justify-content: space-between; margin-top: 18px; }
.next { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--ink); padding-top: 34px; gap: 30px; }
.next .d3 { max-width: 20ch; }

/* Drawer (join week) */
.scrim { position: fixed; inset: 0; z-index: 79; background: rgba(27, 23, 19, .38); opacity: 0; pointer-events: none; transition: opacity .5s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 600px; z-index: 80; background: var(--paper); border-left: 1px solid var(--ink); padding: 56px 56px 80px; overflow-y: auto; transform: translateX(100%); transition: transform .8s var(--ease); }
.drawer.open { transform: none; }
.drawer .close { position: absolute; top: 26px; right: 30px; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.drawer h2 { margin: 30px 0 14px; }
.drawer .lede { font-size: 18px; margin-bottom: 44px; }
.field { margin-bottom: 30px; }
.field > label, .field > .lbl { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.field input[type=text], .field input[type=number] { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0 10px; font-size: 22px; font-weight: 500; outline: none; font-variant-numeric: tabular-nums; border-radius: 0; }
.field input:focus { border-bottom-color: var(--wax); }
.field input.bad { border-bottom-color: var(--wax); }
.field .hint { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.field .err { font-size: 13px; color: var(--wax); margin-top: 8px; min-height: 1em; font-weight: 600; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: block; padding: 11px 18px; border: 1px solid var(--ink); font-weight: 600; font-size: 15px; transition: background .25s, color .25s; }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--wax); outline-offset: 2px; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.check input { appearance: none; flex: none; width: 20px; height: 20px; border: 1px solid var(--ink); margin-top: 1px; display: grid; place-items: center; }
.check input:checked { background: var(--wax); border-color: var(--wax); }
.check input:checked::after { content: ''; width: 8px; height: 8px; background: var(--paper); }
.sub-price[hidden] { display: none; }
.sealed-state { display: none; }
.drawer.done form { display: none; }
.drawer.done .sealed-state { display: block; }
.sealed-state .d1 { color: var(--wax); margin: 40px 0 30px; }
.kv { border-top: 1px solid var(--ink); margin: 36px 0; }
.kv div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { font-weight: 600; word-break: break-all; font-variant-numeric: tabular-nums; }
.hash { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; font-weight: 500; }

/* ================================================================ Archive */
.head { padding: 170px var(--gutter) 80px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 5vw; align-items: end; }
.weeks { padding: 0 var(--gutter) 160px; }
.weekrow { border-top: 1px solid var(--ink); }
.weekrow:last-child { border-bottom: 1px solid var(--ink); }
.weekrow > button { width: 100%; text-align: left; display: grid; grid-template-columns: 1.2fr 1fr .8fr .8fr .8fr 40px; align-items: end; padding: 34px 0 30px; gap: 20px; }
.weekrow h3 { font-size: clamp(54px, 5.6vw, 108px); font-weight: 800; font-variation-settings: 'wdth' 122; line-height: .86; letter-spacing: -.045em; transition: color .4s; }
.weekrow > button:hover h3, .weekrow.open h3 { color: var(--wax); }
.weekrow .c b { display: block; font-size: 24px; font-weight: 700; font-variation-settings: 'wdth' 112; font-variant-numeric: tabular-nums; }
.weekrow .c span { font-size: 13px; color: var(--ink-3); }
.weekrow .tog { width: 40px; height: 40px; border: 1px solid var(--ink); position: relative; justify-self: end; transition: transform .5s var(--ease), background .3s; }
.weekrow .tog::before, .weekrow .tog::after { content: ''; position: absolute; left: 11px; right: 11px; top: 19px; height: 1px; background: currentColor; }
.weekrow .tog::after { transform: rotate(90deg); transition: transform .5s var(--ease); }
.weekrow.open .tog::after { transform: rotate(0); }
.board { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.weekrow.open .board { grid-template-rows: 1fr; }
.board > div { overflow: hidden; }
.board .inner { padding: 10px 0 60px; }
.board .meta { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 26px; font-size: 14px; color: var(--ink-3); }
.board .meta b { color: var(--ink); font-weight: 600; }
.lb { width: 100%; }
.lb-row { display: grid; grid-template-columns: 70px 1.4fr 1fr 1fr 1fr 190px 1fr; align-items: center; height: 60px; border-bottom: 1px solid var(--rule); font-size: 17px; font-variant-numeric: tabular-nums; position: relative; }
.lb-row.h { height: 40px; font-size: 13px; color: var(--ink-3); border-bottom-color: var(--ink); }
.lb-row .rk { font-weight: 800; font-variation-settings: 'wdth' 120; font-size: 22px; }
.lb-row .hd { font-weight: 700; }
.lb-row .hd a { border-bottom: 1px solid var(--wax); }
.lb-row .hd em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink-3); margin-left: 10px; }
.lb-row .r { text-align: right; padding-right: 20px; }
.lb-row .up { color: var(--wax); font-weight: 700; }
.lb-row svg { display: block; }
.lb-row:not(.h)::after { content: ''; position: absolute; left: 0; right: 0; top: 10px; bottom: 10px; background: var(--ink); transform-origin: right; transition: transform .9s var(--ease); transition-delay: var(--d, 0s); }
.weekrow.unsealed .lb-row::after { transform: scaleX(0); }
.lb-row.first { background: var(--wax-soft); }

/* ================================================================ Entrant */
.ent-head { padding: 170px var(--gutter) 60px; }
.ent-head .who { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.ent-head .tag { font-size: 16px; font-weight: 600; margin-bottom: 20px; display: flex; gap: 22px; color: var(--ink-3); }
.ent-head .tag b { color: var(--wax); }
.ent-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin: 0 var(--gutter); }
.ent-stats div { padding: 26px 0 28px; }
.ent-stats div + div { padding-left: 2.5vw; border-left: 1px solid var(--rule); }
.ent-stats b { display: block; font-size: clamp(40px, 4vw, 72px); font-weight: 800; font-variation-settings: 'wdth' 120; letter-spacing: -.04em; line-height: .95; font-variant-numeric: tabular-nums; }
.ent-stats span { font-size: 14px; color: var(--ink-3); }
.chart { margin: 70px var(--gutter) 0; position: relative; }
.chart svg { width: 100%; height: 360px; display: block; overflow: visible; }
.chart .axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.positions { padding: 120px var(--gutter) 60px; }
.pos { display: grid; grid-template-columns: 1.1fr 1.2fr .8fr 1fr 220px; align-items: center; min-height: 92px; border-bottom: 1px solid var(--rule); gap: 20px; font-variant-numeric: tabular-nums; }
.pos.h { min-height: 44px; font-size: 13px; color: var(--ink-3); border-bottom-color: var(--ink); }
.pos b { font-size: 30px; font-weight: 800; font-variation-settings: 'wdth' 118; letter-spacing: -.03em; }
.pos small { display: block; font-size: 13px; color: var(--ink-3); }
.pos .c { font-size: 22px; font-weight: 700; }
.sub { margin: 60px var(--gutter) 0; padding: 50px; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.sub .d3 { color: var(--paper); }
.sub p { color: rgba(236, 230, 218, .7); font-size: 17px; margin-top: 16px; max-width: 40ch; line-height: 1.5; }
.sub .price { text-align: right; }
.sub .price b { display: block; font-size: 64px; font-weight: 800; font-variation-settings: 'wdth' 120; letter-spacing: -.04em; }
.sub .price .btn { margin-top: 20px; border-color: var(--paper); }
.sub .price .btn:hover { background: var(--paper); color: var(--ink); }
.sealed-book { margin: 80px var(--gutter) 0; padding: 70px 0; border-top: 1px solid var(--ink); }
.sealed-book .bars { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; max-width: 900px; }
.sealed-book .bars i { height: 30px; background: var(--ink); }
.others { padding: 120px var(--gutter) 40px; }
.others ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.others a { display: inline-flex; gap: 12px; padding: 14px 20px; border: 1px solid var(--ink); font-weight: 600; transition: background .3s, color .3s; font-variant-numeric: tabular-nums; }
.others a:hover, .others a[aria-current] { background: var(--ink); color: var(--paper); }

/* ================================================================ Proof */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin-top: 90px; }
.steps > div { padding: 34px 3vw 0 0; }
.steps > div + div { padding-left: 3vw; border-left: 1px solid var(--rule); }
.steps .when { font-size: 15px; font-weight: 700; color: var(--wax); margin-bottom: 70px; }
.steps h3 { margin-bottom: 22px; }
.steps p { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 32ch; }
.hashlab { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; margin-top: 80px; align-items: start; }
.hashlab textarea { width: 100%; height: 260px; resize: none; background: var(--paper-2); border: 1px solid var(--ink); padding: 22px; font-size: 18px; line-height: 1.6; outline: none; font-variant-numeric: tabular-nums; }
.hashlab textarea:focus { border-color: var(--wax); }
.hashlab .out { padding-top: 6px; }
.hashlab .digest { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 26px; line-height: 1.35; word-break: break-all; margin: 18px 0 30px; }
.hashlab .digest span { transition: color .5s; }
.hashlab .digest span.ch { color: var(--wax); }
.split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 90px; border-top: 1px solid var(--ink); }
.split > div { padding: 40px 4vw 0 0; }
.split > div + div { padding-left: 4vw; border-left: 1px solid var(--rule); }
.split ul { list-style: none; margin-top: 34px; }
.split li { font-size: 24px; font-weight: 600; font-variation-settings: 'wdth' 108; padding: 18px 0; border-bottom: 1px solid var(--rule); letter-spacing: -.01em; display: flex; gap: 18px; align-items: baseline; }
.split li::before { content: ''; flex: none; width: 12px; height: 12px; transform: translateY(-2px); }
.split .hides li::before { background: var(--wax); }
.split .shows li::before { border: 1.5px solid var(--ink); border-radius: 50%; }
.anchor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; margin-top: 80px; border-top: 1px solid var(--ink); padding-top: 34px; }
.anchor b { display: block; font-size: clamp(36px, 3.4vw, 60px); font-weight: 800; font-variation-settings: 'wdth' 120; letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin-bottom: 10px; word-break: break-all; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ================================================================ Funk layer */

/* Global ticker (bottom edge) */
.tickbar { position: fixed; left: var(--rail); right: 0; bottom: 0; height: 40px; z-index: 57; background: var(--ink); color: var(--paper); overflow: hidden; display: flex; align-items: center; border-top: 2px solid var(--wax); }
.tick-track, .tape-track { display: flex; white-space: nowrap; will-change: transform; }
.mq-run { display: flex; align-items: center; flex: none; }
.tk { display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tk b { font-weight: 900; font-variation-settings: 'wdth' 118; }
.tk i { font-style: normal; font-size: 12px; }
.tk i.up { color: #E0566B; }
.tk i.dn { color: rgba(236,230,218,.5); }
.tk svg { color: rgba(236,230,218,.55); }
.tk-sep { color: var(--wax-2); font-size: 14px; }

/* Hero smoke + spinning badge */
.hero .smoke { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .meta { position: relative; z-index: 2; }
.badge { position: absolute; top: 150px; right: 7vw; width: 230px; height: 230px; z-index: 3; display: grid; place-items: center; }
.badge svg.ring-txt { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge:hover svg.ring-txt { animation-duration: 5s; }
.badge text { font-size: 15.5px; font-weight: 800; letter-spacing: .22em; fill: var(--ink); font-family: var(--font); }
.badge .core { width: 128px; height: 128px; position: relative; display: grid; place-items: center; }
.badge .core svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(4px 6px 5px rgba(27,23,19,.35)); }
.badge .core b { position: relative; z-index: 1; color: var(--paper); font-size: 26px; font-weight: 900; font-variation-settings: 'wdth' 118; font-variant-numeric: tabular-nums; letter-spacing: -.02em; text-shadow: 0 1px 0 rgba(0,0,0,.35); margin-top: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Crossing tapes */
.tapes { position: relative; height: 300px; overflow: hidden; z-index: 3; margin-top: -40px; }
.tape { position: absolute; left: -5%; right: -5%; height: 84px; display: flex; align-items: center; overflow: hidden; }
.tape.a { top: 70px; background: var(--ink); color: var(--paper); transform: rotate(-3.2deg); }
.tape.b { top: 120px; background: var(--wax); color: var(--paper); transform: rotate(2.6deg); box-shadow: 0 20px 40px -20px rgba(27,23,19,.6); }
.tape .tk { font-size: 24px; padding: 0 26px; gap: 14px; }
.tape .tk i { font-size: 17px; }
.tape .tk-sep { font-size: 22px; color: inherit; opacity: .6; }
.tape .word { font-size: 46px; font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.03em; padding: 0 30px; }

/* Envelope (seal a call) */
.callsec { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6vw; align-items: center; margin-top: 70px; }
.env { width: 100%; max-width: 640px; overflow: visible; filter: drop-shadow(14px 22px 24px rgba(27,23,19,.22)); }
.env .flap-c, .env .flap-o, .env .card, .env .seal { transform-box: fill-box; transition: transform .8s var(--ease), opacity .5s; }
.env .flap-c { transform-origin: top; }
.env .flap-o { transform-origin: bottom; transform: scaleY(0); }
.env .card { transform: translateY(0); }
.env .seal { transform-origin: center; }
.env-wrap { position: relative; }
.env-wrap.open .flap-c { transform: scaleY(0); }
.env-wrap.open .flap-o { transform: scaleY(1); transition-delay: .25s; }
.env-wrap.open .card { transform: translateY(-62%); transition-delay: .45s; }
.env-wrap.open .seal { transform: scale(1.5) rotate(25deg); opacity: 0; }
.env-cap { margin-top: 18px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.mini { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border: 1.5px solid var(--ink); background: linear-gradient(135deg, #F1ECE2, #DCD3C2); transition: transform .4s var(--ease); }
.mini:hover { transform: translateX(-10px) rotate(-1deg); }
.mini svg { width: 40px; height: 40px; flex: none; }
.mini b { font-weight: 800; font-variation-settings: 'wdth' 112; font-size: 18px; }
.mini i { flex: 1; height: 14px; background: var(--ink); }
.mini span { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.settle-row { display: flex; align-items: center; gap: 30px; margin-top: 40px; }
.settle-row .result { font-size: 22px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.settle-row .result.on { opacity: 1; transform: none; }
.settle-row .result b { font-size: 40px; font-weight: 900; font-variation-settings: 'wdth' 120; color: var(--wax); margin-right: 10px; }

/* Live page extras */
.live { position: relative; }
.live .smoke { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.live > * { position: relative; z-index: 1; }
.live .clock div b { font-size: clamp(140px, 15vw, 300px); }
.chips.mk span { font-variant-numeric: tabular-nums; }
.chips.mk span small { font-weight: 500; margin-left: 8px; opacity: .65; }

/* Archive rounds */
.weekrow h3 { font-variant-numeric: tabular-nums; }
.mover b { color: var(--wax); }

/* Entrant call */
.callline { display: flex; align-items: baseline; gap: 3vw; flex-wrap: wrap; }
.callline .dir { color: var(--wax); }
.callpx { display: flex; gap: 60px; margin-top: 30px; font-variant-numeric: tabular-nums; }
.callpx b { display: block; font-size: 40px; font-weight: 800; font-variation-settings: 'wdth' 118; letter-spacing: -.03em; }
.callpx span { font-size: 14px; color: var(--ink-3); }

/* Mini envelopes: results open on the hour, calls stay sealed */
.mini { position: relative; }
.mini svg { transition: transform .7s var(--ease), opacity .5s; transition-delay: var(--d, 0s); }
.mini .res { min-width: 120px; text-align: right; font-size: 22px; font-weight: 900; font-variation-settings: 'wdth' 118; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--d, 0s) + .25s); }
.mini .res.up { color: var(--wax); }
.mini .res small { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-left: 8px; }
.mini.open svg { transform: rotate(-60deg) scale(.6); opacity: .3; }
.mini.open .res { opacity: 1; transform: none; }

/* Ticker smoothness + smoke on its own layer */
.tick-track, .tape-track { flex: none; backface-visibility: hidden; }
.smoke { transform: translateZ(0); }

/* Flat marks (no wax seals) */
.rail .seal-mark span { display: grid; place-items: center; width: 58px; height: 58px; background: var(--ink); color: var(--paper); font-size: 36px; font-weight: 900; font-variation-settings: 'wdth' 125; transition: background .3s, transform .5s var(--ease); }
.rail .seal-mark:hover span { background: var(--wax); transform: rotate(-8deg); }
.badge .core { border-radius: 50%; background: var(--ink); }
.badge:hover .core { background: var(--wax); }

/* ================================================================ Bubbly pass (delete this block to go back to sharp) */
:root { --r: 22px; --r-sm: 14px; }
.btn, .wallet, .chip-x, .chip-ca, .chip span, .dock, .dock a, .others a, .tog, .weekrow .tog { border-radius: 999px; }
.chip-ca em { border-radius: 999px; }
.brand { border-radius: 0 0 var(--r) 0; }
.wallet-panel, .drawer .kv, .mini, .sub, .room .row, .hashlab textarea, .scrim + .drawer { border-radius: var(--r); }
.drawer { border-radius: 32px 0 0 32px; }
.rail { border-radius: 0 28px 28px 0; overflow: hidden; }
.rail .seal-mark span { border-radius: 18px; }
.rail nav a[aria-current] { border-radius: 18px; margin: 6px; }
.rail nav a::before { border-radius: 18px; }
.mini i, .marks i, .sealed-book .bars i, .room .sealed .row i, .panel .fig i { border-radius: 999px; }
.redact::after, .lb-row:not(.h)::after { border-radius: 999px; }
.lb-row.first { border-radius: var(--r-sm); }
.tape { border-radius: 999px; }
.tickbar { border-radius: 24px 24px 0 0; }
.progress i { border-radius: 999px; }
.foot { border-radius: 48px 48px 0 0; margin-top: 40px; }
.weekrow, .weekrow:last-child { border-radius: var(--r); }
.weekrow > button { padding-left: 24px; padding-right: 24px; }
.ent-stats, .steps, .split, .anchor, .score { border-radius: var(--r); }
.field input[type=text], .field input[type=number] { border: 1.5px solid var(--ink); border-radius: var(--r-sm); padding: 12px 18px; }
.check input { border-radius: 7px; }
.check input:checked::after { border-radius: 3px; }
.cur-ring, .cur-dot { border-radius: 50%; }
.env rect, .env path { stroke-linejoin: round; }
