/* ═══════════════════════════════════════════════════════ */
/*  I'M WIZZARD — "Living-Room Invasion"                     */
/*  Sticker-book · doodle monsters · neon portals · loot     */
/* ═══════════════════════════════════════════════════════ */

:root {
  /* Daylight apartment */
  --paper:       #f6f5f1;
  --paper-2:     #fffdf8;
  --ink:         #1d1c26;
  --ink-soft:    #54525f;
  --ink-faint:   #75727f;

  /* Pulled straight from gameplay */
  --portal:      #b32eff;
  --portal-deep: #8714cf;
  --loot:        #8a2be2;
  --loot-deep:   #6c1cb8;
  --hud:         #4f9e63;
  --hud-deep:    #2f7a42;
  --shield:      #2fd4c4;
  --shield-deep: #0b7d72;
  --lava:        #ff5a26;
  --lava-deep:   #b33000;
  --ice:         #5fb7ff;
  --ice-deep:    #1565b3;
  --slime:       #7ed321;
  --slime-deep:  #3f7a0a;
  --rage:        #ff3860;
  --rage-deep:   #c40f35;
  --star:        #e8930c;

  --portal-conic: conic-gradient(
    from 0deg,
    transparent 0deg 14deg,  var(--portal) 26deg 40deg,
    transparent 52deg 78deg, var(--portal) 92deg 110deg,
    transparent 122deg 150deg, var(--portal) 165deg 180deg,
    transparent 192deg 222deg, var(--portal) 235deg 255deg,
    transparent 267deg 295deg, var(--portal) 310deg 330deg,
    transparent 342deg 360deg
  );

  /* Sticker shadows: solid, printed */
  --stick-c:     #1d1c26;
  --stick-soft:  rgba(29,28,38,0.16);
  --stick-hard:  rgba(29,28,38,0.9);
  --stick-sm:    4px 5px 0 var(--stick-c);
  --stick-md:    7px 8px 0 var(--stick-c);
  --stick-lg:    10px 12px 0 var(--stick-c);

  /* Type — 2 families, 3 sizes each, ≤2 weights each.
     Titan One: 400 only. Outfit: 400 + 700. */
  --display:     'Titan One', 'Arial Rounded MT Bold', sans-serif;
  --body:        'Outfit', system-ui, sans-serif;

  --fs-h:        clamp(56px, 10vw, 120px); /* display · heading   */
  --fs-sub:      clamp(30px, 5vw, 54px);   /* display · subheading */
  --fs-base:     21px;                     /* display · base       */

  --fs-lead:     19.5px;                   /* body · lead/sub      */
  --fs-text:     17px;                     /* body · text          */
  --fs-label:    12px;                     /* body · label/caption */

  --max:         1180px;
  --r-lg:        28px;
  --r-md:        20px;
  --r-sm:        12px;

  --ease:        cubic-bezier(0.34, 1.4, 0.4, 1);
  --ease-soft:   cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────── RESET ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--paper); color-scheme: light; }

body {
  background:
    radial-gradient(rgba(29,28,38,0.07) 1.3px, transparent 1.3px) 0 0 / 26px 26px,
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-text);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
em { font-style: italic; }
strong { font-weight: 700; }
ul { list-style: none; }
::selection { background: rgba(179,46,255,0.28); color: var(--ink); }

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

.container { max-width: var(--max); margin: 0 auto; padding-inline: 32px; position: relative; }
.svg-defs { position: absolute; width: 0; height: 0; pointer-events: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hidden-field { position: absolute; left: -9999px; }

.skip-link {
  position: fixed; top: -60px; left: 18px; z-index: 200;
  padding: 10px 18px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-sm);
  font-weight: 700; font-size: var(--fs-text);
  transition: top 0.25s var(--ease-soft);
}
.skip-link:focus { top: 14px; }

