/* SPDX-License-Identifier: GPL-3.0-or-later */
/* STEER · "Meldan, Snowmoon night": deep ink, one emerald accent, warm amber windows, violet only in the air. */

:root {
  --ink-0: #05070d;
  --ink-1: #0b1020;
  --ink-2: #10162b;
  --ink-3: #161e38;
  --text: #eef3ff;
  --muted: #8b95b5;
  --faint: #7a84a3;       /* small text: 5.4:1 on ink-0, 4.9:1 on panels */
  --faint-2: #5d6788;     /* decorative ghost content only */
  --line: rgba(170, 186, 255, 0.09);
  --line-2: rgba(170, 186, 255, 0.16);
  --emerald: #34f5b0;
  --emerald-d: #1fc58b;
  --emerald-a: rgba(52, 245, 176, 0.14);
  --violet: #7c6cff;
  --amber: #ffc979;
  --red: #ff6b7d;
  --d-kalimar: #ffc979;
  --d-clearhill: #ffdcae;
  --d-pafogai: #9fe4ff;
  --d-east: #d9e4ff;
  --d-plum: #c6b6ff;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 14px;
  --gut: 32px;
  --max: 1240px;
  --top: 64px;
  --notice: 0px;          /* height of the site-wide notice under the header (set by main.js), 0 without one */
  color-scheme: dark;
}
@media (max-width: 760px) { :root { --gut: 16px; --top: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + var(--notice) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--ink-0); color: var(--text);
  font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p a, .sub a, .doc a, .pc-links a, .link { color: var(--text); text-decoration: underline; text-decoration-color: rgba(52, 245, 176, 0.55); text-underline-offset: 3px; }
p a:hover, .doc a:hover, .link:hover { text-decoration-color: var(--emerald); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: 20px; }
p { margin: 0; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.em { color: var(--emerald); }
.ok { color: var(--emerald); }
.warn { color: var(--amber); }
.bad { color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--emerald); color: #04110c; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; border-radius: 6px; }
.btn-primary:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.lg:focus-visible, .chip:focus-visible { outline-offset: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.row { display: flex; align-items: center; }
.gap8 { gap: 8px; } .wrap-row { flex-wrap: wrap; } .mt12 { margin-top: 12px; }
.pad { padding: 18px 4px; }
.tba { font-family: var(--sans); font-size: 0.78em; font-weight: 500; letter-spacing: 0.01em; color: var(--muted); white-space: nowrap; }
.tba::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; vertical-align: 0.12em; background: var(--faint); }
/* a number being read: a shimmer bar the size of a value */
.sk-v { display: inline-block; width: 7ch; height: 0.9em; border-radius: 5px; vertical-align: middle; background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
/* last good numbers after a failed read */
.stale .stat-v, .stale dd { opacity: 0.55; }
.readline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -6px 0 18px; font-size: 13px; }
/* units next to numbers: smaller and muted, so the digits carry the column */
.u { font: 500 0.8em var(--mono); letter-spacing: 0; color: var(--muted); }
.readfail { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font-size: 13px; font-family: var(--sans); }
.readfail i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 1.4s infinite; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52, 245, 176, 0.6); animation: ping 2.4s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 245, 176, 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(52, 245, 176, 0); } }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ───────── stage (the city backdrop) ───────── */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--ink-0); overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: filter 0.6s ease, opacity 0.6s ease, transform 1.2s ease; }
.stage-shade { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.6s ease, background 0.6s ease; }
body[data-stage="ambient"] .stage-shade {
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.84) 0%, rgba(5, 7, 13, 0.6) 34%, rgba(5, 7, 13, 0.3) 48%, rgba(5, 7, 13, 0) 64%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.55) 0%, rgba(5, 7, 13, 0) 18%, rgba(5, 7, 13, 0) 62%, rgba(5, 7, 13, 0.92) 100%);
}
body[data-stage="interactive"] .stage-shade { background: linear-gradient(180deg, rgba(5, 7, 13, 0.6) 0%, rgba(5, 7, 13, 0) 16%, rgba(5, 7, 13, 0) 80%, rgba(5, 7, 13, 0.5) 100%); }
body[data-stage="interactive"] .stage { z-index: 1; }
body[data-stage="still"] .stage canvas { filter: blur(10px) saturate(0.85) brightness(0.8); transform: scale(1.04); }
body[data-stage="still"] .stage-shade { background: linear-gradient(180deg, rgba(5, 7, 13, 0.55), rgba(5, 7, 13, 0.9) 55%, rgba(5, 7, 13, 0.97)); }
@media (max-width: 760px) {
  body[data-stage="ambient"] .stage-shade { background: linear-gradient(180deg, rgba(5, 7, 13, 0.8) 0%, rgba(5, 7, 13, 0.62) 44%, rgba(5, 7, 13, 0.1) 60%, rgba(5, 7, 13, 0.95) 100%); }
}

