/* Layout, radii, density and timing follow measurements taken from the reference stylesheet:
   rail 76px, top bar 78px, grid 88px, card radius 18px / 12px, hover transition 150ms,
   reveal 500ms, marquee 50s linear, float 6s ease-in-out, fan easing cubic-bezier(.4,0,.2,1).
   No colour literals in this file: every colour comes from tokens.css. */
:root {
  --bg: var(--ink);
  --card: color-mix(in srgb, var(--surface) 55%, var(--ink));
  --card-2: color-mix(in srgb, var(--surface) 80%, var(--ink));
  --card-3: var(--surface);
  --border: rgba(var(--snow-rgb), 0.09);
  --border-2: rgba(var(--snow-rgb), 0.14);
  --text: color-mix(in srgb, var(--snow) 88%, var(--ink));
  --text-strong: var(--snow);
  --muted: var(--mute);
  --dim: var(--line);
  --radius: 18px;
  --radius-sm: 12px;
  --side: 76px;
  --top: 78px;
  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--text-strong); margin: 0; letter-spacing: -0.02em; font-weight: 600; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { line-height: 1.6; margin: 0; }
code, .mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 0.82rem; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--color-mint); }
.down { color: var(--muted); }
.r { text-align: right; }
.kicker { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; color: var(--muted); }
[hidden] { display: none !important; }

/* reveal: held hidden until the spring runs; released if scripts never load */
html.js [data-reveal]:not(.in) { opacity: 0; }
html.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

/* progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--mute), var(--snow)); }

/* shell */
.app {
  min-height: 100vh;
  background-image: linear-gradient(rgba(var(--snow-rgb), 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--snow-rgb), 0.022) 1px, transparent 1px);
  background-size: 88px 88px;
  background-attachment: fixed;
}
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); border-right: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; align-items: center; padding: 22px 0 18px; z-index: 30; }
.side-logo { margin-bottom: 26px; display: grid; place-items: center; width: 46px; height: 46px; }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.side-item { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--muted); transition: background 0.15s, color 0.15s; }
.side-item:hover { color: var(--text-strong); background: var(--card-2); }
.side-item.on { color: var(--text-strong); background: var(--card-3); }
.side-item::after { content: attr(data-tip); position: absolute; left: 58px; white-space: nowrap; background: var(--card-3); border: 1px solid var(--border); padding: 5px 10px; border-radius: 8px; font-size: 0.78rem; color: var(--text-strong); opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.side-item:hover::after { opacity: 1; }

.topbar { position: fixed; top: 0; left: var(--side); right: 0; height: var(--top); z-index: 20; display: flex; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--border); background: rgba(var(--ink-rgb), 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top-logo { display: none; width: 44px; height: 44px; place-items: center; }
.brandline { font-weight: 600; letter-spacing: 0.02em; color: var(--text-strong); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.social { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text-strong); transition: border-color 0.15s, background 0.15s, transform 0.1s; }
a.social:hover { border-color: var(--border-2); background: var(--card-2); }
a.social:active { transform: translateY(1px); }
.social.inert { color: var(--dim); cursor: not-allowed; }

.main { margin-left: var(--side); padding: calc(var(--top) + 26px) 30px 30px; }
.main > * { max-width: 1540px; margin-left: auto; margin-right: auto; width: 100%; }
.page { display: flex; flex-direction: column; gap: 40px; }
.sect { display: flex; flex-direction: column; }

.card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; min-width: 0; }

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

/* pills */
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 500; padding: 4px 11px; border-radius: 999px; background: var(--card-3); border: 1px solid var(--border); color: var(--text); }
.pill.ghost { background: transparent; color: var(--muted); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.pill[data-state="live"] .dot { background: var(--color-mint); animation: livePulse 1.6s ease-out infinite; }
.pill[data-state="loading"] .dot { background: var(--mute); animation: dotBlink 1.1s ease-in-out infinite; }
.pill[data-state="stale"] .dot, .pill[data-state="error"] .dot { background: var(--snow); }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(var(--mint-rgb), 0.55); } 100% { box-shadow: 0 0 0 9px rgba(var(--mint-rgb), 0); } }
@keyframes dotBlink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* contract address slot */
.ca { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; }
.ca-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ca-btn { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 72px; padding: 18px 20px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--card-2); text-align: left; transition: border-color 0.15s, background 0.15s; position: relative; }
button.ca-btn:hover { border-color: var(--mute); }
.ca-btn.copied { border-color: var(--color-mint); }
.ca-btn.inert { cursor: not-allowed; }
.ca-val { font-family: var(--mono); font-size: clamp(1.05rem, 0.7rem + 1.7vw, 1.9rem); line-height: 1.35; color: var(--text-strong); overflow-wrap: anywhere; word-break: break-all; min-width: 0; }
.ca-btn.inert .ca-val { color: var(--dim); }
.ca-act { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--muted); font-size: 0.86rem; min-height: 44px; }
.ca-btn.copied .ca-act { color: var(--color-mint); }
.ca-hint { padding: 0 2px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 20px; padding: 56px 48px 48px; min-height: 560px; overflow: hidden; background: radial-gradient(1200px 500px at 70% 30%, rgba(var(--snow-rgb), 0.05), transparent 60%), var(--card); }
.mesh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mesh .blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.mesh .b1 { width: 520px; height: 520px; left: -140px; top: -160px; background: rgba(var(--snow-rgb), 0.07); animation: drift 18s ease-in-out infinite; }
.mesh .b2 { width: 420px; height: 420px; right: -80px; bottom: -140px; background: rgba(var(--mint-rgb), 0.07); animation: drift 22s ease-in-out -6s infinite reverse; }
.mesh .b3 { width: 360px; height: 360px; left: 38%; top: 30%; background: rgba(var(--snow-rgb), 0.04); animation: drift 26s ease-in-out -12s infinite; }
.mesh-img { position: absolute; left: 50%; top: 50%; width: 120%; max-width: none; height: auto; transform: translate(-50%, -50%); opacity: 0.35; mix-blend-mode: screen; }
@keyframes drift { 0%, 100% { translate: 0 0; } 33% { translate: 40px 30px; } 66% { translate: -30px 50px; } }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; max-width: 640px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-strong); }
.wordmark.spaced { letter-spacing: 0.38em; font-size: 0.74rem; color: var(--muted); padding: 7px 14px 7px 18px; border: 1px solid var(--border-2); border-radius: 999px; background: rgba(var(--snow-rgb), 0.03); }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: 0.98; letter-spacing: -0.045em; margin: 30px 0 0; }
.hero h1 .dim { background: linear-gradient(180deg, var(--snow) 20%, var(--mute)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.hero hr { border: 0; border-top: 1px solid var(--border-2); width: 40px; margin: 28px 0; }
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.8; max-width: 34rem; text-wrap: balance; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-mark { position: relative; justify-self: center; width: min(100%, 440px); height: auto; aspect-ratio: 1; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 30px 60px rgba(var(--ink-rgb), 0.7)); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
[data-depth] { will-change: transform; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text-strong); font-weight: 500; white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn:hover { border-color: var(--border-2); background: var(--card-2); }
.btn:active { transform: translateY(1px); }
.btn.white { background: var(--snow); color: var(--ink); border-color: var(--snow); }
.btn.white:hover { background: var(--text-strong); }
.btn.ghost { background: transparent; }
.btn.inert { color: var(--dim); cursor: not-allowed; }
.btn svg { flex: none; }

/* stats */
.stat-grid { display: grid; gap: 10px; }
.stat-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; min-width: 0; }
.stat-label { font-size: 0.76rem; color: var(--muted); }
.stat-value { font-size: 1.2rem; font-weight: 600; color: var(--text-strong); margin-top: 4px; overflow-wrap: anywhere; }
.stat-value.dimv { color: var(--dim); }
.stat-sub { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }

/* sections */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.sect-sub { margin: -6px 0 14px; max-width: 640px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: 0.88rem; transition: background 0.15s, color 0.15s; }
.chip:hover { color: var(--text-strong); }
.chip.on { background: var(--card-3); color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--border-2); }

