/* =========================================================
   Launch site — dark neon theme
   ========================================================= */
:root {
  color-scheme: dark;
  --bg: #07060a;
  --bg-2: #0d0b13;
  --panel: rgba(19, 16, 27, 0.78);
  --panel-2: rgba(28, 24, 39, 0.82);
  --panel-solid: #13111b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f6f3ec;
  --muted: #a7a1b3;
  --dim: #6f6a7c;
  --lime: #c6ff3d;
  --lime-ink: #10140a;
  --cyan: #3de0ff;
  --pink: #ff3d8b;
  --violet: #7c5cff;
  --up: #3df2a0;
  --down: #ff5470;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --font-display: "Unbounded", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--lime); color: var(--lime-ink); }

/* ---------- background layers ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; pointer-events: none; }
.orbs { position: fixed; inset: 0; z-index: -4; pointer-events: none; overflow: hidden; }
.orbs i {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  will-change: transform;
}
.orbs i:nth-child(1) { left: -25vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(124, 92, 255, .30), transparent); animation: drift1 26s ease-in-out infinite alternate; }
.orbs i:nth-child(2) { right: -30vmax; top: 10vh; background: radial-gradient(closest-side, rgba(255, 61, 139, .20), transparent); animation: drift2 32s ease-in-out infinite alternate; }
.orbs i:nth-child(3) { left: 20vw; bottom: -45vmax; background: radial-gradient(closest-side, rgba(198, 255, 61, .13), transparent); animation: drift3 28s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(12vw, 10vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-14vw, 14vh) scale(.92); } }
@keyframes drift3 { to { transform: translate(-10vw, -12vh) scale(1.15); } }

.floor {
  position: fixed; left: -50%; right: -50%; bottom: -8vh; height: 55vh; z-index: -2; pointer-events: none;
  transform: perspective(420px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
          mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  overflow: hidden; opacity: .55;
}
.floor-lines {
  position: absolute; inset: -64px 0 0 0;
  background-image:
    linear-gradient(rgba(198, 255, 61, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, .18) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: floor 3.2s linear infinite;
  will-change: transform;
}
@keyframes floor { to { transform: translateY(64px); } }

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px max(var(--gutter), calc((100vw - 1240px) / 2));
  background: linear-gradient(to bottom, rgba(7, 6, 10, .92), rgba(7, 6, 10, .72));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--font-display); letter-spacing: -.01em; }
.logo-mark {
  position: relative; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lime), var(--cyan)); color: var(--bg); overflow: hidden;
  box-shadow: 0 0 24px rgba(198, 255, 61, .35);
  animation: markPulse 3.4s ease-in-out infinite;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.logo-mark.has-img svg { display: none; }
@keyframes markPulse { 50% { box-shadow: 0 0 36px rgba(198, 255, 61, .6); } }
.logo-text { background: linear-gradient(90deg, var(--text), #d9d3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-right { display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pill svg { width: 14px; height: 14px; fill: currentColor; }
.pill-x { transition: border-color .2s, background .2s, transform .2s var(--spring); }
.pill-x:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .08); transform: translateY(-1px); }
.sol-mark { width: 12px; height: 10px; background: linear-gradient(135deg, #9945ff, #14f195); clip-path: polygon(15% 0, 100% 0, 85% 30%, 0 30%, 15% 35%, 100% 35%, 85% 65%, 0 65%, 15% 70%, 100% 70%, 85% 100%, 0 100%); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; position: relative; isolation: isolate;
  transition: transform .25s var(--spring), box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 0 rgba(198, 255, 61, .4), 0 8px 30px -8px rgba(198, 255, 61, .55); overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); animation: sheen 3.6s ease-in-out infinite;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(198, 255, 61, .12), 0 14px 36px -8px rgba(198, 255, 61, .7); }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.btn-connect { height: 38px; padding: 0 16px; font-size: 13px; }
.wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); display: none; }
.btn-connect.connected .wallet-dot { display: block; background: var(--up); box-shadow: 0 0 10px var(--up); }

/* ---------- ticker tape ---------- */
.tape {
  position: relative; z-index: 5; height: 38px; overflow: hidden;
  border-bottom: 1px solid var(--line); background: rgba(10, 8, 15, .6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tape-track { display: flex; width: max-content; height: 100%; animation: marquee var(--dur, 60s) linear infinite; will-change: transform; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-seg { display: flex; align-items: center; }
.tape-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; height: 38px; font-size: 13px; white-space: nowrap; border-right: 1px solid var(--line); transition: background .2s; }
.tape-item:hover { background: rgba(255, 255, 255, .05); }
.tape-item b { font-weight: 700; }
.tape-item em { font-style: normal; color: var(--muted); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- layout ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 22px var(--gutter) 150px; }
.view { animation: viewIn .5s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

.panel {
  position: relative; background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
}
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 255, 61, .10), transparent 60%);
}
.spot:hover::before { opacity: 1; }

.reveal { opacity: 0; translate: 0 22px; transition: opacity .8s var(--ease), translate .9s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; }
/* Above-the-fold entrance: pure CSS, so it never depends on JS running. */
.enter { animation: enterUp .9s var(--ease) both; }
.hero-side .enter:nth-child(1) { animation-delay: .12s; }
.hero-side .enter:nth-child(2) { animation-delay: .24s; }
.toolbar.enter { animation-delay: .36s; }
@keyframes enterUp { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 18px; }
.hero-main { display: flex; flex-direction: column; justify-content: center; padding: 38px 34px 34px 40px; min-height: 430px; container: hero / inline-size; }
.hero-main::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 0% 0%, rgba(124, 92, 255, .22), transparent 70%), radial-gradient(500px 300px at 100% 100%, rgba(198, 255, 61, .08), transparent 70%);
}
.hero-copy { position: relative; z-index: 1; min-width: 0; max-width: 600px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; font: 700 11.5px/1 var(--font); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(61, 242, 160, .6); animation: ping 1.8s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 242, 160, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(61, 242, 160, 0); } }

