/* Saltix. Measured against the reference: 14px/1.6 body, 6px panels, 12px stat shells,
   .5s ease slider, .7s spring, 4-step button transitions, 1180px page, 4vw gutter. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Fallback"; src: local(Arial); ascent-override: 101.32%; descent-override: 27.18%; line-gap-override: 0; size-adjust: 101.17%; }
@font-face { font-family: "IBM Plex Mono Fallback"; src: local(Arial); ascent-override: 76.16%; descent-override: 20.43%; line-gap-override: 0; size-adjust: 134.59%; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 14px/1.6 var(--sans); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, dt { margin: 0; }
:focus-visible { outline: 2px solid var(--ok); outline-offset: 2px; }
code { font-family: var(--mono); }
[hidden] { display: none !important; }

/* ---- progress + background ---- */
.progress-top { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 90; background: transparent; }
.progress-top i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--teal), var(--pink)); }
.mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mesh .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.mesh .b1 { width: 52vw; height: 52vw; left: -14vw; top: -12vw; background: var(--glow-teal); animation: drift1 26s ease-in-out infinite alternate; }
.mesh .b2 { width: 44vw; height: 44vw; right: -10vw; top: 18vh; background: var(--glow-pink); animation: drift2 32s ease-in-out infinite alternate; }
.mesh .b3 { width: 40vw; height: 40vw; left: 30vw; bottom: -20vw; background: color-mix(in srgb, var(--teal) 24%, transparent); animation: drift3 38s ease-in-out infinite alternate; }
.mesh .floor {
  position: absolute; left: -30%; right: -30%; bottom: -8%; height: 62%;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 72px 100%;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(transparent, var(--bg) 60%); mask-image: linear-gradient(transparent, var(--bg) 60%);
  opacity: 0.7;
}
@keyframes drift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-9vw, -4vh, 0) scale(1.18); } }
@keyframes drift3 { to { transform: translate3d(-6vw, -8vh, 0) scale(1.1); } }

/* ---- header ---- */
.top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; border-bottom: 1px solid transparent; transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s; }
.top.stuck { background: color-mix(in srgb, var(--bg) 82%, transparent); border-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-in { max-width: none; margin: 0; padding: 10px var(--gut); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; object-fit: contain; transition: transform 0.7s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
.brand-word { font: 600 17px/1 var(--mono); letter-spacing: -0.01em; text-transform: lowercase; }
.tabs { position: relative; display: flex; gap: 2px; padding: 5px; border: 1px solid var(--line); background: var(--bg2); border-radius: var(--r-lg); justify-self: center; }
.tabs a { position: relative; z-index: 1; padding: 8px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg2); transition: color 0.25s; }
.tabs a:hover { color: var(--fg); }
.tabs a.on { color: var(--bg); }
.tab-ink { position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); width: 0; background: var(--fg); border-radius: 8px; opacity: 0; transition: transform 0.5s var(--ease), width 0.5s var(--ease), opacity 0.3s; }
.top-r { justify-self: end; display: flex; align-items: center; gap: 10px; }
.x-link, .menu-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line2); border-radius: 3px; color: var(--fg3); flex-shrink: 0; transition: color 0.15s, border-color 0.15s; }
.x-link:hover, .menu-btn:hover { color: var(--fg); border-color: var(--line3); }
.menu-btn { display: none; border-radius: 8px; }

/* ---- CA slot ---- */
.ca { position: relative; z-index: 40; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: var(--w); margin: 0 auto; padding: 78px var(--gut) 10px; }
.ca-label { font: 600 12px/1 var(--mono); letter-spacing: 0.14em; color: var(--bg); background: var(--fg); border-radius: 4px; padding: 7px 9px; }
.ca-val { flex: 1 1 280px; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; padding: 8px 16px; border: 1px solid var(--line2); border-radius: var(--r-lg); background: color-mix(in srgb, var(--bg1) 86%, transparent); font-family: var(--mono); transition: border-color 0.25s, background 0.25s; }
.ca-copy:hover { border-color: var(--line3); background: var(--bg2); }
.ca-addr { font: 500 clamp(15px, 2.1vw, 26px)/1.25 var(--mono); letter-spacing: -0.01em; overflow-wrap: anywhere; word-break: break-all; user-select: all; }
.ca-hint { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); }
.ca-copy.done { border-color: var(--ok); }
.ca-copy.done .ca-hint { color: var(--ok); }
.ca-pending em, .chip em { font-style: normal; }
.ca-pending { font-size: clamp(15px, 2.1vw, 26px); color: var(--fg4); border-style: dashed; }
.ca-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 981px) { .ca { position: sticky; top: 0; padding-top: 72px; margin-top: 0; } }

