/* POINTX: the climb. Near-black space, cream type, electric blue points. */
@font-face { font-family: "Urbanist"; src: url("/assets/fonts/urbanist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --font-display: "Urbanist", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --blue: #2152ff;
  --cream: #ede6d6;
  --space: #07080a;
  --panel: #111318;
  --mist: #8b8f98;
  --ember: #ff6b4a;
  --line: rgba(237, 230, 214, 0.12);
  --glass: rgba(17, 19, 24, 0.72);
  --edge: clamp(18px, 2.2vw, 40px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --black: #000;
  --blue-a14: rgba(33, 82, 255, 0.14);
  --blue-a16: rgba(33, 82, 255, 0.16);
  --blue-a18: rgba(33, 82, 255, 0.18);
  --blue-a25: rgba(33, 82, 255, 0.25);
  --blue-a50: rgba(33, 82, 255, 0.5);
  --blue-mid: #6f8dff;
  --blue-soft: #a9bbff;
  --cream-a10: rgba(237, 230, 214, 0.1);
  --cream-a12: rgba(237, 230, 214, 0.12);
  --cream-a14: rgba(237, 230, 214, 0.14);
  --cream-a20: rgba(237, 230, 214, 0.2);
  --cream-a25: rgba(237, 230, 214, 0.25);
  --cream-a30: rgba(237, 230, 214, 0.3);
  --cream-a35: rgba(237, 230, 214, 0.35);
  --cream-a40: rgba(237, 230, 214, 0.4);
  --cream-a70: rgba(237, 230, 214, 0.7);
  --cream-a72: rgba(237, 230, 214, 0.72);
  --cream-a75: rgba(237, 230, 214, 0.75);
  --cream-a78: rgba(237, 230, 214, 0.78);
  --cream-a80: rgba(237, 230, 214, 0.8);
  --mist-a28: rgba(139, 143, 152, 0.28);
  --panel-a40: rgba(17, 19, 24, 0.4);
  --panel-a50: rgba(17, 19, 24, 0.5);
  --panel-a60: rgba(17, 19, 24, 0.6);
  --panel-a90: rgba(17, 19, 24, 0.9);
  --space-a00: rgba(7, 8, 10, 0);
  --space-a50: rgba(7, 8, 10, 0.5);
  --space-a55: rgba(7, 8, 10, 0.55);
  --space-a60: rgba(7, 8, 10, 0.6);
  --space-a62: rgba(7, 8, 10, 0.62);
  --space-a70: rgba(7, 8, 10, 0.7);
}

* { box-sizing: border-box; }
html { overflow-x: clip; background: var(--space); color: var(--cream); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font: 400 15.5px/1.6 var(--font-body); background: transparent; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
strong { font-weight: 800; }
.num { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
/* the atmosphere: warm ground grey at the bottom of the climb, fading back to space at orbit */
.haze { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 70% at 50% 110%, var(--mist-a28), var(--panel-a40) 45%, var(--space-a00) 75%); }
main, .foot { position: relative; z-index: 2; }

/* ---------- header ---------- */
.topbar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 24px;
  padding: 16px var(--edge); transition: background .4s var(--ease), backdrop-filter .4s; }
.topbar.solid { background: var(--space-a70); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mark { display: flex; align-items: center; gap: 10px; }
.mark img { width: 34px; height: 34px; border-radius: 9px; }
.mark-word { font: 300 22px/1 var(--font-display); letter-spacing: -0.01em; }
.mark-word b { font-weight: 800; }
.route { display: flex; gap: 22px; margin-left: 12px; }
.route a { font-size: 14px; opacity: .6; transition: opacity .25s var(--ease); }
.route a:hover, .route a.here { opacity: 1; }
.dock { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; color: var(--cream-a70); background: var(--panel-a50); white-space: nowrap; }
.ca-chip[aria-disabled="true"] { cursor: default; }
.ca-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mist); }
.ca-chip.live .ca-dot { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-a25); }
.glyph { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); opacity: .7; transition: opacity .25s, border-color .25s; }
.glyph:hover { opacity: 1; border-color: var(--cream-a40); }
.glyph svg { width: 16px; height: 16px; fill: currentColor; }
.buy { height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--blue); color: var(--cream); font-size: 14px; }
.buy[aria-disabled="true"] { opacity: .45; cursor: not-allowed; border-color: var(--line); }
.phantom { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--cream); color: var(--space); font-size: 14px; font-weight: 500; cursor: pointer; transition: transform .2s var(--ease); }
.phantom:hover { transform: translateY(-1px); }
.ph-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); }
.phantom.on .ph-dot { background: var(--blue); }

