/* Kyraa — instrument-grade light theme. Seed 35861: accent hue 221 (cobalt), title offset 5vw, display face index 5. */

:root {
  --bg: #DCDFE3;           /* brushed aluminium */
  --bg-deep: #CDD2D8;
  --glass: rgba(244, 246, 249, 0.56);
  --glass-strong: rgba(250, 251, 253, 0.84);
  --glass-edge: rgba(255, 255, 255, 0.66);
  --line: rgba(20, 23, 28, 0.12);
  --line-soft: rgba(20, 23, 28, 0.07);
  --ink: #14171C;
  --mute: #59606B;
  --accent: #2457F5;       /* cobalt, hsl(221 91% 55%) */
  --accent-deep: #1B44C6;
  --accent-soft: rgba(36, 87, 245, 0.12);
  --readout: #0F1622;
  --readout-ink: #E4EAF7;
  --readout-mute: #93A1BC;
  --up: #0E8A5F;
  --down: #C8372D;

  --font-display: 'KyraaDisplay', 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-addr: 'Martian Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1480px;
  --gutter: clamp(16px, 3vw, 40px);
  --offset: 5vw;
  --r-panel: 26px;
  --r-ctl: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.42, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.intro-lock, html.menu-lock { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 70% -10%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(36,87,245,.06), transparent 60%),
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--bg);
  background-attachment: fixed;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'tnum' 0;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
code { font-family: var(--font-addr); font-size: .82em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.025em; line-height: 1.02; margin: 0; font-style: normal; }
p { margin: 0; }
.dot { color: var(--accent); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mute { color: var(--mute); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--mute); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 2000; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; }
.skip:focus { top: 16px; }

/* ---------------------------------------------------------------- canvas layers */
#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 800; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(36,87,245,.5); }

/* ---------------------------------------------------------------- header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 700; pointer-events: none; }
.top-in { max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-in > * { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 14px; padding: 6px 18px 6px 8px; border-radius: 18px; transition: background .3s, box-shadow .3s; }
.scrolled .logo { background: var(--glass-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px -18px rgba(15,22,34,.4); }
.logo-mark { width: 52px; height: 52px; }
.logo-mark path { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.logo:hover .logo-mark path { animation: draw 1.2s var(--ease); stroke: var(--accent); }
.logo-word { font-family: var(--font-display); font-weight: 750; font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
.top-actions { display: flex; align-items: center; gap: 12px; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 24px; border-radius: var(--r-ctl);
  font-weight: 600; font-size: 18px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; position: relative; isolation: isolate; overflow: hidden;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-xl { min-height: 68px; padding: 0 32px; font-size: 20px; border-radius: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -14px rgba(36,87,245,.7); }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 18px 36px -14px rgba(36,87,245,.8); }
.btn-primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--glass-strong); border-color: var(--line); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .ico { flex: none; }
.btn:hover .ico { animation: nudge .5s var(--ease); }
@keyframes nudge { 40% { transform: translateX(3px); } }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn kbd { font-family: var(--font-body); font-size: 14px; padding: 3px 8px; border-radius: 6px; border: 1px solid currentColor; opacity: .55; }
.btn-wallet { background: var(--ink); color: #fff; min-height: 56px; padding: 0 22px; }
.btn-wallet:hover { background: var(--accent); }
.btn-wallet.is-on { background: var(--glass-strong); color: var(--ink); border-color: var(--line); backdrop-filter: blur(12px); }
.btn-wallet.is-on::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(14,138,95,.15); }
.icon-btn { width: 56px; height: 56px; display: inline-grid; place-items: center; border-radius: var(--r-ctl); background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color .2s, color .2s, transform .25s var(--ease); flex: none; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------------------------------------------------------------- layout */
.view { position: relative; z-index: 1; min-height: 100svh; outline: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding-top: 148px; padding-bottom: 190px; }
.page-head { max-width: 980px; margin-bottom: 44px; }
.page-head h1 { font-size: clamp(56px, 7vw, 112px); font-weight: 700; letter-spacing: -0.035em; }
.lede { font-size: 21px; line-height: 1.55; color: var(--mute); max-width: 62ch; margin-top: 18px; }

