/* Loopback: pitch-black hand-drawn notebook in space.
   Tokens first, then layout (rail, top bar, pages), then components, then mobile. */
:root {
  --bg: #050505;
  --bg2: #080808;
  --card: rgba(12, 12, 12, .72);
  --card-solid: #0b0b0b;
  --line: rgba(222, 222, 222, .11);
  --line2: rgba(222, 222, 222, .26);
  --line3: rgba(222, 222, 222, .5);
  --panel: rgba(6, 6, 6, .96);
  --tx: #ebebeb;
  --soft: #cbcbcb;
  --muted: #949494;
  --dim: #626262;
  --or: #ff7a1a;
  --or-soft: rgba(255, 122, 26, .14);
  --up: #dedede;
  --down: #acacac;
  --paper: #efefed;
  --ink: #161616;
  --r: 4px;
  --serif: 'EB Garamond', Garamond, Georgia, serif;
  --hand: 'Gochi Hand', 'Comic Sans MS', cursive;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, Consolas, monospace;
  --rail: 84px;
  --top: 64px;
  --col: 340px;
  --gut: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--tx); }
body { font: 400 14px/1.5 var(--sans); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg, canvas { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
::selection { background: var(--or); color: #000; }
h1, h2, h3, h4, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 100; background: var(--or); color: #000; padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 8px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hand { font-family: var(--hand); }
.mono { font-family: var(--mono); }
.or { color: var(--or); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.sm { font-size: 12px; }
.up { color: var(--up); }
.down { color: var(--down); }
.hand-h { font: 400 21px/1.15 var(--hand); color: #fff; letter-spacing: .01em; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e6e6e6; flex: none; }
.dot.or { background: var(--or); box-shadow: 0 0 0 0 rgba(255, 122, 26, .5); animation: pulse 2.2s infinite; }
.dot.ring { background: transparent; border: 2px solid #e6e6e6; width: 9px; height: 9px; }
.dot.grey { background: #777; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .45); } 70% { box-shadow: 0 0 0 7px rgba(255, 122, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); } }
.ic { display: inline-flex; width: 1em; height: 1em; }
.ic svg, [data-icon] svg { width: 100%; height: 100%; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }

/* ───────────── rail ───────────── */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 40;
  background: var(--bg); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; padding: 14px 0 18px;
}
.rail-logo { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; }
.rail-nav { display: flex; flex-direction: column; gap: 9px; align-items: center; }
.rail-item {
  width: 58px; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: var(--r); border: 1px solid transparent; color: var(--muted); font-size: 11px; line-height: 1;
  transition: color .15s, background .15s, border-color .15s;
}
.rail-item .ri-ic { width: 18px; height: 18px; }
.rail-item:hover { color: var(--tx); }
.rail-item.on { color: var(--tx); border-color: rgba(255, 122, 26, .55); background: rgba(255, 122, 26, .07); }
.rail-item.on .ri-ic { color: var(--or); }
.rail-item.on .ri-tx { text-decoration: underline; text-underline-offset: 3px; }
.rail .rail-search { display: none; }
.rail-x { margin-top: auto; }
.round-x {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #e9e9e9; display: grid; place-items: center; color: #fff; flex: none;
  transition: background .15s, color .15s;
}
.round-x span[data-icon] { width: 17px; height: 17px; }
.round-x:hover { background: #fff; color: #000; }
.round-x.sm { width: 28px; height: 28px; border-width: 1.2px; }
.round-x.sm span[data-icon] { width: 12px; height: 12px; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 39; }

/* ───────────── top bar ───────────── */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top); margin-left: var(--rail);
  display: flex; align-items: center; gap: 14px; padding: 0 20px 0 20px;
  background: rgba(5, 5, 5, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.burger { display: none; }
.wordmark { display: flex; align-items: center; gap: 10px; flex: none; }
.wm-logo { display: none; }
.wm-tx { font: italic 500 27px/1 var(--serif); letter-spacing: -.01em; color: #fff; }
.tape {
  flex: 1; min-width: 0; height: 100%; overflow: hidden; position: relative; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.tape-track { display: flex; align-items: center; white-space: nowrap; will-change: transform; font: 400 12px/1 var(--mono); color: var(--muted); }
.tape-item { padding: 0 14px; display: inline-flex; gap: 6px; }
.tape-item b { color: var(--or); font-weight: 500; }
.tape-item::after { content: '·'; margin-left: 20px; color: var(--dim); }
.search { position: relative; display: flex; align-items: center; gap: 10px; height: 40px; width: 210px; padding: 0 8px 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(12, 12, 12, .8); flex: none; }
.search:focus-within { border-color: var(--line2); }
.search .s-ic { width: 14px; height: 14px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 13px; color: var(--tx); }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font: 500 11px/1 var(--mono); color: var(--soft); border: 1px solid var(--line2); border-radius: 3px; padding: 3px 6px; }
.s-drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: -60px; z-index: 50; background: #0a0a0a; border: 1px solid var(--line2);
  border-radius: var(--r); padding: 6px; max-height: 360px; overflow: auto; box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
}
.s-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 3px; text-align: left; }
.s-row img { width: 22px; height: 22px; }
.s-row b { font: 500 13px var(--mono); }
.s-row span { color: var(--muted); font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-row em { font: normal 12px var(--mono); color: var(--soft); }
.s-row.on, .s-row:hover { background: rgba(255, 255, 255, .06); }
.s-none { padding: 10px; color: var(--muted); font-size: 12px; }
.ca-chip { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(12, 12, 12, .8); flex: none; }
.ca-chip .ca-k { color: var(--muted); font: 400 12px var(--mono); }
.ca-chip .ca-v { font: 500 12px var(--mono); color: #fff; letter-spacing: .02em; }
.ca-chip.soon .ca-v { font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .06em; }
.wallet-wrap { position: relative; flex: none; }
.wallet-btn {
  height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #dcdcdc;
  font-weight: 600; font-size: 14px; color: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .06); transition: background .15s, color .15s;
}
.wallet-btn [data-icon] { width: 15px; height: 15px; }
.wallet-btn:hover { background: #fff; color: #000; }
.wallet-btn.on { border-color: var(--line2); font-family: var(--mono); font-weight: 500; font-size: 13px; }
.wallet-btn.on::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--or); }
.wallet-btn.busy { opacity: .6; pointer-events: none; }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #0a0a0a; border: 1px solid var(--line2); border-radius: var(--r); padding: 6px; min-width: 170px; z-index: 50; }
.wallet-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 3px; font-size: 13px; }
.wallet-menu button:hover { background: rgba(255, 255, 255, .07); }

/* ───────────── pages ───────────── */
main { margin-left: var(--rail); }
.page { min-height: calc(100vh - var(--top)); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 44px 40px 80px; }
.eyebrow { font-size: 21px; color: var(--soft); display: flex; align-items: center; gap: 12px; }
.display { font: 400 76px/1.02 var(--serif); letter-spacing: -.02em; color: #fff; margin-top: 10px; }
.display em { color: var(--or); font-style: italic; }
.display.left { margin-bottom: 30px; }
.ul-link { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-size: 14px; font-weight: 500; }
.ul-link:hover { color: var(--or); }
.ul-link.sm { font-size: 12px; color: var(--soft); font-weight: 400; }
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid #d5d5d5; color: #fff; font-weight: 500; font-size: 14px; transition: background .15s, color .15s;
}
.pill-btn:hover { background: #fff; color: #000; }
.pill-btn.wide { width: 100%; }
.pill-btn.or { background: var(--or); border-color: var(--or); color: #120700; font-weight: 600; }
.pill-btn.or:hover { background: #ff8e3d; }
.pill-btn.sm { height: 32px; padding: 0 14px; font-size: 12px; }
.pill-btn:disabled { opacity: .45; pointer-events: none; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(6px); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 20px; color: #fff; }

/* ───────────── mesh page ───────────── */
.mesh-wrap { display: grid; grid-template-columns: minmax(0, 1fr) var(--col); height: calc(100vh - var(--top)); min-height: 620px; }
.map-area { position: relative; overflow: hidden; overflow: clip; background: #000; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; outline: none; }
#map.drag { cursor: grabbing; }
#map.hot { cursor: pointer; }
.how { position: absolute; left: 19px; top: 16px; width: 288px; padding: 18px 16px 18px; z-index: 5; }
.how .hand-h { margin-bottom: 10px; }
.steps li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 11px; }
.steps .num { width: 27px; height: 27px; border-radius: 50%; border: 1.5px solid #e8e8e8; display: grid; place-items: center; font: 700 11px var(--sans); flex: none; margin-top: 2px; }
.steps p { color: var(--soft); font-size: 14px; line-height: 1.38; }
.steps b { color: #fff; }
.how .ul-link { display: inline-block; margin-top: 4px; }
.growth { position: absolute; right: 19px; top: 16px; width: 248px; padding: 16px 16px 14px; z-index: 5; transition: right .3s; }
.g-big { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 12px; }
.g-big b { font: 700 24px/1 var(--sans); }
.g-big span { color: var(--soft); font-size: 13px; }
.g-bar { height: 4px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.g-bar i { display: block; height: 100%; width: 0; background: #f1f1f1; border-radius: 2px; transition: width .6s; }
.g-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 12px; }
.g-note b { color: #fff; }
.m-pill { display: none; }
.counters {
  position: absolute; left: 4px; bottom: 46px; z-index: 4; display: flex; flex-direction: column; gap: 6px; pointer-events: none;
  padding: 14px 44px 12px 14px; border-radius: 16px; transition: opacity .3s;
  background: radial-gradient(120% 115% at 0% 60%, rgba(5, 5, 5, .94) 0%, rgba(5, 5, 5, .82) 48%, rgba(5, 5, 5, 0) 100%);
}
.counters div { display: flex; align-items: center; gap: 8px; }
.counters b { font: 700 16px/1 var(--sans); min-width: 14px; }
.counters b.mono { font: 500 16px/1 var(--mono); }
.counters span { color: var(--muted); font-size: 13px; }
.legend {
  position: absolute; left: 4px; bottom: 6px; z-index: 4; display: flex; gap: 18px; font-size: 12px; color: var(--muted); pointer-events: none;
  padding: 10px 40px 10px 14px; border-radius: 16px; transition: opacity .3s;
  background: radial-gradient(110% 140% at 0% 70%, rgba(5, 5, 5, .94) 0%, rgba(5, 5, 5, .8) 55%, rgba(5, 5, 5, 0) 100%);
}
.legend span { display: flex; align-items: center; gap: 7px; }
.lg { display: inline-block; width: 22px; height: 0; border-top: 2px dashed var(--or); }
.lg-back { border-top-color: #9a9a9a; }
.lg-peer { border-top: 3px solid #d9d9d9; border-radius: 2px; }
.spotlight {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 14px;
  min-height: 48px; max-width: min(560px, calc(100% - 460px)); padding: 7px 20px 7px 10px; border-radius: 999px; border: 1px solid var(--line2);
  background: rgba(10, 10, 10, .9); backdrop-filter: blur(6px); transition: opacity .3s;
}
.sp-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--or); display: grid; place-items: center; flex: none; box-shadow: 0 0 16px rgba(255, 122, 26, .45); color: #2a1200; }
.sp-ic [data-icon] { width: 16px; height: 16px; }
.spotlight p { font-size: 14px; line-height: 1.35; color: #fff; min-width: 0; }
.spotlight p b { font-weight: 600; }
.spotlight p span { color: var(--muted); font-size: 13px; }
.spotlight.fade p { opacity: 0; }
.spotlight p { transition: opacity .35s; }
.mapnav { position: absolute; right: 18px; bottom: 16px; z-index: 6; display: flex; gap: 10px; align-items: flex-end; transition: right .3s; }
.minimap { width: 170px; height: 130px; background: rgba(8, 8, 8, .92); border: 1px solid var(--line); border-radius: var(--r); cursor: crosshair; touch-action: none; }
.zooms { display: flex; flex-direction: column; gap: 10px; }
.zbtn { width: 39px; height: 38px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(10, 10, 10, .9); font: 500 20px/1 var(--sans); display: grid; place-items: center; color: #fff; }
.zbtn:hover { border-color: var(--line2); background: #151515; }
.zbtn [data-icon] { width: 17px; height: 17px; }
.empty-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; text-align: center; padding: 22px 26px; background: rgba(8, 8, 8, .9); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 10px; justify-items: center; }
.empty-note .hand { font-size: 24px; }
.empty-note p { color: var(--muted); }
.map-area.panel-open .growth { right: 434px; }
.map-area.panel-open .mapnav { right: 434px; }
.map-area.panel-open .counters, .map-area.panel-open .legend { opacity: 0; pointer-events: none; }
.map-area.panel-open .spotlight { left: 18px; transform: none; max-width: calc(100% - 690px); min-width: 260px; }
.map-area.panel-open .spotlight p { font-size: 13px; }

/* right column */
.side { border-left: 1px solid var(--line); padding: 16px 17px 17px; display: flex; flex-direction: column; gap: 16px; min-height: 0; background: var(--bg); }
.yours { padding: 18px 16px 20px; flex: none; }
.y-empty { display: grid; justify-items: center; text-align: center; gap: 4px; }
.y-empty img { width: 64px; height: 64px; margin: 18px 0 14px; }
.y-empty p { color: var(--muted); font-size: 13px; line-height: 1.55; margin-bottom: 16px; }
.y-list { display: grid; gap: 10px; margin-top: 12px; }
.y-probe { display: grid; gap: 10px; }
.y-row { display: flex; gap: 12px; align-items: center; }
.ava { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; flex: none; background: #000; position: relative; overflow: visible; }
.ava img.robo { width: 70%; height: 70%; }
.ava.sm { width: 36px; height: 36px; }
.ava .coin-pic { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #000; object-fit: cover; }
.ava.mine { box-shadow: 0 0 0 2px var(--or); }
.y-t { min-width: 0; flex: 1; }
.y-t b { font: 500 22px/1.05 var(--serif); display: block; }
.y-t span { color: var(--muted); font-size: 12px; }
.bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar i { display: block; height: 100%; background: #efefef; border-radius: 3px; }
.bar.or i { background: var(--or); }
.kv { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.kv b { color: #fff; font: 500 12px var(--mono); }
.y-btns { display: flex; gap: 8px; }
.y-btns .pill-btn { flex: 1; height: 34px; font-size: 12px; padding: 0 10px; }
.y-more { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--line); padding-top: 10px; }
.y-mini { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); text-align: left; }
.y-mini:hover { border-color: var(--line2); }
.y-mini img { width: 22px; height: 22px; }
.y-mini b { font: 500 13px var(--mono); }
.y-mini span { margin-left: auto; color: var(--muted); font-size: 11px; font-family: var(--mono); }
.feed { flex: 1; min-height: 0; padding: 18px 16px 0; display: flex; flex-direction: column; }
.feed-list {
  flex: 1; min-height: 0; overflow: hidden auto; overflow-anchor: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 50px), transparent); mask-image: linear-gradient(#000 calc(100% - 50px), transparent);
}
.feed-list::-webkit-scrollbar { display: none; }
.f-li { list-style: none; flex: none; }
.f-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; min-height: 54px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .015); flex: none; text-align: left; width: 100%; }
button.f-row:hover { border-color: var(--line2); }
.f-row.new { animation: rowin .5s ease-out; }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.f-ic { width: 24px; height: 24px; border-radius: 3px; background: #1b1b1b; display: grid; place-items: center; flex: none; color: #fff; font: 700 11px/1 var(--mono); }
.f-ic.or { color: var(--or); }
.f-ic svg { width: 12px; height: 12px; }
.f-tx { min-width: 0; }
.f-tx p { font-size: 13px; color: #f0f0f0; line-height: 1.35; overflow-wrap: anywhere; }
.f-tx p b { font-weight: 600; }
.f-tx time { font: 400 11px var(--mono); color: var(--dim); display: block; margin-top: 3px; }

/* ───────────── probe panel ───────────── */
.panel {
  position: absolute; top: 13px; right: 13px; bottom: 13px; width: 396px; z-index: 12; background: var(--panel); border: 1px solid var(--line2);
  border-radius: var(--r); overflow: hidden auto; transform: translateX(calc(100% + 24px)); transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility .32s;
  visibility: hidden; scrollbar-width: thin; scrollbar-color: #333 transparent; overscroll-behavior: contain;
}
.panel.open { transform: none; visibility: visible; }
.pn { padding: 18px 18px 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pn-sec { min-width: 0; }
.pn-sec:empty { display: none; }
.pn-head { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-right: 40px; }
.pn-head .ava { width: 72px; height: 72px; }
.pn-head .ava .coin-pic { width: 26px; height: 26px; }
.pn-t { min-width: 0; padding-top: 2px; }
.pn-tick { font: 500 32px/1.05 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.pn-name { font: 500 13px var(--mono); margin-top: 6px; }
.pn-sub { color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.4; }
.x-btn { position: absolute; top: 0; right: 0; width: 34px; height: 34px; border: 1px solid var(--line2); border-radius: var(--r); font-size: 20px; line-height: 1; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .4); }
.x-btn:hover { background: #fff; color: #000; }
.pn-lvl { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.pn-lvl span { font-weight: 600; }
.pn-lvl + .bar { height: 7px; }
.box { border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .02); padding: 12px 14px; }
.pn-status .st { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .06em; color: var(--soft); text-transform: uppercase; }
.pn-status .st b { color: #fff; }
.pn-status .act { font-weight: 700; font-size: 15px; margin-top: 6px; }
.pn-status .said { margin-top: 8px; font: italic 15px/1.35 var(--serif); color: var(--soft); }
.pn-status .said small { display: block; font: normal 11px var(--mono); color: var(--dim); margin-top: 3px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.sec-h b { font-weight: 700; }
.sec-h span { color: var(--soft); font-size: 12px; text-align: right; }
.sec-h .hand { font-size: 18px; font-weight: 400; }
.hop-state { display: flex; gap: 14px; align-items: center; }
.hop-state .hi { width: 34px; height: 34px; border-radius: 50%; background: #1d1d1d; display: grid; place-items: center; flex: none; color: #fff; }
.hop-state .hi.or { background: var(--or); color: #1a0a00; }
.hop-state .hi svg { width: 15px; height: 15px; }
.hop-state b { font-size: 15px; display: block; }
.hop-state small { color: var(--muted); font-size: 12px; }
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.tiles2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; min-width: 0; }
.tile small { color: var(--muted); font-size: 12px; display: block; }
.tile b { font: 500 15px/1.3 var(--mono); display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile em { font-style: normal; color: var(--muted); font: 400 11px var(--mono); }
.rows { display: grid; gap: 0; }
.row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12px; min-width: 0; }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .mono { font-size: 12px; }
.row a.tx { color: var(--muted); font: 400 11px var(--mono); text-decoration: underline; text-underline-offset: 2px; }
.row a.tx:hover { color: var(--or); }
.empty { color: var(--muted); font-size: 12px; line-height: 1.5; }
.vote b.h { font-size: 12px; font-weight: 700; display: block; margin-bottom: 6px; }
.vote .vrow { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.vote .vrow .bar { flex: 1; height: 4px; }
.mini-btn { height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; }
.mini-btn:hover { background: #fff; color: #000; }
.mini-btn.or { border-color: var(--or); color: var(--or); }
.mini-btn.or:hover { background: var(--or); color: #000; }
.brain { display: grid; gap: 12px; }
.brain-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.brain-h .chip { margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; background: #232323; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.chip.ol { background: none; border: 1px solid var(--line2); color: var(--soft); font-weight: 600; }
.chip.or { background: var(--or-soft); color: var(--or); }
.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line2); font: 700 9px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.badge.or { border-color: rgba(255, 122, 26, .6); color: var(--or); }
.rule { height: 1px; background: var(--line); }
.dec-h { font-weight: 700; font-size: 14px; }
.dec-h small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.feat div { border: 1px solid var(--line); border-radius: var(--r); padding: 7px 8px; min-width: 0; }
.feat small { color: var(--muted); font-size: 10px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat b { font: 500 13px var(--mono); }
.quote { font: italic 16px/1.4 var(--serif); color: var(--soft); border-left: 2px solid var(--or); padding-left: 12px; }
.alloc { display: grid; gap: 8px; }
.al { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12px; }
.al .bar { grid-column: 1 / -1; height: 4px; }
.al .st { font: 400 10px var(--mono); color: var(--muted); }
.al .st.done { color: var(--soft); }
.al .st.failed { color: var(--or); }
.wrow { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; font-size: 12px; padding: 3px 0; }
.wrow .bar { height: 4px; }
.wrow b { font: 500 12px var(--mono); text-align: right; }
.sm-h { font-size: 11px; font-weight: 700; color: var(--soft); letter-spacing: .02em; }
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 12px; }
.totals div { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px dashed var(--line); padding: 4px 0; color: var(--muted); }
.totals b { color: #fff; font: 500 12px var(--mono); }
.pn-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pn-tabs .pill-btn { height: 36px; font-size: 12px; letter-spacing: .08em; font-weight: 700; }
.pn-tabs .pill-btn.on { background: #fff; color: #000; }
.spark { width: 100%; height: 46px; }
.talk-mini { display: grid; gap: 10px; }
.talk-mini li { display: grid; gap: 2px; }
.talk-mini .who { font: 500 11px var(--mono); color: var(--soft); display: flex; gap: 6px; align-items: center; }
.talk-mini .who time { margin-left: auto; color: var(--dim); }
.talk-mini p { font: 15px/1.35 var(--serif); color: #eee; }
.checks li { display: flex; gap: 8px; font-size: 12px; align-items: center; padding: 2px 0; color: var(--soft); }
.checks li i { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-style: normal; font-size: 9px; }
.checks li.ok i { background: #e9e9e9; color: #000; border-color: #e9e9e9; }
.q { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.q:last-child { border-bottom: 0; padding-bottom: 0; }
.q:first-child { padding-top: 0; }
.q-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.q p { color: var(--muted); font-size: 12px; }
.q .bar { height: 4px; }
.q-meta { display: flex; justify-content: space-between; color: var(--muted); font: 400 11px var(--mono); }
.form-row { display: flex; gap: 6px; }
.in { height: 32px; min-width: 0; flex: 1; border: 1px solid var(--line2); border-radius: var(--r); background: #050505; padding: 0 10px; font-size: 12px; outline: none; }
.in:focus { border-color: var(--line3); }
textarea.in { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.45; font-family: var(--sans); }
select.in { padding-right: 6px; }
.owner { border-color: rgba(255, 122, 26, .4); display: grid; gap: 12px; }
.owner .sec-h b { color: var(--or); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: 12px; color: var(--soft); }
.chips button[aria-pressed='true'] { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.toggles { display: grid; gap: 6px; }
.tgl { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--soft); cursor: pointer; }
.tgl input { appearance: none; width: 32px; height: 18px; border-radius: 999px; background: #2a2a2a; position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.tgl input::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #bbb; transition: transform .2s, background .2s; }
.tgl input:checked { background: var(--or); }
.tgl input:checked::after { transform: translateX(14px); background: #fff; }
.copy-box { display: flex; gap: 6px; align-items: center; border: 1px dashed var(--line2); border-radius: var(--r); padding: 6px 6px 6px 10px; }
.copy-box code { flex: 1 1 0; width: 0; min-width: 0; font: 400 11px var(--mono); color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brain, .owner { grid-template-columns: minmax(0, 1fr); }
.owner > *, .brain > * { min-width: 0; }
.post { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.post:first-child { padding-top: 0; }
.post:last-child { border-bottom: 0; }
.post p { font-size: 13px; color: #e8e8e8; }
.post .btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.log li { display: flex; gap: 10px; font-size: 12px; padding: 4px 0; color: var(--soft); }
.log time { font: 400 11px var(--mono); color: var(--dim); flex: none; width: 58px; }
.pn-loading { padding: 40px 20px; color: var(--muted); text-align: center; }

/* ───────────── logbook ───────────── */
.logbook { background: var(--bg); padding: 0 40px; }
.chapter { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 46px; padding: 54px 0 70px; border-bottom: 1px dashed rgba(222, 222, 222, .14); max-width: 1280px; margin: 0 auto; }
.chapter:last-child { border-bottom: 0; }
.ch-side { position: sticky; top: calc(var(--top) + 24px); align-self: start; }
.ch-num { font: 400 64px/1 var(--hand); color: #3b3b3b; letter-spacing: .02em; }
.ch-title { font: 400 42px/1.1 var(--serif); margin-top: 26px; letter-spacing: -.01em; }
.ch-title em { color: var(--or); font-style: italic; }
.ch-copy { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 12px; max-width: 280px; }
.ch-tag { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-top: 12px; }
.ch-tag .dot { width: 7px; height: 7px; }
.ch-filters { margin-top: 28px; display: grid; gap: 4px; justify-items: start; }
.ch-filters button { font: 400 18px/1.4 var(--hand); color: var(--muted); display: flex; align-items: center; gap: 7px; }
.ch-filters button::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.ch-filters button[aria-checked='true'] { color: var(--or); }
.ch-filters button[aria-checked='true']::before { background: var(--or); border-color: var(--or); width: 6px; height: 6px; }
.ch-filters button:hover { color: #fff; }
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats4 > div { padding: 0 22px; border-left: 1px solid rgba(222, 222, 222, .2); min-width: 0; }
.stats4 > div:first-child { padding-left: 0; border-left: 0; }
.stats4 b { font: 400 50px/1 var(--serif); display: block; letter-spacing: -.01em; white-space: nowrap; }
.stats4 > div:first-child b { color: var(--or); }
.stats4 span { color: var(--muted); font-size: 13px; display: block; margin-top: 8px; }
.sub-h { display: flex; justify-content: space-between; align-items: center; margin: 44px 0 16px; }
.sub-h.top0 { margin-top: 0; }
.podium5 { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid rgba(222, 222, 222, .3); padding-bottom: 14px; }
.pod { display: grid; justify-items: center; text-align: center; align-content: end; gap: 2px; padding: 0 4px; min-width: 0; }
.pod .rk { width: 25px; height: 25px; border-radius: 50%; border: 1.3px solid #ddd; display: grid; place-items: center; font: 400 13px/1 var(--hand); margin-bottom: 8px; }
.pod.first .rk { border-color: var(--or); color: var(--or); }
.pod img { width: 60px; height: 60px; }
.pod.first img { width: 78px; height: 78px; }
.pod b { font: 400 18px/1.3 var(--hand); margin-top: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod span { color: var(--muted); font-size: 12px; }
.pod em { font-style: normal; font-size: 12px; font-weight: 700; }
.booted { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.bt { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(222, 222, 222, .1); min-width: 0; text-align: left; width: 100%; }
.bt img { width: 30px; height: 30px; flex: none; }
.bt b { font: 400 18px var(--hand); white-space: nowrap; }
.bt time { color: var(--dim); font-size: 12px; white-space: nowrap; }
.bt .lead { flex: 1; min-width: 12px; border-bottom: 2px dotted rgba(222, 222, 222, .25); align-self: center; margin-top: 4px; }
.bt .val { text-align: right; flex: none; }
.bt .val b { font: 500 14px var(--mono); display: block; }
.bt .val small { color: var(--muted); font-size: 11px; }
.bt:hover b { color: var(--or); }
.talk-list { border-left: 1px solid rgba(222, 222, 222, .25); }
.tl { position: relative; display: flex; gap: 14px; padding: 16px 0 16px 24px; border-bottom: 1px dashed rgba(222, 222, 222, .12); }
.tl::before { content: ''; position: absolute; left: -5px; top: 24px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid #888; background: var(--bg); }
.tl.new { animation: rowin .5s ease-out; }
.tl img { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.tl-b { flex: 1; min-width: 0; }
.tl-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tl-h b { font: 400 16px var(--hand); }
.tl-h span { color: var(--muted); }
.tl-h time { margin-left: auto; font: 400 11px var(--mono); color: var(--dim); }
.tl p { font: 400 18px/1.35 var(--serif); color: #ececec; margin-top: 4px; overflow-wrap: anywhere; }
.cols3 { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 0; }
.cols3 > .col { padding: 0 26px; border-left: 1px solid rgba(222, 222, 222, .14); min-width: 0; }
.cols3 > .col:first-child { padding-left: 0; border-left: 0; }
.cols2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; }
.cols2 > .col { min-width: 0; padding-right: 26px; }
.cols2 > .col + .col { padding: 0 0 0 26px; border-left: 1px solid rgba(222, 222, 222, .14); }
.col > .hand-h { margin-bottom: 14px; }
.col > p.muted { margin-bottom: 14px; line-height: 1.5; }
.vault div { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 13px; color: var(--soft); }
.vault div i { flex: 1; border-bottom: 1.5px dotted rgba(222, 222, 222, .28); }
.vault b { font: 500 16px var(--mono); color: #fff; }
.vault b small { color: var(--muted); font-size: 11px; }
.mgr { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; width: 100%; text-align: left; }
.mgr img { width: 24px; height: 24px; }
.mgr b { font: 400 16px var(--hand); }
.mgr span { margin-left: auto; font: 500 13px var(--mono); }
.dcard { display: flex; gap: 12px; padding: 4px 0 16px; margin-bottom: 16px; border-bottom: 1px dashed rgba(222, 222, 222, .14); }
.dcard img { width: 30px; height: 30px; flex: none; margin-top: 6px; }
.dcard .db { min-width: 0; flex: 1; display: grid; gap: 6px; }
.dcard .dh { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dcard .dh b { font: 400 17px var(--hand); }
.dcard .dh span { color: var(--muted); font-size: 12px; }
.dcard p { color: var(--soft); font-size: 12px; line-height: 1.5; }
.dcard .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tagbox { font: 700 10px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line3); border-radius: 3px; padding: 5px 7px; color: #ddd; }
.tagbox.or { border-color: var(--or); color: var(--or); }
.score { font: 500 12px var(--mono); background: #1d1d1d; border-radius: 3px; padding: 4px 9px; align-self: start; flex: none; }
.duel { padding: 10px 0; border-bottom: 1px dashed var(--line); display: grid; gap: 6px; }
.duel-h { display: flex; align-items: center; gap: 8px; font: 400 16px var(--hand); flex-wrap: wrap; }
.duel-h span { color: var(--muted); font-family: var(--sans); font-size: 12px; }
.duel-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.duel-bars .bar { height: 4px; }
.duel small { color: var(--muted); font-size: 11px; font-family: var(--mono); }
.roots li { display: grid; grid-template-columns: 14px 150px 80px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(222, 222, 222, .1); font-size: 12px; }
.roots li i { width: 9px; height: 9px; border-radius: 50%; background: #eee; }
.roots li.locked i { background: transparent; border: 1.3px dashed #777; }
.roots li.core i { background: var(--or); }
.roots .zn { font: 400 18px var(--hand); white-space: nowrap; }
.roots .zn em { color: var(--dim); font-style: normal; margin-right: 5px; }
.roots .rs { color: var(--muted); }
.roots .rt { font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roots .rt.none { color: var(--muted); font-weight: 600; }
.roots .pw { color: var(--muted); font-size: 11px; }
.nodes li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(222, 222, 222, .1); font-size: 12px; }
.nodes .n { color: var(--muted); width: 14px; font: 400 14px var(--hand); }
.nodes .tri { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 14px solid #eee; flex: none; }
.nodes .tri.l1 { border-bottom-color: #ccc; } .nodes .tri.l2 { border-bottom-color: #fff; } .nodes .tri.l3 { border-bottom-color: var(--or); }
.nodes b { font: 400 18px var(--hand); white-space: nowrap; }
.nodes span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* footer */
.foot { display: flex; align-items: center; gap: 22px; padding: 24px 28px; border-top: 1px solid var(--line); background: var(--bg); flex-wrap: wrap; }
.f-brand { display: flex; align-items: center; gap: 9px; }
.f-wm { font: italic 500 20px var(--serif); letter-spacing: .06em; }
.f-tag { color: var(--muted); font-size: 12px; }
.f-ca { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--line2); border-radius: 999px; padding: 7px 14px; font-size: 12px; }
.f-ca .ca-k { color: var(--muted); font-weight: 700; font-size: 10px; }
.f-ca .or { font: 400 14px var(--hand); }
.f-x { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.f-copy { margin-left: auto; color: var(--muted); font-size: 12px; }

/* ───────────── directory + ranks ───────────── */
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.tb-in { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(12, 12, 12, .8); padding: 0 14px; font: 400 13px var(--mono); outline: none; }
.tb-in::placeholder { color: var(--dim); }
.tb-in:focus { border-color: var(--line2); }
.toolbar select, .toolbar .tb-sel { height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(12, 12, 12, .8); padding: 0 34px 0 16px; font: 500 13px var(--mono); appearance: none; outline: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23eee' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.toolbar select:focus { border-color: var(--line2); }
.toolbar select option { background: #0a0a0a; }
.table-card { border: 1px solid var(--line2); border-radius: var(--r); padding: 6px; background: rgba(8, 8, 8, .7); overflow-x: auto; }
.ptable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ptable th { text-align: left; font-weight: 400; color: var(--muted); font-size: 12px; padding: 14px 10px 12px; white-space: nowrap; }
.ptable td { padding: 0 10px; height: 55px; border-top: 1px solid rgba(222, 222, 222, .08); white-space: nowrap; font: 400 13px var(--mono); }
.ptable tbody tr { cursor: pointer; }
.ptable tbody tr:hover td, .ptable tbody tr:focus-visible td { background: rgba(255, 255, 255, .05); }
.ptable tbody tr:focus-visible { outline: none; }
.ptable tbody tr:hover td:first-child, .ptable tbody tr:focus-visible td:first-child { border-radius: 10px 0 0 10px; }
.ptable tbody tr:hover td:last-child, .ptable tbody tr:focus-visible td:last-child { border-radius: 0 10px 10px 0; }
.ptable .c-ic { width: 70px; }
.ptable td.c-ic img { width: 28px; height: 28px; margin: 0 auto; }
.ptable .who b { display: block; font: 500 13px var(--mono); color: #fff; letter-spacing: .01em; }
.ptable .who small { color: var(--muted); font: 400 11px var(--mono); }
.ptable .num-c { color: var(--soft); }
.st-pill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border: 1px solid var(--line2); border-radius: 3px; font: 700 11px var(--sans); letter-spacing: .03em; color: #fff; }
.st-pill i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.st-pill.or i { background: var(--or); }
.st-pill.grey i { background: #777; }
.t-empty { text-align: center; padding: 30px; color: var(--muted); }
.tabs { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line2); border-radius: 999px; margin-bottom: 18px; flex-wrap: wrap; max-width: 100%; }
.tabs button { height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12px; color: var(--soft); border: 1px solid transparent; }
.tabs button[aria-selected='true'] { border-color: #e6e6e6; color: #fff; }
.tabs button:hover { color: #fff; }
.podium3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.p3 { display: flex; align-items: center; gap: 16px; padding: 20px 18px; border: 1px solid var(--line2); border-radius: var(--r); background: rgba(10, 10, 10, .7); min-width: 0; text-align: left; }
.p3.first { background: #161616; border-color: rgba(222, 222, 222, .4); }
.p3:hover { border-color: var(--line3); }
.p3 .big { font: 500 34px/1 var(--mono); color: #555; }
.p3.first .big { color: #fff; }
.p3 img { width: 46px; height: 46px; flex: none; }
.p3 .t { min-width: 0; flex: 1; }
.p3 .t b { font: 400 20px var(--serif); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p3 .t span { color: var(--muted); font-size: 12px; }
.p3 .v { font: 500 16px/1.2 var(--mono); text-align: right; }
.rtable td.hl { color: #fff; font-weight: 500; }
.rtable .rank { color: var(--muted); width: 40px; padding-left: 16px; }

/* ───────────── launch ───────────── */
.page-launch { padding: 44px 40px 90px; position: relative; overflow: hidden; }
.launch-head { text-align: center; }
.launch-head .eyebrow { justify-content: center; }
.launch-head .display { font-size: 70px; line-height: 1.05; }
.free-pill { border: 1.5px solid var(--or); color: var(--or); border-radius: 999px; padding: 0 12px; font-size: 20px; line-height: 1.35; }
.crew-wrap { position: relative; max-width: 1200px; margin: 18px auto 0; height: 300px; }
#crew { width: 100%; height: 100%; cursor: pointer; }
.kind-pick { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 4px 0 30px; }
.arrow-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.3px solid #dcdcdc; font-size: 17px; color: #fff; display: grid; place-items: center; flex: none; }
.arrow-btn:hover { background: #fff; color: #000; }
.kind-tx { display: grid; justify-items: center; min-width: 220px; text-align: center; }
.kind-tx b { font-size: 26px; line-height: 1.2; }
.kind-tx span { color: var(--muted); font-size: 14px; }
.launch-grid { display: grid; grid-template-columns: 370px 430px 330px; gap: 30px; justify-content: center; align-items: start; max-width: 1220px; margin: 0 auto; }
.sheet { position: relative; border: 0; margin: 0; padding: 26px 24px 26px; min-width: 0; display: grid; gap: 16px; align-content: start; }
.sheet .wob { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); pointer-events: none; overflow: visible; }
.sheet .roman { position: absolute; top: -17px; left: 20px; font: italic 400 22px var(--serif); color: var(--soft); padding: 0 6px; background: var(--bg); z-index: 1; float: none; }
.sheet-h { font-size: 28px; color: #fff; margin-bottom: 4px; }
.fl { display: grid; gap: 4px; position: relative; }
.fl > span.hand { font-size: 17px; color: var(--soft); }
.fl small { font-family: var(--sans); color: var(--dim); font-size: 12px; margin-left: 4px; }
.fl input, .fl textarea { width: 100%; border: 0; border-bottom: 1.5px dashed rgba(222, 222, 222, .3); background: none; outline: none; padding: 6px 2px 8px; font-size: 16px; color: #fff; border-radius: 0; resize: none; }
.fl input::placeholder, .fl textarea::placeholder { color: #4a4a4a; }
.fl input:focus, .fl textarea:focus { border-bottom-color: var(--or); }
.fl input.bad { border-bottom-color: var(--or); }
.fl .in-ticker { font: 400 40px/1.1 var(--serif); text-transform: uppercase; letter-spacing: .02em; padding-bottom: 6px; }
.fl .in-ticker::placeholder { color: #3f3f3f; }
input[type=number]::-webkit-inner-spin-button { opacity: .4; }
.img-drop { display: grid; justify-items: center; gap: 12px; cursor: pointer; margin: 4px 0 4px; }
.img-ring { width: 152px; height: 152px; border-radius: 50%; border: 1.3px solid rgba(222, 222, 222, .45); display: grid; place-items: center; position: relative; transition: border-color .2s; }
.img-ring::before { content: ''; position: absolute; inset: 13px; border-radius: 50%; border: 1.3px solid rgba(222, 222, 222, .3); }
.img-ring img { width: 96px; height: 96px; object-fit: contain; position: relative; }
.img-ring.has img { width: 126px; height: 126px; object-fit: cover; border-radius: 50%; }
.img-drop:hover .img-ring, .img-drop.over .img-ring { border-color: var(--or); }
.img-drop:focus-within .img-ring { outline: 2px solid var(--or); outline-offset: 3px; }
.img-hint { color: var(--dim); font-size: 12px; text-align: center; }
.tempers { display: grid; margin-top: 4px; }
.tp { display: grid; grid-template-columns: 18px 104px 1fr; gap: 10px; align-items: start; padding: 11px 0; border-bottom: 1px solid rgba(222, 222, 222, .1); text-align: left; width: 100%; cursor: pointer; }
.tp .rd { width: 12px; height: 12px; border-radius: 50%; border: 1.3px solid #aaa; margin-top: 8px; position: relative; }
.tp[aria-checked='true'] .rd { border-color: var(--or); }
.tp[aria-checked='true'] .rd::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--or); }
.tp b { font: 400 19px/1.3 var(--hand); color: #fff; }
.tp[aria-checked='true'] b { text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 4px; }
.tp .tp-d { font-size: 12.5px; color: var(--muted); line-height: 1.45; padding-top: 2px; }
.tp:hover b { color: var(--or); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.3px solid rgba(222, 222, 222, .4); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.seg button { height: 38px; font-size: 13px; color: var(--soft); border-left: 1px solid rgba(222, 222, 222, .25); white-space: nowrap; padding: 0 6px; }
.seg button:first-child { border-left: 0; }
.seg button[aria-checked='true'] { background: var(--or); color: #170900; font-weight: 600; }
.seg button:hover:not([aria-checked='true']) { color: #fff; background: rgba(255, 255, 255, .05); }
.ticket { position: relative; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 22px 24px 24px; transform: rotate(1.2deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); margin-top: 6px; }
.tk-top { display: flex; justify-content: space-between; align-items: baseline; }
.tk-top .hand { font-size: 17px; color: #333; }
.tk-wm { font: italic 500 19px var(--serif); }
.tk-route { display: flex; align-items: flex-end; gap: 10px; margin-top: 12px; }
.tk-route small { display: block; font-size: 10px; letter-spacing: .12em; color: #777; }
.tk-route b { font-size: 22px; line-height: 1.1; color: #111; font-weight: 400; }
.tk-route .r { text-align: left; }
.tk-line { flex: 1; height: 0; border-top: 1.5px dashed #888; position: relative; margin-bottom: 11px; }
.tk-dot { position: absolute; left: 50%; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--or); box-shadow: 0 0 8px rgba(255, 122, 26, .7); animation: tkdot 3s ease-in-out infinite; }
@keyframes tkdot { 0% { left: 4%; } 50% { left: 88%; } 100% { left: 4%; } }
.tk-ticker { font: 400 46px/1.05 var(--serif); margin: 14px 0 12px; overflow-wrap: anywhere; color: #111; }
.tk-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.tk-rows dt { font-size: 10px; letter-spacing: .12em; color: #777; }
.tk-rows dd { margin: 0; font-size: 15px; font-weight: 500; color: #151515; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-perf { position: relative; height: 0; border-top: 1.5px dashed #9a9a9a; margin: 20px -24px 18px; }
.tk-perf::before, .tk-perf::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.tk-perf::before { left: -11px; } .tk-perf::after { right: -11px; }
.boot-btn { width: 100%; height: 56px; border-radius: 999px; background: var(--or); color: #1a0900; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 8px 24px rgba(255, 122, 26, .35); transition: transform .15s, background .15s; }
.boot-btn:hover { background: #ff8d3a; transform: translateY(-1px); }
.boot-btn:disabled { opacity: .6; pointer-events: none; }
.boot-btn span { font-size: 18px; }
.tk-bars { height: 38px; margin: 16px 0 10px; display: flex; gap: 0; align-items: stretch; }
.tk-bars i { background: #151515; display: block; }
.tk-fine { font-size: 11.5px; color: #555; line-height: 1.5; }
.tk-quote { font-size: 17px; line-height: 1.35; margin-top: 14px; color: #1b1b1b; overflow-wrap: anywhere; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .78); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #070707; border: 1px solid var(--line2); border-radius: 8px; padding: 26px 26px 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lm-result > *, .lm-steps, .lm-log { min-width: 0; }
.modal-close { top: 14px; right: 14px; }
.lm-title { font: 400 34px/1.1 var(--serif); }
.lm-title em { color: var(--or); }
.lm-steps { display: grid; gap: 4px; }
.lm-steps li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--muted); font-size: 14px; border-bottom: 1px dashed var(--line); }
.lm-steps li .si { width: 22px; height: 22px; border-radius: 50%; border: 1.3px solid #555; display: grid; place-items: center; font-size: 11px; flex: none; }
.lm-steps li.active { color: #fff; }
.lm-steps li.active .si { border-color: var(--or); border-top-color: transparent; animation: spin .8s linear infinite; }
.lm-steps li.done { color: #ddd; }
.lm-steps li.done .si { background: #eee; border-color: #eee; color: #000; }
.lm-steps li.fail { color: var(--or); }
.lm-steps li.fail .si { border-color: var(--or); }
.lm-steps li.skipped { opacity: .55; }
@keyframes spin { to { transform: rotate(360deg); } }
.lm-log { margin: 0; background: #000; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; font: 400 11.5px/1.6 var(--mono); color: #bdbdbd; max-height: 150px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.lm-log .or { color: var(--or); }
.lm-result { display: grid; gap: 10px; }
.lm-result .ok-h { font: 400 22px var(--hand); }
.lm-result .err { color: var(--or); font-size: 13px; }
.lm-result .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { pointer-events: auto; max-width: 360px; background: #0c0c0c; border: 1px solid var(--line2); border-radius: var(--r); padding: 11px 14px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); animation: toastin .25s ease-out; }
.toast.err { border-color: rgba(255, 122, 26, .6); }
.toast .dot { margin-top: 6px; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .25s; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ───────────── tablet ───────────── */
@media (max-width: 1240px) {
  .launch-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .ticket { grid-column: 1 / -1; max-width: 380px; justify-self: center; width: 100%; }
  .cols3 { grid-template-columns: 1fr 1fr; }
  .cols3 > .col:last-child { grid-column: 1 / -1; border-left: 0; padding: 30px 0 0; }
  .chapter { grid-template-columns: 240px minmax(0, 1fr); gap: 30px; }
  .top-search { width: 170px; }
}
@media (max-width: 1100px) {
  :root { --col: 300px; }
  .ca-chip { display: none; }
  .spotlight { max-width: calc(100% - 300px); }
  .map-area.panel-open .spotlight { display: none; }
}

/* ───────────── mobile ───────────── */
@media (max-width: 900px) {
  :root { --rail: 0px; --top: 64px; }
  body { font-size: 14px; }
  .rail { width: 250px; transform: translateX(-100%); transition: transform .25s; align-items: stretch; padding: 16px; z-index: 60; }
  .rail.open { transform: none; }
  .rail-logo { margin: 0 0 18px; }
  .rail-nav { align-items: stretch; }
  .rail-item { width: auto; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 14px; min-height: 46px; font-size: 15px; }
  .rail .rail-search { display: flex; width: auto; margin-top: 16px; }
  .rail-search .s-drop { right: 0; }
  .rail-x { margin: auto 0 0; }
  .scrim { z-index: 55; }
  .top { padding: 0 var(--gut); gap: 10px; }
  .burger { display: grid; place-content: center; gap: 4px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); flex: none; }
  .burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 1px; }
  .wordmark { margin-right: auto; }
  .wm-logo { display: block; }
  .wm-tx { font-size: 24px; }
  .tape, .top-search, .ca-chip { display: none; }
  .top-x { width: 36px; height: 36px; }
  .wallet-btn { height: 38px; padding: 0 14px; font-size: 13px; }
  .wallet-btn [data-icon] { display: none; }
  .mesh-wrap { display: block; height: auto; min-height: 0; }
  .map-area { height: min(76vh, 640px); min-height: 460px; }
  .how, .growth { top: 12px; width: auto; padding: 0; background: none; border: 0; backdrop-filter: none; }
  .how { left: var(--gut); right: auto; }
  .growth { right: var(--gut); left: auto; }
  .map-area.panel-open .growth { right: var(--gut); }
  .m-pill {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2);
    background: rgba(8, 8, 8, .92); font: 400 17px/1 var(--hand); color: #fff; white-space: nowrap;
  }
  .m-pill b { font: 700 13px var(--sans); }
  .m-pill span { font-size: 12px; transition: transform .2s; }
  .open > .m-pill span { transform: rotate(180deg); }
  .m-body { display: none; }
  .open > .m-body {
    display: block; position: absolute; top: 44px; left: 0; width: min(320px, calc(100vw - 32px)); padding: 14px 14px 16px;
    background: #0a0a0a; border: 1px solid var(--line2); border-radius: var(--r); box-shadow: 0 14px 30px rgba(0, 0, 0, .55);
  }
  .growth.open > .m-body { left: auto; right: 0; width: min(270px, calc(100vw - 32px)); }
  .steps li { margin-bottom: 9px; }
  .counters, .legend, .minimap { display: none; }
  .mapnav { right: var(--gut); bottom: auto; top: 50%; transform: translateY(-20%); }
  .map-area.panel-open .mapnav { right: var(--gut); }
  .spotlight, .map-area.panel-open .spotlight { left: var(--gut); right: var(--gut); transform: none; max-width: none; bottom: 14px; display: flex; border-radius: 22px; }
  .side { border-left: 0; padding: var(--gut); }
  .feed { max-height: 520px; }
  .panel {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 82vh; max-height: calc(100vh - 40px); border-radius: 16px 16px 0 0;
    transform: translateY(105%); z-index: 70; border-bottom: 0; background: #070707; box-shadow: 0 -18px 40px rgba(0, 0, 0, .6);
  }
  .panel.open { transform: none; }
  .panel::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px; background: #444; margin: 10px auto 0; }
  .pn { padding: 12px var(--gut) 30px; }
  .logbook { padding: 0 var(--gut); }
  .chapter { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 46px; }
  .ch-side { position: static; }
  .ch-num { font-size: 48px; }
  .ch-title { font-size: 34px; margin-top: 12px; }
  .ch-filters { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; }
  .stats4 { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .stats4 > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats4 b { font-size: 38px; }
  .podium5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pod img { width: 40px; height: 40px; }
  .pod.first img { width: 52px; height: 52px; }
  .pod b { font-size: 14px; }
  .booted { grid-template-columns: 1fr; }
  .cols3, .cols2 { grid-template-columns: 1fr; }
  .cols3 > .col, .cols2 > .col, .cols2 > .col + .col, .cols3 > .col:last-child { padding: 0; border-left: 0; }
  .cols3 > .col + .col, .cols2 > .col + .col { padding-top: 30px; }
  .roots li { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .roots li .rs, .roots li .pw { display: none; }
  .tl { padding-left: 16px; }
  .tl p { font-size: 16px; }
  .wrap { padding: 28px var(--gut) 60px; }
  .display { font-size: 46px; }
  .launch-head .display { font-size: 42px; }
  .eyebrow { font-size: 18px; }
  .toolbar { flex-wrap: wrap; }
  .tb-in { flex-basis: 100%; }
  .toolbar select { flex: 1; min-width: 0; padding: 0 24px 0 10px; font-size: 11px; background-position: right 9px center; }
  .podium3 { grid-template-columns: 1fr; gap: 10px; }
  .p3 { padding: 14px; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs button { flex: none; }
  .page-launch { padding: 26px var(--gut) 60px; }
  .crew-wrap { height: 220px; margin-top: 8px; }
  .kind-pick { gap: 14px; }
  .kind-tx { min-width: 0; flex: 1; }
  .launch-grid { grid-template-columns: 1fr; gap: 34px; }
  .sheet { padding: 24px 18px; }
  .ticket { transform: none; max-width: none; }
  .tp { grid-template-columns: 18px 1fr; }
  .tp .tp-d { grid-column: 2; padding-top: 0; }
  .seg button { font-size: 12px; }
  .foot { padding: 22px var(--gut); gap: 14px; }
  .f-copy { margin-left: 0; }
  .f-ca { max-width: 100%; overflow: hidden; }
  .f-ca .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .toasts { left: var(--gut); right: var(--gut); justify-items: stretch; }
  .toast { max-width: none; }
}
@media (max-width: 420px) {
  .wm-tx { font-size: 21px; }
  .wallet-btn { padding: 0 12px; }
  .stats4 b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
