:root {
  --page-top: #4a1104;
  --page-bot: #c3360d;
  --frame: #070403;
  --text: #f4ede6;
  --dim: #b3a69c;
  --mute: #7d7068;
  --line: rgba(255, 255, 255, .1);
  --line2: rgba(255, 255, 255, .18);
  --orange: #ff7a1a;
  --amber: #ffb547;
  --ok: #7be3a8;
  --err: #ff7b6b;
  --heat: linear-gradient(90deg, #ffcf6b, #ff7a1a 45%, #e8350c);
  --glass: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  --sans: 'Inter', system-ui, sans-serif;
  --tight: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 40px;
  --col: 300px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.55 var(--sans); overflow-x: hidden;
  background: linear-gradient(180deg, var(--page-top) 0%, #6e1a05 28%, #9a280a 62%, var(--page-bot) 100%) fixed;
  padding: 0 24px;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--tight); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* captions on the orange page, like the reference */
.topline { height: 40px; display: grid; place-items: center; font: 500 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 140, 90, .55); }
.foot { height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1360px; margin: 0 auto; padding: 0 6px; font: 500 10.5px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 225, 210, .78); }
.foot a { text-decoration: none; margin-right: 18px; }
.foot a:hover { color: #fff; }
.foot span + span { margin-left: 18px; }
#fPot a { text-decoration: underline; text-underline-offset: 3px; }

/* the one black frame: exactly one screen tall */
.frame {
  position: relative; max-width: 1360px; margin: 0 auto; border-radius: 22px; overflow: hidden; isolation: isolate;
  height: calc(100vh - 84px); height: calc(100dvh - 84px); min-height: 620px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(60% 50% at 50% 56%, rgba(255, 106, 20, .15), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(180, 40, 8, .5), transparent 70%),
    var(--frame);
  box-shadow: 0 40px 80px -30px rgba(40, 6, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* nav */
.nav { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 22px var(--gutter) 0; flex: none; }
.logo { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font: 600 19px/1 var(--tight); letter-spacing: -.02em; justify-self: start; }
.logo b { font-weight: 600; background: linear-gradient(180deg, #ffb13d, #ff7a1a); color: #1a0a03; padding: 6px 11px 7px; border-radius: 99px; }
.logo i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); align-self: flex-start; margin-left: -2px; box-shadow: 0 0 10px var(--orange); }
.navr { display: flex; align-items: center; gap: 10px; justify-self: end; }
.cta { display: inline-flex; align-items: center; justify-content: center; appearance: none; cursor: pointer; text-decoration: none; white-space: nowrap;
  padding: 10px 18px; border-radius: 99px; font-size: 13px; font-weight: 500; color: #ffd9bf; background: rgba(255, 122, 26, .06);
  border: 1px solid rgba(255, 122, 26, .55); box-shadow: inset 0 0 14px rgba(255, 122, 26, .12); transition: background .15s, border-color .15s; }
.cta:hover { background: rgba(255, 122, 26, .16); border-color: var(--orange); }
.cta.solid { background: linear-gradient(180deg, #ffa53a, #ff6a12); color: #1b0900; border-color: transparent; font-weight: 600; }
.badge { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font: 500 11px var(--mono); color: var(--dim); }
.walletwrap { position: relative; }
.wmenu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: #140b07; border: 1px solid var(--line2); border-radius: 14px; padding: 6px; z-index: 30; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
.wmenu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.wmenu button:hover { background: rgba(255, 255, 255, .07); }

/* headline */
.headline { position: relative; z-index: 4; flex: none; text-align: center; margin: clamp(10px, 2.4vh, 28px) auto 0; padding: 0 24px; max-width: 1000px;
  font: 400 clamp(28px, min(4.4vw, 6.4vh), 62px)/1.06 var(--tight); letter-spacing: -.035em; }
.headline .fade { background: linear-gradient(90deg, #a79c94 0%, #d8cfc8 28%, var(--orange) 50%, #ff8a2a 62%, rgba(150, 60, 20, .5) 80%, rgba(80, 30, 10, .15) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

.vortex { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.vortex.bloom { filter: blur(16px) saturate(1.5) brightness(1.35); mix-blend-mode: screen; opacity: .95; z-index: 2; }
.stripes { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 95, 25, .5) 9px 10px),
    radial-gradient(60% 90% at 92% 100%, rgba(255, 100, 20, .9), transparent 70%),
    radial-gradient(45% 70% at 0% 100%, rgba(200, 45, 8, .7), transparent 70%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%); }
.stripes::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 120% at 100% 100%, rgba(255, 120, 30, .55), transparent 60%); mix-blend-mode: screen; }

/* the stage: cards float at the sides, the vortex owns the middle */
.stage { position: relative; z-index: 3; flex: 1; min-height: 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(10px, 2vh, 22px) var(--gutter); pointer-events: none; }
.col { width: var(--col); display: flex; flex-direction: column; gap: 14px; pointer-events: auto; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.ch { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 230, 215, .7); }
.ch b { color: var(--text); font-weight: 500; }
.ch svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.clock .ch svg, .burn .ch svg { stroke: var(--orange); }
.big { font: 300 clamp(30px, 4.6vh, 40px)/1.05 var(--tight); letter-spacing: -.03em; display: flex; align-items: baseline; gap: 6px; }
.big.num { letter-spacing: -.02em; }
.big small { font-size: 15px; font-weight: 500; letter-spacing: 0; opacity: .8; }
.mid { font-size: 17px; line-height: 1.2; }
.card p { margin: 0; font-size: 12px; line-height: 1.45; color: rgba(255, 235, 225, .72); }
.pot { background: linear-gradient(160deg, rgba(255, 140, 50, .62), rgba(150, 34, 6, .55)); border-color: rgba(255, 170, 110, .35); box-shadow: 0 20px 50px -18px rgba(255, 80, 10, .55); }
.pot p { color: rgba(255, 240, 230, .9); }

.row { display: flex; gap: 6px; }
.in { flex: 1; min-width: 0; background: rgba(0, 0, 0, .45); border: 1px solid var(--line2); border-radius: 12px; color: var(--text); padding: 10px 12px; font: inherit; font-size: 14px; outline: none; transition: border-color .15s; }
.in:focus { border-color: var(--orange); }
.in::placeholder { color: var(--mute); }
.chip { appearance: none; cursor: pointer; padding: 9px 13px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); font-size: 12.5px; transition: border-color .15s, background .15s; white-space: nowrap; }
.chip:hover:not(:disabled) { border-color: rgba(255, 255, 255, .35); }
.chip.hot { border-color: rgba(255, 122, 26, .6); color: #ffd3b5; background: rgba(255, 122, 26, .08); }
.chip:disabled, .fire:disabled { opacity: .35; cursor: not-allowed; }
.fire { appearance: none; cursor: pointer; border: 0; width: 100%; padding: 13px; border-radius: 13px; font: 600 16px/1 var(--tight); letter-spacing: -.01em; color: #1d0900;
  background: linear-gradient(180deg, #ffb347, #ff6a12 55%, #e2400b); box-shadow: 0 14px 34px -12px rgba(255, 90, 15, .8), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .08s, filter .15s; }
.fire:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.hint { color: var(--mute); font-size: 12px; }
.hint a { color: var(--dim); }
.status { color: var(--dim); font-size: 12px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.status:empty { display: none; }
.status.err { color: var(--err); }
.status.ok { color: var(--ok); }
.status a { color: var(--text); }

.bars { display: grid; gap: 6px; }
.bars:empty { display: none; }
.brow { display: grid; grid-template-columns: 14px minmax(44px, 84px) 1fr auto; align-items: center; gap: 8px; font: 11px var(--mono); color: var(--dim); }
.brow em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow i { height: 6px; background: rgba(255, 255, 255, .06); border-radius: 6px; overflow: hidden; }
.brow i s { display: block; height: 100%; background: rgba(255, 255, 255, .22); border-radius: 6px; }
.brow.top { color: var(--text); }
.brow.top i s { background: var(--heat); box-shadow: 0 0 12px rgba(255, 110, 20, .6); }
.brow.me em { color: var(--amber); }

/* the dock: token, curve, numbers and cranks in one glass strip */
.dock { position: relative; z-index: 4; flex: none; margin: 0 var(--gutter) clamp(14px, 2.6vh, 26px); padding: 12px 14px 12px 12px;
  display: grid; grid-template-columns: minmax(220px, auto) minmax(160px, 1fr) auto auto; align-items: center; gap: 22px;
  background: rgba(12, 6, 4, .6); border-radius: 18px; }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tok img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; background: rgba(255, 255, 255, .06); flex: none; }
.tokid { min-width: 0; }
.tokname { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.tokname b { font: 500 18px/1.1 var(--tight); letter-spacing: -.02em; }
.tokname span { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.tag { font: 500 9.5px/1 var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; border: 1px solid var(--line2); color: var(--dim) !important; align-self: center; flex: none; }
.tag.grad { border-color: rgba(123, 227, 168, .45); color: var(--ok) !important; }
.ca { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 3px; padding: 0; border: 0; background: none; cursor: copy; font-size: 11px; color: var(--mute); }
.ca span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca i { font: 500 10px var(--sans); font-style: normal; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--dim); }
.ca:hover span { color: var(--dim); }
.prog { min-width: 0; }
.curvebar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.curvebar s { display: block; height: 100%; width: 0; background: var(--heat); border-radius: 4px; transition: width .6s ease; }
.curvetxt { display: flex; justify-content: space-between; gap: 4px 10px; margin-top: 7px; font: 10.5px var(--mono); color: var(--mute); white-space: nowrap; overflow: hidden; }
.curvetxt span:first-child { overflow: hidden; text-overflow: ellipsis; }
.prog.grad .curvebar s { background: var(--ok); }
.stats { display: flex; gap: 20px; }
.stats div { display: flex; flex-direction: column; }
.stats i { font: 500 9.5px/1.4 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.stats b { font-size: 19px; font-weight: 300; letter-spacing: -.02em; line-height: 1.2; }
.acts { display: flex; gap: 6px; align-items: center; }
.acts .cta { padding: 9px 16px; }
.small-only { display: none; }

/* not live yet: a quiet line over the vortex instead of the cards */
.notlive { display: none; position: absolute; z-index: 4; left: 50%; bottom: 15%; transform: translateX(-50%); text-align: center; width: min(520px, 90%); }
.notlive b { display: block; font: 400 26px/1.15 var(--tight); letter-spacing: -.02em; margin-bottom: 6px; }
.notlive span { color: var(--dim); font-size: 14px; }
.pending .notlive { display: block; }
.pending .stage, .pending .dock { visibility: hidden; }

/* past rounds sheet */
.sheet { width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 640px); padding: 20px 22px; border-radius: 18px; color: var(--text);
  background: linear-gradient(160deg, rgba(40, 18, 10, .96), rgba(14, 7, 4, .97)); border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.sheet::backdrop { background: rgba(20, 4, 0, .55); backdrop-filter: blur(4px); }
.sheethd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.label { font: 500 10.5px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.plist { display: grid; }
.prow { display: grid; grid-template-columns: 76px 1fr 104px 120px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--dim); }
.prow b { color: var(--text); font-weight: 400; }
.prow .pay { color: var(--ok); text-align: right; }
.prow .open { text-align: right; }
.prow .open button { background: none; border: 1px solid rgba(255, 122, 26, .55); border-radius: 99px; padding: 4px 11px; cursor: pointer; color: #ffd3b5; font: inherit; }
.empty { color: var(--mute); font-size: 12.5px; padding: 4px 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #140b07; border: 1px solid var(--line2); color: var(--text); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 50; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }

/* narrower desktops: slimmer columns, the dock drops its stats first */
@media (max-width: 1200px) {
  :root { --col: 270px; --gutter: 28px; }
  .dock { grid-template-columns: minmax(200px, auto) minmax(120px, 1fr) auto; }
  .stats { display: none; }
}
/* short screens: tighter cards so the frame still fits */
@media (max-height: 760px) and (min-width: 1024px) {
  .card { padding: 12px 15px; gap: 8px; }
  .card p { display: none; }
  .col { gap: 10px; }
  .fire { padding: 11px; }
  .nav { padding-top: 16px; }
  .badge { width: 36px; height: 36px; }
}
/* tablets and phones: no fixed screen height, everything stacks */
@media (max-width: 1023px) {
  body { padding: 0 10px; }
  .topline { height: 34px; }
  .frame { height: auto; min-height: 0; border-radius: 18px; }
  .nav { grid-template-columns: 1fr auto; padding: 18px 18px 0; }
  .badge { display: none; }
  .headline { margin-top: 18px; font-size: clamp(30px, 9vw, 42px); }
  .headline .fade { background-image: linear-gradient(90deg, #d8cfc8, var(--orange) 65%, #ff9a4a); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .vortex { position: relative; display: block; height: 280px; margin-top: -20px; flex: none; }
  .vortex.bloom { display: none; }
  .stage { flex-direction: column; padding: 0 14px; margin-top: -30px; gap: 12px; }
  .col { width: 100%; gap: 12px; }
  .col.right { order: -1; }
  .dock { grid-template-columns: 1fr; margin: 14px; gap: 14px; }
  .stats { display: flex; justify-content: space-between; }
  .acts { flex-wrap: wrap; }
  .acts .chip, .acts .cta { flex: 1; }
  .notlive { position: relative; left: auto; bottom: auto; transform: none; margin: 0 auto 30px; }
  .pending .stage, .pending .dock { display: none; }
  .stats { display: flex; }
  .foot { height: auto; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 6px 20px; }
}
/* tablets: the two card columns sit side by side under the vortex */
@media (min-width: 640px) and (max-width: 1023px) {
  .stage { flex-direction: row; align-items: stretch; }
  .col { width: auto; flex: 1; }
  .col.right { order: 0; }
  .dock { grid-template-columns: auto 1fr; }
  .dock .prog { grid-column: 2; }
  .dock .stats, .dock .acts { grid-column: 1 / -1; }
}
/* the dock's curve column is narrow up to here: keep the % and drop mcap (it is in the tooltip) */
@media (min-width: 1024px) and (max-width: 1400px) { #curveMcap { display: none; } }
/* below 1024 the nav pill is hidden, so the dock carries the rounds button */
@media (max-width: 1023px) { .small-only { display: inline-flex; justify-content: center; } }
/* phones: one column, in the order you need it: pot, clock, burn, leader */
@media (max-width: 639px) {
  .col { display: contents; }
  .pot { order: 1; } .clock { order: 2; } .burn { order: 3; } .board { order: 4; }
}
/* the live pot: a breathing dot, and a flash when the number goes up */
.livedot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff3e6; margin: 0 2px 1px 4px; vertical-align: middle; box-shadow: 0 0 8px #fff3e6; }
#hPot { transition: color .6s ease, text-shadow .6s ease; }
#hPot.up { color: #fff6d8; text-shadow: 0 0 18px rgba(255, 220, 150, .9); transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .livedot { animation: breathe 1.8s ease-in-out infinite; }
  @keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
}

/* admin (dev wallet only) */
.cta.admin { padding: 10px 16px; color: #ffe1c9; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); box-shadow: none; }
.cta.admin.hot { border-color: var(--orange); background: rgba(255, 122, 26, .2); }
@media (prefers-reduced-motion: no-preference) { .cta.admin.hot { animation: nudge 1.6s ease-in-out infinite; } @keyframes nudge { 50% { box-shadow: 0 0 0 4px rgba(255, 122, 26, .18); } } }
.admin-sheet { width: min(620px, calc(100vw - 32px)); max-height: min(86vh, 760px); }
.astats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 16px; }
.astats div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.astats i { font: 500 9.5px/1.4 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.astats b { font-size: 18px; font-weight: 400; }
.abox { display: flex; flex-direction: column; gap: 12px; }
.abox p { margin: 0; font-size: 14px; color: var(--dim); }
.abox p b { color: var(--text); font-weight: 500; }
.abox code { font: 12.5px var(--mono); color: var(--text); }
.winner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 122, 26, .45); background: rgba(255, 122, 26, .08); }
.winner code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.paste { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.more summary { cursor: pointer; color: var(--mute); font-size: 12.5px; }
.more[open] { display: flex; flex-wrap: wrap; gap: 8px; }
.more[open] summary { width: 100%; }
@media (max-width: 640px) { .astats { grid-template-columns: 1fr; } .navr .cta.admin { padding: 8px 12px; } }