/* ───────── header ───────── */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--top); transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease; border-bottom: 1px solid transparent; }
body.scrolled .top, body:not([data-route="home"]):not([data-route="city"]) .top, body.menu-open .top {
  background: rgba(6, 8, 16, 0.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line);
}
.top-in { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--sans); letter-spacing: 0.22em; }
.mark { width: 26px; height: 26px; fill: var(--text); }
.mark rect:nth-child(1), .mark rect:nth-child(3) { opacity: 0.5; }
.mark .beam { fill: var(--emerald); filter: drop-shadow(0 0 4px rgba(52, 245, 176, 0.9)); }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a.on { color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.top-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.clock { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 14, 28, 0.5); font-size: 13px; }
.clock .mono { min-width: 50px; text-align: right; }
.clock small { color: var(--muted); font-size: 12px; }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(10, 14, 28, 0.5); position: relative; cursor: pointer; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform 0.25s; }
.menu-btn i:first-child { top: 15px; } .menu-btn i:last-child { top: 21px; }
body.menu-open .menu-btn i:first-child { transform: translateY(3px) rotate(45deg); }
body.menu-open .menu-btn i:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (max-width: 900px) {
  .clock { display: none; }
  .menu-btn { display: block; }
  /* .top has a backdrop-filter, so it is the containing block of this fixed drawer: size it by height, not bottom */
  .nav { position: fixed; top: var(--top); left: 0; right: 0; height: calc(100dvh - var(--top)); overflow-y: auto; flex-direction: column; gap: 0; padding: 12px var(--gut) calc(24px + env(safe-area-inset-bottom)); background: var(--ink-0); border-top: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
  body.menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .nav a { padding: 14px 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav a.on { background: none; box-shadow: none; color: var(--emerald); }
}

/* site-wide notice under the header (main.js): the Order's code changed in the last 7 days. It sits below the nav
   (the phone menu opens over it) and main.js publishes its height as --notice, so nothing slides under it. */
.upnote { position: fixed; top: var(--top); left: 0; right: 0; z-index: 29; border-bottom: 1px solid rgba(255, 201, 121, 0.4); background: linear-gradient(90deg, rgba(255, 201, 121, 0.17), rgba(255, 201, 121, 0.07) 62%, rgba(255, 201, 121, 0.04)), rgba(9, 9, 13, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9); }
.upnote-in { max-width: 1440px; margin: 0 auto; padding: 9px var(--gut); display: flex; align-items: center; gap: 10px; }
.upnote-in > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(255, 201, 121, 0.85); animation: pulse 1.6s infinite; }
.upnote p { min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.upnote p b { font-weight: 600; }
.upnote a { color: var(--amber); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 201, 121, 0.55); text-underline-offset: 3px; white-space: nowrap; }
.upnote a:hover { text-decoration-color: var(--amber); }
.upnote a::after { content: ' →'; }
@media (max-width: 760px) {
  .upnote-in { align-items: flex-start; padding: 8px var(--gut); gap: 9px; }
  .upnote-in > i { margin-top: 6px; }
  .upnote p { font-size: 12.5px; line-height: 1.5; }
  .upnote .upnote-t { display: none; } /* the time of day stays on the Order page; the date is enough here */
}

/* ───────── buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: 600 14px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.15s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-primary { background: var(--emerald); color: #03120c; box-shadow: 0 0 0 1px rgba(52, 245, 176, 0.4), 0 8px 30px -8px rgba(52, 245, 176, 0.55); }
.btn-primary:hover { background: #5affc4; box-shadow: 0 0 0 1px rgba(52, 245, 176, 0.6), 0 10px 40px -6px rgba(52, 245, 176, 0.7); }
.btn-primary:disabled { background: rgba(52, 245, 176, 0.14); color: rgba(220, 255, 240, 0.55); box-shadow: inset 0 0 0 1px rgba(52, 245, 176, 0.2); cursor: not-allowed; transform: none; }
.btn-ghost { background: rgba(14, 19, 38, 0.55); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(170, 186, 255, 0.32); background: rgba(22, 30, 56, 0.7); }
.btn-ghost:disabled { color: var(--faint); cursor: not-allowed; }
.btn-wallet { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--text); color: #070a14; font-size: 13px; }
.btn-wallet:hover { background: #fff; box-shadow: 0 0 24px -4px rgba(238, 243, 255, 0.5); }
.btn-wallet.is-on { background: rgba(14, 19, 38, 0.7); color: var(--text); border-color: var(--line-2); font-family: var(--mono); font-weight: 500; }
.btn-wallet.is-warn { background: var(--amber); color: #1a1205; }
.btn-wallet .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.link { font-size: 13px; color: var(--muted); text-decoration: none; }
.link::after { content: ' →'; }
.link:hover { color: var(--text); }

/* ───────── surfaces ───────── */
.glass { background: linear-gradient(180deg, rgba(18, 24, 46, 0.62), rgba(10, 14, 28, 0.62)); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 80px -40px rgba(0, 0, 0, 0.8); }
.panel { position: relative; background: linear-gradient(180deg, rgba(16, 21, 40, 0.86), rgba(9, 12, 24, 0.86)); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035); min-width: 0; }
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.kicker { font: 500 11px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.shead { max-width: 720px; margin-bottom: 28px; }
.shead h2 { font: 400 clamp(32px, 4.2vw, 52px)/1.04 var(--serif); letter-spacing: -0.01em; }
.shead .sub { color: var(--muted); margin-top: 14px; font-size: 16px; max-width: 600px; }
.two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 981px) { .band .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 980px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* stats */
.statrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { padding: 18px 22px; min-width: 0; }
.statrow .stat + .stat, .statgrid .stat { border-left: 1px solid var(--line); }
.stat-k { font: 500 11px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat-v { margin-top: 10px; font-size: 24px; line-height: 1.15; font-weight: 500; min-height: 28px; display: flex; align-items: center; white-space: nowrap; }
.stat-v .mono { font-size: 24px; }
.stat-v .u { font-size: 13px; }
.stat-s { margin-top: 6px; color: var(--faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 980px) {
  .statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statrow .stat { border-left: 0; border-top: 1px solid var(--line); }
  .statrow .stat:nth-child(2n) { border-left: 1px solid var(--line); }
  .statrow .stat:nth-child(-n + 2) { border-top: 0; }
  .statrow .stat:last-child { grid-column: 1 / -1; border-left: 0; }
  .stat { padding: 14px 16px; }
  .stat-v, .stat-v .mono { font-size: 19px; }
}

/* ───────── page enter ───────── */
main { position: relative; z-index: 2; min-height: 100vh; outline: none; }
body[data-stage="interactive"] main { z-index: 3; pointer-events: none; }
main.enter > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ───────── hero ───────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--top) + var(--notice) + 40px) 0 28px; }
.hero-in { position: relative; padding-bottom: 36px; }
.dateline { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(238, 243, 255, 0.78); padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(6, 9, 18, 0.45); backdrop-filter: blur(10px); }
.dateline .sep { color: var(--faint); }
.dateline .mono { color: var(--text); letter-spacing: 0.04em; }
.display { font: 400 clamp(68px, 11.5vw, 172px)/0.86 var(--serif); letter-spacing: -0.025em; margin: 26px 0 24px -0.04em; text-shadow: 0 10px 60px rgba(0, 0, 0, 0.5); }
.display em { font-style: italic; background: linear-gradient(100deg, #ffffff 30%, #d9fff0 60%, #7df9cf 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.lede { position: relative; max-width: 560px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: rgba(238, 243, 255, 0.9); text-shadow: 0 1px 2px rgba(5, 7, 13, 0.85), 0 0 16px rgba(5, 7, 13, 0.6); }
/* a soft dark plate behind the lede keeps it readable over lit windows and beams without dimming the skyline */
.lede::before { content: ''; position: absolute; inset: -34px -70px -34px -48px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(5, 7, 13, 0.74), rgba(5, 7, 13, 0.5) 58%, rgba(5, 7, 13, 0)); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { position: relative; }
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--top) + var(--notice) + 18px); justify-content: flex-start; min-height: 0; }
  .hero-in { min-height: calc(100svh - var(--top) - var(--notice) - 18px); padding-bottom: 0; }
  .hero-stats { margin-top: -64px; }
  .statrow .stat-s { display: none; }
  .display { font-size: clamp(60px, 18vw, 92px); margin: 20px 0 16px; }
  .dateline { font-size: 10.5px; letter-spacing: 0.08em; gap: 7px; }
  .dateline .place, .dateline .place + .sep { display: none; }
  .lede { font-size: 15.5px; }
  .lede::before { inset: -18px -10px; }
  .cta .btn-lg { flex: 1 1 auto; }
}