/* ---------- shared ---------- */
section { padding: clamp(90px, 12vh, 160px) var(--edge); }
.display { font: 300 clamp(38px, 4.6vw, 86px)/0.98 var(--font-display); letter-spacing: -0.025em; margin: 0 0 22px; max-width: 15ch; }
.display strong { font-weight: 800; }
section p { color: var(--cream-a72); max-width: 54ch; }
.act-solid, .act-line { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .25s var(--ease), opacity .25s, transform .25s var(--ease); }
.act-solid { background: var(--blue); color: var(--cream); border: 0; }
.act-solid span { font-family: var(--font-display); font-weight: 800; opacity: .8; }
.act-solid:hover { transform: translateY(-2px); }
.act-solid:disabled { opacity: .5; cursor: progress; transform: none; }
.act-line { border: 1px solid var(--cream-a30); background: transparent; color: var(--cream); opacity: .8; }
.act-line:hover { opacity: 1; border-color: var(--cream); }
.wide { width: 100%; }
.strip-quiet { color: var(--mist); font-size: 14px; }
.panel { background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 22px; }

/* ---------- orbit (hero) ---------- */
.orbit { min-height: 100vh; min-height: 100svh; padding-top: 120px; padding-bottom: 110px; position: relative;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 400px); gap: 40px; align-items: center; }
.orbit-copy { max-width: 760px; }
.wordmark { margin: 0 0 18px; font: 200 clamp(76px, 11vw, 210px)/0.86 var(--font-display); letter-spacing: 0.04em; display: flex; }
.wordmark span { display: inline-block; }
.wordmark .wx { font-weight: 800; color: var(--cream); position: relative; }
.wordmark .wx::after { content: ""; position: absolute; width: .13em; height: .13em; border-radius: 50%; background: var(--blue);
  left: 50%; top: 52%; transform: translate(-50%, -50%); box-shadow: 0 0 0 .05em var(--space); }
.headline { font: 300 clamp(26px, 2.6vw, 46px)/1.08 var(--font-display); letter-spacing: -0.015em; margin: 0 0 18px; color: var(--cream); max-width: 20ch; }
.lede { max-width: 50ch; color: var(--cream-a70); margin: 0 0 30px; }
.orbit-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.pair-note { font-size: 13px; color: var(--mist); margin-top: 22px; }
.pair-note a { border-bottom: 1px solid var(--cream-a30); }

.altimeter { align-self: end; margin-bottom: 30px; padding: 26px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 24px; }
.alt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.alt-title { font: 500 15px/1 var(--font-body); }
.alt-rank { font-size: 13px; color: var(--mist); }
.alt-empty p { margin: 0 0 18px; color: var(--cream-a70); font-size: 14.5px; }
.alt-level { display: flex; align-items: baseline; gap: 14px; }
.alt-n { font: 800 64px/0.9 var(--font-display); color: var(--blue); }
.alt-name { font: 300 34px/1 var(--font-display); }
.alt-points { margin: 10px 0 14px; color: var(--cream-a70); }
.alt-points .num { color: var(--cream); font-size: 22px; }
.alt-bar { height: 3px; background: var(--cream-a12); border-radius: 3px; overflow: hidden; }
.alt-bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--blue); transition: transform 1.2s var(--ease); }
.alt-next { font-size: 13px; color: var(--mist); margin: 10px 0 18px; }
.alt-split { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; }
.alt-split div { border-top: 1px solid var(--line); padding-top: 8px; }
.alt-split dt { font-size: 12px; color: var(--mist); }
.alt-split dd { margin: 2px 0 0; font: 600 20px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }

.ticker-strip { position: absolute; left: var(--edge); right: var(--edge); bottom: 26px; display: flex; align-items: center; gap: 18px;
  border-top: 1px solid var(--line); padding-top: 14px; overflow: hidden; padding-left: 230px; }