.headline { margin: 0; font: 800 clamp(30px, 4vw, 54px)/1.04 var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
.headline .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.headline .w > span { display: inline-block; transform: translateY(105%); animation: rise .95s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
.headline .hl > span {
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--lime)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .95s var(--ease) forwards, shimmer 5s linear infinite;
  animation-delay: calc(var(--i) * 70ms + 120ms), 0s;
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
.tagline { margin: 18px 0 0; max-width: 46ch; color: var(--muted); font-size: 15.5px; opacity: 0; animation: fadeUp .8s var(--ease) .6s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* CA box */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.ca-box {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 10px;
  margin-top: 26px; max-width: 580px; padding: 8px 8px 8px 9px; border-radius: 18px;
  background: rgba(5, 4, 8, .72);
  opacity: 0; animation: fadeUp .8s var(--ease) .75s forwards;
}
.ca-box::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: 19.5px; z-index: -1; padding: 1.5px;
  background: conic-gradient(from var(--ang), var(--lime), var(--cyan), var(--violet), var(--pink), var(--lime));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 4s linear infinite;
}
.ca-box::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -2;
  box-shadow: 0 0 40px -6px rgba(198, 255, 61, .35); opacity: .7;
}
@keyframes spin { to { --ang: 360deg; } }
.ca-tag { flex: none; display: grid; place-items: center; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--lime); color: var(--lime-ink); font: 800 13px/1 var(--mono); letter-spacing: .04em; }
.ca-field { position: relative; flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; }
.ca-value { display: block; width: 100%; font: 600 14px/1 var(--mono); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: clip; user-select: all; color: var(--text); }
.ca-soon { display: none; }
.ca-box[data-state="pending"] .ca-value { color: var(--muted); filter: blur(3.5px); opacity: .55; user-select: none; }
.ca-box[data-state="pending"] .ca-soon {
  display: inline-flex; align-items: center; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 6px 12px; border-radius: 999px; background: rgba(7, 6, 10, .85); border: 1px solid var(--line-2);
  font: 800 11px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; color: var(--lime);
  animation: soonPulse 2s ease-in-out infinite;
}
@keyframes soonPulse { 50% { box-shadow: 0 0 22px rgba(198, 255, 61, .35); } }
.ca-copy {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-weight: 800; font-size: 13.5px;
  transition: transform .25s var(--spring), background .2s, color .2s;
}
.ca-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ca-copy .ic-check, .ca-copy .ic-lock { display: none; }
.ca-copy:not(:disabled):hover { transform: translateY(-1px) scale(1.03); background: var(--lime); color: var(--lime-ink); }
.ca-copy:disabled { background: rgba(255, 255, 255, .07); color: var(--dim); }
.ca-copy:disabled .ic-copy { display: none; }
.ca-copy:disabled .ic-lock { display: block; }
.ca-copy.copied { background: var(--up); color: #062014; }
.ca-copy.copied .ic-copy { display: none; }
.ca-copy.copied .ic-check { display: block; animation: pop .4s var(--spring); }
@keyframes pop { from { transform: scale(.3); } }
.ca-box.revealed::after { animation: caBoom 1.6s var(--ease); }
@keyframes caBoom { 0% { box-shadow: 0 0 0 0 rgba(198, 255, 61, .9); opacity: 1; } 100% { box-shadow: 0 0 0 26px rgba(198, 255, 61, 0); opacity: .7; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; opacity: 0; animation: fadeUp .8s var(--ease) .9s forwards; }

/* orbit */
.orbit {
  position: absolute; z-index: 0; right: -70px; top: 50%; width: 320px; height: 320px; margin-top: -160px; pointer-events: none;
  opacity: 0; animation: orbitIn 1.2s var(--ease) .3s forwards;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}
@keyframes orbitIn { from { opacity: 0; transform: scale(.8) rotate(-30deg); } to { opacity: 1; transform: none; } }
@container hero (max-width: 640px) {
  .orbit { right: -110px; top: -120px; margin-top: 0; width: 260px; height: 260px; animation: none; opacity: .35; }
  .orbit .orb { width: 46px; height: 46px; margin: -23px; transform: rotate(var(--a)) translateX(104px) rotate(calc(-1 * var(--a))); }
  .orbit-core { display: none; }
  .hero-copy { max-width: none; }
}
.orbit-glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(198, 255, 61, .35), transparent); animation: breathe 3.5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.25); opacity: .6; } }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); animation: orbitSpin 36s linear infinite; }
.orbit:hover .orbit-ring, .orbit:hover .orb img { animation-play-state: paused; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.orb {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px;
  transform: rotate(var(--a)) translateX(134px) rotate(calc(-1 * var(--a)));
  pointer-events: auto;
}
.orb img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .14); background: var(--panel-solid);
  animation: orbitSpin 36s linear infinite reverse; transition: transform .3s var(--spring), border-color .3s;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .5);
}
.orb:hover img { border-color: var(--lime); scale: 1.18; }
.orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 130px;
  padding: 10px 14px; border-radius: 16px; background: rgba(7, 6, 10, .8); border: 1px solid var(--line-2);
  font: 800 14px/1.1 var(--font-display); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  box-shadow: 0 0 30px rgba(198, 255, 61, .2);
}