/* ───────────────────── SHARED PIECES ───────────────────── */
.doodle {
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.seam {
  display: block;
  height: 16px;
  margin: 6px auto;
  max-width: min(620px, 72vw);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='16'%3E%3Cpath d='M0 8l8-6 7 12 8-12 7 12 8-12 8 6' fill='none' stroke='%23b32eff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / auto 16px repeat-x;
  opacity: 0.6;
}

.wave-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.wave-no {
  display: inline-block;
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #fff;
  background: var(--hud);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 7px 16px 6px;
  box-shadow: var(--stick-sm);
  margin-bottom: 22px;
}
.wave-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-sub);
  line-height: 1.08;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
}
.wave-sub { font-size: var(--fs-lead); color: var(--ink-soft); }
/* vertical-align:middle centers on x-height, but ∞ sits among all-caps — lift toward cap-height center */
.inf { font-size: 1.4em; line-height: 0; vertical-align: middle; position: relative; top: -3px; }
.wave-sub em { color: var(--portal-deep); font-style: normal; font-weight: 700; }

/* ─────────────────────── BUTTONS ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: var(--fs-text);
  line-height: 1.15;
  white-space: nowrap;
  padding: 14px 24px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--stick-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--stick-c); }
.btn:active { transform: translate(2px, 3px); box-shadow: 2px 2px 0 var(--stick-c); }

.btn-store { background: var(--ink); color: var(--paper); box-shadow: 4px 5px 0 var(--loot); }
.btn-store:hover { box-shadow: 6px 7px 0 var(--loot); }
.btn-store:active { box-shadow: 2px 2px 0 var(--loot); }
.btn-store .apple { width: 20px; height: 23px; fill: currentColor; flex: none; }
.store-label { display: flex; flex-direction: column; align-items: flex-start; }
.store-label small { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.6px; opacity: 0.8; text-transform: uppercase; }
.store-label strong { font-size: var(--fs-text); letter-spacing: 0.2px; }

.btn-ghost .btn-heart { color: var(--rage); line-height: 1; }
.btn-go { background: var(--hud); color: #fff; }

.btn-sm { padding: 9px 16px; border-radius: 12px; gap: 8px; }
.btn-sm .apple { width: 15px; height: 18px; }
.btn-lg { padding: 17px 30px; border-radius: 18px; }

/* ─────────────────────────── NAV ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 2.5px solid var(--ink);
  transition: box-shadow 0.25s var(--ease-soft);
}
.nav.scrolled { box-shadow: 0 6px 0 rgba(29,28,38,0.08); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mob { width: 38px; flex: none; }
.brand-mob svg { width: 100%; height: auto; }
.brand:hover .brand-mob { animation: brand-wiggle 0.5s var(--ease); }
.brand-word { font-family: var(--display); font-weight: 400; font-size: var(--fs-base); letter-spacing: 0.4px; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-weight: 700; font-size: var(--fs-text); color: var(--ink-soft);
  border-bottom: 2.5px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--ink); border-color: var(--portal); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  display: inline-flex;
  background: var(--paper-2); border: 2.5px solid var(--ink); border-radius: 12px;
  width: 42px; height: 42px; flex: none;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
  box-shadow: var(--stick-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.theme-toggle:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--stick-c); }
.theme-toggle:active { transform: translate(2px, 3px); box-shadow: 2px 2px 0 var(--stick-c); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }

.nav-toggle {
  display: none;
  background: var(--paper-2); border: 2.5px solid var(--ink); border-radius: 12px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
  box-shadow: var(--stick-sm);
}
.nav-toggle svg { width: 21px; height: 21px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

.mobile-menu {
  display: none;
  flex-direction: column; gap: 11px;
  padding: 16px 20px 24px;
  border-top: 2.5px dashed rgba(29,28,38,0.25);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 400; font-size: var(--fs-base); letter-spacing: 0.4px;
  padding: 12px 18px;
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--stick-sm);
}
.mobile-menu a:nth-child(odd) { transform: rotate(-0.45deg); }
.mobile-menu a:nth-child(even) { transform: rotate(0.5deg); }
.mobile-menu a:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--stick-c); }
.mm-no {
  flex: none;
  font-family: var(--body); font-size: var(--fs-label); font-weight: 700; letter-spacing: 1.2px;
  color: #fff; background: var(--hud);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 3px 9px 2px;
  line-height: 1.4;
}
.mm-donate .mm-no { background: var(--rage); }
.mm-arrow { margin-left: auto; font-family: var(--body); font-weight: 700; font-size: var(--fs-lead); color: var(--ink-faint); }

/* ─────────────────────────── HERO ──────────────────────── */
.hero { overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 96px;
  min-height: calc(100vh - 75px);
}

