:root {
  --bg-deep: #02040a;
  --bg-top: #0a1330;
  --bg-elevated: #0b1424;
  --surface: rgba(210, 230, 255, 0.065);
  --surface-hover: rgba(210, 230, 255, 0.1);
  --border: rgba(148, 197, 253, 0.14);
  --border-strong: rgba(148, 197, 253, 0.26);
  --accent: #3D8EF7;
  --accent-light: #8892E0;
  --accent-glow: rgba(61, 142, 247, 0.30);
  --accent-tint: rgba(61, 142, 247, 0.12);
  --purple: #818cf8;
  --purple-tint: rgba(129, 140, 248, 0.12);
  --text: #eef4ff;
  --text-dim: #94a3b8;
  --discord: #5865F2;
  --vk: #0077FF;
  --danger: #f87171;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  --shadow-glow: 0 0 0 1px rgba(61,142,247,0.22), 0 20px 48px rgba(61,142,247,0.2), 0 4px 16px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-color: var(--border-strong) var(--bg-deep); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid var(--bg-deep); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, .top-tab:focus-visible {
  outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 6px;
}
.nav-links a:focus-visible { outline-offset: -2px; }
body {
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-deep) 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100%;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 600; letter-spacing: -0.02em; }
a { color: inherit; }
::selection { background: var(--accent); color: #02040a; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- film grain texture (adds depth to flat dark areas) ---------- */
body::after {
  content: ""; position: fixed; inset: -10%; z-index: 0; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- faint Milky Way band for atmospheric depth ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.7;
  background: linear-gradient(115deg,
    transparent 28%, rgba(148,197,253,0.05) 44%, rgba(224,242,254,0.08) 50%,
    rgba(148,197,253,0.05) 56%, transparent 74%);
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  z-index: 50; transition: width .12s linear;
}

/* ---------- ambient cosmic glow (aurora blobs + starfield) ---------- */
.blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; filter: blur(70px); opacity: 0.1; translate: 0 var(--parallax-y, 0px); }
.blob.b1 { width: 480px; height: 480px; background: var(--accent); top: -180px; left: -140px; animation: driftSlow 30s ease-in-out infinite; }
.blob.b2 { width: 440px; height: 440px; background: var(--purple); top: -60px; right: -180px; opacity: 0.1; border-radius: 55% 45% 39% 61% / 58% 42% 58% 42%; animation: driftSlow 38s ease-in-out infinite reverse; }
.blob.b3 { width: 380px; height: 380px; background: var(--accent); bottom: -180px; left: 35%; opacity: 0.08; border-radius: 48% 52% 60% 40% / 35% 55% 45% 65%; animation: driftSlow 44s ease-in-out infinite; }
.blob.b4 { width: 620px; height: 620px; background: #e0f2fe; top: -260px; right: 6%; opacity: 0.05; filter: blur(110px); border-radius: 60% 40% 45% 55% / 50% 55% 45% 50%; animation: driftSlow 52s ease-in-out infinite reverse; }
@keyframes driftSlow { 0%,100% { transform: translate(0,0) scale(1) rotate(0deg); } 50% { transform: translate(30px,24px) scale(1.06) rotate(8deg); } }

/* ---------- starfield: canvas-drawn (realistic scatter + independent twinkle),
   CSS pattern below only serves as a no-JS / pre-paint fallback ---------- */
.starfield {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1.6px 1.6px at 20px 30px, #ffffff, transparent),
    radial-gradient(1px 1px at 90px 80px, #bfe3ff, transparent),
    radial-gradient(1.8px 1.8px at 160px 40px, #ffffff, transparent),
    radial-gradient(1px 1px at 210px 130px, #8892E0, transparent),
    radial-gradient(1.3px 1.3px at 260px 20px, #ffffff, transparent),
    radial-gradient(1px 1px at 40px 150px, #ffffff, transparent),
    radial-gradient(1.6px 1.6px at 120px 190px, #bfe3ff, transparent),
    radial-gradient(1px 1px at 300px 90px, #ffffff, transparent),
    radial-gradient(1.4px 1.4px at 340px 170px, #8892E0, transparent),
    radial-gradient(1px 1px at 380px 30px, #ffffff, transparent);
  background-repeat: repeat;
  background-size: 400px 220px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.38; } to { opacity: 0.62; } }
.starfield.has-canvas { background-image: none; animation: none; opacity: 1; }
.starfield canvas { position: absolute; inset: 0; display: block; }

/* ---------- decorative hero moon ----------
   Previously used a low element-level opacity (0.55) to "soften" it against the
   sky, but opacity dilutes the WHOLE gradient uniformly — highlight and shadow
   alike — which is exactly why it read as a flat grey ball instead of a lit
   sphere. Fixed by keeping the element itself near-opaque and doing all the
   softening through the gradient's own color stops + inset shading instead,
   plus small crater/mare blotches for actual surface texture. */
.hero-moon {
  position: absolute; top: 70px; right: 6%; width: 320px; height: 320px; border-radius: 50%;
  background:
    radial-gradient(circle at 68% 72%, rgba(2,6,15,0.32) 0%, transparent 9%),
    radial-gradient(circle at 42% 60%, rgba(2,6,15,0.16) 0%, transparent 23%),
    radial-gradient(circle at 74% 44%, rgba(2,6,15,0.26) 0%, transparent 7%),
    radial-gradient(circle at 27% 70%, rgba(2,6,15,0.18) 0%, transparent 6%),
    radial-gradient(circle at 56% 35%, rgba(2,6,15,0.14) 0%, transparent 5%),
    radial-gradient(circle at 33% 28%, #ffffff 0%, #eef4ff 16%, #cfe3fb 36%, #93c5fd 60%, #4b7cd1 86%, #32568f 100%);
  box-shadow:
    inset -62px -34px 95px rgba(2,6,15,0.62),
    inset 18px 14px 34px rgba(255,255,255,0.16),
    0 0 130px 32px rgba(147,197,253,0.28);
  opacity: 0.92;
  animation: driftSlow 46s ease-in-out infinite;
  translate: 0 var(--parallax-y, 0px);
}
.hero-moon::before {
  content: ""; position: absolute; inset: -46px; border-radius: 50%;
  border: 1px solid rgba(148,197,253,0.14);
  -webkit-mask: linear-gradient(120deg, #000 0%, transparent 30%, transparent 70%, #000 100%);
  mask: linear-gradient(120deg, #000 0%, transparent 30%, transparent 70%, #000 100%);
  animation: ringSpin 90s linear infinite;
}
.hero-moon::after {
  content: ""; position: absolute; inset: -78px; border-radius: 50%;
  border: 1px solid rgba(148,197,253,0.08);
  -webkit-mask: linear-gradient(200deg, #000 0%, transparent 25%, transparent 75%, #000 100%);
  mask: linear-gradient(200deg, #000 0%, transparent 25%, transparent 75%, #000 100%);
  animation: ringSpin 130s linear infinite reverse;
}
@keyframes ringSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (max-width: 900px) { .hero-moon { width: 200px; height: 200px; top: 30px; right: 2%; opacity: 0.6; } .hero-moon::before, .hero-moon::after { display: none; } }

/* ---------- shooting stars (spawned occasionally by JS) ----------
   Rotation is applied via the standalone `rotate` property (static, set once
   from the actual flight angle) while motion uses the standalone `translate`
   property animated between exactly two points, so the path is always a
   perfectly straight line and the tail always matches the travel direction. */
.shooting-star {
  position: fixed; top: 0; left: 0; width: 2.4px; height: 2.4px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 1px rgba(255,255,255,0.9), 0 0 14px 3px rgba(191,227,255,0.45);
  z-index: 0; pointer-events: none; opacity: 0; will-change: translate, opacity;
}
.shooting-star::before {
  content: ""; position: absolute; top: 50%; right: 100%; height: 1.4px;
  width: var(--tail-len, 110px); transform: translateY(-50%); transform-origin: right center;
  background: linear-gradient(90deg, transparent, rgba(191,227,255,0.5) 55%, rgba(255,255,255,0.95));
  border-radius: 2px;
}
@keyframes shootAcross {
  0% { opacity: 0; translate: 0 0; }
  12% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0; translate: var(--dx) var(--dy); }
}

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* ---------- nav: detached floating pill ---------- */
.navbar { position: sticky; top: 14px; z-index: 20; padding: 0 16px; }
.navbar .wrap {
  display: flex; align-items: center; justify-content: space-between; height: 60px;
  max-width: 980px; margin: 0 auto; padding: 0 10px 0 22px;
  background: rgba(8, 11, 22, 0.68); backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-md);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.navbar.is-scrolled .wrap { background: rgba(8, 11, 22, 0.88); border-color: var(--border-strong); }
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 700; font-size: 17px; text-decoration: none; color: var(--text); }
.nav-logo svg { height: 24px; width: auto; transition: transform .3s var(--ease); flex-shrink: 0; }
.nav-logo:hover svg { transform: scale(1.1) rotate(-8deg); }
.nav-links { display: flex; gap: 4px; align-items: center; position: relative; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 9px; transition: color .2s; color: var(--text-dim); position: relative; z-index: 1; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-indicator {
  position: absolute; top: 4px; height: 34px; border-radius: 9px; left: 0; width: 0;
  background: var(--surface); border: 1px solid var(--border);
  transition: left .4s var(--ease-spring), width .4s var(--ease-spring), opacity .25s var(--ease);
  z-index: 0; opacity: 0; pointer-events: none;
}

/* ---------- mobile nav toggle + dropdown panel ---------- */
.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span { width: 17px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-links a.discord-pill, .nav-links a.vk-pill {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: background .2s, border-color .2s, transform .2s, color .2s;
  width: 38px; height: 38px; padding: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-links a.discord-pill svg { fill: #949cf7; transition: fill .2s; }
.nav-links a.discord-pill:hover { background: var(--discord); border-color: var(--discord); transform: translateY(-1px); }
.nav-links a.discord-pill:hover svg { fill: #fff; }
.nav-links a.vk-pill svg { fill: #4fa3ff; transition: fill .2s; }
.nav-links a.vk-pill:hover { background: var(--vk); border-color: var(--vk); transform: translateY(-1px); }
.nav-links a.vk-pill:hover svg { fill: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 11px; border: none; cursor: pointer;
  text-decoration: none; min-height: 46px; letter-spacing: -0.01em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), filter .2s var(--ease);
}
.btn-primary {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #4a90f5 55%, var(--purple) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 8px 24px var(--accent-glow);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; width: 40%; left: -60%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); transition: left .65s var(--ease);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 14px 36px var(--accent-glow); transform: translateY(-1px); }
.btn-primary:hover::before { left: 130%; }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-outline:hover { border-color: rgba(255,255,255,0.24); background: var(--surface-hover); transform: translateY(-1px); }

/* ---------- hero ---------- */
header.hero { position: relative; z-index: 1; padding: 76px 0 64px; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-copy { position: relative; z-index: 1; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--accent-light); background: var(--accent-tint); border: 1px solid var(--border);
  padding: 7px 15px 7px 12px; border-radius: 999px; margin-bottom: 20px;
  animation: heroIn .8s var(--ease) both;
}
.hero-title {
  font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(42px, 6vw, 68px); line-height: 1.02;
  background: linear-gradient(120deg, #f0f9ff 0%, #8892E0 25%, #3D8EF7 50%, #818cf8 75%, #8892E0 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 46px rgba(61,142,247,0.3));
  animation: gradientFlow 9s ease-in-out infinite, heroIn .8s var(--ease) .05s both;
}
@keyframes gradientFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-sub {
  max-width: 460px; margin: 18px 0 0; color: var(--text-dim); font-size: 17px; font-weight: 400;
  line-height: 1.65; opacity: 0.9; animation: heroIn .8s var(--ease) .1s both;
}
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; animation: heroIn .8s var(--ease) .2s both; }
.badge {
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.02em;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border);
  padding: 7px 13px; border-radius: 20px; transition: transform .2s var(--ease), border-color .2s, color .2s;
}
.badge:hover { transform: translateY(-2px); border-color: var(--border-strong); color: var(--text); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; animation: heroIn .8s var(--ease) .15s both; }

/* ---------- unified status card (IP + online + players) ---------- */
.status-card {
  position: relative; z-index: 1; width: 100%; max-width: 380px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 22px 26px; backdrop-filter: blur(20px); box-shadow: var(--shadow-glow);
  animation: heroIn .8s var(--ease) .4s both;
}
.status-card::before {
  content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0.7;
}
.status-row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.status-ip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Inter"; font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  color: var(--text); cursor: pointer; transition: color .2s;
}
.status-ip:hover { color: var(--accent-light); }
.status-ip svg { color: var(--text-dim); flex-shrink: 0; }
.status-ip .copy-icon { color: var(--text-dim); opacity: 0.6; }
.status-sep { width: 1px; height: 22px; background: var(--border-strong); flex-shrink: 0; }
@media (max-width: 480px) { .status-sep { display: none; } }
.status-online { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text-dim); transition: color .3s; }
.status-online.is-live { color: var(--text); }

.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; }
.status-online.is-live .online-dot { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,0.18); animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 3px rgba(61,220,132,0.18); } 50% { box-shadow: 0 0 0 6px rgba(61,220,132,0.06); } }

.online-card p { font-size: 16px; font-weight: 500; color: var(--text); }
.online-card p span { font-family: "Inter"; font-weight: 700; color: var(--accent-light); font-size: 16px; }

.access-banner {
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 460px; margin: 24px 0 0; padding: 14px 20px;
  background: var(--purple-tint); border: 1px solid rgba(129,140,248,0.3); border-radius: 14px;
  font-size: 13.5px; color: var(--text-dim); text-align: left; line-height: 1.6;
  animation: heroIn .8s var(--ease) .25s both;
}
.access-banner svg { flex-shrink: 0; stroke: var(--purple); width: 20px; height: 20px; margin-top: 1px; }
.access-banner a { color: var(--accent-light); font-weight: 600; text-decoration: none; }
.access-banner a:hover { text-decoration: underline; }

/* ---------- hero visual: HUD panel ---------- */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; animation: heroIn .8s var(--ease) .2s both; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub, .access-banner { margin-left: auto; margin-right: auto; }
  .cta-row, .eyebrow { justify-content: center; }
  .hero-visual { margin-top: 44px; min-height: 260px; }
}

.maintenance-banner {
  display: flex; align-items: flex-start; gap: 12px; justify-content: center;
  max-width: 620px; margin: 22px auto 0; padding: 14px 22px;
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.35); border-radius: 14px;
  font-size: 14px; color: var(--text-dim); text-align: left; line-height: 1.6;
  animation: heroIn .8s var(--ease) .4s both;
}
.maintenance-banner svg { flex-shrink: 0; stroke: #fbbf24; width: 20px; height: 20px; margin-top: 1px; }
.maintenance-banner b { color: #fbbf24; }
.maintenance-banner a { color: var(--accent-light); font-weight: 600; text-decoration: none; }
.maintenance-banner a:hover { text-decoration: underline; }
@media (max-width: 640px) { .maintenance-banner { margin-left: 24px; margin-right: 24px; } }

.status-players { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.player-list { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.player-chip {
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 20px;
}
.player-chip.empty { font-weight: 400; }

.player-avatar-card { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 84px; transition: transform .25s var(--ease); }
.player-avatar-card:hover { transform: translateY(-4px); }
.avatar-wrap { position: relative; width: 60px; height: 60px; }
.avatar-wrap img { width: 60px; height: 60px; border-radius: 14px; display: block; image-rendering: pixelated; background: var(--surface); border: 1px solid var(--border); transition: border-color .25s; }
.player-avatar-card:hover .avatar-wrap img { border-color: var(--border-strong); }
.avatar-dot { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: #3ddc84; border: 3px solid var(--bg-deep); }
.player-name { font-size: 12.5px; font-weight: 500; color: var(--text-dim); text-align: center; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- inner page header ---------- */
header.page-head { position: relative; z-index: 1; padding: 60px 0 16px; text-align: center; }
header.page-head h1 { font-size: clamp(28px, 4.5vw, 38px); color: var(--text); font-weight: 700; letter-spacing: -0.03em; }
header.page-head .lead { max-width: 660px; margin: 16px auto 0; color: var(--text-dim); font-size: 16px; font-weight: 400; line-height: 1.7; }

/* ---------- main sections ---------- */
main { position: relative; z-index: 1; }
section { padding: 56px 0; }
.section-title {
  font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 34px; text-align: center; font-weight: 700; letter-spacing: -0.03em;
  display: block; position: relative;
  background: linear-gradient(100deg, var(--text) 30%, var(--accent-light) 55%, var(--text) 80%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.section-title::after {
  content: ""; display: block; width: 46px; height: 3px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--purple)); border-radius: 3px;
  box-shadow: 0 0 14px var(--accent-glow);
}

.divider { display: flex; align-items: center; gap: 14px; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.divider span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); flex-shrink: 0; box-shadow: 0 0 10px var(--accent-glow); animation: pulseDot 3s ease-in-out infinite; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(20px);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(148,197,253,0.35), transparent 32%, transparent 68%, rgba(129,140,248,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.card::after {
  content: ""; position: absolute; top: -60%; right: -30%; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.card:hover { box-shadow: var(--shadow-glow); transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-hover); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card .icon {
  position: relative; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--accent-tint), var(--purple-tint));
  border: 1px solid var(--border); margin-bottom: 18px; transition: transform .35s var(--ease-spring), border-color .3s var(--ease);
}
.card:hover .icon { transform: scale(1.08) rotate(-4deg); border-color: var(--border-strong); }
.card .icon svg { width: 22px; height: 22px; stroke: var(--accent-light); }
.card h3 { font-size: 16.5px; margin-bottom: 8px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; position: relative; }
.card p { color: var(--text-dim); font-size: 15px; font-weight: 400; line-height: 1.65; position: relative; }

.about-text { max-width: 700px; margin: 0 auto; text-align: center; color: var(--text-dim); font-size: 16px; font-weight: 400; line-height: 1.8; }
.about-text code { background: var(--surface); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; font-size: 14px; color: var(--accent-light); font-family: "Inter", monospace; }

.rules-list { max-width: 640px; margin: 0 auto; display: grid; gap: 10px; }
.rules-list li { list-style: none; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; font-size: 15.5px; font-weight: 400; color: var(--text-dim); box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .25s; }
.rules-list li:hover { transform: translateX(3px); border-color: var(--border-strong); }
.rules-list li span.num { font-family: "Inter"; font-weight: 700; color: var(--accent-light); font-size: 14px; flex-shrink: 0; }

/* ---------- bottom CTA band ---------- */
.cta-band {
  margin: 10px 24px 60px; max-width: 1032px; margin-left: auto; margin-right: auto;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 24px; padding: 56px 40px; text-align: center;
  position: relative; overflow: hidden; backdrop-filter: blur(20px);
}
.cta-band::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: var(--accent); opacity: 0.1; filter: blur(90px); top: -140px; left: 50%; transform: translateX(-50%);
}
.cta-band h2 { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 12px; color: var(--text); position: relative; font-weight: 700; letter-spacing: -0.03em; }
.cta-band p { color: var(--text-dim); font-size: 16px; font-weight: 400; margin-bottom: 28px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- steps (onboarding) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 24px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  z-index: 0;
}
@media (max-width: 720px) { .steps::before { display: none; } }
.step { position: relative; z-index: 1; text-align: center; transition: transform .3s var(--ease); }
.step:hover { transform: translateY(-4px); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Inter"; font-size: 18px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 8px 24px var(--accent-glow);
  transition: box-shadow .3s var(--ease);
}
.step:hover .step-num { box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 12px 34px var(--accent-glow); }
.step h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); font-weight: 600; }
.step p { color: var(--text-dim); font-size: 14.5px; font-weight: 400; line-height: 1.6; max-width: 240px; margin: 0 auto; }
.step code { background: var(--surface); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; color: var(--accent-light); font-size: 13px; }

.inline-link { color: var(--accent-light); text-decoration: underline; }

/* ---------- footer ---------- */
footer { padding: 40px 0 40px; border-top: 1px solid var(--border); position: relative; z-index: 1; }
footer::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.5;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13px; font-family: "Space Grotesk", sans-serif; font-weight: 600; transition: color .2s var(--ease); }
.footer-brand:hover { color: var(--text); }
.footer-brand svg { height: 18px; width: auto; opacity: 0.8; flex-shrink: 0; transition: transform .3s var(--ease); }
.footer-brand:hover svg { transform: rotate(-10deg) scale(1.08); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { position: relative; color: var(--text-dim); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
.footer-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--accent-light);
  transition: width .25s var(--ease);
}
.footer-links a:hover { color: var(--text); }
.footer-links a:hover::after { width: 100%; }
.footer-copy { color: var(--text-dim); font-size: 12.5px; text-align: center; margin-top: 24px; opacity: 0.6; }

.nickname-hint { margin-top: 10px; font-size: 12.5px; color: var(--text-dim); opacity: 0.75; }
.shop-message { margin-top: 12px; font-size: 14px; font-weight: 500; }

/* ---------- payment receipt ---------- */
.receipt-card {
  max-width: 440px; margin: 0 auto 32px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 20px; padding: 32px 30px; box-shadow: var(--shadow-md); backdrop-filter: blur(20px);
  position: relative; overflow: hidden; animation: modalIn .3s var(--ease);
}
.receipt-card::before {
  content: ""; position: absolute; top: -70px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 220px; border-radius: 50%; background: #3ddc84; opacity: 0.12; filter: blur(60px);
}
.receipt-check {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(61,220,132,0.14);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; position: relative;
}
.receipt-check svg { width: 28px; height: 28px; stroke: #3ddc84; }
.receipt-title { text-align: center; font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; position: relative; }
.receipt-sub { text-align: center; font-size: 13.5px; color: var(--text-dim); margin-bottom: 22px; position: relative; }
.receipt-rows { display: grid; gap: 11px; margin-bottom: 20px; position: relative; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-bottom: 11px; border-bottom: 1px dashed var(--border); }
.receipt-row:last-child { border-bottom: none; padding-bottom: 0; }
.receipt-row .label { color: var(--text-dim); flex-shrink: 0; }
.receipt-row .value { color: var(--text); font-weight: 600; text-align: right; font-family: "Inter", monospace; word-break: break-all; }
.receipt-note { font-size: 12.5px; color: var(--text-dim); text-align: center; line-height: 1.6; margin-bottom: 20px; position: relative; }
.receipt-actions { display: flex; gap: 10px; position: relative; }
.receipt-actions .btn { flex: 1; }

@media print {
  body * { visibility: hidden; }
  .receipt-card, .receipt-card * { visibility: visible; }
  .receipt-card {
    position: absolute; top: 0; left: 0; width: 100%; max-width: 100%;
    box-shadow: none; border: 1px solid #999; backdrop-filter: none; background: #fff; color: #000;
  }
  .receipt-card::before { display: none; }
  .receipt-row .label, .receipt-sub, .receipt-note { color: #555; }
  .receipt-row .value, .receipt-title { color: #000; }
  .receipt-actions { display: none; }
}

/* ---------- purchase modal ---------- */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 2, 3, 0.7); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; animation: fadeIn .2s var(--ease); }
.modal-box {
  position: relative; width: 100%; max-width: 380px;
  background: var(--bg-top); border: 1px solid var(--border-strong); border-radius: 20px;
  padding: 32px 28px; box-shadow: var(--shadow-md); backdrop-filter: blur(24px);
  animation: modalIn .25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--surface-hover); color: var(--text); }
.modal-box h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; padding-right: 30px; }
.modal-desc { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin-bottom: 18px; }
.modal-price { font-family: "Inter"; font-weight: 700; font-size: 30px; color: var(--accent-light); margin-bottom: 22px; }
.modal-box label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 10px; }
.modal-box input {
  width: 100%; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: "Inter"; font-size: 16px; font-weight: 500;
  text-align: center; transition: border-color .2s;
}
.modal-box input:focus { outline: none; border-color: rgba(61,142,247,0.5); }
.modal-box .shop-message { text-align: center; }
.modal-box .btn { margin-top: 18px; }

/* ---------- shop cards (unified) ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.shop-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 34px 30px; display: flex; flex-direction: column; box-shadow: var(--shadow); backdrop-filter: blur(20px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.shop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: var(--border-strong); }
.shop-card.featured { border-color: rgba(61,142,247,0.35); }
.shop-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; white-space: nowrap;
  font-family: "Inter"; font-weight: 600; font-size: 12px; letter-spacing: 0.01em;
  padding: 6px 16px; border-radius: 20px; box-shadow: 0 8px 20px var(--accent-glow);
}
.shop-icon {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint);
}
.shop-icon svg { width: 25px; height: 25px; stroke: var(--accent-light); }
.shop-card h3 { font-size: 20px; color: var(--text); margin-bottom: 6px; font-weight: 700; }
.shop-desc { color: var(--text-dim); font-size: 14.5px; margin-bottom: 20px; line-height: 1.55; }
.shop-price {
  font-family: "Inter"; font-weight: 700; color: var(--text); margin-bottom: 24px;
  display: flex; align-items: baseline; gap: 6px;
}
.shop-price .amount { font-size: 36px; letter-spacing: -0.03em; }
.shop-price .period { font-size: 14px; color: var(--text-dim); font-weight: 400; }
.shop-features { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; flex: 1; }
.shop-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 400; color: var(--text-dim); }
.shop-features li svg { width: 18px; height: 18px; stroke: #3ddc84; flex-shrink: 0; margin-top: 1px; }
.shop-cta { width: 100%; }

/* ---------- coin picker ---------- */
.coin-picker { flex: 1; display: flex; flex-direction: column; margin-bottom: 26px; }
.coin-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.coin-option {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 13px;
  padding: 16px 10px; text-align: center; cursor: pointer; transition: border-color .2s, transform .2s, background .2s;
}
.coin-option:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.coin-option.selected { border-color: rgba(61,142,247,0.5); background: var(--accent-tint); }
.coin-option .amount { font-family: "Inter"; font-weight: 700; font-size: 18px; color: var(--text); display: block; }
.coin-option .price { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.coin-custom { display: flex; gap: 10px; align-items: center; }
.coin-custom label { font-size: 14px; color: var(--text-dim); white-space: nowrap; }
.coin-custom input {
  flex: 1; min-width: 0; width: 100%; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 11px;
  padding: 12px 14px; color: var(--text); font-family: "Inter"; font-size: 15px; font-weight: 500;
  -moz-appearance: textfield;
}
.coin-custom input:focus { outline: none; border-color: rgba(61,142,247,0.5); }
.coin-custom input::-webkit-outer-spin-button,
.coin-custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.coin-note { margin-top: auto; padding-top: 12px; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }

/* ---------- shop support strip ---------- */
.shop-support {
  max-width: 1180px; margin: 32px auto 0; text-align: center;
  font-size: 14px; color: var(--text-dim); display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.shop-support a { color: var(--accent-light); text-decoration: none; font-weight: 600; }
.shop-support a:hover { text-decoration: underline; }
.shop-support svg { width: 16px; height: 16px; stroke: var(--accent-light); flex-shrink: 0; }

/* ---------- map preview ---------- */
.map-frame-wrap {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-md); aspect-ratio: 16/9; background: var(--bg-elevated);
}
.map-frame-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.map-cta { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- update cards (updates page + homepage carousel) ---------- */
.update-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 30px 34px 32px; box-shadow: var(--shadow); backdrop-filter: blur(20px);
  margin-top: 20px; position: relative;
}
.update-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.update-head .icon-box {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint);
}
.update-head .icon-box svg { width: 24px; height: 24px; stroke: var(--accent-light); }
.update-head h2 { font-size: clamp(19px, 2.6vw, 23px); color: var(--text); font-weight: 600; margin-bottom: 2px; }
.update-date { font-size: 13.5px; color: var(--text-dim); font-weight: 500; }

.update-list { display: grid; gap: 20px; }
.update-item { display: flex; gap: 16px; align-items: flex-start; }
.update-item .update-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); border: 1px solid var(--border);
}
.update-item .update-icon svg { width: 18px; height: 18px; stroke: var(--accent-light); }
.update-item h3 { font-size: 16px; color: var(--text); font-weight: 700; margin-bottom: 4px; }
.update-item p { font-size: 15px; font-weight: 500; color: var(--text-dim); line-height: 1.65; margin: 0; }
.update-item code {
  background: var(--surface); border: 1px solid var(--border); padding: 1px 7px;
  border-radius: 6px; font-size: 13.5px; color: var(--accent-light); font-family: "Inter", monospace;
}

.update-banner { margin: -30px -34px 22px; display: block; }
.update-banner img { width: 100%; height: auto; display: block; border-radius: 20px 20px 0 0; }
.update-media h2 { font-size: clamp(19px, 2.6vw, 23px); color: var(--text); font-weight: 700; margin: 10px 0 12px; }
.update-media p { font-size: 15px; font-weight: 500; color: var(--text-dim); line-height: 1.65; margin-bottom: 14px; }
.update-media .btn { margin-top: 4px; }

/* ---------- updates carousel (homepage) ---------- */
.updates-carousel { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.carousel-viewport { overflow: hidden; flex: 1; border-radius: 20px; }
.carousel-track { display: flex; transition: transform .5s var(--ease); }
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.carousel-slide .update-card { margin-top: 0; height: 100%; }
.carousel-arrow {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s; font-size: 20px; line-height: 1;
}
.carousel-arrow:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: scale(1.06); }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.carousel-dots .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); border: none;
  padding: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.carousel-dots .dot.active { background: var(--accent); transform: scale(1.3); }
.updates-more { text-align: center; margin-top: 26px; }

/* ---------- top players (homepage, real data) ---------- */
.tops-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; align-items: start; }
.tops-column-title {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  text-align: center; font-family: "Inter", sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; letter-spacing: 0.09em;
}
.tops-column-title svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.9; }
.tops-column[data-category="playtime"] .tops-column-title svg { color: var(--accent-light); }
.tops-column[data-category="votes"] .tops-column-title svg { color: var(--purple); }
.tops-column[data-category="advancements"] .tops-column-title svg { color: #fbbf24; }
.tops-column[data-category="playtime"] .top-value-num { color: var(--accent-light); }
.tops-column[data-category="votes"] .top-value-num { color: var(--purple); }
.tops-column[data-category="advancements"] .top-value-num { color: #fbbf24; }
.tops-column .top-list { margin: 0; max-width: none; }
.top-list { max-width: 560px; margin: 28px auto 0; display: grid; gap: 10px; }
.top-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 20px; transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.top-row:hover { transform: translateX(3px); border-color: var(--border-strong); background: var(--surface-hover); }
.top-rank { font-family: "Space Grotesk"; font-weight: 700; font-size: 18px; color: var(--text-dim); width: 26px; text-align: center; flex-shrink: 0; }
.top-row:nth-child(1) .top-rank { color: #fbbf24; }
.top-row:nth-child(2) .top-rank { color: #cbd5e1; }
.top-row:nth-child(3) .top-rank { color: #fb923c; }
.top-avatar { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; flex-shrink: 0; background: var(--bg-elevated); border: 1px solid var(--border); }
.top-name { flex: 1; font-weight: 600; color: var(--text); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-value { display: flex; align-items: baseline; gap: 3px; flex-shrink: 0; }
.top-value-num { font-family: "Space Grotesk"; font-weight: 700; color: var(--accent-light); font-size: 18px; letter-spacing: -0.01em; }
.top-value-unit { font-family: "Inter", sans-serif; font-weight: 500; color: var(--text-dim); font-size: 12.5px; }
.top-note { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 22px; }
.top-note code { background: var(--surface); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; color: var(--accent-light); font-family: "Inter", monospace; }
.skeleton-row {
  height: 54px; border-radius: 14px; border: 1px solid var(--border);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-hover) 50%, var(--surface) 70%);
  background-size: 220% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 140% 0; } 100% { background-position: -40% 0; } }

@media (max-width: 760px) {
  .tops-columns { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- media/application card ---------- */
.info-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 30px 30px; box-shadow: var(--shadow); backdrop-filter: blur(20px);
}
.info-card h3 { font-size: 19px; color: var(--text); margin-bottom: 10px; font-weight: 700; }
.info-card p { color: var(--text-dim); font-size: 15.5px; font-weight: 400; line-height: 1.7; margin-bottom: 16px; }
.info-card p:last-of-type { margin-bottom: 20px; }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 84px; left: 16px; right: 16px; z-index: 19;
    flex-direction: column; align-items: center; gap: 2px; padding: 10px 16px 22px;
    background: rgba(8, 11, 22, 0.94); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 22px;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .35s var(--ease), opacity .25s var(--ease);
  }
  .nav-links.open { max-height: 420px; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.discord-pill):not(.vk-pill) { display: block; width: 100%; text-align: center; padding: 13px 14px; }
  .nav-indicator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .card, .hero-copy, .hero-visual, .blob, .starfield, .hero-moon, .hero-moon::before, .hero-moon::after,
  .online-dot, .reveal, .badge-row, .cta-row, .status-card, .hero-title, .eyebrow,
  .btn-primary::before, .shooting-star, .nav-indicator, .skeleton-row, .divider span {
    animation: none !important; transition: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .badge-row, .cta-row, .status-card, .hero-copy, .hero-visual, .eyebrow, .hero-sub, .access-banner { opacity: 1 !important; transform: none !important; }
  .shooting-star { display: none !important; }
  .blob, .hero-moon { translate: none !important; }
}

/* ==========================================================================
   Wiki: docs-style layout (sidebar + content + on-this-page TOC)
   ========================================================================== */
.wiki-shell {
  position: relative; z-index: 1; max-width: 1320px; margin: 0 auto;
  padding: 28px 24px 100px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr) 200px; gap: 40px;
  align-items: start;
}

.wiki-sidebar { position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow-y: auto; padding-right: 4px; }
.wiki-sidebar::-webkit-scrollbar { width: 6px; }

.wiki-search { position: relative; margin-bottom: 22px; }
.wiki-search svg {
  position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 15px; height: 15px;
  stroke: var(--text-dim); pointer-events: none; opacity: 0.7;
}
.wiki-search input {
  width: 100%; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 40px 9px 34px; color: var(--text); font-family: "Inter"; font-size: 13.5px;
  transition: border-color .2s;
}
.wiki-search input:focus { outline: none; border-color: rgba(61,142,247,0.5); }
.wiki-search input::placeholder { color: var(--text-dim); opacity: 0.65; }
.wiki-search kbd {
  position: absolute; right: 9px; top: 50%; translate: 0 -50%; font-family: "Inter"; font-size: 11px;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); border-radius: 5px;
  padding: 1px 6px; opacity: 0.7; pointer-events: none;
}
.wiki-cat.hidden, .wiki-cat li.hidden { display: none !important; }
.wiki-search-empty { display: none; color: var(--text-dim); font-size: 13.5px; padding: 6px 12px; opacity: 0.7; }
.wiki-search-empty.show { display: block; }
.wiki-cat { margin-bottom: 26px; }
.wiki-cat-title {
  font-family: "Inter"; font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim); opacity: 0.7; margin-bottom: 10px; padding: 0 12px;
}
.wiki-cat ul { list-style: none; display: grid; gap: 2px; }
.wiki-cat a {
  display: block; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--text-dim);
  padding: 8px 12px; border-radius: 9px; border-left: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.wiki-cat a:hover { color: var(--text); background: var(--surface); }
.wiki-cat a.active { color: var(--accent-light); background: var(--accent-tint); border-left-color: var(--accent); font-weight: 600; }

.wiki-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); opacity: 0.75; margin-bottom: 14px; }
.wiki-breadcrumb a { color: var(--text-dim); text-decoration: none; }
.wiki-breadcrumb a:hover { color: var(--accent-light); }
.wiki-breadcrumb svg { width: 12px; height: 12px; opacity: 0.6; }

.wiki-content { min-width: 0; max-width: 760px; }
.wiki-content-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.wiki-content-head .emoji { font-size: 32px; line-height: 1; }
.wiki-content-head h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.wiki-lead { color: var(--text-dim); font-size: 16.5px; line-height: 1.75; margin-bottom: 8px; }

.wiki-content h2 {
  position: relative; font-size: 20px; font-weight: 600; color: var(--text); margin: 36px 0 14px; scroll-margin-top: 96px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.wiki-content h2 .heading-anchor {
  position: absolute; left: -22px; top: 21px; opacity: 0; text-decoration: none; color: var(--accent-light);
  font-size: 16px; transition: opacity .15s; user-select: none;
}
.wiki-content h2:hover .heading-anchor { opacity: 0.7; }
.wiki-content h2 .heading-anchor:hover { opacity: 1; }
@media (max-width: 900px) { .wiki-content h2 .heading-anchor { display: none; } }

.wiki-content code { cursor: pointer; position: relative; }
.wiki-content code:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.wiki-content code.copied { color: #3ddc84; border-color: rgba(61,220,132,0.4); }
.wiki-cmd-list .row code:hover { border-color: var(--border-strong); background: var(--surface-hover); }

.wiki-shot { margin: 16px 0 24px; }
.wiki-shot img {
  width: 100%; max-width: 420px; display: block; border-radius: 14px; border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.wiki-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--text-dim); opacity: 0.75; }
.wiki-shot-lg img { max-width: 100%; }
.wiki-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 20px; }
.wiki-content p, .wiki-content li { color: var(--text-dim); font-size: 15.5px; font-weight: 400; line-height: 1.75; margin-bottom: 14px; }
.wiki-content ul { padding-left: 0; margin-bottom: 14px; }
.wiki-content ul li { list-style: none; padding-left: 22px; position: relative; }
.wiki-content ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; }
.wiki-content code {
  background: var(--bg-elevated); border: 1px solid var(--border); padding: 2px 7px;
  border-radius: 6px; font-size: 14px; color: var(--accent-light); font-family: "Inter", monospace;
}
.wiki-content strong { color: var(--text); }
.wiki-content a:not(.btn) { color: var(--accent-light); text-decoration: underline; text-decoration-color: rgba(148,197,253,0.35); }

.wiki-cmd-list { display: grid; gap: 8px; margin-bottom: 14px; }
.wiki-cmd-list .row { display: flex; gap: 14px; align-items: baseline; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; }
.wiki-cmd-list .row code { flex-shrink: 0; min-width: 150px; }
.wiki-cmd-list .row span { color: var(--text-dim); font-size: 14.5px; }

.wiki-note {
  background: var(--purple-tint); border: 1px solid rgba(139, 92, 246, 0.3); border-left: 3px solid var(--purple);
  border-radius: 10px; padding: 14px 18px; margin: 18px 0; font-size: 14.5px; font-weight: 500; color: var(--text-dim);
}

.wiki-table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; }
.wiki-table th, .wiki-table td { padding: 12px 10px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.wiki-table th { color: var(--text); font-family: "Space Grotesk"; font-weight: 600; }
.wiki-table td { color: var(--text-dim); }
.wiki-table td.yes { color: #3ddc84; font-weight: 700; text-align: center; }
.wiki-table td.no { color: var(--text-dim); opacity: 0.4; text-align: center; }
.wiki-table-wrap { overflow-x: auto; }

.wiki-updated { color: var(--text-dim); font-size: 13px; opacity: 0.6; margin-top: 44px; }

.wiki-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.wiki-prevnext a {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px; text-decoration: none; transition: border-color .2s, transform .2s;
}
.wiki-prevnext a:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.wiki-prevnext .dir { font-size: 12px; color: var(--text-dim); opacity: 0.7; margin-bottom: 4px; }
.wiki-prevnext .label { font-size: 14.5px; font-weight: 600; color: var(--accent-light); }
.wiki-prevnext .next { text-align: right; grid-column: 2; }

.wiki-toc { position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow-y: auto; }
.wiki-toc-title { font-family: "Inter"; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); opacity: 0.7; margin-bottom: 10px; }
.wiki-toc ul { list-style: none; display: grid; gap: 6px; border-left: 1px solid var(--border); }
.wiki-toc a {
  display: block; text-decoration: none; font-size: 13.5px; color: var(--text-dim); padding: 3px 0 3px 14px;
  border-left: 1.5px solid transparent; margin-left: -1px; transition: color .2s, border-color .2s;
}
.wiki-toc a:hover { color: var(--text); }
.wiki-toc a.active { color: var(--accent-light); border-left-color: var(--accent); }

.wiki-mobile-toggle {
  display: none; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 20px; cursor: pointer; width: 100%;
}
.wiki-sidebar-backdrop { display: none; }

@media (max-width: 1100px) {
  .wiki-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .wiki-toc { display: none; }
}
@media (max-width: 820px) {
  .wiki-shell { grid-template-columns: 1fr; padding-top: 16px; }
  .wiki-mobile-toggle { display: flex; }
  .wiki-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 30; width: 280px; max-height: 100vh;
    background: rgba(8,11,22,0.97); backdrop-filter: blur(20px); padding: 84px 18px 24px;
    transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-md);
  }
  .wiki-sidebar.open { transform: translateX(0); }
  .wiki-sidebar-backdrop {
    display: none; position: fixed; inset: 0; z-index: 29; background: rgba(0,0,0,0.5);
  }
  .wiki-sidebar-backdrop.open { display: block; }
}