/* ───────── home sections ───────── */
.band { position: relative; padding: 56px 0 24px; background: linear-gradient(180deg, rgba(5, 7, 13, 0.92), var(--ink-0) 40%); }
body[data-route="home"] main > section:not(.hero) { position: relative; background: var(--ink-0); }
body[data-route="home"] main > section.band { background: linear-gradient(180deg, rgba(5, 7, 13, 0.0), var(--ink-0) 120px); }
.how { padding-top: 72px; padding-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; padding: 26px 24px 26px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(16, 21, 40, 0.7), rgba(9, 12, 24, 0.4)); overflow: hidden; }
.step::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(52, 245, 176, 0.5), transparent); }
.step-n { display: block; color: var(--emerald); font-size: 12px; letter-spacing: 0.12em; }
.step h3 { margin: 18px 0 10px; font: 400 30px/1.05 var(--serif); }
.step p { color: var(--muted); font-size: 14.5px; }
.loop { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 24px 26px; margin-top: 16px; }
.loop p:not(.kicker) { color: var(--muted); font-size: 14.5px; }
.loop-d { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.loop-d span { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 14, 28, 0.6); }
.loop-d span:last-child { border-color: rgba(52, 245, 176, 0.45); color: var(--emerald); }
.loop-d i { width: 18px; height: 1px; background: var(--line-2); position: relative; }
.loop-d i::after { content: ''; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left-color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .loop { grid-template-columns: 1fr; gap: 18px; } }

.epi-band { padding: 72px var(--gut); display: flex; justify-content: center; }
.epigraph { margin: 0; max-width: 920px; text-align: center; }
.epigraph blockquote { margin: 0; font: italic 400 clamp(24px, 3vw, 38px)/1.28 var(--serif); color: rgba(238, 243, 255, 0.92); letter-spacing: -0.005em; }
.epigraph figcaption { margin-top: 18px; font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.epigraph figcaption span { color: var(--text); }
.epigraph.big blockquote::before { content: ''; display: block; width: 1px; height: 48px; margin: 0 auto 26px; background: linear-gradient(180deg, transparent, var(--emerald)); box-shadow: 0 0 12px var(--emerald); }
.epigraph.side, .epigraph.mini { text-align: left; margin-top: 18px; }
.epigraph.side blockquote { font-size: 21px; }
.epigraph.mini blockquote { font-size: 19px; }
.epigraph.center { margin: 64px auto; }
.epigraph.feed-epi { margin: 40px auto 0; }
.epigraph.feed-epi blockquote { font-size: 24px; }

.districts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.district { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(16, 21, 40, 0.8), rgba(9, 12, 24, 0.6)); min-height: 228px; overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.district::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--dc); opacity: 0.7; box-shadow: 0 0 18px var(--dc); }
.district::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--dc), transparent 70%); opacity: 0.08; }
.district:hover { border-color: var(--line-2); transform: translateY(-2px); }
.district h3 { font: 400 28px/1.05 var(--serif); }
.district p { color: var(--muted); font-size: 13.5px; flex: 1; }
.d-pair { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dc); }
.d-count { font-size: 13px; color: var(--muted); }
.d-count b { color: var(--text); font-size: 18px; font-weight: 500; margin-right: 4px; }
[data-d="kalimar"] { --dc: var(--d-kalimar); } [data-d="clearhill"] { --dc: var(--d-clearhill); } [data-d="pafogai"] { --dc: var(--d-pafogai); } [data-d="east"] { --dc: var(--d-east); } [data-d="plum"] { --dc: var(--d-plum); }
@media (max-width: 1100px) { .districts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .districts { grid-template-columns: 1fr; } .district { min-height: 0; } }
.final { padding: 24px var(--gut) 96px; }
.final-in { padding: 56px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; background: radial-gradient(ellipse at 50% 120%, rgba(52, 245, 176, 0.12), transparent 60%), linear-gradient(180deg, rgba(18, 24, 46, 0.62), rgba(10, 14, 28, 0.62)); }
.display-s { font: 400 clamp(34px, 4.6vw, 60px)/1.02 var(--serif); max-width: 760px; }
.final .cta { justify-content: center; }

