/* =========================================================
   EVERFALL GAMES
   ========================================================= */
:root {
  --night: #061520;
  --night-2: #0a1f2d;
  --deep: #0d2838;
  --panel: rgba(160, 225, 255, 0.045);
  --panel-2: rgba(160, 225, 255, 0.08);
  --line: rgba(160, 225, 255, 0.13);
  --line-2: rgba(160, 225, 255, 0.24);
  --text: #eef9ff;
  --muted: #92b3c4;
  --dim: #5f8193;
  --crystal: #62e6ff;
  --crystal-2: #2f9bff;
  --crystal-3: #1c6fe0;
  --leaf: #8fe05e;
  --leaf-2: #3fae3a;
  --gold: #ffcf4d;
  --ink: #1d0f22;
  --uefn: #a996ff;
  --roblox: #6cc4ff;
  --minecraft: #9be36b;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 24px;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--crystal); color: var(--night); }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- crystal shine (icon-shaped mask) ---------- */
.shine-mask {
  position: relative;
  display: block;
  -webkit-mask: url("assets/icon.webp") center / 100% 100% no-repeat;
          mask: url("assets/icon.webp") center / 100% 100% no-repeat;
}
.shine-mask img { width: 100%; height: 100%; }
.shine-mask { overflow: hidden; }
.shine-mask::after, .sheen::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -100%; right: -100%;
  background: linear-gradient(112deg, transparent 43%, rgba(255, 255, 255, 0.85) 49.5%, rgba(200, 250, 255, 0.45) 51.5%, transparent 57%);
  transform: translateX(-34%);
  animation: shine 4.2s var(--ease) infinite;
  will-change: transform;
  pointer-events: none;
}
@keyframes shine {
  0%, 55% { transform: translateX(-34%); }
  85%, 100% { transform: translateX(34%); }
}

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crystal);
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 14px;
  background: linear-gradient(160deg, #d8fbff, var(--crystal) 45%, var(--crystal-2));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: drop-shadow(0 0 6px rgba(98, 230, 255, 0.9));
}
.eyebrow--center { justify-content: center; }
.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 78px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.lede { color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); max-width: 60ch; }
.mini-label {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #5cff8a; box-shadow: 0 0 0 0 rgba(92, 255, 138, 0.6);
  animation: live 1.8s infinite;
}
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(92, 255, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 255, 138, 0); } }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.02em 0.12em; margin: -0.06em -0.02em -0.12em; }
[data-split] .w > span { display: inline-block; will-change: transform; }

/* ---------- buttons (sticker style, matches the logo lettering) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px 12px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 12px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  backface-visibility: hidden;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}
.btn:hover::after { transform: translateX(130%); }
.btn--crystal {
  background: linear-gradient(180deg, #ffffff 0%, #eefaff 50%, #c9ecff 100%);
  box-shadow: inset 0 -4px 0 rgba(110, 180, 225, 0.35), 0 5px 0 var(--ink), 0 12px 24px rgba(0, 0, 0, 0.3);
}
.btn--gold {
  background: linear-gradient(180deg, #fff6cf 0%, #ffd95c 50%, #ffb52b 100%);
  box-shadow: inset 0 -4px 0 rgba(190, 110, 0, 0.3), 0 5px 0 var(--ink), 0 12px 24px rgba(0, 0, 0, 0.3);
}
.btn--glass {
  color: #fff;
  border-color: #fff;
  background: rgba(29, 15, 34, 0.5);
  box-shadow: 0 5px 0 rgba(29, 15, 34, 0.9), 0 12px 24px rgba(0, 0, 0, 0.3);
}
.btn--glass::after { background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.25) 50%, transparent 65%); }
.btn:hover { transform: translateY(-3px); }
.btn--crystal:hover { box-shadow: inset 0 -4px 0 rgba(110, 180, 225, 0.35), 0 8px 0 var(--ink), 0 18px 34px rgba(0, 0, 0, 0.35); }
.btn--gold:hover { box-shadow: inset 0 -4px 0 rgba(190, 110, 0, 0.3), 0 8px 0 var(--ink), 0 18px 34px rgba(0, 0, 0, 0.35); }
.btn--glass:hover { box-shadow: 0 8px 0 rgba(29, 15, 34, 0.9), 0 18px 34px rgba(0, 0, 0, 0.35); }
.btn:active { transform: translateY(4px); transition-duration: 0.08s; }
.btn--crystal:active, .btn--gold:active, .btn--glass:active { box-shadow: 0 1px 0 var(--ink), 0 4px 10px rgba(0, 0, 0, 0.3); }
.btn--lg { padding: 16px 30px 15px; font-size: 21px; border-radius: 18px; }
.btn--sm { padding: 10px 16px 9px; font-size: 15px; border-width: 2.5px; border-radius: 12px; box-shadow: 0 4px 0 var(--ink), 0 8px 18px rgba(0, 0, 0, 0.25); }
.btn--sm.btn--crystal { box-shadow: inset 0 -3px 0 rgba(110, 180, 225, 0.35), 0 4px 0 var(--ink), 0 8px 18px rgba(0, 0, 0, 0.25); }
.btn--sm.btn--gold { box-shadow: inset 0 -3px 0 rgba(190, 110, 0, 0.3), 0 4px 0 var(--ink), 0 8px 18px rgba(0, 0, 0, 0.25); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--text);
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.link-arrow:hover { background: var(--panel-2); border-color: var(--crystal); color: var(--crystal); }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================
   INTRO: cartoon waterfall (ink outlines, like the logo + banner art)
   ========================================================= */
