/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
body.modal-open { overflow: hidden; }
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(36px, 5.4vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.muted { color: var(--muted); }
.accent { color: var(--cyan); }
.center { text-align: center; }
.fine { color: var(--muted); font-size: 13px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 18px; }
.wrap-row { flex-wrap: wrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cyan); color: var(--on-cyan); }
.icon { display: inline-flex; flex: none; }
.label { font: 600 11px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hint { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.hide-sm, .hide-md { display: inline-flex; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); } }

/* ---------------------------------------------------------------- buttons, chips, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform 0.14s var(--ease), background 0.14s, border-color 0.14s; white-space: nowrap; }
.btn:hover { border-color: var(--cyan); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }
.btn.primary:hover { background: #5ff0ff; }
.btn.dark { background: var(--bg); color: var(--cyan); border-color: var(--bg); }
.btn.ghost { background: transparent; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn.lg { height: 52px; font-size: 17px; padding: 0 24px; }
.btn.xl { height: 58px; font-size: 18px; padding: 0 28px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.link-arrow { color: var(--cyan); text-decoration: none; font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); }
.icon-btn:hover { border-color: var(--cyan); }
.chip, .chips button, .seg button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; }
.chip:hover, .chips button:hover, .seg button:hover { border-color: var(--cyan); color: var(--ink); }
.chips, .seg { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button[aria-pressed="true"], .seg button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--on-cyan); font-weight: 700; }
.chip.demo { border-color: var(--amber); color: var(--amber); }
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); font-size: 15px; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.input[aria-invalid] { border-color: var(--hot); }
.prefix { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); }
.prefix > span { padding: 0 4px 0 14px; color: var(--muted); }
.prefix.suffix > span { padding: 0 14px 0 4px; }
.prefix .input { border: 0; background: transparent; box-shadow: none; }
.prefix:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.problem { color: var(--hot); font-size: 14px; margin-top: 6px; min-height: 0; }
.problem:empty { display: none; }
.banner { border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); padding: 14px 18px; margin: 18px 0 0; color: var(--ink-2); }
.banner.good { border-color: var(--cyan); background: var(--cyan-soft); color: var(--ink); }
.banner a { color: var(--cyan); }

/* ---------------------------------------------------------------- header, demo strip, tab bar, footer */
#top { position: sticky; top: 0; z-index: 40; background: rgba(5, 7, 13, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.demo-strip { background: var(--amber); color: #1a1200; text-align: center; font-size: 13px; padding: 6px 12px; }
.top-bar { display: flex; align-items: center; gap: 24px; height: var(--top-h); }
.brand { text-decoration: none; display: flex; }
.brand-lock { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark svg { width: 36px; height: 36px; display: block; }
.brand-word { font-weight: 800; font-size: 26px; letter-spacing: -0.04em; line-height: 1; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--cyan); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ca-mini { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; cursor: pointer; color: var(--ink-2); }
.ca-mini .soon { color: var(--cyan); }
.wallet-box { position: relative; }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px; min-width: 190px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.wallet-menu button, .wallet-menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-decoration: none; cursor: pointer; font-size: 14px; text-align: left; }
.wallet-menu button:hover, .wallet-menu a:hover { background: var(--surface-3); }
.tabbar { display: none; }
#foot { border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: grid; gap: 10px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--cyan); }
.foot-note { margin-top: 26px; font-size: 13px; color: var(--muted); }
.foot-base { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- page heads, sections, cards */
main.enter > * { animation: enter 0.4s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.page-head { padding-top: 56px; padding-bottom: 28px; }
.page-head h1 { max-width: 16ch; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 62ch; margin-top: 16px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.floor-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cyan); color: var(--on-cyan); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.section { padding-top: 88px; }
.section-head { margin-bottom: 32px; }
.section-head.center { text-align: center; }
.section-head.center h2 { max-width: 22ch; margin: 0 auto; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.more { margin-top: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head span { font-size: 13px; }
.rise { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.still .rise { opacity: 1; transform: none; transition: none; }
.still *, .still *::before, .still *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }

/* ---------------------------------------------------------------- the hero (the cyan field) */
.hero { position: relative; overflow: hidden; background: var(--cyan); color: var(--on-cyan); padding: 64px 0 80px; }
.hero-floors { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 63px, rgba(5, 7, 13, 0.08) 63px 64px); pointer-events: none; }
.hero-floors::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 80% 30%, rgba(255, 255, 255, 0.45), transparent 70%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--bg); color: var(--ink); padding: 8px 14px; border-radius: var(--pill); font-size: 14px; font-weight: 600; }
.hero-title { font-size: clamp(44px, 6.2vw, 86px); line-height: 0.98; letter-spacing: -0.04em; margin-top: 20px; }
.hero-title .hl { display: inline-block; white-space: nowrap; background: var(--bg); color: var(--cyan); padding: 0.02em 0.16em 0.1em; border-radius: 14px; margin-top: 6px; transform: rotate(-1.5deg); }
.hero-sub { font-size: 19px; line-height: 1.5; max-width: 34em; margin-top: 22px; font-weight: 500; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; max-width: 520px; }
.hstat { background: var(--bg); color: var(--ink); border-radius: var(--r); padding: 14px; display: grid; gap: 4px; }
.hstat b { font-size: 28px; color: var(--cyan); line-height: 1; }
.hstat span { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.hero-how { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--on-cyan); text-decoration: none; border-bottom: 2px solid var(--on-cyan); }
.hero-pick { position: relative; padding-top: 44px; }
.hero-mark { position: absolute; right: 18px; top: -18px; width: 104px; height: 104px; z-index: 2; filter: drop-shadow(0 14px 22px rgba(5, 7, 13, 0.35)); animation: bob 3.6s ease-in-out infinite; }
.hero-mark svg { width: 100%; height: 100%; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }

/* the picker */
.picker { position: relative; background: var(--bg); color: var(--ink); border-radius: 26px; padding: 22px; box-shadow: 0 30px 60px rgba(5, 7, 13, 0.35); }
.pk-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; padding-right: 110px; }
.pk-head b { font-size: 18px; }
.pk-head span { font-size: 12px; }
.pk-body { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.pk-tower { position: relative; display: grid; grid-template-columns: 1fr 44px; gap: 6px; height: 280px; }
.pk-floors { position: relative; }
.pk-floor { position: absolute; right: 0; transform: translateY(50%); font-size: 11px; color: var(--muted); }
.pk-shaft { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); cursor: ns-resize; touch-action: none; }
.pk-ground { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.pk-hop { position: absolute; left: 50%; bottom: 0; width: 4px; transform: translateX(-50%); background: repeating-linear-gradient(to top, var(--cyan) 0 3px, transparent 3px 10px); border-radius: 2px; }
.pk-thumb { position: absolute; left: 50%; width: 52px; height: 52px; transform: translate(-50%, 50%); border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(0, 229, 255, 0.14); transition: bottom 0.25s var(--ease); }
.pk-shaft.drag .pk-thumb { transition: none; }
.pk-thumb svg { width: 40px; height: 40px; }
.pk-read { display: grid; gap: 10px; align-content: start; }
.pk-main { background: var(--surface); border-radius: var(--r); padding: 14px; display: grid; gap: 6px; }
.pk-line { display: flex; align-items: baseline; gap: 6px; }
.pk-up { color: var(--cyan); font-size: 16px; }
.pk-big { font-size: 48px; line-height: 1; color: var(--cyan); letter-spacing: -0.03em; }
.pk-x { display: inline-block; width: fit-content; font-size: 12px; background: var(--cyan-soft); color: var(--cyan); padding: 4px 10px; border-radius: var(--pill); }
.pk-card { background: var(--surface); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 4px; }
.pk-card b { font-size: 22px; }
.pk-hint { font-size: 12px; color: var(--muted); }
.pk-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.pk-bar-fill { display: block; height: 100%; background: var(--cyan); border-radius: 4px; transition: width 0.25s var(--ease); }
.pk-presets { display: flex; gap: 10px; justify-content: center; margin: 18px 0 14px; }
.pk-btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.pk-btn:hover { border-color: var(--cyan); }
.pk-btn[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--on-cyan); box-shadow: 0 0 0 5px rgba(0, 229, 255, 0.18); }
.pk-fine { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* the ticker strip */
.ticker { background: var(--ink); color: var(--on-cyan); overflow: hidden; border-block: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; padding: 14px 0; }
.tk { font-weight: 800; font-size: 18px; padding: 0 18px; white-space: nowrap; letter-spacing: -0.01em; }
.tk-dot { color: var(--cyan-d); font-size: 10px; align-self: center; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- the hop chart */
.hop-card { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; }
.hc { width: 100%; height: auto; display: block; }
.hc-grid { stroke: var(--line); }
.hc-tick, .hc-axis-t { fill: var(--muted); font: 500 11px var(--mono); }
.hc-axis { stroke: var(--line-2); }
.hc-skipped { fill: none; stroke: var(--surface-3); stroke-width: 6; stroke-linecap: round; }
.hc-trade { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.hc-hop { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.004 0.025; }
.hc-ground { fill: var(--hot); }
.hc-coin { fill: var(--bg); stroke: var(--cyan); stroke-width: 6; }
.hc-note { fill: var(--muted); font: 500 12px var(--font); }
.hc-strong { fill: var(--cyan); font-weight: 700; font-size: 13px; }
.hc-pill { fill: var(--cyan); }
.hc-pill-t { fill: var(--on-cyan); font: 700 13px var(--font); }
.hop-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: p; }
.hop-points li { position: relative; padding-left: 44px; color: var(--muted); counter-increment: p; }
.hop-points li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: var(--on-cyan); font: 700 13px var(--mono); }
.hop-points b { color: var(--ink); display: block; font-size: 17px; }
.hop-card + .fine { margin-top: 14px; }

/* ---------------------------------------------------------------- versus */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.vs-card { border-radius: 26px; padding: 30px; border: 1px solid var(--line); }
.vs-pump { background: var(--surface); }
.vs-us { background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 60px rgba(0, 229, 255, 0.12); }
.vs-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.vs-us .vs-label { color: var(--cyan); }
.vs-big { font-size: clamp(54px, 7vw, 88px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 10px; }
.vs-pump .vs-big { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--hot); text-decoration-thickness: 6px; }
.vs-us .vs-big { color: var(--cyan); }
.vs-cap { color: var(--muted); margin-top: 6px; }
.vs-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.vs-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.vs-list b { display: block; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2px; }
.vs-ico svg { width: 22px; height: 22px; display: block; }
.vs-ico.no { color: var(--surface-3); }
.vs-ico.yes { color: var(--cyan); }
.vs-pump .vs-ico.no { color: #3a4358; }
.vs-mid { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: var(--on-cyan); font-weight: 800; }

/* ---------------------------------------------------------------- three steps */
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step3 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 10px; align-content: start; }
.step3-n { width: 44px; height: 44px; border-radius: 50%; background: var(--cyan); color: var(--on-cyan); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.step3 p { color: var(--muted); }

/* ---------------------------------------------------------------- the vault */
.vault-sec { margin-top: 88px; background: radial-gradient(80% 60% at 50% 0%, rgba(0, 229, 255, 0.14), transparent 70%), var(--bg-2); border-block: 1px solid var(--line); padding-bottom: 88px; }
.vault4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; align-content: start; }
.vcard p { color: var(--muted); font-size: 15px; }
.vico svg { width: 36px; height: 36px; display: block; }
.v-held .vico { color: var(--cyan); }
.v-locked .vico { color: var(--violet); }
.v-burned .vico { color: var(--ember); }
.v-refund { border-color: rgba(255, 194, 71, 0.4); background: linear-gradient(180deg, rgba(255, 194, 71, 0.08), transparent), var(--surface); }
.v-refund .vico { color: var(--amber); }

/* ---------------------------------------------------------------- the directory (coin rows) */
.directory { display: grid; gap: 6px; }
.dir-row { display: grid; grid-template-columns: 96px 64px minmax(0, 1.6fr) minmax(0, 1fr) 96px 72px; gap: 14px; align-items: center; padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.14s, transform 0.14s var(--ease); }
a.dir-row:hover { border-color: var(--cyan); transform: translateY(-1px); }
.dir-head { background: none; border: 0; padding-block: 4px; font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dir-head span { color: var(--muted); border: 0; padding: 0; font: inherit; }
.dir-floor, .dir-now { display: grid; font-size: 16px; font-weight: 600; }
.dir-floor { color: var(--cyan); }
.dir-floor small, .dir-now small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.dir-gauge svg { width: 64px; height: 34px; display: block; }
.dir-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dir-name { display: grid; min-width: 0; }
.dir-name span { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-vault { justify-self: start; font-size: 12px; padding: 5px 10px; border-radius: var(--pill); border: 1px solid currentColor; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dir-age { color: var(--muted); font-size: 12px; text-align: right; }
.dir-head .dir-age { text-align: right; }
.tone-window { color: var(--amber); }
.tone-held { color: var(--cyan); }
.tone-burned { color: var(--ember); }
.tone-refunded { color: var(--violet); }
.coin-pic { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--surface-2); flex: none; }
.coin-pic.blank { display: grid; place-items: center; padding: 6px; }
.coin-pic.blank svg { width: 100%; height: 100%; }
.sk { height: 66px; }
.sk-bar { display: block; grid-column: 1 / -1; height: 18px; border-radius: 9px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.first-coin { display: flex; align-items: center; gap: 22px; padding: 26px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); flex-wrap: wrap; }
.first-coin > div { flex: 1; min-width: 200px; }
.first-mark svg, .first-mark { width: 72px; height: 72px; display: block; }

/* the gauge */
.gauge { display: block; width: 100%; height: auto; overflow: visible; }
.g-track { fill: none; stroke: var(--surface-3); stroke-width: 12; stroke-linecap: round; }
.gauge-mini .g-track { stroke-width: 16; }
.g-tick { stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; }
.g-hop { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.004 0.04; }
.gauge-mini .g-hop { stroke-width: 6; stroke-dasharray: 0.01 0.07; }
.g-run { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linecap: round; opacity: 0.85; }
.g-run.down { stroke: var(--hot); }
.gauge-mini .g-run { stroke-width: 16; }
.g-coin { fill: var(--bg); stroke: var(--cyan); stroke-width: 6; }
.gauge-mini .g-coin { stroke-width: 7; }
.g-now { fill: var(--ink); }
.g-ground { fill: var(--hot); }
.g-label { fill: var(--muted); font: 600 12px var(--mono); }
.g-big { fill: var(--cyan); font: 800 30px var(--font); letter-spacing: -0.03em; }
.g-small { fill: var(--muted); font: 500 12px var(--font); }
.sweep .g-hop { animation: hopin 1.1s var(--ease) both; stroke-dasharray: 0.004 0.04; }
@keyframes hopin { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------------------- the logbook */
.log-title { margin: 34px 0 12px; font-size: 18px; }
.log-title span { font-weight: 400; font-size: 15px; }
.logbook { display: grid; }
.log-row { display: grid; grid-template-columns: 72px 80px minmax(0, 1fr) auto 72px; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.coin-main .log-row { grid-template-columns: 72px minmax(0, 1fr) auto 72px; }
.log-kind { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cyan); }
.k-refund .log-kind, .k-back .log-kind { color: var(--violet); }
.k-burn .log-kind { color: var(--ember); }
.k-window .log-kind { color: var(--amber); }
.log-sym { color: var(--ink); text-decoration: none; font-weight: 600; }
.log-text { color: var(--ink-2); }
.tx { font-size: 12px; color: var(--cyan); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.log-time { color: var(--muted); font-size: 12px; text-align: right; }

/* ---------------------------------------------------------------- FAQ, CA, band */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: var(--on-cyan); font-weight: 800; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }
.ca-sec { padding-top: 64px; }
.ca-plate { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 30px; border-radius: 26px; border: 1px dashed var(--line-2); background: var(--surface); max-width: 760px; margin: 0 auto; }
.ca-addr { font-size: clamp(14px, 2.2vw, 20px); word-break: break-all; color: var(--cyan); }
.ca-wait { display: grid; gap: 6px; }
.ca-wait .soon { font-size: 30px; color: var(--cyan); font-weight: 700; }
.ca-note { color: var(--muted); font-size: 14px; }
.band { margin-top: 88px; background: var(--cyan); color: var(--on-cyan); overflow: hidden; }
.band-in { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding-block: 64px; }
.band h2 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.04em; }
.band p { font-size: 18px; margin: 14px 0 24px; max-width: 40ch; font-weight: 500; }
.band-mark svg, .band-mark { width: clamp(160px, 22vw, 260px); height: auto; display: block; }
body[data-page="home"] #foot { margin-top: 0; }

/* ---------------------------------------------------------------- the floor rail */
.rail { position: fixed; left: 18px; top: 50%; transform: translate(-140%, -50%); z-index: 30; display: grid; gap: 10px; justify-items: center; background: rgba(13, 18, 32, 0.9); border: 1px solid var(--line-2); border-radius: 30px; padding: 12px 8px; transition: transform 0.4s var(--ease); backdrop-filter: blur(8px); }
.rail.show { transform: translate(0, -50%); }
.rail-now { display: grid; justify-items: center; background: var(--cyan); color: var(--on-cyan); border-radius: 12px; padding: 4px 8px; }
.rail-now small { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; }
.rail-now b { font-size: 18px; line-height: 1.1; }
.rail-shaft { position: relative; display: grid; gap: 14px; }
.rail-stop { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; text-decoration: none; font-size: 11px; color: var(--muted); }
.rail-stop.on { border-color: var(--cyan); color: var(--cyan); }
.rail-coin { position: absolute; left: -2px; top: 0; width: 34px; height: 34px; pointer-events: none; transition: transform 0.45s var(--ease); }
.rail-coin svg { width: 100%; height: 100%; }
.rail-coin.hop { animation: railhop 0.45s var(--ease); }
@keyframes railhop { 40% { scale: 1.25; } }
@media (max-width: 1320px) { .rail { display: none; } }

/* ---------------------------------------------------------------- coin page */
.plate-head { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: center; padding-top: 44px; }
.plate-id { display: flex; gap: 20px; align-items: flex-start; }
.plate-id .coin-pic { width: 84px; height: 84px; border-radius: 22px; }
.plate-id h1 { font-size: clamp(30px, 4vw, 46px); }
.plate-id .sym { color: var(--cyan); font-size: 0.6em; letter-spacing: 0; }
.plate-id .muted { margin: 8px 0 14px; max-width: 60ch; }
.plate-gauge { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 14px; }
.gauge-key { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; }
.key-opened { color: var(--cyan); }
.key-now { color: var(--ink-2); }
.coin-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 26px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 6px; align-content: start; }
.stat-value { font-size: 20px; font-weight: 600; }
.stat-hint { font-size: 12px; color: var(--muted); line-height: 1.35; }
.coin-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; margin-top: 16px; align-items: start; }
.coin-main, .coin-side { display: grid; gap: 16px; }
.chart svg { width: 100%; height: 220px; display: block; }
.chart.empty { height: 160px; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }
.chart-line { fill: none; stroke: var(--cyan); stroke-width: 2.5; }
.chart-ground { stroke: var(--hot); stroke-dasharray: 4 5; stroke-width: 1.5; }
.chart-floor { stroke: var(--ink); stroke-dasharray: 2 4; stroke-width: 1.5; opacity: 0.6; }
.chart-label { fill: var(--muted); font: 500 11px var(--mono); }
.vault-chip { font-size: 12px; padding: 4px 10px; border-radius: var(--pill); border: 1px solid currentColor; }
.vault-card p { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 16px 0 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.facts a { color: var(--cyan); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.facts.small { font-size: 13px; }
.split { display: flex; height: 34px; border-radius: 10px; overflow: hidden; font: 600 12px var(--mono); }
.split span { display: grid; place-items: center; white-space: nowrap; overflow: hidden; }
.split-you { background: var(--cyan); color: var(--on-cyan); }
.split-house { background: var(--surface-3); color: var(--ink-2); min-width: 40px; }
.coin-side .row { margin-top: 14px; }

/* ---------------------------------------------------------------- coins page */
.controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.controls .input { flex: 1; min-width: 220px; }
.count { color: var(--muted); font-size: 13px; margin: 16px 0 10px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 56px 20px; }
.empty-pic { width: 180px; }
.empty .btn { margin-top: 10px; }
.addr-title { font-size: clamp(26px, 4vw, 40px); }
.h3 { font-size: 22px; margin-bottom: 14px; }

/* ---------------------------------------------------------------- launch page */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; margin-top: 12px; }
.launch-steps { display: grid; gap: 16px; }
.step-card { display: grid; gap: 14px; }
.step-title { display: flex; align-items: center; gap: 12px; font-size: 22px; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--cyan); color: var(--on-cyan); display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.step-card > .muted { margin-top: -4px; }
.floor-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.floor-btn { display: grid; gap: 4px; justify-items: center; padding: 16px 8px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); cursor: pointer; }
.floor-btn:hover:not([disabled]) { border-color: var(--cyan); }
.floor-btn[aria-pressed="true"] { border: 2px solid var(--cyan); background: var(--cyan-soft); }
.floor-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.floor-n { font-size: 22px; font-weight: 700; }
.floor-btn[aria-pressed="true"] .floor-n { color: var(--cyan); }
.floor-sol { font-size: 12px; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field .label { margin-bottom: 2px; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.readout { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.big-line { font-size: 18px; }
.read-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.read-num { background: var(--bg-2); border-radius: var(--r-sm); padding: 12px; display: grid; gap: 4px; }
.read-num b { font-size: 18px; }
.drop { width: 132px; height: 132px; border-radius: 22px; border: 2px dashed var(--line-2); background: var(--bg-2); color: var(--ink); cursor: pointer; overflow: hidden; padding: 0; display: grid; place-items: center; }
.drop.over, .drop:hover { border-color: var(--cyan); }
.drop img { width: 100%; height: 100%; object-fit: cover; }
.drop-inner { display: grid; gap: 4px; justify-items: center; padding: 10px; font-size: 13px; }
.drop-inner .muted { font-size: 11px; line-height: 1.3; }
.links summary { cursor: pointer; color: var(--cyan); font-weight: 600; font-size: 15px; }
.links[open] { display: grid; gap: 12px; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode { text-align: left; display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.mode:hover { border-color: var(--cyan); }
.mode[aria-checked="true"] { border: 2px solid var(--cyan); background: var(--cyan-soft); }
.mode b { font-size: 17px; }
.mode span { font-size: 13px; line-height: 1.4; }
.mode-more { display: grid; gap: 12px; }
.mode-more:empty { display: none; }
.pair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pair { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.pair span { font-size: 12px; }
.pair[aria-pressed="true"] { border-color: var(--cyan); background: var(--cyan-soft); }
.launch-side { position: sticky; top: calc(var(--top-h) + 18px); display: grid; gap: 14px; }
.side-card { display: grid; gap: 12px; }
.side-card h3 { font-size: 16px; margin-top: 4px; }
.side-gauge { max-width: 260px; margin: 0 auto; width: 100%; }
.costs { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 0; font-size: 14px; }
.costs dt { color: var(--muted); }
.costs dd { margin: 0; text-align: right; }
.costs .total { border-top: 1px solid var(--line-2); padding-top: 10px; color: var(--ink); font-weight: 700; font-size: 16px; }
.todo { color: var(--amber); font-size: 14px; min-height: 0; }
.todo:empty { display: none; }
.notes { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.notes li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--muted); font-size: 14px; }
.notes .icon { color: var(--cyan); margin-top: 3px; }

/* the modal and the flow */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(2, 3, 8, 0.72); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity 0.2s; }
.modal-back.in { opacity: 1; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: 24px; transform: translateY(10px); transition: transform 0.2s var(--ease); }
.modal-back.in .modal { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { font-size: 24px; }
.modal-x { border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.modal-body { display: grid; gap: 14px; }
.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 12px; color: var(--muted); }
.flow-steps li { display: grid; gap: 6px; justify-items: center; text-align: center; }
.flow-mark { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 600 12px var(--mono); }
.flow-steps .done .flow-mark { background: var(--cyan); color: var(--on-cyan); border-color: var(--cyan); }
.flow-steps .now { color: var(--ink); }
.flow-steps .now .flow-mark { border: 2px solid var(--cyan); color: var(--cyan); animation: pulse 2s infinite; }
.flow-steps .bad .flow-mark { border-color: var(--hot); color: var(--hot); }
.pay-box { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 14px; align-items: center; background: var(--bg-2); border-radius: var(--r); padding: 16px; }
.pay-to { word-break: break-all; font-size: 13px; }
.received { color: var(--cyan); }
.wallets { display: grid; gap: 8px; }
.wallet-pick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; text-align: left; }
.wallet-pick:hover { border-color: var(--cyan); }
.wallet-pick img { border-radius: 8px; }
.no-wallet { display: grid; gap: 12px; }
.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--ink); color: var(--on-cyan); padding: 10px 18px; border-radius: var(--pill); font-weight: 600; font-size: 14px; animation: enter 0.2s var(--ease); }
.toast.out { opacity: 0; transition: opacity 0.3s; }

/* ---------------------------------------------------------------- how page */
.how-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.board { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 10px; }
.board-title { text-align: center; color: var(--cyan); letter-spacing: 0.3em; font-size: 12px; padding: 10px 0 12px; }
.board-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 12px; border-top: 1px solid var(--line); align-items: start; }
.board-floor { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--cyan); color: var(--cyan); display: grid; place-items: center; font-weight: 700; }
.board-row.ground .board-floor { border-color: var(--hot); color: var(--hot); }
.board-row.basement .board-floor { border-color: var(--amber); color: var(--amber); }
.board-what { display: grid; gap: 2px; }
.board-what span { color: var(--muted); font-size: 14px; }
.how-gauge { max-width: 380px; width: 100%; margin: 0 auto; display: grid; gap: 10px; }
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.detail p { color: var(--muted); margin-top: 10px; }
.risks { max-width: 820px; display: grid; gap: 12px; padding-left: 20px; color: var(--ink-2); }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1100px) {
  .hide-md { display: none; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-pick { max-width: 560px; }
  .vault4 { grid-template-columns: repeat(2, 1fr); }
  .dir-row { grid-template-columns: 84px 56px minmax(0, 1.6fr) minmax(0, 1fr) 84px; }
  .dir-age { display: none; }
  .coin-stats { grid-template-columns: repeat(3, 1fr); }
  .coin-grid, .launch-grid { grid-template-columns: 1fr; }
  .launch-side { position: static; }
  .plate-head { grid-template-columns: 1fr 260px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .top-cta { display: none; }
  .hop-card { grid-template-columns: 1fr; padding: 18px; }
  .versus { grid-template-columns: 1fr; }
  .vs-mid { margin: -6px auto; }
  .steps3 { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .how-top { grid-template-columns: 1fr; }
  .plate-head { grid-template-columns: 1fr; }
  .plate-gauge { max-width: 340px; }
  .band-in { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --top-h: 60px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .hide-sm { display: none; }
  .brand-word { font-size: 22px; }
  .tabbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; background: rgba(13, 18, 32, 0.94); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 6px; backdrop-filter: blur(10px); }
  .tabbar a { flex: 1 1 auto; text-align: center; padding: 10px 8px; border-radius: var(--pill); text-decoration: none; font-size: 13.5px; white-space: nowrap; color: var(--ink-2); }
  .tabbar a[aria-current] { background: var(--cyan); color: var(--on-cyan); font-weight: 700; }
  .hero { padding: 40px 0 56px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hstat b { font-size: 22px; }
  .hero-mark { width: 76px; height: 76px; right: 10px; top: -4px; }
  .picker { padding: 16px; }
  .pk-head { padding-right: 80px; }
  .pk-body { grid-template-columns: 96px 1fr; gap: 10px; }
  .pk-tower { height: 250px; grid-template-columns: 1fr 40px; }
  .pk-thumb { width: 44px; height: 44px; }
  .pk-thumb svg { width: 34px; height: 34px; }
  .pk-big { font-size: 38px; }
  .pk-btn { width: 50px; height: 50px; }
  .section { padding-top: 64px; }
  .vault4 { grid-template-columns: 1fr; }
  .dir-row { grid-template-columns: 74px minmax(0, 1fr) 74px; gap: 10px; padding: 10px 12px; }
  .dir-gauge, .dir-vault { display: none; }
  .dir-head .dir-gauge, .dir-head .dir-vault { display: none; }
  .dir-now { text-align: right; }
  .log-row { grid-template-columns: 60px minmax(0, 1fr) 56px; }
  .log-row .log-sym, .log-row .tx { display: none; }
  .coin-main .log-row { grid-template-columns: 60px minmax(0, 1fr) 56px; }
  .coin-stats { grid-template-columns: repeat(2, 1fr); }
  .floor-btns { grid-template-columns: repeat(2, 1fr); }
  .modes { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .read-nums { grid-template-columns: 1fr; }
  .flow-steps { font-size: 11px; }
  #foot { margin-top: 56px; }
}