/* ---- ticker ---- */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bg1) 70%, transparent); height: 40px; -webkit-mask-image: linear-gradient(90deg, transparent, var(--bg) 6%, var(--bg) 94%, transparent); mask-image: linear-gradient(90deg, transparent, var(--bg) 6%, var(--bg) 94%, transparent); }
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: scroll 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; font: 500 12px/1 var(--mono); white-space: nowrap; }
.tick .tile { width: 18px; height: 18px; font-size: 10px; }
.tick .up { color: var(--up); } .tick .down { color: var(--down); }
.tick em { font-style: normal; color: var(--fg4); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---- layout ---- */
.page { max-width: var(--w); margin: 0 auto; padding: 8px var(--gut) 40px; }
.sec { padding-top: 72px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.page-head-text { flex: 1 1 300px; min-width: 0; }
.page-head h2 { font: 500 clamp(24px, 2.6vw, 32px)/1.1 var(--sans); letter-spacing: -0.02em; }
.sub { color: var(--fg3); max-width: 560px; margin-top: 8px; line-height: 1.55; }
.status-pill { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line2); border-radius: var(--r); padding: 8px 12px; min-height: 44px; font: 400 11.5px/1 var(--mono); color: var(--fg2); white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg4); }
.status-dot.on { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 20%, transparent); }
.status-dot.pulse { animation: pulse 1.8s var(--ease) infinite; }
.status-pill[data-s="retrying"] .status-dot, .status-pill[data-s="error"] .status-dot { background: var(--down); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pink) 18%, transparent); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }

/* ---- chips ---- */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 26px; padding: 3px 10px; border: 1px solid var(--line2); border-radius: 999px; font: 400 10.5px/1 var(--mono); color: var(--fg3); white-space: nowrap; }
.chip b { font-weight: 500; color: var(--fg2); }
.chip.inert { border-style: dashed; }

/* ---- spotlight ---- */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--glow-teal), transparent 70%); }
.spot:hover::before { opacity: 1; }