.strip-label { font: 500 13px/1 var(--font-body); color: var(--cream); flex: none; }
.strip-track { display: flex; gap: 34px; white-space: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, var(--black) 85%, transparent); -webkit-mask-image: linear-gradient(90deg, var(--black) 85%, transparent); }
.strip-track.moving > div { display: flex; gap: 34px; animation: drift 60s linear infinite; }
.strip-item { font-size: 14px; color: var(--cream-a72); }
.strip-item b { color: var(--cream); font-family: var(--font-display); font-weight: 700; }
.strip-item em { font-style: normal; color: var(--blue-mid); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- readout: the altitude counter ---------- */
.readout { position: fixed; z-index: 15; left: var(--edge); bottom: 22px; display: flex; flex-direction: column; pointer-events: none; transition: opacity .4s; }
.ro-label { font-size: 12px; color: var(--mist); }
.ro-num { font-size: clamp(30px, 2.6vw, 44px); line-height: 1; margin: 4px 0 2px; color: var(--cream); }
.ro-level { font: 300 15px/1 var(--font-display); color: var(--cream-a80); }
.readout.dim { opacity: 0; }

/* ---------- the climb ---------- */
.climb { padding: 0; height: 420vh; position: relative; }
.climb-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 110px var(--edge) 110px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 470px); gap: 40px; align-items: center; }
.climb-intro { align-self: start; }
.strata { list-style: none; margin: 0; padding: 0; position: relative; height: 100%; }
.stratum { position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto 0; height: max-content; padding: 28px 28px 24px; opacity: 0; visibility: hidden;
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 24px; }
.stratum-top { display: flex; align-items: baseline; gap: 14px; }
.stratum-n { font: 800 72px/0.85 var(--font-display); color: var(--blue); }
.stratum-name { font: 300 44px/1 var(--font-display); letter-spacing: -0.02em; }
.stratum-at { margin-left: auto; text-align: right; font-size: 13px; color: var(--mist); }
.stratum-at b { display: block; font: 600 24px/1.1 var(--font-display); color: var(--cream); font-variant-numeric: tabular-nums; }
.stratum h3 { font: 500 17px/1.3 var(--font-body); margin: 22px 0 6px; }
.stratum p { margin: 0; font-size: 14.5px; }
.stratum-who { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 14px; color: var(--cream-a72); }
.stratum-who b { font: 600 18px/1 var(--font-display); color: var(--cream); }
.rail { position: absolute; left: -26px; top: 12%; bottom: 12%; width: 2px; background: var(--cream-a12); border-radius: 2px; }
.rail i { position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--cream-a35); transform: translateY(50%); }
.rail i.lit { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-a25); }

/* ---------- rules + calculator ---------- */
.rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); align-items: start; background: linear-gradient(180deg, var(--space-a00), var(--space-a62) 18%); }
.rulebook { list-style: none; margin: 28px 0 0; padding: 0; }
.rulebook li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.rulebook li b { font: 800 30px/1 var(--font-display); color: var(--cream); }
.rulebook li b small { font-weight: 300; font-size: 15px; color: var(--mist); margin-left: 3px; }
.rulebook li span { color: var(--cream-a72); font-size: 14.5px; }
.rulebook li span strong { color: var(--cream); font-weight: 500; }
.calc { padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; position: sticky; top: 100px; }
.calc-head h3 { font: 300 32px/1 var(--font-display); margin: 0 0 6px; }
.calc-head p { margin: 0 0 22px; font-size: 13.5px; color: var(--mist); }
.slider { display: grid; grid-template-columns: minmax(0, 1fr) 42px; grid-template-rows: auto auto; gap: 4px 12px; margin-bottom: 14px; font-size: 14px; }
.slider span { color: var(--cream-a78); }
.slider output { grid-row: 1 / 3; grid-column: 2; align-self: center; text-align: right; font: 600 20px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.slider input { grid-column: 1; width: 100%; accent-color: var(--blue); height: 18px; }
.curve { width: 100%; height: 200px; margin-top: 10px; display: block; }
.curve path { fill: none; stroke: var(--blue); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.curve line { stroke: var(--cream-a14); stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.curve text { fill: var(--mist); font: 400 11px var(--font-body); }
.calc-out { margin: 14px 0 0; font-size: 15px; color: var(--cream-a78); max-width: none; }
.calc-out .num { font-size: 34px; color: var(--cream); margin-right: 4px; }
.calc-out #cLevel { font: 800 18px var(--font-display); color: var(--cream); }

/* ---------- launch console ---------- */
.console { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 90px); align-items: start; background: var(--space-a62); }
.fee-line { font-size: 14px; color: var(--mist); }
.blocked { color: var(--ember); font-size: 14px; }
.console-form { padding: 30px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field-row .narrow { max-width: none; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--mist); }
.field input, .field textarea { background: var(--space-a60); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--cream); outline: none; resize: vertical; transition: border-color .2s; }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.drop { position: relative; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px; border: 1px dashed var(--cream-a25); border-radius: 12px; font-weight: 400; color: var(--cream-a80); font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.drop b img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.pairs { margin: 4px 0 16px; }
.pairs-title { display: block; font-size: 13px; color: var(--mist); margin-bottom: 8px; }
.pair-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pair { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--space-a50); cursor: pointer; font-size: 14px; transition: border-color .2s, background .2s; }
.pair img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.pair small { color: var(--mist); font-size: 12px; }
.pair[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-a14); }
.status { min-height: 24px; margin: 14px 0 0; font-size: 14px; color: var(--cream-a80); max-width: none; }
.status.bad { color: var(--ember); }
.status a { border-bottom: 1px solid currentColor; }