/* hero side */
.hero-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.x-box {
  display: flex; align-items: center; gap: 16px; padding: 20px 20px 20px 22px; border-radius: var(--r-xl);
  transition: transform .35s var(--spring), border-color .3s, box-shadow .3s;
}
.x-box::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%);
  transform: translateX(-100%); animation: sweep 5s ease-in-out infinite 1.5s;
}
@keyframes sweep { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.x-box[href]:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .25); box-shadow: 0 20px 50px -20px rgba(124, 92, 255, .6); }
.x-logo { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--text); color: var(--bg); box-shadow: 0 10px 30px -8px rgba(255, 255, 255, .35); transition: transform .4s var(--spring); }
.x-box[href]:hover .x-logo { transform: rotate(-8deg) scale(1.06); }
.x-logo svg { width: 26px; height: 26px; fill: currentColor; }
.x-text { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.x-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.x-box { container: xbox / inline-size; }
.x-handle { font: 800 19px/1.15 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container xbox (max-width: 420px) {
  .x-handle { font-size: 16px; }
  .x-cta { padding: 0 12px; }
}
.x-cta {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink); font-weight: 800; font-size: 13px; transition: transform .3s var(--spring);
}
.x-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
.x-box[href]:hover .x-cta svg { transform: translate(2px, -2px); }
.x-box:not([href]) { cursor: default; }
.x-box:not([href]) .x-cta { background: rgba(255, 255, 255, .07); color: var(--dim); }
.x-box:not([href]) .x-handle { color: var(--muted); font-size: 16px; }

/* live card */
.live-card { flex: 1; padding: 24px; min-height: 280px; display: flex; flex-direction: column; }
.live-card > * { position: relative; z-index: 1; }
.ghost-text {
  position: absolute !important; z-index: 0 !important; left: 0; right: 0; bottom: -14px; display: flex; width: max-content; white-space: nowrap; pointer-events: none;
  font: 900 108px/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08);
  animation: marquee 26s linear infinite;
}
.ghost-text span { padding-right: .4em; }
.lc-head { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lc-head .lc-sub { margin-left: auto; letter-spacing: .02em; text-transform: none; font-weight: 600; color: var(--dim); }
.lc-label { margin-top: 18px; font-size: 13px; color: var(--muted); }
.lc-big { font: 800 clamp(34px, 3.6vw, 46px)/1.05 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip .k { color: var(--muted); font-weight: 600; }
.lc-spark { width: 100%; height: 70px; margin: 14px 0 6px; }
.lc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.lc-stats div { padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); min-width: 0; }
.lc-stats span { display: block; font-size: 11.5px; color: var(--muted); }
.lc-stats b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-center { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
.lc-center h3 { margin: 0; font: 800 26px/1.1 var(--font-display); letter-spacing: -.01em; }
.lc-center p { margin: 0; color: var(--muted); max-width: 34ch; }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 6px; }
.countdown div { padding: 12px 6px 10px; border-radius: 16px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); text-align: center; overflow: hidden; }
.countdown b { display: block; font: 800 30px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.countdown b.tick { animation: tick .45s var(--ease); }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; } }
.countdown span { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.radar { position: relative; width: 78px; height: 78px; margin-bottom: 6px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--lime); opacity: 0; animation: radar 2.6s var(--ease) infinite; }
.radar i:nth-child(2) { animation-delay: .85s; }
.radar i:nth-child(3) { animation-delay: 1.7s; }
.radar b { position: absolute; inset: 32%; border-radius: 50%; background: var(--lime); box-shadow: 0 0 24px var(--lime); }
@keyframes radar { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }

.pressure { position: relative; height: 5px; border-radius: 99px; background: rgba(255, 84, 112, .55); overflow: hidden; }
.pressure i { position: absolute; inset: 0 auto 0 0; width: var(--b, 50%); background: var(--up); border-radius: 99px; transition: width .8s var(--ease); }
.pressure-legend { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pressure-legend b { color: var(--text); }

/* ---------- toolbar ---------- */
.toolbar { position: relative; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 18px; }
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px 0 18px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: rgba(198, 255, 61, .55); box-shadow: 0 0 0 4px rgba(198, 255, 61, .1); }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--text); font: inherit; }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.search kbd { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--muted); font: 600 12px/1 var(--mono); }

.sorts { display: flex; align-items: center; gap: 4px; height: 50px; padding: 5px 5px 5px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); max-width: 100%; }
.sorts-label { color: var(--muted); font-size: 13.5px; margin-right: 6px; }
.sorts-track { position: relative; display: flex; align-items: center; gap: 2px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.sorts-track::-webkit-scrollbar { display: none; }
.sorts-ind { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line-2); transition: transform .45s var(--spring), width .45s var(--spring); }
.sorts button { position: relative; z-index: 1; height: 100%; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .2s; }
.sorts button:hover, .sorts button.active { color: var(--text); }
.sorts .dir { display: none; font-style: normal; margin-left: 2px; transition: transform .3s var(--spring); }
.sorts button.active .dir { display: inline-block; }
.sorts button.asc .dir { transform: rotate(180deg); }
.tool-btns { display: flex; gap: 10px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: border-color .2s, background .2s, color .2s;
}
.chip-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-btn:hover { border-color: var(--line-2); }
.chip-btn[aria-pressed="true"] { border-color: rgba(198, 255, 61, .55); color: var(--lime); }
.chip-btn[aria-pressed="true"] svg { fill: var(--lime); }
.filter-wrap { position: relative; }
.filter-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); font-size: 11px; }
.filter-pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 270px; padding: 16px; border-radius: 20px; z-index: 30;
  display: flex; flex-direction: column; gap: 12px; background: var(--panel-solid); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  transform-origin: top right; animation: popIn .25s var(--spring);
}
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(-6px); } }
.filter-pop label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.filter-pop select {
  height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 14px;
}
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { height: 32px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.seg button.active { background: rgba(255, 255, 255, .1); color: var(--text); }
.link-btn { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link-btn:hover { color: var(--text); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 168px; padding: 18px 18px 16px;
  border-radius: var(--r-lg); background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); overflow: hidden;
  opacity: 0; translate: 0 26px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: opacity .6s ease var(--d, 0ms), translate .8s var(--ease) var(--d, 0ms), transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.card.in { opacity: 1; translate: 0 0; }
.card:hover { border-color: rgba(255, 255, 255, .2); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(198, 255, 61, .06); }
.card-bg {
  position: absolute; z-index: -2; right: -12%; top: -14%; width: 68%; height: 128%; background-size: cover; background-position: center;
  opacity: .13; transition: opacity .4s, transform .6s var(--ease);
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent); mask-image: linear-gradient(to left, #000 35%, transparent);
}
.card:hover .card-bg { opacity: .24; transform: scale(1.06); }
.card-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 255, 61, .12), transparent 60%); }
.card:hover .card-glow { opacity: 1; }
.card-top { display: flex; align-items: center; gap: 8px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-solid); border: 1.5px solid rgba(255, 255, 255, .14); }
.avatar.fallback { display: grid; place-items: center; font: 800 15px/1 var(--font-display); color: var(--bg); background: linear-gradient(135deg, var(--lime), var(--cyan)); }
.badges { display: flex; gap: 5px; margin-left: 4px; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.badge-new { background: rgba(61, 224, 255, .14); color: var(--cyan); border: 1px solid rgba(61, 224, 255, .35); animation: blink 1.6s ease-in-out infinite; }
.badge-hot { background: rgba(255, 61, 139, .14); color: #ff7fb0; border: 1px solid rgba(255, 61, 139, .35); }
.badge-official { background: var(--lime); color: var(--lime-ink); }
@keyframes blink { 50% { opacity: .55; } }
.star { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--dim); transition: color .2s, background .2s, transform .3s var(--spring); }
.star svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.star:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.star[aria-pressed="true"] { color: var(--lime); }
.star[aria-pressed="true"] svg { fill: var(--lime); animation: pop .4s var(--spring); }
.card-id { display: flex; align-items: baseline; gap: 7px; margin-top: 14px; min-width: 0; font-size: 13.5px; }
.card-id b { font-weight: 800; white-space: nowrap; }
.card-id span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-mcap { margin-top: 2px; font: 800 30px/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .3s; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-meta b { color: var(--text); font-weight: 700; }
.card-meta i { font-style: normal; color: var(--dim); }
.card .pressure { margin-top: auto; height: 3px; opacity: .8; translate: 0 6px; }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
.chg { font-weight: 700; }

.card.official { border-color: rgba(198, 255, 61, .45); box-shadow: 0 0 0 1px rgba(198, 255, 61, .15), 0 0 40px -10px rgba(198, 255, 61, .35); }
.card.official::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(198, 255, 61, .12) 50%, transparent 65%);
  transform: translateX(-100%); animation: sweep 4s ease-in-out infinite;
}