/* ---- panels / rows / stats (match: ref .panel .row .stats) ---- */
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg1); overflow: hidden; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font: 400 12px/1.4 var(--mono); }
.dim { color: var(--fg4); font-size: 12px; }
.row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; transition: background 0.25s, box-shadow 0.25s; }
.row:first-child { border-top: 0; }
.row:hover { background: color-mix(in srgb, var(--pink) 4%, transparent); box-shadow: inset 1px 0 0 var(--fg3); }
.row .n { font: 11px var(--mono); color: var(--fg4); }
.row .who { font-family: var(--mono); font-size: 12.5px; }
.row .v { font: 13px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.row a.v { display: inline-flex; align-items: center; justify-content: flex-end; min-height: 44px; }
.row a.v:hover { color: var(--ok); }
.empty { padding: 18px 16px; color: var(--fg3); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; min-width: 0; border-radius: inherit; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font: 500 clamp(18px, 1.8vw, 22px)/1.1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; padding-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: linear-gradient(var(--fg3), var(--fg3)) 0 100% / 0 1px no-repeat; }
.stat span { font: 11px/1.4 var(--mono); color: var(--fg4); }
@keyframes flashline { 0% { background-size: 100% 1px; } 100% { background-size: 100% 1px; opacity: 1; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; background: var(--fg); color: var(--bg); font: 500 14px/1 var(--mono); white-space: nowrap; position: relative; overflow: hidden; transition: background-color 0.24s steps(3, end), color 0.24s steps(3, end), box-shadow 0.35s; }
.btn:hover { box-shadow: 0 10px 40px -12px var(--glow-pink); }
.btn[disabled] { opacity: 0.38; pointer-events: none; }

/* ---- HUD (match: ref .dash.hud absolute columns, clamp(280px,22vw,320px)) ---- */
.hud { position: relative; }
.hud-stage { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.scope-box { position: relative; order: 2; height: clamp(320px, 62vw, 460px); border: 1px solid var(--line2); border-radius: 2px; background: color-mix(in srgb, var(--bg1) 70%, transparent); overflow: hidden; }
.scope-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope-box .px { position: absolute; inset: 0; display: grid; place-items: center; will-change: transform; }
.hero-logo { width: min(62%, 380px); height: auto; opacity: 0.12; filter: saturate(0.9); }
.scope-cap { position: absolute; inset: auto 0 14px 0; text-align: center; display: grid; gap: 4px; pointer-events: none; }
.scope-stage { font: 500 clamp(18px, 3vw, 26px)/1 var(--mono); letter-spacing: -0.02em; }
.scope-sub { font: 11px/1.4 var(--mono); color: var(--fg4); }
.hud-left { order: 1; display: grid; gap: 14px; align-content: start; }
.hud-right { order: 3; display: grid; gap: 14px; align-content: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hud-right > .p-tape { grid-column: 1 / -1; }
.hud-bottom { order: 4; }
.dash-intro { display: grid; gap: 8px; margin: 8px 0 0; }
.dash-intro h1 { font: 500 clamp(24px, 2.6vw, 32px)/1.1 var(--sans); letter-spacing: -0.02em; }
.dash-intro p { color: var(--fg3); max-width: 560px; font-size: 14px; line-height: 1.55; }
.dpanel { border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--bg1) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 18px 40px -24px var(--scrim); min-width: 0; }
.dpanel-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 14px; border-bottom: 1px solid var(--line); font: 400 12px/1.4 var(--mono); letter-spacing: 0.04em; min-height: 40px; }
.dpanel-body { padding: 10px 14px; }
.big-slot { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.big-slot b { font: 500 32px/1 var(--mono); letter-spacing: -0.03em; color: var(--fg3); }
.big-slot span { font: 11px var(--mono); color: var(--fg4); }
.note { color: var(--fg3); font-size: 12.5px; line-height: 1.5; margin-bottom: 10px; }
.tname-lg { font: 500 18px/1.2 var(--mono); margin-bottom: 8px; }
.readout .ro { display: flex; justify-content: space-between; padding: 3px 0; font: 12px var(--mono); }
.readout dt { color: var(--fg4); } .readout dd { color: var(--fg3); }
.mini-tabs { display: flex; gap: 2px; }
.mini-tabs button { min-height: 44px; min-width: 44px; padding: 0 9px; border-radius: 4px; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg4); transition: color 0.2s steps(2, end), background 0.2s steps(2, end); }
.mini-tabs button.on { color: var(--ok); background: color-mix(in srgb, var(--teal) 10%, transparent); }
.p-tape .dpanel-body { padding: 2px 14px; min-height: 96px; }
.grid-note { padding: 8px 14px 4px; font-size: 12.5px; color: var(--fg2); min-height: 40px; }
.stage-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stage-tab { min-height: 44px; padding: 8px 4px; border-left: 1px solid var(--line); text-align: center; font: 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--fg4); transition: color 0.2s steps(2, end), background 0.2s steps(2, end); overflow: hidden; white-space: nowrap; }
.stage-tab:first-child { border-left: 0; }
.stage-tab b { font-weight: 400; display: block; }
.stage-tab[aria-selected="true"] { color: var(--ok); background: color-mix(in srgb, var(--teal) 6%, transparent); }
.scope-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line2); }
.scope-strip > div { padding: 7px 14px; display: grid; gap: 2px; border-left: 1px solid var(--line); min-width: 0; }
.scope-strip > div:first-child { border-left: 0; }
.scope-strip span { font: 10.5px var(--mono); color: var(--fg4); }
.scope-strip b { font: 500 14px var(--mono); color: var(--fg3); }
.chain-line { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); font: 11.5px var(--mono); color: var(--fg3); }
.chain-line b { margin-left: auto; font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.chain-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg4); }
.chain-line .dot.on { background: var(--ok); }

