/* Wall Street Tower: app shell in the 90s trading floor world. Near-black warm lacquer, fine gold rules, brass plates,
   poster yellow headlines (Anton), money in Playfair Display, labels in Oswald, an amber dot matrix ticker (Doto).
   One theme on purpose: the tower is lamp-lit and the UI is its lacquered frame. */

:root {
  color-scheme: dark;
  --font-body: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-poster: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --font-money: "Playfair Display", "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-label: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-led: "Doto", ui-monospace, "SF Mono", Menlo, monospace;
  /* legacy alias used by a few components */
  --font-display: var(--font-label);

  --bg: #0b0806;
  --lacquer: #110c08;
  --lacquer-2: #1b140d;
  --lacquer-3: #241a11;
  --lacquer-4: #2e2216;
  --ink: #efe4cc;
  --ink-2: rgba(239, 228, 204, 0.8);
  --ink-3: rgba(239, 228, 204, 0.6);
  --gold: #e0b84c;
  --gold-hi: #f6dc8a;
  --brass: #c9a24a;
  --gold-lo: #8a6a26;
  --rule: rgba(224, 184, 76, 0.55);
  --rule-2: rgba(224, 184, 76, 0.24);
  --rule-3: rgba(224, 184, 76, 0.12);
  --poster: #ffd21f;
  --cream: #efe4cc;
  --mahogany: #4a1f14;
  --oxblood: #6d1a1f;
  --banker: #1f4d3a;
  --navy: #0d1430;
  --amber: #ffae33;

  --up: #3ddc84;
  --up-bg: rgba(61, 220, 132, 0.12);
  --down: #ff4d4f;
  --down-bg: rgba(255, 77, 79, 0.12);
  --flat: #c4b89c;
  --flat-bg: rgba(239, 228, 204, 0.07);
  --paper: #ffd21f;
  --demo: #c9b6ff;
  --demo-bg: rgba(170, 140, 255, 0.14);
  --warn: #ffb84d;
  --stocks: #7fa8ff;
  --hot: #ff7a45;
  --new: #3fe3cd;
  --seg-ink: #120c06;

  /* aliases the chart and legacy code still reference */
  --glass-solid: var(--lacquer);
  --line: var(--rule-2);
  --line-2: var(--rule-3);
  --up-strong: var(--up);
  --down-strong: var(--down);
  --accent: var(--gold);
  --accent-bg: rgba(224, 184, 76, 0.12);
  --hover: rgba(224, 184, 76, 0.08);
  --press: rgba(224, 184, 76, 0.16);

  --shadow: 0 22px 48px rgba(0, 0, 0, 0.55), 0 3px 8px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.5);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .86 0 0 0 0 .62 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --brass-plate: linear-gradient(180deg, #f7df94 0%, #e2bd5e 38%, #b88c35 52%, #d2ab52 78%, #f0d68a 100%);

  --gap: 12px;
  --top-h: 88px;
  --tape-h: 46px;
  --card-w: clamp(390px, 28vw, 460px);
  --lb-w: 308px;
  --r: 6px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: radial-gradient(120% 90% at 50% 10%, #1d1510 0%, var(--bg) 70%);
  color: var(--ink);
  font: 400 13.5px/1.4 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
q { quotes: "\201C" "\201D" "\2018" "\2019"; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.money { font-family: var(--font-money); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.ico { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--poster); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--poster); color: #120c06; padding: 8px 12px; border-radius: 4px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

#stage { position: fixed; inset: 0; }
#tower { width: 100%; height: 100%; display: block; touch-action: none; outline: none; }

/* ---------- lacquer panels with gold rules ---------- */
.lacq {
  background: var(--grain), linear-gradient(180deg, rgba(31, 23, 15, 0.97) 0%, rgba(17, 12, 8, 0.97) 55%, rgba(14, 10, 7, 0.97) 100%);
  border-radius: var(--r);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75), inset 0 0 0 1px var(--rule), inset 0 1px 0 1px rgba(255, 230, 170, 0.05), var(--shadow);
}
.lacq::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--rule-3); border-radius: 3px; pointer-events: none; }
/* art deco corner brackets */
.deco::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none; opacity: 0.9;
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 12px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top / 1px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 12px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 1px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 12px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 1px 12px no-repeat;
}

/* ---------- top bar ---------- */
.bar {
  position: fixed; z-index: 30; top: var(--gap); left: var(--gap); right: var(--gap);
  min-height: 66px; display: flex; align-items: center; gap: 22px; padding: 9px 12px 9px 12px;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex: none; }
.brand__mark svg { display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.brand__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand__name {
  font: 400 27px/0.92 var(--font-poster); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; text-decoration: none;
  color: var(--poster); text-shadow: 0 2px 0 #000, 0 0 18px rgba(255, 210, 31, 0.18);
}
.brand__name:hover { color: #ffe066; }
.chain-wrap { display: block; line-height: 1; }
.chain {
  display: inline-flex; align-items: center; gap: 5px; font: 500 10.5px/1 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 7px 3px 5px; border-radius: 3px; color: var(--brass); text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--rule-2);
}
.chain:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--rule); }
.chain__i { display: inline-flex; }
.chain__i .ico { width: 11px; height: 11px; }