/* board */
.board-card { padding: 8px 0 0; overflow: hidden; }
.board-head, .mrow { display: grid; grid-template-columns: 44px minmax(0, 2.4fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 52px; align-items: center; column-gap: 12px; padding: 0 16px; }
.board-head { min-height: 40px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); border-bottom: 1px solid var(--border); }
.board { list-style: none; margin: 0; padding: 0; }
.mrow { position: relative; isolation: isolate; min-height: 68px; border-bottom: 1px solid var(--border); border-left: 2px solid transparent; transition: background 0.15s; }
.mrow:last-child { border-bottom: 0; }
.mrow::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0; transition: opacity 0.25s; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--snow-rgb), 0.07), transparent 65%); }
.mrow:hover::before { opacity: 1; }
.mrow.enter { animation: rowIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mrow.own { border-left: 2px solid var(--color-mint); animation: ownPulse 2s ease-in-out infinite; }
@keyframes ownPulse { 0%, 100% { background: rgba(var(--mint-rgb), 0.02); } 50% { background: rgba(var(--mint-rgb), 0.08); } }
.c-rank { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.c-tok { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; min-height: 44px; }
a.c-tok:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.tok-txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.nm { font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sym { font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile { width: 36px; height: 36px; flex: none; border-radius: 10px; overflow: hidden; background: var(--card-3); display: grid; place-items: center; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-letter { background: linear-gradient(135deg, var(--surface), var(--card)); color: var(--muted); font-family: var(--mono); font-weight: 600; }
.own-tile { background: var(--ink); }
.own-tile img { object-fit: contain; padding: 3px; }
.c-price, .c-chg, .c-vol, .c-liq { text-align: right; font-size: 0.92rem; color: var(--text); white-space: nowrap; }
.c-vol, .c-liq { color: var(--text); }
.c-copy { display: flex; justify-content: flex-end; }
.copy-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); transition: color 0.15s, background 0.15s, border-color 0.15s; }
.copy-btn:hover { color: var(--text-strong); background: var(--card-3); }
.copy-btn.copied { color: var(--color-mint); border-color: var(--color-mint); }
.flash-up { animation: flashUp 0.9s ease-out; }
.flash-down { animation: flashDown 0.9s ease-out; }
@keyframes flashUp { 0% { background: rgba(var(--mint-rgb), 0.28); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(var(--snow-rgb), 0.18); } 100% { background: transparent; } }

/* skeleton */
.bar { display: inline-block; height: 12px; width: 70%; border-radius: 6px; background: linear-gradient(90deg, rgba(var(--snow-rgb), 0.05), rgba(var(--snow-rgb), 0.12), rgba(var(--snow-rgb), 0.05)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; vertical-align: middle; }
.bar.short { width: 40%; height: 9px; }
.skel .tile { background: rgba(var(--snow-rgb), 0.06); }
@keyframes shimmer { to { background-position: -200% 0; } }
.note { font-size: 0.86rem; border-radius: 10px; padding: 10px 14px; background: var(--card-2); border: 1px solid var(--border); color: var(--muted); margin: 10px 16px; }
.note.error { color: var(--text-strong); border-color: var(--border-2); }

/* marquee */
.marquee { margin-top: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 6%, var(--ink) 94%, transparent); mask-image: linear-gradient(90deg, transparent, var(--ink) 6%, var(--ink) 94%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee.ready .marquee-track { animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.trend { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px 16px 8px 8px; white-space: nowrap; margin-right: 12px; min-height: 64px; }
.trend .tile { width: 48px; height: 48px; border-radius: 10px; }
.trend-meta { display: flex; flex-direction: column; gap: 2px; }
.trend-meta .sym { font-size: 0.78rem; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile.card, article.tile { display: flex; flex-direction: column; gap: 12px; min-height: 230px; transition: border-color 0.15s, transform 0.15s; }
.tile.card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.t-how { grid-column: span 2; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.thumb { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--card-3); animation: float 6s ease-in-out var(--d, 0s) infinite; }
.thumb.skel { background: linear-gradient(90deg, rgba(var(--snow-rgb), 0.05), rgba(var(--snow-rgb), 0.12), rgba(var(--snow-rgb), 0.05)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.thumb .tile { width: 100%; height: 100%; border-radius: 14px; font-size: 1.6rem; }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; min-height: 44px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.step { display: flex; gap: 12px; background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.step-n { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--card-3); border: 1px solid var(--border-2); display: grid; place-items: center; font-size: 0.72rem; font-family: var(--mono); }
.step-t { font-weight: 600; color: var(--text-strong); margin-bottom: 4px; }

/* route flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow-step { display: flex; align-items: stretch; min-width: 0; }
.flow-step .card { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.flow-arrow { display: grid; place-items: center; color: var(--dim); width: 22px; flex: none; }

/* notes */
.doc-card { padding: 8px 22px; }
.doc-rows { margin: 0; display: flex; flex-direction: column; }
.doc-rows > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.doc-rows > div:first-child { border-top: 0; }
.doc-rows dt { color: var(--text-strong); font-weight: 500; }
.doc-rows dd { margin: 0; color: var(--muted); line-height: 1.55; min-width: 0; }

/* footer */
.footer { margin-top: 60px; padding: 34px 4px 20px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot-brand, .foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col { font-size: 0.9rem; color: var(--muted); }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-col a:hover { color: var(--text-strong); }
.foot-title { color: var(--text-strong); font-weight: 500; margin-bottom: 4px; }
.foot-social { display: flex; gap: 8px; }

.bottombar { display: none; }

/* responsive */
@media (max-width: 1280px) {
  .stat-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
}
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding: 44px 30px 36px; min-height: 0; }
  .hero-mark { order: -1; width: min(60%, 300px); }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-how { grid-column: span 2; }
}
@media (max-width: 760px) {
  :root { --top: 64px; }
  .sidebar { display: none; }
  .topbar { left: 0; padding: 0 16px; gap: 10px; }
  .top-logo { display: grid; }
  .brandline { display: none; }
  .main { margin-left: 0; padding: calc(var(--top) + 16px) 16px 96px; }
  .page { gap: 32px; }
  .card { padding: 18px; }
  .ca { padding: 18px; }
  .ca-btn { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; }
  .hero { padding: 28px 18px 26px; }
  .hero-mark { width: min(56%, 210px); }
  .stat-grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento, .steps { grid-template-columns: 1fr; }
  .t-how { grid-column: auto; }
  .flow { grid-template-columns: 1fr; }
  .flow-step { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); width: 100%; height: 22px; }
  .doc-rows > div { grid-template-columns: 1fr; gap: 4px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
  .board-head { display: none; }
  .mrow { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 44px; grid-template-areas: "rank tok tok copy" "rank price chg chg" "rank vol liq liq"; padding: 10px 8px 10px 10px; row-gap: 4px; column-gap: 10px; }
  .c-rank { grid-area: rank; align-self: start; padding-top: 12px; }
  .c-tok { grid-area: tok; }
  .c-copy { grid-area: copy; align-self: start; }
  .c-price { grid-area: price; text-align: left; }
  .c-chg { grid-area: chg; text-align: left; }
  .c-vol { grid-area: vol; text-align: left; font-size: 0.82rem; color: var(--muted); }
  .c-liq { grid-area: liq; text-align: left; font-size: 0.82rem; color: var(--muted); }
  .c-vol::before { content: "Vol "; }
  .c-liq::before { content: attr(data-label) " "; }
  .c-liq:not([data-label])::before { content: "Liq "; }
  .bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(var(--ink-rgb), 0.94); border-top: 1px solid var(--border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .bottom-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 0.66rem; color: var(--muted); min-height: 52px; min-width: 44px; }
  .bottom-item.on { color: var(--text-strong); }
}

/* reduced motion: nothing moves */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mrow.own { animation: none; }
  [data-depth] { transform: none !important; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  html.js [data-reveal]:not(.in) { opacity: 1; }
}