@media (min-width: 1100px) {
  .hud-stage { --hud-x: 0px; --hud-top: 12px; --hud-bottom: 14px; --hud-col: clamp(280px, 22vw, 320px); display: block; position: relative; height: max(700px, calc(100svh - 150px)); }
  .scope-box { position: absolute; inset: 0; height: auto; border: 0; background: transparent; }
  .hud-left, .hud-right { position: absolute; top: var(--hud-top); bottom: var(--hud-bottom); width: var(--hud-col); display: flex; flex-direction: column; gap: 12px; min-height: 0; z-index: 2; }
  .hud-left { left: 0; overflow-y: auto; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line3) var(--bg1); overscroll-behavior-y: contain; }
  .hud-right { right: 0; }
  .hud-left > *, .hud-right > * { flex: none; }
  .hud-right > .p-tape { flex: 1 1 0; min-height: 110px; display: flex; flex-direction: column; }
  .p-tape .dpanel-body { flex: 1 1 0; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(var(--bg) calc(100% - 44px), transparent); mask-image: linear-gradient(var(--bg) calc(100% - 44px), transparent); }
  .hud-bottom { position: absolute; bottom: var(--hud-bottom); left: calc(var(--hud-col) + 20px); right: calc(var(--hud-col) + 20px); display: flex; justify-content: center; pointer-events: none; z-index: 2; }
  .hud-bottom > * { pointer-events: auto; width: min(100%, 680px); }
  .hud-right { grid-template-columns: none; }
  .scope-cap { inset: auto 0 auto 0; top: 42%; transform: translateY(-50%); }
  .scope-box .px { inset: 0 0 16% 0; }
}

/* ---- market ---- */
.mkt .row { grid-template-columns: 28px minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)) 44px; }
.mhead { color: var(--fg4); font: 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; background: color-mix(in srgb, var(--bg) 40%, transparent); }
.mhead:hover { background: none; box-shadow: none; }
.mrow { animation: rowin 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rowin { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tname { display: grid; gap: 1px; min-width: 0; }
.tname b { font: 500 13px/1.3 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tname small { font: 11px var(--mono); color: var(--fg4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile { position: relative; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; font: 600 13px/1 var(--mono); text-transform: uppercase; color: var(--bg); background: var(--teal); }
.tile.v1 { background: var(--pink); } .tile.v2 { background: color-mix(in srgb, var(--teal) 55%, var(--pink)); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bg2); opacity: 0; transition: opacity 0.5s var(--ease); }
.tile img.ok { opacity: 1; }
.c { font: 13px var(--mono); text-align: right; font-variant-numeric: tabular-nums; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c .num { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; }
.c.up, .up { color: var(--up); } .c.down, .down { color: var(--down); }
.num.flash-up { animation: flashup 0.9s var(--ease); } .num.flash-down { animation: flashdown 0.9s var(--ease); }
@keyframes flashup { 0% { background-color: color-mix(in srgb, var(--teal) 34%, transparent); } 100% { background-color: transparent; } }
@keyframes flashdown { 0% { background-color: color-mix(in srgb, var(--pink) 30%, transparent); } 100% { background-color: transparent; } }
.copy { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 8px; color: var(--fg3); justify-self: end; transition: color 0.2s, background 0.2s; }
.copy:hover { color: var(--fg); background: var(--bg3); }
.copy.done { color: var(--ok); }
.sk-line { display: block; height: 10px; border-radius: 3px; background: var(--bg3); width: 70%; margin-left: auto; position: relative; overflow: hidden; }
.sk-line.w60 { width: 60%; margin-left: 0; } .sk-line.w30 { width: 30%; margin-left: 0; margin-top: 6px; }
.tile.sk { background: var(--bg3); }
.sk-line::after, .tile.sk::after, .sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--pink) 10%, transparent), transparent); animation: shimmer 1.4s linear infinite; }
.tick.sk .sk-line { width: 120px; margin: 0; }
@keyframes shimmer { to { transform: translateX(100%); } }
.m-error { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--down); font: 12px var(--mono); }
.dash-v { color: var(--fg4); }