.hud-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-size: var(--fs-label); font-weight: 700; letter-spacing: 1.6px;
  color: #fff; background: var(--hud);
  border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 8px 18px 7px;
  box-shadow: var(--stick-sm);
  margin-bottom: 30px;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: none; }

.hero-title { display: flex; flex-direction: column; font-weight: 400; }
.hero-im {
  font-family: var(--display);
  font-size: var(--fs-sub);
  line-height: 1;
  display: inline-flex; align-items: flex-start; gap: 14px;
  margin-bottom: 4px;
}
.hero-thats {
  font-family: var(--body); font-weight: 700; font-size: var(--fs-lead);
  color: var(--loot-deep);
  display: inline-flex; align-items: center; gap: 6px;
  transform: rotate(-3deg) translateY(8px);
  white-space: nowrap;
}
.doodle-arrow { width: 54px; height: 27px; color: var(--loot-deep); flex: none; }

.hero-name {
  position: relative;
  font-family: var(--display);
  font-size: var(--fs-h);
  line-height: 0.96;
  letter-spacing: 1px;
  text-shadow: 6px 6px 0 rgba(179,46,255,0.22);
  padding-bottom: 26px;
  width: fit-content;
}
.squiggle {
  position: absolute; left: 2%; bottom: 6px;
  width: 96%; height: 18px;
  color: var(--portal);
}

.hero-tag { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 520px; margin: 26px 0 34px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-chips li {
  font-family: var(--body); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 7px 14px 6px;
  box-shadow: 3px 3px 0 var(--stick-soft);
}

/* Hero stage: circular portal window + floating mobs + loot */
.hero-stage { position: relative; justify-self: center; padding: 56px 30px 70px; }

.portal-window {
  position: relative;
  width: min(420px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
}
.portal-ring {
  position: absolute; inset: -16px;
  border-radius: 50%;
  background: var(--portal-conic);
  filter: blur(9px);
  animation: portal-spin 9s linear infinite;
}
.portal-window::after {
  content: "";
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 3px solid var(--portal);
  box-shadow: 0 0 30px rgba(179,46,255,0.45), inset 0 0 22px rgba(179,46,255,0.35);
  pointer-events: none;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: #0c0817;
}

.hud-badge {
  position: absolute; top: 2%; right: -6%;
  z-index: 3;
  width: 148px; aspect-ratio: 1;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: radial-gradient(circle at 34% 28%, #66b277, var(--hud) 58%, var(--hud-deep));
  border: 3px solid #fff;
  box-shadow: 0 0 0 2.5px var(--ink), 6px 8px 0 2.5px var(--stick-hard);
  color: #fff;
  text-align: center;
  transform: rotate(7deg);
  transition: transform 0.2s var(--ease);
  animation: hud-bob 5s ease-in-out infinite;
}
.hud-badge:hover { transform: rotate(3deg) scale(1.06); }
.hud-line { font-family: var(--body); font-size: var(--fs-label); font-weight: 700; letter-spacing: 1px; opacity: 0.92; }
.hud-go { font-family: var(--display); font-weight: 400; font-size: var(--fs-base); line-height: 1.1; letter-spacing: 1px; }

.mob { position: absolute; height: auto; }
.mob-spike { width: clamp(86px, 10vw, 124px); top: -2%; left: -13%; }
.mob-ice { width: clamp(64px, 7.4vw, 92px); bottom: 1%; right: -8%; }

.cube { position: absolute; height: auto; will-change: transform; }
.cube-1 { width: 44px; top: 8%;  right: 16%; transform: rotate(-8deg); }
.cube-2 { width: 30px; top: 38%; left: -9%;  transform: rotate(14deg); }
.cube-3 { width: 56px; bottom: -3%; left: 7%; transform: rotate(-16deg); }
.cube-4 { width: 24px; bottom: 16%; right: -11%; transform: rotate(22deg); }

.stage-note {
  position: absolute; bottom: -6px; left: 7%;
  transform: rotate(-3.5deg);
  text-align: center;
}

/* ─────────────────────────── TICKER ────────────────────── */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 13px 0;
  white-space: nowrap;
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
}
.ticker-track {
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-base);
  letter-spacing: 2.2px;
  text-transform: uppercase;
  animation: ticker-slide 26s linear infinite;
}
.ticker-track span { display: inline-block; }

/* ──────────────────── WAVE 01 · BREACH ─────────────────── */
.breach { padding: 110px 0 96px; }

.trailer-frame { position: relative; max-width: 960px; margin: 0 auto; text-align: center; }
.trailer-screen {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0c0817;
  box-shadow: var(--stick-lg);
}
.trailer-video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.portal-disc {
  position: absolute;
  width: var(--d, 120px); aspect-ratio: 1;
  border-radius: 50%;
  background: #0c0817;
  border: 3px solid var(--ink);
  z-index: 2;
  pointer-events: none;
}
.portal-disc::before {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  background: var(--portal-conic);
  filter: blur(7px);
  animation: portal-spin 7s linear infinite;
  z-index: -1;
}
.portal-disc::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #1c1130, #0c0817 70%);
}
.disc-1 { --d: 128px; top: -52px; left: -42px; }
.disc-2 { --d: 84px; bottom: -34px; right: -26px; animation-delay: 1s; }

