:root {
  --bg: #0a0d12;
  --panel: #11161e;
  --panel-2: #161d27;
  --line: #222c3a;
  --ink: #e8edf5;
  --ink-dim: #93a1b5;
  --hot: #ffb028;
  --hot-2: #e0622c;
  --danger: #c9455a;
  --radius: 10px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-color: #3a4657; text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--hot); }
code { font-family: var(--mono); font-size: 0.9em; color: var(--hot); }
h1, h2 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 1.9rem; margin: 0 0 .4rem; }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
main { min-height: 60vh; }

/* ---------- chrome ---------- */
.topbar {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--panel);
  position: sticky; top: 0; z-index: 20;
}
.wordmark { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; text-decoration: none; }
.topbar .tagline { color: var(--ink-dim); font-size: .85rem; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar nav a { font-size: .9rem; text-decoration: none; color: var(--ink-dim); }
.topbar nav a:hover { color: var(--ink); }
.stat { font-size: .82rem; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.stat b { color: var(--ink); font-weight: 600; }

/* ---------- market strip ---------- */
/* Four figures and a ticker, in the header where they are unavoidable. */
.market {
  display: flex; align-items: center; align-self: center; gap: 8px; flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel-2); font-size: .78rem; line-height: 1.2;
}
.chip b { font-size: .95rem; font-weight: 650; letter-spacing: -0.01em; }
.chip i { font-style: normal; color: var(--ink-dim); }
.ticker {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel-2); font-size: .78rem; color: var(--ink-dim);
  letter-spacing: .04em; max-width: 42ch;
}
.ticker .ticker-line {
  color: var(--ink); letter-spacing: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.ticker .ticker-line b { font-weight: 500; animation: ticker-in .35s ease both; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #35d07f;
  box-shadow: 0 0 0 0 rgba(53,208,127,.6); animation: live-pulse 2.4s ease-out infinite;
}
@keyframes live-pulse {
  70% { box-shadow: 0 0 0 7px rgba(53,208,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,208,127,0); }
}
@keyframes ticker-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .live-dot, .ticker .ticker-line b { animation: none; }
}
@media (max-width: 900px) { .topbar .tagline { display: none; } }
.cta {
  background: var(--hot); color: #17110a !important; font-weight: 650; border: 0;
  padding: 8px 14px; border-radius: 8px; text-decoration: none; cursor: pointer;
  font-size: .9rem; font-family: inherit;
}
.cta:hover { background: #ffc457; }
.cta.big { display: inline-block; padding: 12px 22px; font-size: 1rem; }
footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 20px 40px; margin-top: 40px; border-top: 1px solid var(--line);
  color: var(--ink-dim); font-size: .82rem;
}

/* ---------- board ---------- */
/* A deliberate game board, not a stretched spreadsheet: capped and centred,
   so an ultrawide monitor does not turn the empty field into the subject. */
.board-wrap { position: relative; padding: 12px; max-width: 1460px; margin: 0 auto; }
/* Board + inspector. The panel is what turns looking into buying: without it
   every click on this page left the site to an advertiser. */
.board-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 4px; max-width: 1790px; margin: 0 auto; align-items: start;
}
/* min-width:0 on both tracks or the SVG's intrinsic 1600px width becomes the
   column's min-content size and blows the page out sideways. */
.board-stage .board-wrap { margin: 0; min-width: 0; }
/* The whole board has to be visible without scrolling — a treemap you have to
   scroll is not a treemap. The SVG keeps its 16:9 viewBox and is bounded by the
   viewport minus the header and the line under it; preserveAspectRatio letterboxes
   whatever is left over. svh rather than vh so a mobile URL bar cannot clip it. */
.board-svg {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  max-height: calc(100vh - var(--chrome));
  max-height: calc(100svh - var(--chrome));
}
/* Header + audience row + pitch. Grew when the market strip landed in the
   header; on narrow screens the strip wraps onto its own line or two. */