.flash-up { animation: flashUp 1.3s var(--ease); }
.flash-down { animation: flashDown 1.3s var(--ease); }
.flash-up .card-mcap { animation: mcUp 1.3s var(--ease); }
.flash-down .card-mcap { animation: mcDown 1.3s var(--ease); }
@keyframes mcUp { 0%, 35% { color: var(--up); text-shadow: 0 0 18px rgba(61, 242, 160, .55); } }
@keyframes mcDown { 0%, 35% { color: var(--down); text-shadow: 0 0 18px rgba(255, 84, 112, .55); } }
@keyframes flashUp { 0% { box-shadow: 0 0 0 1px rgba(61, 242, 160, .8), 0 0 30px rgba(61, 242, 160, .35); } }
@keyframes flashDown { 0% { box-shadow: 0 0 0 1px rgba(255, 84, 112, .8), 0 0 30px rgba(255, 84, 112, .35); } }

.card.skeleton { pointer-events: none; opacity: 1; translate: 0 0; }
.card.skeleton::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%);
  background-size: 200% 100%; animation: skel 1.4s linear infinite;
}
.sk { border-radius: 8px; background: rgba(255, 255, 255, .06); }
@keyframes skel { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.empty { padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty .btn { margin-top: 14px; }
.more {
  display: block; width: 100%; height: 54px; margin-top: 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel);
  font-weight: 700; font-size: 14px; transition: background .2s, border-color .2s, transform .25s var(--spring);
}
.more:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }

.foot { max-width: 680px; margin: 34px auto 0; text-align: center; color: var(--dim); font-size: 12.5px; }
.foot p { margin: 0 0 14px; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.refresh-ring { display: inline-block; width: 12px; height: 12px; vertical-align: -2px; margin-right: 4px; }
.refresh-ring circle { fill: none; stroke-width: 3; }
.refresh-ring .bg { stroke: var(--line-2); }
.refresh-ring .fg { stroke: var(--lime); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 1s linear; }

/* ---------- dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  display: flex; gap: 6px; padding: 7px; border-radius: 22px;
  background: rgba(16, 14, 22, .82); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8);
  animation: dockIn .9s var(--spring) .6s both;
}
@keyframes dockIn { from { transform: translate(-50%, 120%); opacity: 0; } }
.dock button { position: relative; display: grid; place-items: center; width: 52px; height: 46px; border-radius: 15px; color: var(--muted); transition: background .2s, color .2s, transform .25s var(--spring); }
.dock button:hover { color: var(--text); transform: translateY(-3px); }
.dock button.active { background: rgba(255, 255, 255, .1); color: var(--text); }
.dock button.active::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.dock svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--gutter); }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 2, 6, .72); animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 32px; background: var(--panel-solid); animation: modalIn .45s var(--spring); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.modal-card h2 { margin: 0 0 18px; font: 800 26px/1.15 var(--font-display); }
.modal-x { position: absolute; top: 16px; right: 16px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--lime); color: var(--lime-ink); font: 800 13px/1 var(--font-display); }
.steps b { color: var(--text); }
.fine { margin: 18px 0 0; font-size: 12.5px; color: var(--dim); }

.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); transition: background .2s, transform .25s var(--spring); }
.icon-btn:hover { background: rgba(255, 255, 255, .09); transform: scale(1.06); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- toasts & confetti ---------- */
.toasts { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-weight: 700; font-size: 14px; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8); animation: toastIn .45s var(--spring);
}
.toast.lime { background: var(--lime); color: var(--lime-ink); }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.95); } }
.confetti { position: fixed; z-index: 100; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; will-change: transform, opacity; }