/* ---------- coins ---------- */
.coins { background: var(--space-a50); }
.coins-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.coins-head p { margin: 0; }
.feature { margin-bottom: 26px; }
.slot { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 26px; border-radius: 26px; border: 1px solid var(--blue-a50); background: linear-gradient(120deg, var(--blue-a16), var(--panel-a90) 55%); }
.slot img { width: 160px; height: 160px; border-radius: 20px; object-fit: cover; }
.slot h3 { font: 300 46px/1 var(--font-display); margin: 6px 0 10px; }
.slot h3 b { font-weight: 800; }
.slot-sub { font-size: 13px; color: var(--mist); }
.slot-empty { padding: 34px; border-radius: 26px; border: 1px dashed var(--cream-a20); color: var(--cream-a70); }
.slot-empty strong { display: block; font: 300 30px/1.1 var(--font-display); color: var(--cream); margin-bottom: 8px; }
.rotation { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 30px; }
.coin { padding: 18px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--ease); display: block; }
.coin:hover { border-color: var(--cream-a35); transform: translateY(-3px); }
.coin-top { display: flex; gap: 12px; align-items: center; }
.coin-top img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--space); }
.coin-top b { font: 700 18px/1.1 var(--font-display); display: block; }
.coin-top span { font-size: 12.5px; color: var(--mist); }
.coin-nums { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--mist); }
.coin-nums b { display: block; color: var(--cream); font: 600 17px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--blue-a18); color: var(--blue-soft); margin-left: 6px; }
.check { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); color: var(--cream); font-size: 10px; margin-left: 4px; vertical-align: 1px; }
.dir-row { display: grid; grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 110px; gap: 16px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.dir-row img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.dir-row .t { font: 700 16px/1.2 var(--font-display); }
.dir-row .m { color: var(--mist); font-size: 12.5px; }
.dir-row a.go { justify-self: end; opacity: .7; } .dir-row a.go:hover { opacity: 1; }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: clamp(30px, 5vw, 80px); background: var(--space-a50); }
.board-sum { margin-top: -6px; }
.leaders { margin-top: 26px; }
.lead-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 110px 120px; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.lead-row .r { font: 300 30px/1 var(--font-display); color: var(--mist); }
.lead-row .w { font: 500 15px var(--font-body); }
.lead-row .w a:hover { color: var(--blue-soft); }
.lead-row .s { font-size: 12.5px; color: var(--mist); display: block; }
.lead-row .l { font: 300 18px var(--font-display); }
.lead-row .p { font: 700 26px/1 var(--font-display); text-align: right; font-variant-numeric: tabular-nums; }
.lead-row.top .r { color: var(--blue); font-weight: 800; }
.lead-empty { padding: 30px 0; border-top: 1px solid var(--line); color: var(--cream-a72); }
.lead-empty strong { display: block; font: 300 30px/1.1 var(--font-display); color: var(--cream); margin-bottom: 8px; }
.feed h3 { font: 300 30px/1 var(--font-display); margin: 0 0 18px; }
.feed ul { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--cream-a75); display: flex; justify-content: space-between; gap: 12px; }
.feed li b { color: var(--cream); font-family: var(--font-display); font-weight: 700; }
.feed li time { color: var(--mist); font-size: 12px; white-space: nowrap; }
.tick-note { font-size: 13px; color: var(--mist); margin-top: 16px; }

/* ---------- profile + perks ---------- */
.profile { background: var(--space-a55); }
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.perk { padding: 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 300px; position: relative; overflow: hidden; }
.perk::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: var(--cream-a10); }
.perk.open::before { background: var(--blue); }
.perk-lv { font-size: 13px; color: var(--mist); }
.perk-lv b { font: 800 15px var(--font-display); color: var(--cream); }
.perk h3 { font: 300 28px/1.05 var(--font-display); margin: 14px 0 10px; letter-spacing: -0.01em; }
.perk p { font-size: 14px; margin: 0 0 18px; flex: 1; }
.perk-cost { font: 700 24px/1 var(--font-display); margin-bottom: 14px; }
.perk-cost small { font: 400 13px var(--font-body); color: var(--mist); }
.perk select { width: 100%; margin-bottom: 10px; background: var(--space-a60); border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--cream); }
.perk .why { font-size: 13px; color: var(--mist); margin: 0; flex: none; }
.perk button { height: 44px; }
.mine { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mine-col { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel-a60); }
.mine-col h3 { font: 300 24px/1 var(--font-display); margin: 0 0 12px; }
.mine-col ul { list-style: none; margin: 0; padding: 0; }
.mine-col li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--cream-a80); }
.mine-col li b { font-family: var(--font-display); font-weight: 700; color: var(--cream); }
.mine-col .quiet { color: var(--mist); font-size: 13.5px; margin: 0; }