.intro { position: fixed; inset: 0; z-index: 300; overflow: hidden; pointer-events: none; contain: strict; }
.intro__falls { position: absolute; inset: 0; }
.fall {
  --ink: #1d0f22;
  position: absolute; top: -6vh; height: 118vh;
  border-left: 4px solid var(--ink); border-right: 4px solid var(--ink);
  border-radius: 46px 46px 0 0;
  background: linear-gradient(90deg, #3a9fe6 0%, #6ad6ff 18%, #a9eeff 40%, #7fdcff 64%, #4fb8f2 88%, #3596e0 100%);
  will-change: transform;
  contain: layout paint;
}
.fall:nth-child(even) { background: linear-gradient(90deg, #2f8fdc 0%, #57c6f7 22%, #93e6ff 46%, #66cdf8 72%, #3a9ae0 100%); }
.fall > b { position: absolute; inset: 0; overflow: hidden; border-radius: 42px 42px 0 0; }
.fall > b::before {
  content: ""; position: absolute; left: 0; right: 0; top: -240px; bottom: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0 70px, transparent 70px 240px) var(--s1, 24%) 0 / 7px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0 40px, transparent 40px 120px) var(--s2, 58%) 0 / 5px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0 26px, transparent 26px 80px) var(--s3, 80%) 0 / 4px 100% no-repeat;
  animation: fall-flow var(--sp, 0.9s) linear infinite;
  will-change: transform;
}
.fall::before {
  /* frothy crest on the trailing top edge */
  content: ""; position: absolute; z-index: 1; left: -4px; right: -4px; top: -4px; height: 64px;
  border: 4px solid var(--ink); border-bottom: 0; border-radius: 46px 46px 0 0;
  background: linear-gradient(180deg, #ffffff 0 55%, #d9f7ff 100%);
}
@keyframes fall-flow { to { transform: translate3d(0, 240px, 0); } }
.intro__foam { position: absolute; z-index: 4; left: -4vw; right: -4vw; bottom: -5vh; height: 24vh; }
.intro__foam svg { width: 100%; height: 100%; overflow: visible; }
.intro__logo {
  position: absolute; z-index: 5; left: 50%; top: 46%;
  width: min(460px, 72vw);
  margin: calc(min(460px, 72vw) * -0.5) 0 0 calc(min(460px, 72vw) * -0.5);
  opacity: 0;
  will-change: transform, opacity;
}
.intro__logo::before { content: ""; position: absolute; inset: 10% 6% -4%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 40, 80, 0.45), transparent); }
.intro__logo img { width: 100%; height: auto; }
.intro__shine {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask: url("assets/logo.webp") center / 100% 100% no-repeat;
          mask: url("assets/logo.webp") center / 100% 100% no-repeat;
}
.intro__shine::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100%; right: -100%; background: linear-gradient(112deg, transparent 44%, rgba(255, 255, 255, 0.95) 50%, transparent 56%); transform: translateX(-34%); animation: shine 2.4s var(--ease) 0.4s infinite; }
.intro__leaves { position: absolute; z-index: 6; inset: 0; }
.intro__leaves img { position: absolute; top: 0; left: 0; will-change: transform; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 16px var(--pad);
  transition: transform 0.5s var(--ease), padding 0.4s var(--ease), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: 11px; padding-bottom: 11px;
  background: rgba(6, 21, 32, 0.9);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 10px; justify-self: start; }
.nav__logo { height: 52px; width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35)); transition: transform 0.5s var(--ease); }
.nav__brand:hover .nav__logo { transform: rotate(-2deg) scale(1.04); }
.nav.is-scrolled .nav__logo { height: 44px; }
.nav__links {
  display: flex; gap: 2px; padding: 5px;
  border-radius: 999px;
  background: rgba(6, 21, 32, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.nav__links a { position: relative; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: rgba(238, 249, 255, 0.85); transition: color 0.25s, background 0.25s; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav__links a.is-active { color: var(--night); background: var(--crystal); }
.nav__right { display: flex; align-items: center; gap: 10px; justify-self: end; grid-column: 3; }
.socials { display: flex; gap: 6px; }
.social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(6, 21, 32, 0.35); border: 1px solid rgba(255, 255, 255, 0.14); transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.3s var(--ease); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.social:hover { background: var(--crystal); color: var(--night); border-color: var(--crystal); transform: translateY(-2px); }
.mobile-menu .socials { margin-top: 26px; }
.footer__cols a.with-ic { display: flex; align-items: center; gap: 10px; }
.footer__cols a.with-ic svg { width: 16px; height: 16px; fill: currentColor; opacity: 0.8; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(6, 21, 32, 0.4); border: 1px solid rgba(255, 255, 255, 0.18); position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 100px var(--pad) 40px;
  background: radial-gradient(circle at 80% 0%, rgba(47, 155, 255, 0.25), transparent 50%), rgba(4, 14, 22, 0.97);
  clip-path: circle(0% at calc(100% - 44px) 40px);
  transition: clip-path 0.7s var(--ease);
  pointer-events: none;
}
.mobile-menu a:not(.btn) { font-family: var(--display); font-size: 44px; line-height: 1.2; }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 40px); pointer-events: auto; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--night);
}
.hero__intro { --fill: 1; position: absolute; inset: 0; will-change: transform; }
.hero__intro::before {
  /* blurred fill for portrait screens */
  content: ""; position: absolute; inset: -40px;
  background: url("assets/hero-bg.webp") center / cover;
  filter: blur(26px) saturate(1.2) brightness(0.85);
  opacity: 0;
}
.hero__stage {
  --W: max(100vw, 177.69vh);
  --H: max(56.28vw, 100vh);
  position: absolute; left: 50%; top: 50%;
  width: var(--W); height: var(--H);
  margin-left: calc(var(--W) / -2);
  /* push the scene down just enough that the crystal clears the nav (a mirrored skirt fills above) */
  margin-top: calc(var(--H) / -2 + max(0px, 88px - 50vh + var(--H) * 0.455));
  transform-origin: 50% 50%;
  will-change: transform;
}
.hero__bg { position: relative; width: 100%; height: 100%; object-fit: cover; user-select: none; }
/* mirrored skirt: keeps the zoomed stage seamless when it slides down during the dive */
.hero__stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100%; background: url("assets/hero-bg.webp") center / 100% 100%; transform: scaleY(-1); }

.hero__mist {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 38%;
  background:
    radial-gradient(ellipse 40% 60% at 25% 100%, rgba(235, 250, 255, 0.26), transparent 70%),
    radial-gradient(ellipse 35% 55% at 70% 100%, rgba(220, 245, 255, 0.2), transparent 70%),
    radial-gradient(ellipse 30% 40% at 50% 90%, rgba(200, 240, 255, 0.14), transparent 70%);
  animation: mist 22s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}