/* ---- flow ---- */
.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stage { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg1); transition: border-color 0.3s steps(4, end), background-color 0.3s steps(4, end); }
.stage h3 { font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg3); }
.stage-value { font: 500 28px/1.1 var(--mono); letter-spacing: -0.02em; }
.stage-note { color: var(--fg2); font-size: 13px; line-height: 1.55; }
.stage .progress { height: 1px; background: var(--line2); margin: 6px 0 2px; position: relative; }
.stage .progress i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--fg3); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.9s var(--ease); }
.stage.live { border-color: var(--ok); background: color-mix(in srgb, var(--teal) 5%, var(--bg1)); }
.stage.live .progress i { transform: scaleX(1); }

/* ---- footer / toast ---- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-in { max-width: var(--w); margin: 0 auto; padding: 20px var(--gut); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--mono); }
.foot-note { color: var(--fg4); font-size: 12.5px; flex: 1 1 240px; }
.foot-soc { display: flex; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 12px) scale(0.96); opacity: 0; pointer-events: none; padding: 10px 16px; border: 1px solid var(--line3); border-radius: 8px; background: var(--bg2); font: 12px var(--mono); transition: opacity 0.3s var(--ease), transform 0.5s var(--spring); z-index: 80; }
.toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---- reveal (spring driven; css only sets the starting pose) ---- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .top-in { grid-template-columns: 1fr auto; }
  .menu-btn { display: inline-grid; border-radius: 3px; }
  .tabs { position: fixed; top: 64px; left: 12px; right: 12px; flex-direction: column; gap: 2px; padding: 10px; border-color: var(--line2); background: color-mix(in srgb, var(--bg1) 97%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: var(--r-lg); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: all 0.35s var(--ease); }
  .tabs.open { opacity: 1; pointer-events: auto; transform: none; }
  .tabs a { min-height: 44px; padding: 12px 14px; font-size: 14px; }
  .tabs a.on { color: var(--fg); background: var(--bg3); }
  .tab-ink { display: none; }
  .top-r { order: 2; }
  .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ca { padding-top: 72px; }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hud-right { grid-template-columns: minmax(0, 1fr); }
  .stage-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage-tab:nth-child(4) { border-left: 0; }
  .stage-tab:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .scope-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-strip > div:nth-child(3) { border-left: 0; }
  .scope-strip > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  /* market rows become two-line cards */
  .mkt .mhead { display: none; }
  .mkt .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tok act" "p chg" "v l"; row-gap: 8px; padding: 12px 16px; }
  .mkt .row .n { display: none; }
  .mkt .row .tok { grid-area: tok; }
  .mkt .row .c-act { grid-area: act; }
  .mkt .row .c-price { grid-area: p; text-align: left; }
  .mkt .row .c-chg { grid-area: chg; }
  .mkt .row .c-vol { grid-area: v; text-align: left; }
  .mkt .row .c-liq { grid-area: l; }
  .mkt .row .c::before { content: attr(data-k); display: block; font: 10px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg4); }
  .sk-line { margin-left: 0; }
}
@media (max-width: 560px) { .stage-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .top-in { gap: 12px; } .top-r { gap: 7px; } .brand-word { font-size: 15px; } .ca { gap: 10px; } }
@media (max-width: 360px) { .top-in { padding-inline: 12px; gap: 7px; } .top-r { gap: 5px; } .brand-mark { width: 28px; height: 28px; } .brand-word { font-size: 14px; } }

/* ---- reduced motion: instant everywhere, zero motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .mesh .blob { transform: none !important; }
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-track { transform: none !important; }
  .sk-line::after, .tile.sk::after, .sk::after { display: none; }
}