.trailer-tag {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--body); font-size: var(--fs-label); font-weight: 700; letter-spacing: 1.5px;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 8px 16px 7px;
  box-shadow: 3px 3px 0 var(--stick-soft);
}
.trailer-note {
  position: absolute; top: -44px; right: 4%;
  color: var(--portal-deep);
  transform: rotate(3deg);
}

/* ──────────────────── WAVE 02 · HANDS ──────────────────── */
.hands { padding: 96px 0; }

.spell-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 960px;
  margin: 0 auto;
}
.spell-card {
  --hue: var(--loot);
  display: flex; align-items: flex-start; gap: 22px;
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 28px 26px;
  box-shadow: var(--stick-md);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.spell-card:hover { transform: translate(-2px, -3px); box-shadow: 9px 10px 0 var(--stick-c); }
.spell-card:hover .spell-orb { transform: rotate(-6deg) scale(1.06); }
.spell-copy { flex: 1; min-width: 0; }
.spell-card[data-hue="lava"]   { --hue: var(--lava);   --hue-deep: var(--lava-deep); }
.spell-card[data-hue="shield"] { --hue: var(--shield); --hue-deep: var(--shield-deep); }
.spell-card[data-hue="loot"]   { --hue: var(--loot);   --hue-deep: var(--loot-deep); }
.spell-card[data-hue="rage"]   { --hue: var(--rage);   --hue-deep: var(--rage-deep); }

.spell-orb {
  flex: none;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.42), transparent 46%), var(--hue);
  border: 2.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset -4px -6px 0 rgba(29,28,38,0.18);
  transition: transform 0.2s var(--ease);
}
.spell-orb img { width: 52px; height: 52px; object-fit: contain; }
.spell-orb img.missing { display: none; }
.orb-hex {
  background-image:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.42), transparent 46%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='25'%3E%3Cpath d='M7 0l7 4v8l-7 4-7-4V4zM21 12.5l7 4v8l-7 4-7-4v-8z' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='1.6'/%3E%3C/svg%3E");
  background-color: var(--hue);
}

.spell-gesture {
  font-family: var(--body); font-size: var(--fs-label); font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--hue-deep, var(--loot-deep));
  margin-bottom: 5px;
}
.spell-card h3 { font-family: var(--display); font-weight: 400; font-size: var(--fs-base); letter-spacing: 0.4px; margin-bottom: 8px; }
.spell-copy p:last-child { font-size: var(--fs-text); line-height: 1.6; color: var(--ink-soft); }

