:root {
  --ink: #14122b;
  --paper: #fff7e6;
  --paper2: #ffeccb;
  --red: #ff3b30;
  --red2: #ff6b5e;
  --gold: #ffc21a;
  --orange: #ff7f22;
  --green: #22c55e;
  --mint: #7dff9a;
  --sky: #3e9bf0;
  --navy: #0b164a;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --px: "Press Start 2P", monospace;
  --head: "Bungee", "Inter", sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; }
body { margin: 0; background: #0b164a; color: var(--ink); font: 16px/1.5 var(--body); overflow-x: hidden; }
body.sky-hot { cursor: pointer; }
#sky { position: fixed; inset: 0; width: 100vw; height: 100vh; image-rendering: pixelated; z-index: 0; }
a { color: inherit; }
b { font-weight: 800; }

/* boot */
.boot { position: fixed; inset: 0; z-index: 90; background: #0b164a; display: grid; place-content: center; gap: 18px; justify-items: center; color: #fff; transition: transform .7s cubic-bezier(.7,0,.3,1); }
.boot img { width: 92px; image-rendering: pixelated; animation: bob 1.2s ease-in-out infinite; }
.boot b { font: 14px var(--px); letter-spacing: 2px; }
.boot i { width: 180px; height: 10px; border: 2px solid #fff; display: block; }
.boot s { display: block; height: 100%; width: 0; background: var(--gold); animation: load 1.6s ease-out forwards; }
.boot.gone { transform: translateY(-105%); }
@keyframes load { to { width: 100%; } }
@keyframes bob { 50% { transform: translateY(8px) rotate(3deg); } }

/* header */
header.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--paper); border-bottom: var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { height: 34px; image-rendering: pixelated; }
.brand span { font: 22px var(--head); letter-spacing: 1px; }
header nav { display: flex; gap: 16px; margin-left: 10px; }
header nav a { font-weight: 600; font-size: 14px; text-decoration: none; }
header nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--gold); }
.hud-mini { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--gold); padding: 7px 10px; font: 10px var(--px); }
.hud-mini span { color: #fff; font-size: 8px; }
.ca { display: flex; gap: 6px; align-items: center; background: #fff; border: 2px solid var(--ink); padding: 6px 8px; font: 9px var(--px); cursor: pointer; }
.ca span { color: #777; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 14px var(--body); text-decoration: none; color: var(--ink); background: #fff; border: var(--line); padding: 9px 14px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; transition: transform .08s, box-shadow .08s; white-space: nowrap; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.buy, .btn.gold { background: var(--gold); }
.btn.big { font-size: 18px; padding: 14px 22px; box-shadow: 5px 5px 0 var(--ink); }
.btn.ghost { background: rgba(255,255,255,.88); }
.btn.small { font-size: 13px; padding: 7px 11px; }
.btn.x { font-family: var(--px); font-size: 11px; }

/* live feed strip */
.strip { position: relative; z-index: 2; }
.strip.feed { position: sticky; top: 58px; z-index: 29; background: var(--ink); color: #fff; border-bottom: 3px solid var(--gold); overflow: hidden; height: 34px; }
.run { display: inline-flex; gap: 34px; white-space: nowrap; padding: 9px 0; font: 10px var(--px); animation: run 70s linear infinite; }
.run span b { color: var(--gold); font-weight: 400; }
.run span.r b { color: var(--red2); }
.run span.d { color: #aaa; }
.run span.g b { color: var(--mint); }
@keyframes run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* hero */
.hero { position: relative; z-index: 1; min-height: calc(100vh - 92px); display: flex; flex-direction: column; justify-content: center; padding: 50px 20px 90px; }
.hero-in { width: min(1180px, 100%); margin: 0 auto; }
.eyebrow { font: 10px/1.6 var(--px); letter-spacing: 1px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.hero .eyebrow { color: #fff; display: inline-flex; background: rgba(11,22,74,.75); border: 2px solid #fff; padding: 7px 10px; }
.dot { width: 9px; height: 9px; background: var(--mint); display: inline-block; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero h1 { font: clamp(40px, 6.3vw, 96px)/.95 var(--head); margin: 0 0 22px; color: #fff; text-shadow: 4px 4px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 6px 8px 0 rgba(11,22,74,.5); }
.hero h1 span { display: block; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { font-size: clamp(17px, 1.6vw, 22px); color: #fff; max-width: 640px; margin: 0 0 26px; text-shadow: 2px 2px 0 var(--ink); background: rgba(11,22,74,.45); padding: 12px 16px; border-left: 5px solid var(--gold); }
.lede b { color: var(--gold); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hud { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 12px; max-width: 1040px; }
.hud .h { background: var(--paper); border: var(--line); box-shadow: 4px 4px 0 var(--ink); padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.hud .h span { font: 8px/1.5 var(--px); color: #6a6380; text-transform: uppercase; }
.hud .h b { font: 26px/1.2 var(--head); margin: 4px 0 2px; }
.hud .h small { font-size: 12px; color: #6a6380; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud .h.next { background: var(--gold); }
.hud .h.next b { font-family: var(--px); font-size: 24px; }
.hud .h.next small, .hud .h.next span { color: var(--ink); }
.hud .h.red b { color: #d71e14; }
.hud .h.green b { color: #11923f; }
.legend { margin-top: 18px; display: flex; gap: 10px 18px; flex-wrap: wrap; font: 9px/1.6 var(--px); color: #fff; }
.legend span { background: rgba(11,22,74,.7); padding: 6px 8px; display: flex; align-items: center; gap: 7px; }
.legend .k { width: 12px; height: 12px; border: 2px solid var(--ink); display: inline-block; }
.k.line { background: var(--orange); } .k.no { background: #eef1f8; } .k.paid { background: var(--gold); }
.legend .time { color: var(--gold); }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font: 10px var(--px); color: #fff; animation: bob 1.4s ease-in-out infinite; text-shadow: 2px 2px 0 var(--ink); }

/* panels */
section.wrap { position: relative; z-index: 2; width: min(980px, calc(100% - 32px)); margin: 0 auto 300px; background: var(--paper); border: var(--line); box-shadow: 8px 8px 0 var(--ink); padding: 34px 36px 38px; }
section.wrap h2 { font: clamp(26px, 3.4vw, 40px)/1.05 var(--head); margin: 0 0 10px; }
section.wrap .sub { font-size: 17px; margin: 0 0 24px; max-width: 700px; color: #3a3550; }
section.wrap .eyebrow { color: #7a1020; }

/* next card */
.next-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; }
.nc-left { background: #fff; border: var(--line); padding: 18px; position: relative; }
.nc-art { position: relative; height: 120px; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #ffe9e6 0 10px, #fff 10px 20px); border: 2px solid var(--ink); margin-bottom: 14px; }
.nc-art img { height: 104px; image-rendering: pixelated; animation: bob 2s ease-in-out infinite; }
.stamp { position: absolute; right: 12px; top: 12px; font: 13px var(--px); color: var(--red); border: 3px solid var(--red); padding: 6px 8px; transform: rotate(-8deg); background: rgba(255,255,255,.85); }
.nc-name b { font: 34px/1 var(--head); display: block; word-break: break-all; }
.nc-name span { font-size: 14px; color: #6a6380; }
.nc-when { font: 9px/1.6 var(--px); color: #7a1020; margin: 6px 0 12px; }
.nc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.nc-stats div { border: 2px solid var(--ink); padding: 6px 8px; background: var(--paper); }
.nc-stats span { display: block; font: 7px var(--px); color: #6a6380; text-transform: uppercase; }
.nc-stats b { font: 17px/1.4 var(--head); }
.nc-stats .red { background: #ffe1dd; } .nc-stats .red b { color: #c0150c; }
.nc-stats .gold { background: #fff0bf; }
.nc-right { display: flex; flex-direction: column; gap: 12px; }
.clock { background: var(--ink); color: var(--gold); padding: 14px; display: flex; justify-content: space-between; align-items: center; border: var(--line); }
.clock span { font: 10px var(--px); color: #fff; }
.clock b { font: 34px var(--px); }
.pot { display: flex; gap: 12px; align-items: center; background: var(--gold); border: var(--line); padding: 10px 14px; }
.pot img { height: 64px; image-rendering: pixelated; }
.pot span { font: 8px var(--px); display: block; }
.pot b { font: 34px/1.1 var(--head); display: block; }
.pot small { font-size: 12px; }
.mini-h { font: 8px var(--px); margin: 6px 0 0; color: #6a6380; text-transform: uppercase; }
.line-list { list-style: none; margin: 0; padding: 0; border: 2px solid var(--ink); background: #fff; }
.line-list li { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center; padding: 7px 10px; border-bottom: 1px dashed #d8cfba; font-size: 13px; }
.line-list li:last-child { border-bottom: 0; }
.line-list i { width: 14px; height: 14px; border: 2px solid var(--ink); background: var(--orange); }
.line-list .a { font-family: var(--px); font-size: 9px; }
.line-list .l { color: #c0150c; font-weight: 700; }
.line-list .g { color: #0d7a33; font-weight: 800; }
.line-list .none { grid-template-columns: 1fr; color: #6a6380; }
.hint { font-size: 13px; color: #3a3550; margin: 0; }

/* check */
.check { display: flex; gap: 10px; }
.check input { flex: 1; min-width: 0; font: 15px var(--body); padding: 13px 14px; border: var(--line); background: #fff; box-shadow: inset 3px 3px 0 rgba(0,0,0,.06); }
.check input:focus { outline: 3px solid var(--gold); }
.report { margin-top: 20px; }
.rep-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rep-top .big { border: var(--line); background: #fff; padding: 12px 14px; }
.rep-top span { font: 8px var(--px); color: #6a6380; display: block; }
.rep-top b { font: 44px/1.1 var(--head); display: block; }
.rep-top small { font-size: 13px; color: #6a6380; }
.rep-top .red b { color: #c0150c; } .rep-top .green b { color: #0d7a33; }
.rep-verdict { margin: 14px 0; padding: 14px 16px; border: var(--line); background: var(--gold); font-weight: 600; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.rep-verdict.ok { background: var(--mint); }
.rep-list { list-style: none; margin: 0; padding: 0; border: 2px solid var(--ink); background: #fff; max-height: 330px; overflow: auto; }
.rep-list li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 8px 12px; border-bottom: 1px dashed #d8cfba; font-size: 14px; }
.rep-list .t { font-family: var(--head); }
.rep-list .w { color: #6a6380; font-size: 12px; }
.rep-list .l { color: #c0150c; font-weight: 800; }
.tag { font: 8px var(--px); padding: 5px 6px; border: 2px solid var(--ink); background: #eee; white-space: nowrap; }
.tag.line { background: var(--orange); color: #fff; } .tag.need { background: #ffe1dd; } .tag.paid { background: var(--gold); } .tag.old { background: #eceaf2; color: #6a6380; } .tag.next { background: var(--ink); color: var(--gold); } .tag.denied { background: #eceaf2; color: #7a1020; } .tag.wait { background: #fff0bf; }

/* how strip */
.strip.how { display: flex; justify-content: center; gap: 0; margin: -90px auto 200px; width: min(1180px, calc(100% - 32px)); flex-wrap: wrap; }
.step { border: var(--line); box-shadow: 6px 6px 0 var(--ink); padding: 14px 20px; display: flex; flex-direction: column; margin: 10px -6px; }
.step b { font: clamp(20px, 2.6vw, 34px)/1 var(--head); }
.step span { font: 9px/1.6 var(--px); margin-top: 6px; }
.step.s1 { background: var(--red); color: #fff; transform: rotate(-3deg); }
.step.s2 { background: var(--paper); transform: rotate(2deg); z-index: 1; }
.step.s3 { background: var(--gold); transform: rotate(-2deg); }

/* desk */
.desk { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.radar-box { background: #071a10; border: var(--line); padding: 10px; color: var(--mint); }
.radar-box canvas { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.radar-cap { font: 8px/1.6 var(--px); text-align: center; margin-top: 8px; }
.radar-cap b { font-weight: 400; color: #fff; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tabs button { font: 9px var(--px); border: 2px solid var(--ink); background: #fff; padding: 7px 9px; cursor: pointer; }
.tabs button.on { background: var(--ink); color: var(--gold); }
.tbl { border: 2px solid var(--ink); background: #fff; max-height: 470px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { position: sticky; top: 0; background: var(--ink); color: #fff; font: 8px var(--px); text-align: left; padding: 9px 8px; white-space: nowrap; }
td { padding: 8px; border-bottom: 1px dashed #d8cfba; white-space: nowrap; }
tr:hover td { background: #fff7d6; }
tr.hl td { background: #ffe9a8; }
tr.nx td { background: #fff3c4; }
td.t { font-family: var(--head); cursor: pointer; }
td .why { display: block; font-size: 11px; color: #7a1020; white-space: normal; }
td.l { color: #c0150c; font-weight: 800; }
td.g { color: #0d7a33; font-weight: 800; }
td a { font-family: var(--px); font-size: 9px; }

/* ledger bars */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 130px; border: 2px solid var(--ink); background: linear-gradient(#fff, #fff7e6); padding: 10px 10px 0; margin-bottom: 14px; }
.bars i { flex: 1; background: var(--gold); border: 2px solid var(--ink); border-bottom: 0; min-height: 4px; position: relative; }
.bars i:last-child { background: var(--orange); }
.bars i:hover::after { content: attr(data-l); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font: 8px var(--px); padding: 5px; white-space: nowrap; }

/* rules */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rule { border: var(--line); background: #fff; padding: 16px 18px; position: relative; }
.rule i { position: absolute; top: -14px; right: 12px; font: normal 12px var(--px); background: var(--gold); border: 2px solid var(--ink); padding: 5px 7px; }
.rule h3 { font: 20px var(--head); margin: 0 0 8px; }
.rule ul { margin: 0; padding-left: 18px; }
.rule li { margin: 4px 0; }
.faq { margin-top: 18px; display: grid; gap: 8px; }
.faq details { border: 2px solid var(--ink); background: #fff; padding: 10px 14px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: 8px 0 2px; }

/* footer = the ground */
footer { position: relative; z-index: 2; margin-top: 380px; padding: 200px 20px 40px; color: #fff; }
.foot-in { width: min(980px, 100%); margin: 0 auto; text-align: center; display: grid; gap: 12px; justify-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.foot-brand img { height: 40px; image-rendering: pixelated; }
.foot-brand b { font: 26px var(--head); }
.foot-brand span { font-size: 15px; color: #d9d4ee; }
.foot-links { display: flex; gap: 16px; }
.foot-ca { font: 9px var(--px); word-break: break-all; color: var(--gold); }
.small { font-size: 12px; color: #a59fc0; max-width: 560px; }

/* tip / toast / boss */
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--paper); border: var(--line); box-shadow: 4px 4px 0 var(--ink); padding: 10px 12px; min-width: 210px; max-width: 280px; font-size: 13px; }
.tip h4 { font: 16px var(--head); margin: 0 0 4px; }
.tip .r { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; }
.tip .r span { color: #6a6380; }
.tip .say { margin-top: 6px; font: 8px/1.6 var(--px); padding: 6px; background: var(--ink); color: var(--gold); }
.tip .say.no { color: #fff; }
.toast { position: fixed; z-index: 70; left: 50%; top: 104px; transform: translateX(-50%); background: var(--ink); color: #fff; border: 3px solid var(--gold); padding: 10px 16px; font: 10px/1.6 var(--px); box-shadow: 5px 5px 0 rgba(0,0,0,.4); max-width: calc(100% - 32px); text-align: center; }
.toast b { color: var(--gold); font-weight: 400; }
.toast.rug { border-color: var(--red); }
.toast.rug b { color: var(--red2); }
.boss { position: fixed; inset: 0; z-index: 80; background: rgba(11,22,74,.72); display: grid; place-items: center; padding: 16px; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.boss-card { width: min(520px, 100%); background: var(--paper); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 22px; text-align: center; position: relative; animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.6) rotate(-4deg); } }
.boss-card h3 { font: 54px/1 var(--head); margin: 0 0 6px; color: var(--orange); text-shadow: 3px 3px 0 var(--ink); }
.boss-card .eyebrow { justify-content: center; color: #7a1020; }
.boss-rug { font: 11px var(--px); margin-bottom: 4px; }
.boss-hero { width: 220px; image-rendering: pixelated; }
.boss-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
.boss-nums div { border: var(--line); background: var(--gold); padding: 8px; }
.boss-nums span { font: 8px var(--px); display: block; }
.boss-nums b { font: 30px var(--head); display: block; }
.boss-big { font-size: 14px; margin: 0 0 14px; }

/* responsive */
@media (max-width: 1260px) { header nav { display: none; } }
@media (max-width: 900px) {
  .hud { grid-template-columns: 1fr 1fr; }
  .hud .h.next { grid-column: 1 / -1; }
  .next-card, .desk, .rules { grid-template-columns: minmax(0, 1fr); }
  .radar-box { max-width: 300px; margin: 0 auto; }
  .ca, .btn.x { display: none !important; }
}
@media (max-width: 600px) {
  header.top { padding: 8px 12px; gap: 8px; }
  .brand span { font-size: 18px; }
  .hud-mini { display: none; }
  .strip.feed { top: 52px; }
  .hero { padding: 36px 16px 80px; }
  section.wrap { padding: 24px 18px 26px; margin-bottom: 160px; box-shadow: 5px 5px 0 var(--ink); }
  .rep-top { grid-template-columns: 1fr; }
  .rep-top b { font-size: 34px; }
  .check { flex-direction: column; }
  .nc-stats { grid-template-columns: repeat(2, 1fr); }
  .rep-list li { grid-template-columns: 1fr auto; }
  .rep-list .w { display: none; }
  .legend .time { display: none; }
  .boss-card h3 { font-size: 40px; }
}
