/* Heist: the platform look. Near-black canvas, grey panels, one brand colour (Heist yellow), Geist type.
   Loads after app.css, launch.css and platform.css and overrides their tokens and the louder bits. */
:root, body, body.t-broadcast {
  --bg: #0e0e10;
  --panel: #18181b;
  --panel-2: #1f1f23;
  --panel-3: #26262c;
  --line: #26262c;
  --line-2: #35353b;
  --text: #efeff1;
  --text-2: #c8c8d0;
  --dim: #9a9aa6;
  --accent: #ffd60a;
  --accent-hover: #ffe24d;
  --on-accent: #0e0e10;
  --accent-dim: rgba(255, 214, 10, .16);
  --live: #eb0400;
  --side-a: #387aff;
  --side-b: #f5009b;
  --top-h: 50px;
  --r: 6px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { font: 400 14px/1.45 var(--font); background: var(--bg); }
body.t-broadcast .row-head h2, body.t-broadcast .rail-head h2, body.t-broadcast .page-title, .page-title, .rail-head h2 {
  font-family: var(--font); text-transform: none; letter-spacing: -.02em;
}
::selection { background: rgba(255, 214, 10, .3); }

/* ---------- top bar ---------- */
.top { height: var(--top-h); gap: 20px; padding: 0 12px 0 14px; background: var(--panel); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9); }
.logo { font: 800 25px/1 var(--font); letter-spacing: -.055em; color: var(--accent); padding: 0 2px 2px; }
.brand:hover .logo { color: var(--accent-hover); }
.topnav { gap: 2px; }
.topnav a { padding: 0 10px; height: var(--top-h); display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--text); }
.topnav a:hover { color: var(--accent); }
.topnav a.on { color: var(--accent); }
.topnav a.on::after { left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--accent); }
.search { max-width: 400px; display: flex; }
.search input { height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--bg); font: 400 14px var(--font); }
.search input:hover { border-color: #4a4a52; }
.search input:focus { border-color: var(--accent); background: var(--bg); box-shadow: inset 0 0 0 1px var(--accent); }
.search button { position: static; flex: none; width: 36px; height: 34px; border-radius: 0 var(--r) var(--r) 0; background: var(--panel-3); pointer-events: auto; }
.search button:hover { background: #35353b; }
.search svg { stroke: var(--text); }
.top-right { gap: 10px; }
.clock { height: 30px; align-items: center; padding: 0 10px; border-radius: var(--r); background: var(--panel-2); font-size: 13px; }
.clock-time { min-width: 0; }
.coin { height: 30px; border: 0; background: var(--panel-2); border-radius: var(--r); }
.coin-lbl { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent); letter-spacing: .06em; }
.shield { width: 32px; height: 32px; justify-content: center; border-radius: var(--r); color: var(--text); }
.shield:hover { background: var(--panel-3); color: var(--text); }
.shield .shield-box, .shield .shield-text { display: none; }
.shield-ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.shield[aria-checked="true"] { color: var(--accent); }
.shield .ico-on { display: none; }
.shield[aria-checked="true"] .ico-on { display: block; }
.shield[aria-checked="true"] .ico-off { display: none; }
.points { height: 30px; padding: 0 10px; border-radius: var(--r); background: var(--panel-2); }
.points svg { stroke: var(--accent); }
.btn-primary, .btn-signup { height: 30px; padding: 0 12px; border: 0; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font: 700 13px var(--font); transition: background .12s; }
.btn-primary:hover, .btn-signup:hover { background: var(--accent-hover); }
#signin { background: var(--panel-3); color: var(--text); }
#signin:hover { background: #35353b; }
#signin.signed { background: transparent; border: 0; }
body.signed-in .btn-signup { display: none; }
.btn-quiet { height: 30px; border: 0; background: var(--panel-3); color: var(--text); font-weight: 600; border-radius: var(--r); }
.btn-quiet:hover { background: #35353b; color: var(--text); }
.top-chat { width: 32px; height: 32px; color: var(--text); }
.top-chat:hover { background: var(--panel-3); }

/* ---------- sidebar ---------- */
.side { background: var(--panel-2); border-right: 0; padding: 6px 6px 0; }
.side .side-head { padding: 12px 10px 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--text); text-transform: uppercase; }
.side-top .side-head { color: var(--text); }
.creator { padding: 5px 10px; border-radius: 4px; }
.creator:hover { background: var(--panel-3); }
.creator-name { font-weight: 600; font-size: 14px; }
.creator-what { font-size: 13px; color: var(--dim); }
.live-count::before, .chan-tag.live::before, .screen-viewers::before { background: var(--live); }
.chan { height: 34px; grid-template-columns: minmax(0, 1fr) auto; padding: 0 10px; border-radius: 4px; }
.chan .chan-num { display: none; }
.chan-name { font-size: 14px; font-weight: 500; color: var(--text-2); }
.chan:hover { background: var(--panel-3); }
.chan.on { background: var(--panel-3); }
.chan.on .chan-name { color: var(--text); font-weight: 600; }
.lp-side { margin: 0; }
.lp-side .chan-tag { color: var(--accent); }
.side-foot { border-top: 1px solid var(--line-2); }
body.side-min .side-sec:has(#chanList) { display: none; }
body.side-min .side { padding-top: 6px; }

/* ---------- headings, rows, cards ---------- */
.row-head h2 { font-size: 18px; font-weight: 700; }
.row-head h2 em { color: var(--accent); }
.row-head a { color: var(--accent); font-weight: 600; }
.row-head a:hover { color: var(--accent-hover); text-decoration: underline; }
.page-title { font-size: 30px; font-weight: 800; }
.eyebrow b { color: var(--accent); }
.card:hover .thumb { box-shadow: -5px 5px 0 var(--accent); transform: translate(5px, -5px); }
.badge { border-radius: 4px; font-weight: 600; }
.badge.live { background: var(--live); font-weight: 700; letter-spacing: .02em; }
.card-title { font-weight: 600; }
.card-tags .tag, .tiles .tag, .cb-cat .tag, .hero-info .tag { background: var(--panel-3); color: var(--text-2); }
.tag.promo, .card-tags .tag.promo, .hero-info .tag.promo, .cb-cat .tag.promo, .screen-bar .tag.promo { background: var(--accent); color: var(--on-accent); }
.promo-tag { color: var(--accent) !important; }
.rank.gold { background: var(--accent); color: var(--on-accent); }

/* ---------- carousel ---------- */
.hero-card { background: var(--panel); border-radius: 8px; box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .95); }
.hi-cat { color: var(--accent); }
.btn-watch, .btn-follow, .btn-chat { background: var(--accent); color: var(--on-accent); }
.btn-watch:hover, .btn-follow:hover, .btn-chat:hover { background: var(--accent-hover); filter: none; }
.btn-follow svg { fill: var(--on-accent); }
.btn-follow.on { background: var(--panel-3); color: var(--text); }
.btn-follow.on svg { fill: var(--accent); }
.hero-nav { background: var(--panel-3); border: 0; }
.launch-strip { background: var(--panel); border-radius: 8px; }
.launch-strip a { color: var(--accent); }

/* ---------- browse tiles: real pictures, no numbers ---------- */
.tile-num { display: none; }
.tile-art img { filter: none; }
.tile-art::after { background: none; }
.tile:hover .tile-art { box-shadow: -5px 5px 0 var(--accent); transform: translate(5px, -5px); }
.tile:hover .tile-name { color: var(--accent); }

/* ---------- category + promote headers ---------- */
.cat-box { width: 96px; padding: 0; overflow: hidden; background: var(--panel-3); box-shadow: none; border-radius: 6px; }
.cat-box img { width: 100%; height: 100%; object-fit: cover; }
.cat-box span { display: none; }

/* ---------- watch page ---------- */
.cb-pic.is-live { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--live); }
.cb-cat a { color: var(--accent); }
.cb-viewers { color: #ff5a5a; }

/* ---------- chat ---------- */
.chat { background: var(--panel); border-left: 1px solid var(--line); }
.chat-title { color: var(--text); letter-spacing: .04em; }
.pin { background: var(--panel-2); }
#chatInput { background: var(--panel-3); border-radius: var(--r); }
#chatInput:focus, #chatName input:focus, .tip-msg:focus, .pm-login:focus-within { border-color: var(--accent); }
.msg-badge { background: var(--accent); color: var(--on-accent); }
.msg.sys svg { stroke: var(--accent); }
.chat-tabs { background: var(--bg); }
.chat-more { background: var(--accent); color: var(--on-accent); }

/* ---------- predictions ---------- */
.side-pick.mine.b { border-color: var(--side-b); }
.split .b, .pin-bar .b { background: var(--side-b); }
.side-pick.b .lbl::before { background: var(--side-b); }
.board li.me .who::after { color: var(--accent); }

/* ---------- promote, tips, launchpad ---------- */
.pm-chips button.on { border-color: var(--accent); background: var(--accent-dim); }
.pm-chips i { color: var(--accent); }
.pm-chips i.pk { color: #ffb02e; }
.pm-closed { background: var(--accent-dim); color: var(--accent); }
.tip-amts button.on { border-color: var(--accent); background: var(--accent-dim); }
.tip-amt { background: var(--accent); color: var(--on-accent); }
.msg.tip { background: rgba(255, 214, 10, .08); box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .3); }
.btn-tip svg { stroke: var(--accent); }
.screen.sound { box-shadow: inset 0 0 0 2px var(--accent); }
.screen.sound .screen-sound { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lp-teaser { background: var(--panel); border: 0; }
.lp-teaser:hover { background: var(--panel-2); }
.lp-teaser-k { background: var(--accent); color: var(--on-accent); }
.lp-card { background: var(--panel); }
.lp-tv { background: var(--accent); box-shadow: none; border-radius: 16px; }
.lp-scan { display: none; }
.lp-status.bad { border-color: rgba(235, 4, 0, .45); }
.namebox { background: var(--panel); border: 0; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }

/* ---------- footer ---------- */
.side-foot p { color: var(--dim); }
.keys { display: none; }

/* ---------- phones ---------- */
@media (max-width: 1100px) { .clock { display: none; } }
@media (max-width: 760px) {
  .top { gap: 10px; }
  .search, .coin, .clock, .points, .btn-signup { display: none !important; }
  #signin { display: inline-flex; align-items: center; }
  .top-right { gap: 4px; }
  .logo { font-size: 23px; }
  .side { background: var(--panel); padding: 6px 10px; }
  .chan-list { gap: 2px; }
  .chan, .lp-side, .pm-link { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; margin: 0; white-space: nowrap; }
  .chan .chan-tag, .chan .chan-sub { display: none; }
  .chan.on { background: var(--accent); }
  .chan.on .chan-name { color: var(--on-accent); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .page-title { font-size: 24px; }
}

/* ---------- coin: highlighted "Coming soon" until there is a contract address ---------- */
.coin:not(.live) { gap: 7px; padding: 0 12px; background: var(--accent-dim); box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .55); color: var(--accent); font-weight: 700; cursor: default; }
.coin:not(.live) .coin-lbl { color: var(--accent); }
.coin:not(.live) .coin-val { color: var(--text); font-weight: 600; }
.coin:not(.live)::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 214, 10, .2); animation: coinpulse 2s ease-in-out infinite; }
@keyframes coinpulse { 50% { box-shadow: 0 0 0 5px rgba(255, 214, 10, 0); } }
@media (max-width: 760px) { .coin:not(.live) { display: inline-flex !important; height: 28px; padding: 0 9px; } .coin:not(.live) .coin-lbl { display: none; } }
