/* Shifted: near-black, one signal cyan, Funnel Display for words, Funnel Sans for everything else, Fragment Mono for
   addresses only. The Shift key is the motif: keycaps for shortcuts, the pressable key in the hero. */
@font-face { font-family: 'Funnel Display'; src: url(/assets/fonts/funnel-display-latin.woff2) format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Funnel Sans'; src: url(/assets/fonts/funnel-sans-latin.woff2) format('woff2'); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Funnel Sans'; src: url(/assets/fonts/funnel-sans-italic-latin.woff2) format('woff2'); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Fragment Mono'; src: url(/assets/fonts/fragment-mono-400-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bg: #08090b;
  --bg2: #0c0e11;
  --card: #111419;
  --card2: #161a20;
  --line: rgba(255, 255, 255, 0.075);
  --line2: rgba(255, 255, 255, 0.13);
  --text: #eef2f6;
  --muted: #8a94a3;
  --dim: #5d6673;
  --cyan: #22d3ee;
  --cyan-2: #67e8f9;
  --cyan-ink: #031417;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --up: #4ade80;
  --down: #fb7185;
  --warn: #fbbf24;
  --r: 18px;
  --r-s: 12px;
  --side: 248px;
  --top: 64px;
  --display: 'Funnel Display', 'Funnel Sans', system-ui, sans-serif;
  --sans: 'Funnel Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Fragment Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--sans); font-feature-settings: 'ss01'; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--cyan); color: var(--cyan-ink); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 99; background: var(--cyan); color: var(--cyan-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- shell ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; background: var(--cyan); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; box-shadow: 0 0 12px rgba(34, 211, 238, 0.6); }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); padding: 18px 14px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #0b0d10, #08090b); display: flex; flex-direction: column; gap: 18px; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.brand img { width: 30px; height: 30px; }
.brand b { font: 700 21px/1 var(--display); letter-spacing: -0.02em; }
.brand small { display: block; font: 500 11px/1.2 var(--sans); color: var(--muted); margin-top: 3px; letter-spacing: 0; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 11px; color: var(--muted); font-weight: 500; transition: background 0.2s, color 0.2s; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: 0.9; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.nav a[aria-current='page'], .nav a[aria-current='true'] { color: var(--text); background: rgba(34, 211, 238, 0.09); box-shadow: inset 2px 0 0 var(--cyan); }
.nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 0 6px; }
.hint { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
kbd, .kbd { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 6px; font: 600 11.5px/1 var(--sans); color: var(--text); background: linear-gradient(180deg, #1d222a, #14181e); border: 1px solid var(--line2); box-shadow: 0 2px 0 #050608, inset 0 1px 0 rgba(255, 255, 255, 0.06); }

.top { position: sticky; top: 0; z-index: 30; height: var(--top); margin-left: var(--side); display: flex; align-items: center; gap: 14px; padding: 0 22px; background: rgba(8, 9, 11, 0.78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.top .crumb { font: 600 15px/1 var(--display); color: var(--muted); white-space: nowrap; }
.top .brand-m { display: none; }
.ca { margin: 0 auto; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.02); }
.ca .lbl { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ca .lbl b { color: var(--text); font-weight: 600; }
.ca .val { font: 13px var(--mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }
.ca .val.none { font-family: var(--sans); color: var(--dim); font-size: 13px; }
.top-r { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line2); }
.icon-btn svg { width: 16px; height: 16px; }
main { margin-left: var(--side); padding: 22px 28px 80px; max-width: calc(1240px + var(--side)); }
.tabbar { display: none; }

/* ---------- buttons, pills, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s; }
.btn:active { transform: translateY(1px); }
.btn.cy { background: var(--cyan); color: var(--cyan-ink); box-shadow: 0 8px 28px -10px rgba(34, 211, 238, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn.cy:hover { background: var(--cyan-2); }
.btn.gh { background: rgba(255, 255, 255, 0.03); border-color: var(--line2); color: var(--text); }
.btn.gh:hover { border-color: rgba(255, 255, 255, 0.24); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn.big { height: 50px; width: 100%; font-size: 15.5px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.02); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.pill.live i { background: var(--up); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: ping 2s infinite; }
.pill.sync i { background: var(--cyan); animation: blink 1s infinite; }
.pill.stale i { background: var(--warn); }
.pill.off i { background: var(--down); }
.pill.cy { color: var(--cyan); border-color: rgba(34, 211, 238, 0.3); background: var(--cyan-soft); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }
@keyframes blink { 50% { opacity: 0.35; } }
.field { display: grid; gap: 7px; }
.field label, .lab { font-size: 13px; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; gap: 10px; }
.field label .cnt { font-variant-numeric: tabular-nums; color: var(--dim); }
.field label .cnt.over { color: var(--down); }
.field label.drop { justify-content: flex-start; font-size: 14.5px; color: var(--text); font-weight: 400; }
.inp { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid var(--line2); background: #0b0d10; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.inp:focus { border-color: rgba(34, 211, 238, 0.6); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1); }
.inp::placeholder { color: var(--dim); }
.inp.tk { text-transform: uppercase; font-weight: 600; letter-spacing: 0.02em; }
.err { color: var(--down); font-size: 13px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); font-size: 13.5px; color: var(--muted); }
.note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--cyan); }
.note.warn { border-color: rgba(251, 191, 36, 0.28); background: rgba(251, 191, 36, 0.05); color: #e8d7a8; }
.note.warn svg { color: var(--warn); }
.note.bad { border-color: rgba(251, 113, 133, 0.3); background: rgba(251, 113, 133, 0.06); color: #f6c0ca; }
.note.bad svg { color: var(--down); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: #0b0d10; }
.seg button { border: 0; background: none; color: var(--muted); height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; }
.seg button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.seg.bs button.on[data-side='buy'] { background: rgba(74, 222, 128, 0.14); color: var(--up); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.3); }
.seg.bs button.on[data-side='sell'] { background: rgba(251, 113, 133, 0.14); color: var(--down); box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.3); }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #1b2028; border: 1px solid var(--line2); transition: background 0.2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c7ced8; transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1); }
.switch input:checked + span { background: var(--cyan); border-color: var(--cyan); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--cyan-ink); }
.switch input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- cards ---------- */
.card { position: relative; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), #0e1115); }
.spot { overflow: hidden; }
.spot::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(34, 211, 238, 0.07), transparent 60%); opacity: 0; transition: opacity 0.3s; border-radius: inherit; }
.spot:hover::before { opacity: 1; }
.pad { padding: 20px; }
.sec { margin-top: 64px; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-h h2 { margin: 0; font: 700 clamp(26px, 3.2vw, 36px)/1.05 var(--display); letter-spacing: -0.025em; }
.sec-h p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.sec-h .r { display: flex; gap: 8px; align-items: center; }
.skel { display: inline-block; min-width: 3em; height: 0.9em; border-radius: 6px; background: linear-gradient(90deg, #161a20 0%, #1f242c 50%, #161a20 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; vertical-align: middle; }
@keyframes shimmer { to { background-position: -200% 0; } }
.flash-up { animation: fu 0.9s; }
.flash-down { animation: fd 0.9s; }
@keyframes fu { 0% { color: var(--up); text-shadow: 0 0 14px rgba(74, 222, 128, 0.6); } }
@keyframes fd { 0% { color: var(--down); text-shadow: 0 0 14px rgba(251, 113, 133, 0.6); } }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font: 600 17px/1.3 var(--display); margin-bottom: 6px; }
.tok { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #1a1f26; flex: none; border: 1px solid var(--line); }
.tok.lg { width: 64px; height: 64px; }
.tok.xl { width: 88px; height: 88px; }
.tok-ph { display: grid; place-items: center; font: 700 13px var(--display); color: var(--muted); }

/* ---------- tape ---------- */
.tape { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: #0a0c0f; height: 40px; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tape-in { display: flex; gap: 28px; padding-left: 28px; white-space: nowrap; animation: tape 60s linear infinite; will-change: transform; }
.tape:hover .tape-in { animation-play-state: paused; }
.tape-i { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.tape-i img { width: 18px; height: 18px; border-radius: 50%; }
.tape-i b { font-weight: 600; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 28px; align-items: center; padding: 44px 40px; margin-top: 18px; border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(900px 420px at 85% -10%, rgba(34, 211, 238, 0.16), transparent 60%), radial-gradient(600px 300px at 0% 110%, rgba(34, 211, 238, 0.06), transparent 60%), linear-gradient(180deg, #0e1115, #090b0e); overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }
.hero > * { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cyan); font-weight: 600; }
.hero h1 { margin: 14px 0 0; font: 800 clamp(40px, 6vw, 76px)/0.94 var(--display); letter-spacing: -0.045em; }
.hero h1 .swap { color: var(--cyan); }
.hero .lede { margin: 18px 0 0; font-size: 17px; color: #b7c0cc; max-width: 46ch; }
.hero .cta { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.counts { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.count { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.count b { display: block; font: 700 26px/1.1 var(--display); letter-spacing: -0.02em; }
.count span { font-size: 12.5px; color: var(--muted); }

/* the key and the card it shifts */
.stage { display: grid; justify-items: center; gap: 22px; }
.coincard { width: min(400px, 100%); padding: 18px; border-radius: 20px; border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(22, 26, 32, 0.92), rgba(12, 14, 17, 0.92)); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(34, 211, 238, 0.05); }
.coincard .row { display: flex; align-items: center; gap: 14px; }
.coincard .logo { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.coincard .nm { font: 700 22px/1.1 var(--display); letter-spacing: -0.02em; }
.coincard .tk { font-weight: 600; color: var(--cyan); font-size: 14px; margin-top: 2px; }
.coincard .addr { margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: #0a0c0f; border: 1px dashed rgba(34, 211, 238, 0.28); display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.coincard .addr b { color: var(--text); font-weight: 500; }
.coincard .hist { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.coincard .hist s { color: var(--muted); }
.letters { display: inline-flex; }
.letters span { display: inline-block; transition: transform 0.45s cubic-bezier(0.25, 1.4, 0.45, 1), opacity 0.3s, color 0.3s; }
.letters span.in { animation: drop 0.5s cubic-bezier(0.25, 1.5, 0.45, 1) both; color: var(--cyan-2); }
@keyframes drop { from { transform: translateY(-0.8em) scale(0.8); opacity: 0; } }
.keycap { --press: 0; position: relative; width: 210px; height: 96px; border: 0; padding: 0; background: none; perspective: 600px; -webkit-tap-highlight-color: transparent; }
.keycap .base { position: absolute; inset: 10px 0 0; border-radius: 18px; background: linear-gradient(180deg, #05252b, #031417); box-shadow: 0 24px 40px -16px rgba(34, 211, 238, 0.45), 0 0 0 1px rgba(34, 211, 238, 0.25); }
.keycap .cap { position: absolute; inset: 0 0 10px; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; background: linear-gradient(180deg, #7cecfb 0%, #22d3ee 55%, #12b6d2 100%); color: var(--cyan-ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -4px 0 rgba(0, 0, 0, 0.12); transform: translateY(calc(var(--press) * 8px)); transition: transform 0.12s cubic-bezier(0.3, 1.6, 0.5, 1); }
.keycap .cap svg { width: 30px; height: 30px; }
.keycap .cap b { font: 700 20px/1 var(--display); letter-spacing: -0.01em; }
.keycap:hover .cap { filter: brightness(1.05); }
.keycap.down { --press: 1; }
.keycap:focus-visible { outline: none; }
.keycap:focus-visible .cap { outline: 2px solid #fff; outline-offset: 3px; }
.stage .cap-note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- radar ---------- */
.radar { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rd { padding: 16px; display: grid; gap: 12px; }
.rd .hd { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rd .hd .t { min-width: 0; }
.rd .hd b { display: block; font: 700 16px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd .hd small { color: var(--muted); font-size: 12.5px; }
.rd .big { display: flex; align-items: baseline; gap: 8px; }
.rd .big b { font: 800 38px/1 var(--display); letter-spacing: -0.03em; color: var(--cyan); }
.rd .big b.zero { color: var(--dim); }
.rd .big span { color: var(--muted); font-size: 13px; }
.rd ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.rd li { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.rd li a:hover { color: var(--text); }
.rd .older { font-size: 12px; color: var(--dim); }
.foot-note { margin-top: 12px; font-size: 12.5px; color: var(--dim); }

/* ---------- feeds / lists ---------- */
.list { display: grid; }
.li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); transition: background 0.15s; }
.li:first-child { border-top: 0; }
.li:hover { background: rgba(255, 255, 255, 0.02); }
.li .t b { font-weight: 600; }
.li .t small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .r { text-align: right; font-size: 13px; }
.li .r small { display: block; color: var(--dim); font-size: 12px; }
.prev { color: var(--dim); font-size: 12px; }
.prev s { color: var(--muted); }
.shiftline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shiftline .ar { color: var(--cyan); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bx { padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; }
.bx.w3 { grid-column: span 3; } .bx.w2 { grid-column: span 2; } .bx.w4 { grid-column: span 4; }
.bx h3 { margin: 0; font: 700 19px/1.2 var(--display); letter-spacing: -0.015em; }
.bx p { margin: 0; color: var(--muted); font-size: 14px; }
.glyph { margin-top: auto; height: 74px; border-radius: 12px; border: 1px solid var(--line); background: #0a0c0f; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 14px; font-size: 13px; color: var(--muted); overflow: hidden; }
.glyph .chip { padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line2); background: #12161b; color: var(--text); font-weight: 600; white-space: nowrap; }
.glyph .chip.cy { border-color: rgba(34, 211, 238, 0.4); color: var(--cyan); }
.glyph .bar { height: 8px; flex: 1; border-radius: 99px; background: #161a20; overflow: hidden; }
.glyph .bar i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, #0ea5c4, var(--cyan)); }
.glyph .split { display: flex; height: 22px; flex: 1; border-radius: 8px; overflow: hidden; font-size: 11px; font-weight: 600; }
.glyph .split span { display: grid; place-items: center; color: var(--cyan-ink); }

/* ---------- coin page ---------- */
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.coinhead { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.coinhead h1 { margin: 0; font: 800 clamp(28px, 4vw, 42px)/1 var(--display); letter-spacing: -0.03em; }
.coinhead .tk { color: var(--cyan); font-weight: 600; font-size: 16px; margin-top: 4px; }
.addrbox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #0a0c0f; max-width: 100%; }
.addrbox .mono { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warnline { margin-top: 14px; display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #e8d7a8; }
.warnline svg { width: 16px; height: 16px; color: var(--warn); flex: none; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.stat { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #0d1014; }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat b { display: block; font: 700 21px/1.2 var(--display); letter-spacing: -0.015em; margin-top: 2px; }
.stat small { color: var(--dim); font-size: 12px; }
.curvebar { height: 10px; border-radius: 99px; background: #161a20; overflow: hidden; margin-top: 8px; }
.curvebar i { display: block; height: 100%; background: linear-gradient(90deg, #0ea5c4, var(--cyan)); border-radius: inherit; transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.chart { height: 260px; position: relative; }
.chart svg { width: 100%; height: 100%; }
.chart .tip { position: absolute; top: 10px; left: 12px; font-size: 12.5px; color: var(--muted); }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0 12px 22px; border-top: 1px solid var(--line); }
.tl li:first-child { border-top: 0; }
.tl li::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line2); }
.tl li::after { content: ''; position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--card2); border: 2px solid var(--muted); }
.tl li.now::after { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px rgba(34, 211, 238, 0.6); }
.tl b { font-weight: 600; }
.tl small { color: var(--muted); font-size: 12.5px; display: block; }
.tl .r { text-align: right; font-size: 12.5px; color: var(--muted); }
.trade .pad { display: grid; gap: 14px; }
.amt { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line2); background: #0b0d10; }
.amt input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 600 22px var(--display); }
.amt span { color: var(--muted); font-weight: 600; }
.amt:focus-within { border-color: rgba(34, 211, 238, 0.6); }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.presets button { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.presets button:hover, .presets button.on { color: var(--text); border-color: var(--line2); background: rgba(255, 255, 255, 0.03); }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 3px 0; }
.kv span:first-child { color: var(--muted); }
.trades { max-height: 360px; overflow: auto; }
.trades table { width: 100%; border-collapse: collapse; font-size: 13px; }
.trades td, .trades th { padding: 8px 12px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.trades th { color: var(--dim); font-weight: 500; position: sticky; top: 0; background: #0f1216; border-top: 0; }
.trades td:first-child, .trades th:first-child { text-align: left; }

/* ---------- launch ---------- */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.form { display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.drop { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; border: 1.5px dashed var(--line2); background: #0b0d10; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.drop:hover, .drop.over { border-color: rgba(34, 211, 238, 0.6); background: rgba(34, 211, 238, 0.04); }
.drop .pv { width: 72px; height: 72px; border-radius: 50%; background: #151920 center / cover; border: 1px solid var(--line2); display: grid; place-items: center; color: var(--dim); flex: none; }
.drop .pv svg { width: 26px; height: 26px; }
.drop b { display: block; font-weight: 600; }
.drop small { color: var(--muted); font-size: 12.5px; }
.toggle-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #0b0d10; }
.toggle-row b { display: block; font-weight: 600; }
.toggle-row small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.sticky { position: sticky; top: calc(var(--top) + 18px); }
.banner { margin-bottom: 16px; }

/* ---------- modal / toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(3, 4, 6, 0.7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 18px; opacity: 0; transition: opacity 0.2s; }
.scrim.on { opacity: 1; }
.modal { width: min(460px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 22px; border-radius: 22px; border: 1px solid var(--line2); background: linear-gradient(180deg, #13171c, #0d1014); box-shadow: 0 40px 90px -30px #000; transform: translateY(12px) scale(0.98); transition: transform 0.25s cubic-bezier(0.2, 1.2, 0.4, 1); }
.scrim.on .modal { transform: none; }
.modal h2 { margin: 0 0 12px; font: 700 22px/1.2 var(--display); letter-spacing: -0.02em; }
.modal .x { float: right; margin: -6px -6px 0 0; }
.steps { display: grid; gap: 8px; margin: 14px 0; }
.steps div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.steps i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); flex: none; position: relative; }
.steps .now { color: var(--text); }
.steps .now i { border-color: var(--cyan); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.steps .done { color: var(--text); }
.steps .done i { border-color: var(--up); background: var(--up); }
.steps .done i::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #062b13; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.steps .bad { color: var(--down); }
.steps .bad i { border-color: var(--down); }
@keyframes spin { to { transform: rotate(360deg); } }
.wallets { display: grid; gap: 8px; }
.wallets button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #0b0d10; text-align: left; font-weight: 600; }
.wallets button:hover { border-color: var(--line2); }
.wallets img { width: 28px; height: 28px; border-radius: 8px; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: 360px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: #12161b; box-shadow: 0 20px 40px -20px #000; font-size: 13.5px; animation: tin 0.35s cubic-bezier(0.2, 1.3, 0.4, 1); }
.toast b { display: block; margin-bottom: 2px; }
.toast.good { border-color: rgba(74, 222, 128, 0.35); }
.toast.bad { border-color: rgba(251, 113, 133, 0.35); }
@keyframes tin { from { transform: translateY(14px); opacity: 0; } }
.wbtn { display: inline-flex; align-items: center; gap: 8px; }
.wbtn img { width: 18px; height: 18px; border-radius: 5px; }

/* ---------- shift card page ---------- */
.scard { width: min(760px, 100%); margin: 30px auto 0; padding: 34px; border-radius: 26px; border: 1px solid var(--line2); background: radial-gradient(700px 300px at 100% 0%, rgba(34, 211, 238, 0.18), transparent 60%), linear-gradient(180deg, #11151a, #0a0c0f); text-align: center; }
.scard .pair { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 18px 0; flex-wrap: wrap; }
.scard .side-c { display: grid; justify-items: center; gap: 10px; }
.scard .side-c b { font: 800 clamp(26px, 5vw, 44px)/1 var(--display); letter-spacing: -0.03em; }
.scard .side-c.old b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(251, 113, 133, 0.7); }
.scard .side-c.new b { color: var(--cyan); }
.scard .arrow { width: 54px; height: 54px; color: var(--cyan); }
.scard .same { display: inline-flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: #0a0c0f; border: 1px dashed rgba(34, 211, 238, 0.35); font-size: 13.5px; color: var(--muted); max-width: 100%; }
.scard .same .mono { color: var(--text); overflow: hidden; text-overflow: ellipsis; }

/* ---------- docs ---------- */
.doc { max-width: 760px; }
.doc h1 { font: 800 clamp(32px, 4.4vw, 48px)/1 var(--display); letter-spacing: -0.035em; margin: 18px 0 8px; }
.doc h2 { font: 700 24px/1.2 var(--display); letter-spacing: -0.02em; margin: 44px 0 10px; scroll-margin-top: 90px; }
.doc p, .doc li { color: #c3cbd6; }
.doc li { margin: 6px 0; }
.doc code { font-family: var(--mono); font-size: 0.92em; background: #12161b; padding: 2px 6px; border-radius: 6px; }
.doc a { color: var(--cyan); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.toc a:hover { color: var(--text); border-color: var(--line2); }
.rules { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rules .kv { padding: 10px 14px; border-top: 1px solid var(--line); margin: 0; }
.rules .kv:first-child { border-top: 0; }

footer.foot { margin-left: var(--side); padding: 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer.foot a:hover { color: var(--muted); }
[data-reveal] { opacity: 0; transform: translateY(18px); }

/* ---------- widths ---------- */
@media (max-width: 1180px) {
  .grid2, .launch { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --side: 0px; }
  .side { display: none; }
  .top .crumb { display: none; }
  .top .brand-m { display: flex; align-items: center; gap: 8px; }
  .top .brand-m img { width: 28px; height: 28px; }
  .top .brand-m b { font: 700 19px/1 var(--display); }
  main { padding: 16px 16px 110px; }
  footer.foot { padding: 20px 16px 100px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: 34px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx.w3, .bx.w2, .bx.w4 { grid-column: span 1; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 50; left: 10px; right: 10px; bottom: 10px; height: 62px; padding: 6px; border-radius: 20px; border: 1px solid var(--line2); background: rgba(12, 14, 17, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 14px; color: var(--muted); font-size: 11px; font-weight: 600; }
  .tabbar a svg { width: 19px; height: 19px; }
  .tabbar a[aria-current='page'] { color: var(--cyan); background: rgba(34, 211, 238, 0.08); }
  .toasts { bottom: 84px; left: 10px; right: 10px; }
  .toast { max-width: none; }
}
@media (max-width: 720px) {
  .ca .lbl { display: none; }
  .ca .val { max-width: 13ch; }
  .counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .count b { font-size: 21px; }
  .two, .three { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bx { min-height: 0; }
  .top { padding: 0 12px; gap: 8px; }
  .scard { padding: 24px 16px; }
}
@media (max-width: 420px) {
  .ca { padding-left: 10px; gap: 6px; }
  .ca .val { max-width: 9ch; font-size: 12px; }
  .ca .btn span { display: none; }
  .ca .btn { width: 32px; padding: 0; }
  .top .brand-m b { display: none; }
  .hero h1 { font-size: 40px; }
  .count { padding: 10px; }
  .count b { font-size: 19px; }
  .count span { font-size: 11.5px; line-height: 1.3; display: block; }
  .stat { padding: 12px; }
  .stat b { font-size: 16px; overflow-wrap: anywhere; }
  .keycap { width: 180px; height: 86px; }
  .top-r .icon-btn.x { display: none; }
}
@media (max-width: 340px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .counts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .tape-in { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
