/* =========================================================================
   GTA Paid — styles
   Palette: night violet, dusk plum, flamingo accent, sunset gold/tangerine
   ========================================================================= */
:root {
  --night: #1b0a30;
  --deep: #12061f;
  --dusk: #2d0f4a;
  --plum: #4a1660;
  --accent: #ff3e9a;
  --accent-soft: rgba(255, 62, 154, 0.16);
  --gold: #ffc94a;
  --tangerine: #ff7a45;
  --foam: #fff3f8;
  --muted: #dcc3e6;
  --faint: rgba(255, 243, 248, 0.62);
  --line: rgba(255, 214, 236, 0.15);
  --up: #3ef0c0;
  --down: #ff6b6b;

  --head: 'SharkHead', 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Familjen Grotesk', system-ui, sans-serif;

  --maxw: 1480px;
  --gutter: clamp(20px, 4vw, 56px);
  --r-panel: 28px;
  --r-box: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --horizon: 56%;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--foam);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.intro-lock { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 34px; height: 34px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------------- Type ---------------- */
.h1, .h2, .h3, .hero-title, .brand-name, .intro-word, .m-name, .statbox b { font-family: var(--head); font-style: normal; }
.h1 { font-size: clamp(56px, 7vw, 116px); line-height: 0.92; font-weight: 800; letter-spacing: 0.005em; margin: 0; }
.h2 { font-size: clamp(34px, 3.4vw, 54px); line-height: 1; font-weight: 800; margin: 0 0 20px; }
.h3 { font-size: 26px; line-height: 1.1; font-weight: 800; margin: 0 0 14px; }
.stop { color: var(--accent); font-weight: inherit; }
.lede { font-size: 21px; max-width: 62ch; color: var(--muted); margin: 18px 0 0; }
.hint { font-size: 16px; color: var(--faint); margin: 10px 0 0; }
.up { color: var(--up); }
.down { color: var(--down); }
sub { font-size: 0.7em; vertical-align: -0.25em; }

/* ---------------- Cursor ---------------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-ring, .cursor-trail { position: fixed; pointer-events: none; z-index: 10000; opacity: 0; transition: opacity 0.3s; }
html.cursor-on .cursor-dot, html.cursor-on .cursor-ring, html.cursor-on .cursor-trail { opacity: 1; }
.cursor-trail { inset: 0; width: 100vw; height: 100vh; z-index: 9999; mix-blend-mode: screen; }
.cursor-dot { left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.cursor-ring {
  left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255, 243, 248, 0.75);
  transition: opacity 0.3s, width 0.25s var(--ease), height 0.25s var(--ease), left 0.25s var(--ease), top 0.25s var(--ease), border-radius 0.25s, background 0.25s, border-color 0.25s;
}
.cursor-ring.hot { width: 72px; height: 72px; left: -36px; top: -36px; border-color: var(--accent); background: rgba(255, 62, 154, 0.12); }
.cursor-ring.text { width: 4px; height: 34px; left: -2px; top: -17px; border-radius: 2px; background: var(--accent); border-color: transparent; }
.cursor-ring.down { width: 30px; height: 30px; left: -15px; top: -15px; }

/* ---------------- Intro ---------------- */
.intro {
  position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center;
  background: var(--deep); overflow: hidden;
  transition: clip-path 1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.intro.leaving { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #0f041c 0%, #2d0f4a 40%, #7a1d6e 58%, #1b0a30 58.2%, #12061f 100%); }
.intro-sun {
  position: absolute; left: 50%; top: 58%; width: min(62vmin, 620px); aspect-ratio: 1; border-radius: 50%;
  translate: -50% 10%;
  background: linear-gradient(180deg, #ffe08a, var(--gold) 35%, var(--tangerine) 65%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 28%, transparent 28% 30%, #000 30% 35%, transparent 35% 38%, #000 38% 42%, transparent 42% 46%, #000 46% 49%, transparent 49%);
  mask: linear-gradient(#000 0 28%, transparent 28% 30%, #000 30% 35%, transparent 35% 38%, #000 38% 42%, transparent 42% 46%, #000 46% 49%, transparent 49%);
  opacity: 0; transition: translate 2.4s var(--ease), opacity 1.2s;
}
.intro.play .intro-sun { translate: -50% -50%; opacity: 1; }
.intro-floor {
  position: absolute; left: -50%; right: -50%; top: 58%; bottom: -40%;
  background-image: linear-gradient(var(--accent) 2px, transparent 2px), linear-gradient(90deg, var(--accent) 2px, transparent 2px);
  background-size: 80px 80px; transform: perspective(400px) rotateX(70deg); transform-origin: top;
  opacity: 0; transition: opacity 1.6s 0.4s; animation: floor 1.4s linear infinite;
  -webkit-mask: linear-gradient(transparent, #000 30%); mask: linear-gradient(transparent, #000 30%);
}
.intro.play .intro-floor { opacity: 0.55; }
@keyframes floor { to { background-position: 0 80px; } }
.intro-cards { position: absolute; inset: 0; perspective: 1000px; pointer-events: none; }
.icard {
  position: absolute; left: var(--x); top: var(--y); width: calc(240px * var(--s)); aspect-ratio: 1.586;
  font-size: calc(16px * var(--s));
  transform: translate(-50%, -50%) translate(calc(var(--mx, 0) * var(--p) * -1px), calc(var(--my, 0) * var(--p) * -1px));
  opacity: 0; filter: blur(calc((1 - var(--s)) * 2.2px));
  transition: opacity 1.4s var(--d), transform 0.8s var(--ease);
}
.intro.play .icard { opacity: calc(0.45 + var(--s) * 0.5); }
.icard-in {
  position: relative; width: 100%; height: 100%; border-radius: 9% / 14%; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--tangerine) 60%, var(--gold));
  box-shadow: 0 20px 50px -18px rgba(255, 62, 154, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  animation: icFloat var(--t) ease-in-out infinite alternate;
}
.icard-in::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 48%, transparent 60%); mix-blend-mode: soft-light; }
.icard-in b { position: absolute; left: 9%; top: 10%; font-family: var(--head); font-weight: 900; font-size: 1.6em; line-height: 1; color: #fff; }
.icard-chip { position: absolute; left: 9%; top: 44%; width: 17%; height: 22%; border-radius: 12%; background: linear-gradient(135deg, #ffe7a6, #d99a2b); }
.icard-fin { position: absolute; right: 7%; bottom: 8%; width: 36%; height: 50%; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes icFloat {
  from { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) translateY(-10px); }
  to { transform: rotateX(calc(var(--rx) + 16deg)) rotateY(calc(var(--ry) + 38deg)) rotateZ(calc(var(--rz) - 7deg)) translateY(12px); }
}
.intro-inner { position: relative; display: grid; justify-items: center; gap: 26px; text-align: center; padding: 24px; }
.intro-mark { width: 84px; height: 84px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.8s var(--ease); filter: drop-shadow(0 0 14px rgba(255, 62, 154, 0.8)); }
.intro.play .intro-mark { stroke-dashoffset: 0; }
.intro-word { margin: 0; font-size: clamp(64px, 12vw, 180px); font-weight: 900; line-height: 0.9; letter-spacing: 0.01em; white-space: nowrap; }
.intro-word span { display: inline-block; opacity: 0; transform: translateY(40%); transition: opacity 0.6s, transform 0.9s var(--ease); transition-delay: calc(0.5s + var(--i) * 70ms); text-shadow: 0 0 40px rgba(255, 62, 154, 0.55); }
.intro.play .intro-word span { opacity: 1; transform: none; }
.intro-tune { display: flex; align-items: center; gap: 16px; font-size: 18px; color: var(--muted); opacity: 0; transition: opacity 0.6s 0.9s; }
.intro.play .intro-tune { opacity: 1; }
.intro-freq { font-family: var(--head); font-size: 30px; font-weight: 800; color: var(--foam); min-width: 3.4em; text-align: right; font-variant-numeric: tabular-nums; }
.intro-bar { width: min(320px, 50vw); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.intro-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--accent); }
.intro.locked .intro-state { color: var(--accent); }
.intro-enter { animation: enterIn 0.7s var(--ease) both; min-width: 220px; }
@keyframes enterIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } }

/* ---------------- Background ---------------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; transition: filter 0.8s, opacity 0.8s; }
.sky-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 40% var(--horizon), rgba(255, 122, 69, 0.55), transparent 70%),
    linear-gradient(180deg, #0f041c 0%, #2d0f4a calc(var(--horizon) * 0.5), #7a1d6e calc(var(--horizon) - 8%), #c22d7c var(--horizon), var(--night) var(--horizon), #12061f 100%);
}
.sun {
  position: absolute; left: 38%; top: var(--horizon); width: min(56vmin, 600px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: linear-gradient(180deg, #ffe7a0, var(--gold) 30%, var(--tangerine) 62%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 28%, transparent 28% 30%, #000 30% 35%, transparent 35% 38%, #000 38% 42%, transparent 42% 46%, #000 46% 49%, transparent 49%);
  mask: linear-gradient(#000 0 28%, transparent 28% 30%, #000 30% 35%, transparent 35% 38%, #000 38% 42%, transparent 42% 46%, #000 46% 49%, transparent 49%);
  filter: drop-shadow(0 0 60px rgba(255, 122, 69, 0.5));
}
.skyline-bg { position: absolute; left: 0; right: 0; bottom: calc(100% - var(--horizon)); width: 100%; height: 16vh; }
.skyline-bg .sk-b { fill: #1f0a35; }
.skyline-bg .sk-w { fill: var(--gold); opacity: 0.7; }
.sea { position: absolute; left: 0; right: 0; top: var(--horizon); height: 2px; background: linear-gradient(90deg, transparent, var(--gold), var(--accent), transparent); opacity: 0.8; }
.css-floor { display: none; }
html.no-webgl .css-floor {
  display: block; position: absolute; left: -50%; right: -50%; top: var(--horizon); bottom: -40%;
  background-image: linear-gradient(rgba(255, 62, 154, 0.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 62, 154, 0.7) 1px, transparent 1px);
  background-size: 70px 70px; transform: perspective(360px) rotateX(72deg); transform-origin: top;
  -webkit-mask: linear-gradient(transparent, #000 30%); mask: linear-gradient(transparent, #000 30%); animation: floor 1.6s linear infinite;
}
body:not([data-page='home']) .sky { opacity: 0.62; filter: saturate(0.85) blur(1px); }
.scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.07; 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 baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--accent); }

/* ---------------- Buttons & chips ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 58px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 18px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn-xl { height: 70px; padding: 0 38px; font-size: 20px; }
.btn-sm { height: 46px; padding: 0 18px; font-size: 16px; gap: 8px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 40px -10px rgba(255, 62, 154, 0.8); }
.btn-primary:hover { background: #ff5aaa; box-shadow: 0 14px 50px -8px rgba(255, 62, 154, 0.95); }
.btn-ghost { background: rgba(27, 10, 48, 0.4); border-color: rgba(255, 243, 248, 0.32); color: var(--foam); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn:disabled { opacity: 0.55; pointer-events: none; }
.btn-wallet { height: 54px; background: rgba(27, 10, 48, 0.55); border-color: var(--accent); color: var(--foam); backdrop-filter: blur(12px); }
.btn-wallet:hover, .btn-wallet.connected { background: var(--accent-soft); }

.chip {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: 999px;
  background: rgba(27, 10, 48, 0.55); border: 1.5px solid var(--line); backdrop-filter: blur(12px); cursor: pointer; font-size: 17px;
  transition: border-color 0.2s;
}
.chip:hover { border-color: var(--accent); }
.chip-label { font-family: var(--head); font-weight: 800; color: var(--accent); font-size: 19px; }
.chip-value { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.big { height: 62px; width: 100%; justify-content: space-between; margin-bottom: 28px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(27, 10, 48, 0.55); border: 1.5px solid var(--line); backdrop-filter: blur(12px); cursor: pointer; text-decoration: none; transition: border-color 0.2s;
}
.icon-btn:hover { border-color: var(--accent); }

/* ---------------- Top bar ---------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  background: linear-gradient(180deg, rgba(18, 6, 31, 0.7), transparent);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(140deg, var(--accent), var(--tangerine) 70%, var(--gold)); box-shadow: 0 8px 30px -8px rgba(255, 62, 154, 0.9); }
.brand-mark svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: 0.01em; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.wallet-wrap { position: relative; }
.wallet-pop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; border-radius: 18px;
  background: rgba(27, 10, 48, 0.92); border: 1px solid var(--line); backdrop-filter: blur(18px); display: grid; gap: 2px;
}
.wallet-pop button, .wallet-pop a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: none; border: 0; text-decoration: none; font-size: 17px; text-align: left; cursor: pointer; }
.wallet-pop button:hover, .wallet-pop a:hover { background: var(--accent-soft); }

/* Sound button */
.sound-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 20px 0 18px; border-radius: 999px;
  background: rgba(27, 10, 48, 0.55); border: 1.5px solid var(--accent); backdrop-filter: blur(12px);
  font-size: 17px; font-weight: 600; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.sound-btn:hover { background: var(--accent-soft); }
.sound-btn .ic-off { display: none; }
.sound-btn.muted { border-color: rgba(255, 243, 248, 0.32); color: var(--muted); }
.sound-btn.muted .ic-on { display: none; }
.sound-btn.muted .ic-off { display: block; }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--accent); }
.sound-btn.playing .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.sound-btn.playing .eq i:nth-child(2) { animation-delay: -0.3s; }
.sound-btn.playing .eq i:nth-child(3) { animation-delay: -0.6s; }
.sound-btn.playing .eq i:nth-child(4) { animation-delay: -0.15s; }
.sound-btn.muted .eq { display: none; }
@keyframes eq { from { height: 4px; } to { height: 18px; } }

/* ---------------- Pages & panels ---------------- */
main { position: relative; z-index: 5; padding: 150px 0 170px; }
.page-home { margin-top: -150px; }
.page-head { margin-bottom: 48px; }
.head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.panel {
  position: relative; border-radius: var(--r-panel); padding: clamp(24px, 3vw, 44px);
  background: linear-gradient(160deg, rgba(74, 22, 96, 0.44), rgba(27, 10, 48, 0.4));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.panel::before {
  content: ''; position: absolute; left: -1px; top: -1px; width: 72px; height: 72px; pointer-events: none;
  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-top-left-radius: var(--r-panel);
}

.statbox { background: var(--deep); border-radius: var(--r-box); border-top: 2px solid var(--accent); padding: 18px 20px 16px; display: grid; gap: 4px; }
.statbox b { font-size: clamp(36px, 3.2vw, 52px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.statbox span { font-size: 16px; color: var(--faint); line-height: 1.35; }

.tune-in.play { animation: tuneIn 0.9s var(--ease) both; }
.tune-in.play .ln { animation: lineIn 0.9s var(--ease) both; }
.tune-in.play .ln:nth-child(2) { animation-delay: 0.08s; }
.tune-in.play .ln:nth-child(3) { animation-delay: 0.16s; }
@keyframes tuneIn {
  0% { clip-path: inset(0 100% 0 0); text-shadow: -6px 0 rgba(62, 240, 192, 0.7), 6px 0 rgba(255, 62, 154, 0.7); }
  60% { text-shadow: -2px 0 rgba(62, 240, 192, 0.5), 2px 0 rgba(255, 62, 154, 0.5); }
  100% { clip-path: inset(0 0 0 0); text-shadow: none; }
}
@keyframes lineIn { from { transform: translateY(30%); opacity: 0; } }

/* ---------------- Home ---------------- */
.hero { min-height: calc(100svh - 140px); display: flex; flex-direction: column; justify-content: center; padding: 150px 0 40px clamp(0px, 30%, 460px); }
.hero-glass {
  position: relative; align-self: flex-start; max-width: 100%;
  padding: clamp(28px, 3.4vw, 56px) clamp(28px, 3.6vw, 60px);
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(45, 15, 74, 0.62), rgba(18, 6, 31, 0.55));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.hero-glass::before {
  content: ''; position: absolute; left: -1px; top: -1px; width: 84px; height: 84px; pointer-events: none;
  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-top-left-radius: 36px;
}
.game-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; font-size: 18px; color: var(--muted); }
.game-badge {
  display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 12px;
  font-family: var(--head); font-weight: 900; font-size: 26px; letter-spacing: 0.02em; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--tangerine)); box-shadow: 0 8px 26px -10px rgba(255, 62, 154, 0.9);
}
.hero-title { font-size: clamp(44px, 5.4vw, 112px); font-weight: 900; line-height: 0.98; letter-spacing: 0.005em; margin: 0; text-shadow: 0 10px 60px rgba(27, 10, 48, 0.6); }
.hero-title .ln { display: block; white-space: nowrap; }
.hero-sub { font-size: 21px; color: var(--foam); max-width: 40ch; margin: 30px 0 0; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

.tape { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: rgba(18, 6, 31, 0.55); backdrop-filter: blur(10px); padding: 14px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tape-track { display: flex; gap: 44px; width: max-content; animation: tape 60s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; gap: 10px; font-size: 18px; }
.tape-item b { font-family: var(--head); font-weight: 800; font-size: 21px; }
.tape-item i { font-style: normal; font-variant-numeric: tabular-nums; }
.tape-item i.up { color: var(--up); }
.tape-item i.down { color: var(--down); }
@keyframes tape { to { transform: translateX(-50%); } }

.home-below { padding-top: 120px; }
.steps3-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps3-list a { position: relative; display: grid; gap: 12px; padding: 30px; height: 100%; border-radius: 20px; background: rgba(18, 6, 31, 0.5); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.25s, transform 0.35s var(--ease); }
.steps3-list a:hover { border-color: var(--accent); transform: translateY(-4px); }
.steps3-list .n { position: absolute; right: 24px; top: 18px; font-family: var(--head); font-weight: 800; font-size: 56px; color: rgba(255, 62, 154, 0.35); line-height: 1; }
.steps3-list strong { font-family: var(--head); font-size: 34px; font-weight: 800; }
.steps3-list span:last-child { color: var(--muted); }

/* ---------------- Accordion ---------------- */
.accordion { display: grid; gap: 12px; }
.acc-item { border-radius: 20px; background: rgba(27, 10, 48, 0.5); border: 1px solid var(--line); backdrop-filter: blur(18px); transition: border-color 0.3s, background 0.3s; }
.acc-item.open { border-color: rgba(255, 62, 154, 0.6); background: rgba(45, 15, 74, 0.6); }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 18px; padding: 24px 26px; background: none; border: 0; text-align: left; font-size: 21px; font-weight: 600; cursor: pointer; }
.acc-btn span:first-child { flex: 1; }
.acc-btn .chev { transition: transform 0.35s var(--ease); margin-left: auto; }
.acc-item.open .chev { transform: rotate(180deg); color: var(--accent); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; padding: 0 26px; }
.acc-item.open .acc-body > div { padding-bottom: 26px; }
.acc-body p { margin: 0 0 18px; color: var(--muted); max-width: 60ch; }

.big-acc .acc-btn { padding: 28px 30px; font-size: 24px; }
.acc-n { font-family: var(--head); font-weight: 800; font-size: 30px; color: var(--faint); width: 1.2em; }
.acc-item.open .acc-n, .acc-item.open .ic-lg { color: var(--accent); }
.acc-title { font-family: var(--head); font-weight: 800; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.05; flex: 1; }
.big-acc .acc-body > div { padding-inline: 30px 30px; }
.big-acc .statbox { max-width: 420px; }

/* ---------------- Fee route ---------------- */
.route-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.route-visual { position: sticky; top: 130px; padding: 24px; }
.route-svg { width: 100%; height: auto; display: block; max-height: calc(100vh - 300px); }
.r-base { fill: none; stroke: rgba(255, 243, 248, 0.14); stroke-width: 3; }
.r-flow { fill: none; stroke: rgba(255, 201, 74, 0.45); stroke-width: 3; stroke-dasharray: 2 14; stroke-linecap: round; animation: flow 1.4s linear infinite; }
.r-done { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255, 62, 154, 0.7)); }
@keyframes flow { to { stroke-dashoffset: -32; } }
.r-node { cursor: pointer; }
.r-dot { fill: var(--deep); stroke: rgba(255, 243, 248, 0.3); stroke-width: 2; transition: stroke 0.3s, fill 0.3s; }
.r-halo { fill: var(--accent); opacity: 0; transform: scale(0.7); transition: opacity 0.4s, transform 0.5s var(--ease); }
.r-ic { color: var(--faint); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: color 0.3s; }
.r-lbl { fill: var(--faint); font-family: var(--head); font-size: 26px; font-weight: 800; transition: fill 0.3s; }
.r-node.past .r-dot { stroke: var(--accent); }
.r-node.past .r-ic { color: var(--foam); }
.r-node.on .r-dot { fill: var(--accent); stroke: #fff; }
.r-node.on .r-halo { opacity: 0.25; transform: scale(1); }
.r-node.on .r-ic { color: #fff; }
.r-node.on .r-lbl { fill: var(--foam); }
.r-packet { fill: var(--gold); }

/* ---------------- Forms ---------------- */
fieldset { border: 0; margin: 0 0 34px; padding: 0; min-width: 0; }
legend { display: flex; align-items: center; gap: 14px; font-family: var(--head); font-weight: 800; font-size: 32px; margin-bottom: 20px; padding: 0; }
legend .n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 24px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; min-width: 0; }
.field > span { font-size: 17px; font-weight: 600; color: var(--muted); }
.field em { font-style: normal; font-weight: 400; color: var(--faint); font-size: 15px; margin-left: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row > .field-sm { max-width: none; }
.field-row:has(.field-sm) { grid-template-columns: 1fr 200px; }
.field-row:has(> .field-sm:first-child) { grid-template-columns: 200px 1fr; }
input:not([type=checkbox]):not([type=file]), textarea, select {
  width: 100%; min-height: 62px; padding: 16px 20px; border-radius: 16px; font-size: 18px;
  background: rgba(18, 6, 31, 0.65); border: 1.5px solid var(--line); color: var(--foam); transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: rgba(255, 243, 248, 0.38); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(18, 6, 31, 0.65); border: 1.5px solid var(--line); margin-bottom: 18px; }
.seg button { height: 50px; padding: 0 20px; border-radius: 13px; border: 0; background: none; font-size: 17px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg button:hover { color: var(--foam); }
.seg button[aria-pressed='true'], .seg button[aria-checked='true'] { background: var(--accent); color: #fff; }

.drop { display: flex; align-items: center; gap: 20px; padding: 22px; border-radius: 18px; border: 2px dashed rgba(255, 243, 248, 0.25); background: rgba(18, 6, 31, 0.45); cursor: pointer; margin-bottom: 18px; transition: border-color 0.2s, background 0.2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop div { display: grid; flex: 1; }
.drop span { color: var(--faint); font-size: 16px; }
.drop-img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.drop.has { border-style: solid; border-color: rgba(255, 62, 154, 0.5); }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; color: var(--muted); margin: 6px 0 20px; cursor: pointer; }
.check input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-error { padding: 14px 18px; border-radius: 14px; background: rgba(255, 107, 107, 0.14); border: 1px solid rgba(255, 107, 107, 0.5); color: #ffd1d1; margin-bottom: 18px; font-size: 17px; }

/* ---------------- Launch ---------------- */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.launch-preview { position: sticky; top: 130px; display: grid; gap: 24px; }
.pcard { perspective: 1200px; --rx: 0deg; --ry: 0deg; --gx: 50%; }
.pcard-face {
  position: relative; aspect-ratio: 1.586; border-radius: 28px; padding: 30px; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(135deg, var(--accent), var(--tangerine) 60%, var(--gold));
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.4s var(--ease);
  box-shadow: 0 40px 80px -30px rgba(255, 62, 154, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.pcard-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) calc(var(--gx) - 5%), transparent calc(var(--gx) + 15%)); mix-blend-mode: soft-light; pointer-events: none; }
.pcard-top { display: flex; align-items: center; gap: 18px; }
.pcard-img { width: 84px; height: 84px; border-radius: 20px; background: rgba(27, 10, 48, 0.35); display: grid; place-items: center; overflow: hidden; flex: none; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-img img:not([hidden]) + svg { display: none; }
.pcard-name { font-family: var(--head); font-weight: 900; font-size: clamp(30px, 3vw, 46px); line-height: 1; overflow-wrap: anywhere; }
.pcard-sym { font-weight: 700; font-size: 20px; opacity: 0.9; }
.pcard-desc { margin: 0; font-size: 17px; color: rgba(255, 255, 255, 0.92); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-route { margin-top: auto; display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 16px; background: rgba(27, 10, 48, 0.45); backdrop-filter: blur(6px); }
.pcard-route div { display: grid; line-height: 1.2; }
.pcard-route span { font-size: 14px; opacity: 0.8; }
.pcard-route strong { font-size: 20px; letter-spacing: 0.06em; }
.pcard-route em { font-style: normal; font-size: 15px; opacity: 0.85; }
.next-list { margin: 0; padding-left: 22px; color: var(--muted); display: grid; gap: 8px; }

/* ---------------- Board ---------------- */
.refresh { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 16px; }
.refresh svg { width: 36px; height: 36px; transform: rotate(-90deg); }
.refresh circle { fill: none; stroke: rgba(255, 255, 255, 0.15); stroke-width: 3; }
.refresh circle.ring { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.board-tools { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.board-tools .seg { margin: 0; }
.search { position: relative; flex: 1; max-width: 460px; min-width: 240px; }
.search .ic { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--faint); }
.search input { padding-left: 52px !important; }
.board-head, .row { display: grid; grid-template-columns: minmax(200px, 2.2fr) 1fr 0.8fr 1fr 1fr 1fr 150px; gap: 16px; align-items: center; }
.board-head { padding: 12px 20px; font-size: 15px; color: var(--faint); border-bottom: 1px solid var(--line); }
.board-head span:not(:first-child) { text-align: right; }
.board-list { display: grid; }
.row { width: 100%; padding: 14px 20px; border: 0; border-bottom: 1px solid rgba(255, 214, 236, 0.07); background: none; text-align: left; cursor: pointer; font-size: 18px; border-radius: 14px; transition: background 0.2s; animation: rowIn 0.5s var(--ease) both; animation-delay: var(--d); }
.row:hover { background: rgba(255, 62, 154, 0.08); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.tok { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tok-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--plum); }
.tok-img.lg { width: 72px; height: 72px; border-radius: 18px; }
.tok-img.ph { display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--accent); }
.tok-txt { display: grid; min-width: 0; line-height: 1.2; }
.tok-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-txt small { color: var(--faint); font-size: 15px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.sp { display: block; height: 40px; }
.spark { width: 100%; height: 40px; display: block; }
.empty { padding: 40px 20px; text-align: center; color: var(--faint); }

/* ---------------- Skyline ---------------- */
.skyline-panel { padding: clamp(16px, 2vw, 28px); }
.skyline-stage { position: relative; border-radius: 20px; overflow: hidden; background: radial-gradient(70% 70% at 50% 100%, rgba(255, 62, 154, 0.25), transparent 70%), linear-gradient(180deg, rgba(18, 6, 31, 0.7), rgba(45, 15, 74, 0.6)); }
#skySvg { width: 100%; height: auto; display: block; }
.bld { cursor: pointer; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform 1.1s var(--ease), opacity 0.3s; transition-delay: var(--d); }
.risen .bld { transform: scaleY(1); }
.bld .roof { fill: var(--up); }
.bld.down .roof { fill: var(--down); }
.bld .win rect { fill: var(--gold); opacity: 0.85; }
.bld .ant { stroke: rgba(255, 243, 248, 0.6); stroke-width: 1.5; }
.bld .beacon { fill: var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
#city:hover .bld { opacity: 0.55; }
#city .bld:hover, #city .bld:focus-visible { opacity: 1; outline: none; }
.bld:hover .body { stroke: var(--accent); stroke-width: 2; }
.refl { opacity: 0.5; pointer-events: none; }
.ground { stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 6px var(--accent)); }
.sky-empty { fill: var(--faint); font-size: 26px; font-family: var(--body); }
.sky-tip { position: absolute; left: 0; top: 0; width: 210px; padding: 14px 16px; border-radius: 14px; background: rgba(18, 6, 31, 0.92); border: 1px solid var(--accent); pointer-events: none; display: grid; gap: 2px; font-size: 15px; color: var(--muted); }
.sky-tip b { font-family: var(--head); font-size: 26px; color: var(--foam); }
.sky-tip i { font-style: normal; }
.sky-tip i.up { color: var(--up); }
.sky-tip i.down { color: var(--down); }
.skyline-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; margin-top: 24px; align-items: start; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 17px; }
.legend li { display: flex; align-items: center; gap: 12px; }
.legend i { width: 22px; height: 22px; border-radius: 5px; flex: none; border: 1.5px solid var(--line); }
.lg-h { background: linear-gradient(0deg, transparent 0 30%, var(--muted) 30% 100%) center / 6px 100% no-repeat; }
.lg-w { background: linear-gradient(90deg, var(--muted), var(--muted)) center / 100% 6px no-repeat; }
.lg-c { background: linear-gradient(90deg, var(--up) 50%, var(--down) 50%); }
.lg-l { background: radial-gradient(circle, var(--gold) 2px, transparent 2.5px) 0 0 / 7px 7px; }
.lg-b { background: radial-gradient(circle, var(--accent) 4px, transparent 5px); }
.sky-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

/* ---------------- Studio ---------------- */
.studio-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 28px; align-items: start; }
.studio-out { display: grid; gap: 20px; position: sticky; top: 130px; }
.studio-canvas-wrap { padding: 18px; }
.studio-canvas-wrap canvas { width: 100%; height: auto; max-height: 58vh; object-fit: contain; display: block; border-radius: 14px; margin-inline: auto; }
.studio-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.code-head .h3 { margin: 0; }
.code-head > div { display: flex; gap: 8px; flex-wrap: wrap; }
pre { margin: 0; padding: 18px 20px; border-radius: 14px; background: var(--deep); font-size: 15px; line-height: 1.5; overflow: auto; max-height: 260px; color: var(--muted); }

/* ---------------- Dock ---------------- */
.empty-panel { text-align: center; display: grid; justify-items: center; gap: 8px; padding-block: 60px; }
.empty-panel p { color: var(--muted); max-width: 50ch; margin: 0 0 18px; }
.empty-panel .ic-lg { color: var(--accent); width: 48px; height: 48px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.launch-tile { display: grid; gap: 16px; padding: 24px; border-radius: 22px; background: rgba(18, 6, 31, 0.55); border: 1px solid var(--line); backdrop-filter: blur(16px); }
.lt-head { display: flex; align-items: center; gap: 14px; }
.lt-head div { display: grid; line-height: 1.2; flex: 1; min-width: 0; }
.lt-head b { font-family: var(--head); font-size: 28px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-head small { color: var(--faint); }
.lt-time { color: var(--faint); font-size: 15px; }
.lt-route { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 16px; }
.lt-route .ic { color: var(--accent); }
.lt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lt-stats div { background: var(--deep); border-radius: 12px; border-top: 2px solid var(--accent); padding: 10px 12px; display: grid; }
.lt-stats small { color: var(--faint); font-size: 14px; }
.lt-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.lt-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.recent-panel { margin-top: 28px; }

.addr { display: flex; align-items: center; gap: 12px; justify-content: space-between; width: 100%; padding: 14px 18px; border-radius: 14px; background: var(--deep); border: 1px solid var(--line); cursor: pointer; font-size: 16px; color: var(--muted); text-align: left; }
.addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.addr:hover { border-color: var(--accent); color: var(--foam); }
.addr.sm { width: auto; flex: 1; padding: 10px 14px; }

/* ---------------- Docs ---------------- */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.docs-side { position: sticky; top: 130px; }
.docs-side .btn { width: 100%; }

.footer { margin-top: 110px; color: var(--faint); font-size: 15px; max-width: min(var(--maxw), 100% - var(--gutter) * 2); }
.footer p { max-width: 90ch; margin: 0; }

/* ---------------- Tuner (bottom nav) ---------------- */
.tuner {
  position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 50;
  width: min(var(--maxw), 100% - 24px); height: 92px;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: stretch;
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, rgba(45, 15, 74, 0.82), rgba(18, 6, 31, 0.9));
  border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tuner-band { display: grid; place-items: center; font-family: var(--head); font-size: 26px; font-weight: 900; color: var(--accent); border-right: 1px solid var(--line); text-shadow: 0 0 14px rgba(255, 62, 154, 0.7); }
.tuner-scale { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tuner-scale::-webkit-scrollbar { display: none; }
.tuner-ticks { display: none; }
.tuner-stations {
  display: flex; height: 100%; min-width: max-content; padding: 0 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 243, 248, 0.45) 0 1px, transparent 1px 60px) 0 10px / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 243, 248, 0.2) 0 1px, transparent 1px 12px) 0 10px / 100% 8px no-repeat;
}
.station { display: grid; align-content: end; gap: 0; padding: 0 22px 14px; text-decoration: none; color: var(--muted); flex: 1 0 auto; text-align: center; transition: color 0.25s; }
.station small { font-family: var(--head); font-weight: 800; font-size: 15px; color: var(--faint); transition: color 0.25s; }
.station span { font-size: 18px; font-weight: 600; white-space: nowrap; }
.station:hover { color: var(--foam); }
.station.on { color: var(--foam); }
.station.on small { color: var(--accent); }
.tuner-needle { position: absolute; left: -1px; top: 6px; bottom: 8px; width: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent), 0 0 2px #fff; transition: transform 0.6s var(--ease); pointer-events: none; }
.tuner-needle::before { content: ''; position: absolute; left: -5px; top: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.tuner-menu { display: flex; align-items: center; gap: 12px; padding: 0 28px; border: 0; border-left: 1px solid var(--line); background: rgba(255, 62, 154, 0.12); font-size: 20px; font-weight: 700; cursor: pointer; transition: background 0.25s; }
.tuner-menu:hover, .tuner-menu[aria-expanded='true'] { background: var(--accent); }
.tuner-menu kbd { font-family: var(--head); font-size: 15px; padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(255, 243, 248, 0.4); }

/* ---------------- Menu ---------------- */
.menu {
  position: fixed; inset: 0; z-index: 80; overflow-y: auto;
  background: radial-gradient(80% 60% at 30% 100%, rgba(255, 62, 154, 0.35), transparent 60%), radial-gradient(50% 50% at 80% 10%, rgba(255, 201, 74, 0.18), transparent 70%), rgba(18, 6, 31, 0.92);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  clip-path: circle(0% at calc(100% - 110px) calc(100% - 60px));
  visibility: hidden; pointer-events: none;
  transition: clip-path 0.7s var(--ease), visibility 0s 0.7s;
}
.menu.open { clip-path: circle(150% at calc(100% - 110px) calc(100% - 60px)); visibility: visible; pointer-events: auto; transition: clip-path 0.7s var(--ease), visibility 0s; }
.menu-inner { padding: 40px 0 140px; }
.menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.menu-title { font-family: var(--head); font-size: 28px; font-weight: 800; color: var(--accent); }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.menu-list li { border-top: 1px solid var(--line); opacity: 0; transform: translateY(20px); transition: opacity 0.4s, transform 0.6s var(--ease); }
.menu.open .menu-list li { opacity: 1; transform: none; transition-delay: calc(0.15s + var(--i) * 45ms); }
.menu-list a { display: grid; grid-template-columns: 110px 1fr; gap: 4px 20px; padding: 26px 8px; text-decoration: none; position: relative; }
.menu-list a::before { content: ''; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width 0.5s var(--ease); }
.menu-list a:hover::before, .menu-list a.on::before, .menu-list a:focus-visible::before { width: 100%; }
.m-freq { grid-row: span 2; font-family: var(--head); font-weight: 800; font-size: 30px; color: var(--faint); padding-top: 8px; }
.menu-list a.on .m-freq, .menu-list a:hover .m-freq { color: var(--accent); }
.m-name { font-size: clamp(40px, 4.4vw, 68px); font-weight: 800; line-height: 1; }
.m-desc { color: var(--muted); font-size: 18px; }

/* ---------------- Drawer, scrim, modal ---------------- */
.scrim { position: fixed; inset: 0; z-index: 65; background: rgba(10, 3, 20, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(600px, 100%); overflow-y: auto;
  padding: 34px 34px 140px; display: block;
  background: linear-gradient(180deg, rgba(45, 15, 74, 0.94), rgba(18, 6, 31, 0.97)); border-left: 1px solid var(--accent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transform: translateX(105%); visibility: hidden; transition: transform 0.55s var(--ease), visibility 0s 0.55s;
}
.drawer.open { transform: none; visibility: visible; transition: transform 0.55s var(--ease), visibility 0s; }
.drawer-close { position: absolute; right: 24px; top: 24px; }
.dr-head { display: flex; gap: 18px; align-items: center; margin: 10px 70px 22px 0; }
.dr-head .h2 { margin: 0; overflow-wrap: anywhere; }
.dr-sym { color: var(--faint); font-size: 18px; }
.dr-price { display: grid; gap: 12px; margin-bottom: 18px; }
.dr-price > span { font-family: var(--head); font-weight: 800; font-size: 54px; line-height: 1; }
.pcs { display: flex; gap: 8px; flex-wrap: wrap; }
.pc { display: inline-flex; gap: 6px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: var(--deep); font-size: 16px; font-variant-numeric: tabular-nums; }
.pc small { color: var(--faint); font-size: 13px; }
.pc.up { color: var(--up); }
.pc.down { color: var(--down); }
.dr-chart { border-radius: 18px; background: var(--deep); padding: 14px; margin-bottom: 18px; }
.chart { width: 100%; height: 240px; display: block; touch-action: none; }
.chart .gl { stroke: rgba(255, 255, 255, 0.07); }
.chart .xh { stroke: rgba(255, 255, 255, 0.4); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart-read { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14px; color: var(--faint); }
.chart-read b { color: var(--foam); font-size: 16px; }
.chart-read small { color: var(--faint); margin-left: 6px; font-weight: 400; }
.dr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.dr-stats .statbox b { font-size: 32px; }
.dr-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.modal {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px;
  background: rgba(10, 3, 20, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.35s, visibility 0s 0.35s;
}
.modal.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.35s, visibility 0s; }
.modal-card { width: min(620px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: linear-gradient(160deg, rgba(74, 22, 96, 0.92), rgba(27, 10, 48, 0.95)); }
.progress-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 4px; }
.progress-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; color: var(--faint); }
.progress-steps li div { display: grid; }
.progress-steps .note { font-size: 15px; color: var(--faint); overflow-wrap: anywhere; }
.progress-steps i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 243, 248, 0.25); flex: none; margin-top: 2px; position: relative; }
.progress-steps li.on { color: var(--foam); }
.progress-steps li.on i { border-color: var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.progress-steps li.done { color: var(--foam); }
.progress-steps li.done i { background: var(--accent); border-color: var(--accent); }
.progress-steps li.done i::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.progress-steps li.fail { color: #ffd1d1; }
.progress-steps li.fail i { border-color: var(--down); background: rgba(255, 107, 107, 0.2); }
.progress-steps li.fail .note { color: #ffb3b3; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { display: grid; gap: 6px; margin-bottom: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 130px; z-index: 95; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 14px 22px; border-radius: 999px; background: rgba(18, 6, 31, 0.94); border: 1px solid var(--accent); font-size: 17px;
  transition: opacity 0.3s, translate 0.4s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }
.toast.err { border-color: var(--down); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .board-head, .row { grid-template-columns: minmax(180px, 2fr) 1fr 0.8fr 1fr 130px; }
  .hide-md { display: none; }
  .board-head span:nth-child(5), .board-head span:nth-child(6) { display: none; }
}
@media (max-width: 980px) {
  .route-grid, .launch-grid, .studio-grid, .docs-grid, .skyline-foot { grid-template-columns: 1fr; }
  .route-visual, .launch-preview, .studio-out, .docs-side { position: static; }
  .route-svg { max-height: 460px; }
  .hero { padding-left: 0; }
  .steps3-list { grid-template-columns: 1fr; }
  .menu-list { grid-template-columns: 1fr; }
  .ca-chip .chip-value { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .brand-name { font-size: 28px; }
  .brand-mark { width: 46px; height: 46px; }
  .topbar { padding-top: 14px; }
  .topbar-right { gap: 8px; }
  .ca-chip { display: none; }
  .sound-label, .eq { display: none !important; }
  .hero-title { font-size: 12vw; }
  .hero-title .ln { white-space: normal; }
  .sound-btn { width: 54px; padding: 0; justify-content: center; }
  #walletLabel { display: none; }
  .btn-wallet { width: 54px; padding: 0; }
  .field-row, .field-row:has(.field-sm), .field-row:has(> .field-sm:first-child) { grid-template-columns: 1fr; }
  .board-head { display: none; }
  .board-head, .row { grid-template-columns: minmax(0, 1.6fr) 1fr 0.9fr; }
  .hide-sm, .row .sp { display: none; }
  .tuner { height: 80px; grid-template-columns: minmax(0, 1fr) auto; }
  .tuner-band { display: none; }
  .tuner-menu kbd, .tuner-menu span { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .menu-list a { grid-template-columns: 70px 1fr; }
  .m-freq { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