/* page transition: a scan line sweeps down and reveals the new page */
.view.enter .page-root { animation: scanIn .75s var(--ease) both; }
.view.enter::after { content: ''; position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 5; background: var(--accent); box-shadow: 0 0 24px 4px rgba(36,87,245,.35); animation: scanLine .75s var(--ease) both; pointer-events: none; }
@keyframes scanIn { from { clip-path: inset(0 0 100% 0); opacity: .4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes scanLine { from { transform: translateY(0); opacity: 1; } 90% { opacity: 1; } to { transform: translateY(100vh); opacity: 0; } }

/* ---------------------------------------------------------------- glass panel */
.panel {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 40px 80px -48px rgba(15,22,34,.45);
}
.panel::before { content: ''; position: absolute; left: 32px; top: -1px; width: 48px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.pad { padding: clamp(24px, 3vw, 40px); }

/* readout stat boxes */
.readout { position: relative; background: var(--readout); color: var(--readout-ink); border-radius: 18px; padding: 22px 24px 20px; overflow: hidden; min-width: 0; }
.readout::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); }
.readout::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(228,234,247,.04) 1px, transparent 1px) 0 0 / 100% 6px; pointer-events: none; }
.readout b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 2.6vw, 42px); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readout b small { font-size: .6em; color: var(--readout-mute); margin: 0 .15em; }
.readout b.up { color: #43D69E; } .readout b.down { color: #FF7A6E; }
.readout span { display: block; margin-top: 8px; font-size: 15px; color: var(--readout-mute); line-height: 1.35; }
.readout.big b { font-size: clamp(52px, 5vw, 76px); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 18px; }

/* ---------------------------------------------------------------- hero (landing) */
.hero { min-height: 100svh; display: grid; align-items: center; padding: 140px var(--gutter) 170px; max-width: var(--maxw); margin: 0 auto; }
.hero-block { width: min(100%, 1000px); margin: 0 auto; position: relative; left: var(--offset); }
.hero-title { font-size: clamp(60px, 8.6vw, 156px); font-weight: 720; line-height: .94; letter-spacing: -0.045em; text-wrap: balance; transition: transform .6s var(--ease); transform-origin: 30% 50%; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .w > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.hero.in .hero-title .w > span { transform: none; }
.hero-title .dot { display: inline-block; animation: blink 2.4s ease-in-out 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 52px; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; opacity: 0; transition: opacity .8s var(--ease) .75s; }
.hero.in .hero-actions { opacity: 1; transform: none; }
.hero.in .hero-meta { opacity: 1; }
.x-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; padding: 10px 2px; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.x-link:hover { color: var(--accent); border-color: var(--accent); }

/* CA chip */
.ca { display: inline-flex; align-items: center; gap: 0; height: 56px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; max-width: 100%; }
.ca-label { align-self: stretch; display: grid; place-items: center; padding: 0 16px 0 20px; font-weight: 700; font-size: 15px; background: var(--ink); color: #fff; }
.ca code { padding: 0 8px 0 16px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-copy { width: 52px; align-self: stretch; display: grid; place-items: center; color: var(--mute); transition: color .2s, background .2s; }
.ca-copy:hover { color: var(--accent); background: var(--accent-soft); }

/* ---------------------------------------------------------------- tuner nav */
.tuner {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 950;
  transform: translateX(-50%); width: min(1120px, calc(100% - 24px)); height: 92px;
  display: grid; grid-template-columns: 132px 1fr auto; align-items: stretch;
  background: rgba(15, 22, 34, .9); color: var(--readout-ink);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 24px; border: 1px solid rgba(228,234,247,.12);
  box-shadow: 0 30px 60px -30px rgba(15,22,34,.7), inset 0 1px 0 rgba(255,255,255,.08);
  --needle: 4%; --ghost: 4%;
}
.tuner-read { display: flex; flex-direction: column; justify-content: center; padding: 0 22px 0 26px; border-right: 1px solid rgba(228,234,247,.1); border-radius: 24px 0 0 24px; transition: background .2s; }
.tuner-read:hover { background: rgba(228,234,247,.07); }
.tuner-read b { font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tuner-read span { font-size: 15px; font-weight: 600; color: var(--readout-mute); margin-top: 6px; }
.tuner-read.on span { color: #fff; }
.tuner-scale { position: relative; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x proximity; }
.tuner-scale::-webkit-scrollbar { display: none; }
/* equal-width station cells, dial ticks drawn behind them */
.stations { position: relative; display: flex; height: 100%; min-width: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(228,234,247,.32) 0 1px, transparent 1px 48px) 0 12px / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(228,234,247,.14) 0 1px, transparent 1px 12px) 0 12px / 100% 7px no-repeat; }
.station { flex: 1 0 112px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 0 8px 16px; color: var(--readout-mute); transition: color .2s, background .2s; position: relative; }
.station i { font-style: normal; font-size: 13px; font-variant-numeric: tabular-nums; opacity: .7; }
.station span { font-size: 18px; font-weight: 650; white-space: nowrap; }
.station:hover { color: var(--readout-ink); background: rgba(228,234,247,.06); }
.station.on { color: #fff; }
.station.on i { color: var(--accent); opacity: 1; }
.needle { position: absolute; top: 6px; height: 30px; left: 0; width: 2px; margin-left: -1px; background: var(--accent); border-radius: 2px; box-shadow: 0 0 14px 2px rgba(36,87,245,.7); transition: left .8s var(--spring), opacity .3s; pointer-events: none; z-index: 1; }
.needle::before { content: ''; position: absolute; left: 50%; top: -2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--accent); }
.tuner.at-home .needle:not(.ghost) { opacity: 0; }
.needle.ghost { background: rgba(228,234,247,.5); box-shadow: none; opacity: 0; transition: left .35s var(--ease), opacity .2s; }
.needle.ghost::before { background: rgba(228,234,247,.5); }
.tuner.scanning .needle.ghost { opacity: 1; }
.tuner-menu { display: flex; align-items: center; gap: 12px; padding: 0 26px; border-left: 1px solid rgba(228,234,247,.1); font-weight: 650; font-size: 19px; color: #fff; transition: background .2s; border-radius: 0 24px 24px 0; }
.tuner-menu:hover, .tuner-menu[aria-expanded="true"] { background: var(--accent); }
.tuner-menu kbd { font-family: var(--font-body); font-size: 13px; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; padding: 3px 8px; }

/* ---------------------------------------------------------------- full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 900; overflow-y: auto;
  background: rgba(220, 223, 227, .74);
  backdrop-filter: blur(30px) saturate(140%); -webkit-backdrop-filter: blur(30px) saturate(140%);
  clip-path: circle(0% at 50% 100%); visibility: hidden; pointer-events: none;
  transition: clip-path .7s cubic-bezier(.7,0,.2,1), visibility 0s linear .7s;
}
.menu.open { clip-path: circle(150% at 50% 100%); visibility: visible; pointer-events: auto; transition: clip-path .85s cubic-bezier(.7,0,.2,1), visibility 0s; }
.menu-in { max-width: var(--maxw); margin: 0 auto; padding: 130px var(--gutter) 150px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; min-height: 100%; }
.menu-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.menu-list li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.menu.open .menu-list li { opacity: 1; transform: none; }
.menu.open .menu-list li:nth-child(1) { transition-delay: .18s; } .menu.open .menu-list li:nth-child(2) { transition-delay: .23s; }
.menu.open .menu-list li:nth-child(3) { transition-delay: .28s; } .menu.open .menu-list li:nth-child(4) { transition-delay: .33s; }
.menu.open .menu-list li:nth-child(5) { transition-delay: .38s; } .menu.open .menu-list li:nth-child(6) { transition-delay: .43s; }
.menu.open .menu-list li:nth-child(7) { transition-delay: .48s; }
.menu-item { display: grid; grid-template-columns: 88px 1fr; grid-template-rows: auto auto; column-gap: 20px; padding: 18px 8px; border-radius: 14px; }
.mi-freq { grid-row: span 2; font-family: var(--font-display); font-size: 22px; color: var(--mute); padding-top: 14px; font-variant-numeric: tabular-nums; transition: color .2s; }
.mi-label { font-family: var(--font-display); font-weight: 680; font-size: clamp(40px, 4.6vw, 70px); line-height: 1.02; letter-spacing: -0.035em; transition: transform .45s var(--ease), color .2s; }
.mi-desc { color: var(--mute); font-size: 18px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .3s, margin .3s; }
.menu-item.is-preview .mi-label, .menu-item:focus-visible .mi-label { transform: translateX(14px); color: var(--accent); }
.menu-item.is-preview .mi-freq { color: var(--accent); }
.menu-item.is-preview .mi-desc { max-height: 60px; opacity: 1; margin-top: 6px; }
.menu-side { position: sticky; top: 130px; align-self: start; }
.menu-preview { aspect-ratio: 1; border-radius: var(--r-panel); background: var(--readout); position: relative; overflow: hidden; }
.menu-preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(228,234,247,.05) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(228,234,247,.05) 1px, transparent 1px) 0 0 / 40px 40px; pointer-events: none; }
.menu-preview canvas { width: 100%; height: 100%; filter: invert(1) hue-rotate(180deg) brightness(1.1); }
.menu-cap { margin-top: 18px; font-size: 20px; color: var(--mute); min-height: 3.2em; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* ---------------------------------------------------------------- intro */
.intro { position: fixed; inset: 0; z-index: 9000; background: var(--readout); color: var(--readout-ink); display: grid; place-items: center; clip-path: inset(0 0 0 0); transition: clip-path .9s cubic-bezier(.75,0,.2,1); }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro.out { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro-ui { position: absolute; left: 0; right: 0; bottom: 12vh; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.intro-word { display: flex; font-family: var(--font-display); font-weight: 750; font-size: clamp(56px, 9vw, 128px); letter-spacing: -0.03em; line-height: 1; }
.intro-word span { opacity: 0; transform: translateY(40%); filter: blur(8px); transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s; transition-delay: calc(var(--i) * 80ms); }
.intro.show-word .intro-word span { opacity: 1; transform: none; filter: none; }
.intro-read { font-size: 16px; color: var(--readout-mute); font-variant-numeric: tabular-nums; }
.intro-read b { color: var(--readout-ink); font-weight: 600; }
.intro-enter { min-height: 64px; min-width: 200px; padding: 0 36px; border-radius: 999px; border: 1px solid rgba(228,234,247,.4); color: var(--readout-ink); font-size: 20px; font-weight: 650; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease), background .25s, border-color .25s; }
.intro.ready .intro-enter { opacity: 1; transform: none; }
.intro-enter:hover, .intro-enter:focus-visible { background: var(--accent); border-color: var(--accent); }
.intro-enter[disabled] { pointer-events: none; }

/* ---------------------------------------------------------------- cursor */
.has-cursor, .has-cursor * { cursor: none !important; }
#cursor { position: fixed; inset: 0; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity .3s; }
#cursor.on { opacity: 1; }
#trace { position: absolute; inset: 0; width: 100%; height: 100%; }
.cur-dot, .cur-ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--accent); }
.cur-ring { width: 42px; height: 42px; margin: -21px 0 0 -21px; border: 1.5px solid var(--ink); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), border-color .25s, background .25s, border-radius .25s; }
#cursor.hover .cur-ring { width: 68px; height: 68px; margin: -34px 0 0 -34px; border-color: var(--accent); background: var(--accent-soft); }
#cursor.text .cur-ring { width: 4px; height: 34px; margin: -17px 0 0 -2px; border-radius: 2px; border-color: transparent; background: var(--accent); }
#cursor.down .cur-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.intro-lock .cur-ring { border-color: var(--readout-ink); }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; right: 20px; bottom: 128px; z-index: 9500; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; max-width: 420px; padding: 16px 20px; border-radius: 16px; background: var(--readout); color: var(--readout-ink); font-size: 17px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); border-left: 3px solid var(--accent); opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast-ok { border-left-color: #43D69E; }
.toast-warn { border-left-color: #FF9F43; }
.toast a { color: #9DB6FF; text-decoration: underline; }

/* ---------------------------------------------------------------- controls */
.board-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; padding: 5px; border-radius: 16px; background: rgba(20,23,28,.06); gap: 4px; }
.seg button { min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 600; color: var(--mute); transition: background .25s, color .25s, box-shadow .25s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(15,22,34,.5), inset 0 -2px 0 var(--accent); }
.seg.small button { min-height: 42px; padding: 0 16px; font-size: 16px; }
.seg button b { font-weight: 700; color: var(--accent); margin-left: 4px; }
.field-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 18px; border-radius: var(--r-ctl); background: var(--glass-strong); border: 1px solid var(--line); color: var(--mute); transition: border-color .2s, box-shadow .2s; }
.field-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 18px; color: var(--ink); min-width: 0; }
.select { position: relative; }
.select select { appearance: none; height: 58px; padding: 0 48px 0 18px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--glass-strong); font-size: 18px; font-weight: 600; }
.select::after { content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.select select:focus-visible { outline: 3px solid var(--accent); }
.switch { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch .sw { width: 52px; height: 30px; border-radius: 999px; background: rgba(20,23,28,.16); position: relative; transition: background .25s; flex: none; }
.switch .sw::after { content: ''; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .35s var(--spring); }
.switch input:checked + .sw { background: var(--accent); }
.switch input:checked + .sw::after { transform: translateX(22px); }
.switch input:focus-visible + .sw { outline: 3px solid var(--accent); outline-offset: 2px; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--mute); }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--up); position: relative; }
.live i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--up); animation: ping 2s ease-out infinite; }
.is-error .live i, .is-error .live i::after { background: var(--down); }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.empty { padding: 48px 28px; text-align: center; color: var(--mute); font-size: 19px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.empty.small { padding: 28px 8px; font-size: 17px; }

.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field > span { font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 8px; }
.field > span small { font-weight: 500; color: var(--mute); font-size: 15px; }
.field input, .field textarea, .derive-in input {
  width: 100%; min-height: 60px; padding: 14px 18px; font-size: 18px; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: var(--glass-strong); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .derive-in input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field em { font-style: normal; font-size: 15px; color: var(--down); min-height: 0; }
.field.bad input, .field.bad textarea, .field.bad .drop { border-color: var(--down); }
.field-row { display: flex; gap: 10px; }
.field-row input { flex: 1; }
.field-row .btn { min-height: 60px; }

/* ---------------------------------------------------------------- board */
.board { overflow: hidden; }
.row-grid { display: grid; grid-template-columns: 76px minmax(240px, 2.3fr) 1fr .7fr .7fr 1fr 1fr 1fr 150px; align-items: center; gap: 16px; padding: 0 24px; }
.board-head { padding-top: 16px; padding-bottom: 12px; font-size: 15px; color: var(--mute); font-weight: 600; border-bottom: 1px solid var(--line); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.row { min-height: 88px; border-bottom: 1px solid var(--line-soft); position: relative; transition: background .25s; animation: rowIn .6s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
.row:last-child { border-bottom: 0; }
.row::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); transform: scaleY(0); transition: transform .35s var(--ease); }
.row:hover { background: rgba(255,255,255,.55); }
.row:hover::before { transform: scaleY(1); }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
.sigcell .sig { width: 60px; height: 60px; }
.sig path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.row:hover .sig path { stroke: var(--accent); animation: draw 1.1s var(--ease); }
.sig.sm { width: 40px; height: 40px; flex: none; }
.tok { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tok-ico { --s: 44px; width: var(--s); height: var(--s); flex: none; border-radius: 12px; overflow: hidden; background: var(--readout); color: var(--readout-ink); display: grid; place-items: center; position: relative; }
.tok-ico b { font-family: var(--font-display); font-size: calc(var(--s) * .45); }
.tok-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tok-txt { min-width: 0; display: flex; flex-direction: column; }
.tok-txt b { font-weight: 650; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-txt small { display: flex; gap: 12px; font-size: 15px; color: var(--mute); }
.tok-txt .addr { font-family: var(--font-addr); font-size: 13px; padding-top: 2px; }
.price { font-weight: 600; }
.tick-up { animation: tickUp 1.2s var(--ease); } .tick-down { animation: tickDown 1.2s var(--ease); }
@keyframes tickUp { 0% { color: var(--up); background: rgba(14,138,95,.12); } }
@keyframes tickDown { 0% { color: var(--down); background: rgba(200,55,45,.12); } }
.spark { width: 100%; height: 44px; overflow: visible; }
.spark.up { color: var(--up); } .spark.down { color: var(--down); } .spark.flat { color: var(--mute); }
.skel span { height: 18px; border-radius: 6px; background: linear-gradient(90deg, rgba(20,23,28,.06), rgba(20,23,28,.12), rgba(20,23,28,.06)) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel span:first-child { width: 60px; height: 60px; border-radius: 50%; }
.skel span i { display: block; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- coin page */
.back { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--mute); margin-bottom: 26px; padding: 8px 0; transition: color .2s; }
.back:hover { color: var(--accent); }
.coin-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 28px; align-items: start; }
.coin-sig { position: sticky; top: 120px; aspect-ratio: 1 / 1.12; display: flex; flex-direction: column; overflow: hidden; }
.coin-sig canvas { flex: 1; width: 100%; min-height: 0; }
.sig-read { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); }
.sig-read div { padding: 16px 20px; border-right: 1px solid var(--line); }
.sig-read div:last-child { border-right: 0; }
.sig-read dt { font-size: 14px; color: var(--mute); }
.sig-read dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sig-read.compact { grid-template-columns: repeat(3, 1fr); }
.coin-id { display: flex; align-items: center; gap: 20px; }
.coin-name { font-size: clamp(44px, 5vw, 80px); font-weight: 700; letter-spacing: -0.035em; }
.coin-sym { display: flex; flex-wrap: wrap; gap: 16px; color: var(--mute); margin-top: 8px; }
.coin-sym span:first-child { font-weight: 700; color: var(--ink); }
.coin-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 18px; margin: 26px 0 22px; }
.coin-price b { font-family: var(--font-display); font-size: clamp(40px, 4vw, 60px); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.coin-price .chg { font-size: 20px; font-weight: 600; }
.chart-panel { padding: 18px 18px 10px; }
.chart-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.chart-src { font-size: 15px; color: var(--mute); }
.chart-host { position: relative; min-height: 340px; }
.chart-loading { height: 340px; display: grid; place-items: center; color: var(--mute); }
.chart { width: 100%; height: auto; overflow: visible; }
.chart.up { color: var(--up); } .chart.down { color: var(--down); }
.chart .grid line { stroke: var(--line); stroke-dasharray: 3 5; }
.chart .vol rect { fill: var(--ink); opacity: .1; }
.chart text { fill: var(--mute); font-size: 13px; font-family: var(--font-body); }
.chart .ln { stroke-dasharray: 4000; animation: chartDraw 1.4s var(--ease) both; }
@keyframes chartDraw { from { stroke-dashoffset: 4000; } to { stroke-dashoffset: 0; } }
.chart .hair line { stroke: var(--ink); stroke-dasharray: 3 3; }
.chart .hair circle { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.chart-tip, .spec-tip { position: absolute; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--readout); color: var(--readout-ink); font-size: 14px; min-width: 150px; box-shadow: 0 16px 30px -16px rgba(0,0,0,.6); }
.chart-tip b, .spec-tip b { font-size: 17px; }
.chart-tip span, .spec-tip span { color: var(--readout-mute); }
.spec-tip .up { color: #43D69E; } .spec-tip .down { color: #FF7A6E; }
.spec-tip em { font-style: normal; color: #9DB6FF; margin-top: 4px; }
.coin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.tune-btns { display: flex; gap: 12px; }
.sig-btn.is-set.btn-primary { background: var(--ink); }
.sig-btn.is-set.btn-ghost { border-color: var(--down); color: var(--down); }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--line); font-weight: 600; font-size: 16px; transition: border-color .2s, color .2s; }
.chip-link:hover { border-color: var(--accent); color: var(--accent); }
.coin-desc { margin-top: 24px; color: var(--mute); max-width: 70ch; }

/* ---------------------------------------------------------------- tune */
.tune-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); gap: 32px; align-items: start; }
.deck-wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.deck { position: relative; width: min(100%, 560px); aspect-ratio: 1 / 1.28; }
.tcard {
  --d: 0; --r: 0; --dm: 0;
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--glass-strong); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-edge); border-radius: 30px;
  box-shadow: 0 40px 80px -40px rgba(15,22,34,.55);
  translate: 0 calc(var(--d) * 18px); scale: calc(1 - var(--d) * .05);
  opacity: calc(1 - var(--d) * .3);
  transition: transform .45s var(--ease), translate .45s var(--ease), scale .45s var(--ease), opacity .4s;
  touch-action: pan-y; user-select: none;
}
.tcard.dragging { transition: none; }
.tcard.fly-resonate { transform: translateX(130%) rotate(18deg) !important; opacity: 0; }
.tcard.fly-damp { transform: translateX(-130%) rotate(-18deg) !important; opacity: 0; }
.tcard.skel { background: var(--glass); }
.tcard-sig { position: relative; flex: 1; min-height: 0; background: linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px; }
.tcard-sig canvas { width: 100%; height: 100%; }
.stamp { position: absolute; top: 24px; padding: 8px 16px; border-radius: 10px; font-family: var(--font-display); font-weight: 700; font-size: 24px; border: 2px solid; opacity: 0; transition: opacity .1s; }
.stamp.r { left: 24px; color: var(--accent); opacity: var(--r); transform: rotate(-8deg); }
.stamp.d { right: 24px; color: var(--down); opacity: var(--dm); transform: rotate(8deg); }
.tcard-body { padding: 22px 26px 26px; border-top: 1px solid var(--line); }
.tcard-id { display: flex; align-items: center; gap: 14px; }
.tcard-id > div { flex: 1; min-width: 0; }
.tcard-id h3 { font-size: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-id p { color: var(--mute); font-weight: 600; }
.tcard-price { display: flex; align-items: baseline; gap: 14px; margin: 14px 0 10px; }
.tcard-price b { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.tcard-price span { font-weight: 600; }
.tcard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.tcard-stats dt { font-size: 14px; color: var(--mute); }
.tcard-stats dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.tcard-desc { margin-top: 12px; color: var(--mute); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deck-ctl { display: flex; gap: 16px; }
.log { padding: 26px; position: sticky; top: 120px; }
.log-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 14px; }
.log-head h2 { font-size: 36px; }
.log-list { max-height: 52vh; overflow-y: auto; margin: 0 -8px; padding: 0 8px; }
.log-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-soft); }
.log-row a { flex: 1; display: flex; align-items: center; gap: 14px; padding: 12px 6px; min-width: 0; border-radius: 12px; transition: background .2s; }
.log-row a:hover { background: rgba(255,255,255,.6); }
.log-row a > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.log-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-row small { color: var(--mute); }
.log-row .icon-btn { width: 44px; height: 44px; }
.log-sync { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--mute); font-size: 16px; }
.log-sync span { flex: 1 1 200px; }

