/* =====================================================================
   ZG PlayLab — main stylesheet
   ===================================================================== */

:root {
  --bg: #08080f;
  --bg-2: #0d0d17;
  --surface: #13131f;
  --surface-2: #1a1a29;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f2fa;
  --muted: #a3a2bb;
  --dim: #6f6e88;

  --violet: #7c5cff;
  --pink: #ff3d7f;
  --lime: #c6ff3d;
  --amber: #ffb020;
  --cyan: #3dd9ff;
  --ink: #16112e;

  --grad: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%);
  --grad-text: linear-gradient(100deg, #a58bff 0%, #ff5c95 55%, #ffb020 100%);

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 32px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: dark;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

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

/* ---------- buttons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  isolation: isolate;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--small { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 61, 127, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 40px -12px rgba(255, 61, 127, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(198, 255, 61, 0.6); }
.btn--lime:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(0.97); }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--violet), var(--pink), var(--amber)); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(8, 8, 15, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; transition: transform 0.4s var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand__word b { font-weight: 800; margin-right: 5px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 12px; border: 1px solid var(--line-2); position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out); }
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
  }
  .nav.is-open { background: rgba(8, 8, 15, 0.96); }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { font-size: 20px; font-family: var(--font-display); padding: 12px 8px; color: var(--text); }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--nav-h) + 48px) 0 72px; display: flex; align-items: center; overflow: clip; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: -2px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.blob--a { width: 520px; height: 520px; background: var(--violet); top: -120px; right: 4%; animation: blob 18s ease-in-out infinite alternate; }
.blob--b { width: 420px; height: 420px; background: var(--pink); bottom: -160px; left: -80px; opacity: 0.32; animation: blob 22s ease-in-out infinite alternate-reverse; }
@keyframes blob { to { transform: translate(-60px, 80px) scale(1.15); } }
.spot { position: absolute; width: 600px; height: 600px; left: var(--mx, 70%); top: var(--my, 40%); transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(198, 255, 61, 0.07), transparent 60%); transition: opacity 0.4s; }

.hero__inner { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.drop-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
  transition: border-color 0.2s, background 0.2s;
}
.drop-chip:hover { border-color: rgba(198, 255, 61, 0.5); background: rgba(198, 255, 61, 0.06); }
.drop-chip b { color: var(--text); font-variant-numeric: tabular-nums; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.7); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(198, 255, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0); } }

.hero__title { font-size: clamp(2.3rem, 5.4vw, 4.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 0.12s + 0.15s); }
@keyframes rise { to { transform: none; } }
.hero__lead { margin-top: 24px; max-width: 520px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

/* hero visual */
.hero__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 540px; justify-self: center; perspective: 1000px; }
.orbit { position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.12); animation: spin 60s linear infinite; }
.orbit--2 { inset: 22%; border-style: solid; border-color: rgba(124, 92, 255, 0.22); animation-duration: 40s; animation-direction: reverse; }
.orbit::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.orbit--2::before { background: var(--pink); box-shadow: 0 0 18px var(--pink); top: auto; bottom: -5px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-logo { position: absolute; left: 50%; top: 50%; width: 46%; translate: -50% -50%; transform-style: preserve-3d; transition: transform 0.6s var(--ease-out); }
.hero-logo__float { animation: floaty 6s ease-in-out infinite; }
.hero-logo svg { width: 100%; height: auto; border-radius: 25%; overflow: visible; filter: drop-shadow(0 30px 60px rgba(124, 92, 255, 0.45)) drop-shadow(0 10px 30px rgba(255, 61, 127, 0.35)); }
.hero-logo::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -22%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 92, 255, 0.5), transparent); filter: blur(10px); animation: shadow 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(-2deg); } }
@keyframes shadow { 50% { transform: scale(0.85); opacity: 0.6; } }