/* coin atoms */
.coin { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.coin-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.coin-t b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-t small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci { position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 50%; overflow: hidden; background: var(--ink-3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.ci img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ci-fb { position: absolute; inset: 0; display: grid; place-items: center; font: 600 calc(var(--s) * 0.42) var(--sans); color: hsl(var(--h) 70% 82%); background: radial-gradient(circle at 30% 25%, hsl(var(--h) 45% 30%), hsl(var(--h) 40% 12%)); }
.pair { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--dc) 35%, transparent); background: color-mix(in srgb, var(--dc) 8%, transparent); color: var(--dc); font: 500 11.5px/1 var(--mono); white-space: nowrap; }
.pair i { display: none; font-style: normal; color: var(--muted); }
.chg.up { color: var(--emerald); } .chg.down { color: var(--red); }
.spark { display: block; overflow: visible; }
.spark path { fill: none; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.spark.up path { stroke: var(--emerald); filter: drop-shadow(0 0 3px rgba(52, 245, 176, 0.45)); }
.spark.down path { stroke: var(--red); opacity: 0.85; }
.spark-flat { stroke: var(--faint-2); stroke-dasharray: 2 3; }

/* tower list */
.tlist { display: flex; flex-direction: column; }
.trow { display: grid; grid-template-columns: 22px minmax(110px, 1fr) auto 72px 72px 62px; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--line); transition: background 0.2s; border-radius: 8px; }
@media (max-width: 1200px) and (min-width: 981px) { .trow { grid-template-columns: 22px minmax(110px, 1fr) auto 72px 62px; } .trow-s { display: none; } }
.trow:first-child { border-top: 0; }
.trow:hover { background: rgba(255, 255, 255, 0.03); }
.trow-i { color: var(--faint); font-size: 12px; }
.trow-m, .trow-c { text-align: right; font-size: 13.5px; }
@media (max-width: 560px) { .trow { grid-template-columns: 22px minmax(0, 1fr) 70px 58px; } .trow-p, .trow-s { display: none; } }

/* steering board: laid out by its own width (container queries), so it fits a full-width panel, the home and steer
   side columns and a phone. Symbols and names wrap rather than truncate; numbers are tabular, fixed-decimal and
   right-aligned in fixed tracks, so magnitudes line up row to row. Header cells: rank, coin, pair, burned, weight, buy.
   ≥ 700 px: all six columns · 400–699 px: rank, coin, burned, est. buy (weight as a hairline under the row) ·
   < 400 px: rank, coin, and burned over est. buy */
.btable { display: flex; flex-direction: column; container-type: inline-size; }
.bhead, .brow { display: grid; grid-template-columns: 36px minmax(150px, 1.3fr) 112px 108px minmax(110px, 1fr) 96px; gap: 12px; align-items: center; }
.bhead { padding: 0 6px 10px; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.bhead span { white-space: nowrap; }
.bhead .s { display: none; }
.bfoot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 6px 0; font-size: 12.5px; color: var(--muted); }
.bfoot .link { white-space: nowrap; }
.bhead span:nth-child(4), .bhead span:nth-child(5), .bhead span:nth-child(6), .brow-b, .brow-e { text-align: right; }
.brow { position: relative; padding: 11px 6px; border-bottom: 1px solid var(--line); border-radius: 8px; transition: background 0.2s; }
.brow:hover { background: rgba(52, 245, 176, 0.04); }
.brow-r { color: var(--emerald); font-size: 13px; }
.brow .coin-t b, .brow .coin-t small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.brow .coin-t small { margin-top: 1px; }
.brow-b, .brow-e { font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.brow .u { font-size: 10.5px; letter-spacing: 0.04em; }
.brow-w { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.brow-w > .mono { min-width: 5.5ch; text-align: right; }
.meter { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald-d), var(--emerald)); box-shadow: 0 0 10px var(--emerald); border-radius: 4px; }
@container (max-width: 699px) {
  .bhead, .brow { grid-template-columns: 28px minmax(0, 1fr) 106px 92px; gap: 10px; }
  .bhead span:nth-child(3), .bhead span:nth-child(5), .brow-p { display: none; }
  .bhead .l { display: none; } .bhead .s { display: inline; }
  .brow-w { position: absolute; left: 44px; right: 6px; bottom: -1px; height: 2px; pointer-events: none; }
  .brow-w > .mono { display: none; }
  .brow-w .meter { height: 2px; border-radius: 0; background: none; }
  .brow-w .meter i { border-radius: 0; box-shadow: none; opacity: 0.65; }
  .ghost-row .brow-w { display: none; }
}
@container (max-width: 399px) {
  .bhead, .brow { grid-template-columns: 24px minmax(0, 1fr) 106px; grid-template-areas: 'r c b' 'r c e'; column-gap: 10px; row-gap: 2px; }
  .bhead span:nth-child(1), .brow-r { grid-area: r; }
  .bhead span:nth-child(2), .brow .coin, .brow .ghost-coin { grid-area: c; }
  .bhead span:nth-child(4), .brow-b { grid-area: b; }
  .bhead span:nth-child(6), .brow-e { grid-area: e; }
  .brow-e { font-size: 12.5px; color: var(--muted); }
  .brow-w { left: 40px; }
}

/* board placeholder: open slots under a note */
.btable.ghost { position: relative; }
.ghost-rows { -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%); }
.ghost-row { color: var(--faint-2); }
.ghost-row .brow-r { color: rgba(52, 245, 176, 0.45); }
.ghost-coin { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.ghost-coin i { width: 26px; height: 26px; border-radius: 50%; border: 1px dashed var(--faint-2); opacity: 0.6; }
.ghost-row .meter { background: rgba(255, 255, 255, 0.035); }
.ghost-note { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); width: min(400px, 92%); padding: 20px 22px; text-align: center; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(8, 11, 22, 0.88); backdrop-filter: blur(8px); box-shadow: 0 20px 60px -20px #000; }
.ghost-note h4 { font: 400 24px/1.1 var(--serif); }
.ghost-note p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.ghost-note .btn { margin-top: 14px; }

/* empty + skeleton */
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px 4px 10px; }
.empty h4 { font: 400 24px/1.1 var(--serif); }
.empty p { color: var(--muted); font-size: 14px; max-width: 460px; }
.empty .btn { margin-top: 10px; }
.empty-mark { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-bottom: 8px; }
.empty-mark i { width: 7px; border-radius: 2px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.empty-mark i:nth-child(1) { height: 14px; } .empty-mark i:nth-child(2) { height: 26px; position: relative; } .empty-mark i:nth-child(3) { height: 18px; }
.empty-mark i:nth-child(2)::after { content: ''; position: absolute; left: 3px; bottom: 30px; width: 1px; height: 0; background: var(--emerald); box-shadow: 0 0 6px var(--emerald); animation: beam 3s ease-in-out infinite; }
@keyframes beam { 0%, 100% { height: 0; opacity: 0; } 50% { height: 22px; opacity: 1; } }
.sk-row { display: grid; grid-template-columns: 28px 1fr 80px; gap: 14px; padding: 13px 4px; border-top: 1px solid var(--line); }
.sk-row:first-child { border-top: 0; }
.sk-row i { height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ───────── inner pages ───────── */
.page { padding-top: calc(var(--top) + var(--notice) + 56px); padding-bottom: 80px; }
.phero { max-width: 760px; margin-bottom: 36px; }
.phero h1 { font: 400 clamp(46px, 6.2vw, 84px)/0.98 var(--serif); letter-spacing: -0.02em; outline: none; }
.phero .sub { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 620px; }
@media (max-width: 760px) { .page { padding-top: calc(var(--top) + var(--notice) + 32px); } .phero { margin-bottom: 26px; } .phero .sub { font-size: 15.5px; } }

/* steer */
.steer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 980px) { .steer-grid { grid-template-columns: 1fr; } }
.sform { display: flex; flex-direction: column; gap: 22px; padding: 26px; }
.notice { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); box-shadow: inset 2px 0 0 var(--emerald); color: rgba(238, 243, 255, 0.88); font-size: 14px; }
.notice b { color: var(--text); }
.field { display: flex; flex-direction: column; gap: 10px; }
.flabel { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.flabel label { font: 500 11.5px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.flabel .over { color: var(--red); }
.inp { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(5, 7, 14, 0.6); transition: border-color 0.2s, box-shadow 0.2s; }
.inp:focus-within { border-color: rgba(52, 245, 176, 0.6); box-shadow: 0 0 0 4px rgba(52, 245, 176, 0.1); }
.inp input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: 500 16px var(--sans); }
.inp input::placeholder, textarea::placeholder { color: var(--faint); }
.inp svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; flex: none; }
.amt input { font: 500 22px var(--mono); }
.amt .unit { color: var(--muted); font: 500 13px var(--mono); }
textarea { width: 100%; resize: vertical; min-height: 84px; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(5, 7, 14, 0.6); color: var(--text); font: 400 15px/1.5 var(--sans); outline: 0; transition: border-color 0.2s, box-shadow 0.2s; }
textarea:focus { border-color: rgba(52, 245, 176, 0.6); box-shadow: 0 0 0 4px rgba(52, 245, 176, 0.1); }
input:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.picker { position: relative; display: flex; flex-direction: column; gap: 10px; }
.sres { position: absolute; z-index: 5; top: 56px; left: 0; right: 0; max-height: 360px; overflow: auto; padding: 6px; border-radius: 12px; border: 1px solid var(--line-2); background: #0a0d1a; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9); }
.sres button { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 70px; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.sres button:hover { background: rgba(255, 255, 255, 0.05); }
.sres button:focus { outline: 0; }
.sres button:focus-visible, .c-results button:focus-visible { outline: 0; background: rgba(52, 245, 176, 0.08); box-shadow: inset 0 0 0 1px rgba(52, 245, 176, 0.55); }
.r-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.r-t b { font-size: 14px; } .r-t small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-p { font: 500 11.5px var(--mono); color: var(--muted); }
.sres .mono { text-align: right; font-size: 13px; }
.sres .none { padding: 14px; color: var(--muted); font-size: 14px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(12, 16, 32, 0.6); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: border-color 0.2s; }
.chip:hover { border-color: rgba(52, 245, 176, 0.5); }
.pcard { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(52, 245, 176, 0.35); background: linear-gradient(90deg, rgba(52, 245, 176, 0.07), rgba(12, 16, 32, 0.6)); }
.pc-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pc-t b { font-size: 17px; } .pc-t small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-m { font-size: 14px; }
.pc-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; }
.pc-links .mono { margin-left: auto; }
@media (max-width: 560px) { .pcard { grid-template-columns: 36px minmax(0, 1fr) auto; } .pcard .pair, .pc-m { display: none; } .pc-links .mono { margin-left: 0; } }
.preview { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 7, 14, 0.5); }
.preview dl { margin: 0; display: flex; flex-direction: column; }
.preview dl div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.preview dl div:first-child { border-top: 0; }
.preview dt { color: var(--muted); }
.preview dd { margin: 0; text-align: right; }
.preview .arrow { color: var(--faint); }
.preview .xs { margin-top: 10px; }
@media (max-width: 560px) {
  .sform { padding: 18px 16px; gap: 18px; }
  .preview { padding: 14px; }
  .preview dl div { flex-wrap: wrap; row-gap: 2px; }
  .preview dd { white-space: nowrap; margin-left: auto; }
}
.ferr { min-height: 0; color: var(--red); font-size: 13.5px; }
.ferr:empty { display: none; }
.actions { display: flex; gap: 10px; }
.actions .grow { flex: 1; }
.fine { color: var(--faint); font-size: 12.5px; }
.rules p:not(.kicker) { color: var(--muted); font-size: 14px; margin-top: 10px; }
.qv svg { width: 100%; height: auto; margin: 6px 0 4px; }
.qv .ax { stroke: var(--line-2); fill: none; }
.qv .cv { stroke: var(--emerald); stroke-width: 2; fill: none; filter: drop-shadow(0 0 4px rgba(52, 245, 176, 0.6)); }
.qv circle { fill: var(--ink-0); stroke: var(--emerald); stroke-width: 1.5; }
.qv text { fill: var(--text); font: 500 7.5px var(--mono); }
.qv .gd { stroke: var(--line-2); stroke-dasharray: 2 2; }
.qv .axl { fill: var(--faint); }