@keyframes mist { to { transform: translateX(6%); } }

.hero__falls i {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  overflow: hidden;
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
          mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
  opacity: 0.32;
}
.hero__falls i::before {
  content: ""; position: absolute; left: 0; right: 0; top: -34px; bottom: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0 5px, rgba(255, 255, 255, 0.8) 7px, rgba(255, 255, 255, 0) 11px, rgba(255, 255, 255, 0) 17px);
  animation: falls 0.7s linear infinite;
  will-change: transform;
}
@keyframes falls { to { transform: translateY(34px); } }

.hero__dim {
  position: absolute; inset: -100% -2px -2px;
  background: radial-gradient(circle at 49.6% 59.85%, rgba(6, 21, 32, 0.55) 0%, rgba(6, 21, 32, 0.9) 14%, var(--night) 31%);
  opacity: 0;
  pointer-events: none;
}
.hero__rays {
  position: absolute; left: 49.6%; top: 19.7%;
  width: 90%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(210, 250, 255, 0) 0deg 7deg, rgba(210, 250, 255, 0.28) 9deg, rgba(210, 250, 255, 0) 12deg 19deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.5) 18%, transparent 55%);
          mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.5) 18%, transparent 55%);
  opacity: 0.3;
  will-change: transform;
  pointer-events: none;
}
.hero__rays { animation: spin 80s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero__glow {
  position: absolute; left: 49.6%; top: 19.7%;
  width: 28%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200, 250, 255, 0.55) 0%, rgba(120, 220, 255, 0.2) 28%, rgba(60, 170, 255, 0) 62%);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse { 50% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.9); } }
.hero__bloom {
  position: absolute; left: 49.6%; top: 19.7%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, #fff 0%, rgba(220, 252, 255, 0.9) 12%, rgba(140, 235, 255, 0.4) 32%, transparent 62%);
  opacity: 0;
  pointer-events: none;
}
.hero__crystal {
  position: absolute; left: 49.6%; top: 19.7%;
  width: 13.3%; height: 27.8%;
  transform: translate(-50%, -50%);
}
.hero__crystal .shine-mask { width: 100%; height: 100%; }
.hero__crystal img { opacity: 0; object-fit: fill; }
.hero__crystal.is-free .shine-mask { animation: bob 4s ease-in-out infinite; }
.hero__crystal.is-free { filter: drop-shadow(0 0 40px rgba(98, 230, 255, 0.55)); }

.hero__sparkles { position: absolute; inset: 0; pointer-events: none; }
.spark {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0);
  animation: twinkle var(--d, 3s) ease-in-out var(--delay, 0s) infinite;
}
.spark::before, .spark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(closest-side, #fff 0%, rgba(255, 255, 255, 0.9) 18%, rgba(160, 240, 255, 0.4) 45%, transparent 100%);
}
.spark::before { clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%); background: #fff; }
.spark::after { inset: 18%; border-radius: 50%; }
@keyframes twinkle {
  0%, 100% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
  45% { transform: translate(-50%, -50%) scale(1) rotate(45deg); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(0.85) rotate(60deg); opacity: 0.9; }
}

.hero__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background:
    linear-gradient(to bottom, var(--night) 0%, var(--night) 20%, rgba(6, 21, 32, 0) 40%, rgba(6, 21, 32, 0) 72%, var(--night) 100%),
    radial-gradient(ellipse 62% 70% at 50% 50%, transparent 40%, rgba(6, 21, 32, 0.8) 85%, var(--night) 100%);
}
.leaf-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__leaves { z-index: 3; }

.fg { position: absolute; z-index: 4; pointer-events: none; will-change: transform; }
.fg > span { display: block; width: 100%; height: 100%; animation: fg-sway 7s ease-in-out infinite alternate; will-change: transform; }
.fg svg { width: 100%; height: 100%; overflow: visible; }
.fg--tl { left: -7vw; top: -9vh; width: clamp(240px, 30vw, 560px); aspect-ratio: 1; }
.fg--tr { right: -8vw; top: -12vh; width: clamp(240px, 28vw, 520px); aspect-ratio: 1; }
.fg--bl { left: -6vw; bottom: -14vh; width: clamp(220px, 24vw, 460px); aspect-ratio: 1; }
.fg--br { right: -6vw; bottom: -16vh; width: clamp(220px, 26vw, 500px); aspect-ratio: 1; }
.fg--tl > span { transform-origin: 0 0; filter: blur(2.5px) brightness(0.8); }
.fg--tr > span { transform-origin: 100% 0; filter: blur(3px) brightness(0.75); animation-duration: 8.4s; animation-delay: -2s; }
.fg--bl > span { transform-origin: 0 100%; filter: blur(4px) brightness(0.55); animation-duration: 9s; animation-delay: -4s; }
.fg--br > span { transform-origin: 100% 100%; filter: blur(4px) brightness(0.5); animation-duration: 7.6s; animation-delay: -1s; }
@keyframes fg-sway { from { transform: rotate(-2deg); } to { transform: rotate(2.4deg); } }