.wave { animation: wave 3.2s linear infinite; }
@keyframes wave { to { transform: translateX(-30px); } }
.bub { transform-box: fill-box; transform-origin: center; animation: bub 3.4s ease-in infinite; opacity: 0; }
.bub:nth-of-type(2) { animation-delay: 1.1s; }
.bub:nth-of-type(3) { animation-delay: 2.2s; }
.bub:nth-of-type(4) { animation-delay: 0.6s; }
@keyframes bub { 0% { transform: translateY(6px) scale(0.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-22px) scale(1.1); opacity: 0; } }

.floaters { position: absolute; inset: 0; }
.floater { position: absolute; width: clamp(54px, 15%, 84px); aspect-ratio: 1; transition: transform 0.6s var(--ease-out); }
.floater__inner { width: 100%; height: 100%; animation: floaty 7s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.floater a, .floater .deco { display: block; width: 100%; height: 100%; border-radius: 24%; overflow: hidden; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform 0.35s var(--ease-spring); }
.floater a:hover { transform: scale(1.12) rotate(-4deg); }
.floater .deco { display: grid; place-items: center; background: var(--surface-2); }
.floater .deco svg { width: 52%; height: 52%; }
.floater .art { width: 100%; height: 100%; }
.floater .art__label { --fs: clamp(1rem, 2.4vw, 1.5rem); }
.floater:nth-child(1) { left: 2%; top: 12%; }
.floater:nth-child(2) { right: 4%; top: 4%; }
.floater:nth-child(3) { right: -1%; top: 56%; }
.floater:nth-child(4) { left: 4%; top: 68%; }
.floater:nth-child(5) { left: 44%; top: -1%; width: clamp(40px, 10%, 58px); }
.floater:nth-child(6) { left: 56%; bottom: 0; width: clamp(44px, 11%, 64px); }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: scrollhint 1.8s ease-in-out infinite; }
@keyframes scrollhint { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } 100% { opacity: 1; } }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 32px); }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__visual { order: -1; max-width: 400px; width: 88%; }
  .scroll-hint { display: none; }
}
@media (max-width: 520px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .stats { gap: 16px 28px; }
}