/* tx progress (the boxes take no room until a transaction runs) */
[data-tx]:empty { display: none; }
.txsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.txsteps li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: rgba(5, 7, 14, 0.5); color: var(--faint); font-size: 12.5px; font-weight: 500; }
.txsteps li i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.txsteps li.on { color: var(--text); border-color: rgba(255, 201, 121, 0.45); }
.txsteps li.on i { background: var(--amber); animation: pulse 1s infinite; }
.txsteps li.done { color: var(--emerald); border-color: rgba(52, 245, 176, 0.4); }
.txsteps li.done i { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.txsteps li.bad { color: var(--red); border-color: rgba(255, 107, 125, 0.5); }
.txsteps li.bad i { background: var(--red); }
.txmsg { margin-top: 8px; font-size: 13px; color: var(--muted); }
.txmsg.bad { color: var(--red); }
.txmsg a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* order */
.statgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 20px; }
.statgrid .stat:first-child { border-left: 0; }
/* six cells need about 150 px each for "432.83M STEER"; below 1240 px the grid goes to three per row */
@media (max-width: 1240px) {
  .statgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .statgrid .stat { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .statgrid .stat:nth-child(3n + 1) { border-left: 0; } .statgrid .stat:nth-child(-n + 3) { border-top: 0; }
}
@media (max-width: 640px) {
  .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statgrid .stat { border-left: 1px solid var(--line) !important; border-top: 1px solid var(--line) !important; }
  .statgrid .stat:nth-child(2n + 1) { border-left: 0 !important; } .statgrid .stat:nth-child(-n + 2) { border-top: 0 !important; }
}
.params { margin: 0; display: flex; flex-direction: column; }
.params div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; min-width: 0; }
.params div:first-child { border-top: 0; }
.params dt { color: var(--muted); flex: none; }
.params dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
/* parameter rows: a long label may wrap, short values (amounts, shortened addresses) stay on one line */
.params:not(.addr-list) dt { flex: 1 1 auto; min-width: 0; }
.params:not(.addr-list) dd { flex: none; white-space: nowrap; }
.params dd a { color: var(--text); }
.addr-list dd { font-size: 13px; }
@media (max-width: 640px) {
  .addr-list div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .addr-list dt { font-size: 12.5px; }
  .addr-list dd { text-align: left; font-size: 12px; }
}
.upkeep { display: flex; flex-direction: column; gap: 14px; }
.uk { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); }
.uk:first-child { border-top: 0; padding-top: 0; }
.uk h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.uk p { color: var(--muted); font-size: 13.5px; }
.bills-sec { margin-top: 64px; }
.bill { margin-bottom: 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(16, 21, 40, 0.86), rgba(9, 12, 24, 0.86)); overflow: hidden; }
.bill-h { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 22px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 6px); }
.bill-h h3 { font: 400 28px/1.05 var(--serif); }
.bill-m { margin: 0; display: flex; gap: 26px; flex-wrap: wrap; }
.bill-m dt { font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.bill-m dd { margin: 6px 0 0; font-size: 14px; }
.tscroll { overflow-x: auto; }
.btab { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 680px; }
.btab th { text-align: left; padding: 12px 22px; font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.btab td { padding: 12px 22px; border-bottom: 1px solid var(--line); }
.btab tr:last-child td { border-bottom: 0; }
.btab tr.skip td { color: var(--amber); }
.btab td.links { white-space: nowrap; color: var(--faint); font-size: 13px; }
.btab td.links a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.btab td.links a:hover { color: var(--text); }
.btab td.mono { white-space: nowrap; }
.btab .num { text-align: right; }
/* phones: each bought coin becomes a small labelled card instead of a table row that scrolls sideways */
@media (max-width: 640px) {
  .btab { min-width: 0; }
  .btab thead { display: none; }
  .btab, .btab tbody { display: block; }
  .btab tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .btab tr:last-child { border-bottom: 0; }
  .btab td { display: block; padding: 0; border: 0; min-width: 0; }
  .btab td:nth-child(2) { justify-self: end; }
  /* left column reads left to right; the right column (pair, ETH in) hugs the right edge */
  .btab td.num { text-align: left; }
  .btab td:nth-child(4) { text-align: right; }
  .btab td[data-k]::before { content: attr(data-k); display: block; margin-bottom: 4px; font: 500 10px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
  .btab td.links { grid-column: 1 / -1; }
  .btab tr.skip td[data-k="Result"] { grid-column: 1 / -1; }
}
.addrs { margin-top: 20px; }

/* upgrades: the code the Order runs, who can replace it, and every change since the deployment */
.ups { margin-top: 20px; }
.ups-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 980px) { .ups-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
.ups-state { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.ups-state > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.ups-state[data-s="open"] { border-color: rgba(255, 201, 121, 0.42); background: rgba(255, 201, 121, 0.07); color: var(--amber); }
.ups-state[data-s="open"] > i { background: var(--amber); box-shadow: 0 0 10px rgba(255, 201, 121, 0.8); }
.ups-state[data-s="frozen"] { border-color: rgba(52, 245, 176, 0.4); background: rgba(52, 245, 176, 0.06); color: var(--emerald); }
.ups-state[data-s="frozen"] > i { background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.ups-state .readfail { font-weight: 500; }
.stale .ups-state { opacity: 0.55; }
.ups-text { margin-top: 12px; color: var(--muted); font-size: 14px; }
.ups-text b { color: var(--text); font-weight: 600; }
.ups-now .params { margin-top: 12px; }
.ups-warn { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 107, 125, 0.45); background: rgba(255, 107, 125, 0.06); font-size: 13.5px; }
.ups-warn a { color: var(--text); }
.ups-hist > .kicker { margin-bottom: 6px; }
/* a timeline: one dot per event on a hairline rail; upgrades amber, a freeze emerald, the code now running filled */
.uphist { list-style: none; margin: 0; padding: 0; }
.uh { position: relative; padding: 10px 0 12px 26px; }
.uh::before { content: ''; position: absolute; left: 3px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-1); box-shadow: inset 0 0 0 1.5px var(--muted); }
.uh::after { content: ''; position: absolute; left: 7px; top: 30px; bottom: -11px; width: 1px; background: var(--line-2); }
.uh:last-child::after { display: none; }
.uh[data-k="upgrade"]::before { box-shadow: inset 0 0 0 1.5px var(--amber); }
.uh[data-k="freeze"]::before { box-shadow: inset 0 0 0 1.5px var(--emerald); }
.uh.is-current::before { background: var(--text); box-shadow: 0 0 10px rgba(238, 243, 255, 0.45); }
.uh.is-current[data-k="upgrade"]::before { background: var(--amber); box-shadow: 0 0 10px rgba(255, 201, 121, 0.75); }
.uh-t { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.uh-t b { font-size: 14.5px; font-weight: 600; }
.uh-t .tag { margin-left: 0; }
.uh-d { margin-top: 3px; font-size: 13px; color: rgba(238, 243, 255, 0.86); }
.uh-l { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13px; color: var(--muted); }
.uh-l a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.uh-l a:hover { text-decoration-color: var(--emerald); }
.uh-note { padding: 10px 0 0; font-size: 13.5px; }

/* signals */
.sig-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .sig-grid { grid-template-columns: 1fr; } }
.sig-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5, 7, 14, 0.6); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.seg button.on { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.feed { display: flex; flex-direction: column; gap: 14px; }
.sig { padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(16, 21, 40, 0.86), rgba(9, 12, 24, 0.86)); position: relative; overflow: hidden; }
.sig::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--amber), transparent); }
.sig-k { display: block; line-height: 1.5; color: var(--muted); font-size: 13px; }
.sig-k .flame { display: inline-block; vertical-align: -1px; margin-right: 8px; }
.sig-k b { color: var(--text); font-weight: 500; }
.flame { width: 8px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff2c8, var(--amber) 45%, #ff7a3d); box-shadow: 0 0 10px rgba(255, 170, 80, 0.8); flex: none; }
.sig blockquote { margin: 14px 0 16px; font: 400 26px/1.25 var(--serif); color: var(--text); overflow-wrap: anywhere; }
.sig footer { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--faint); font-size: 12.5px; }
.sig footer a { color: var(--muted); }
.sig .for { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.sig .for .coin-t b { font-size: 12.5px; }
.sig .for .ci { --s: 18px !important; }
.sig.quiet { padding: 14px 18px; }
.sig.quiet::before { background: var(--line-2); }
.sig.quiet footer { margin-top: 8px; }
.billboard { position: relative; padding: 22px 24px 24px; border-radius: var(--r); border: 1px dashed var(--line-2); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 8px, transparent 8px 16px), rgba(9, 12, 24, 0.6); }
.billboard .sig-k { opacity: 0.55; }
.bb-slot { margin: 14px 0 18px; font: italic 400 30px/1.2 var(--serif); color: var(--faint-2); }
.bb-note { padding-top: 16px; border-top: 1px solid var(--line); }
.bb-note h4 { font: 400 24px/1.1 var(--serif); }
.bb-note p { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 520px; }
.bb-note .btn { margin-top: 14px; }
.keepers .small { margin-bottom: 16px; }
.seats { display: flex; flex-direction: column; gap: 14px; }
.sg-h { font: 500 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.sg-s { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.seat { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border-radius: 9px; border: 1px solid var(--line); background: rgba(5, 7, 14, 0.5); min-width: 0; }
.seat-n { font: 400 22px/1 var(--serif); }
.seat-a { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-b { margin-top: 4px; font-size: 12.5px; color: var(--text); white-space: nowrap; }
.seat-a a { color: var(--muted); }
.seat.taken { border-color: rgba(52, 245, 176, 0.35); background: linear-gradient(180deg, rgba(52, 245, 176, 0.07), rgba(5, 7, 14, 0.5)); }
@media (min-width: 1001px) { .keepers { position: sticky; top: calc(var(--top) + var(--notice) + 24px); } }
.seat.taken .seat-n { color: var(--text); }
.seat:not(.taken) .seat-n { color: var(--faint); }
@media (max-width: 1240px) and (min-width: 1001px) { .sg-s { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sg-s { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* about */
.doc { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 48px; }
.toc { position: sticky; top: calc(var(--top) + var(--notice) + 24px); align-self: start; display: flex; flex-direction: column; gap: 2px; }
.toc a { padding: 7px 10px; border-left: 1px solid var(--line-2); color: var(--muted); font-size: 14px; }
.toc a:hover { color: var(--text); border-left-color: var(--emerald); }
.doc-body { max-width: 780px; }
.doc-body section { padding: 8px 0 40px; }
.doc-body h2 { font: 400 38px/1.05 var(--serif); margin-bottom: 18px; }
.doc-body p { color: rgba(238, 243, 255, 0.8); margin-top: 12px; }
.doc-body .lead-note { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 201, 121, 0.22); background: rgba(255, 201, 121, 0.04); font-size: 14.5px; }
.rules-list { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rules-list li { position: relative; padding: 16px 0 16px 46px; border-top: 1px solid var(--line); color: rgba(238, 243, 255, 0.8); }
.rules-list li::before { counter-increment: r; content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 18px; font: 500 12px var(--mono); color: var(--emerald); }
.rules-list b, .risk b { color: var(--text); font-weight: 600; }
.ptab { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.ptab th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.ptab td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.ptab td:first-child { color: rgba(238, 243, 255, 0.85); }
.tag { display: inline-block; margin-left: 8px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; font: 500 10px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); vertical-align: 1px; white-space: nowrap; }
/* a value or a range never breaks inside itself */
.ptab th + th, .ptab td + td { padding-left: 14px; white-space: nowrap; }
@media (max-width: 560px) {
  .ptab { font-size: 13px; }
  .ptab td:first-child .tag { display: block; width: max-content; margin: 5px 0 0; }
}
.risk { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.risk li { padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255, 201, 121, 0.18); background: rgba(255, 201, 121, 0.04); color: rgba(238, 243, 255, 0.78); font-size: 14.5px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 12px; } .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; } .toc a { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; } }

/* ───────── city HUD ───────── */
.cityui { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.cityui > * { pointer-events: auto; }
.c-top { position: absolute; top: calc(var(--top) + var(--notice) + 16px); left: var(--gut); right: var(--gut); display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; pointer-events: none; }
.c-top > * { pointer-events: auto; }
.c-search { position: relative; display: flex; align-items: center; gap: 10px; width: min(440px, 100%); height: 48px; padding: 0 14px; }
.c-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; flex: none; }
.c-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 500 15px var(--sans); height: 100%; }
.c-search input::placeholder { color: var(--faint); }
.c-search:focus-within { border-color: rgba(52, 245, 176, 0.5); }
.c-results { position: absolute; top: 54px; left: 0; right: 0; max-height: 420px; overflow: auto; padding: 6px; border-radius: 12px; border: 1px solid var(--line-2); background: #0a0d1a; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9); }
.c-results button { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.c-results button:hover { background: rgba(255, 255, 255, 0.05); }
.c-results span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.c-results small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-results .mono { font-size: 12.5px; color: var(--muted); }
.c-none { padding: 12px; color: var(--muted); font-size: 14px; }
.c-legend { display: flex; gap: 2px; padding: 4px; flex-wrap: wrap; }
.lg { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.lg:hover { background: rgba(255, 255, 255, 0.06); }
.lg i { width: 8px; height: 8px; border-radius: 2px; background: var(--dc); box-shadow: 0 0 10px var(--dc); }
.lg b { font-weight: 500; font-size: 12px; color: var(--muted); }
.c-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.c-top, .c-panel, .c-foot, .c-tip { z-index: 2; } /* the HUD stays above the floating tower labels */
.c-labels > span { position: absolute; left: 0; top: 0; will-change: transform; white-space: nowrap; }
/* labels are positioned by pages/city.js (box top-left), kept inside the HUD's safe area */
.dl { padding: 4px 8px 4px 7px; border-radius: 6px; background: rgba(5, 7, 13, 0.62); font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.dl::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 2px; background: var(--dc); box-shadow: 0 0 8px var(--dc); vertical-align: 1px; }
.bl { display: inline-flex; gap: 6px; align-items: center; padding: 4px 8px; border-radius: 6px; background: rgba(5, 12, 10, 0.8); border: 1px solid rgba(52, 245, 176, 0.45); font: 600 11px/1 var(--sans); color: var(--text); }
.bl b { color: var(--emerald); font-family: var(--mono); }
.bl.pinned { border-style: dashed; }
.bl .pa { font-style: normal; font-family: var(--mono); color: var(--emerald); }
.c-tip { position: fixed; left: 0; top: 0; display: flex; gap: 10px; align-items: center; padding: 8px 12px; font-size: 13px; pointer-events: none; z-index: 5; }
.c-tip .mono { color: var(--muted); }
.c-panel { position: absolute; top: calc(var(--top) + var(--notice) + 16px); right: var(--gut); width: 360px; max-height: calc(100vh - var(--top) - var(--notice) - 90px); overflow: auto; padding: 22px; }
.c-panel .x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: rgba(5, 7, 14, 0.5); color: var(--muted); font-size: 18px; cursor: pointer; }
.c-panel .x:hover { color: var(--text); }
.cp-head { display: flex; gap: 14px; align-items: center; padding-right: 30px; }
.cp-head h2 { font: 400 32px/1 var(--serif); overflow-wrap: anywhere; }
.cp-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.cp-pair { display: flex; gap: 10px; align-items: center; margin: 14px 0 4px; font-size: 13px; }
.cp-grid { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.cp-grid div { background: rgba(8, 11, 22, 0.92); padding: 11px 12px; min-width: 0; }
.cp-grid .wide { grid-column: 1 / -1; }
.cp-grid dt { font: 500 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.cp-grid dd { margin: 5px 0 0; font-size: 15px; }
.cp-act { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.cp-addr { margin-top: 12px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
/* with the coin panel open the legend wraps under the search instead of sliding under the panel */
.cityui:has(.c-panel:not([hidden])) .c-top { right: calc(var(--gut) + 376px); }
.c-foot { position: absolute; left: var(--gut); right: var(--gut); bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: none; flex-wrap: wrap; }
.c-status { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; font-size: 13px; pointer-events: auto; }
.c-hint { color: rgba(238, 243, 255, 0.55); font-size: 12.5px; text-shadow: 0 1px 8px #000; }
body[data-route="city"] .foot { display: none; }
@media (max-width: 760px) {
  .c-search { width: 100%; }
  .c-legend { overflow-x: auto; flex-wrap: nowrap; width: 100%; scrollbar-width: none; scroll-padding-inline: 8px; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .c-legend::-webkit-scrollbar { display: none; }
  .lg { flex: none; height: 34px; padding: 0 10px; font-size: 12px; }
  .c-panel { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 62vh; border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); z-index: 6; background: rgba(8, 11, 22, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .cityui:has(.c-panel:not([hidden])) .c-top { right: var(--gut); }
  .cityui:has(.c-panel:not([hidden])) .c-foot, .cityui:has(.c-panel:not([hidden])) .c-labels { display: none; }
  .c-foot { bottom: 12px; }
  .c-hint { display: none; }
}

/* ───────── footer, toasts, modal ───────── */
.foot { position: relative; z-index: 2; border-top: 1px solid var(--line); background: var(--ink-0); padding: 40px 0 48px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: start; }
.foot-brand p { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--muted); justify-content: flex-end; }
.foot-nav a:hover { color: var(--text); }
.disclaimer { grid-column: 1 / -1; color: var(--faint); font-size: 12.5px; line-height: 1.6; max-width: 980px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } .foot-nav { justify-content: flex-start; } }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10, 13, 26, 0.96); backdrop-filter: blur(12px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9); font-size: 13.5px; animation: rise 0.3s ease both; }
.toast.out { opacity: 0; transform: translateY(6px); transition: 0.25s; }
.toast > i { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--muted); flex: none; }
.toast[data-kind="pending"] > i { background: var(--amber); animation: pulse 1s infinite; }
.toast[data-kind="ok"] > i { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.toast[data-kind="warn"] > i { background: var(--amber); }
.toast[data-kind="err"] > i { background: var(--red); }
.toast span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.toast button { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }
.modal-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(3, 4, 9, 0.66); backdrop-filter: blur(6px); animation: fade 0.2s ease both; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(420px, 100%); padding: 24px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #111730, #0a0e1e); box-shadow: 0 40px 100px -30px #000; }
.modal h3 { font: 400 30px/1.1 var(--serif); margin-bottom: 16px; }
.wallets { display: flex; flex-direction: column; gap: 8px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(5, 7, 14, 0.5); cursor: pointer; font-weight: 500; text-align: left; }
.wallet-opt:hover { border-color: rgba(52, 245, 176, 0.5); }
.wallet-opt img, .wallet-dot { width: 26px; height: 26px; border-radius: 7px; }
.wallet-dot { background: linear-gradient(135deg, var(--violet), var(--emerald)); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.noscript { position: fixed; inset: auto 16px 16px; z-index: 80; padding: 14px; border-radius: 10px; background: var(--ink-2); }

/* no WebGL: the static skyline stays crisp, without the blur used for the live frame */
body.no-webgl .stage canvas { filter: none; transform: none; }

@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; }
}