/* ──────────────────── WAVE 03 · LOOT ───────────────────── */
.loot { padding: 96px 0; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px 34px;
  max-width: 980px;
  margin: 0 auto;
}
.shot {
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 12px 12px 12px;
  box-shadow: var(--stick-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.shot:nth-child(1) { transform: rotate(-1.7deg); }
.shot:nth-child(2) { transform: rotate(1.4deg); }
.shot:nth-child(3) { transform: rotate(1.1deg); }
.shot:nth-child(4) { transform: rotate(-1.3deg); }
.shot:hover { transform: rotate(0deg) translate(-2px, -3px); box-shadow: 9px 11px 0 var(--stick-c); z-index: 2; position: relative; }
.shot img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #0c0817;
}
.shot img.missing { opacity: 0; }
.shot figcaption { padding: 12px 6px 4px; text-align: center; }

.praise-wrap { max-width: 980px; margin: 72px auto 0; }
.praise-lead {
  text-align: center;
  color: var(--loot-deep);
  transform: rotate(-1deg);
  margin-bottom: 30px;
}
.praise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 28px;
}
.praise-sticker {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 30px 30px 26px;
  text-align: center;
  box-shadow: var(--stick-md);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.praise-sticker:nth-child(1) { transform: rotate(-1.2deg); }
.praise-sticker:nth-child(2) { transform: rotate(1deg); }
.praise-sticker:nth-child(3) { transform: rotate(0.9deg); }
.praise-sticker:nth-child(4) { transform: rotate(-1deg); }
.praise-sticker:hover { transform: rotate(0deg) translate(-2px, -3px); box-shadow: 9px 11px 0 var(--stick-c); z-index: 2; }
.praise-sticker::before {
  content: "";
  position: absolute; top: -14px; left: 50%;
  width: 110px; height: 26px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(179,46,255,0.24);
  border: 1.5px solid rgba(29,28,38,0.18);
  border-radius: 3px;
}
.praise-stars { display: block; color: var(--star); font-size: var(--fs-lead); letter-spacing: 5px; margin-bottom: 12px; }
.praise-sticker p { flex: 1 0 auto; font-size: var(--fs-lead); line-height: 1.6; margin-bottom: 14px; }
.praise-sticker cite { font-family: var(--body); font-weight: 700; font-style: normal; font-size: var(--fs-label); letter-spacing: 1px; color: var(--ink-faint); }

/* ──────────────────── WAVE ∞ · GO ──────────────────────── */
.go { padding: 110px 0 120px; }
.go .wave-head { margin-bottom: 48px; }

.go-stage { position: relative; width: fit-content; margin: 0 auto; padding: 28px 70px; }

.go-circle {
  position: relative;
  width: clamp(230px, 30vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 34% 28%, #66b277, var(--hud) 58%, var(--hud-deep));
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--ink), 10px 13px 0 3px var(--stick-hard);
  color: #fff;
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.go-circle::before, .go-circle::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 3px solid rgba(79,158,99,0.6);
  animation: pulse-ring 2.8s var(--ease-soft) infinite;
  pointer-events: none;
}
.go-circle::after { animation-delay: 1.4s; }
.go-circle:hover { transform: scale(1.045) rotate(-2deg); }
.go-circle:active { transform: scale(0.97); box-shadow: 0 0 0 3px var(--ink), 4px 5px 0 3px var(--stick-hard); }

.go-top, .go-bottom { font-family: var(--body); font-size: var(--fs-label); font-weight: 700; letter-spacing: 1.8px; opacity: 0.92; }
.go-circle strong { font-family: var(--display); font-weight: 400; font-size: var(--fs-h); line-height: 1; letter-spacing: 2px; }

.go-cube-1 { width: 46px; top: 6%; left: -2%; transform: rotate(-12deg); }
.go-cube-2 { width: 30px; bottom: 12%; right: 0; transform: rotate(18deg); }
.go-cube-3 { width: 24px; top: 16%; right: 6%; transform: rotate(-20deg); }

.go-cta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 18px;
  margin-top: 56px;
}

.guild { max-width: 960px; margin: 92px auto 0; }
.guild-head { text-align: center; margin-bottom: 34px; }
.guild-head h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-sub);
  line-height: 1.08;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.guild-doodle { display: inline-block; color: var(--loot-deep); transform: rotate(-1.2deg); }