/* ---------- marquee ---------- */
main { overflow-x: clip; }
.marquee-wrap { overflow: hidden; padding: 16px 0; }
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; transform: rotate(-1.5deg) scale(1.03); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.4vw, 28px); letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--lime); }
.marquee__track .o { -webkit-text-stroke: 1.5px var(--text); color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--tight { padding-top: clamp(48px, 6vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; max-width: 16ch; }
.section-head p { color: var(--muted); max-width: 440px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- generated game art ---------- */
.art {
  --c: var(--violet);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at var(--ax, 20%) var(--ay, 10%), color-mix(in srgb, var(--c) 100%, #fff 18%) 0%, transparent 55%),
    radial-gradient(100% 100% at var(--bx, 90%) var(--by, 100%), color-mix(in srgb, var(--c) 60%, #000 40%) 0%, transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--c) 85%, #000 15%), color-mix(in srgb, var(--c) 35%, #08080f 65%));
}
.art .art__full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art .art__icon { position: relative; width: 40%; aspect-ratio: 1; border-radius: 22%; object-fit: cover; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.18); transition: transform 0.5s var(--ease-spring); }
.card:hover .art__icon { transform: scale(1.08) rotate(-3deg); }
.art__dots { position: absolute; inset: 0; z-index: -1; opacity: 0.35; background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.4px); background-size: 14px 14px; mask-image: linear-gradient(200deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); }
.art__shape { position: absolute; z-index: -1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); }
.art__shape--fill { border: 0; background: rgba(255, 255, 255, 0.14); }
.art__shape--sq { border-radius: 22%; }
.art__label { font-family: var(--font-display); font-weight: 800; font-size: var(--fs, 2.6rem); letter-spacing: -0.04em; color: #fff; text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); line-height: 1; }

/* ---------- platform pills & store buttons ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.pill--live { color: var(--text); }
.pill--live::before { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.pill--review::before { background: var(--amber); }
.pill--soon::before { background: var(--cyan); }
.pill--plain::before { display: none; }

.badge { position: absolute; top: 12px; left: 12px; z-index: 3; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.badge--new { background: var(--lime); color: var(--ink); }
.badge--review { background: var(--amber); color: var(--ink); }
.badge--soon { background: rgba(8, 8, 15, 0.7); color: var(--text); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 16px; border-radius: 16px; background: #fff; color: #0b0b12; border: 1px solid #fff; transition: transform 0.25s var(--ease-spring), box-shadow 0.25s; }
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(255, 255, 255, 0.4); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 11px; font-weight: 600; opacity: 0.7; line-height: 1.1; }
.store-btn strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.store-btn--off { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); cursor: default; }
.store-btn--off:hover { transform: none; box-shadow: none; }

/* ---------- feature (latest drop) ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(16px, 2vw, 22px); border-radius: var(--radius-l); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 80% at 0% 0%, color-mix(in srgb, var(--c, var(--violet)) 22%, transparent), transparent 70%); }
.feature > * { position: relative; }
.feature__media { position: relative; display: block; }
.feature__art { aspect-ratio: 4 / 3.2; border-radius: calc(var(--radius-l) - 10px); }
.feature__art .art__label { --fs: clamp(3rem, 8vw, 6rem); }
.feature__phone { position: absolute; right: 7%; bottom: -10%; width: 32%; aspect-ratio: 9 / 16; border-radius: 18px; background: #0b0b12; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); overflow: hidden; rotate: 8deg; }
.feature__phone img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: 8px clamp(4px, 2vw, 20px) 8px 0; }
.feature__icon { width: 72px; height: 72px; border-radius: 22%; margin-bottom: 20px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6); }
.feature__icon .art__label { --fs: 1.5rem; }
.feature__title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; }
.feature__tagline { margin-top: 10px; font-size: 19px; font-weight: 600; color: var(--text); }
.feature__desc { margin: 16px 0 22px; color: var(--muted); }
.feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 26px; font-size: 14px; color: var(--dim); }
.feature__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; color: var(--lime); }
.feature__more svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.feature__more:hover svg { transform: translateX(4px); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature__body { padding: 4px 6px 10px; }
}

/* ---------- library ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 700; color: var(--muted); transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.filter:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter em { font-style: normal; font-size: 12px; opacity: 0.6; font-variant-numeric: tabular-nums; }
.search { position: relative; flex: 0 1 280px; min-width: 200px; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); outline: none; transition: border-color 0.2s, background 0.2s; }
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--violet); background: rgba(124, 92, 255, 0.08); }

@media (max-width: 560px) { .search { flex: 1 1 100%; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.card.is-tilting { transition: transform 0.12s linear, border-color 0.3s, box-shadow 0.4s; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s; will-change: transform; }
.card:hover { border-color: var(--line-2); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c, var(--violet)) 70%, transparent); }
.card__art { aspect-ratio: 4 / 3; }
.card__art .art__label { --fs: clamp(2.4rem, 5vw, 3.4rem); transition: transform 0.5s var(--ease-spring); }
.card:hover .card__art .art__label { transform: scale(1.08) rotate(-3deg); }
.card__glare { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.14), transparent 45%); }
.card:hover .card__glare { opacity: 1; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card__title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.card__tagline { font-size: 15px; color: var(--muted); line-height: 1.45; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.card__date { font-size: 13px; color: var(--dim); font-weight: 600; white-space: nowrap; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 5; }
.card--soon .card__art { filter: saturate(0.5) brightness(0.75); }

.empty { display: none; padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty.is-shown { display: block; }
.empty b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--text); margin-bottom: 6px; }

/* ---------- lab process ---------- */
.lab { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps__line { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps__line i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--violet), var(--pink), var(--lime)); transition: transform 0.2s linear; }
.step { position: relative; padding-top: 0; }
.step__time { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--font-display); font-weight: 700; font-size: 15px; transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.4s var(--ease-spring); }
.step.is-lit .step__time { background: var(--lime); color: var(--ink); border-color: var(--lime); transform: rotate(-6deg) scale(1.05); }
.step h3 { margin: 22px 0 10px; font-size: 22px; }
.step p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps__line { left: 30px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps__line i { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .step { display: grid; grid-template-columns: 62px 1fr; gap: 0 20px; }
  .step h3 { margin: 4px 0 6px; }
  .step p { grid-column: 2; }
}

/* ---------- release log ---------- */
.log { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.log__intro { position: sticky; top: calc(var(--nav-h) + 32px); }
.log__big { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 8rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; }
.log__big small { display: block; margin-top: 14px; font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.timeline { position: relative; display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 76px 56px 1fr auto; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.3s var(--ease-out), background 0.25s; }
.tl-item:hover { border-color: var(--line-2); transform: translateX(6px); background: var(--surface-2); }
.tl-item--compact { grid-template-columns: 56px 1fr auto; }
.tl-day { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--lime); text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.2; }
.tl-day small { display: block; font-family: var(--font-body); color: var(--dim); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 12px; margin-top: 2px; }
.tl-icon { width: 56px; height: 56px; border-radius: 22%; }
.tl-icon .art__label { --fs: 1.1rem; }
.tl-title { font-weight: 800; font-size: 17px; line-height: 1.25; }
.tl-title span { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 2px; }
@media (max-width: 860px) {
  .log { grid-template-columns: 1fr; }
  .log__intro { position: static; }
}
@media (max-width: 560px) {
  .tl-item { grid-template-columns: 48px 1fr; gap: 6px 14px; padding: 14px; }
  .tl-icon { width: 48px; height: 48px; grid-row: span 2; }
  .tl-day { grid-column: 2; order: 2; }
  .tl-day small { display: inline; margin-left: 6px; }
  .tl-item .pills { grid-column: 2; order: 3; }
  .tl-title { order: 1; }
  .tl-item--compact { grid-template-columns: 48px 1fr; }
}

/* ---------- bubble lab mini game ---------- */
.play { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.play__copy h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
.play__copy > p { margin-top: 18px; color: var(--muted); max-width: 480px; }
.rules { display: grid; gap: 12px; margin: 28px 0 32px; }
.rules li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.rules i { width: 30px; height: 30px; border-radius: 50%; flex: none; box-shadow: inset -4px -6px 10px rgba(0, 0, 0, 0.25), inset 4px 4px 8px rgba(255, 255, 255, 0.5); }
.rules .r-normal { background: radial-gradient(circle at 35% 30%, #fff 0 8%, #b9a6ff 9%, #7c5cff 70%); }
.rules .r-gold { background: radial-gradient(circle at 35% 30%, #fff 0 8%, #ffe08a 9%, #ffb020 70%); }
.rules .r-toxic { background: radial-gradient(circle at 35% 30%, #fff 0 8%, #4b5a2a 9%, #1f2a0c 70%); box-shadow: inset 0 0 0 2px var(--lime); }
.rules span { color: var(--muted); font-weight: 500; }
.best-score { display: inline-flex; gap: 10px; align-items: baseline; padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.best-score b { font-family: var(--font-display); font-size: 24px; }
.best-score span { color: var(--muted); font-size: 14px; font-weight: 600; }

.phone { position: relative; width: min(330px, 82vw, calc((100svh - 150px) * 9 / 18.5)); min-width: 260px; aspect-ratio: 9 / 18.5; padding: 12px; border-radius: 48px; background: linear-gradient(145deg, #2a2a3c, #0e0e16); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 100px -30px rgba(124, 92, 255, 0.55), 0 30px 60px -30px rgba(0, 0, 0, 0.9); justify-self: center; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 90px; height: 26px; border-radius: 20px; background: #000; z-index: 5; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: radial-gradient(120% 70% at 50% 0%, #2a1d5e 0%, #120d26 55%, #0a0814 100%); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.phone__screen canvas { width: 100%; height: 100%; }
.hud { position: absolute; top: 58px; left: 18px; right: 18px; z-index: 3; display: flex; justify-content: space-between; align-items: center; pointer-events: none; font-family: var(--font-display); font-weight: 700; }
.hud__score { font-size: 28px; letter-spacing: -0.03em; }
.hud__time { font-size: 15px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-variant-numeric: tabular-nums; }
.hud__time.is-low { background: var(--pink); }
.hud__combo { position: absolute; top: 40px; left: 0; font-size: 13px; color: var(--lime); opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s; }
.hud__combo.is-on { opacity: 1; transform: none; }
.mute { position: absolute; z-index: 6; bottom: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); }
.mute svg { width: 18px; height: 18px; }
.overlay { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: rgba(10, 8, 20, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: opacity 0.3s; }
.overlay.is-hidden { opacity: 0; pointer-events: none; }
.overlay h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.overlay p { color: var(--muted); font-size: 15px; }
.overlay .final { font-family: var(--font-display); font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.overlay .newbest { color: var(--lime); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.shake { animation: shake 0.35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 860px) {
  .play { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-l); padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px); background: var(--grad); isolation: isolate; text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.2px, transparent 1.6px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); opacity: 0.5; }
.cta h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; }
.cta p { margin: 18px auto 32px; max-width: 520px; font-size: 18px; color: rgba(255, 255, 255, 0.85); }
.cta__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cta .btn--ghost { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); }
.cta .btn--ink { background: var(--ink); color: #fff; }
.cta .btn--ink:hover { transform: translateY(-2px) scale(1.02); }
.cta__bubble { position: absolute; z-index: -1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.08) 60%); border: 1px solid rgba(255, 255, 255, 0.35); animation: floaty 8s ease-in-out infinite; }

.subscribe { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); }
.subscribe input[type="email"] { flex: 1; min-width: 0; height: 50px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: #fff; outline: none; font-weight: 600; }
.subscribe input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.75); }
.subscribe .btn { --h: 50px; flex: none; }
.subscribe .btn[disabled] { opacity: 0.6; pointer-events: none; }
.subscribe.is-error { border-color: #fff; box-shadow: 0 0 0 3px rgba(22, 17, 46, 0.5); }
.subscribe__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.subscribe__note { margin: 14px auto 28px !important; font-size: 14px !important; color: rgba(255, 255, 255, 0.8) !important; }
.subscribe__note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.subscribe__note.is-ok { color: #fff !important; font-weight: 700; }
@media (max-width: 520px) {
  .subscribe { flex-direction: column; border-radius: 24px; }
  .subscribe .btn { width: 100%; }
}

/* ---------- cookie consent ---------- */
.consent { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 600px; margin: 0 auto; display: flex; gap: 16px; align-items: center; padding: 14px 16px 14px 20px; border-radius: 20px; background: rgba(19, 19, 31, 0.97); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85); font-size: 14px; line-height: 1.5; color: var(--muted); transform: translateY(calc(100% + 32px)); transition: transform 0.5s var(--ease-out); }
.consent.is-shown { transform: none; }
.consent p { flex: 1; }
.consent a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.consent__btns { display: flex; gap: 8px; flex: none; }
@media (max-width: 560px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent__btns .btn { flex: 1; }
}

/* ---------- footer ---------- */
main > .section:last-child { padding-bottom: 0; }
.footer { padding: 72px 0 40px; margin-top: clamp(60px, 9vw, 120px); border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer__brand p { margin-top: 16px; color: var(--muted); max-width: 300px; font-size: 15px; }
.footer h4 { font-family: var(--font-body); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin-bottom: 14px; }
.footer li + li { margin-top: 8px; }
.footer li a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color 0.2s; }
.footer li a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); transition: all 0.2s; }
.socials a:hover { color: var(--text); border-color: var(--text); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- inner pages ---------- */
.page { padding: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) 0 0; min-height: 70vh; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: var(--muted); font-weight: 700; font-size: 15px; transition: color 0.2s; }
.back:hover { color: var(--text); }
.back a { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.game-body__sub { margin-top: 40px; }
.back svg { width: 18px; height: 18px; }
.page-hero { position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c, var(--violet)) 40%, transparent), transparent); filter: blur(30px); }

/* game page */
.game-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; }
.game-head__icon { width: clamp(112px, 16vw, 168px); aspect-ratio: 1; border-radius: 22%; box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--c, var(--violet)) 70%, transparent); }
.game-head__icon .art__label { --fs: clamp(2.2rem, 4vw, 3.4rem); }
.game-head h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.04em; }
.game-head__tagline { margin-top: 10px; font-size: clamp(17px, 2vw, 21px); color: var(--muted); font-weight: 600; }
.game-head .pills { margin-top: 16px; }
.game-stores { margin-top: 32px; }
@media (max-width: 600px) {
  .game-head { grid-template-columns: 1fr; }
}
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; margin: 56px calc(var(--gutter) * -1) 0; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.shot { flex: none; width: clamp(200px, 22vw, 250px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line-2); background: var(--surface); cursor: zoom-in; transition: transform 0.3s var(--ease-out); }
.shot:hover { transform: translateY(-6px); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--placeholder { cursor: default; }
.shot--placeholder .art { width: 100%; height: 100%; }
.shot--placeholder .art__label { --fs: 1.1rem; font-family: var(--font-body); letter-spacing: 0; opacity: 0.8; }
.game-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 80px); margin-top: clamp(40px, 6vw, 72px); }
.game-body h2 { font-size: 26px; margin-bottom: 16px; }
.game-body__desc { color: var(--muted); font-size: 18px; }
.features { display: grid; gap: 12px; margin-top: 32px; }
.features li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.features li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316112e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.facts { padding: 8px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); align-self: start; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--dim); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.facts a { color: var(--lime); }
@media (max-width: 860px) {
  .game-body { grid-template-columns: 1fr; }
}
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(5, 5, 10, 0.92); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 24px; }
.lightbox button { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: 24px; line-height: 1; }

