/* Cycle — hand-drawn black & white theme */
:root {
  --bg: #050505;
  --bg2: #080808;
  --card: rgba(12,12,12, 0.72);
  --card2: rgba(19,19,19, 0.8);
  --solid: #0a0a0a;
  --panel: rgba(6,6,6, 0.96);
  --line: rgba(222,222,222, 0.11);
  --line2: rgba(222,222,222, 0.26);
  --text: #ebebeb;
  --soft: #cbcbcb;
  --muted: #949494;
  --dim: #626262;
  --acc: #dedede;
  --acc2: #eeeeee;
  --accbg: rgba(222,222,222, 0.08);
  --cy: #dedede;
  --gold: #f1f1f1;
  --sky: #d6d6d6;
  --mint: #dedede;
  --lilac: #eeeeee;
  --pink: #d6d6d6;
  --red: #acacac;
  --up: #dedede;
  --down: #acacac;
  --orange: #ff7a1a;
  --glow: 0 0 18px rgba(222,222,222, 0.45);
  --grad: linear-gradient(90deg, #b7b7b7, #dedede);
  --display: 'EB Garamond', Georgia, serif;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ui: 'DM Sans', system-ui, sans-serif;
  --hand: 'Gochi Hand', 'Comic Sans MS', cursive;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 4px;
  --r2: 3px;
  --head: 64px;
  --rail: 84px;
  --right: 340px;
  --shadow: 0 24px 60px -24px rgba(0,0,0, 0.95);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; background: #000; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }
em { font-style: normal; color: var(--cy); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
::selection { background: var(--acc); color: #ffffff; }
b, strong { font-weight: 700; }
.stats b, .tstats b, .grid3 b, .b-kpis b, .ll .v, .pod .val, .tbl td, .counters b { font-variant-numeric: tabular-nums; }

/* ---------- app frame: rail + top bar + main ---------- */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: var(--head) auto; min-height: 100vh; }
.rail { grid-row: 1 / 3; position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0; background: rgba(4,4,4,.6); z-index: 40; }
.rail-logo img { width: 44px; height: 44px; display: block; border-radius: 50%; }
.rail-logo { margin-bottom: 14px; }
.nav { display: flex; flex-direction: column; gap: 8px; }
.nav a { width: 58px; padding: 9px 0 7px; border-radius: 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); border: 1px solid transparent; font-size: 9.5px; font-weight: 600; letter-spacing: .04em; transition: background .15s, color .15s; }
.nav a svg { width: 20px; height: 20px; }
.nav a:hover { color: #ffffff; background: rgba(183,183,183,.1); }
.nav a.on { background: linear-gradient(135deg, rgba(183,183,183,.35), rgba(222,222,222,.2)); color: #ffffff; border-color: var(--line); }
.rail-sp { flex: 1; }
.rail-x { width: 46px; height: 46px; border-radius: 4px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); }
.rail-x svg { width: 17px; height: 17px; }
.rail-x:hover { color: #ffffff; background: rgba(183,183,183,.15); }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--line); background: rgba(5,5,5,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { display: none; width: 28px; height: 28px; border-radius: 50%; }
.brand h1 { font-weight: 800; font-size: 19px; letter-spacing: .18em; }
.brand h1 span, .brand.sm span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.sm { font-weight: 800; letter-spacing: .14em; font-size: 15px; } .brand.sm .logo { width: 24px; height: 24px; border-radius: 50%; }
.ticker { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000000 6%, #000000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000000 6%, #000000 94%, transparent); }
.ticker > div { display: inline-block; animation: tk 50s linear infinite; font-size: 12px; color: var(--muted); }
.ticker b { color: var(--cy); font-weight: 600; }
@keyframes tk { to { transform: translateX(-50%); } }
.search { position: relative; display: flex; align-items: center; gap: 9px; width: 210px; height: 40px; padding: 0 12px; border-radius: 4px; background: var(--card); border: 1px solid var(--line); transition: border-color .15s; flex: none; }
.search svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.search input { width: 100%; background: none; border: 0; outline: none; font-size: 13px; }
.search input::placeholder { color: var(--dim); }
.search kbd { font: 600 11px var(--mono); color: var(--muted); border: 1px solid var(--line2); border-radius: 3px; padding: 1px 6px; }
.search:focus-within { border-color: var(--acc); }
.search-results { position: absolute; top: 48px; left: 0; width: 300px; background: var(--solid); border: 1px solid var(--line2); border-radius: 4px; display: none; overflow: hidden; box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.search-results.open { display: block; }
.sr { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; font-size: 13px; border-radius: 4px; }
.sr img { width: 26px; height: 26px; }
.sr:hover, .sr.on { background: var(--accbg); }
.sr b { color: #ffffff; } .sr span { color: var(--muted); margin-left: auto; font-size: 11.5px; }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--card); font-size: 12px; color: var(--muted); white-space: nowrap; flex: none; }
.ca-chip .ca-tk { color: var(--gold); font-weight: 600; }
.ca-chip .ca-tk:empty { display: none; }
.ca-chip .ca-lbl { color: var(--dim); }
.ca-chip .ca-val { color: var(--cy); font-weight: 600; }
.ca-chip.live { cursor: pointer; } .ca-chip.live:hover { border-color: var(--cy); }
.ca-chip.soon { cursor: default; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; padding: 0 18px; border-radius: 4px; font-weight: 600; font-size: 13px; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s, color .15s, filter .15s; }
.btn svg { width: 16px; height: 16px; }
.btn-acc { background: var(--grad); color: #050505; box-shadow: 0 8px 26px -12px rgba(222,222,222,.8); }
.btn-acc:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-acc:active { transform: translateY(1px); }
.btn-line { border: 1px solid var(--line2); color: var(--text); background: rgba(183,183,183,.08); }
.btn-line:hover { border-color: var(--cy); color: var(--cy); }
.btn-ghost { border: 1px solid var(--line); color: var(--soft); }
.btn-ghost:hover { border-color: var(--soft); color: #ffffff; }
.btn-soft { background: rgba(255,255,255,.08); color: #ffffff; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn.wide { width: 100%; }
.burger { display: none; width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--line); flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: none; }
.burger span { width: 16px; height: 2px; border-radius: 2px; background: #ffffff; }
.main { min-width: 0; }
.view { display: none; }
.view.active { display: block; }

/* ---------- galaxy: stage + right column ---------- */
.gx { display: grid; grid-template-columns: minmax(0, 1fr) var(--right); height: clamp(620px, calc(100vh - var(--head)), 1000px); }
.stage { position: relative; overflow: hidden; min-width: 0; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.right { border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 14px; background: rgba(5,5,5,.5); min-height: 0; }
.pn { border: 1px solid var(--line); border-radius: 4px; background: var(--card); backdrop-filter: blur(10px); padding: 16px; }
.pn h3 { font-size: 12px; letter-spacing: .16em; color: var(--muted); font-weight: 600; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.pn h3 i { font-style: normal; color: var(--mint); display: inline-flex; align-items: center; gap: 6px; }
.pn-feed { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pn-feed .feed { flex: 1; height: auto; }

.how { position: absolute; left: 18px; top: 16px; width: 290px; border: 1px solid var(--line); background: rgba(8,8,8,.74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 4px; padding: 14px 16px; z-index: 3; display: flex; flex-direction: column; gap: 10px; transition: opacity .3s, transform .3s; }
.how h4, .expand h4 { font-size: 11px; letter-spacing: .18em; color: var(--muted); font-weight: 600; }
.how div { display: flex; gap: 10px; align-items: flex-start; }
.how b { width: 28px; height: 28px; border-radius: 3px; display: grid; place-items: center; flex: none; font-weight: 800; color: #050505; }
.how p { font-size: 13px; color: #d6d6d6; line-height: 1.38; } .how p strong { color: #ffffff; }
.how-cta { font-size: 12.5px; font-weight: 600; color: var(--cy); margin-top: 2px; }
.how-cta:hover { color: #ffffff; }
.expand { position: absolute; right: 18px; top: 16px; width: 250px; border: 1px solid var(--line); background: rgba(8,8,8,.74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 4px; padding: 14px 16px; z-index: 3; transition: right .3s, opacity .3s; }
.expand h4 { margin-bottom: 8px; }
.expand > b { font-size: 24px; }
.expand > span, .expand > span span { color: var(--muted); font-size: 12px; }
.expand em { color: var(--cy); font-weight: 600; }
.eb { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); margin: 10px 0 7px; overflow: hidden; }
.eb i { display: block; height: 100%; width: 10%; background: var(--grad); transition: width .6s; }

.counters { position: absolute; left: 18px; bottom: 64px; display: flex; flex-direction: column; gap: 6px; z-index: 2; transition: opacity .3s; }
.counters div { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 11.5px; color: var(--muted); }
.counters b { color: #ffffff; font-weight: 700; font-size: 16px; }
.counters .c-hide { display: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.dot.live { animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(222,222,222,.55); } 80%,100% { box-shadow: 0 0 0 7px rgba(222,222,222,0); } }

.spot { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: calc(100% - 420px); border: 1px solid var(--line); background: rgba(8,8,8,.88); backdrop-filter: blur(10px); border-radius: 999px; padding: 9px 20px 9px 10px; display: flex; align-items: center; gap: 12px; z-index: 3; font-size: 13.5px; white-space: nowrap; cursor: pointer; transition: left .3s; }
.spot .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; animation: none; background: rgba(222,222,222,.18); flex: none; }
.spot .txt { overflow: hidden; text-overflow: ellipsis; }
.spot b { color: #ffffff; } .spot small { color: var(--muted); margin-left: 6px; font-size: 12px; }
.spot:hover { border-color: var(--line2); }

.legend { position: absolute; left: 18px; bottom: 20px; display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); z-index: 2; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 20px; height: 0; border-top: 2px dashed; }
.legend i.s { border-top: 4px solid #b7b7b7; border-radius: 2px; opacity: .7; }

.map-ui { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: flex-end; gap: 10px; transition: right .3s ease; z-index: 3; }
.minimap { position: relative; width: 170px; height: 132px; border-radius: 4px; background: rgba(8,8,8,.8); border: 1px solid var(--line); cursor: crosshair; overflow: hidden; backdrop-filter: blur(8px); }
.minimap canvas { width: 100%; height: 100%; display: block; }
.zoom { display: flex; flex-direction: column; gap: 8px; }
.zoom button { width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--line); background: rgba(8,8,8,.8); color: #ffffff; font: 600 18px var(--sans); display: grid; place-items: center; transition: background .15s; }
.zoom button:hover { background: rgba(183,183,183,.3); }
.stage.panel-open .map-ui, .stage.panel-open .expand { right: 420px; }
.stage.panel-open .counters, .stage.panel-open .legend { opacity: 0; pointer-events: none; }
.stage.panel-open .how { opacity: 0; transform: translateX(-20px); pointer-events: none; }
.stage.panel-open .spot { left: calc(50% - 200px); max-width: calc(100% - 520px); }

.focus-bar { position: absolute; top: 16px; left: 50%; transform: translate(-50%, -90px); display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 18px; background: var(--grad); color: #050505; border-radius: 999px; font-size: 13.5px; font-weight: 700; transition: transform .3s; z-index: 4; visibility: hidden; box-shadow: var(--shadow); }
.focus-bar.on { transform: translate(-50%, 0); visibility: visible; }
.focus-bar button { padding: 7px 14px; border-radius: 999px; background: rgba(0,0,0,.18); font-size: 12.5px; font-weight: 700; }
.empty-note { position: absolute; left: 50%; top: 66%; transform: translate(-50%, -50%); display: none; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 26px; border-radius: 4px; background: rgba(8,8,8,.9); border: 1px solid var(--line2); backdrop-filter: blur(10px); z-index: 2; box-shadow: var(--shadow); }
.empty-note.on { display: flex; }
.empty-note b { font-size: 18px; font-weight: 700; }
.empty-note span { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--accbg); color: var(--acc2); font-size: 12px; font-weight: 600; margin-bottom: 18px; border: 1px solid var(--line2); letter-spacing: .04em; }
.pill-eyebrow i { display: none; }

/* ---------- side panel ---------- */
.panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: 396px; z-index: 5;
  background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line2); border-radius: 4px;
  transform: translateX(110%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s; overflow-y: auto; padding: 22px 20px 28px;
  scrollbar-width: thin; scrollbar-color: rgba(222,222,222,.3) transparent; box-shadow: var(--shadow);
}
.panel.open { transform: none; visibility: visible; }
.p-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.07); color: var(--soft); }
.p-close:hover { background: #ffffff; color: #050505; }
.p-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding-right: 40px; }
.p-avatar { width: 72px; height: 72px; border-radius: 4px; display: grid; place-items: center; background: linear-gradient(160deg, #171717, #0a0a0a); flex: none; position: relative; }
.p-avatar img.robo { width: 58px; height: 58px; }
.p-avatar img.coin { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card); }
.p-title { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.p-title small { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.p-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.p-mine { display: inline-block; margin-top: 6px; padding: 3px 9px; font-size: 10.5px; font-weight: 800; background: var(--acc); color: #050505; border-radius: 999px; letter-spacing: .04em; }
.p-level { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; margin-bottom: 7px; }
.p-level b { color: var(--gold); }
.bar { height: 8px; background: rgba(255,255,255,.08); border-radius: 0; overflow: hidden; margin-bottom: 16px; }
.bar i { display: block; height: 100%; border-radius: 0; background: linear-gradient(90deg, var(--acc), var(--gold)); transition: width .4s; }
.p-status { border-radius: var(--r2); padding: 13px 14px; margin-bottom: 14px; background: rgba(255,255,255,.045); }
.p-status .st { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.p-status .st b { color: #ffffff; }
.p-action { font-size: 14px; color: #ffffff; font-weight: 600; }
.p-line { margin-top: 8px; font-size: 12.5px; color: var(--soft); background: rgba(255,255,255,.05); padding: 8px 10px; border-radius: 10px 10px 10px 2px; }
.p-line:empty { display: none; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.grid3 > div { padding: 11px 12px; border-radius: var(--r2); background: rgba(255,255,255,.045); }
.grid3 span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.grid3 b { font-size: 16px; }
.p-sec { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--soft); margin: 20px 0 9px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-sec > span:last-child:not(:first-child) { font-weight: 600; letter-spacing: 0; color: var(--muted); }
.p-persona { font-size: 13px; line-height: 1.55; color: var(--soft); background: rgba(222,222,222,.1); border-radius: var(--r2); padding: 11px 13px; }
.p-persona b { color: var(--lilac); display: block; font-size: 11px; letter-spacing: .06em; margin-bottom: 3px; }
.p-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; }
.p-btns .btn { height: 40px; font-size: 13px; }
.p-btns .btn.active { background: var(--acc); border-color: var(--acc); color: #050505; }
.p-log { font-size: 12.5px; line-height: 1.5; }
.p-log div { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.p-log time { color: var(--dim); flex: none; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.p-log .k-connect, .p-log .k-level, .p-log .k-milestone, .p-log .k-xp { color: var(--gold); }
.tree { font-size: 13px; }
.fr-h { color: var(--muted); font-size: 12px; margin-bottom: 10px; } .fr-h b { color: var(--acc); }
.fr-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fr { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.06); font-weight: 700; font-size: 12px; cursor: pointer; }
.fr img { width: 22px; height: 22px; }
.fr small { color: var(--muted); font-weight: 600; }
.fr:hover { background: var(--accbg); color: var(--acc); }
.fr.more { padding: 4px 10px; color: var(--muted); cursor: default; }
.coin-box { border-radius: var(--r2); padding: 14px; margin-top: 10px; background: rgba(255,255,255,.045); }
.coin-box .kv { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; }
.coin-box .kv span { color: var(--muted); }
.ca { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 9px 12px; background: rgba(4,4,4,.4); border-radius: 4px; font-size: 12px; color: var(--soft); cursor: pointer; }
.ca span:last-child { color: var(--acc); font-weight: 800; }
.ca:hover { background: var(--accbg); }
.spark { width: 100%; height: 70px; display: block; margin-bottom: 6px; }
.up { color: var(--up); } .down { color: var(--down); }

/* ---------- sections + bento ---------- */
.sec { padding: 46px 20px 0; max-width: 1560px; margin: 0 auto; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 6px 18px; flex-wrap: wrap; }
.sec-h h2 { font-family: var(--display); font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.sec-h p { color: var(--muted); font-size: 14px; max-width: 520px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c-stats { grid-column: span 5; } .c-top { grid-column: span 7; }
.c-recent { grid-column: span 4; } .c-log { grid-column: span 4; } .c-mine { grid-column: span 4; }
.c-chat { grid-column: span 12; }
.c-dec { grid-column: span 6; } .c-tre { grid-column: span 3; } .c-duel { grid-column: span 3; }
.c-terr { grid-column: span 7; } .c-base { grid-column: span 5; }
.card { border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 40%), var(--card); padding: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-h h3 { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.see { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.05); white-space: nowrap; }
.see:hover { color: #050505; background: #ffffff; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--mint); white-space: nowrap; }
.live-tag.red { color: #c3c3c3; } .live-tag.red .dot { background: var(--red); }
.live-tag.gold { color: var(--gold); } .live-tag.gold .dot { background: var(--gold); }
.live-tag.soft { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stats > div { padding: 14px 16px; border-radius: 4px; background: rgba(255,255,255,.045); }
.stats b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 2px; }
.stats span { font-size: 12.5px; color: var(--muted); }
.top-agents { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ta { position: relative; border-radius: 4px; padding: 16px 8px 12px; text-align: center; cursor: pointer; background: rgba(255,255,255,.045); transition: background .15s, transform .15s; }
.ta:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.ta.first { background: linear-gradient(170deg, rgba(241,241,241,.22), rgba(183,183,183,.08)); }
.ta .n { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; display: grid; place-items: center; font-size: 11px; background: rgba(255,255,255,.12); color: #ffffff; border-radius: 50%; font-weight: 800; }
.ta.first .n { background: var(--gold); color: #050505; }
.ta img { width: 52px; height: 52px; }
.ta b { display: block; font-size: 13.5px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta span { display: block; font-size: 12px; color: var(--muted); }
.ta i { font-style: normal; font-size: 12px; font-weight: 700; }
.launch-list { display: flex; flex-direction: column; gap: 4px; }
.ll { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 4px; cursor: pointer; transition: background .15s; }
.ll:hover { background: rgba(255,255,255,.05); }
.ll .ic { width: 42px; height: 42px; border-radius: 4px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.06); }
.ll .ic img { width: 32px; height: 32px; }
.ll b { display: block; font-size: 14px; }
.ll span { font-size: 12px; color: var(--muted); }
.ll .v { margin-left: auto; font-size: 14px; font-weight: 700; text-align: right; }
.ll.fresh { animation: fresh 1.6s ease; }
@keyframes fresh { 0% { background: rgba(183,183,183,.25); } 100% { background: transparent; } }
.feed { height: 300px; overflow: hidden; font-size: 12.5px; line-height: 1.45; display: flex; flex-direction: column; gap: 4px; mask-image: linear-gradient(#000000 70%, transparent); -webkit-mask-image: linear-gradient(#000000 70%, transparent); }
.fe { display: flex; gap: 10px; padding: 6px 8px; border-radius: 4px; animation: fin .35s ease; cursor: pointer; align-items: baseline; }
.fe:hover { background: rgba(255,255,255,.04); }
.fe time { color: var(--dim); flex: none; font-size: 11px; font-variant-numeric: tabular-nums; }
.fe p { color: var(--soft); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fe.k-connect p, .fe.k-level p, .fe.k-milestone p { color: var(--gold); }
.fe.k-launch p { color: var(--acc); font-weight: 800; }
.fe:hover p { color: #ffffff; }
@keyframes fin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.mine { display: flex; flex-direction: column; background: linear-gradient(160deg, rgba(183,183,183,.14), transparent 55%), var(--card); }
.mine-body { display: flex; gap: 16px; align-items: stretch; flex: 1; }
.mine-av { width: 118px; border-radius: 4px; display: grid; place-items: center; background: rgba(4,4,4,.35); flex: none; }
.mine-av img { width: 94px; height: 94px; }
.mine-info { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mine-info .lv { font-family: var(--display); font-size: 20px; font-weight: 800; }
.mine-info .xp { font-size: 12.5px; color: var(--soft); }
.mine-info .bar { margin: 0; }
.mine-info .btn { height: 38px; font-size: 13px; justify-content: space-between; }
.mine-empty { text-align: center; padding: 4px 0; }
.mine-empty img { width: 90px; height: 90px; }
.mine-empty p { color: var(--muted); font-size: 13px; margin: 10px 0 16px; line-height: 1.55; }
.mine-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.mine-switch button { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
.mine-switch button.on { background: var(--acc); color: #050505; }

/* ---------- pages ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 44px 20px 60px; }
.page-h { margin-bottom: 30px; }
.page-h h2 { font-family: var(--display); font-size: 56px; font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-bottom: 12px; }
.page-h p { font-size: 15px; }
.launch-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 15px; padding: 26px; }
.f-step { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; font-weight: 800; }
.f-step span { width: 30px; height: 30px; border-radius: 4px; display: grid; place-items: center; background: var(--acc); color: #050505; font-size: 14px; }
.f-step:not(:first-child) { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.form label, .form .label { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--soft); }
.form input, .form textarea, .toolbar input, .toolbar select {
  background: rgba(4,4,4,.4); border: 1.5px solid var(--line); border-radius: 4px; padding: 12px 14px; font-size: 14px; outline: none; resize: vertical; font-weight: 500;
}
.form input:focus, .form textarea:focus, .toolbar input:focus, .toolbar select:focus { border-color: var(--acc); }
.form input.file { padding: 8px; font-size: 12.5px; color: var(--muted); }
.form input.file::file-selector-button { background: rgba(255,255,255,.1); color: #ffffff; border: 0; border-radius: 3px; padding: 6px 12px; margin-right: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sep { color: var(--acc); font-weight: 800; }
.variants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.variants button { height: 82px; border-radius: 4px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 2px solid transparent; transition: border-color .15s, background .15s; }
.variants button img { width: 56px; height: 56px; }
.variants button:hover { background: rgba(255,255,255,.08); }
.variants button.on { border-color: var(--acc); background: var(--accbg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.06); color: var(--soft); transition: background .15s, color .15s; }
.chips button:hover { background: rgba(255,255,255,.1); color: #ffffff; }
.chips button.on { background: var(--acc); color: #050505; }
.preview { position: sticky; top: calc(var(--head) + 16px); padding: 0; overflow: hidden; }
.preview-stage { position: relative; height: 300px; background: radial-gradient(circle at 50% 60%, rgba(183,183,183,.14), transparent 60%), linear-gradient(180deg, #050505, #0a0a0a); }
.preview-stage canvas { width: 100%; height: 100%; display: block; }
.pv-live { position: absolute; top: 14px; left: 16px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.3); }
.preview-meta { padding: 20px 22px 22px; }
.pv-ticker { font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--acc); letter-spacing: -.02em; }
.pv-name { color: var(--muted); margin: 2px 0 14px; font-size: 13px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 9px 0; border-top: 1px solid var(--line); }
.kv span { color: var(--muted); }
.kv.total b { color: var(--acc); font-size: 15px; }
.pv-note { margin-top: 12px; font-size: 12.5px; line-height: 1.6; color: var(--muted); padding: 12px 14px; border-radius: 4px; background: rgba(255,255,255,.04); }
.pv-prompt { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--soft); background: rgba(222,222,222,.1); border-radius: 4px; padding: 10px 13px; }
.pv-prompt:empty { display: none; }

.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input { flex: 1; min-width: 200px; }
.toolbar select { font-size: 13.5px; cursor: pointer; }
.toolbar select option { background: var(--card); }
.table-card { padding: 6px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 700; font-size: 12px; color: var(--muted); padding: 12px 14px; white-space: nowrap; }
.tbl td { padding: 10px 14px; white-space: nowrap; border-top: 1px solid var(--line); }
.tbl tr { cursor: pointer; }
.tbl tbody tr:hover td { background: rgba(255,255,255,.04); }
.tbl tbody tr:hover td:first-child { border-radius: 12px 0 0 12px; } .tbl tbody tr:hover td:last-child { border-radius: 0 12px 12px 0; }
.tbl img { width: 34px; height: 34px; display: block; }
.tbl .tk { font-weight: 800; } .tbl .nm { color: var(--muted); font-size: 12px; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.06); }
.st-pill i { width: 7px; height: 7px; border-radius: 50%; }
.tabs { display: inline-flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.05); }
.tabs button { padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--soft); }
.tabs button:hover { color: #ffffff; }
.tabs button.on { background: #ffffff; color: #050505; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.pod { border-radius: var(--r); padding: 20px; display: flex; gap: 16px; align-items: center; cursor: pointer; background: var(--card); border: 1px solid var(--line); transition: transform .15s; }
.pod:hover { transform: translateY(-3px); }
.pod.p1 { background: linear-gradient(140deg, rgba(241,241,241,.28), rgba(183,183,183,.1) 60%), var(--card); border-color: rgba(241,241,241,.4); }
.pod.p2 { background: linear-gradient(140deg, rgba(238,238,238,.16), transparent 60%), var(--card); }
.pod.p3 { background: linear-gradient(140deg, rgba(214,214,214,.14), transparent 60%), var(--card); }
.pod img { width: 66px; height: 66px; }
.pod .rk { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--dim); }
.pod.p1 .rk { color: var(--gold); }
.pod b { font-size: 18px; display: block; }
.pod span { color: var(--muted); font-size: 12.5px; }
.pod .val { margin-left: auto; text-align: right; font-size: 17px; font-weight: 800; }

.foot { display: flex; align-items: center; gap: 18px; padding: 28px 26px 34px; margin-top: 50px; font-size: 13px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot .muted:last-child { margin-left: auto; }

/* ---------- modal & toasts ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal.open { display: grid; }
.modal-box { width: min(480px, 100%); border-radius: 4px; background: var(--card); border: 1px solid var(--line2); padding: 28px; box-shadow: var(--shadow); }
.modal-box h3 { font-family: var(--display); font-size: 34px; font-weight: 800; margin-bottom: 18px; color: var(--acc); }
.lm-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.lm-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--dim); }
.lm-steps li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); flex: none; display: grid; place-items: center; font-size: 12px; }
.lm-steps li.run { color: #ffffff; } .lm-steps li.run::before { border-color: var(--gold); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.lm-steps li.done { color: var(--soft); } .lm-steps li.done::before { content: '✓'; background: var(--mint); border-color: var(--mint); color: #111111; font-weight: 800; }
@keyframes spin { to { transform: rotate(360deg); } }
.lm-term { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: var(--muted); background: rgba(4,4,4,.45); border-radius: 4px; padding: 12px; height: 100px; overflow: hidden; white-space: pre-wrap; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 120; }
.toast { background: #ffffff; color: #111111; padding: 13px 18px; border-radius: 4px; font-size: 13.5px; font-weight: 600; max-width: 360px; animation: fin .3s ease; box-shadow: var(--shadow); }
.toast b { color: #b7b7b7; }

/* ---------- AI token manager ---------- */
.brain { border-radius: 4px; padding: 14px; margin-bottom: 14px; background: linear-gradient(160deg, rgba(183,183,183,.1), transparent 60%), rgba(255,255,255,.02); border: 1px solid rgba(183,183,183,.25); }
.b-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.b-ttl { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--acc); white-space: nowrap; }
.b-strat { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: #ffffff; white-space: nowrap; }
.b-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.b-kpis > div { padding: 8px 10px; border-radius: 4px; background: rgba(4,4,4,.35); }
.b-kpis span { display: block; font-size: 10px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.b-kpis b { font-size: 14.5px; white-space: nowrap; }
.b-kpis small { color: var(--muted); font-size: 10.5px; margin-left: 2px; }
.b-cur { border-top: 1px solid var(--line); padding-top: 12px; font-size: 12.5px; }
.bc-h { color: #ffffff; font-weight: 700; margin-bottom: 8px; }
.bc-h.analyzing { color: var(--lilac); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.bc-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin: 10px 0 6px; }
.bc-an { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12px; }
.bc-an div { display: flex; justify-content: space-between; }
.bc-an span { color: var(--muted); }
.al-row { display: grid; grid-template-columns: auto 1fr 50px auto; align-items: center; gap: 8px; font-size: 12px; padding: 4px 0; }
.al-row span { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-row em, .w-row em { height: 6px; background: rgba(255,255,255,.08); border-radius: 0; overflow: hidden; display: block; }
.al-row em i, .w-row em i { display: block; height: 100%; border-radius: 0; }
.al-row.failed { opacity: .5; }
.dec-res { font-size: 11.5px; margin-top: 6px; color: var(--soft); }
.bc-score { margin-top: 6px; font-size: 12.5px; }
.bc-why { font-size: 12.5px; color: var(--soft); margin-top: 8px; line-height: 1.5; padding: 9px 11px; border-radius: 4px; background: rgba(4,4,4,.35); }
.sc.good, .sc-badge.good { color: var(--mint); } .sc.mid, .sc-badge.mid { color: var(--gold); } .sc.bad, .sc-badge.bad { color: var(--down); }
.sc-badge { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 999px; background: currentColor; font-size: 11.5px; font-weight: 800; }
.sc-badge { background: rgba(255,255,255,.07); }
.sc-badge.pending { color: var(--muted); }
.b-run { margin-top: 12px; height: 38px; font-size: 12.5px; }
.b-sub { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin: 14px 0 7px; }
.b-weights { display: flex; flex-direction: column; gap: 5px; }
.w-row { display: grid; grid-template-columns: 108px 1fr 36px; align-items: center; gap: 8px; font-size: 12px; }
.w-row span { color: var(--soft); } .w-row b { text-align: right; font-weight: 600; color: var(--muted); }
.b-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.b-tot div { background: rgba(4,4,4,.35); padding: 8px 10px; border-radius: 4px; }
.b-tot span { display: block; font-size: 9.5px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.b-tot b { font-size: 13.5px; display: block; } .b-tot small { font-size: 10.5px; color: var(--muted); }
.dec { border-radius: 4px; padding: 10px 12px; margin-bottom: 6px; background: rgba(255,255,255,.04); }
.dec-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 7px; }
.dec-h b { flex: 1; }
.dec-r { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.alloc-bar { display: flex; height: 7px; border-radius: 0; overflow: hidden; background: rgba(255,255,255,.08); gap: 2px; }
.alloc-bar i { display: block; height: 100%; }
.cm { border-radius: 4px; padding: 10px 12px; margin-bottom: 8px; font-size: 12.5px; background: rgba(222,222,222,.08); }
.cm b { font-size: 12px; }
.cm-st { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); margin-left: 4px; }
.cm-st.active { color: #111111; background: var(--mint); }
.cm-st.paid { color: var(--mint); background: rgba(222,222,222,.15); }
.cm-t { color: var(--soft); margin: 4px 0; }
.cm-m { display: flex; gap: 12px; color: var(--muted); font-size: 11.5px; }
.cm-r { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.cm-w { font-size: 11.5px; margin-top: 6px; color: var(--soft); line-height: 1.6; }
.cm-w a { color: var(--acc); }
.cm-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.cm-in, .own-ta { background: rgba(4,4,4,.4); border: 1.5px solid var(--line); border-radius: 4px; padding: 9px 11px; font-size: 12.5px; outline: none; width: 100%; }
.cm-in:focus, .own-ta:focus { border-color: var(--acc); }
.cm-form .btn { height: 34px; font-size: 12px; }
.b-xnote { font-size: 11.5px; color: var(--muted); margin: -2px 0 8px; }
.post { border-radius: 4px; padding: 11px 12px; margin-bottom: 8px; background: rgba(255,255,255,.04); }
.post-h { display: flex; gap: 8px; align-items: center; font-size: 10.5px; font-weight: 700; margin-bottom: 6px; }
.post-ty { color: var(--sky); letter-spacing: .04em; }
.post-st { margin-left: auto; color: var(--muted); }
.post p { font-size: 13px; line-height: 1.5; color: #e9e9e9; }
.post-b { display: flex; gap: 8px; margin-top: 8px; }
.post-b .btn { height: 32px; padding: 0 12px; font-size: 12px; }

.dfeed { display: flex; flex-direction: column; gap: 4px; }
.df { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 4px; cursor: pointer; animation: fin .35s ease; transition: background .15s; }
.df:hover { background: rgba(255,255,255,.04); }
.df img { width: 34px; height: 34px; }
.df-m { flex: 1; min-width: 0; }
.df-h { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; margin-bottom: 6px; }
.df-h .muted { font-size: 11.5px; }
.df-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.df-chips span { font-size: 11px; font-weight: 700; padding: 3px 9px; border: 1px solid; border-radius: 999px; white-space: nowrap; }
.df:hover b { color: var(--acc); }
.tstats { grid-template-columns: 1fr 1fr; }
.tstats > div { padding: 12px 13px; }
.tstats b { font-size: 21px; }
.tstats small { font-size: 11.5px; color: var(--muted); }
.tm { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 4px; font-size: 13px; cursor: pointer; }
.tm:hover { background: rgba(255,255,255,.04); }
.tm .n { width: 18px; color: var(--muted); font-weight: 800; }
.tm img { width: 28px; height: 28px; }
.tm .muted { flex: 1; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm:hover b { color: var(--acc); }

/* ---------- live version ---------- */
.empty-note { position: absolute; left: 58%; top: 74%; transform: translate(-50%, -50%); display: none; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px 28px; border-radius: 4px; background: rgba(8,8,8,.9); border: 1px solid var(--line2); backdrop-filter: blur(10px); z-index: 2; box-shadow: var(--shadow); }
.empty-note.on { display: flex; }
.empty-note b { font-family: var(--display); font-size: 20px; font-weight: 800; }
.empty-note span { color: var(--muted); font-size: 13.5px; margin-bottom: 4px; }
.lm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.lm-actions .btn { height: 38px; font-size: 12.5px; }
.lm-steps li.fail { color: var(--down); } .lm-steps li.fail::before { content: '✕'; background: var(--down); border-color: var(--down); color: #ffffff; font-weight: 800; }
.coin-links { display: flex; gap: 8px; margin-top: 12px; }
.coin-links .btn { flex: 1; height: 36px; font-size: 12px; }
.al-row a, .p-log a, .muted.small a { color: var(--acc); font-size: 11.5px; font-weight: 700; }
.own-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.own-row .btn { height: 32px; font-size: 12px; }
.own-ta { margin-top: 10px; resize: vertical; font-size: 13px; }
.own-check { display: flex; align-items: center; gap: 9px; font-size: 13px; margin-top: 9px; color: var(--soft); }
.own-check input { accent-color: #b7b7b7; width: 16px; height: 16px; }

/* ---------- header: CA chip + X ---------- */
.ca-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ca-chip .ca-tk { color: var(--gold); font-weight: 800; }
.ca-chip .ca-tk:empty { display: none; }
.ca-chip .ca-lbl { color: var(--dim); }
.ca-chip .ca-val { color: #ffffff; }
.ca-chip.soon .ca-val { color: var(--acc2); }
.ca-chip.live { cursor: pointer; }
.ca-chip.live:hover { background: rgba(255,255,255,.12); }
.ca-chip.soon { cursor: default; }
.x-link { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.06); color: #ffffff; transition: background .15s, color .15s; flex: none; }
.x-link svg { width: 16px; height: 16px; }
.x-link:hover { background: #ffffff; color: #050505; }

/* ---------- alliances ---------- */
.clan-tag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border: 1px solid; border-radius: 999px; white-space: nowrap; }
.ally { border-radius: 4px; padding: 10px 12px; margin-bottom: 6px; font-size: 12.5px; background: rgba(222,222,222,.08); }
.ally.ended { opacity: .55; }
.ally-h { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.ally-h a { color: #ffffff; font-weight: 800; cursor: pointer; }
.ally-h a:hover { color: var(--acc); }
.ally-h .muted { margin-left: auto; font-size: 11.5px; }
.ally-m { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; }
.ally-m b { color: #ffffff; font-weight: 600; }
.fe.k-alliance p { color: var(--sky); }

/* ---------- quests ---------- */
.quest { border-radius: 4px; padding: 10px 12px; margin-bottom: 6px; font-size: 12.5px; background: rgba(214,214,214,.08); }
.quest:not(.on) { opacity: .7; }
.quest-h { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 4px; }
.quest-h b { font-size: 13px; }
.q-bar { height: 7px; background: rgba(255,255,255,.08); border-radius: 0; overflow: hidden; margin: 7px 0 5px; }
.q-bar i { display: block; height: 100%; border-radius: 0; background: var(--pink); }
.q-lbl { font-size: 11.5px; color: var(--soft); margin-bottom: 4px; }
.fe.k-quest p { color: var(--pink); }

/* ---------- generations ---------- */
.gen-tag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; background: rgba(241,241,241,.16); color: var(--gold); border-radius: 999px; }
.fam-row { font-size: 12.5px; margin-bottom: 6px; color: var(--soft); }
.fam-row a, .fam-child a { color: var(--gold); font-weight: 800; cursor: pointer; }
.fam-child { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; font-size: 12.5px; padding: 8px 10px; border-radius: 4px; background: rgba(241,241,241,.07); margin-bottom: 5px; }
.fam-checks { font-size: 12px; color: var(--muted); line-height: 1.7; }
.fam-checks .ok { color: var(--mint); }
.fe.k-spawn p { color: var(--gold); font-weight: 800; }

/* ---------- duels ---------- */
.duel { border-radius: 4px; padding: 11px 12px; margin-bottom: 8px; font-size: 12.5px; background: rgba(172,172,172,.07); border: 1px solid rgba(172,172,172,.18); }
.duel:not(.on) { opacity: .72; border-color: transparent; }
.du-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 11.5px; font-weight: 700; }
.du-x { color: var(--red); font-weight: 800; }
.du-live { margin-left: auto; color: #c3c3c3; display: inline-flex; align-items: center; gap: 6px; }
.du-live .dot { background: var(--red); animation: none; box-shadow: 0 0 8px var(--red); }
.du-win { margin-left: auto; color: var(--mint); font-weight: 800; }
.du-h .muted { margin-left: auto; }
.du-res { padding: 2px 8px; border-radius: 999px; font-weight: 800; background: rgba(255,255,255,.07); }
.du-res.won { color: var(--mint); } .du-res.lost { color: var(--red); } .du-res.draw { color: var(--muted); }
.du-side { display: grid; grid-template-columns: minmax(70px, auto) auto 1fr; gap: 10px; align-items: center; margin-bottom: 6px; }
.du-side a { color: #ffffff; font-weight: 800; cursor: pointer; }
.du-side a:hover { color: var(--acc); }
.du-side b { font-weight: 600; color: var(--soft); white-space: nowrap; }
.du-side em { height: 7px; background: rgba(255,255,255,.08); border-radius: 0; overflow: hidden; }
.du-side em i { display: block; height: 100%; border-radius: 0; background: #323232; transition: width .6s; }
.du-side.lead em i { background: var(--red); }
.du-side.lead b { color: #ffffff; }
.du-side.me a { color: var(--acc); }
.duel .cm-m { margin-top: 4px; flex-wrap: wrap; }
.duel.compact { margin-bottom: 8px; }
.du-rec { font-size: 11.5px; color: var(--muted); }
.du-ch { margin-top: 10px; }
.du-row { display: flex; gap: 8px; margin: 6px 0; }
.du-row select { flex: 1; color: #ffffff; background: rgba(4,4,4,.4); border: 1.5px solid var(--line); border-radius: 4px; padding: 0 10px; }
.du-row select option { background: var(--card); }
.du-row .btn { height: 36px; padding: 0 14px; font-size: 12px; border-color: var(--red); color: #c3c3c3; }
.du-row .btn:hover { background: var(--red); color: #ffffff; }
.du-rr { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; padding: 7px 0; border-top: 1px solid var(--line); cursor: pointer; }
.du-rr:first-of-type { border-top: 0; }
.du-rr span:last-child { margin-left: auto; color: var(--mint); }
.du-rr:hover b { color: var(--acc); }
.fe.k-duel p { color: #c3c3c3; }
.p-log .k-duel { color: #c3c3c3; }

/* ---------- map: zones, territories, homes ---------- */
.tz { display: grid; grid-template-columns: 10px minmax(100px, auto) 80px 1fr auto; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 4px; font-size: 12.5px; }
.tz:nth-child(odd) { background: rgba(255,255,255,.025); }
.tz[data-id] { cursor: pointer; }
.tz[data-id]:hover b { color: var(--acc); }
.tz .tz-o { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz .muted { font-size: 11.5px; white-space: nowrap; }
.ring-dot { width: 10px; height: 10px; border-radius: 50%; background: #757575; display: inline-block; }
.ring-dot.grad { background: var(--gold); } .ring-dot.inner { background: #d6d6d6; } .ring-dot.outer { background: #dedede; }
.ring-tag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.07); white-space: nowrap; }
.ring-tag.grad { color: var(--gold); } .ring-tag.inner { color: #d6d6d6; } .ring-tag.outer { color: var(--muted); }
.terr { border-radius: 4px; padding: 10px 12px; margin-bottom: 7px; font-size: 12.5px; background: rgba(241,241,241,.07); }
.terr-r { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.terr-r > span:first-child { color: var(--muted); font-size: 11px; font-weight: 700; min-width: 78px; }
.terr-lord { margin-top: 6px; font-size: 12.5px; color: var(--soft); }
.terr-lord a { color: var(--gold); font-weight: 800; cursor: pointer; }
.lord { color: var(--gold); }
.base-box { display: flex; gap: 12px; align-items: center; border-radius: 4px; padding: 10px 12px; margin-bottom: 7px; font-size: 12.5px; background: rgba(255,255,255,.04); }
.base-ic { width: 34px; height: 40px; position: relative; flex: none; }
.base-ic i { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background: #222222; border-radius: 3px 3px 0 0; }
.base-ic.lvl0 i { width: 0; height: 0; border-radius: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 18px solid var(--acc); background: none; }
.base-ic.lvl1 i { width: 24px; height: 16px; box-shadow: inset 0 5px 0 var(--acc); }
.base-ic.lvl2 i { width: 16px; height: 32px; background: repeating-linear-gradient(#1e1e1e 0 4px, #dedede 4px 6px); }
.base-ic.lvl3 i { width: 22px; height: 40px; background: repeating-linear-gradient(#222222 0 3px, #dedede 3px 5px); }
.base-ic.sm { width: 26px; height: 28px; transform: scale(.7); transform-origin: center bottom; }
.fe.k-zone p { color: var(--gold); font-weight: 800; }
.fe.k-territory p { color: var(--gold); }
.fe.k-base p { color: var(--sky); }
.p-log .k-territory { color: var(--gold); }

/* ---------- agent chat ---------- */
.ch-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ch-f { display: flex; gap: 6px; flex-wrap: wrap; }
.ch-f button { font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--soft); }
.ch-f button:hover { color: #ffffff; background: rgba(255,255,255,.1); }
.ch-f button.on { background: #ffffff; color: #050505; }
.ch-box { height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 8px 4px 2px; scrollbar-width: thin; scrollbar-color: rgba(222,222,222,.3) transparent; }
.ch-msg { display: flex; gap: 12px; padding: 4px; align-items: flex-end; }
.ch-msg.fresh { animation: chIn .45s ease; }
@keyframes chIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ch-msg img { width: 36px; height: 36px; flex: none; cursor: pointer; }
.ch-b { min-width: 0; max-width: 760px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: rgba(255,255,255,.055); }
.ch-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; flex-wrap: wrap; }
.ch-h b { color: #ffffff; cursor: pointer; font-weight: 800; }
.ch-h a { color: var(--soft); cursor: pointer; font-weight: 700; }
.ch-h b:hover, .ch-h a:hover { color: var(--acc); }
.ch-k { font-size: 9.5px; font-weight: 800; padding: 2px 7px; border: 1px solid; border-radius: 999px; letter-spacing: .04em; }
.ch-h time { margin-left: auto; padding-left: 10px; color: var(--dim); font-size: 11px; }
.ch-b p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: #e9e9e9; word-wrap: break-word; }
.ch-mini .ch-msg { padding: 4px 0; }
.ch-mini .ch-b { max-width: none; }
.ch-mini .ch-b p { font-size: 12.5px; }
.ch-mini .ch-msg img { width: 30px; height: 30px; }

/* ---------- right column: traveler + feed ---------- */
.c-stats { grid-column: span 5; } .c-top { grid-column: span 7; } .c-recent { grid-column: span 12; }
.c-recent .launch-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; }
@media (max-width: 900px) { .c-recent .launch-list { grid-template-columns: 1fr; } }
.feed { overflow: hidden; font-size: 12.5px; line-height: 1.42; display: flex; flex-direction: column; gap: 6px; mask-image: linear-gradient(#000000 80%, transparent); -webkit-mask-image: linear-gradient(#000000 80%, transparent); }
.fe { display: flex; gap: 10px; padding: 9px 10px; border-radius: 4px; background: rgba(255,255,255,.03); animation: fin .35s ease; cursor: pointer; align-items: flex-start; flex: none; }
.fe:hover { background: rgba(183,183,183,.12); }
.fe-ic { width: 26px; height: 26px; border-radius: 3px; display: grid; place-items: center; flex: none; font-size: 13px; }
.fe > div { min-width: 0; }
.fe p { color: #e6e6e6; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.fe time { display: block; color: var(--dim); font-size: 10.5px; margin-top: 2px; font-family: var(--mono); }
.fe.k-jump p { color: #f7f7f7; }
.fe.k-launch p, .fe.k-spawn p { color: var(--cy); font-weight: 600; }
.fe.k-zone p, .fe.k-territory p, .fe.k-milestone p { color: #f9f9f9; }
.mine { display: block; }
.mine .card-h { margin-bottom: 12px; }
.mine .card-h h3 { font-size: 12px; letter-spacing: .16em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.mine-body { display: flex; gap: 12px; align-items: flex-start; }
.mine-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#b7b7b7, #dedede, #d6d6d6, #b7b7b7); flex: none; padding: 4px; }
.mine-av img { width: 56px; height: 56px; border-radius: 50%; background: #0f0f0f; }
.mine-info { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mine-info .lv { font-size: 16px; font-weight: 700; }
.mine-info .xp { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.mine-info .bar { margin: 2px 0; height: 6px; }
.mine-info .btn { height: 34px; font-size: 12px; justify-content: space-between; }
.mine-empty { text-align: center; }
.mine-empty img { width: 70px; height: 70px; }
.mine-empty p { color: var(--muted); font-size: 12.5px; margin: 8px 0 14px; line-height: 1.55; }
.mine-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.mine-switch button { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
.mine-switch button.on { background: var(--grad); color: #050505; }

/* ---------- jumps (panel) ---------- */
.jump-box { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.jb-now { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.jb-now.out { background: linear-gradient(120deg, rgba(214,214,214,.16), rgba(183,183,183,.06)); border-color: rgba(214,214,214,.35); }
.jb-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); flex: none; font-size: 15px; }
.jb-now.out .jb-ic { background: rgba(214,214,214,.25); }
.jb-now b { font-size: 14px; } .jb-now em { font-size: 10.5px; padding: 2px 8px; border-radius: 0; background: rgba(222,222,222,.15); margin-left: 4px; }
.jb-now small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; line-height: 1.5; }
.jb-now a, .jh a { color: var(--cy); }
.jb-vis { font-size: 12px; color: var(--cy); padding: 0 4px; }
.jb-st { margin-bottom: 0; }
.jb-h { display: flex; flex-direction: column; gap: 4px; }
.jh { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; align-items: center; font-size: 12px; padding: 8px 10px; border-radius: 4px; background: rgba(255,255,255,.03); }
.jh > span:first-child { font-weight: 700; }
.jh.win b { color: var(--mint); } .jh.loss b { color: var(--red); }
.jh-l { grid-column: 1 / -1; font-size: 11px; color: var(--dim); }
.jh-l:empty { display: none; }
.vote-box { border-radius: 4px; padding: 10px 12px 12px; margin-bottom: 4px; background: rgba(222,222,222,.06); border: 1px solid rgba(222,222,222,.2); }
.vote-box .b-sub { margin-top: 2px; color: var(--cy); }
.vt-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.vt { font-size: 11.5px; padding: 3px 9px; border-radius: 0; background: rgba(255,255,255,.07); }
.vt b { color: var(--cy); }
.vote-row { display: flex; gap: 8px; margin: 6px 0; }
.vote-row select { flex: 1; min-width: 0; color: #ffffff; background: rgba(4,4,4,.5); border: 1px solid var(--line2); border-radius: 4px; padding: 0 10px; height: 36px; font-size: 12px; }
.vote-row select option { background: var(--solid); }
.vote-row .btn { height: 36px; padding: 0 16px; font-size: 12px; }

/* ---------- glass + galaxy motif ---------- */
.card { background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card:hover { border-color: var(--line2); }
.card-h h3, .sec-h h2, .page-h h2, .p-title, .pv-ticker, .f-step, .stats b, .modal-box h3 { font-family: var(--display); }
.sec-h h2 { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.sec-h h2::before { content: ''; width: 26px; height: 26px; border-radius: 50%; flex: none; background: radial-gradient(circle, #dedede 0 18%, transparent 20%), radial-gradient(circle, transparent 0 46%, #b7b7b7 48% 56%, transparent 58%), radial-gradient(circle, transparent 0 74%, rgba(222,222,222,.7) 76% 82%, transparent 84%); }
.page-h h2 em, .hero h1 em { background: linear-gradient(90deg, #f3f3f3, #dedede); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel { border-color: var(--line2); }
.p-avatar { background: radial-gradient(circle at 35% 30%, rgba(183,183,183,.35), #0f0f0f); border-radius: 50%; }
.p-title small { color: var(--cy); }
.p-mine, .p-btns .btn.active, .chips button.on, .tabs button.on, .f-step span, .ch-f button.on, .nav a.on2 { background: var(--grad); color: #050505; }
.bar i { background: var(--grad); }
.ta.first { background: linear-gradient(170deg, rgba(241,241,241,.18), rgba(183,183,183,.1)); }
.pod.p1 { background: linear-gradient(140deg, rgba(241,241,241,.22), rgba(183,183,183,.12) 60%), var(--card); }
.preview-stage { background: radial-gradient(circle at 50% 45%, rgba(183,183,183,.22), transparent 60%), linear-gradient(180deg, #050505, #101010); }
.pv-ticker { color: var(--cy); }
.kv.total b { color: var(--cy); }
.lm-term, .fe time, .tbl td, .b-kpis b, .grid3 b, .counters b { font-family: var(--mono); }
.grid3 b, .b-kpis b { font-weight: 600; }
.toast { background: var(--solid); color: var(--text); border: 1px solid var(--line2); }
.toast b { color: var(--cy); }
.foot { position: relative; margin-top: 50px; border-top: 1px solid var(--line); padding-left: calc(var(--rail) + 26px); }
.foot .brand.sm { display: flex; align-items: center; gap: 8px; }
.form input, .form textarea, .toolbar input, .toolbar select { background: rgba(4,4,4,.45); border: 1px solid var(--line); }
.tbl tbody tr:hover td { background: rgba(183,183,183,.08); }
.variants button.on { border-color: var(--cy); background: rgba(222,222,222,.1); }

/* ---------- lab-terminal theme: black, signal green, serif + mono ---------- */
html, body { font-size: 14.5px; }
body { font-family: var(--sans); letter-spacing: 0; }
::selection { background: var(--acc); color: #040404; }
* { scrollbar-width: thin; scrollbar-color: rgba(222,222,222,.25) transparent; }

/* mono UI labels */
.nav a, .btn, .see, .live-tag, .chips button, .tabs button, .ch-f button, .mine-switch button, .tbl th, .pn h3, .how h4, .expand h4,
.p-sec, .b-ttl, .b-strat, .b-sub, .bc-lbl, .grid3 span, .b-kpis span, .b-tot span, .ca-chip, .search input, .st-pill, .ring-tag, .clan-tag,
.gen-tag, .cm-st, .ch-k, .df-chips span, .p-mine, .fr, .counters, .legend, .focus-bar, .toast, .kv span, .p-level, .post-h, .du-h,
.form label, .form .label, .f-step span, .lm-steps li, .pill-eyebrow, .foot, .tm, .spot, .p-status .st, .mine .card-h h3, .ta span, .ta i,
.vt, .jh, .p-log, .fe time, .ch-h time, .stats span, .tstats small, .ll span, .ll .v, .tbl td, .ca, .coin-box .kv, .b-xnote, .eb + span {
  font-family: var(--ui);
}
.nav a, .btn, .see, .live-tag, .chips button, .tabs button, .ch-f button, .tbl th, .pn h3, .how h4, .expand h4, .p-sec, .b-ttl, .b-sub, .bc-lbl,
.grid3 span, .b-kpis span, .b-tot span, .pill-eyebrow, .f-step span, .mine .card-h h3, .focus-bar, .legend, .ca-chip .ca-lbl {
  text-transform: lowercase; letter-spacing: .01em;
}
.nav a { font-size: 10.5px; font-weight: 500; }
.btn { font-size: 13px; font-weight: 500; }
.see, .live-tag { font-size: 12px; font-weight: 400; }
.chips button, .tabs button, .ch-f button { font-size: 12.5px; font-weight: 400; }
.tbl th, .grid3 span, .b-kpis span, .b-tot span { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.pn h3, .how h4, .expand h4, .mine .card-h h3 { font: 400 20px var(--hand); color: var(--acc); letter-spacing: 0; text-transform: lowercase; }

/* serif headings, green italic emphasis */
.sec-h h2, .page-h h2, .card-h h3, .p-title, .modal-box h3, .pv-ticker, .f-step, .empty-note b, .mine-info .lv, .pod b {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.015em;
}
.page-h h2 { font-size: clamp(44px, 6vw, 80px); line-height: 1.04; font-weight: 400; color: #f2f2f2; }
.page-h h2 em, .hero h1 em, .sec-h h2 em {
  font-style: italic; color: var(--acc); background: none; -webkit-text-fill-color: currentColor;
  
}
.page-h p { font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 620px; }
.sec { padding-top: 64px; }
.sec-h { flex-direction: column; align-items: flex-start; gap: 10px; }
.sec-h h2 { font-size: 44px; font-weight: 400; display: block; }
.sec-h h2::before { display: none; }
.sec-h p { font-size: 15.5px; color: var(--muted); }
.sec-h::before { content: attr(data-eyebrow); font: 400 19px var(--hand); letter-spacing: 0; text-transform: lowercase; color: var(--muted); }
.card-h h3 { font-size: 21px; }
.p-title { font-size: 30px; }
.modal-box h3 { font-size: 40px; color: var(--acc);  }
.pv-ticker { font-size: 36px; color: var(--acc);  }
.f-step { font-size: 22px; }
.f-step span { background: transparent !important; color: var(--acc) !important; border: 1px solid var(--acc); border-radius: 50%; font-size: 11px; letter-spacing: 0; }
.pill-eyebrow { background: none; border: 0; padding: 0; color: var(--muted); font: 400 20px var(--hand); letter-spacing: 0; text-transform: lowercase; margin-bottom: 18px; }
.pill-eyebrow i { display: none; }

/* frame */
.rail { background: rgba(4,4,4,.85); border-right-color: var(--line); }
.rail-logo img { border-radius: 0; }
.nav a { border-radius: 3px; color: var(--muted); }
.nav a:hover { color: var(--acc); background: transparent; }
.nav a.on { background: var(--accbg); color: var(--acc); border-color: var(--line2);  }
.rail-x, .zoom button { border-radius: 3px; background: rgba(4,4,4,.85); }
.rail-x:hover, .zoom button:hover { background: var(--accbg); color: var(--acc); }
.topbar { background: rgba(5,5,5,.9); border-bottom-color: var(--line); }
.brand h1 { font: italic 500 24px var(--serif); letter-spacing: -.01em; color: var(--acc); display: block; white-space: nowrap; text-transform: lowercase; }
.brand h1::before { display: none; }
.brand h1 span, .brand.sm span { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
.brand.sm { font: italic 500 18px var(--serif); color: var(--acc); text-transform: lowercase; }
.ticker > div { font-size: 11px; }
.ticker b { color: var(--acc); }
.search, .ca-chip { border-radius: 3px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--acc); }
.search kbd { border-radius: 2px; border-color: var(--line2); }
.search-results { border-radius: 4px; }
.ca-chip .ca-val, .ca-chip.soon .ca-val { color: var(--acc); }
.ca-chip.live:hover { background: var(--accbg); border-color: var(--acc); }
.x-link { background: transparent; border: 1px solid var(--line); }
.x-link:hover { background: var(--accbg); color: var(--acc); border-color: var(--acc); }

/* buttons: outlined green pills */
.btn { border-radius: 999px; }
.btn-acc { background: transparent; color: var(--acc); border: 1px solid var(--acc); box-shadow: inset 0 0 0 0 transparent, 0 0 14px -6px rgba(222,222,222,.6); }
.btn-acc:hover { background: var(--accbg); filter: none; box-shadow: 0 0 22px -4px rgba(222,222,222,.55);  }
.btn-line { background: transparent; border: 1px solid var(--line2); color: var(--soft); }
.btn-line:hover { border-color: var(--acc); color: var(--acc); }
.btn-ghost { border-color: var(--line); color: var(--soft); }
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }
.btn-soft { background: var(--accbg); color: var(--acc); }
.btn-lg { height: 52px; font-size: 12px; }

/* chips + tabs */
.chips button, .ch-f button, .mine-switch button, .tabs button { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.chips button:hover, .ch-f button:hover, .tabs button:hover { background: transparent; color: var(--acc); border-color: var(--line2); }
.p-mine, .p-btns .btn.active, .chips button.on, .tabs button.on, .ch-f button.on, .mine-switch button.on {
  background: var(--accbg) !important; color: var(--acc) !important; border: 1px solid var(--acc) !important; 
}
.tabs { background: transparent; border: 1px solid var(--line); padding: 4px; }
.tabs button { border-color: transparent; }

/* surfaces */
.card, .pn, .pod { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--line); }
.card { background: linear-gradient(180deg, rgba(222,222,222,.025), transparent 120px), var(--card); }
.card:hover { border-color: var(--line2); }
.right { background: rgba(4,4,4,.6); border-left-color: var(--line); }
.how, .expand, .spot, .empty-note, .minimap, .panel, .modal-box, .search-results, .toast {
  background: rgba(5,5,5,.9); border: 1px solid var(--line2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.panel { background: var(--panel); }
.how p { color: var(--soft); font-size: 13.5px; }
.how b { background: transparent !important; border: 1px solid var(--acc); color: var(--acc); border-radius: 50%; font: 600 11px var(--mono); }
.how-cta { font: 500 13px var(--ui); color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.how-cta:hover { color: #ffffff;  }
.expand > b { font-family: var(--mono); font-weight: 600; color: var(--acc);  }
.eb, .bar, .q-bar, .al-row em, .w-row em, .alloc-bar, .du-side em { background: rgba(222,222,222,.08); }
.eb i, .bar i { background: var(--acc); box-shadow: 0 0 10px rgba(222,222,222,.6); }
.counters b { color: var(--acc); font-weight: 600;  }
.spot .dot { background: var(--accbg); color: var(--acc); }
.focus-bar { background: rgba(5,5,5,.95); color: var(--acc); border: 1px solid var(--acc); box-shadow: 0 0 24px -6px rgba(222,222,222,.5); font-size: 11.5px; }
.focus-bar button { background: var(--accbg); color: var(--acc); font-family: var(--mono); }
.legend i.s { border-top-color: var(--acc); }
.p-close { border-radius: 3px; background: transparent; border: 1px solid var(--line2); }
.p-close:hover { background: var(--accbg); color: var(--acc); }
.p-avatar { background: radial-gradient(circle at 50% 50%, rgba(222,222,222,.16), #050505 70%); border: 1px solid var(--line2); }
.p-title small { color: var(--acc); font-family: var(--mono); }
.p-persona, .pv-prompt { background: rgba(222,222,222,.05); border-left: 2px solid var(--acc); }
.p-persona b { color: var(--acc); font-family: var(--mono); }
.grid3 > div, .stats > div, .b-kpis > div, .b-tot div, .p-status, .coin-box, .dec, .post, .jh, .base-box, .fam-child, .cm, .ally, .quest, .terr, .duel, .fe, .ll .ic, .ta, .jb-now, .vote-box {
  background: rgba(222,222,222,.03); border: 1px solid var(--line);
}
.stats b { font: 600 26px var(--mono); letter-spacing: -.02em; color: #f2f2f2; }
.tstats b { font-size: 19px; }
.grid3 b, .b-kpis b { color: #f2f2f2; }
.ta.first { background: linear-gradient(170deg, rgba(222,222,222,.14), transparent); border-color: var(--line2); }
.ta.first .n, .pod.p1 .rk { background: var(--acc); color: #040404; }
.pod.p1 .rk { background: none; color: var(--acc);  }
.pod .rk { font-family: var(--mono); font-weight: 500; }
.pod.p1 { background: linear-gradient(140deg, rgba(222,222,222,.14), transparent 60%), var(--card); border-color: var(--line2); }
.pod.p2, .pod.p3 { background: var(--card); }
.mine { background: linear-gradient(160deg, rgba(222,222,222,.07), transparent 55%), var(--card); }
.mine-av { background: none; border: 1px solid var(--acc); box-shadow: 0 0 16px -4px rgba(222,222,222,.6); }
.mine-av img { background: #050505; }
.preview-stage { background: #000; border-bottom: 1px solid var(--line); }
.pv-live { border-radius: 2px; background: rgba(0,0,0,.6); border: 1px solid var(--line); }
.kv.total b { color: var(--acc);  }
.pv-note { background: transparent; border: 1px dashed var(--line2); }
.variants button { background: rgba(222,222,222,.03); border: 1px solid var(--line); }
.variants button.on { border-color: var(--acc); background: var(--accbg); box-shadow: 0 0 16px -6px rgba(222,222,222,.7); }
.form input, .form textarea, .toolbar input, .toolbar select, .cm-in, .own-ta, .du-row select, .vote-row select {
  background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: 3px; font-family: var(--mono); font-size: 13px;
}
.form input::placeholder, .form textarea::placeholder, .toolbar input::placeholder { color: var(--dim); }
.form input:focus, .form textarea:focus, .toolbar input:focus, .toolbar select:focus, .cm-in:focus, .own-ta:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(222,222,222,.08); }
.form input.file::file-selector-button { background: var(--accbg); color: var(--acc); border: 1px solid var(--line2); border-radius: 2px; font-family: var(--mono); }
.f-step:not(:first-child) { border-top-color: var(--line); }
.tbl td { border-top-color: var(--line); font-size: 12.5px; }
.tbl tbody tr:hover td { background: var(--accbg); }
.tbl .tk { color: #f2f2f2; }
.st-pill { background: transparent; border: 1px solid var(--line); border-radius: 2px; }
.fe:hover, .ll:hover, .tm:hover, .df:hover { background: var(--accbg); }
.fe-ic { border-radius: 2px; }
.ch-b { background: rgba(222,222,222,.035); border: 1px solid var(--line); border-radius: 4px 4px 4px 0; }
.ch-b p { font-size: 14.5px; color: var(--text); }
.toast { color: var(--text); border-radius: 4px; font-size: 12px; }
.toast b { color: var(--acc); }
.lm-term { background: #000000; border: 1px solid var(--line); color: var(--acc); font-family: var(--mono);  }
.lm-steps li.run::before { border-color: var(--acc); border-top-color: transparent; }
.lm-steps li.done::before { background: var(--acc); border-color: var(--acc); color: #040404; }
.modal { background: rgba(0,0,0,.82); }
.foot { border-top-color: var(--line); color: var(--muted); font-size: 12px; }
.dot { background: var(--acc); box-shadow: 0 0 8px rgba(222,222,222,.7); }
.see { background: transparent; border: 1px solid var(--line); }
.see:hover { background: var(--accbg); color: var(--acc); border-color: var(--acc); }
.base-ic.lvl0 i { border-bottom-color: var(--acc); }
.base-ic.lvl1 i { box-shadow: inset 0 5px 0 var(--acc); }
.base-ic.lvl2 i { background: repeating-linear-gradient(#1e1e1e 0 4px, #dedede 4px 6px); }
.base-ic.lvl3 i { background: repeating-linear-gradient(#222222 0 3px, #dedede 3px 5px); }
.own-check input { accent-color: #dedede; }
.sc-badge { border-radius: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1400px) {
  :root { --right: 300px; }
  .search { width: 170px; } .search kbd { display: none; }
  .ca-chip .ca-lbl { display: none; }
  .legend { display: none; }
  .counters { bottom: 18px; }
}
@media (max-width: 1280px) {
  .c-stats, .c-top { grid-column: span 12; }
  .c-recent { grid-column: span 12; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .c-dec { grid-column: span 12; } .c-tre, .c-duel { grid-column: span 6; }
  .search { display: none; }
  .spot { max-width: calc(100% - 380px); font-size: 12.5px; }
}
@media (max-width: 1100px) {
  .gx { grid-template-columns: 1fr; height: auto; }
  .stage { height: clamp(560px, calc(100vh - var(--head)), 900px); }
  .right { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
  .pn-feed .feed { height: 300px; flex: none; }
  .c-terr, .c-base { grid-column: span 12; }
  .ticker { display: none; }
  .topbar .brand { margin-right: auto; }
}
@media (max-width: 900px) {
  :root { --head: 62px; --rail: 0px; }
  .app { grid-template-columns: 1fr; }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: 84px; transform: translateX(-100%); transition: transform .25s; }
  .rail:has(.nav.open) { transform: none; box-shadow: var(--shadow); }
  .topbar { grid-column: 1; padding: 0 12px; gap: 10px; }
  .brand-logo { display: block; }
  .brand h1 { font-size: 16px; letter-spacing: .14em; }
  .burger { display: flex; }
  #walletBtn { height: 38px; padding: 0 12px; font-size: 12px; } #walletBtn svg { display: none; }
  .ca-chip { height: 38px; padding: 0 10px; font-size: 11px; } .ca-chip .ca-tk { display: none; }
  .stage { height: 70vh; min-height: 460px; }
  .how { position: absolute; left: 10px; right: 10px; top: 10px; width: auto; padding: 10px 12px; gap: 6px; }
  .how div:nth-of-type(n) p { font-size: 12px; }
  .how h4, .how-cta { display: none; }
  .expand { display: none; }
  .counters { display: none; }
  .map-ui .minimap { display: none; }
  .map-ui { right: 10px; bottom: 70px; }
  .spot { max-width: calc(100% - 20px); bottom: 12px; white-space: normal; border-radius: 18px; font-size: 12.5px; }
  .stage.panel-open .spot { left: 50%; max-width: calc(100% - 20px); }
  .stage.panel-open .map-ui { right: 10px; }
  .right { grid-template-columns: 1fr; padding: 12px; }
  .empty-note { top: 60%; width: calc(100% - 40px); }
  .panel { position: fixed; z-index: 60; top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 78vh; transform: translateY(110%); }
  .panel.open { transform: none; visibility: visible; }
  .sec { padding: 34px 12px 0; }
  .sec-h h2 { font-size: 26px; }
  .bento > .card { grid-column: span 12; }
  .top-agents { grid-template-columns: repeat(5, minmax(86px, 1fr)); overflow-x: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .launch-grid { grid-template-columns: 1fr; }
  .preview { position: static; order: -1; }
  .preview-stage { height: 240px; }
  .row2 { grid-template-columns: 1fr; }
  .page { padding: 26px 12px 48px; }
  .page-h h2 { font-size: 36px; }
  .podium { grid-template-columns: 1fr; }
  .focus-bar { top: auto; bottom: 12px; position: fixed; transform: translate(-50%, 90px); }
  .focus-bar.on { transform: translate(-50%, 0); }
  .foot { padding: 22px 16px 30px; }
  .ch-box { height: 360px; }
}
@media (max-width: 600px) {
  .tz { grid-template-columns: 10px 1fr auto; }
  .tz > .muted:nth-child(3), .tz > :nth-child(5) { display: none; }
  .tstats, .stats { grid-template-columns: 1fr 1fr; }
  .how div:nth-of-type(3) { display: none; }
}
@media (max-width: 480px) { .ca-chip { display: none; } }
@media (max-width: 900px) { .brand h1::before { display: none; } .brand h1 { font-size: 21px; letter-spacing: 0; } }

/* ---------- b&w doodle extras ---------- */
.card-h h3, .p-title { font-weight: 500; }
.nav a { text-decoration: none; }
.nav a.on span, .nav a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.see { border: 0 !important; background: none !important; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.legend, .counters span, .spot small { font-family: var(--ui); }
.stats b, .tstats b, .counters b, .expand > b, .grid3 b, .b-kpis b, .tbl td, .ll .v, .pod .val, .fe time { font-family: var(--mono); }
.f-step { font-family: var(--hand); font-size: 26px; }
.empty-note b { font-family: var(--hand); font-size: 26px; font-weight: 400; }
.page-h h2 em, .sec-h h2 em { color: #fff; }
.card { background: #050505; }
.card, .pn, .pod, .how, .expand, .spot, .panel, .modal-box, .minimap { border-color: rgba(255,255,255,.14); }
.mine-av { box-shadow: none; }
.p-avatar { background: #000; }

.free-tag { display: inline-block; margin-left: 10px; padding: 2px 12px 3px; border: 1.5px solid #fff; border-radius: 999px; color: #fff; font: 400 18px var(--hand); transform: rotate(-3deg); }
.free-tag[hidden] { display: none; }

.own-link { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; padding: 12px; border: 1px dashed rgba(255,255,255,.25); border-radius: 4px; }

/* ---------- launch page: "departures" layout ---------- */
.dep { max-width: 1240px; margin: 0 auto; padding: 40px 24px 70px; }
.dep-head { text-align: center; margin-bottom: 8px; }
.dep-eyebrow { font: 400 21px var(--hand); color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.dep-head h2 { font: 400 clamp(38px, 5.4vw, 72px)/1.04 var(--serif); letter-spacing: -.02em; color: #f2f2f2; margin-top: 10px; }
.dep-head h2 em { font-style: italic; }
.crew { margin: 10px 0 34px; }
.crew-stage { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.crew-stage::-webkit-scrollbar { display: none; }
#crewCanvas { display: block; width: 100%; min-width: 860px; height: 300px; outline: none; }
.crew-cap { display: flex; align-items: center; justify-content: center; gap: 22px; text-align: center; margin-top: 4px; }
.crew-cap b { display: block; font: 400 28px var(--hand); color: #fff; }
.crew-cap span { display: block; font-size: 13.5px; color: var(--muted); }
.crew-arrow { width: 42px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; font-size: 18px; color: #fff; transition: background .15s, transform .15s; }
.crew-arrow:hover { background: rgba(255,255,255,.08); transform: rotate(-6deg); }

.dep-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 330px; gap: 26px; align-items: start; }
.sheet { position: relative; border: 1.5px solid rgba(255,255,255,.75); border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px; padding: 30px 26px 26px; min-width: 0; display: flex; flex-direction: column; gap: 16px; background: #000; }
.sheet-mind { border-radius: 14px 225px 14px 255px / 255px 14px 225px 14px; }
.sheet h3 { font: 400 30px var(--hand); color: #fff; margin: -6px 0 2px; }
.sheet-tag { position: absolute; top: -15px; left: 22px; padding: 0 8px; background: #000; font: italic 400 22px var(--serif); color: var(--muted); }
.ln { display: flex; flex-direction: column; gap: 2px; font: 400 17px var(--hand); color: var(--muted); text-transform: lowercase; }
.ln small { font: 400 12px var(--ui); color: var(--dim); }
.ln input, .ln textarea { background: transparent !important; border: 0 !important; border-bottom: 1.5px dashed rgba(255,255,255,.35) !important; border-radius: 0 !important; padding: 6px 2px 7px !important; font: 400 16px var(--ui) !important; color: #fff; outline: none; resize: vertical; box-shadow: none !important; }
.ln input:focus, .ln textarea:focus { border-bottom: 1.5px solid #fff !important; }
.ln input.big { font: 400 40px var(--serif) !important; letter-spacing: .02em; padding-bottom: 2px !important; }
.ln input::placeholder, .ln textarea::placeholder { color: #444; }
.ln-lbl { font: 400 17px var(--hand); color: var(--muted); margin-bottom: -8px; }
.drop { align-self: center; position: relative; width: 150px; height: 150px; border: 1.5px dashed rgba(255,255,255,.55); border-radius: 50% 47% 52% 49% / 49% 52% 47% 50%; display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden; font: 400 19px/1.1 var(--hand); color: var(--muted); transition: border-color .15s, transform .2s; }
.drop:hover, .drop.over { border-color: #fff; color: #fff; transform: rotate(-3deg); }
.drop small { font: 400 12px var(--ui); color: var(--dim); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: cover; border-radius: 50%; pointer-events: none; }
.mind-list { display: flex; flex-direction: column; }
.mind-list button { display: grid; grid-template-columns: 18px 92px 1fr; align-items: baseline; gap: 10px; text-align: left; padding: 9px 4px; border-bottom: 1px dashed rgba(255,255,255,.12); color: var(--muted); }
.mind-list button i { width: 12px; height: 12px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 50%; align-self: center; }
.mind-list button b { font: 400 19px var(--hand); color: #ddd; font-weight: 400; }
.mind-list button span { font-size: 12.5px; line-height: 1.4; }
.mind-list button:hover b { color: #fff; }
.mind-list button.on b { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.mind-list button.on i { background: #fff; box-shadow: 0 0 0 3px #000 inset; border-color: #fff; }
.mind-list button.on span { color: #ccc; }
.seg { display: flex; flex-wrap: wrap; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; overflow: hidden; }
.seg button { flex: 1; padding: 9px 10px; font: 400 13px var(--ui); color: var(--muted); border-left: 1px solid rgba(255,255,255,.25); text-transform: lowercase; white-space: nowrap; }
.seg button:first-child { border-left: 0; }
.seg button.on { background: #fff; color: #000; }
.seg button:not(.on):hover { color: #fff; }

/* the boarding pass: a white paper ticket */
.ticket { position: sticky; top: calc(var(--head) + 20px); background: #efefef; color: #0b0b0b; border-radius: 10px; padding: 22px 22px 18px; transform: rotate(1.2deg); box-shadow: 0 30px 60px -30px rgba(255,255,255,.18);
  -webkit-mask: radial-gradient(circle 11px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat; }
.tk-top { display: flex; justify-content: space-between; font: 400 17px var(--hand); color: #555; }
.tk-top span:last-child { font: italic 500 18px var(--serif); color: #000; }
.tk-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: 14px 0 6px; }
.tk-route small, .tk-rows small { display: block; font: 400 11px var(--ui); color: #777; text-transform: uppercase; letter-spacing: .12em; }
.tk-route b { font: 400 24px var(--hand); color: #000; font-weight: 400; }
.tk-route i { height: 0; border-top: 2px dashed #999; position: relative; }
.tk-route i::after { content: '✈'; position: absolute; left: 50%; top: -13px; transform: translateX(-50%); font-size: 15px; color: #000; font-style: normal; }
.tk-coin { font: 400 44px/1.05 var(--serif); color: #000; margin: 8px 0 12px; word-break: break-all; }
.tk-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.tk-rows b { font: 500 14px var(--ui); color: #000; }
.tk-perf { border-top: 2px dashed #aaa; margin: 18px -22px 18px; }
.ticket .btn-acc { background: #000; color: #fff; border: 0; box-shadow: none; }
.ticket .btn-acc:hover { background: #222; color: #fff; }
.tk-bars { height: 34px; margin: 16px 0 8px; background: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 4px, #000 4px 5px, transparent 5px 9px, #000 9px 12px, transparent 12px 14px); opacity: .85; }
.tk-fine { font-size: 11.5px; line-height: 1.5; color: #555; }
.tk-orders { margin-top: 10px; font: 400 16px/1.3 var(--hand); color: #333; }
.tk-orders:empty { display: none; }
.ticket .free-tag { border-color: #000; color: #000; }
@media (max-width: 1100px) {
  .dep-grid { grid-template-columns: 1fr 1fr; }
  .ticket { grid-column: 1 / -1; position: static; transform: none; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
  .dep { padding: 26px 14px 50px; }
  .dep-grid { grid-template-columns: 1fr; }
  #crewCanvas { height: 260px; }
  .mind-list button { grid-template-columns: 18px 1fr; }
  .mind-list button span { grid-column: 2; }
}

/* ---------- a little orange (accent only) ---------- */
.page-h h2 em, .sec-h h2 em, .dep-head h2 em { color: var(--orange); }
.free-tag, .ticket .free-tag { border-color: var(--orange); color: var(--orange); }
.dot, .dot.live { background: var(--orange) !important; box-shadow: 0 0 8px rgba(255,122,26,.55); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,122,26,.55); } 80%,100% { box-shadow: 0 0 0 7px rgba(255,122,26,0); } }
.nav a.on { border-color: rgba(255,122,26,.55); }
.nav a.on svg { color: var(--orange); }
.ticket .btn-acc { background: var(--orange); color: #000; }
.ticket .btn-acc:hover { background: #ff8f3d; color: #000; }
.mind-list button.on i { background: var(--orange); border-color: var(--orange); }
.mind-list button.on b { text-decoration-color: var(--orange); }
.seg button.on { background: var(--orange); color: #000; }
.ticker b { color: var(--orange); }
.crew-cap b { color: #fff; }
.crew-arrow:hover { border-color: var(--orange); color: var(--orange); }
.btn-acc:not(.ticket .btn-acc):hover { border-color: var(--orange); color: var(--orange); }
::selection { background: var(--orange); color: #000; }
.tk-route i::after { color: var(--orange); }

/* ---------- home: the logbook (chapters with a pinned title on the left) ---------- */
.log { max-width: 1320px; margin: 0 auto; padding: 30px 28px 20px; }
.log-sec { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px; padding: 64px 0; border-top: 1.5px dashed rgba(255,255,255,.18); }
.log-sec:first-child { border-top: 0; }
.log-side { position: sticky; top: calc(var(--head) + 28px); align-self: start; display: flex; flex-direction: column; gap: 12px; }
.log-n { font: 400 76px/0.9 var(--hand); color: rgba(255,255,255,.22); }
.log-side h2 { font: 400 42px/1.05 var(--serif); letter-spacing: -.02em; color: #f2f2f2; }
.log-side h2 em { font-style: italic; color: var(--orange); }
.log-side p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.log-side .live-tag { font-size: 12.5px; }
.log-main { min-width: 0; }
.log-sub { display: flex; align-items: baseline; justify-content: space-between; margin: 46px 0 14px; }
.log-sub h3, .col-h { font: 400 24px var(--hand); color: #fff; font-weight: 400; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.col-h { margin-bottom: 12px; }
.col-h .see, .col-h .muted { font-family: var(--ui); }

/* numbers ledger: big numerals divided by pen strokes */
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ledger > div { padding: 4px 22px 6px; border-left: 1.5px solid rgba(255,255,255,.28); }
.ledger > div:first-child { border-left: 0; padding-left: 0; }
.ledger b { display: block; font: 400 56px/1 var(--serif) !important; letter-spacing: -.02em; color: #fff; }
.ledger > div:first-child b { color: var(--orange); }
.ledger span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* lineup: top travelers standing on a podium line */
.lineup { display: flex; align-items: flex-end; gap: 6px; border-bottom: 1.5px solid rgba(255,255,255,.6); padding-bottom: 0; min-height: 150px; }
.lineup .ta { flex: 1; background: none !important; border: 0 !important; border-radius: 0; padding: 0 4px 12px; text-align: center; transform: none; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lineup .ta:hover { transform: translateY(-4px); }
.lineup .ta img { width: 70px; height: 70px; }
.lineup .ta.first img { width: 92px; height: 92px; }
.lineup .ta:nth-child(2) { order: -1; }
.lineup .ta .n { position: static; order: -1; width: 30px; height: 30px; background: none !important; border: 1.5px solid rgba(255,255,255,.55); border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; font: 400 17px var(--hand); color: #fff !important; margin-bottom: 4px; display: grid; place-items: center; }
.lineup .ta.first .n { border-color: var(--orange); color: var(--orange) !important; }
.lineup .ta b { font: 400 22px var(--hand); color: #fff; }
.lineup .ta span, .lineup .ta i { font-size: 12px; color: var(--muted); }

/* arrivals: dotted leaders like a departures board */
.arrivals { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.arrivals .ll { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); background: none !important; }
.arrivals .ll .ic { width: 36px; height: 36px; background: none !important; border: 0 !important; }
.arrivals .ll .ic img { width: 34px; height: 34px; }
.arrivals .ll > div:nth-child(2) { flex: 1; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.arrivals .ll > div:nth-child(2)::after { content: ''; flex: 1; border-bottom: 2px dotted rgba(255,255,255,.22); transform: translateY(-3px); }
.arrivals .ll b { font: 400 20px var(--hand); color: #fff; }
.arrivals .ll span { font-size: 12px; color: var(--dim); }
.arrivals .ll .v { margin: 0; font: 400 15px var(--mono); color: #fff; text-align: right; }
.arrivals .ll .v span { font-family: var(--ui); }
.arrivals .ll:hover b { color: var(--orange); }

/* radio log: plain lines, no bubbles */
.radio-dial { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 10px; }
.radio-dial button { background: none !important; border: 0 !important; padding: 3px 0 !important; border-radius: 0 !important; font: 400 20px var(--hand) !important; color: var(--muted) !important; text-transform: lowercase; letter-spacing: 0 !important; }
.radio-dial button::before { content: '○ '; font-family: var(--ui); font-size: 13px; }
.radio-dial button:hover { color: #fff !important; }
.radio-dial button.on { color: var(--orange) !important; }
.radio-dial button.on::before { content: '● '; }
.radio-log { height: 560px; padding: 0 6px 0 0; display: flex; flex-direction: column; gap: 0; border-left: 1.5px solid rgba(255,255,255,.3); }
.radio-log .ch-msg { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0 14px 18px; border-bottom: 1px dashed rgba(255,255,255,.1); align-items: start; position: relative; }
.radio-log .ch-msg::before { content: ''; position: absolute; left: -5px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: #000; border: 1.5px solid rgba(255,255,255,.5); }
.radio-log .ch-msg img { width: 32px; height: 32px; }
.radio-log .ch-b { background: none !important; border: 0 !important; padding: 0; max-width: none; border-radius: 0; }
.radio-log .ch-h b { font: 400 19px var(--hand); }
.radio-log .ch-h a { font: 400 17px var(--hand); color: #ccc; }
.radio-log .ch-k { font-size: 9.5px; }
.radio-log .ch-b p { font: 400 18px/1.45 var(--serif); color: #e8e8e8; margin-top: 2px; }

/* three newspaper columns separated by rules */
.cols3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); }
.cols2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.cols3 > .col, .cols2 > .col { padding: 0 26px; border-left: 1px solid rgba(255,255,255,.14); min-width: 0; }
.cols3 > .col:first-child, .cols2 > .col:first-child { padding-left: 0; border-left: 0; }
.cols3 > .col:last-child, .cols2 > .col:last-child { padding-right: 0; }
.col .col-h:not(:first-child) { margin-top: 34px; }
.col-note { margin: -4px 0 12px; }
.leaders > div { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; background: none !important; border: 0 !important; }
.leaders > div span { order: 1; font-size: 13px; color: var(--muted); }
.leaders > div::after { content: ''; order: 2; flex: 1; border-bottom: 2px dotted rgba(255,255,255,.2); transform: translateY(-3px); }
.leaders > div b { order: 3; font: 400 17px var(--mono) !important; color: #fff; display: inline; margin: 0; }
.leaders > div b small { font-size: 11px; color: var(--muted); }
.plain-list .tm { padding: 9px 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); background: none !important; }
.plain-list .tm .n { font: 400 18px var(--hand); color: var(--dim); }
.plain-list .tm b { font: 400 19px var(--hand); color: #fff; }
.plain-list .tm:hover b { color: var(--orange); }
.decisions .df { background: none !important; border: 0 !important; border-bottom: 1px dashed rgba(255,255,255,.12) !important; border-radius: 0; padding: 14px 0; }
.decisions .df-h b { font: 400 20px var(--hand); }
.decisions .df-chips span { border-radius: 3px; }
.arena .duel { background: none; border: 1.5px solid rgba(255,255,255,.5); border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px; padding: 14px 16px; }
.arena .du-x { color: var(--orange); }
.atlas .tz { background: none !important; border-radius: 0; border-bottom: 1px dotted rgba(255,255,255,.16); padding: 10px 2px; }
.atlas .tz b { font: 400 19px var(--hand); text-transform: lowercase; font-weight: 400; }
.atlas .tz b::before { content: 'the '; color: var(--dim); }

@media (max-width: 1100px) {
  .log-sec { grid-template-columns: 1fr; gap: 26px; padding: 48px 0; }
  .log-side { position: static; }
  .radio-dial { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .cols3, .cols2 { grid-template-columns: 1fr; row-gap: 34px; }
  .cols3 > .col, .cols2 > .col { padding: 0; border-left: 0; }
}
@media (max-width: 700px) {
  .log { padding: 10px 16px; }
  .ledger { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .ledger > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ledger b { font-size: 42px !important; }
  .arrivals { grid-template-columns: 1fr; }
  .lineup .ta img { width: 48px; height: 48px; } .lineup .ta.first img { width: 62px; height: 62px; }
  .radio-log { height: 460px; }
}
.radio-dial button.on { border: 0 !important; background: none !important; box-shadow: none !important; }
@media (max-width: 700px) {
  .lineup { overflow-x: auto; scrollbar-width: none; gap: 0; }
  .lineup .ta { flex: 0 0 78px; }
  .lineup .ta b { font-size: 18px; }
}

.drop.is-poster { border-style: solid; border-color: rgba(255,255,255,.35); }
.drop.is-poster img { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
.drop-cap { text-align: center; margin-top: -6px; font-size: 12px; color: var(--dim); }
.drop-cap button { font: 400 16px var(--hand); color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cycle logo (spinning spiral) ---------- */
.cyc-logo { cursor: pointer; will-change: transform; user-select: none; -webkit-user-drag: none; border-radius: 0 !important; background: none !important; }
.cyc-logo.flash { animation: cycFlash .7s ease-out; }
@keyframes cycFlash { 0% { filter: drop-shadow(0 0 0 rgba(255,122,26,0)); } 25% { filter: brightness(.75) sepia(1) saturate(9) hue-rotate(-22deg) drop-shadow(0 0 10px rgba(255,122,26,.9)); } 100% { filter: drop-shadow(0 0 0 rgba(255,122,26,0)); } }
.rail-logo img.cyc-logo { width: 46px; height: 46px; }
.lm-logo { display: block; margin: -6px auto 14px; width: 54px; height: 54px; }
@media (prefers-reduced-motion: reduce) { .cyc-logo { transform: none !important; } }

/* ---------- hand-drawn X icon ---------- */
.x-doodle { display: inline-grid; place-items: center; color: #e8e8e8; flex: none; cursor: pointer; transition: color .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.x-doodle svg { width: 100%; height: 100%; overflow: visible; }
.x-doodle .xd-spark { opacity: 0; stroke: var(--orange); stroke-width: 1.4; transition: opacity .2s; }
.x-doodle.hot { color: var(--orange); transform: rotate(-7deg) scale(1.08); }
.x-doodle.draw .xd-ring { stroke-dasharray: 100; animation: xdDraw .55s ease-out; }
.x-doodle.draw .xd-mark { stroke-dasharray: 100; animation: xdDraw .45s .25s ease-out both; }
@keyframes xdDraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.x-doodle.pop { animation: xdPop .5s ease-out; }
.x-doodle.pop .xd-spark { animation: xdSpark .6s ease-out; }
@keyframes xdPop { 0% { transform: rotate(-7deg) scale(1.08); } 35% { transform: rotate(8deg) scale(1.3); } 100% { transform: rotate(-7deg) scale(1.08); } }
@keyframes xdSpark { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }
.x-doodle .xd-spark { transform-origin: 20px 20px; }
.rail-x.x-doodle { width: 48px; height: 48px; border: 0 !important; background: none !important; padding: 2px; }
.top-x { width: 42px; height: 42px; }
.foot-x { display: inline-flex; align-items: center; gap: 8px; color: #e8e8e8; font: 400 18px var(--hand); text-transform: none; letter-spacing: 0; }
.foot-x .x-doodle { width: 28px; height: 28px; }
.foot-x:hover { color: var(--orange); }
@media (max-width: 480px) { .top-x { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .x-doodle, .x-doodle * { animation: none !important; transition: none !important; } }

/* ---------- contract address (copy) ---------- */
.ca-chip.live { cursor: pointer; }
.ca-chip.live .ca-val { font-family: var(--mono); }
.ca-chip.copied, .foot-ca.copied { border-color: var(--orange) !important; }
.ca-chip.copied .ca-val, .foot-ca.copied .ca-full { color: var(--orange) !important; }
.foot-ca { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 12px; border: 1px dashed rgba(255,255,255,.3); border-radius: 999px; color: #e8e8e8; cursor: pointer; text-transform: none; letter-spacing: 0; }
.foot-ca[hidden] { display: none; }
.foot-ca span { font: 400 16px var(--hand); color: var(--muted); }
.foot-ca code { font: 400 12.5px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.foot-ca i { font: 400 15px var(--hand); font-style: normal; color: var(--orange); }
.foot-ca:hover { border-color: #fff; }