.stats { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; padding-left: 20px; border-left: 1px solid var(--rule-2); }
.stat { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; }
.stat__k { font: 500 10.5px/1.2 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); white-space: nowrap; }
.stat__v { font-weight: 700; font-size: 25px; line-height: 1.05; white-space: nowrap; color: var(--cream); }
.stat__s { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.stat__s.up { color: var(--up); font-weight: 600; }
.stat__s.down { color: var(--down); font-weight: 600; }
.stat--day .pill { align-self: flex-start; margin-top: 4px; }
.stat__chart { display: block; height: 30px; margin-top: 3px; }
.stat__chart svg { display: block; overflow: visible; }
.stat--spark .spark__zero { opacity: 0.35; }

/* brass world clocks */
.clocks { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.clock { display: flex; align-items: center; gap: 7px; }
.clock__face { display: block; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); }
.clock__bezel { fill: #7a5a1c; stroke: var(--gold); stroke-width: 1.4; }
.clock__dial { fill: #f3ead3; }
.clock.is-night .clock__dial { fill: #1c2238; }
.clock__ticks { stroke: #5a4520; stroke-width: 1.2; stroke-linecap: round; }
.clock.is-night .clock__ticks { stroke: #c9a24a; }
.clock__h { stroke: #1a120b; stroke-width: 2; stroke-linecap: round; }
.clock__m { stroke: #1a120b; stroke-width: 1.3; stroke-linecap: round; }
.clock.is-night .clock__h, .clock.is-night .clock__m { stroke: #f3ead3; }
.clock__s { stroke: #c8262f; stroke-width: 0.7; stroke-linecap: round; }
.clock__pin { fill: var(--gold); }
.clock__txt { display: flex; flex-direction: column; line-height: 1.1; }
.clock__c { font: 500 9.5px/1.2 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); white-space: nowrap; }
.clock__t { font: 700 16px/1.1 var(--font-money); color: var(--cream); font-variant-numeric: lining-nums tabular-nums; }

.bar__right { display: flex; align-items: center; gap: 8px; flex: none; }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 1px; border-radius: 3px; font: 600 13px/1.45 var(--font-label); letter-spacing: 0.02em; white-space: nowrap;
  background: var(--flat-bg); color: var(--flat); box-shadow: inset 0 0 0 1px rgba(239, 228, 204, 0.12);
}
.pill.up { background: var(--up-bg); color: var(--up); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.35); }
.pill.down { background: var(--down-bg); color: var(--down); box-shadow: inset 0 0 0 1px rgba(255, 77, 79, 0.35); }
.up.num, b.up, span.up { color: var(--up); }
.down.num, b.down, span.down { color: var(--down); }

/* badges: PAPER is a poster yellow rubber stamp */
.badge {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 3px; padding: 5px 9px 4px;
  font: 400 14px/1 var(--font-poster); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.badge--paper { background: var(--poster); color: #120c06; box-shadow: inset 0 0 0 1.5px #120c06, 0 0 0 1px var(--poster), 0 3px 10px rgba(255, 210, 31, 0.18); transform: rotate(-2deg); }
.badge--demo { background: var(--demo-bg); color: var(--demo); box-shadow: inset 0 0 0 1px rgba(201, 182, 255, 0.5); }
.badge--live { background: var(--down); color: #1a0505; box-shadow: inset 0 0 0 1.5px #1a0505, 0 0 0 1px var(--down); }
.badge--sm { font-size: 11px; padding: 3px 6px 2px; letter-spacing: 0.1em; transform: none; }
.badge__i .ico { width: 12px; height: 12px; }
button.badge { cursor: help; }
button.badge:hover { filter: brightness(1.06); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ink-3); }
.dot--ok { background: var(--up); box-shadow: 0 0 0 3px var(--up-bg), 0 0 8px rgba(61, 220, 132, 0.6); }
.dot--warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.18); }
.dot--down { background: var(--down); box-shadow: 0 0 0 3px var(--down-bg), 0 0 8px rgba(255, 77, 79, 0.6); }
.dot--demo { background: var(--demo); box-shadow: 0 0 0 3px var(--demo-bg); }
.dot--unknown { background: var(--ink-3); }

.iconbtn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 4px; padding: 0; color: var(--gold);
  background: linear-gradient(180deg, var(--lacquer-4), var(--lacquer-2)); box-shadow: inset 0 0 0 1px var(--rule-2), inset 0 1px 0 rgba(255, 230, 170, 0.08);
  transition: box-shadow 0.15s, color 0.15s, background 0.15s;
}
.iconbtn:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--rule), inset 0 1px 0 rgba(255, 230, 170, 0.1); }
.iconbtn:active { background: var(--lacquer-3); }
.iconbtn[aria-expanded="true"], .iconbtn[aria-pressed="true"] { background: var(--brass-plate); color: #2a1a06; box-shadow: inset 0 0 0 1px #7a5a1c, inset 0 1px 0 rgba(255, 250, 220, 0.7), 0 2px 8px rgba(224, 184, 76, 0.25); }
.only-narrow { display: none; }

/* brass plate buttons, with little screws */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 22px 6px; border: 0; border-radius: 3px;
  background: var(--brass-plate); color: #2a1a06; text-decoration: none; white-space: nowrap;
  font: 600 12px/1.2 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255, 244, 205, 0.7);
  box-shadow: inset 0 0 0 1px #7a5a1c, inset 0 1px 0 rgba(255, 250, 220, 0.8), inset 0 -1px 0 rgba(90, 60, 10, 0.5), 0 2px 6px rgba(0, 0, 0, 0.5);
}
.btn::before, .btn::after { content: ""; position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff5d0, #7a5a1c 70%); }
.btn::before { left: 7px; }
.btn::after { right: 7px; }
.btn:hover { filter: brightness(1.07); }
.btn:active { filter: brightness(0.95); transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--gold); text-shadow: none; box-shadow: inset 0 0 0 1px var(--rule); }
.btn--ghost::before, .btn--ghost::after { background: var(--gold-lo); }
.btn--ghost:hover { background: var(--hover); filter: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* feeds status */
.feeds { position: relative; }
.feeds__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 11px; border: 0; border-radius: 4px;
  background: linear-gradient(180deg, var(--lacquer-4), var(--lacquer-2)); box-shadow: inset 0 0 0 1px var(--rule-2);
  font: 500 11px/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.feeds__btn:hover { box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); }
.feeds__btn[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--gold); }
.pop { position: absolute; right: 0; top: calc(100% + 10px); width: 292px; padding: 16px; z-index: 40; }
.pop__t { display: block; font: 400 18px/1 var(--font-poster); letter-spacing: 0.04em; text-transform: uppercase; color: var(--poster); }
.pop__conn { margin: 7px 0 9px; color: var(--ink-2); font-size: 12.5px; }
.pop__note { color: var(--ink-2); font-size: 12.5px; }
.pop__list { display: grid; gap: 6px; margin-bottom: 10px; }
.pop__list li { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; }
.pop__list small { color: var(--ink-3); font-size: 11.5px; }

/* ---------- the Wall of Fame ---------- */
.panel {
  position: fixed; z-index: 20; left: var(--gap); top: calc(var(--top-h) + var(--gap)); width: var(--lb-w);
  max-height: calc(100vh - var(--top-h) - var(--tape-h) - 4 * var(--gap)); display: flex; flex-direction: column; overflow: hidden;
}
.panel__head { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px 16px 4px; background: none; border: 0; }
.panel__head h2 { font: 400 30px/1 var(--font-poster); letter-spacing: 0.03em; text-transform: uppercase; color: var(--poster); text-shadow: 0 2px 0 #000, 0 0 22px rgba(255, 210, 31, 0.16); }
.panel__orn { width: 28px; height: 7px; flex: none; background:
  radial-gradient(circle, var(--gold) 2px, transparent 2.5px) center / 7px 7px no-repeat,
  linear-gradient(var(--rule), var(--rule)) center / 100% 1px no-repeat; }
.panel__chev { position: absolute; right: 12px; top: 18px; display: inline-flex; color: var(--gold-lo); transition: transform 0.2s var(--ease); }
.panel__head:hover .panel__chev { color: var(--gold); }
.panel.is-collapsed .panel__chev { transform: rotate(-90deg); }
.panel.is-collapsed .panel__head { padding-bottom: 14px; }
.panel__body { overflow: auto; padding: 0 10px 12px; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent; }
.lb__cap { text-align: center; font: italic 500 12.5px/1.35 var(--font-money); color: var(--ink-3); padding: 2px 8px 10px; }

.desks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 2px 10px; }
.desk {
  display: flex; flex-direction: column; gap: 1px; padding: 7px 8px 6px; border-radius: 4px; min-width: 0;
  background: linear-gradient(180deg, var(--lacquer-4), var(--lacquer-3)); box-shadow: inset 0 0 0 1px var(--rule-3), inset 0 2px 0 var(--desk, var(--gold));
}
.desk--skel { height: 56px; }
.desk__n { font: 500 10px/1.3 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk__p { font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; color: var(--flat); }
.desk__p.up { color: var(--up); }
.desk__p.down { color: var(--down); }
.desk__s { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }

.lblist { display: grid; gap: 1px; }
.lbrow {
  position: relative; display: grid; grid-template-columns: 22px 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; padding: 4px 8px 4px 6px;
  border: 0; background: none; border-radius: 4px; text-align: left; color: var(--ink);
}
.lbrow:hover { background: var(--hover); }
.lbrow[aria-current="true"] { background: var(--press); box-shadow: inset 2px 0 0 var(--gold); }
.lbrow__rank { font: 600 13px/1 var(--font-label); color: var(--brass); text-align: center; }
.lbrow[data-medal] .lbrow__rank {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #2a1a06; font: 400 12px/1 var(--font-poster);
  background: radial-gradient(circle at 35% 30%, #fff3c4, #e0b84c 45%, #8a6a26 100%); box-shadow: 0 0 0 1px #5a4214, 0 2px 4px rgba(0, 0, 0, 0.6);
}
.lbrow[data-medal="2"] .lbrow__rank { background: radial-gradient(circle at 35% 30%, #ffffff, #c9ced6 45%, #6e747c 100%); box-shadow: 0 0 0 1px #474b52, 0 2px 4px rgba(0, 0, 0, 0.6); }
.lbrow[data-medal="3"] .lbrow__rank { background: radial-gradient(circle at 35% 30%, #ffd8b0, #c07a3e 45%, #6a3a14 100%); box-shadow: 0 0 0 1px #4a2a10, 0 2px 4px rgba(0, 0, 0, 0.6); }
.lbrow__av, .lbrow__av .avatar { width: 32px; height: 32px; }
.lbrow__av .avatar { display: block; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--gold-lo); }
.lbrow[data-medal] .lbrow__av .avatar { box-shadow: 0 0 0 1.5px var(--gold), 0 0 10px rgba(224, 184, 76, 0.35); }
.lbrow__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.lbrow__who b { font: 500 14.5px/1.15 var(--font-label); letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbrow__who small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbrow__who small::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--desk, var(--ink-3)); margin-right: 5px; vertical-align: 1px; }
.lbrow__pct { justify-self: end; font-size: 14.5px; font-weight: 700; white-space: nowrap; color: var(--flat); }
.lbrow__pct.up { color: var(--up); }
.lbrow__pct.down { color: var(--down); }
.view--boss .lbrow { grid-template-columns: 22px 34px minmax(0, 1fr) 64px auto; }
.lbrow__spark svg { display: block; }

.shame {
  margin: 10px -4px 0; padding: 10px 4px 6px; border-radius: 4px;
  background: linear-gradient(180deg, rgba(109, 26, 31, 0.5), rgba(109, 26, 31, 0.14)); box-shadow: inset 0 0 0 1px rgba(255, 77, 79, 0.25);
}
.shame__t { text-align: center; font: 400 22px/1 var(--font-poster); letter-spacing: 0.05em; text-transform: uppercase; color: var(--down); text-shadow: 0 2px 0 #000; }
.shame__cap { text-align: center; font: italic 500 12px/1.3 var(--font-money); color: var(--ink-3); padding: 3px 8px 6px; }
.lblist--shame .lbrow__rank { color: var(--down); }
.lblist--shame .lbrow__av .avatar { box-shadow: 0 0 0 1.5px rgba(255, 77, 79, 0.6); filter: saturate(0.85); }

.legend { padding: 12px 6px 0; margin-top: 10px; border-top: 1px solid var(--rule-3); color: var(--ink-3); font-size: 11.5px; display: grid; gap: 5px; }
.legend p { display: flex; align-items: center; gap: 8px; }
.legend .dot { width: 7px; height: 7px; }

/* loading placeholders */
.lbskel { display: grid; grid-template-columns: 34px 1fr 56px; gap: 10px; align-items: center; padding: 6px 8px; }
.lbskel span, .desk--skel, .skel__l { display: block; border-radius: 4px; background: linear-gradient(90deg, rgba(224, 184, 76, 0.06), rgba(224, 184, 76, 0.14), rgba(224, 184, 76, 0.06)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.lbskel__a { height: 34px; border-radius: 50% !important; }
.lbskel__b { height: 12px; }
.lbskel__c { height: 16px; }
.bar.is-loading .stat .stat__v, .bar.is-loading .stat--day .pill { color: transparent !important; border-radius: 4px; background: linear-gradient(90deg, rgba(224, 184, 76, 0.06), rgba(224, 184, 76, 0.16), rgba(224, 184, 76, 0.06)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; min-width: 64px; user-select: none; box-shadow: none; }
.bar.is-loading .stat__s { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- avatars ---------- */
.av { display: inline-flex; flex: none; }
.avatar { border-radius: 50%; display: block; }

/* ---------- the dossier (room card) ---------- */
.card {
  position: fixed; z-index: 25; right: var(--gap); top: calc(var(--top-h) + var(--gap));
  max-height: calc(100vh - var(--top-h) - var(--tape-h) - 3 * var(--gap)); width: var(--card-w);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(100% + 32px)); opacity: 0; pointer-events: none;
  transition: transform 0.42s var(--ease), opacity 0.25s ease;
}
.card.is-open { transform: none; opacity: 1; pointer-events: auto; }
.card__grab { display: none; }
.card__head {
  position: relative; padding: 18px 18px 14px; flex: none; border-bottom: 1px solid var(--rule-2);
  background: radial-gradient(130% 110% at 0% 0%, rgba(224, 184, 76, 0.13), transparent 55%), linear-gradient(180deg, rgba(109, 26, 31, 0.3), rgba(109, 26, 31, 0) 80%);
}
.card[data-desk="stocks"] .card__head { background: radial-gradient(130% 110% at 0% 0%, rgba(224, 184, 76, 0.13), transparent 55%), linear-gradient(180deg, rgba(40, 70, 140, 0.32), rgba(40, 70, 140, 0) 80%); }
.card[data-desk="new"] .card__head { background: radial-gradient(130% 110% at 0% 0%, rgba(224, 184, 76, 0.12), transparent 55%), linear-gradient(180deg, rgba(30, 120, 118, 0.3), rgba(70, 40, 130, 0) 80%); }
.card[data-kind="boss"] .card__head { background: radial-gradient(130% 120% at 0% 0%, rgba(224, 184, 76, 0.24), transparent 60%), linear-gradient(180deg, rgba(120, 80, 20, 0.3), rgba(120, 80, 20, 0) 80%); }
.dossier { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.dossier__portrait {
  width: 88px; height: 88px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px #120c06, 0 0 0 6px var(--gold-lo), 0 12px 26px rgba(0, 0, 0, 0.65);
}
.dossier__id { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 7px; font: 500 11px/1 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.eyebrow__dot { display: inline-flex; }
.eyebrow__f { color: var(--ink-3); padding-left: 7px; border-left: 1px solid var(--rule-2); }
.card__close { align-self: start; margin-top: -2px; width: 32px; height: 32px; }
.card__title {
  font: 400 40px/0.98 var(--font-poster); letter-spacing: 0.015em; text-transform: uppercase; color: var(--poster); margin-top: 7px; outline: none;
  text-shadow: 0 2px 0 #000, 0 0 22px rgba(255, 210, 31, 0.14); overflow-wrap: anywhere;
}
.card__sub { color: var(--ink-2); margin-top: 5px; font-size: 13px; }
.bio { position: relative; margin-top: 14px; padding-left: 22px; font: italic 500 15.5px/1.4 var(--font-money); color: var(--cream); }
.bio::before { content: "\201C"; position: absolute; left: 0; top: -8px; font: 800 38px/1 var(--font-money); color: var(--gold); }
.said { margin-top: 12px; display: grid; gap: 5px; }
.said__k { font: 500 10px/1 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.said__q {
  position: relative; justify-self: start; max-width: 100%; padding: 8px 12px 9px; border-radius: 14px; background: #f7eed8; color: #1b120a;
  font: 600 13px/1.35 var(--font-body); box-shadow: 0 0 0 1.5px #1b120a, 3px 3px 0 rgba(0, 0, 0, 0.55);
}
.said__q::after { content: ""; position: absolute; left: 18px; top: 100%; width: 12px; height: 10px; background: #f7eed8; clip-path: polygon(0 0, 100% 0, 10% 100%); filter: drop-shadow(0 1.5px 0 #1b120a); }
.ppls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; margin-top: 14px; }
.ppls:has(> :only-child) { grid-template-columns: 1fr; }
.ppl { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 4px; background: rgba(239, 228, 204, 0.04); box-shadow: inset 0 0 0 1px var(--rule-3); min-width: 0; }
.ppl.is-hl { background: var(--press); box-shadow: inset 0 0 0 1.5px var(--gold); }
.ppl__av .avatar { box-shadow: 0 0 0 1px var(--gold-lo); }
.ppl__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ppl__name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl__sub { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl__mood { font-size: 10px; }

.card__scroll { overflow-y: auto; overflow-x: hidden; flex: 0 1 auto; min-height: 0; padding: 6px 18px 24px; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent; outline: none; overscroll-behavior: contain; }
.view { display: flex; flex-direction: column; gap: 4px; }
.strategy { display: grid; gap: 4px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; padding: 12px 0 4px; }
.strategy__k { font: 500 10px/1 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.gag { margin-top: 16px; padding: 12px 14px; border-radius: 4px; font: italic 500 14px/1.45 var(--font-money); color: var(--cream); background: rgba(224, 184, 76, 0.07); box-shadow: inset 0 0 0 1px var(--rule-3), inset 3px 0 0 var(--gold); }

/* hero */
.hero { padding: 12px 0 4px; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hero__main { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.hero__pct { font-weight: 800; font-size: 66px; line-height: 0.95; letter-spacing: -0.01em; color: var(--flat); }
.hero__pct.up { color: var(--up); text-shadow: 0 0 30px rgba(61, 220, 132, 0.22); }
.hero__pct.down { color: var(--down); text-shadow: 0 0 30px rgba(255, 77, 79, 0.22); }
.hero__lbl { font: 400 24px/1 var(--font-poster); letter-spacing: 0.04em; text-transform: uppercase; color: var(--poster); }
.hero__day { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-bottom: 8px; }
.hero__daylbl { font: 500 10px/1 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.hero__sub { display: block; color: var(--ink-2); margin-top: 7px; font-size: 13px; }
.chartbox { position: relative; margin-top: 10px; padding: 6px 4px 0; border-radius: 4px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0)); box-shadow: inset 0 0 0 1px var(--rule-3); }
.chartbox svg { display: block; width: 100%; height: auto; overflow: visible; }

/* charts */
.stop-a { stop-color: var(--flat); stop-opacity: 0.26; }
.stop-b { stop-color: var(--flat); stop-opacity: 0; }
.up .stop-a, .up .stop-b { stop-color: var(--up); }
.down .stop-a, .down .stop-b { stop-color: var(--down); }
.chart__line, .spark__line { fill: none; stroke: var(--flat); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark__line { stroke-width: 1.6; }
.up .chart__line, .up .spark__line { stroke: var(--up); }
.down .chart__line, .down .spark__line { stroke: var(--down); }
.chart__dot, .spark__dot { fill: var(--flat); stroke: var(--lacquer); stroke-width: 1.6; }
.up .chart__dot, .up .spark__dot { fill: var(--up); }
.down .chart__dot, .down .spark__dot { fill: var(--down); }
.chart__grid { stroke: var(--rule-2); stroke-width: 1; fill: none; }
.chart__zero, .spark__zero, .spark__base { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.45; fill: none; }
.chart__lbl { font: 500 10.5px var(--font-body); fill: var(--ink-3); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: #120c08; stroke-width: 3px; stroke-linejoin: round; }
.chart__empty { font: italic 500 13px var(--font-money); fill: var(--ink-3); }
.chart__vline { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 2 3; }
.chart__hdot { fill: var(--lacquer); stroke: var(--cream); stroke-width: 2; }
.chart__tip {
  position: absolute; top: -6px; pointer-events: none; background: var(--lacquer-3); color: var(--ink); border-radius: 4px; padding: 3px 8px; font-size: 11.5px;
  box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-sm); white-space: nowrap; z-index: 2;
}
.chart__tip.up b { color: var(--up); }
.chart__tip.down b { color: var(--down); }

/* stat tiles: small brass edged plaques */
.tiles { display: grid; gap: 7px; margin-top: 12px; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
  display: flex; flex-direction: column; gap: 3px; padding: 9px 11px 8px; border-radius: 4px; min-width: 0;
  background: linear-gradient(180deg, var(--lacquer-4), var(--lacquer-3)); box-shadow: inset 0 0 0 1px var(--rule-3), inset 0 1px 0 rgba(255, 230, 170, 0.06);
}
.tile__k { font: 500 10px/1.2 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.tile__v { font-size: 23px; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cream); }
.tile__v.up { color: var(--up); }
.tile__v.down { color: var(--down); }
.tile__v--text { font-size: 20px; white-space: normal; }
.tiles--info .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tile__s { font-size: 11px; color: var(--ink-3); min-height: 1.2em; }
.tile__s.up { color: var(--up); font-weight: 600; }
.tile__s.down { color: var(--down); font-weight: 600; }

/* sections and tables */
.sec { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.sec__t { display: flex; align-items: center; gap: 8px; font: 400 19px/1.05 var(--font-poster); letter-spacing: 0.04em; text-transform: uppercase; color: var(--poster); }
.sec__t::after { content: ""; flex: 1; height: 1px; min-width: 16px; background: linear-gradient(90deg, var(--rule), transparent); order: 5; }
.sec__t .badge { order: 6; }
.sec__t--sm { font-size: 13px; color: var(--ink-3); }
.sec__n { font: 500 14px/1 var(--font-label); color: var(--ink-3); letter-spacing: 0.04em; }
.sec__empty:empty { display: none; }
.sec__foot { display: flex; gap: 8px; flex-wrap: wrap; }
.tblwrap { margin: 0 -6px; overflow-x: auto; scrollbar-width: thin; }
.tbl { font-size: 12.5px; }
.tbl th { text-align: left; font: 500 10px/1.2 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); padding: 4px 6px 6px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
.tbl td { padding: 7px 6px; vertical-align: top; }
.r { text-align: right !important; }
.tbl--pos tbody + tbody td { border-top: 1px solid var(--rule-3); }
.tbl--pos td { vertical-align: middle; }
.possym__c { display: flex; flex-direction: column; line-height: 1.2; }
.possym { font: 600 14px/1.2 var(--font-label); letter-spacing: 0.04em; text-decoration: none; color: var(--cream); }
.possym:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 2px; }
.possym__c small, .tbl--pos td small { color: var(--ink-3); font-size: 11px; display: block; }
.tbl--pos td.r b { display: block; }

.trade + .trade { border-top: 1px solid var(--rule-3); }
.trade td { padding-top: 8px; padding-bottom: 0; }
.trade__links td { padding: 4px 6px 11px; }
.trade__time { width: 36px; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.trade__what { line-height: 1.25; }
.trade__line { display: flex; align-items: center; gap: 6px; }
.trade__sym { font: 600 14px/1.2 var(--font-label); letter-spacing: 0.04em; }
.trade__sub { display: block; color: var(--ink-3); font-size: 11.5px; }
.trade__size { white-space: nowrap; }
.trade__pnl { line-height: 1.25; white-space: nowrap; }
.trade__pnl b { display: block; }
.trade__usd { display: block; color: var(--ink-3); font-size: 11.5px; }
.side { font: 400 11px/1 var(--font-poster); letter-spacing: 0.1em; padding: 3px 5px 2px; border-radius: 2px; }
.side--buy { background: var(--up); color: #04150b; }
.side--sell { background: var(--down); color: #1a0505; }
.status { font: 500 10px/1 var(--font-label); letter-spacing: 0.12em; padding: 3px 5px 2px; border-radius: 2px; }
.status:empty { display: none; }
.status--open { color: var(--gold); box-shadow: inset 0 0 0 1px var(--rule); }
.status--closed { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule-3); }
.trade__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.trade__reason { color: var(--ink-2); font-size: 12px; min-width: 0; }
.trade__reason::first-letter { text-transform: uppercase; }
.trade__badges { display: flex; gap: 4px; flex: none; }
.trade.is-rug .trade__main td { background: rgba(255, 77, 79, 0.1); }
.trade.is-rug .trade__reason { color: var(--down); font-weight: 700; }
.trade.is-rug .trade__main td:first-child { border-radius: 4px 0 0 4px; }
.trade.is-rug .trade__main td:last-child { border-radius: 0 4px 4px 0; }

/* link chips: small engraved tags */
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px; border-radius: 3px; text-decoration: none; line-height: 1.3;
  font: 500 11px/1.3 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(224, 184, 76, 0.06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); transition: background 0.12s, box-shadow 0.12s, color 0.12s;
}
a.chip:hover { background: rgba(224, 184, 76, 0.16); box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-hi); }
.chip__x .ico { width: 11px; height: 11px; opacity: 0.65; }
.chip__hash { font: 500 11px/1.3 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.chip--ref { background: rgba(31, 77, 58, 0.6); color: #a4f3c8; box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.45); }
a.chip--ref:hover { background: rgba(31, 77, 58, 0.9); color: #caffe1; box-shadow: inset 0 0 0 1px var(--up); }
.chip--ref .chip__hash { color: inherit; opacity: 0.85; }
.chip--static { background: transparent; box-shadow: inset 0 0 0 1px var(--rule-3); color: var(--ink-3); }
.chip.is-demo { box-shadow: inset 0 0 0 1px var(--rule-2); background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(201, 182, 255, 0.06) 5px 7px); }
.chip__demo { font: 500 9.5px/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--demo); background: var(--demo-bg); border-radius: 2px; padding: 2px 4px 1px; }
.chipgroup { display: inline-flex; align-items: stretch; }
.chipgroup .chip { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.chip__copy { display: inline-grid; place-items: center; width: 26px; border: 0; border-radius: 0 3px 3px 0; background: rgba(31, 77, 58, 0.85); color: #a4f3c8; padding: 0; box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.45); margin-left: -1px; }
.chip__copy:hover { background: #2a6a4f; }
.chip__copy .ico { width: 12px; height: 12px; }

.papernote { color: var(--ink-3); font-size: 12px; font-style: italic; }
.empty { display: grid; justify-items: start; gap: 4px; padding: 14px; border-radius: 4px; background: rgba(239, 228, 204, 0.04); box-shadow: inset 0 0 0 1px var(--rule-3); color: var(--ink-2); font-size: 12.5px; }
.empty b { color: var(--cream); font: italic 600 15px/1.3 var(--font-money); }
.empty__ico { color: var(--gold); }
.skel { display: grid; gap: 10px; padding: 14px 0; }
.skel__l { height: 14px; }

/* boss */
.boss {
  position: relative; margin-top: 18px; padding: 16px 16px 14px 18px; border-radius: 4px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(224, 184, 76, 0.16), rgba(224, 184, 76, 0.03) 60%); box-shadow: inset 0 0 0 1px var(--rule-2);
}
.boss__k { display: block; font: 500 10px/1 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.boss__note { font: italic 500 17px/1.4 var(--font-money); color: var(--cream); }
.boss__note::before { content: "\201C"; color: var(--gold); font-weight: 800; }
.boss__note::after { content: "\201D"; color: var(--gold); font-weight: 800; }
.boss__who { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule-3); }
.boss__who .avatar { box-shadow: 0 0 0 1.5px var(--gold); }
.boss__who b { display: block; font: italic 600 14px/1.2 var(--font-money); color: var(--gold-hi); }
.boss__title { color: var(--ink-3); font-size: 11.5px; }
.alloc__bar { display: flex; height: 28px; border-radius: 3px; overflow: hidden; gap: 2px; padding: 2px; background: #0c0805; box-shadow: inset 0 0 0 1px var(--rule-2); }
.alloc__seg { display: grid; place-items: center; font: 600 12px/1 var(--font-label); letter-spacing: 0.06em; color: var(--seg-ink); min-width: 4px; border-radius: 2px; transition: width 0.4s var(--ease); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.alloc__list { display: grid; gap: 2px; }
.alloc__row { display: grid; grid-template-columns: 8px 1fr auto; gap: 9px; align-items: center; padding: 6px 2px; }
.alloc__who { display: flex; flex-direction: column; line-height: 1.25; }
.alloc__who b { font: 500 14px/1.2 var(--font-label); letter-spacing: 0.03em; text-transform: uppercase; }
.alloc__who small { color: var(--ink-3); font-size: 11.5px; }
.view--boss .lblist { margin: 0 -8px; }

/* ---------- the tape: amber dot matrix ticker ---------- */
.tape {
  position: fixed; z-index: 20; left: var(--gap); right: var(--gap); bottom: var(--gap); height: var(--tape-h);
  display: flex; align-items: stretch; gap: 5px; padding: 5px; overflow: hidden;
}
.tape::before { display: none; }
.tape__label {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 13px 0 12px; flex: none; border-radius: 3px;
  font: 400 15px/1 var(--font-poster); letter-spacing: 0.1em; text-transform: uppercase; color: #2a1a06; text-shadow: 0 1px 0 rgba(255, 244, 205, 0.7);
  background: var(--brass-plate); box-shadow: inset 0 0 0 1px #7a5a1c, inset 0 1px 0 rgba(255, 250, 220, 0.8);
}
.livedot { width: 8px; height: 8px; border-radius: 50%; background: #c8262f; box-shadow: 0 0 0 1.5px rgba(90, 20, 20, 0.6), 0 0 6px rgba(255, 60, 60, 0.9); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.tape__led {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; border-radius: 3px;
  background: radial-gradient(circle, rgba(255, 174, 51, 0.11) 0.75px, transparent 1.15px) 0 0 / 3px 3px, #070504;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px rgba(224, 184, 76, 0.18), inset 0 3px 10px rgba(0, 0, 0, 0.9);
}
.tape__led::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 48%); }
.tape__view { flex: 1; min-width: 0; height: 100%; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 30px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 30px), transparent 100%); }
.tape__track { display: flex; flex: none; will-change: transform; }
.tape__copy { display: flex; flex: none; }
.tchip {
  display: inline-flex; align-items: center; gap: 9px; padding: 0 0 0 16px; border: 0; background: none; white-space: nowrap;
  font: 900 19px/1 var(--font-led); letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber);
  text-shadow: 0 0 5px rgba(255, 150, 30, 0.75), 0 0 14px rgba(255, 130, 20, 0.35);
}
.tchip::after { content: ""; width: 7px; height: 7px; margin-left: 9px; background: radial-gradient(circle, currentColor 45%, transparent 55%) 0 0 / 2.33px 2.33px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: 0.7; }
.tchip:hover { color: #ffd98a; }
.tchip__v { color: #c98a2a; text-shadow: 0 0 5px rgba(200, 120, 30, 0.5); }
.tchip__sym { color: #ffe3a3; }
.tchip__amt { display: inline-flex; align-items: center; gap: 5px; }
.tchip__amt.up { color: #5dff9e; text-shadow: 0 0 6px rgba(60, 255, 140, 0.6), 0 0 14px rgba(60, 255, 140, 0.25); }
.tchip__amt.down { color: #ff5a4e; text-shadow: 0 0 6px rgba(255, 80, 60, 0.65), 0 0 14px rgba(255, 60, 40, 0.25); }
.tri { display: inline-block; width: 11px; height: 10px; background: radial-gradient(circle, currentColor 46%, transparent 56%) 0 0 / 2.4px 2.4px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tri--down { clip-path: polygon(0 0, 100% 0, 50% 100%); }
.tape__empty { font: 900 17px/1 var(--font-led); letter-spacing: 0.05em; text-transform: uppercase; color: var(--amber); opacity: 0.8; padding: 0 16px; text-shadow: 0 0 6px rgba(255, 150, 30, 0.6); }
.tape__pause { flex: none; width: 36px; height: auto; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(var(--tape-h) + 2 * var(--gap)); display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.toast {
  position: relative; pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px 11px 12px; border: 0; border-radius: var(--r);
  background: var(--grain), linear-gradient(180deg, #221810, #120d09); color: var(--ink); overflow: hidden; animation: toast-in 0.36s var(--ease) both;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px var(--rule), inset 4px 0 0 var(--tone, var(--gold)), var(--shadow);
}
.toast.up { --tone: var(--up); }
.toast.down { --tone: var(--down); }
.toast.demo { --tone: var(--demo); }
.toast.info { --tone: var(--gold); }
button.toast:hover { background: var(--grain), linear-gradient(180deg, #2a1e13, #16100b); }
.toast.is-out { animation: toast-out 0.26s ease both; }
.toast .av { margin-left: 4px; }
.toast .avatar { box-shadow: 0 0 0 1.5px var(--tone, var(--gold)); }
.toast__bar { align-self: stretch; width: 0; }
.toast__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; gap: 1px; }
.toast__k { font: 400 12px/1.2 var(--font-poster); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tone, var(--gold)); }
.toast__t { font-size: 13.5px; font-weight: 650; }
.toast__q { display: block; margin-top: 3px; font: italic 500 14px/1.35 var(--font-money); color: var(--cream); }
.toast__sub { color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }
.toast__go { color: var(--gold-lo); transform: rotate(-90deg); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@media (min-width: 1101px) {
  body.has-card .banners { left: calc((100vw - var(--card-w) - 2 * var(--gap)) / 2 + var(--lb-w) / 2 + var(--gap)); width: min(640px, calc(100vw - var(--card-w) - var(--lb-w) - 8 * var(--gap))); }
  body.has-card .extra__h { font-size: 42px; }
}
@media (min-width: 721px) {
  body.has-card .toasts { left: calc((100vw - var(--card-w) - 2 * var(--gap)) / 2 + var(--lb-w) / 2); width: min(460px, calc(100vw - var(--card-w) - var(--lb-w) - 8 * var(--gap))); }
}

/* ---------- EXTRA headline banners ---------- */
.banners { position: fixed; z-index: 70; top: calc(var(--top-h) + 22px); left: 50%; transform: translateX(-50%); width: min(660px, calc(100vw - 24px)); pointer-events: none; display: grid; justify-items: center; }
.extra {
  pointer-events: auto; cursor: pointer; position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 20px 30px 14px; max-width: 100%;
  background: var(--grain), radial-gradient(120% 150% at 50% 0%, #2d1f12 0%, #120c08 70%); border-radius: 3px;
  box-shadow: 0 0 0 2px var(--poster), 0 0 0 6px #0f0b08, 0 0 0 7px rgba(224, 184, 76, 0.65), 0 34px 70px rgba(0, 0, 0, 0.7), 0 0 80px rgba(255, 210, 31, 0.12);
  opacity: 0; transform: scale(1.3) rotate(-3deg);
}
.extra.is-in { opacity: 1; transform: scale(1) rotate(-1deg); transition: transform 0.42s cubic-bezier(0.2, 1.5, 0.4, 1), opacity 0.18s ease; }
.extra.is-out { opacity: 0; transform: translateY(-18px) scale(0.96) rotate(-1deg); transition: transform 0.4s ease, opacity 0.35s ease; }
.extra--red { box-shadow: 0 0 0 2px var(--down), 0 0 0 6px #0f0b08, 0 0 0 7px rgba(255, 77, 79, 0.55), 0 34px 70px rgba(0, 0, 0, 0.7), 0 0 80px rgba(255, 77, 79, 0.14); }
.extra--green { box-shadow: 0 0 0 2px var(--up), 0 0 0 6px #0f0b08, 0 0 0 7px rgba(61, 220, 132, 0.5), 0 34px 70px rgba(0, 0, 0, 0.7), 0 0 80px rgba(61, 220, 132, 0.14); }
.extra__k { font: 400 13px/1 var(--font-poster); letter-spacing: 0.32em; text-transform: uppercase; color: #fff4d6; background: #c8262f; padding: 5px 12px 4px 16px; transform: rotate(-2deg); box-shadow: 0 2px 0 #000; }
.extra--green .extra__k { background: #17804a; }
.extra__h { text-wrap: balance; font: 400 50px/0.95 var(--font-poster); letter-spacing: 0.02em; text-transform: uppercase; color: var(--poster); text-shadow: 0 3px 0 #000, 0 0 30px rgba(255, 210, 31, 0.25); }
.extra--red .extra__h { color: #ff6b5e; }
.extra--green .extra__h { color: var(--up); }
.extra__s { font: italic 500 18px/1.35 var(--font-money); color: var(--cream); max-width: 34em; }
.extra__f { font: 500 10px/1 var(--font-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.confetti { position: fixed; inset: 0; z-index: 65; pointer-events: none; width: 100vw; height: 100vh; }

/* ---------- tooltip ---------- */
.tip {
  position: fixed; z-index: 100; max-width: 310px; padding: 11px 13px; border-radius: 4px; background: #f7eed8; color: #1b120a; font-size: 12.5px; line-height: 1.45;
  box-shadow: 0 0 0 1px #7a5a1c, var(--shadow); pointer-events: none; opacity: 0; transition: opacity 0.12s;
}
.tip.is-on { opacity: 1; }
.tip b { display: block; font: 400 15px/1.1 var(--font-poster); letter-spacing: 0.06em; text-transform: uppercase; color: #6d1a1f; margin-bottom: 4px; }

/* ---------- curtain while the tower loads ---------- */
/* Full-screen and opaque from the first paint: the tower builds room by room behind it, so nobody sees a half-built frame. */
.curtain {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(ellipse 60% 45% at 50% 46%, rgba(224, 184, 76, 0.16), transparent 70%),
    radial-gradient(ellipse at 50% 120%, rgba(109, 26, 31, 0.35), transparent 60%),
    #0b0806;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.curtain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07; background-image: repeating-linear-gradient(90deg, #e0b84c 0 1px, transparent 1px 7px); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.curtain.is-out { opacity: 0; visibility: hidden; }
.curtain[hidden] { display: none; }
.curtain__plate { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; width: min(440px, 100%); text-align: center; }
.curtain__brand { margin: 6px 0 0; font: 400 clamp(34px, 6vw, 56px)/0.95 var(--font-poster); letter-spacing: 0.02em; text-transform: uppercase; color: var(--poster); text-shadow: 0 0 28px rgba(255, 210, 31, 0.28), 0 3px 0 #000; }
.curtain__t { min-height: 1.2em; font: italic 600 17px/1.2 var(--font-money); color: #efe4cc; }
.curtain__bar { width: 100%; height: 6px; border-radius: 3px; background: rgba(239, 228, 204, 0.08); box-shadow: inset 0 0 0 1px rgba(224, 184, 76, 0.35); overflow: hidden; }
.curtain__bar i { display: block; height: 100%; width: 4%; border-radius: 3px; background: linear-gradient(90deg, #9a7224, #e0b84c 60%, #fff0b8); box-shadow: 0 0 12px rgba(224, 184, 76, 0.6); transition: width 0.35s ease; }
.curtain__s { font: 500 11px/1 var(--font-body, 'Oswald', sans-serif); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.curtain .coin { width: 64px; height: 64px; font-size: 30px; }
@media (prefers-reduced-motion: reduce) { .curtain .coin { animation: none; } .curtain__bar i { transition: none; } }
.coin {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #5a4214; font: 800 22px/1 var(--font-money);
  background: radial-gradient(circle at 35% 30%, #fff3c4, #e0b84c 45%, #8a6a26 100%); box-shadow: 0 0 0 1px #5a4214, 0 4px 12px rgba(0, 0, 0, 0.6);
  animation: coin 1.2s linear infinite;
}
@keyframes coin { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }

/* ---------- connection overlay ---------- */
.netstatus { position: fixed; inset: 0; z-index: 15; display: grid; place-items: center; pointer-events: none; padding: 24px; }
.netstatus__card { position: relative; pointer-events: auto; display: grid; justify-items: center; gap: 9px; padding: 28px 32px; text-align: center; max-width: 380px; }
.netstatus__card b { font: 400 26px/1.05 var(--font-poster); letter-spacing: 0.02em; text-transform: uppercase; color: var(--poster); }
.netstatus__card span { color: var(--ink-2); }
.netstatus__actions { display: flex; gap: 8px; margin-top: 8px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--rule-2); border-top-color: var(--gold); animation: spin 0.9s linear infinite; }
.netstatus.is-off .spinner { animation: none; border-color: var(--down); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- keyboard room list ---------- */
.roomnav { position: fixed; z-index: 90; left: 12px; top: 12px; width: 300px; max-height: calc(100vh - 24px); overflow: auto; padding: 14px; transform: translateX(-120%); }
.roomnav:focus-within { transform: none; }
.roomnav h2 { font: 400 18px/1 var(--font-poster); letter-spacing: 0.06em; text-transform: uppercase; color: var(--poster); margin-bottom: 8px; }
.roomnav button { width: 100%; text-align: left; padding: 5px 8px; border: 0; background: none; border-radius: 3px; }
.roomnav button:hover, .roomnav button:focus-visible { background: var(--hover); }
.noscript { position: fixed; inset: 40% 0 auto; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1440px) {
  .clock:not(:first-child) .clock__face { display: none; }
  .clocks { gap: 12px; }
}
@media (max-width: 1280px) {
  .clock:not(:first-child) { display: none; }
  .stat--spark { display: none; }
  .stat--people { display: none; }
  .bar { gap: 16px; }
}
@media (max-width: 1100px) {
  .clocks { display: none; }
  .only-narrow { display: inline-grid; }
  .panel { opacity: 0; pointer-events: none; transform: translateX(-24px); transition: transform 0.3s var(--ease), opacity 0.2s; }
  .panel.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .panel__chev { display: none; }
  .feeds__txt { display: none; }
  .feeds__btn { padding: 0 13px; }
  body.has-card .toasts { left: calc((100vw - var(--card-w) - 2 * var(--gap)) / 2); width: min(460px, calc(100vw - var(--card-w) - 6 * var(--gap))); }
}
@media (max-width: 900px) {
  .stat .since { display: none; }
}
@media (max-width: 720px) {
  :root { --gap: 8px; --tape-h: 42px; }
  .iconbtn, .feeds__btn { width: 34px; height: 34px; }
  .stat .since { display: none; }
  .pop { position: fixed; left: 8px; right: 8px; top: calc(var(--top-h) + 6px); width: auto; }
  .panel { width: min(330px, calc(100vw - 16px)); max-height: calc(100vh - var(--top-h) - var(--tape-h) - 40px); }
  .card {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; height: auto; max-height: min(74vh, 660px); border-radius: 12px 12px 0 0;
    transform: translateY(105%); padding-bottom: env(safe-area-inset-bottom);
  }
  .card.is-open { transform: none; }
  .card__grab { display: grid; place-items: center; height: 18px; flex: none; touch-action: none; cursor: grab; }
  .card__grab span { width: 44px; height: 4px; border-radius: 4px; background: var(--gold-lo); }
  .card__head { padding: 4px 14px 12px; }
  .dossier { gap: 12px; }
  .dossier__portrait { width: 64px; height: 64px; }
  .dossier__portrait .avatar { width: 64px; height: 64px; }
  .card__title { font-size: 31px; margin-top: 5px; }
  .bio { font-size: 14.5px; margin-top: 10px; }
  .card__scroll { padding: 2px 14px 26px; }
  .card.is-compact .bio, .card.is-compact .said, .card.is-compact .ppls { display: none; }
  .card.is-compact .dossier__portrait, .card.is-compact .dossier__portrait .avatar { width: 44px; height: 44px; }
  .card.is-compact .card__title { font-size: 24px; }
  .card.is-compact .card__head { padding-bottom: 8px; }
  .hero__pct { font-size: 56px; }
  .toasts { bottom: auto; top: calc(var(--top-h) + 8px); }
  body.lb-open .toasts, body.has-card .toasts .toast:not(.has-quote) { display: none; }
  .toast { padding: 9px 10px; gap: 10px; }
  .toast .av, .toast .avatar { width: 36px !important; height: 36px !important; }
  .toast__q { font-size: 13.5px; }
  .toast__sub { display: none; }
  .tape__the { display: none; }
  .ppls { grid-template-columns: 1fr 1fr; }
  .tblwrap { margin: 0 -4px; }
  .tape__label { padding: 0 9px; font-size: 13px; gap: 6px; }
  .tchip { font-size: 17px; }
  .extra { padding: 16px 18px 12px; }
  .extra__h { font-size: 34px; }
  .extra__s { font-size: 15px; }
  .banners { top: calc(var(--top-h) + 14px); }
}
@media (max-width: 380px) {
  .tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .livedot, .coin { animation: none; }
  .tape__view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
  .tape__track { transform: none !important; }
  .tape__pause { display: none; }
  .extra, .extra.is-in { transform: none; }
}

/* ---------- live mode: badge, Fees button, token block, fee desk, wallets (LIVE-SPEC section 4) ---------- */
.badge--live { background: linear-gradient(180deg, #2a0c0c, #170606); color: #ffd9d9; box-shadow: inset 0 0 0 1.5px var(--down), 0 0 14px rgba(255, 77, 79, 0.25); transform: none; }
.badge--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.25), 0 0 8px rgba(255, 77, 79, 0.9); animation: wst-onair 1.6s ease-in-out infinite; }
.badge--pre { background: var(--brass-plate); color: #2a1a06; box-shadow: inset 0 0 0 1.5px #7a5a1c, 0 3px 10px rgba(224, 184, 76, 0.2); transform: rotate(-1.5deg); }
@keyframes wst-onair { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .badge--live::before { animation: none; } }

.feesbtn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 10px; border: 0; border-radius: 4px; cursor: pointer;
  background: linear-gradient(180deg, var(--lacquer-4), var(--lacquer-2)); box-shadow: inset 0 0 0 1px var(--rule); color: var(--gold);
}
.feesbtn:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-hi); }
.feesbtn__i { display: inline-flex; }
.feesbtn__k { font: 500 11px/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; }
.feesbtn__v { font: 700 13px/1 var(--font-money); color: var(--cream); white-space: nowrap; }
.feesbtn.is-up .feesbtn__v { color: var(--up); }

/* token block */
.token { margin-top: 12px; padding: 12px 14px; border-radius: 5px; background: linear-gradient(180deg, rgba(224, 184, 76, 0.1), rgba(224, 184, 76, 0.03)); box-shadow: inset 0 0 0 1px var(--rule-2); }
.token__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.token__coin { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--brass-plate); color: #2a1a06; font: 800 18px/1 var(--font-money); box-shadow: inset 0 0 0 1px #7a5a1c, 0 2px 6px rgba(0, 0, 0, 0.5); }
.token__id { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.token__sym { font: 400 22px/1 var(--font-poster); letter-spacing: 0.04em; color: var(--poster); }
.token__name { font-size: 12.5px; color: var(--ink-2); }
.token__phase { font: 500 10px/1 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--up); padding: 4px 7px 3px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.4); background: var(--up-bg); }
.token__carow { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-width: 0; }
.token__k, .wline__k { font: 500 10px/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); flex: none; }
.token__ca { font-size: 12.5px; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.copybtn { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border: 0; border-radius: 3px; background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--rule-2); cursor: pointer; }
.copybtn:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.copybtn .ico { width: 13px; height: 13px; }
.token__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.token__btns .btn { padding: 7px 18px 6px; }
.token__soon { display: flex; gap: 12px; align-items: flex-start; }
.token__bell { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; color: var(--poster); box-shadow: inset 0 0 0 1px var(--rule); }
.token__bell .ico { width: 18px; height: 18px; }
.token__soont { display: block; font: 400 19px/1.05 var(--font-poster); letter-spacing: 0.04em; text-transform: uppercase; color: var(--poster); }
.token__soontxt { margin-top: 4px; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.token [hidden] { display: none !important; }

/* fee desk */
.view--fees { display: flex; flex-direction: column; }
.fees__hero { margin-top: 14px; }
.fees__k { font: 500 10px/1 var(--font-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.fees__v { font-size: 50px; }
.fees__v::after { content: attr(data-unit); margin-left: 6px; font: 400 20px/1 var(--font-poster); letter-spacing: 0.04em; color: var(--ink-3); }
.wline { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rule-3); flex-wrap: wrap; }
.wline__ico { display: inline-flex; color: var(--gold); }
.wline__a { color: var(--cream); font-size: 12.5px; text-decoration: none; border-bottom: 1px dotted var(--rule); }
.wline__a:hover { color: var(--gold-hi); }
.wline__s { margin-left: auto; color: var(--ink-2); font-size: 12.5px; }
.wline__row { display: flex; gap: 14px; flex-basis: 100%; color: var(--ink-3); font-size: 12px; }
.wline__row b { color: var(--cream); font-weight: 600; }
.flow__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: none; }
.flow__step { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; border-radius: 4px; background: rgba(224, 184, 76, 0.05); box-shadow: inset 0 0 0 1px var(--rule-3); }
.flow__step + .flow__step::before { content: "›"; position: absolute; left: -7px; top: 14px; font: 700 16px/1 var(--font-money); color: var(--gold); }
.flow__ico { position: relative; display: inline-flex; color: var(--gold); }
.flow__n { position: absolute; left: 14px; top: -6px; font: 600 9px/1 var(--font-label); font-style: normal; color: var(--poster); }
.flow__t { font: 500 11px/1.1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); }
.flow__s { font-size: 11.5px; line-height: 1.35; color: var(--ink-3); }
.check { display: grid; gap: 5px; }
.check__row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.check__i { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rule-2); color: var(--up); }
.check__i .ico { width: 12px; height: 12px; }
.check__row.is-done { color: var(--cream); }
.check__row.is-done .check__i { box-shadow: inset 0 0 0 1.5px var(--up); background: var(--up-bg); }
.ledger { display: grid; gap: 4px; }
.ledger__row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--rule-3); }
.ledger__ico { display: inline-flex; color: var(--gold); justify-content: center; }
.ledger__what { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ledger__line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ledger__amt { font-size: 14px; color: var(--up); }
.ledger__row--fund .ledger__amt { color: var(--cream); }
.ledger__usd { color: var(--ink-3); font-size: 11.5px; }
.ledger__t { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.ledger__who { border: 0; padding: 0; background: none; color: var(--cream); font: 500 12px/1.2 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger__who:hover { color: var(--gold-hi); }
.ledger__av { display: inline-flex; }
.ledger__av .avatar { border-radius: 50%; box-shadow: 0 0 0 1px var(--gold-lo); }
.chip--tx { background: rgba(31, 77, 58, 0.6); color: #a4f3c8; box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.45); text-decoration: none; }
a.chip--tx:hover { background: rgba(31, 77, 58, 0.9); color: #caffe1; box-shadow: inset 0 0 0 1px var(--up); }
.chip--tx .chip__hash { color: inherit; opacity: 0.85; }
.chip--venue { background: rgba(224, 184, 76, 0.08); color: var(--gold); box-shadow: inset 0 0 0 1px var(--rule-2); }
.fees__foot { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--rule-3); color: var(--ink-3); font-size: 12px; line-height: 1.45; }
.sec__t--gap { margin-top: 22px; }
.feemini { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
.feemini__k { font: 500 10px/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.feemini b { font-size: 22px; color: var(--cream); }
.feemini .num { color: var(--ink-2); font-size: 12.5px; }
.feemini .btn { margin-left: auto; }
.lbrow.is-waiting .lbrow__pct, .lbrow.is-waiting [class*="pct"] { font: 500 11px/1 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 720px) {
  .flow__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__step:nth-child(3)::before { display: none; }
  .fees__v { font-size: 42px; }
  .feesbtn { height: 30px; padding: 0 9px 0 8px; }
  .feesbtn__i { display: none; }
}
.tiles--eth .tile__v { font-size: 21px; }
.tiles--eth .tile__v::after { content: " ETH"; font: 500 11px/1 var(--font-label); letter-spacing: 0.1em; color: var(--ink-3); }


/* ======================================================================================================
   Clarity pass (2026-09-30): one calm top bar, the first-visit explainer, the Fees card, wallets and venues.
   The tower is the hero; the chrome says what is going on in plain words and gets out of the way.
   ====================================================================================================== */
.bar { gap: 18px; min-height: 62px; padding: 8px 10px 8px 12px; }
.brand__name { font-size: 25px; }
.brand__txt { gap: 5px; }
.chain { font-size: 10px; letter-spacing: 0.1em; padding: 3px 7px 3px 5px; }
.bar__mid { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; padding-left: 18px; border-left: 1px solid var(--rule-2); }
.bar__mid .stats { flex: 0 1 auto; padding-left: 0; border-left: 0; gap: 22px; }
.bar__mid .badge { flex: none; }
.badge__t { display: inline-block; }
.modeline { min-width: 0; max-width: 60ch; color: var(--ink-2); font-size: 13.5px; line-height: 1.35; text-wrap: balance; }
.badge--launched { background: linear-gradient(180deg, #123626, #0b2016); color: #bff5d6; box-shadow: inset 0 0 0 1.5px var(--up), 0 0 14px rgba(61, 220, 132, 0.18); transform: none; }
.badge--launched::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.22); }
.badge--pre { transform: none; }
.bar__right { gap: 6px; }
.feesbtn { height: 36px; }
.prooflink {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 10px; border-radius: 4px; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, var(--lacquer-4), var(--lacquer-2)); box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--gold);
  font: 500 11px/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase;
}
.prooflink:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-hi); }
.prooflink__i { display: inline-flex; }
.prooflink__t { color: var(--ink); }
.xlink { padding-inline: 10px; color: var(--ink); }
.xlink[hidden], #intro-xlink[hidden] { display: none; }
#intro-xlink svg { vertical-align: -2px; margin-right: 4px; }
.helpbtn { font: 400 19px/1 var(--font-poster); color: var(--poster); }
.feeds__btn { width: 36px; padding: 0; justify-content: center; }
.feeds__btn .dot { width: 9px; height: 9px; }
.bar.is-loading .modeline { color: transparent; }

/* Wall of Fame: calmer, and folds to a single plate */
.panel__head { padding: 14px 16px 2px; }
.panel__head h2 { font-size: 26px; }
.panel.is-collapsed .panel__head { padding: 12px 16px 12px; }
.panel.is-collapsed .panel__head h2 { font-size: 21px; }
.panel.is-collapsed .panel__orn { width: 18px; }
.lb__cap { font: 400 12px/1.35 var(--font-body); color: var(--ink-3); padding: 2px 8px 10px; }

/* the first-visit explainer */
.intro { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 20px; background: rgba(6, 4, 2, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: intro-in 0.28s var(--ease); }
.intro[hidden] { display: none; }
@keyframes intro-in { from { opacity: 0; } }
.intro__card { position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 30px 32px 24px; }
.intro__x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; z-index: 2; }
.intro__k { font: 500 11px/1 var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.intro__t { margin-top: 8px; padding-right: 36px; text-wrap: balance; font: 400 clamp(28px, 4vw, 38px)/1 var(--font-poster); letter-spacing: 0.015em; text-transform: uppercase; color: var(--poster); text-shadow: 0 2px 0 #000; }
.intro__steps { display: grid; gap: 10px; margin-top: 20px; counter-reset: none; }
.intro__step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 14px; border-radius: 5px; background: rgba(224, 184, 76, 0.05); box-shadow: inset 0 0 0 1px var(--rule-3); }
.intro__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brass-plate); color: #2a1a06; font: 400 18px/1 var(--font-poster); box-shadow: inset 0 0 0 1px #7a5a1c, 0 2px 6px rgba(0, 0, 0, 0.5); }
.intro__txt { display: grid; gap: 3px; }
.intro__txt b { font: 500 15px/1.25 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); }
.intro__txt span { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.intro__txt em { font-style: normal; color: var(--gold-hi); font-weight: 600; }
.intro__status { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border-radius: 4px; color: var(--cream); font-size: 13.5px; background: rgba(224, 184, 76, 0.08); box-shadow: inset 0 0 0 1px var(--rule-2); }
.intro__status:has(#intro-status-t:empty) { display: none; }
.intro__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--gold); box-shadow: 0 0 0 3px rgba(224, 184, 76, 0.2); }
.intro__status[data-mode="live"] .intro__dot { background: var(--down); box-shadow: 0 0 0 3px var(--down-bg), 0 0 8px rgba(255, 77, 79, 0.8); }
.intro__status[data-mode="launched"] .intro__dot { background: var(--up); box-shadow: 0 0 0 3px var(--up-bg); }
.intro__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.intro__actions .btn { padding: 10px 26px 9px; font-size: 12.5px; }
.intro__hint { margin-top: 14px; color: var(--ink-3); font-size: 12.5px; }
.intro__fine { margin-top: 6px; color: var(--ink-3); font-size: 11.5px; }
body.intro-open .toasts, body.intro-open .banners { visibility: hidden; }

/* the Fees card */
.card.is-fees .card__head { background: radial-gradient(130% 110% at 0% 0%, rgba(224, 184, 76, 0.18), transparent 55%), linear-gradient(180deg, rgba(31, 77, 58, 0.34), rgba(31, 77, 58, 0) 80%); }
.card.is-fees .token { margin-top: 10px; }

/* trader wallet line and venue tags */
.wline--trader { margin-top: 4px; }
.wline--trader .wline__s { font-size: 12px; }
.venue { display: inline-flex; align-items: center; padding: 2px 6px 1px; border-radius: 3px; font: 500 10px/1.3 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); background: rgba(224, 184, 76, 0.08); box-shadow: inset 0 0 0 1px var(--rule-2); white-space: nowrap; }
.sec__t .badge--live { font-size: 11px; padding: 3px 7px 2px; letter-spacing: 0.1em; }
.sec__t .badge--live::before { width: 6px; height: 6px; }

@media (max-width: 1280px) {
  .bar { gap: 14px; }
  .bar__mid { gap: 14px; padding-left: 14px; }
  .modeline { font-size: 12.5px; }
  .prooflink__t { display: none; }
  .prooflink { width: 36px; padding: 0; justify-content: center; }
}
@media (max-width: 1100px) {
  .brand__name { font-size: 22px; }
  .modeline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 900px) {
  .bar__mid .stat--spark { display: none; }
}
@media (max-width: 720px) {
  .bar { flex-wrap: wrap; gap: 8px 6px; padding: 8px 8px 9px 10px; min-height: 0; }
  .bar__right { display: contents; }
  .brand { order: 1; flex: 1 1 auto; gap: 8px; }
  .brand__mark svg { width: 32px; height: 32px; }
  .brand__name { font-size: 21px; }
  .chain { display: none; }
  .helpbtn { order: 2; }
  #lb-btn { order: 3; }
  #sound-btn { order: 4; }
  .feeds { display: none; }
  .bar__mid { order: 5; flex: 1 1 100%; gap: 10px; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--rule-2); }
  .bar__mid .badge { font-size: 11.5px; padding: 4px 7px 3px; }
  .bar__mid .badge__i { display: none; }
  .modeline { font-size: 11.5px; line-height: 1.3; -webkit-line-clamp: 3; }
  .bar__mid .stats { gap: 14px; flex: 1; justify-content: flex-end; }
  .stat__v { font-size: 20px; }
  .feesbtn { order: 6; flex: 1 1 40%; height: 32px; justify-content: center; }
  .feesbtn__i { display: inline-flex; }
  .prooflink { order: 7; flex: 1 1 40%; width: auto; height: 32px; justify-content: center; padding: 0 10px; }
  .prooflink__t { display: inline; }
  .intro { padding: 10px; align-items: end; }
  .intro__card { padding: 22px 18px 18px; max-height: calc(100vh - 20px); }
  .intro__t { font-size: 27px; }
  .intro__steps { gap: 8px; margin-top: 14px; }
  .intro__step { grid-template-columns: 28px minmax(0, 1fr); gap: 11px; padding: 10px 11px; }
  .intro__n { width: 28px; height: 28px; font-size: 15px; }
  .intro__txt b { font-size: 13.5px; }
  .intro__txt span { font-size: 12.5px; line-height: 1.45; }
  .intro__actions .btn { flex: 1 1 auto; }
  .intro__hint { font-size: 11.5px; }
}

/* token chip in the top bar: ticker (opens Pons) and the contract with a copy button */
.tokchip { display: inline-flex; align-items: center; gap: 7px; flex: none; margin-left: auto; height: 32px; padding: 0 4px 0 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rule-2); background: rgba(224, 184, 76, 0.05); }
.tokchip__sym { font: 400 16px/1 var(--font-poster); letter-spacing: 0.04em; color: var(--poster); text-decoration: none; }
.tokchip__sym:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.tokchip__k { font: 500 9.5px/1 var(--font-label); letter-spacing: 0.14em; color: var(--brass); }
.tokchip__ca { font-size: 12px; color: var(--cream); }
.tokchip .copybtn { width: 24px; height: 24px; box-shadow: none; }
@media (max-width: 1440px) { .tokchip__k { display: none; } }
@media (max-width: 1180px) { .tokchip { display: none; } }

.intro__token { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; padding: 10px 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rule-2); background: rgba(0, 0, 0, 0.18); }
.intro__tsym { font: 400 19px/1 var(--font-poster); letter-spacing: 0.04em; color: var(--poster); }
.intro__tk { font: 500 10px/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.intro__tca { font-size: 12.5px; color: var(--cream); }
.intro__tbuy { margin-left: auto; padding: 6px 18px 5px; }
body.intro-open .toasts { visibility: visible; z-index: 170; }
.fees__hero .hero__row { flex-wrap: wrap; row-gap: 6px; }
.fees__hero .hero__main { flex-wrap: wrap; row-gap: 2px; }
.fees__v { font-size: clamp(40px, 3.3vw, 50px); }
.fees__hero .hero__lbl { font-size: 21px; }

.tape__empty { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 720px) { .tape__empty { font-size: 14px; padding: 0 10px; } .tape__pre { display: none; } }
/* tablets before trading: the plain status line gets its own row instead of being squeezed out */
@media (min-width: 721px) and (max-width: 1000px) {
  .bar[data-mode="prelaunch"], .bar[data-mode="launched"] { flex-wrap: wrap; row-gap: 8px; }
  .bar[data-mode="prelaunch"] .bar__right, .bar[data-mode="launched"] .bar__right { margin-left: auto; }
  .bar[data-mode="prelaunch"] .bar__mid, .bar[data-mode="launched"] .bar__mid { order: 9; flex: 1 1 100%; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--rule-2); }
  .bar[data-mode="prelaunch"] .modeline, .bar[data-mode="launched"] .modeline { -webkit-line-clamp: 1; }
}
.fees__proof { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 22px; padding: 11px 12px; border-radius: 5px; text-decoration: none; color: var(--ink-2); background: rgba(31, 77, 58, 0.22); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.3); }
.fees__proof:hover { box-shadow: inset 0 0 0 1px var(--up); background: rgba(31, 77, 58, 0.36); }
.fees__proof b { display: block; font: 500 12px/1.2 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; color: #a4f3c8; }
.fees__proof span span { font-size: 12.5px; line-height: 1.4; }
.fees__proofi, .fees__proofx { display: inline-flex; color: #a4f3c8; justify-content: center; }
.fees__upd { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.fees__upd::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 2px var(--up-bg); }
.fees__upd.is-stale::before { background: var(--warn); box-shadow: 0 0 0 2px rgba(255, 184, 77, 0.2); }
.bar__mid .stat { flex: none; }
@media (max-width: 1400px) { .bar__mid .stat .since { display: none; } }
/* the equity sparkline is the one thing in the bar that may shrink, so nothing ever overlaps */
.bar__mid .stats { flex: 0 1 auto; min-width: 0; }
.bar__mid .stat--spark { flex: 0 1 112px; min-width: 0; overflow: hidden; }
.bar__mid .stat--spark .stat__chart { width: 112px; }
@media (max-width: 1320px) { .bar[data-mode="live"] .tokchip, .bar[data-mode="paper"] .tokchip { display: none; } }
@media (max-width: 1400px) { .modeline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; } }
/* tablets and small laptops while trading: firm equity and Today get their own row, so the Fees button never sits on them */
@media (min-width: 721px) and (max-width: 1080px) {
  .bar[data-mode="live"], .bar[data-mode="paper"] { flex-wrap: wrap; row-gap: 8px; }
  .bar[data-mode="live"] .bar__right, .bar[data-mode="paper"] .bar__right { margin-left: auto; }
  .bar[data-mode="live"] .bar__mid, .bar[data-mode="paper"] .bar__mid { order: 9; flex: 1 1 100%; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--rule-2); }
  .bar[data-mode="live"] .bar__mid .stats, .bar[data-mode="paper"] .bar__mid .stats { flex: 1 1 auto; justify-content: flex-end; }
  .bar[data-mode="live"] .bar__mid .stat--spark, .bar[data-mode="paper"] .bar__mid .stat--spark { display: flex; }
  .bar[data-mode="live"] .stat__v, .bar[data-mode="paper"] .stat__v { font-size: 22px; }
}

/* ======================================================================================================
   Buyback and burn (BUYBACK-SPEC, 2026-09-30): ember accents on the gold. The burn counter in the top bar, the fifth
   step of the money strip, the Buyback block in the Fees card and the lobby mini line.
   ====================================================================================================== */
:root { --ember: #ff8a3d; --ember-hi: #ffc08a; --ember-bg: rgba(255, 138, 61, 0.1); --ember-rule: rgba(255, 138, 61, 0.42); }
.burnbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px 0 9px; border: 0; border-radius: 4px; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #2b1309, #160904); box-shadow: inset 0 0 0 1px var(--ember-rule); color: var(--ember);
}
.burnbtn[hidden] { display: none; }
.burnbtn:hover { box-shadow: inset 0 0 0 1px var(--ember); color: var(--ember-hi); }
.burnbtn__i { display: inline-flex; }
.burnbtn__v { font: 700 13px/1 var(--font-money); color: var(--cream); }
.burnbtn__k { font: 500 11px/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 1280px) { .burnbtn__k { display: none; } .burnbtn { padding: 0 10px 0 8px; } }
@media (max-width: 720px) {
  .burnbtn { order: 6; height: 32px; flex: 0 0 auto; padding: 0 9px 0 8px; gap: 5px; }
  .burnbtn__k { display: none; }
  .bar:has(#burn-btn:not([hidden])) .feesbtn, .bar:has(#burn-btn:not([hidden])) .prooflink { flex-basis: 30%; min-width: 0; }
  .bar:has(#burn-btn:not([hidden])) .prooflink { padding: 0 8px; }
}
@media (max-width: 420px) { .bb__addr .wline__s { display: none; } }

.flow__step--bb { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 4px 10px; background: var(--ember-bg); box-shadow: inset 0 0 0 1px var(--ember-rule); }
.flow__step--bb[hidden] { display: none; }
.flow__step.flow__step--bb::before { display: none; }
.flow__step--bb .flow__ico, .flow__step--bb .flow__n { color: var(--ember); }
.flow__step--bb .flow__t { white-space: nowrap; }
.flow__step--bb .flow__s { color: var(--ink-2); }
@media (max-width: 720px) { .flow__step--bb { grid-template-columns: auto minmax(0, 1fr); } .flow__step--bb .flow__s { grid-column: 1 / -1; } }

.bb { margin-top: 4px; }
.bb[hidden] { display: none; }
.bb .sec__t { display: flex; align-items: center; gap: 8px; }
.bb__state { margin-left: auto; padding: 4px 8px 3px; border-radius: 3px; font: 500 10px/1 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); background: var(--ember-bg); box-shadow: inset 0 0 0 1px var(--ember-rule); white-space: nowrap; }
.bb__state[data-tone="soon"] { color: var(--gold); background: rgba(224, 184, 76, 0.08); box-shadow: inset 0 0 0 1px var(--rule-2); }
.bb__state[data-tone="warn"] { color: var(--warn); background: rgba(255, 184, 77, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 184, 77, 0.45); }
.bb__rule { margin: 2px 0 10px; color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.bb__tiles .tile__v { font-size: 21px; }
.bb__tiles .tile__v[data-unit]::after { content: " " attr(data-unit); font: 500 11px/1 var(--font-label); letter-spacing: 0.1em; color: var(--ink-3); }
.bb__tiles .tile.is-burn .tile__v { color: var(--ember-hi); }
.bb__tiles .tile.is-burn .tile__v::after { content: none; }
.bb__addr .wline__ico { color: var(--ember); }
.bb__lt { margin: 14px 0 6px; font: 500 10.5px/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.bb__lt[hidden] { display: none; }
.bb__row .ledger__ico { color: var(--ember); }
.bb__row .ledger__amt { color: var(--cream); }
.bb__row .ledger__line { flex-wrap: wrap; column-gap: 4px; }
.bb__got { color: var(--ember-hi); font-size: 12.5px; }
.bb__tx { display: flex; flex-direction: column; gap: 3px; align-items: stretch; }
.bb__tx .chip { justify-content: space-between; }
.feemini__burn { display: inline-flex; align-items: center; gap: 5px; color: var(--ember-hi) !important; }
.feemini__burn[hidden] { display: none; }
.feemini__burn .ico { width: 13px; height: 13px; color: var(--ember); }
.intro__step--bb .intro__n { background: linear-gradient(180deg, #ffb27a, var(--ember) 55%, #b4521c); box-shadow: inset 0 0 0 1px #7a3310, 0 2px 6px rgba(0, 0, 0, 0.5); }
.intro__step--bb { background: var(--ember-bg); box-shadow: inset 0 0 0 1px var(--ember-rule); }
/* a buyback on the LED tape burns a little hotter than a fill */
.tchip--bb .tchip__who { color: #ffb37a; text-shadow: 0 0 6px rgba(255, 120, 40, 0.8), 0 0 14px rgba(255, 90, 20, 0.4); }
.tchip__amt.tchip__burn { color: #ff9a4d; text-shadow: 0 0 6px rgba(255, 110, 30, 0.85), 0 0 16px rgba(255, 80, 20, 0.45); }
.extra--ember { box-shadow: 0 0 0 2px var(--ember), 0 0 0 6px #0f0b08, 0 0 0 7px rgba(255, 138, 61, 0.5), 0 34px 70px rgba(0, 0, 0, 0.7), 0 0 80px rgba(255, 138, 61, 0.16); }
.extra--ember .extra__k { background: #a8481a; }
.extra--ember .extra__h { color: var(--ember-hi); }
.bb__state[data-tone="now"] { display: inline-flex; align-items: center; gap: 6px; color: #fff0e2; background: rgba(255, 138, 61, 0.22); box-shadow: inset 0 0 0 1px var(--ember); }
.bb__state[data-tone="now"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: wst-onair 1.2s ease-in-out infinite; }