/* prose (privacy / legal) */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 12px; }
.prose .updated { color: var(--dim); font-weight: 600; margin-bottom: 40px; }
.prose h2 { font-size: 22px; margin: 44px 0 14px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0; padding-left: 0; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.toc { padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { padding: 3px 0; color: var(--muted); }
.toc li::before { display: none; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* support */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0 72px; }
.contact-card { padding: clamp(24px, 4vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-card--main { background: var(--grad); border: 0; }
.contact-card h2 { font-size: 24px; margin-bottom: 10px; }
.contact-card p { color: var(--muted); margin-bottom: 22px; }
.contact-card--main p { color: rgba(255, 255, 255, 0.85); }
.contact-card .btn { margin-top: 4px; }
@media (max-width: 760px) { .support-grid { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.06); font-size: 20px; transition: transform 0.3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--lime); color: var(--ink); }
.faq .faq__a { padding: 0 22px 22px; color: var(--muted); }
.faq .faq__a a { color: var(--lime); }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.notfound__code { font-family: var(--font-display); font-size: clamp(6rem, 22vw, 14rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.06em; }
.notfound h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 18px 0 12px; }
.notfound p { color: var(--muted); margin-bottom: 32px; }
.notfound img { width: 96px; margin: 0 auto 28px; border-radius: 24px; animation: floaty 5s ease-in-out infinite; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero__title .line > span { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