/* ---- living scene: HQ logo, wind in the trees and hair, eye glints ---- */
.hero__logo { --lw: min(40%, 62vh); position: absolute; left: 49.6%; top: 35%; width: var(--lw); margin-left: calc(var(--lw) / -2); pointer-events: none; animation: logo-float 6s ease-in-out infinite; will-change: transform; }
@keyframes logo-float { 50% { transform: translateY(-1.2%); } }
.hero__logo img { width: 100%; height: auto; }
.hero__logo span { position: absolute; inset: 0; overflow: hidden; -webkit-mask: url("assets/logo-hq.webp") center / 100% 100% no-repeat; mask: url("assets/logo-hq.webp") center / 100% 100% no-repeat; }
.hero__logo span::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100%; right: -100%; background: linear-gradient(112deg, transparent 45%, rgba(255, 255, 255, 0.9) 50%, transparent 55%); transform: translateX(-34%); animation: shine 7s var(--ease) 1.5s infinite; will-change: transform; }
.sway {
  position: absolute; left: calc(var(--l) * 1%); top: calc(var(--t) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
  overflow: hidden; pointer-events: none;
  -webkit-mask: radial-gradient(closest-side, #000 50%, transparent 100%);
          mask: radial-gradient(closest-side, #000 50%, transparent 100%);
  transform-origin: var(--o);
  animation: wind var(--d, 5s) ease-in-out infinite alternate;
  will-change: transform;
}
.sway i {
  position: absolute;
  left: calc(-100% * var(--l) / var(--w)); top: calc(-100% * var(--t) / var(--h));
  width: calc(100% * 100 / var(--w)); height: calc(100% * 100 / var(--h));
  background: url("assets/hero-bg.webp") 0 0 / 100% 100% no-repeat;
}
@keyframes wind { from { transform: rotate(calc(var(--a) * -0.6)); } to { transform: rotate(var(--a)); } }
.sway--tl { --l: 0; --t: 0; --w: 20; --h: 32; --o: 0% 0%; --a: 1.1deg; --d: 5.5s; }
.sway--tr { --l: 83.6; --t: 0; --w: 16.4; --h: 30; --o: 100% 0%; --a: -1deg; --d: 6.2s; animation-delay: -2s; }
.sway--hair-k { --l: 14.9; --t: 40.6; --w: 10.4; --h: 11.6; --o: 66% 88%; --a: -1.6deg; --d: 3.4s; }
.sway--hair-m { --l: 82.5; --t: 51.8; --w: 9.2; --h: 17.4; --o: 0% 32%; --a: 1.3deg; --d: 3.9s; animation-delay: -1.2s; }
.glint {
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  width: 1.5%; aspect-ratio: 1; pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: glint 5.5s ease-in-out infinite;
}
.glint::before { content: ""; position: absolute; inset: 0; background: #fff; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }
.glint::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(closest-side, #fff, rgba(190, 245, 255, 0.6) 50%, transparent); }
.glint--late { animation-delay: 2.7s; }
.glint--char { width: 7%; animation-duration: 4.6s; }
@keyframes glint {
  0%, 70%, 100% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
  78% { transform: translate(-50%, -50%) scale(1) rotate(45deg); opacity: 1; }
  88% { transform: translate(-50%, -50%) scale(0.2) rotate(80deg); opacity: 0.4; }
}

.hero__vignette {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(to top, rgba(4, 14, 22, 0.78) 0%, rgba(4, 14, 22, 0.25) 22%, transparent 38%),
    linear-gradient(to bottom, rgba(4, 14, 22, 0.45) 0%, transparent 14%),
    radial-gradient(ellipse 80% 80% at 50% 45%, transparent 55%, rgba(3, 12, 18, 0.4) 100%);
}

.hero__ui {
  position: absolute; z-index: 6; left: 0; right: 0;
  bottom: clamp(64px, 11vh, 120px);
  display: grid; justify-items: center; gap: 22px;
  padding: 0 var(--pad);
  text-align: center;
}
.hero__tagline {
  margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px;
  font-size: clamp(16px, 1.35vw, 20px); font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.plat-inline {
  padding: 5px 12px 4px; border-radius: 999px;
  font-size: 0.82em; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(6, 21, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-shadow: none;
}
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.hero__cue {
  position: absolute; z-index: 6; left: 50%; bottom: 20px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  white-space: nowrap;
  color: rgba(238, 249, 255, 0.75);
}
.hero__cue i { position: relative; width: 44px; height: 2px; background: rgba(255, 255, 255, 0.2); overflow: hidden; border-radius: 2px; }
.hero__cue i::after { content: ""; position: absolute; inset: 0; background: var(--crystal); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.hero__reveal { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.hero__reveal .eyebrow { position: absolute; left: 0; right: 0; top: 17vh; margin: 0; opacity: 0; }
.hero__reveal h2 {
  position: absolute; top: 50%; margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 5.6vw, 104px); line-height: 1;
  margin-top: -0.5em;
  white-space: nowrap;
  opacity: 0;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.25), 0 0 60px rgba(98, 230, 255, 0.25);
}
.hero__reveal-l { right: calc(50% + 11vh + 2.5vw); }
.hero__reveal-r {
  left: calc(50% + 11vh + 2.5vw);
  background: linear-gradient(180deg, #e9fdff 10%, var(--crystal) 60%, var(--crystal-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__reveal-sub {
  position: absolute; left: 0; right: 0; bottom: 11vh; width: min(560px, 88vw);
  margin: 0 auto; text-align: center; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px);
  opacity: 0;
}

/* portrait / mobile hero */
@media (min-aspect-ratio: 1/1) and (max-height: 780px) {
  .hero__ui { bottom: 34px; gap: 14px; }
  .hero__cue { display: none; }
  .btn--lg { padding: 13px 24px 12px; font-size: 18px; }
}
@media (max-aspect-ratio: 1/1) {
  .hero__intro::before { opacity: var(--fill); }
  .hero__stage {
    --W: 178vw; --H: 100.2vw;
    top: 40%;
    margin-top: calc(var(--H) / -2);
    -webkit-mask: linear-gradient(to bottom, transparent 0%, #000 14%, #000 84%, transparent 100%);
            mask: linear-gradient(to bottom, transparent 0%, #000 14%, #000 84%, transparent 100%);
  }
  .hero__reveal h2 { left: 0; right: 0; text-align: center; font-size: clamp(40px, 11vw, 72px); margin-top: 0; }
  .hero__reveal .hero__reveal-l { top: 22vh; }
  .hero__reveal .hero__reveal-r { top: auto; bottom: 27vh; }
  .hero__reveal .eyebrow { top: 14vh; }
  .hero__reveal-sub { bottom: 12vh; }
  .fg--tl, .fg--tr { top: -4vh; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative; z-index: 2;
  padding: clamp(56px, 6vw, 90px) 0;
  overflow: hidden;
}
.marquee::before {
  content: ""; position: absolute; left: -5%; right: -5%; top: 50%; height: 74px;
  background: #0c3346;
  transform: translateY(-40%) rotate(1.6deg);
  border-block: 1px solid var(--line);
}
.marquee__band {
  position: relative; margin: 0 -4vw; overflow: hidden;
  background: linear-gradient(90deg, #3fcaff, #8ef2ff 50%, #3fcaff);
  box-shadow: 0 12px 40px rgba(47, 170, 255, 0.3);
  transform: rotate(-1.6deg);
  will-change: transform;
}
.marquee__track { position: relative; display: flex; width: max-content; }
.marquee__row { display: flex; align-items: center; gap: 34px; padding: 14px 17px; animation: marquee 32s linear infinite; will-change: transform; }
.marquee__row span { font-family: var(--display); font-size: clamp(28px, 3vw, 44px); line-height: 1; color: #04213d; text-transform: uppercase; }
.marquee__row span.o { color: transparent; -webkit-text-stroke: 2px #04213d; }
.marquee__row b { width: 16px; height: 24px; background: #fff; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); box-shadow: 0 0 0 2px #04213d; flex: none; outline: 2px solid #04213d; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: clamp(96px, 11vw, 170px) 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: clamp(40px, 5vw, 70px); flex-wrap: wrap; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__head--center .lede { margin: 18px auto 0; }

/* platform chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 4px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); background: currentColor; }
.chip--uefn { color: var(--uefn); background: rgba(169, 150, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(169, 150, 255, 0.35); }
.chip--roblox { color: var(--roblox); background: rgba(108, 196, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(108, 196, 255, 0.35); }
.chip--minecraft { color: var(--minecraft); background: rgba(155, 227, 107, 0.14); box-shadow: inset 0 0 0 1px rgba(155, 227, 107, 0.35); }

/* ---------- GAMES grid + quick panel ---------- */
.ggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gtile {
  position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left;
  border-radius: 24px; overflow: hidden; cursor: pointer;
  background: linear-gradient(170deg, rgba(160, 225, 255, 0.08), rgba(160, 225, 255, 0.02));
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s var(--ease);
}
.gtile:hover, .gtile:focus-visible { transform: translateY(-6px); border-color: rgba(98, 230, 255, 0.45); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(98, 230, 255, 0.15); outline: none; }
.gtile__art { position: relative; aspect-ratio: 16 / 9; margin: 8px 8px 0; border-radius: 18px; overflow: hidden; }
.gtile__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gtile:hover .gtile__art img { transform: scale(1.06); }
.gtile__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 21, 32, 0.55), transparent 45%); }
.gtile__badge { position: absolute; z-index: 1; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 4px; border-radius: 9px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #8b2cff, #d6246e); box-shadow: 0 3px 0 #4a0f7a; }
.gtile__badge .live-dot { width: 6px; height: 6px; background: #fff; }
.gtile__badge--soon { color: var(--ink); background: linear-gradient(180deg, #fff6cf, #ffc93a); box-shadow: 0 3px 0 #9b4f06; }
.gtile__open { position: absolute; z-index: 1; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 6px; border-radius: 10px; font-family: var(--display); font-size: 14px; color: var(--ink); background: #fff; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.gtile:hover .gtile__open, .gtile:focus-visible .gtile__open { opacity: 1; transform: none; }
.gtile__body { padding: 16px 18px 20px; }
.gtile__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--dim); }
.gtile h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.05; }
.gtile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.gtile--more { cursor: default; align-items: center; justify-content: center; text-align: center; min-height: 100%; padding: 30px 24px; border-style: dashed; border-color: var(--line-2); background: radial-gradient(80% 70% at 50% 30%, rgba(98, 230, 255, 0.08), transparent 70%); }
.gtile--more:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.gtile--more img { width: 58px; margin: 0 auto 16px; filter: drop-shadow(0 0 16px rgba(98, 230, 255, 0.5)); animation: bob 3.6s ease-in-out infinite; }
.gtile--more h3 { font-size: 23px; }
.gtile--more a { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--crystal); }
.gtile--more a svg, .gtile__open svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.gsheet { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.gsheet[hidden] { display: none; }
.gsheet__backdrop { position: absolute; inset: 0; background: rgba(3, 10, 16, 0.82); }
.gsheet__panel { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 28px; background: #0a2231; border: 1px solid var(--line-2); box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6); }
.gsheet__close { position: absolute; z-index: 3; right: 14px; top: 14px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); background: #fff; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); transition: transform 0.25s var(--ease); }
.gsheet__close:hover { transform: rotate(90deg); }
.gsheet__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.gs__hero { position: relative; aspect-ratio: 21 / 9; overflow: hidden; }
.gs__hero img { width: 100%; height: 100%; object-fit: cover; }
.gs__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #0a2231 2%, rgba(10, 34, 49, 0.2) 55%, transparent); }
.gs__hero .gtile__badge { left: 18px; top: 18px; font-size: 11.5px; padding: 6px 11px 5px; }
.gs__main { position: relative; z-index: 1; margin-top: -54px; padding: 0 clamp(20px, 3.4vw, 34px) clamp(22px, 3.4vw, 32px); }
.gs__main .gtile__meta { margin-bottom: 6px; }
.gs__main h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 48px); line-height: 1; }
.gs__main > p { margin: 0 0 20px; color: var(--muted); }
.gs__play { margin-bottom: 22px; }
.gs__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gs__link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(160, 225, 255, 0.05); border: 1px solid var(--line); transition: border-color 0.25s, background 0.25s, transform 0.35s var(--ease); }
.gs__link:hover { border-color: var(--crystal); background: rgba(98, 230, 255, 0.08); transform: translateY(-2px); }
.gs__ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--crystal); background: rgba(98, 230, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(98, 230, 255, 0.28); }
.gs__ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gs__link span:nth-child(2) { display: grid; line-height: 1.25; min-width: 0; }
.gs__link b { font-weight: 700; }
.gs__link small { color: var(--dim); font-size: 13px; }
.gs__link > svg { width: 16px; height: 16px; margin-left: auto; flex: none; fill: none; stroke: var(--dim); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s, transform 0.3s var(--ease); }
.gs__link:hover > svg { stroke: var(--crystal); transform: translateX(3px); }
body.sheet-open { overflow: hidden; }

/* ---------- PLATFORMS (editorial rows) ---------- */
.plat-rows { border-top: 1px solid var(--line-2); }
.plat-row {
  position: relative;
  display: grid; grid-template-columns: 70px 1fr minmax(260px, 380px); align-items: center; gap: 24px;
  padding: clamp(18px, 2.4vw, 34px) 0;
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
}
.plat-row__num { align-self: start; margin-top: 1.2em; font-size: 13px; font-weight: 800; letter-spacing: 0.2em; color: var(--accent); }
.plat-row__word {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(84px, 15vw, 250px); line-height: 0.86; letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(238, 249, 255, 0.28);
  background: var(--img) center / cover;
  -webkit-background-clip: text; background-clip: text;
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left center;
  transition: background-size 1s var(--ease), -webkit-text-stroke-color 0.6s;
  will-change: transform;
}
.plat-row.is-lit .plat-row__word { background-size: cover; -webkit-text-stroke-color: rgba(238, 249, 255, 0.15); }
.plat-row__info p { margin: 0 0 12px; font-size: clamp(16px, 1.25vw, 19px); color: rgba(238, 249, 255, 0.85); }
.plat-row__info small { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

/* ---------- STUDIO (manifesto) ---------- */
.manifesto__text {
  margin: 0; max-width: 22ch;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(32px, 4.6vw, 72px); line-height: 1.12; letter-spacing: -0.02em;
}
.manifesto__text .mw { opacity: 0.16; }
.manifesto__text em { font-style: normal; }
.manifesto__text .u { color: var(--uefn); }
.manifesto__text .r { color: var(--roblox); }
.manifesto__text .m { color: var(--minecraft); }
.manifesto__text .c { color: var(--crystal); }
.pill {
  display: inline-block; vertical-align: -0.12em;
  width: 2.1em; height: 0.9em; margin: 0 0.12em;
  border-radius: 999px;
  background: var(--img) center / cover;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.pill--icon { width: 0.9em; background-size: 150%; background-color: rgba(98, 230, 255, 0.12); }

/* ---------- STORIES ---------- */
.story-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.story-list a {
  position: relative;
  display: grid; grid-template-columns: 170px 1fr 40px; align-items: center; gap: 24px;
  padding: 30px 8px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.story-list a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(98, 230, 255, 0.1), transparent 70%); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); }
.story-list a:hover::before { transform: scaleY(1); }
.story__main { display: grid; gap: 8px; min-width: 0; }
.story__by { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--dim); }
.story__by img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(98, 230, 255, 0.35); }
.story-list .kind { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crystal); }
.story-list h3 { margin: 0; font-weight: 600; font-size: clamp(19px, 1.9vw, 27px); line-height: 1.25; transition: transform 0.5s var(--ease), color 0.3s; }
.story-list a:hover h3 { transform: translateX(12px); color: var(--crystal); }
.story-list .arr { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background 0.3s, transform 0.4s var(--ease), border-color 0.3s; }
.story-list .arr svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.story-list a:hover .arr { background: var(--crystal); color: var(--night); border-color: var(--crystal); transform: rotate(-45deg); }

/* ---------- JOIN: pick your hero ---------- */
.party { overflow-x: clip; }
.party__glow { position: absolute; left: 62%; top: 55%; width: 900px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(98, 230, 255, 0.16), transparent); pointer-events: none; }
.party__leaves { opacity: 0.8; }
.party__grid { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.party__copy .lede { margin-top: 22px; }
.party__stage { position: relative; padding-top: 300px; display: flex; justify-content: center; align-items: flex-end; gap: clamp(0px, 2vw, 30px); padding-bottom: 24px; }
.party__ground {
  position: absolute; left: 6%; right: 6%; bottom: 0; height: 90px;
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(98, 230, 255, 0.28), rgba(98, 230, 255, 0.06) 60%, transparent 72%);
  border-radius: 50%;
}
.party__ground::after { content: ""; position: absolute; inset: 30% 12%; border-radius: 50%; border: 2px solid rgba(98, 230, 255, 0.25); }
.char { position: relative; display: flex; flex-direction: column; align-items: center; z-index: 1; }
.char--knight { --h: clamp(330px, 32vw, 470px); }
.char--mage { --h: clamp(318px, 30.8vw, 452px); }
.char__btn { position: relative; display: block; padding: 0; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.char__btn:focus-visible .char__body img { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 14px var(--crystal)); }
.char__body { position: relative; display: block; height: var(--h); transform-origin: 50% 100%; will-change: transform; }
.char__body img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35)); transition: filter 0.4s; user-select: none; -webkit-user-drag: none; }
.char__btn:hover .char__body img { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 18px rgba(98, 230, 255, 0.75)) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35)); }
.char__shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--mask) center / contain no-repeat;
          mask: var(--mask) center / contain no-repeat;
  overflow: hidden;
}
.char__shine::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100%; right: -100%; background: linear-gradient(112deg, transparent 46%, rgba(255, 255, 255, 0.75) 49.5%, rgba(190, 245, 255, 0.45) 51%, transparent 54%); transform: translateX(-34%); animation: shine 6s var(--ease) infinite; will-change: transform; }
.char--mage .char__shine::before { animation-delay: 3s; }
.char__shine.is-burst::before { animation: shine-once 0.9s cubic-bezier(0.45, 0, 0.2, 1) both; }
@keyframes shine-once { from { transform: translateX(-34%); } to { transform: translateX(34%); } }
.char__shadow { position: absolute; left: 50%; bottom: -8px; width: 62%; height: 22px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); }
.char__tag {
  margin-top: 14px;
  padding: 6px 12px 5px; border-radius: 10px;
  font-family: var(--display); font-size: 16px; letter-spacing: 0.04em;
  color: var(--ink); background: #fff; border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.char__quest {
  position: absolute; left: 50%; top: -34px; z-index: 2;
  width: 38px; height: 38px; margin-left: -19px;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 24px; line-height: 1; color: var(--ink);
  isolation: isolate;
  animation: quest 1.6s ease-in-out infinite;
  pointer-events: none;
}
.char__quest::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #fff6cf, #ffc93a);
  border: 3px solid var(--ink); border-radius: 10px;
  transform: rotate(45deg);
  box-shadow: 0 0 22px rgba(255, 207, 77, 0.6);
}
@keyframes quest { 50% { translate: 0 -10px; } }
.char.is-open { z-index: 3; }
.char.is-open .char__quest { opacity: 0; transition: opacity 0.3s; }
.char--knight .char__quest { top: calc(-34px + var(--h) * 0.02); }
.bubble {
  position: absolute; left: 50%; bottom: calc(100% + 18px); z-index: 5;
  width: 270px; margin-left: -135px;
  padding: 18px 18px 20px;
  color: var(--ink); background: #fff;
  border: 3px solid var(--ink); border-radius: 20px;
  box-shadow: 0 6px 0 var(--ink), 0 24px 50px rgba(0, 0, 0, 0.4);
  transform-origin: 50% 100%;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.7);
  transition: opacity 0.25s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0.45s;
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 22px; height: 22px; margin-left: -11px; background: #fff; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); }
.char.is-open .bubble { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s; }
.bubble small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #6a5a78; }
.bubble strong { display: block; margin: 4px 0 6px; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.05; }
.bubble p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.45; color: #3b2d45; }
.char--knight .bubble { margin-left: -95px; }
.char--mage .bubble { margin-left: -175px; }
.burst { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 4; }
.burst i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 6px #9ff0ff); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0 34px; background: linear-gradient(180deg, var(--night) 0%, #07202c 60%, #0a2a36 100%); border-top: 1px solid var(--line); }
.footer__glow { position: absolute; left: 50%; top: 0; width: 1100px; height: 700px; transform: translate(-50%, -35%); background: radial-gradient(closest-side, rgba(98, 230, 255, 0.2), transparent); pointer-events: none; }
.footer__leaves { opacity: 0.7; }
.footer__logo { position: relative; width: min(620px, 82vw); margin: 0 auto clamp(50px, 7vw, 90px); filter: drop-shadow(0 20px 60px rgba(47, 155, 255, 0.35)); will-change: transform; }
.footer__cols { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 30px; padding: 40px 0; border-top: 1px solid var(--line); }
.footer__cols a { display: block; padding: 5px 0; color: rgba(238, 249, 255, 0.8); font-weight: 500; transition: color 0.25s, transform 0.3s var(--ease); }
.footer__cols a:hover { color: var(--crystal); transform: translateX(4px); }
.footer__news p:not(.mini-label) { margin: 0 0 16px; color: var(--muted); }
.news-form { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); }
.news-form input { flex: 1; min-width: 0; padding: 0 12px; background: none; border: 0; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.news-form input::placeholder { color: var(--dim); }
.news-status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--crystal); }
.news-status.is-error { color: #ff8a8a; }
.footer__base { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 30px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.to-top:hover { color: var(--crystal); }

.grain {
  position: fixed; inset: 0; z-index: 250; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links, .nav__right .socials { display: none; }
  .nav__burger { display: block; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer__news { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav__right .btn { display: none; }
  .plat-row { grid-template-columns: 1fr; gap: 10px; }
  .plat-row__num { margin: 0; }
  .party__grid { grid-template-columns: 1fr; }
  .party__stage { padding-top: 250px; }
  .char--knight { --h: min(340px, 60vw); }
  .char--mage { --h: min(330px, 58vw); }
  .party__stage { gap: 0; }
  .bubble { width: 236px; padding: 14px 14px 16px; }
  .bubble strong { font-size: 22px; }
  .char--knight .bubble { margin-left: -70px; }
  .char--knight .bubble::after { left: 70px; }
  .char--mage .bubble { margin-left: -166px; }
  .char--mage .bubble::after { left: 166px; }
  .story-list a { grid-template-columns: 1fr 40px; gap: 8px 16px; padding: 22px 4px; }
  .story-list .kind, .story-list h3 { grid-column: 1; }
  .story-list .arr { grid-row: 1 / span 2; grid-column: 2; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .ggrid { grid-template-columns: 1fr; }
  .gs__links { grid-template-columns: 1fr; }
  .gtile__open { opacity: 1; transform: none; }
  .hero__ctas .btn { width: 100%; }
  .hero__ctas { width: 100%; max-width: 340px; }
  .hero__ui { gap: 16px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .nav__logo { height: 38px; }
  .nav.is-scrolled .nav__logo { height: 34px; }
  .btn--lg { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero__crystal img { opacity: 0; }
}

/* =========================================================
   FREE GOODIES SIGNUP
   ========================================================= */
.signup { position: relative; padding: clamp(40px, 5vw, 70px) 0 clamp(70px, 8vw, 110px); overflow: hidden; }
.signup__leaves { opacity: 0.55; }
.signup__card {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(20px, 4vw, 60px);
  padding: clamp(26px, 4vw, 56px); border-radius: 36px; overflow: hidden;
  background: radial-gradient(70% 90% at 12% 50%, rgba(98, 230, 255, 0.16), transparent 70%), linear-gradient(160deg, #0e3346, #081d2a 70%);
  border: 1px solid rgba(98, 230, 255, 0.28);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.signup__card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: url("assets/hero-bg.webp") center 30% / cover; opacity: 0.07; -webkit-mask: linear-gradient(90deg, #000, transparent 60%); mask: linear-gradient(90deg, #000, transparent 60%); }
.signup__art { position: relative; z-index: 1; aspect-ratio: 1; max-width: 400px; width: 100%; justify-self: center; }
.signup__rays { position: absolute; inset: -18%; background: repeating-conic-gradient(from 0deg, rgba(210, 250, 255, 0) 0deg 8deg, rgba(210, 250, 255, 0.16) 10deg, rgba(210, 250, 255, 0) 13deg 22deg); -webkit-mask: radial-gradient(circle, #000 10%, transparent 62%); mask: radial-gradient(circle, #000 10%, transparent 62%); animation: spin-free 60s linear infinite; will-change: transform; }
@keyframes spin-free { to { transform: rotate(360deg); } }
.signup__glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(150, 240, 255, 0.45), rgba(98, 230, 255, 0.1) 60%, transparent); animation: glowpulse 3.6s ease-in-out infinite; }
@keyframes glowpulse { 50% { transform: scale(0.9); opacity: 0.7; } }
.signup__crystal { position: absolute; left: 50%; top: 50%; width: 46%; margin: -23% 0 0 -23%; aspect-ratio: 1; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45)); }
.signup__crystal .shine-mask { width: 100%; height: 100%; animation: bob 3.4s ease-in-out infinite; }
.signup__gem { position: absolute; width: var(--s); aspect-ratio: 1; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4)); }
.signup__gem img { width: 100%; height: 100%; animation: gemfloat var(--d) ease-in-out infinite alternate; }
@keyframes gemfloat { from { transform: translateY(-6px) rotate(calc(var(--r) - 8deg)); } to { transform: translateY(8px) rotate(calc(var(--r) + 8deg)); } }
.signup__gem--1 { --s: 17%; --d: 3.1s; --r: -18deg; left: 10%; top: 18%; }
.signup__gem--2 { --s: 12%; --d: 2.6s; --r: 22deg; right: 12%; top: 12%; }
.signup__gem--3 { --s: 14%; --d: 3.6s; --r: 14deg; right: 8%; bottom: 20%; }
.signup__gem--4 { --s: 10%; --d: 2.9s; --r: -26deg; left: 18%; bottom: 12%; }
.signup__badge { position: absolute; right: 4%; top: 42%; padding: 8px 14px 6px; border-radius: 14px; font-family: var(--display); font-size: clamp(20px, 2vw, 28px); color: var(--ink); background: linear-gradient(180deg, #fff6cf, #ffc93a); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); transform: rotate(10deg); animation: badgewiggle 4s ease-in-out infinite; }
@keyframes badgewiggle { 0%, 80%, 100% { transform: rotate(10deg); } 85% { transform: rotate(4deg) scale(1.08); } 90% { transform: rotate(14deg) scale(1.08); } 95% { transform: rotate(8deg); } }
.signup__copy { position: relative; z-index: 1; }
.signup__copy .h2 { font-size: clamp(36px, 4.4vw, 64px); }
.signup__copy .lede { margin: 16px 0 20px; }
.signup__perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; }
.signup__perks li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 7px; border-radius: 999px; font-size: 14.5px; font-weight: 700; background: rgba(98, 230, 255, 0.08); border: 1px solid rgba(98, 230, 255, 0.28); }
.signup__perks i { width: 9px; height: 13px; background: linear-gradient(160deg, #d8fbff, var(--crystal) 45%, var(--crystal-2)); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.signup__fine { margin: 10px 0 0; font-size: 13px; color: var(--dim); }
.signup__done { display: none; align-items: flex-start; gap: 18px; padding: 22px; border-radius: 22px; background: linear-gradient(160deg, rgba(92, 255, 138, 0.1), rgba(92, 255, 138, 0.02)); border: 1px solid rgba(92, 255, 138, 0.35); }
.signup__done b { display: block; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; margin-bottom: 8px; }
.signup__done p { margin: 0 0 14px; color: var(--muted); }
.signup__tick { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: var(--ink); background: linear-gradient(180deg, #d9ffe4, #5cff8a); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.signup__tick svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.signup__card.is-joined .signup__formwrap { display: none; }
.signup__card.is-joined .signup__done { display: flex; animation: donein 0.7s cubic-bezier(0.34, 1.5, 0.64, 1) both; }
.signup__card.is-joined .signup__tick { animation: tickpop 0.6s 0.15s cubic-bezier(0.34, 1.8, 0.64, 1) both; }
.signup__card.is-joined .signup__tick svg { animation: tickdraw 0.5s 0.45s ease-out forwards; }
.signup__card.is-joined .signup__crystal .shine-mask { animation: bob 3.4s ease-in-out infinite, joyspin 1s cubic-bezier(0.34, 1.4, 0.64, 1); }
@keyframes donein { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes tickpop { from { transform: scale(0) rotate(-30deg); } }
@keyframes tickdraw { to { stroke-dashoffset: 0; } }
@keyframes joyspin { 50% { transform: translateY(-14px) scale(1.12) rotate(8deg); } }

/* big sticker-style form (signup band) */
.news-form--big { padding: 7px; border-radius: 20px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink), 0 20px 40px rgba(0, 0, 0, 0.35); transition: box-shadow 0.25s; }
.news-form--big:focus-within { box-shadow: 0 6px 0 var(--ink), 0 0 0 6px rgba(98, 230, 255, 0.3), 0 20px 40px rgba(0, 0, 0, 0.35); }
.news-form--big input { padding: 0 16px; font-size: 17px; font-weight: 600; color: var(--ink); }
.news-form--big input::placeholder { color: #7d8f9b; }
.news-form--big .btn { box-shadow: 0 4px 0 var(--ink); }
.news-form--big .btn:hover { box-shadow: 0 6px 0 var(--ink); }

/* submit states for every signup form */
.news-form.is-busy button { cursor: progress; }
.news-spin { display: inline-flex; animation: leafspin 0.9s linear infinite; }
@keyframes leafspin { to { transform: rotate(360deg); } }
.news-form.is-done button { background: linear-gradient(180deg, #d9ffe4, #5cff8a) !important; color: var(--ink); animation: donepop 0.5s cubic-bezier(0.34, 1.8, 0.64, 1); }
@keyframes donepop { 40% { transform: scale(1.12); } }
.news-check { width: 12px; height: 7px; margin: -4px 2px 0 0; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); }
.news-form.is-done input { opacity: 0.5; }
.leafburst { position: fixed; inset: 0; z-index: 500; pointer-events: none; overflow: hidden; }
.leafburst__leaf { position: absolute; left: 0; top: 0; will-change: transform, opacity; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3)); }
.leafburst__spark { position: absolute; left: 0; top: 0; width: 18px; height: 18px; background: #fff; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); filter: drop-shadow(0 0 6px #9ff0ff); will-change: transform, opacity; }

@media (max-width: 860px) {
  .signup__card { grid-template-columns: 1fr; }
  .signup__art { max-width: 260px; }
}
@media (max-width: 600px) {
  .news-form--big { flex-direction: column; }
  .news-form--big input { padding: 12px; }
  .news-form--big .btn { width: 100%; }
}