:root { --chrome: 182px; }
@media (max-width: 1180px) { :root { --chrome: 222px; } }
@media (max-width: 700px) { :root { --chrome: 300px; } }
.board-svg a.tile { cursor: pointer; }
.board-svg a.tile rect:first-of-type { transition: filter .12s ease; }
.board-svg a.tile:hover rect:first-of-type { filter: brightness(1.35); }
.board-svg a.tile:focus-visible rect:first-of-type { filter: brightness(1.5); outline: none; }
.readout {
  position: absolute; pointer-events: none; z-index: 10;
  background: rgba(8,11,15,.94); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; font-size: .82rem; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.readout b { display: block; font-size: .92rem; }
.readout .r-meta { color: var(--ink-dim); font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding: 24px 20px; max-width: 1400px; margin: 0 auto; }
.explain p { color: var(--ink-dim); margin: 0; }
.explain b { color: var(--ink); }
.ramp { display: inline-flex; vertical-align: middle; margin-left: 6px; border-radius: 3px; overflow: hidden; }
.ramp i { width: 14px; height: 12px; display: block; }
.ramp-labels { display: flex; justify-content: space-between; width: 126px; font-size: .7rem; color: #6d7b8e; }
.empty { text-align: center; padding: 40px 20px; }

.ledger, .prose, .form-page, .slot-page, .admin { max-width: 1000px; margin: 0 auto; padding: 24px 20px; }
.ledger { max-width: 1400px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { text-align: left; font-weight: 600; color: var(--ink-dim); font-size: .78rem;
     text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 8px 10px; border-bottom: 1px solid #171f2a; vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-dim); }
.pill { display: inline-block; font-size: .7rem; padding: 1px 7px; border-radius: 99px;
        border: 1px solid var(--line); color: var(--ink-dim); background: var(--panel-2); }
.pill.tier-banner { color: var(--hot); border-color: #4a3a1c; }
.pill.tier-named { color: #e0925c; }
.pill.status-live { color: #63d18b; border-color: #22452f; }
.pill.status-pending_review { color: var(--hot); border-color: #4a3a1c; }
.pill.status-evicted, .pill.status-refunded, .pill.status-rejected { color: var(--danger); border-color: #4a2028; }

/* ---------- forms ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 20px; margin: 16px 0; }
label { display: block; margin-bottom: 16px; font-weight: 600; font-size: .9rem; }
label .opt { font-weight: 400; color: var(--ink-dim); font-size: .8rem; }
input[type=text], input[type=email], input:not([type]) {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit;
  background: #0c1116; border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
}
input:focus { outline: none; border-color: var(--hot); }
label small { display: block; margin-top: 5px; font-weight: 400; color: var(--ink-dim); font-size: .78rem; }
button { font-family: inherit; font-size: .88rem; padding: 8px 14px; border-radius: 8px;
         border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); cursor: pointer; }
button:hover { border-color: #3a4657; }
button.danger { color: var(--danger); border-color: #3a2028; }
.lede { color: var(--ink-dim); font-size: 1.02rem; }
.fineprint { color: var(--ink-dim); font-size: .8rem; }
.error { background: #2a1219; border: 1px solid #4a2028; color: #ff9db0; padding: 10px 14px; border-radius: 8px; }
.notice { background: #1a1710; border: 1px solid #4a3a1c; color: #ffd08a; padding: 10px 14px; border-radius: 8px; }
.flags { color: var(--hot); font-size: .82rem; font-family: var(--mono); }

/* ---------- slot page ---------- */
.slot-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 16px 0; }
.card.metric { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.metric .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); }
.big-number { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.big-number.tier-banner { color: var(--hot); }
.metric .sub, .sub { color: var(--ink-dim); font-size: .82rem; }
.spark { width: 100%; height: 120px; background: #0c1116; border-radius: 8px; margin-top: 8px; }
.spark-axis { display: flex; justify-content: space-between; color: var(--ink-dim); font-size: .74rem; margin-top: 4px; }

/* ---------- admin ---------- */
.review { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.review-main { flex: 1 1 380px; }
.review-main h2 { display: flex; justify-content: space-between; gap: 12px; }
.review-actions { display: flex; flex-direction: column; gap: 12px; min-width: 280px; }
.review-actions form { display: flex; flex-direction: column; gap: 6px;
                       padding: 12px; border-radius: 8px; border: 1px solid var(--line); }
/* The two outcomes are visibly different objects: money kept vs money returned
   is not a decision to make from an ambiguous checkbox. */
.act-approve { background: #101a13; border-color: #23422f !important; }
.act-reject  { background: #1a1012; border-color: #43222a !important; }
.review-actions form small { color: var(--ink-dim); font-size: .74rem; font-weight: 400; }
button.ghost { background: transparent; }
.review-actions input { padding: 7px 10px; background: #0c1116; border: 1px solid var(--line);
                        border-radius: 8px; color: var(--ink); font: inherit; font-size: .85rem; }
.check { font-weight: 400; font-size: .8rem; color: var(--ink-dim); margin: 0; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-actions form { display: flex; gap: 4px; align-items: center; }
.row-actions input { width: 120px; padding: 4px 8px; background: #0c1116; border: 1px solid var(--line);
                     border-radius: 6px; color: var(--ink); font: inherit; font-size: .78rem; }
form.inline { display: inline-block; }

.prose ul { color: var(--ink-dim); }
.prose li { margin-bottom: 6px; }
.prose b { color: var(--ink); }

@media (max-width: 700px) {
  .topbar .tagline { display: none; }
  h1 { font-size: 1.5rem; }
}

/* ---------- tilewars ---------- */
.season-bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--panel);
  font-size: .86rem; color: var(--ink-dim);
}
.season-bar b { color: var(--ink); }
.season-bar .hot { color: var(--hot); font-weight: 650; }
.progress { flex: 1 1 160px; height: 4px; background: #1b2431; border-radius: 99px; overflow: hidden; min-width: 120px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--hot-2), var(--hot)); }
.season-stats { display: flex; gap: 16px; font-variant-numeric: tabular-nums; }
.board-svg.war a.tile:hover rect:first-of-type { filter: brightness(1.45); }
.board-svg.war .faction > rect:first-of-type { transition: filter .12s ease; }
.standings { max-width: 1400px; margin: 0 auto; padding: 24px 20px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px;
          margin-right: 7px; vertical-align: baseline; }
.swatch.big { width: 16px; height: 16px; border-radius: 4px; margin-right: 4px; }
.fight-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
              gap: 0 16px; align-items: start; }
.fight-form button { grid-column: 1 / -1; justify-self: start; }
.join-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px;
             padding-top: 14px; border-top: 1px solid var(--line); }
.join-form input { flex: 1 1 160px; padding: 8px 10px; background: #0c1116;
                   border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; }
.pill.status-removed { color: var(--danger); border-color: #4a2028; }

/* ---------- credits, dashboard ---------- */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pack { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.pack.suggested { border-color: var(--hot); box-shadow: 0 0 0 1px var(--hot) inset; }
.pack .big-number { font-size: 2.1rem; }
.pack button { margin-top: auto; }
.reflink { display: flex; gap: 8px; margin: 10px 0; }
.reflink input { flex: 1; padding: 9px 12px; background: #0c1116; border: 1px solid var(--line);
                 border-radius: 8px; color: var(--hot); font-family: var(--mono); font-size: .85rem; }
.leverage { border-color: #3a3016; background: linear-gradient(180deg, #16130c, var(--panel)); }
.sharecard { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line);
             margin-top: 8px; display: block; }
.topbar nav a.on { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hot); }
.pitch { max-width: 1400px; margin: 0 auto; padding: 14px 20px 0; }
.pitch p { margin: 0; color: var(--ink-dim); font-size: .95rem; }
.pitch b { color: var(--ink); font-weight: 600; }
.board-pitch { display: flex; align-items: center; justify-content: space-between;
               gap: 20px; flex-wrap: wrap; padding: 18px 20px 34px; }
.board-pitch p { font-size: 1.05rem; }
.board-svg a.tile.open rect { transition: fill .12s ease, stroke .12s ease; }
.board-svg a.tile.open:hover rect { fill: #18222e; stroke: var(--hot); stroke-dasharray: none; }
/* normal → hover → just claimed, so the gold ring means something */
.board-svg a.tile:not(.open):hover rect:first-of-type { filter: brightness(1.12); }
.logo-preview { width: 72px; height: 72px; border-radius: 12px; float: right;
                margin: 0 0 8px 12px; background: #0c1116; border: 1px solid var(--line);
                object-fit: contain; }
input[type=file] { display: block; width: 100%; margin-top: 6px; padding: 9px 12px;
                   background: #0c1116; border: 1px dashed var(--line); border-radius: 8px;
                   color: var(--ink-dim); font: inherit; font-size: .85rem; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 5px 12px;
                   border-radius: 6px; border: 1px solid var(--line);
                   background: var(--panel-2); color: var(--ink); font: inherit;
                   font-size: .82rem; cursor: pointer; }

/* ---------- submit preview ---------- */
.preview-box { margin: 4px 0 18px; padding: 14px; border-radius: var(--radius);
               background: #0c1116; border: 1px solid var(--line); }
.preview-box .label { display: block; font-size: .75rem; text-transform: uppercase;
                      letter-spacing: .06em; color: var(--ink-dim); margin-bottom: 8px; }
.preview-box img { display: block; max-width: 100%; height: auto; border-radius: 6px;
                   background: #0a0d12; }
.preview-box img[hidden] { display: none; }
.preview-skeleton { display: flex; align-items: center; justify-content: center;
                    height: 240px; border-radius: 6px; background: #0a0d12;
                    border: 1px dashed var(--line); color: var(--ink-dim);
                    font-size: .8rem; }
.preview-box small { display: block; margin-top: 8px; color: var(--ink-dim);
                     font-size: .78rem; font-weight: 400; }

/* ---------- colour picker ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.swatch-btn { width: 30px; height: 30px; padding: 0; border-radius: 7px;
              border: 1px solid rgba(255,255,255,.14); cursor: pointer; }
.swatch-btn:hover, .swatch-btn[aria-pressed="true"] { border-color: var(--ink);
              box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
.swatches input[type=color] { width: 30px; height: 30px; padding: 0; border-radius: 7px;
              border: 1px solid var(--line); background: #0c1116; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- audience bar ---------- */
.audience { display: flex; gap: 20px; flex-wrap: wrap; max-width: 1400px;
            margin: 0 auto; padding: 10px 20px 0; color: var(--ink-dim);
            font-size: .85rem; font-variant-numeric: tabular-nums; }
.audience b { color: var(--ink); font-weight: 650; }

/* ---------- logo fit controls ---------- */
.logo-fit { margin: -6px 0 16px; padding: 12px 14px; border-radius: var(--radius);
            background: #0c1116; border: 1px solid var(--line); }
.logo-fit .label { display: block; font-size: .75rem; text-transform: uppercase;
                   letter-spacing: .06em; color: var(--ink-dim); margin-bottom: 8px; }
.logo-fit .slider { display: grid; grid-template-columns: 92px 1fr; align-items: center;
                    gap: 10px; margin-bottom: 8px; font-weight: 400; font-size: .8rem;
                    color: var(--ink-dim); }
.logo-fit input[type=range] { width: 100%; accent-color: var(--hot); }

/* ---------- inspector ---------- */
.inspector { padding: 12px 12px 12px 0; font-size: .88rem; }
.ins-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px;
}
.ins-label { display: block; color: var(--ink-dim); font-size: .8rem; }
.ins-price {
  display: block; font-size: 2.1rem; font-weight: 650; letter-spacing: -0.03em;
  line-height: 1.1; margin: 2px 0 6px; font-variant-numeric: tabular-nums;
}
.ins-sub { margin: 0 0 14px; color: var(--ink-dim); line-height: 1.45; }
.cta.block { display: block; text-align: center; padding: 11px 14px; }
.cta.ghost {
  background: transparent; color: var(--ink) !important;
  border: 1px solid var(--line); font-weight: 600;
}
.cta.ghost:hover { background: var(--panel-2); }
.ins-steps {
  margin: 16px 0 0; padding-left: 18px; color: var(--ink-dim);
  font-size: .82rem; line-height: 1.5;
}
.ins-steps li { margin-bottom: 7px; }
.ins-hint { margin: 14px 0 0; color: #6b7a90; font-size: .78rem; }

.ins-head { display: flex; gap: 11px; align-items: center; margin-bottom: 10px; }
.ins-chip {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; background: var(--panel-2);
}
.ins-name { display: block; font-size: 1.05rem; font-weight: 650; letter-spacing: -0.02em; }
.ins-tier { display: block; color: var(--ink-dim); font-size: .76rem; }
.ins-tagline { margin: 0 0 12px; color: var(--ink-dim); line-height: 1.45; }
.ins-figures {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 12px;
  background: var(--line); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden;
}
.ins-figures > div { background: var(--panel-2); padding: 8px 10px; }
.ins-figures dt { color: var(--ink-dim); font-size: .74rem; margin: 0; }
.ins-figures dd {
  margin: 1px 0 0; font-size: 1.05rem; font-weight: 650;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.ins-link {
  display: block; margin: 9px 0 0; text-align: center; color: var(--ink-dim);
  font-size: .82rem; text-decoration: none;
}
.ins-link:hover { color: var(--ink); }
.ins-beat {
  margin: 16px 0 10px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--ink-dim); line-height: 1.45; font-size: .82rem;
}
.ins-beat b { color: var(--hot); font-weight: 650; }

/* Under the fold the panel stops being a sidebar and becomes the pitch. */
@media (max-width: 1080px) {
  .board-stage { grid-template-columns: minmax(0, 1fr); }
  .inspector { padding: 0 12px 12px; }
  .ins-steps, .ins-hint { display: none; }
}

/* ---------- pre-launch curtain ---------- */
body.soon { display: grid; place-items: center; min-height: 100svh; padding: 24px; }
.soon-wrap { width: 100%; max-width: 620px; }
.soon-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 40px 36px;
}
.soon-mark {
  display: block; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em;
  color: var(--ink-dim); margin-bottom: 26px;
}
.soon-card h1 { font-size: 2.1rem; letter-spacing: -0.035em; margin: 0 0 18px; }
.soon-lede { color: var(--ink-dim); font-size: 1.02rem; line-height: 1.6; margin: 0 0 26px; }
.soon-status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 26px;
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--panel-2); font-size: .82rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-dim);
}
.soon-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--hot);
  box-shadow: 0 0 0 0 rgba(255,176,40,.6); animation: live-pulse 2.4s ease-out infinite;
}
.soon-contact { margin: 0; padding-top: 22px; border-top: 1px solid var(--line);
                color: var(--ink-dim); font-size: .92rem; }
.soon-contact a { color: var(--hot); text-decoration-color: rgba(255,176,40,.4); }
@media (max-width: 560px) { .soon-card { padding: 28px 22px; } .soon-card h1 { font-size: 1.6rem; } }