.guild-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.guild-card {
  --hue: var(--loot);
  --hue-deep: var(--loot-deep);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 6px 7px 0 var(--hue);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.guild-card:hover { transform: translate(-3px, -4px) rotate(-0.5deg); box-shadow: 9px 11px 0 var(--hue); }
.guild-card:hover .guild-icon { animation: brand-wiggle 0.5s var(--ease); }
.guild-card[data-social="discord"]  { --hue: var(--loot); --hue-deep: var(--loot-deep); }
.guild-card[data-social="youtube"]  { --hue: var(--rage); --hue-deep: var(--rage-deep); }
.guild-card[data-social="facebook"] { --hue: var(--ice);  --hue-deep: var(--ice-deep); }

.guild-icon {
  width: 56px; height: 56px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hue);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  color: #fff;
  box-shadow: inset -3px -4px 0 rgba(29,28,38,0.18);
  margin-bottom: 6px;
}
.guild-icon svg { width: 26px; height: 26px; fill: currentColor; }

.guild-status {
  font-size: var(--fs-label); font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--hue-deep);
}
.guild-card h4 { font-family: var(--display); font-weight: 400; font-size: var(--fs-base); letter-spacing: 0.4px; }
.guild-bio { font-size: var(--fs-text); line-height: 1.55; color: var(--ink-soft); }

.guild-cta {
  margin-top: auto;
  font-size: var(--fs-label); font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px 6px;
  box-shadow: 3px 3px 0 var(--stick-soft);
  transition: background 0.15s, color 0.15s;
}
.guild-card:hover .guild-cta { background: var(--hue); color: #fff; }

.join-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
  max-width: 960px;
  margin: 72px auto 0;
}

.signup {
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 28px 28px 22px;
  box-shadow: var(--stick-md);
}
.signup-head { font-family: var(--display); font-weight: 400; font-size: var(--fs-base); margin-bottom: 8px; }
.signup-intro { font-size: var(--fs-text); color: var(--ink-soft); margin-bottom: 18px; }
.signup-fields { display: grid; gap: 12px; }
.signup input[type="email"],
.signup textarea {
  min-width: 0; width: 100%;
  font-family: var(--body); font-size: var(--fs-text); color: var(--ink);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 13px 16px;
}
.signup textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.signup input[type="email"]::placeholder,
.signup textarea::placeholder { color: var(--ink-faint); }
.signup input[type="email"]:disabled,
.signup textarea:disabled { opacity: 0.6; }
.signup-fields .btn-go { justify-content: center; }
.signup-fine { margin-top: 14px; font-size: var(--fs-label); color: var(--ink-faint); }

.studio-sticker {
  position: relative;
  background: #fff3c4;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 26px 26px 20px;
  box-shadow: var(--stick-md);
  transform: rotate(1.5deg);
  font-size: var(--fs-text);
  line-height: 1.6;
  color: var(--ink-soft);
}
.studio-sticker::before {
  content: "";
  position: absolute; top: -14px; left: 50%;
  width: 96px; height: 25px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(47,212,196,0.3);
  border: 1.5px solid rgba(29,28,38,0.18);
  border-radius: 3px;
}
.studio-sticker strong { color: var(--ink); }
.studio-sign { margin-top: 12px; color: var(--hud-deep); }

/* ─────────────────────────── FOOTER ────────────────────── */
.foot {
  background: var(--ink);
  color: var(--paper);
  border-top: 2.5px solid var(--ink);
  padding: 52px 0;
}
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.brand-foot .brand-mob { width: 52px; }
.brand-foot .brand-word { color: var(--paper); }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-links a {
  font-weight: 700; font-size: var(--fs-text); color: rgba(246,245,241,0.78);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.foot-links a:hover { color: #fff; border-color: var(--portal); }

.foot-social { display: flex; gap: 12px; }
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 2.5px solid rgba(246,245,241,0.35);
  border-radius: 12px;
  color: rgba(246,245,241,0.85);
  transition: transform 0.18s var(--ease), border-color 0.15s, color 0.15s;
}
.foot-social a:hover { color: #fff; border-color: var(--portal); transform: translate(-1px, -2px); }
.foot-social svg { width: 20px; height: 20px; fill: currentColor; }

.foot-copy { width: 100%; font-size: var(--fs-label); color: rgba(246,245,241,0.5); }

/* ──────────────────── LEGAL PAGES ──────────────────────── */
.legal { padding: 56px 0 110px; }

.legal-head { position: relative; text-align: center; max-width: 720px; margin: 0 auto 46px; }
.legal-mob { width: clamp(64px, 9vw, 88px); height: auto; margin: 0 auto 10px; }
.legal-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-sub);
  line-height: 1.05;
  letter-spacing: 0.5px;
  margin: 16px 0 10px;
}
.legal-updated {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  transform: rotate(-1deg);
}