/* ---------- footer ---------- */
.foot { padding: 120px var(--edge) 110px; background: var(--space); border-top: 1px solid var(--line); }
.to-orbit { display: inline-block; font: 300 clamp(44px, 7vw, 120px)/1 var(--font-display); letter-spacing: -0.03em; opacity: .85; transition: opacity .3s; }
.to-orbit:hover { opacity: 1; }
.to-orbit span { color: var(--blue); font-weight: 800; }
.foot-row { display: flex; align-items: center; gap: 22px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-row img { width: 40px; height: 40px; border-radius: 10px; }
.foot-row p { margin: 0; color: var(--mist); font-size: 13.5px; max-width: 60ch; }
.foot-links { margin-left: auto; display: flex; gap: 10px; }
.foot-links a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; opacity: .7; transition: opacity .25s; }
.foot-links a:hover { opacity: 1; }
.foot-links svg { width: 17px; height: 17px; fill: currentColor; }

/* reveal: fade + rise */
.rise { opacity: 0; transform: translateY(24px); }

/* ---------- responsive ---------- */
@media (min-width: 2000px) {
  body { font-size: 17px; }
  .orbit { grid-template-columns: minmax(0, 1.25fr) minmax(380px, 480px); }
}
@media (max-width: 1180px) {
  .route { display: none; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .orbit { grid-template-columns: minmax(0, 1fr); padding-top: 110px; align-content: start; padding-bottom: 150px; }
  .altimeter { align-self: auto; margin: 0; }
  .ticker-strip { padding-left: 0; bottom: 92px; }
  .climb-pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); padding-top: 90px; gap: 10px; }
  .rail { display: none; }
  .rules, .console, .board { grid-template-columns: minmax(0, 1fr); }
  .calc { position: static; }
  .mine { grid-template-columns: minmax(0, 1fr); }
  .slot { grid-template-columns: 96px minmax(0, 1fr); }
  .slot img { width: 96px; height: 96px; }
  .slot > :last-child { grid-column: 1 / -1; }
  .dir-row { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); }
  .dir-row .hide-s { display: none; }
}
@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 12px 14px; }
  .mark-word { display: none; }
  .dock { gap: 6px; }
  .ca-chip { padding: 0 10px; font-size: 12px; height: 32px; }
  .glyph { width: 32px; height: 32px; }
  .buy { display: none; }
  .phantom { height: 32px; padding: 0 12px; font-size: 13px; }
  .phantom .ph-dot { display: none; }
  .wordmark { font-size: 26vw; }
  .display { font-size: 40px; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .perk { min-height: 0; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .lead-row { grid-template-columns: 40px minmax(0, 1fr) 90px; }
  .lead-row .l { display: none; }
  .stratum-n { font-size: 54px; } .stratum-name { font-size: 34px; }
  .readout { bottom: 14px; }
  .ro-num { font-size: 26px; }
  .foot-row { flex-wrap: wrap; }
  .foot-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track.moving > div { animation: none; }
  .rise { opacity: 1; transform: none; }
}

/* very wide screens: scale the whole UI layer, the scene stays full-bleed */
@media (min-width: 2200px) {
  .topbar, main, .foot, .readout { zoom: 1.33; }
  .orbit { min-height: calc(100vh / 1.33); }
  .climb-pin { height: calc(100vh / 1.33); }
}
/* phones: the readout only shows during the climb, so it never sits on the profile panel */
@media (max-width: 900px) { .readout:not(.inclimb) { opacity: 0; } }
@media (max-width: 640px) { .phantom #connectText { font-size: 0; } .phantom #connectText::after { content: "Connect"; font-size: 13px; } .phantom.on #connectText { font-size: 13px; } .phantom.on #connectText::after { content: none; } }

/* states: focus rings, presses and disabled */
:where(a, button, select, input, textarea):focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.act-solid:active, .act-line:active, .phantom:active, .buy:active, .ca-chip:active, .pair:active, .glyph:active, .to-orbit:active { transform: scale(.97); }
.act-solid[disabled], .act-line[disabled], .pair[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.buy:not([aria-disabled="true"]):hover { background: var(--blue); }
