/* MOB. The landing is the coin's own picture (the march) edge to edge: the words and the play card sit on its dark left,
   the leader keeps the middle, the LIVE city plays in a framed screen on the right. Panels are smoked glass with a hairline;
   one accent, the pawn's sky blue, glossy on the one button that matters. In game: black scoreboard plates. Anton for every
   big word and number. */
:root {
  --bg: #080a10; --s1: #0e1219; --s2: #141a24; --s3: #1d2532;
  --ink: #f2f5fa; --ink2: #b3bdcb; --ink3: #75808f;
  --line: rgba(226, 235, 248, .1); --line2: rgba(226, 235, 248, .2);
  --acc: #6cc5ff; --acc-hi: #a5dcff; --acc-deep: #2f8fd8; --acc-ink: #04121d; --warm: #ffc56e; --down: #ff5d4f;
  --glass: rgba(9, 12, 18, .8); --glass2: rgba(9, 12, 18, .92);
  --plate: linear-gradient(180deg, #131823 0%, #090c11 62%, #07090d 100%);
  --r1: 6px; --r2: 10px; --r3: 16px;
  --f-d: 'Anton', 'Impact', 'Arial Narrow', sans-serif; --f-t: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --f-m: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1); --pop: cubic-bezier(.3, 1.6, .5, 1);
  --pad: clamp(28px, 2.9vw, 56px); --sw: clamp(380px, 26vw, 500px); --sh: calc(var(--sw) * .58); --st: 96px; --strip: 78px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--f-t); overflow: hidden; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