.legal-sheet {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--stick-lg);
}
.legal-sheet::before {
  content: "";
  position: absolute; top: -16px; left: 50%;
  width: 130px; height: 28px;
  transform: translateX(-50%) rotate(-1.6deg);
  background: rgba(179,46,255,0.22);
  border: 1.5px solid rgba(29,28,38,0.18);
  border-radius: 3px;
}

.legal-sheet section { padding-top: 28px; margin-top: 28px; border-top: 2px dashed rgba(29,28,38,0.16); }
.legal-sheet section:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }

.legal-sheet h2 {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-base);
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}
.s-no {
  flex: none;
  font-family: var(--body); font-size: var(--fs-label); font-weight: 700; letter-spacing: 1px;
  color: #fff; background: var(--loot);
  border: 2px solid var(--ink); border-radius: 7px;
  padding: 2px 7px 1px;
  line-height: 1.5;
}
.legal-sheet h3 {
  font-family: var(--body);
  font-size: var(--fs-label); font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--hud-deep);
  margin: 18px 0 8px;
}
.legal-sheet p { font-size: var(--fs-text); line-height: 1.7; color: var(--ink-soft); }
.legal-sheet p + p { margin-top: 10px; }
.legal-sheet strong { color: var(--ink); }
.legal-sheet em { color: var(--portal-deep); font-style: normal; font-weight: 700; }
.legal-sheet a {
  color: var(--loot-deep); font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(138,43,226,0.35);
}
.legal-sheet a:hover { text-decoration-color: currentColor; }

.legal-sheet ul { margin-top: 12px; display: grid; gap: 9px; }
.legal-sheet li {
  position: relative;
  padding-left: 26px;
  font-size: var(--fs-text); line-height: 1.6;
  color: var(--ink-soft);
}
.legal-sheet li::before {
  content: "";
  position: absolute; left: 2px; top: 0.5em;
  width: 9px; height: 9px;
  background: var(--loot);
  border: 2px solid var(--ink);
  border-radius: 2.5px;
  transform: rotate(8deg);
}
.legal-sheet li:nth-child(even)::before { transform: rotate(-10deg); background: var(--portal); }

/* ──────────────────────── CURSOR TRAIL ──────────────────── */
.trail-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.trail-cube {
  position: absolute;
  left: var(--tx, -100px); top: var(--ty, -100px);
  width: 11px; height: 11px;
  background: var(--loot);
  border: 2px solid var(--ink);
  border-radius: 2.5px;
  opacity: 0;
}
.trail-cube.live { animation: trail-fall 0.7s var(--ease-soft) forwards; }

/* ─────────────────────── RESPONSIVE ────────────────────── */
@media (max-width: 1060px) {
  .hud-badge { width: 128px; right: -3%; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-simple .nav-actions .btn-ghost { display: inline-flex; }
  .nav-toggle { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 48px;
    padding-bottom: 72px;
    min-height: 0;
  }
  .hero-stage { padding: 48px 26px 64px; }
  .mob-spike { left: -4%; }
  .mob-ice { right: -2%; }

  .join-row { grid-template-columns: 1fr; }
  .studio-sticker { transform: rotate(0.8deg); }

  .guild-grid { grid-template-columns: 1fr; gap: 16px; }
  .guild-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    row-gap: 3px;
    align-items: center;
    text-align: left;
    padding: 18px;
  }
  .guild-icon { grid-row: 1 / 5; margin-bottom: 0; }
  .guild-cta { justify-self: start; margin-top: 8px; }
}