/* ---------------------------------------------------------------- spectrum */
.spec { overflow: hidden; }
.spec-stage { position: relative; height: clamp(420px, 58vh, 640px); padding: 10px 10px 4px; }
.spec-stage canvas { width: 100%; height: 100%; }
.spec-stats { margin-top: 20px; }

/* ---------------------------------------------------------------- studio */
.studio-grid { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.3fr); gap: 28px; align-items: start; }
.controls { display: flex; flex-direction: column; gap: 26px; }
.group { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.group legend { font-family: var(--font-display); font-size: 26px; font-weight: 650; margin-bottom: 12px; padding: 0; }
.range { display: flex; flex-direction: column; gap: 8px; }
.range > span { display: flex; justify-content: space-between; font-weight: 600; font-size: 17px; }
.range output { font-variant-numeric: tabular-nums; color: var(--accent); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(20,23,28,.14); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(20,23,28,.14); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 10px -4px rgba(0,0,0,.4); transition: transform .2s var(--spring); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 52px; height: 52px; border-radius: 14px; background: var(--c); border: 2px solid var(--line); position: relative; transition: transform .25s var(--spring); overflow: hidden; }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
.swatch.custom { background: conic-gradient(#f43, #fc3, #3c6, #39f, #93f, #f43); }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }
.stage { aspect-ratio: 1; overflow: hidden; transition: background .4s; }
.stage canvas { width: 100%; height: 100%; }
.stage.dark .stage-read { color: var(--readout-mute); }
.stage-read { position: absolute; left: 28px; bottom: 22px; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--mute); }
.exports { margin-top: 20px; }
.export-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.code { margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--readout); color: var(--readout-ink); font-family: var(--font-addr); font-size: 14px; line-height: 1.6; overflow: auto; max-height: 260px; }

/* ---------------------------------------------------------------- launch */
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 28px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); color: var(--mute); font-weight: 600; transition: background .3s, color .3s; }
.steps b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,23,28,.08); font-family: var(--font-display); }
.steps li.on { background: var(--ink); color: #fff; }
.steps li.on b { background: var(--accent); }
.steps li.past b { background: var(--up); color: #fff; }
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr); gap: 28px; align-items: start; }
.lform { display: flex; flex-direction: column; gap: 22px; }
.lform > .btn { align-self: flex-start; margin-top: 6px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.drop { position: relative; display: block; min-height: 150px; border-radius: 18px; border: 2px dashed rgba(20,23,28,.22); background: rgba(255,255,255,.4); transition: border-color .2s, background .2s; overflow: hidden; }
.drop:hover, .drop.over, .drop:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.drop-in { display: flex; align-items: center; gap: 18px; padding: 28px; color: var(--mute); }
.drop-in > span { display: flex; flex-direction: column; color: var(--ink); font-weight: 600; }
.drop-in u { color: var(--accent); text-underline-offset: 3px; }
.drop-in small { font-weight: 500; color: var(--mute); font-size: 15px; margin-top: 4px; }
.drop-prev { position: absolute; right: 16px; top: 16px; bottom: 16px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.drop.has .drop-in { padding-right: 160px; }
.check { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-weight: 600; }
.check input { position: absolute; opacity: 0; }
.check .box { width: 32px; height: 32px; border-radius: 9px; border: 2px solid rgba(20,23,28,.3); display: grid; place-items: center; color: transparent; background: var(--glass-strong); transition: background .2s, border-color .2s, color .2s; flex: none; }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); color: #fff; }
.check input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 2px; }
.check em { flex-basis: 100%; font-style: normal; font-size: 15px; color: var(--down); }
.check.bad .box { border-color: var(--down); }
.lprev { position: sticky; top: 120px; overflow: hidden; }
.lprev-sig { aspect-ratio: 1; background: var(--readout); }
.lprev-sig canvas { width: 100%; height: 100%; filter: invert(1) hue-rotate(180deg) brightness(1.1); }
.lprev-id { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.lprev-ico { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--readout); color: var(--readout-ink); display: grid; place-items: center; flex: none; }
.lprev-ico img { width: 100%; height: 100%; object-fit: cover; }
.lprev-ico b { font-family: var(--font-display); font-size: 28px; }
.lprev-id > div { display: flex; flex-direction: column; min-width: 0; }
.lp-name { font-family: var(--font-display); font-size: 28px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-tick { color: var(--mute); font-weight: 600; }
.review h2, .done h2 { font-size: clamp(36px, 3.6vw, 54px); margin-bottom: 20px; }
.review-list { margin: 0; display: grid; gap: 0; }
.review-list div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.review-list dt { color: var(--mute); }
.review-list dd { margin: 0; font-weight: 600; word-break: break-word; display: flex; align-items: center; gap: 12px; }
.rv-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.done { text-align: left; }
.done-mark { width: 92px; height: 92px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 22px; animation: pop .7s var(--spring); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ---------------------------------------------------------------- protocol */
.proto-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
.proto-vis { position: sticky; top: 120px; aspect-ratio: 1; overflow: hidden; }
.proto-vis canvas { width: 100%; height: 100%; }
.vis-read { position: absolute; left: 30px; bottom: 24px; font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--mute); font-variant-numeric: tabular-nums; }
.acc { border-top: 1px solid var(--line); }
.acc-row { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; gap: 20px; padding: 26px 8px; text-align: left; }
.acc-ico { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--glass-strong); border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.acc-title { flex: 1; font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 36px); font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; transition: color .25s, transform .4s var(--ease); }
.acc-plus { width: 22px; height: 22px; position: relative; flex: none; }
.acc-plus::before, .acc-plus::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .35s var(--ease); }
.acc-plus::after { transform: rotate(90deg); }
.acc-row.open .acc-plus::after { transform: rotate(0deg); }
.acc-row.open .acc-ico { background: var(--accent); color: #fff; border-color: var(--accent); }
.acc-row.open .acc-title { transform: translateX(6px); }
.acc-head:hover .acc-title { color: var(--accent); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc-row.open .acc-panel { grid-template-rows: 1fr; }
.acc-in { overflow: hidden; display: grid; grid-template-columns: 1fr minmax(220px, .8fr); gap: 24px; align-items: end; padding: 0 8px; }
.acc-row.open .acc-in { padding-bottom: 28px; }
.acc-in p { color: var(--mute); }
.derive, .sources { margin-top: 110px; }
.derive h2, .sources h2 { font-size: clamp(40px, 4.4vw, 68px); font-weight: 700; }
.derive-in { margin-top: 26px; max-width: 760px; }
.derive-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.derive-steps li { counter-increment: s; display: flex; flex-direction: column; gap: 10px; }
.derive-steps h3 { font-size: 28px; }
.derive-steps h3::before { content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; margin-right: 12px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 18px; vertical-align: 4px; }
.derive-steps p { color: var(--mute); }
.derive-steps b { margin-top: auto; padding-top: 14px; font-family: var(--font-display); font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.d-fig { width: 140px; height: 140px; margin-top: auto; }
.d-fig path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; }
.d-fig path.draw { animation: draw 1.6s var(--ease); }
.src-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.src-list li { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.src-list h3 { font-size: 30px; }
.src-list p { color: var(--mute); flex: 1; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .row-grid { grid-template-columns: 64px minmax(200px, 2fr) 1fr .8fr .8fr 1fr 130px; }
  .c-liq, .c-vol { display: none; }
}
@media (max-width: 1080px) {
  .coin-grid, .tune-grid, .studio-grid, .launch-grid, .proto-grid { grid-template-columns: 1fr; }
  .coin-sig, .log, .lprev, .proto-vis { position: relative; top: 0; }
  .coin-sig { aspect-ratio: auto; height: 520px; }
  .proto-vis { max-width: 560px; }
  .menu-in { grid-template-columns: 1fr; }
  .menu-side { display: none; }
  .derive-steps, .src-list { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --offset: 0px; }
  body { font-size: 17px; }
  .top-in { padding-top: 14px; }
  .logo-word { font-size: 28px; }
  .logo-mark { width: 44px; height: 44px; }
  .btn-wallet span { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; }
  .row-grid { grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 12px; padding: 0 16px; }
  .c-mcap, .c-trend, .board-head span:nth-child(4) { display: none; }
  .row > :nth-child(4) { display: none; }
  .sigcell .sig { width: 46px; height: 46px; }
  .tuner { grid-template-columns: 76px 1fr auto; height: 84px; width: calc(100% - 16px); bottom: max(8px, env(safe-area-inset-bottom)); }
  .tuner-read { padding: 0 0 0 14px; }
  .tuner-read b { font-size: 22px; }
  .tuner-read span { font-size: 13px; }
  .station { flex-basis: 96px; padding-bottom: 14px; }
  .station span { font-size: 16px; }
  .needle.ghost { display: none; }
  .tuner-menu { padding: 0 18px; }
  .tuner-menu kbd { display: none; }
  .f2, .acc-in { grid-template-columns: 1fr; }
  .review-list div { grid-template-columns: 1fr; gap: 4px; }
  .sig-read { grid-template-columns: repeat(2, 1fr); }
  .sig-read div:nth-child(2) { border-right: 0; }
  .live { margin-left: 0; }
  .deck-ctl .btn kbd { display: none; }
}
@media (max-width: 520px) {
  .x-btn { display: none; }
  .btn-xl { min-height: 62px; padding: 0 24px; font-size: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .ca code { max-width: 46vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-title .w > span { transform: none; }
}

/* ================================================================ identity layer */

/* scroll cue under the hero */
.hero { position: relative; }
.scroll-cue { position: absolute; left: 50%; bottom: 128px; width: 120px; margin-left: -60px; padding: 12px 0; color: var(--mute); opacity: 0; transition: opacity .8s var(--ease) 1s, color .2s; }
.hero.in .scroll-cue { opacity: 1; }
.scroll-cue:hover { color: var(--accent); }
.scroll-cue svg { width: 120px; height: 24px; overflow: visible; }
.scroll-cue path { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 20 140; animation: cue 2.4s linear infinite; }
@keyframes cue { to { stroke-dashoffset: -160; } }

/* landing sections */
.landing { padding-bottom: 200px; }
.l-sec { margin-top: 140px; }
.l-sec:first-child { margin-top: 40px; }
.l-sec > h2, .l-copy h2, .l-badge h2 { font-size: clamp(44px, 5vw, 80px); font-weight: 700; letter-spacing: -0.035em; max-width: 14ch; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.l-check { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.l-form, .verify-form { display: flex; gap: 12px; margin-top: 32px; }
.vf-in { flex: 1; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 0 22px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--line); color: var(--mute); transition: border-color .2s, box-shadow .2s; }
.vf-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.vf-in input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 20px; color: var(--ink); }
.l-demo { padding: 30px; }
.l-demo-cap { font-weight: 600; font-size: 19px; }
.l-demo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.l-demo-tok { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 18px; background: rgba(255,255,255,.5); border: 1px solid var(--line-soft); transition: border-color .2s, transform .3s var(--ease); }
.l-demo-tok:hover { border-color: var(--accent); transform: translateY(-3px); }
.l-demo-tok .sig { width: 100%; max-width: 140px; aspect-ratio: 1; height: auto; }
.l-demo-tok:hover .sig path { stroke: var(--accent); animation: draw 1.1s var(--ease); }
.l-demo-tok b { font-size: 20px; }
.l-demo-tok code { color: var(--mute); }
.l-sec > h2 + * { margin-top: 36px; }
.l-signals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.l-signal { display: flex; flex-direction: column; gap: 14px; }
.l-signal h3 { font-size: 28px; }
.l-signal p { color: var(--mute); }
.l-badge-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.l-badge-in .btn { margin-top: 28px; }
.l-badge-prev, .vb-prev { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.l-badge-prev img, .vb-prev img { width: 100%; max-width: 420px; height: auto; border-radius: 18px; box-shadow: 0 24px 40px -28px rgba(15,22,34,.6); }
.l-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.l-tool { display: flex; align-items: center; gap: 20px; padding: 24px; transition: transform .35s var(--ease), border-color .25s; }
.l-tool:hover { transform: translateY(-4px); border-color: var(--accent); }
.l-tool .sig { width: 72px; height: 72px; flex: none; }
.l-tool:hover .sig path { stroke: var(--accent); animation: draw 1.1s var(--ease); }
.l-tool b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 650; letter-spacing: -0.02em; }
.l-tool small { display: block; color: var(--mute); font-size: 16px; line-height: 1.45; margin-top: 4px; }

/* verify page */
.verify-form { padding: 14px; margin-top: 0; }
.verify-form .vf-in { background: rgba(255,255,255,.6); }
.v-try { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--mute); font-weight: 600; min-height: 48px; }
.v-out { margin-top: 48px; }
.v-empty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: center; }
.v-empty .panel { aspect-ratio: 1; display: grid; place-items: center; }
.v-empty .sig { width: 70%; height: auto; }
.v-empty p { grid-column: 1 / -1; font-size: 22px; color: var(--mute); text-align: center; max-width: 40ch; margin: 12px auto 0; }
.v-summary h2 { font-size: clamp(36px, 4vw, 64px); font-weight: 700; max-width: 22ch; }
.v-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 28px; align-items: start; margin-top: 36px; }
.v-overlay { position: sticky; top: 120px; aspect-ratio: 1; overflow: hidden; display: flex; flex-direction: column; }
.v-overlay canvas { flex: 1; min-height: 0; width: 100%; }
.vo-legend { display: flex; flex-direction: column; gap: 6px; padding: 18px 24px; border-top: 1px solid var(--line); font-weight: 600; }
.vo-legend span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vo-legend b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-legend i { width: 22px; height: 3px; border-radius: 2px; flex: none; }
.vo-legend .ref i { background: var(--ink); }
.vo-legend .cmp i { background: var(--accent); }
.v-list { display: flex; flex-direction: column; gap: 16px; }
.vcard { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) 120px; gap: 22px; padding: 22px; border-radius: var(--r-panel); background: var(--glass); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid var(--glass-edge); transition: border-color .25s, transform .35s var(--ease); outline: none; }
.vcard::before { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: var(--line); }
.vcard.lvl-ref::before { background: var(--ink); }
.vcard.lvl-high::before { background: var(--down); }
.vcard.lvl-mid::before { background: #D98A1C; }
.vcard.lvl-low::before { background: var(--up); }
.vcard:hover, .vcard.is-cmp, .vcard:focus-visible { border-color: var(--accent); }
.vcard.is-cmp { transform: translateX(6px); }
.vc-sig .sig { width: 120px; height: 120px; }
.vcard.is-cmp .vc-sig path { stroke: var(--accent); }
.vc-id { display: flex; align-items: center; gap: 14px; }
.vc-id > div { min-width: 0; display: flex; flex-direction: column; }
.vc-id b { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-id small { color: var(--mute); font-weight: 600; }
.vc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vc-tags:empty { display: none; }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 650; background: var(--accent-soft); color: var(--accent-deep); }
.tag-ink { background: var(--ink); color: #fff; }
.vc-verdict { margin-top: 12px; color: var(--mute); font-size: 17px; }
.vc-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.vbar { display: grid; grid-template-columns: 76px 1fr 48px; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.vbar i { height: 8px; border-radius: 4px; background: rgba(20,23,28,.1); overflow: hidden; }
.vbar i b { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--accent); border-radius: 4px; transition: width .9s var(--ease); }
.vbar em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.vc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 0; }
.vc-facts dt { font-size: 14px; color: var(--mute); }
.vc-facts dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.vc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.vc-actions .ca { height: 48px; }
.vc-score { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--readout); color: var(--readout-ink); border-radius: 18px; padding: 14px 8px; }
.vc-score b { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.vc-score span { margin-top: 8px; font-size: 14px; color: var(--readout-mute); }
.lvl-high .vc-score b { color: #FF7A6E; }
.lvl-mid .vc-score b { color: #FFB454; }
.lvl-low .vc-score b { color: #43D69E; }
.v-badge { margin-top: 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.v-badge h2 { font-size: clamp(34px, 3.4vw, 52px); }

/* token page identity panel */
.id-panel { margin-top: 18px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.id-head { display: flex; gap: 18px; align-items: flex-start; }
.id-head h2 { font-size: 28px; }
.id-head p { margin-top: 6px; }
.id-head .acc-ico { background: var(--accent); color: #fff; border-color: var(--accent); }
.id-row { display: flex; flex-wrap: wrap; gap: 10px; }
.id-row a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.5); border: 1px solid var(--line-soft); font-size: 14px; font-weight: 650; transition: border-color .2s; }
.id-row a:hover { border-color: var(--accent); }
.id-row .sig { width: 52px; height: 52px; }

/* board: shared ticker flag */
.dupe { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(217,138,28,.15); color: #9A5A00; font-size: 13px; font-weight: 650; white-space: nowrap; }

@media (max-width: 1080px) {
  .l-check, .l-badge-in, .v-grid, .v-badge { grid-template-columns: 1fr; }
  .l-signals { grid-template-columns: repeat(2, 1fr); }
  .l-tools { grid-template-columns: repeat(2, 1fr); }
  .v-overlay { position: relative; top: 0; max-width: 520px; }
}
@media (max-width: 680px) {
  .l-signals, .l-tools { grid-template-columns: 1fr; }
  .l-form, .verify-form { flex-direction: column; }
  .vcard { grid-template-columns: 72px minmax(0, 1fr); }
  .vc-sig .sig { width: 72px; height: 72px; }
  .vc-score { grid-column: 1 / -1; flex-direction: row; gap: 12px; }
  .vc-score span { margin: 0; }
  .vc-facts { grid-template-columns: 1fr 1fr; }
  .scroll-cue { bottom: 110px; }
  .l-sec { margin-top: 100px; }
}