::selection { background: var(--acc); color: var(--acc-ink); }
:where(a) { color: inherit; text-decoration: none; }
:where(button, input) { font: inherit; color: inherit; }
:where(button) { background: none; border: 0; padding: 0; cursor: pointer; }
:where(ol, ul) { list-style: none; margin: 0; padding: 0; }
:where(h1, h2, p) { margin: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
/* the game's canvas: the whole screen while you play; on the landing it is the live screen on the right */
#game { position: fixed; z-index: 2; right: var(--pad); top: var(--st); width: var(--sw); height: var(--sh); border-radius: var(--r3); display: block; touch-action: none; }
body.is-playing #game { z-index: 0; inset: 0; width: 100vw; height: 100vh; border-radius: 0; cursor: crosshair; }
body.is-page #game { display: none; }

.lab { font: 700 10.5px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); white-space: nowrap; }
.lab i { font-style: normal; letter-spacing: .01em; text-transform: none; opacity: .9; margin-left: 6px; font: 400 12px/1 var(--f-t); }
.num, .mono { font-family: var(--f-m); font-variant-numeric: tabular-nums; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 5px; background: rgba(226, 235, 248, .1); border: 1px solid var(--line2); font: 700 10.5px/1 var(--f-m); color: var(--ink2); }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 rgba(108, 197, 255, .6); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(108, 197, 255, .55); } 100% { box-shadow: 0 0 0 9px rgba(108, 197, 255, 0); } }
.is-hidden { visibility: hidden; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 60px -30px #000; }
.plate { background: var(--plate); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--r2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 26px 50px -26px #000; }
.plate-head { display: flex; justify-content: space-between; align-items: center; height: 36px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }

/* buttons, fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 22px; border-radius: var(--r2); font: 400 23px/1 var(--f-d); letter-spacing: .05em; text-transform: uppercase; transition: transform .14s var(--ease), filter .14s, border-color .14s, color .14s, background .14s; }
.btn-go, .btn-ink { color: var(--acc-ink); background: linear-gradient(180deg, #b4e3ff 0%, #6cc5ff 46%, #43aaf0 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -3px 0 rgba(4, 40, 70, .25), 0 10px 30px -8px rgba(76, 176, 255, .7); }
.btn-go:hover, .btn-ink:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-go:active, .btn-ink:active { transform: translateY(1px); filter: brightness(.96); }
.btn-go kbd, .btn-ink kbd { background: rgba(4, 18, 29, .14); border-color: rgba(4, 18, 29, .28); color: var(--acc-ink); }
.btn-line { border: 1px solid var(--line2); color: var(--ink2); background: rgba(255, 255, 255, .03); }
.btn-line:hover { border-color: var(--ink2); color: var(--ink); }
.field { display: grid; gap: 7px; min-width: 0; }
.field input:not([type=range]) { width: 100%; height: 46px; padding: 0 13px; border-radius: var(--r1); background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); color: var(--ink); font: 500 15px/1 var(--f-t); outline: 0; transition: border-color .14s, background .14s, box-shadow .14s; }
.field input.mono { font: 400 12.5px/1 var(--f-m); }
.field input::placeholder { color: var(--ink3); }
.field input:not([type=range]):focus { border-color: var(--acc); background: rgba(108, 197, 255, .08); box-shadow: 0 0 0 3px rgba(108, 197, 255, .18); }
.field input.is-bad { border-color: var(--down); box-shadow: 0 0 0 3px rgba(255, 93, 79, .2); }
.field input[type=range] { width: 100%; accent-color: var(--acc); }
.hint { font-size: 12.5px; line-height: 1.4; color: var(--ink3); min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hint.is-bad { color: var(--down); font-weight: 600; }
.acct { display: flex; align-items: center; gap: 14px; height: 20px; font-size: 13px; color: var(--ink3); white-space: nowrap; overflow: hidden; }
.acct > span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.acct .link { flex: none; }
.acct b { color: var(--ink); font-weight: 700; }
.link { color: var(--acc); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--acc-hi); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink2); }
.check input { width: 16px; height: 16px; accent-color: var(--acc); }
.sw { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); }

/* the top bar */
.top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 76px; display: flex; align-items: center; gap: 30px; padding: 0 var(--pad); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; flex: none; align-items: center; gap: 12px; font: 400 34px/1 var(--f-d); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.mark { display: block; width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 24px rgba(108, 197, 255, .35); }
.top-links { display: flex; flex: none; gap: 24px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.top-links a, .top-link { color: var(--ink2); font-size: 14px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); transition: color .14s; }
.top-links a:hover, .top-link:hover { color: var(--ink); }
.top-side { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tick { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line2); font: 700 12.5px/1 var(--f-m); color: var(--acc); white-space: nowrap; }
.tick-ca { width: 150px; justify-content: center; color: var(--ink); overflow: hidden; }
.tick-ca span { color: var(--ink3); }
.tick-ca b { font-weight: 400; }
.tick-ca:hover { border-color: var(--acc); }
.live { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; color: var(--ink2); white-space: nowrap; }
.live b { flex: none; width: 34px; color: var(--ink); font: 400 19px/1 var(--f-d); letter-spacing: .02em; text-align: right; overflow: hidden; }
body.is-playing .top { display: none; }

/* the landing */
.art { position: fixed; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(6, 8, 13, .86) 0%, rgba(6, 8, 13, .62) 24%, rgba(6, 8, 13, 0) 46%, rgba(6, 8, 13, 0) 66%, rgba(6, 8, 13, .5) 100%), linear-gradient(180deg, rgba(6, 8, 13, .6) 0%, rgba(6, 8, 13, 0) 20%, rgba(6, 8, 13, 0) 62%, rgba(6, 8, 13, .9) 100%), url(/img/hero.jpg) 50% 42% / cover no-repeat, var(--bg); animation: fade .8s both; }
.title { display: block; }
.hero { position: fixed; z-index: 3; left: var(--pad); top: 76px; bottom: var(--strip); width: min(520px, 34vw); display: grid; align-content: center; gap: clamp(12px, 1.9vh, 20px); pointer-events: none; animation: rise .7s var(--ease) both; }
.hero > * { pointer-events: auto; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 11.5px/1 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); text-shadow: 0 1px 10px rgba(0, 0, 0, .8); white-space: nowrap; }
.h1 { display: flex; flex-direction: column; font: 400 min(calc(6.2vw - 6px), 13vh, 124px)/.9 var(--f-d); letter-spacing: .005em; text-transform: uppercase; color: #fff; text-shadow: 0 6px 34px rgba(0, 0, 0, .65); white-space: nowrap; }
.h1 em { font-style: normal; color: var(--acc); text-shadow: 0 0 44px rgba(108, 197, 255, .55), 0 6px 34px rgba(0, 0, 0, .6); }
.lead { max-width: 44ch; font-size: clamp(15px, 1.75vh, 17px); line-height: 1.5; color: #dbe3ee; text-shadow: 0 1px 12px rgba(0, 0, 0, .85); }
.play { display: grid; gap: 12px; padding: 18px; margin-top: 4px; }
.play-fields { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 10px; }
.play .btn { width: 100%; }
.stage { position: fixed; z-index: 3; right: var(--pad); top: var(--st); width: var(--sw); display: grid; gap: 12px; pointer-events: none; animation: rise .7s .1s var(--ease) both; }
.stage > * { pointer-events: auto; }
.screen { position: relative; height: var(--sh); border-radius: var(--r3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 0 60px rgba(4, 6, 10, .35), 0 0 0 1px rgba(0, 0, 0, .7), 0 30px 70px -20px #000, 0 0 60px -10px rgba(108, 197, 255, .28); overflow: hidden; pointer-events: none; }
.screen-tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 99px; background: rgba(6, 8, 13, .8); border: 1px solid var(--line2); font: 700 10.5px/1 var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.screen-tag .dot { width: 7px; height: 7px; background: #ff5d4f; box-shadow: none; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.wire { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: linear-gradient(180deg, rgba(6, 8, 13, 0), rgba(6, 8, 13, .92) 60%); overflow: hidden; }
.wire li { position: absolute; left: 0; right: 0; bottom: 0; display: none; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; height: 28px; padding: 0 12px; font-size: 12.5px; color: var(--ink2); }
.wire li:first-child { display: grid; animation: slidein .35s var(--ease) both; }
.wire li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wire li i { font: 400 10.5px/1 var(--f-m); font-style: normal; color: var(--ink3); text-align: right; }
.wire li b { color: var(--ink); font-weight: 600; }
.wire li em { font-style: normal; color: var(--acc); font: 400 12px/1 var(--f-m); }
@keyframes slidein { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.board { overflow: hidden; }
.board-head { display: flex; justify-content: space-between; align-items: center; height: 36px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.top-crowd { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; height: 78px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.top-n { width: 98px; font: 400 60px/78px var(--f-d); letter-spacing: .01em; color: var(--acc); text-shadow: 0 0 22px rgba(108, 197, 255, .45); white-space: nowrap; overflow: hidden; }
.top-who { display: grid; grid-template-columns: 12px minmax(0, 1fr); grid-template-rows: 20px 16px; align-items: center; column-gap: 8px; row-gap: 3px; min-width: 0; }
.top-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 15px; color: var(--ink); }
.top-who i { grid-column: 2; font: 400 12px/1 var(--f-m); font-style: normal; color: var(--acc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows { padding: 6px 0; }
.rows li { display: grid; grid-template-columns: 22px 12px minmax(0, 1fr) 44px 70px; align-items: center; gap: 8px; height: 29px; padding: 0 16px; font-size: 13px; }
.rows li.is-me { background: rgba(108, 197, 255, .12); box-shadow: inset 3px 0 0 var(--acc); }
.rows li.is-gap { border-top: 1px dashed var(--line2); }
.rows .rk { font: 700 11px/1 var(--f-m); color: var(--ink3); text-align: right; }
.rows .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 500; }
.rows .pc { font: 400 19px/1 var(--f-d); letter-spacing: .02em; text-align: right; color: var(--ink); }
.rows .cy { font: 400 11.5px/1 var(--f-m); text-align: right; color: var(--acc); white-space: nowrap; }
.strip { position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; height: var(--strip); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0 calc(var(--pad) - 18px); background: linear-gradient(180deg, rgba(6, 8, 13, .55), rgba(6, 8, 13, .93)); border-top: 1px solid var(--line); }
.strip .cell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 11px 26px 14px; align-content: center; row-gap: 5px; padding: 0 18px; min-width: 0; overflow: hidden; }
.strip .cell + .cell { border-left: 1px solid var(--line); }
.strip .cell .lab { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; }
.strip .cell b { font: 400 26px/1 var(--f-d); letter-spacing: .03em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .cell i { font-style: normal; font-size: 11.5px; line-height: 14px; margin-top: -3px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .cell-top b { color: var(--acc); text-shadow: 0 0 18px rgba(108, 197, 255, .4); }

/* in game: a stadium scoreboard. Fixed slots, nothing moves */
.hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.hud > * { pointer-events: auto; position: absolute; }
.count { top: 16px; left: 16px; width: 322px; height: 212px; display: grid; grid-template-rows: 16px 100px 28px 24px; row-gap: 6px; padding: 14px 16px 12px; }
.count-head { display: flex; justify-content: space-between; align-items: center; }
.count-head .lab { color: var(--ink2); }
.count-rank { width: 150px; font: 700 12px/1 var(--f-m); color: var(--ink); white-space: nowrap; text-align: right; overflow: hidden; text-overflow: ellipsis; }
.count-big { display: grid; grid-template-columns: 196px minmax(0, 1fr); align-items: end; }
.count-n { display: block; font: 400 112px/100px var(--f-d); letter-spacing: .01em; color: var(--ink); white-space: nowrap; transform-origin: 0 85%; text-shadow: 0 0 26px rgba(108, 197, 255, .35); }
.count-n.is-bump { animation: bump .32s var(--pop); color: #ffffff; }
.count-n.is-hit { animation: hit .42s var(--ease); color: var(--down); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes hit { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.count-plus { align-self: center; justify-self: stretch; min-width: 0; overflow: hidden; font: 400 34px/1 var(--f-d); font-style: normal; color: var(--acc); white-space: nowrap; opacity: 0; transition: opacity .5s; }
.count-plus.is-on { opacity: 1; transition: none; }
.count-plus.is-neg { color: var(--down); }
.count-worth { display: grid; grid-template-columns: auto auto 30px minmax(0, 1fr); align-items: baseline; gap: 8px; padding-top: 4px; border-top: 2px solid rgba(255, 255, 255, .07); }
.count-worth .lab { color: var(--ink3); }
.count-worth b { font: 700 21px/1 var(--f-m); color: var(--acc); white-space: nowrap; }
.count-worth em { font: 700 10px/1 var(--f-m); font-style: normal; color: var(--ink3); }
.count-worth i { font: 400 11px/1 var(--f-m); font-style: normal; color: var(--ink3); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count-bar { display: grid; grid-template-columns: minmax(0, 1fr) 118px; align-items: center; gap: 10px; }
.bar { display: block; height: 8px; border-radius: 1px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acc-deep), var(--acc)); transition: width .3s var(--ease); }
.count-to { font: 400 11px/1 var(--f-m); color: var(--ink3); white-space: nowrap; text-align: right; overflow: hidden; text-overflow: ellipsis; }
.lb { top: 16px; right: 16px; width: 316px; }
.lb .rows li { height: 26px; }
.lb-next { height: 34px; padding: 0 14px; display: flex; align-items: center; border-top: 2px solid rgba(255, 255, 255, .07); font: 400 12px/1 var(--f-m); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-next b { color: var(--acc); font-weight: 700; margin-right: 6px; }
.moment { --mw: clamp(300px, calc(100vw - 720px), 600px); top: 26px; left: calc(50vw - var(--mw) / 2); width: var(--mw); height: 92px; display: grid; place-items: center; align-content: center; gap: 6px; pointer-events: none; opacity: 0; visibility: hidden; }
.moment.is-on { visibility: visible; animation: moment 2.4s var(--ease) both; }
@keyframes moment { 0% { opacity: 0; transform: scale(1.35); } 12% { opacity: 1; transform: scale(1); } 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.98); } }
.moment-big { font: 400 58px/1 var(--f-d); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); text-shadow: 0 2px 0 #000, 0 0 30px rgba(108, 197, 255, .55); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.moment-sub { padding: 6px 14px; border-radius: 99px; background: var(--glass2); border: 1px solid rgba(108, 197, 255, .6); color: var(--ink); font: 600 14px/1 var(--f-t); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.moment.is-down .moment-big { color: var(--down); text-shadow: 0 2px 0 #000, 0 0 30px rgba(255, 93, 79, .5); }
.moment.is-down .moment-sub { border-color: rgba(255, 93, 79, .7); }
.feed { left: 16px; bottom: 104px; width: 340px; height: 152px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; pointer-events: none; }
.feed li { align-self: flex-start; max-width: 100%; height: 26px; padding: 0 11px; border-radius: 99px; background: var(--glass2); border: 1px solid var(--line); color: var(--ink2); font-size: 12.5px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: slidein .3s var(--ease) both; }
.feed li b { color: var(--ink); font-weight: 700; }
.feed li em { font-style: normal; color: var(--acc); font: 700 11.5px/1 var(--f-m); }
.mini { right: 16px; bottom: 16px; width: 184px; height: 184px; padding: 7px; }
.mini canvas { display: block; width: 168px; height: 168px; border-radius: var(--r1); }
.cash { --cw: clamp(280px, calc(100vw - 440px), 620px); left: calc(50vw - var(--cw) / 2); bottom: 20px; width: var(--cw); height: 72px; display: grid; grid-template-columns: 72px minmax(0, 1fr); overflow: hidden; }
.cash-clock { display: grid; place-items: center; align-content: center; gap: 1px; border-right: 2px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .03); }
.cash-clock b { font: 400 34px/1 var(--f-d); color: var(--ink3); }
.cash-clock i { font: 700 9px/1 var(--f-m); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.cash-body { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 10px; padding: 0 16px; min-width: 0; overflow: hidden; }
.cash-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 22px; font-size: 13.5px; color: var(--ink2); white-space: nowrap; }
.cash-row span { display: block; flex: 1; min-width: 0; height: 22px; line-height: 22px; overflow: hidden; text-overflow: ellipsis; }
.cash-row span b { color: var(--ink); }
.cash-row span i { font-style: normal; color: var(--down); font-weight: 700; }
.cash-row > b { flex: none; width: 104px; text-align: right; font: 700 15px/1 var(--f-m); color: var(--acc); }
.cash-bar { height: 8px; border-radius: 1px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.cash-bar i { display: block; height: 100%; width: 0; background: var(--acc); }
.cash.is-on { border-color: rgba(108, 197, 255, .7); box-shadow: 0 0 0 4px rgba(108, 197, 255, .14), 0 26px 50px -26px #000; }
.cash.is-on .cash-clock { background: var(--acc); }
.cash.is-on .cash-clock b, .cash.is-on .cash-clock i { color: var(--acc-ink); }
.cash.is-on .cash-row { color: var(--ink); }
.cash.is-hit { border-color: rgba(255, 93, 79, .75); box-shadow: 0 0 0 4px rgba(255, 93, 79, .16), 0 26px 50px -26px #000; }
.cash.is-hit .cash-clock { background: var(--down); }
.cash.is-hit .cash-bar i { background: var(--down); }
.cash.is-wait .cash-row { color: var(--ink); }
.touch-cash { display: none; right: 16px; bottom: 214px; height: 46px; font-size: 18px; color: var(--acc-ink); background: linear-gradient(180deg, #b4e3ff 0%, #6cc5ff 46%, #43aaf0 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 10px 30px -8px rgba(76, 176, 255, .7); }
.hud-menu { left: 16px; top: 238px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: var(--r1); background: rgba(7, 9, 13, .86); border: 1px solid var(--line); font: 700 11px/1 var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.hud-menu:hover { color: var(--ink); border-color: var(--line2); }

.toast { position: fixed; z-index: 60; top: 128px; left: 50%; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); padding: 11px 18px; border-radius: 99px; background: var(--glass2); border: 1px solid var(--line2); color: var(--ink); font-size: 14px; text-align: center; box-shadow: 0 20px 40px -20px #000; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.toast.is-hidden { opacity: 0; transform: translate(-50%, -6px); }
.toast.is-bad { border-color: rgba(255, 93, 79, .7); }
.toast.is-good { border-color: rgba(108, 197, 255, .7); }
.toast b { font-weight: 700; }
.toast em { font-style: normal; color: var(--acc); font-family: var(--f-m); }

/* sheets: smoked glass, the amount and the verdict in the big face */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(4, 6, 9, .72); animation: fade .2s both; }
.sheet { width: min(480px, calc(100vw - 32px)); padding: 28px; display: grid; gap: 16px; border-radius: 20px; background: linear-gradient(180deg, #151b26, #0c1017); border: 1px solid var(--line2); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 80px -30px #000, 0 0 80px -20px rgba(108, 197, 255, .25); animation: drop .35s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.sheet-wide { width: min(600px, calc(100vw - 32px)); }
.stamp { display: inline-flex; align-items: center; gap: 9px; justify-self: start; font: 700 11px/1 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); white-space: nowrap; }
.stamp-down { color: var(--down); }
.h2 { font: 400 54px/.95 var(--f-d); letter-spacing: .01em; text-transform: uppercase; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2.amount { display: flex; align-items: baseline; gap: 12px; }
.h2.amount b { font: 400 80px/.95 var(--f-d); color: var(--acc); text-shadow: 0 0 40px rgba(108, 197, 255, .5); }
.h2.amount em { font: 700 16px/1 var(--f-m); font-style: normal; letter-spacing: .08em; color: var(--ink2); }
.sub { font-size: 14.5px; line-height: 1.5; color: var(--ink2); min-height: 22px; }
.sub b { color: var(--ink); font-weight: 700; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r2); background: rgba(255, 255, 255, .03); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 .cell { display: grid; gap: 8px; padding: 13px 12px; min-width: 0; }
.grid4 .cell + .cell { border-left: 1px solid var(--line); }
.grid4 .cell .lab { font-size: 9.5px; letter-spacing: .05em; }
.grid4 .cell b { font: 400 26px/1 var(--f-d); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; margin-top: 4px; }
.row-btns .btn { padding: 0 14px; font-size: 19px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.step { height: 32px; display: grid; place-items: center; border-radius: var(--r1); border: 1px solid var(--line); font: 700 10.5px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.step.is-on { color: var(--acc-ink); background: var(--acc); border-color: var(--acc); }
.step.is-bad { color: #fff; background: var(--down); border-color: var(--down); }
.txlink { font-size: 13px; font-weight: 600; color: var(--acc); text-decoration: underline; text-underline-offset: 3px; height: 20px; }
.how { display: grid; border-top: 1px solid var(--line); }
.how li { display: grid; grid-template-columns: 30px 96px minmax(0, 1fr); align-items: baseline; gap: 6px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink2); }
.how li > i { font: 700 11px/1 var(--f-m); font-style: normal; color: var(--acc); }
.how li b { font: 400 21px/1.1 var(--f-d); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.how kbd { margin: 0 1px; }

/* docs and ledger pages */
body.is-page { overflow: auto; background: radial-gradient(1200px 600px at 70% -10%, rgba(108, 197, 255, .1), rgba(8, 10, 16, 0)), var(--bg); }
.nav { position: sticky; z-index: 30; top: 0; height: 68px; display: flex; align-items: center; gap: 28px; padding: 0 40px; background: rgba(8, 10, 16, .94); border-bottom: 1px solid var(--line); }
.nav .brand { font-size: 28px; }
.nav .mark { width: 32px; height: 32px; }
.nav-links { display: flex; flex: none; gap: 22px; font-size: 14px; white-space: nowrap; }
.nav-links a { color: var(--ink2); transition: color .14s; }
.nav-links a:hover { color: var(--ink); }
.nav-side { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line2); color: var(--acc); font: 700 12.5px/1 var(--f-m); }
.btn-small { height: 38px; padding: 0 18px; font-size: 17px; color: var(--acc-ink); background: linear-gradient(180deg, #b4e3ff 0%, #6cc5ff 46%, #43aaf0 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 8px 24px -8px rgba(76, 176, 255, .7); }
.page { position: relative; z-index: 5; width: min(920px, calc(100vw - 48px)); margin: 0 auto; padding: 40px 0 80px; display: grid; gap: 52px; }
.page-head { display: grid; gap: 18px; padding: 40px 40px 38px; border-radius: 24px; border: 1px solid var(--line2); background: linear-gradient(90deg, rgba(6, 8, 13, .92) 0%, rgba(6, 8, 13, .7) 46%, rgba(6, 8, 13, .15) 100%), url(/img/hero-960.jpg) 80% 40% / cover no-repeat; box-shadow: 0 40px 80px -40px #000; }
.page-head .h1 { font-size: clamp(48px, 6.4vw, 88px); white-space: normal; }
.page-head .h1 em { white-space: nowrap; }
.page-head .lead { max-width: 56ch; font-size: 16px; }
.sec { display: grid; gap: 18px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); }
.sec-head h2 { font: 400 34px/1 var(--f-d); letter-spacing: .02em; text-transform: uppercase; margin: 0; }
.sec p { color: var(--ink2); max-width: 70ch; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; }
.tiles .cell { display: grid; gap: 10px; padding: 18px 16px; min-width: 0; }
.tiles .cell + .cell { border-left: 1px solid rgba(255, 255, 255, .08); }
.tiles .cell b { font: 400 30px/1 var(--f-d); letter-spacing: .02em; color: var(--acc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles .cell i { font-style: normal; font-size: 12px; color: var(--ink3); }
.rules { display: grid; border-top: 1px solid var(--line2); }
.rules li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink2); }
.rules li > b { font: 400 19px/1.2 var(--f-d); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.rules li span b { color: var(--ink); font-weight: 700; }
.table { overflow: hidden; }
.table .tr { display: grid; grid-template-columns: 96px 150px minmax(0, 1fr) 130px 110px; align-items: center; gap: 12px; height: 40px; padding: 0 18px; font-size: 13.5px; border-top: 1px solid rgba(255, 255, 255, .06); }
.table .tr:first-child { border-top: 0; height: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.table .tr4 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
#worth { margin-top: 4px; }
.table .tr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.table .tr .amt { text-align: right; color: var(--ink); }
.table .tr .amt.is-in { color: var(--acc); }
.table .tr a { color: var(--acc); font-family: var(--f-m); font-size: 12px; text-align: right; }
.table .empty { padding: 26px 18px; color: var(--ink3); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line2); font-size: 12.5px; color: var(--ink3); }
.foot a { color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; }

/* screens */
@media (max-height: 800px) { :root { --st: 84px; --strip: 68px; } .hero .lead { display: none; } .strip .cell { grid-template-rows: 11px 22px 13px; row-gap: 4px; } .strip .cell b { font-size: 22px; } }
@media (max-width: 1280px) { :root { --sw: clamp(300px, 27vw, 380px); } .top-links { gap: 16px; } .strip .cell { padding: 0 12px; } }
@media (max-width: 1100px) { .stage { display: none; } #game { display: none; } body.is-playing #game { display: block; } .lb { display: none; } .moment { --mw: clamp(280px, calc(100vw - 260px), 600px); top: 244px; } .hero { width: min(520px, 60vw); } }
@media (max-width: 820px) {
  :root { --pad: 18px; }
  .top { position: absolute; height: 62px; } .top-links { display: none; } .tick-ca { display: none; } .live > span { display: none; } .brand { font-size: 28px; } .mark { width: 32px; height: 32px; }
  body:not(.is-playing):not(.is-page) { overflow-y: auto; }
  .art { position: absolute; inset: 0 0 auto 0; height: 58vh; background: linear-gradient(180deg, rgba(6, 8, 13, .5) 0%, rgba(6, 8, 13, 0) 24%, rgba(6, 8, 13, 0) 60%, var(--bg) 100%), url(/img/hero-960.jpg) 50% 30% / cover no-repeat; }
  .hero { position: relative; left: auto; top: auto; bottom: auto; width: auto; margin: 40vh var(--pad) 0; }
  .h1 { font-size: clamp(54px, 17vw, 84px); }
  .hero .lead { display: block; font-size: 15px; }
  .play-fields { grid-template-columns: 1fr; }
  .strip { position: relative; height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; padding: 6px 0; background: var(--s1); }
  .strip .cell { padding: 12px 18px; } .strip .cell:nth-child(odd) { border-left: 0; } .strip .cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .count { top: 8px; left: 8px; width: calc(100vw - 140px); max-width: 230px; height: 136px; grid-template-rows: 14px 62px 24px; row-gap: 4px; padding: 10px 12px; }
  .count-big { grid-template-columns: minmax(0, 1fr) 70px; }
  .count-n { font-size: 70px; line-height: 62px; }
  .count-plus { font-size: 24px; }
  .count-worth { grid-template-columns: auto 26px minmax(0, 1fr); } .count-worth .lab { display: none; } .count-worth b { font-size: 17px; }
  .count-bar { display: none; }
  .mini { top: 8px; right: 8px; bottom: auto; width: 112px; height: 112px; padding: 5px; } .mini canvas { width: 100px; height: 100px; }
  .hud-menu { left: auto; right: 8px; top: 128px; }
  .moment { --mw: calc(100vw - 32px); top: 168px; height: 74px; } .moment-big { font-size: 40px; } .moment-sub { font-size: 12.5px; }
  .feed { display: none; }
  .cash { --cw: calc(100vw - 16px); bottom: 10px; height: 64px; grid-template-columns: 60px minmax(0, 1fr); }
  .cash-body { padding: 0 12px; } .cash-row { font-size: 12.5px; gap: 8px; } .cash-row > b { width: 84px; font-size: 13px; }
  .toast { top: 236px; border-radius: 16px; }
  .h2 { font-size: 42px; } .h2.amount b { font-size: 60px; }
  .grid4, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4 .cell:nth-child(3) { border-left: 0; } .grid4 .cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .rules li, .how li { grid-template-columns: 1fr; }
  .sheet { padding: 20px 18px 22px; gap: 12px; } .how li { padding: 9px 2px; gap: 2px; font-size: 13px; line-height: 1.4; } .how li b { font-size: 18px; }
  .how li > i { display: none; }
  .nav { padding: 0 16px; gap: 14px; } .nav-links { display: none; }
  .page { width: calc(100vw - 32px); padding-top: 24px; }
  .page-head { padding: 26px 20px; }
  .tiles .cell:nth-child(odd) { border-left: 0; }
  .table .tr { grid-template-columns: 70px minmax(0, 1fr) 96px; } .table .tr span:nth-child(2), .table .tr :nth-child(5) { display: none; }
}
@media (pointer: coarse) { .touch-cash { display: inline-flex; right: 8px; bottom: 86px; } .hud-menu kbd { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