@media (max-width: 760px) {
  .container { padding-inline: 22px; }
  .nav-inner { padding: 12px 20px; }

  .spell-grid { grid-template-columns: 1fr; }
  .spell-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 18px; row-gap: 2px;
    align-items: center;
    padding: 22px 20px 20px;
  }
  .spell-copy { display: contents; }
  .spell-orb { grid-row: 1 / 3; width: 72px; height: 72px; }
  .spell-orb img { width: 42px; height: 42px; }
  .spell-gesture { grid-column: 2; align-self: end; margin-bottom: 3px; }
  .spell-card h3 { grid-column: 2; align-self: start; margin-bottom: 0; }
  .spell-copy p:last-child { grid-column: 1 / -1; margin-top: 14px; }

  .shot-grid { grid-template-columns: 1fr; gap: 30px; }
  .praise-grid { grid-template-columns: 1fr; }
  .breach, .hands, .loot { padding: 72px 0; }
  .go { padding: 84px 0 92px; }
  .wave-head { margin-bottom: 40px; }

  .trailer-frame { margin-top: 18px; }
  .trailer-note { top: -44px; right: 0; }
  .disc-1 { --d: 92px; top: -36px; left: -18px; }
  .disc-2 { --d: 56px; bottom: 168px; right: -14px; }
}

@media (max-width: 560px) {
  .nav .brand-word { display: none; }
  .legal { padding: 40px 0 80px; }
  .legal-sheet section { padding-top: 24px; margin-top: 24px; }
  .praise-sticker { padding: 26px 22px 22px; }
  .hero-thats { transform: rotate(-3deg) translateY(2px); }
  .hud-badge { width: 116px; top: -4%; right: -2%; border-width: 2.5px; }
  .hud-line { letter-spacing: 0.4px; }
  .stage-note { left: 6%; }
  .cube-3 { width: 42px; }
  .go-stage { padding: 22px 40px; }
  .ticker-track { letter-spacing: 1.6px; }
  .btn-lg { padding: 15px 24px; }
}

/* ──────────────── DARK THEME — "Lights Off" ────────────── */
/* Same sticker book, lamp off: chalk outlines on night paper,
   neon portal hues untouched, sticker shadows drop to void. */
html[data-theme="dark"] {
  color-scheme: dark;

  --paper:       #16141f;
  --paper-2:     #221f2e;
  --ink:         #f0ecf7;
  --ink-soft:    #b9b3c7;
  --ink-faint:   #8e8a9d;

  /* "-deep" hues double as accent text — lift them for contrast */
  --portal-deep: #d18bff;
  --loot-deep:   #c79bff;
  --hud-deep:    #8fd9a3;
  --shield-deep: #7fe8db;
  --lava-deep:   #ffa37f;
  --ice-deep:    #9fd2ff;
  --slime-deep:  #b8ed72;
  --rage-deep:   #ff8aa3;
  --star:        #ffb43d;

  --stick-c:     #070510;
  --stick-soft:  rgba(0,0,0,0.5);
  --stick-hard:  rgba(0,0,0,0.75);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(rgba(240,236,247,0.055) 1.3px, transparent 1.3px) 0 0 / 26px 26px,
    var(--paper);
}

html[data-theme="dark"] ::selection { background: rgba(179,46,255,0.45); color: #fff; }
html[data-theme="dark"] .nav.scrolled { box-shadow: 0 6px 0 rgba(0,0,0,0.4); }
html[data-theme="dark"] .mobile-menu { border-top-color: rgba(240,236,247,0.22); }
html[data-theme="dark"] .hero-name { text-shadow: 6px 6px 0 rgba(179,46,255,0.34); }

/* Green badges keep their dark-rimmed gradient (flipped --hud-deep would wash it) */
html[data-theme="dark"] .hud-badge,
html[data-theme="dark"] .go-circle {
  background: radial-gradient(circle at 34% 28%, #66b277, var(--hud) 58%, #2f7a42);
}

/* The post-it stays a real yellow post-it: pin its inks back to dark */
html[data-theme="dark"] .studio-sticker {
  --ink: #1d1c26;
  --ink-soft: #54525f;
  --hud-deep: #2f7a42;
}

html[data-theme="dark"] .foot { background: #100e18; color: var(--ink); }
html[data-theme="dark"] .brand-foot .brand-word { color: var(--ink); }
html[data-theme="dark"] .legal-sheet section { border-top-color: rgba(240,236,247,0.14); }
html[data-theme="dark"] .legal-sheet a { text-decoration-color: rgba(199,155,255,0.4); }