/* ---------- token view ---------- */
.tv { max-width: 800px; margin: 0 auto; }
.tv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.ca-chip {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 8px 0 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font: 600 13px/1 var(--mono); transition: border-color .2s, background .2s;
}
.ca-chip:hover { border-color: rgba(198, 255, 61, .5); background: rgba(198, 255, 61, .06); }
.ca-chip > span { padding: 5px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-size: 11px; font-weight: 700; color: var(--muted); }
.ca-chip svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tv-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tv-avatar { width: 58px; height: 58px; flex: none; }
.tv-avatar .avatar { width: 58px; height: 58px; border-radius: 16px; }
.tv-title { flex: 1; min-width: 0; }
.tv-title h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 800 28px/1.1 var(--font-display); letter-spacing: -.02em; }
.tv-title p { margin: 4px 0 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-card { padding: 18px; border-radius: var(--r-xl); }
.chart-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tfs { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.tfs button { height: 30px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.tfs button.active { background: rgba(255, 255, 255, .12); color: var(--text); }
.chart-val { text-align: right; }
.mode-btn { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.mode-btn:hover { color: var(--text); }
.chart-val b { display: block; font: 800 24px/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.chart-val small { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart-wrap { position: relative; height: 300px; margin-top: 10px; }
.chart-wrap canvas { width: 100%; height: 100%; touch-action: pan-y; }
.chart-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; pointer-events: none; }
.chart-tip {
  position: absolute; top: 0; padding: 6px 10px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700;
  white-space: nowrap; pointer-events: none; transform: translateX(-50%); font-variant-numeric: tabular-nums;
}
.chart-tip span { display: block; font-weight: 600; opacity: .65; font-size: 11px; }
.chart-src { margin: 8px 0 0; font-size: 12px; color: var(--dim); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.stat { padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); min-width: 0; animation: fadeUp .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.stat span { display: block; font-size: 12.5px; color: var(--muted); }
.stat b { display: block; margin-top: 4px; font: 800 20px/1.2 var(--font-display); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-block { margin-top: 14px; padding: 20px; border-radius: var(--r-lg); }
.tv-block h3 { margin: 0 0 12px; font: 800 16px/1.2 var(--font-display); }
.about { margin: 0; display: grid; gap: 0; }
.about div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.about div:last-child { border-bottom: 0; }
.about dt { color: var(--muted); }
.about dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.about dd.mono { font-family: var(--mono); font-size: 13px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.links a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; transition: border-color .2s, background .2s; }
.links a:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }
.tv-note { margin: 16px 0 0; font-size: 12.5px; color: var(--dim); text-align: center; }
.actionbar {
  position: sticky; bottom: 92px; z-index: 20; display: flex; gap: 10px; margin-top: 20px; padding: 8px; border-radius: 22px;
  background: rgba(16, 14, 22, .86); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .8);
}
.actionbar .btn { height: 50px; }
.actionbar .btn-primary { flex: 1; }
.watch-btn svg { fill: none; }
.watch-btn[aria-pressed="true"] { color: var(--lime); border-color: rgba(198, 255, 61, .5); }
.watch-btn[aria-pressed="true"] svg { fill: var(--lime); stroke: var(--lime); }
.tv-error { padding: 60px 20px; text-align: center; }
.tv-error h2 { font: 800 24px/1.2 var(--font-display); margin: 0 0 8px; }
.tv-error p { color: var(--muted); margin: 0 0 18px; }

/* view transitions */
::view-transition-old(root) { animation: vtOut .22s ease both; }
::view-transition-new(root) { animation: vtIn .38s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- admin ---------- */
.admin-wrap { max-width: 760px; margin: 0 auto; padding: 28px var(--gutter) 80px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.admin-card { padding: 26px; margin-bottom: 16px; }
.admin-card h1, .admin-card h2 { margin: 0 0 6px; font: 800 22px/1.2 var(--font-display); }
.admin-card > p { margin: 0 0 18px; color: var(--muted); }
.admin-card code { font-family: var(--mono); font-size: 13px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; }
.field small { color: var(--dim); font-size: 12px; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  font: inherit; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: rgba(198, 255, 61, .6); box-shadow: 0 0 0 4px rgba(198, 255, 61, .1); }
.input.mono { font-family: var(--mono); font-size: 14px; }
textarea.input { height: auto; min-height: 80px; padding: 12px 14px; resize: vertical; }
.row { display: flex; gap: 10px; }
.row .input { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.msg { min-height: 20px; margin: 10px 0 0; font-size: 13.5px; font-weight: 600; }
.msg.err { color: var(--down); }
.msg.ok { color: var(--up); }
.status-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.status-list dt { color: var(--muted); }
.status-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ca-drop { border-color: rgba(198, 255, 61, .35); }
.preview-ca { margin-top: 14px; }
.preview-ca .ca-box { opacity: 1; animation: none; margin-top: 0; max-width: none; }
.admin-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .live-card { min-height: 260px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .hero-main { padding: 28px 22px 24px; min-height: 0; }
  .pill-chain { display: none; }
  .toolbar { gap: 8px; }
  .search { flex-basis: 100%; }
  .sorts { flex: 1 1 100%; padding-left: 14px; }
  .tool-btns { flex: 1 1 100%; }
  .tool-btns > * { flex: 1; }
  .chip-btn { width: 100%; justify-content: center; }
  .filter-pop { left: auto; right: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav { padding-top: 12px; padding-bottom: 12px; }
  .logo { font-size: 17px; }
  .logo-mark { width: 30px; height: 30px; }
  .pill-x span { display: none; }
  .pill-x { width: 34px; padding: 0; justify-content: center; }
  .grid { grid-template-columns: 1fr; }
  .ca-box { padding: 6px; gap: 6px; border-radius: 16px; }
  .ca-tag { height: 38px; padding: 0 9px; font-size: 12px; }
  .ca-field { height: 38px; }
  .ca-value { font-size: 12.5px; }
  .ca-copy { height: 38px; padding: 0 12px; }
  .ca-copy .lbl { display: none; }
  .x-box { padding: 16px; gap: 12px; }
  .x-logo { width: 48px; height: 48px; border-radius: 14px; }
  .x-handle { font-size: 16px; }
  .x-cta { padding: 0 12px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .lc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .lc-stats div { padding: 8px 9px; }
  .countdown b { font-size: 24px; }
  .chart-wrap { height: 240px; }
  .tv-title h2 { font-size: 23px; }
  .actionbar { bottom: 86px; }
  .modal-card { padding: 26px 20px; }
  .row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .floor, #bg { display: none; }
}
