/* SevenLevel Studio
   Palette comes from the logo: its signature blue (#0078b7), an electric
   blue for every action, and the ice-white of the logo's blade strokes,
   all on deep navy. Each game keeps its own accent colour on its card.
   Change colours and fonts in :root. */

:root {
  --ink: #050c18;
  --ink-2: #0a1830;
  --panel: #0c1d36;
  --raised: #132a4a;
  --line: rgba(143, 172, 210, 0.16);
  --line-strong: rgba(143, 172, 210, 0.32);
  --text: #eef7ff;
  --muted: #8fa8c8;

  --brand: #1aa3ff;     /* electric blue: buttons, links, highlights */
  --brand-2: #0078b7;   /* the logo's blue */
  --ice: #bff0ff;       /* the logo's blade strokes */
  --indigo: #5b7cff;
  --mint: #5ee6b0;
  --sky: #9be3ff;
  --danger: #ff5d73;
  --grad: linear-gradient(100deg, var(--ice) 0%, #4cc3ff 35%, var(--brand) 65%, var(--indigo) 100%);

  --display: "Unbounded", "Bahnschrift", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}

.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer { to { background-position: 200% center; } }

/* ------------------------------------------------------------ ambient FX */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 100;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.cursor-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(26, 163, 255, 0.09), transparent 60%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(var(--container), 100% - 24px);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, padding 0.4s, top 0.4s;
}

.nav.scrolled {
  top: 10px;
  background: rgba(8, 20, 42, 0.66);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(191, 240, 255, 0.12), 0 6px 22px -6px rgba(26, 163, 255, 0.8); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 0 1px rgba(191, 240, 255, 0.3), 0 8px 30px -4px rgba(26, 163, 255, 1); }
.brand-name { font: 800 17px/1 var(--display); letter-spacing: -0.02em; }
.brand-sub { font-weight: 400; color: var(--muted); margin-left: 6px; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 10px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* -------------------------------------------------------------- buttons */

.btn {
  --mx: 0px;
  --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 700 15px/1 var(--body);
  border-radius: 14px;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  translate: var(--mx) var(--my);
  transition: translate 0.35s var(--ease), transform 1s var(--ease), opacity 1s var(--ease), filter 1s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, border-color 0.3s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 12px 18px; font-size: 14px; }
.btn-lg { padding: 18px 26px; }
.btn-xl { padding: 22px 34px; font-size: 17px; border-radius: 18px; }

.btn-primary {
  color: var(--ink);
  background: var(--brand);
  box-shadow: 0 10px 30px -10px rgba(26, 163, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  animation: sheen 4.5s var(--ease) infinite;
}
.btn-primary:hover { box-shadow: 0 16px 44px -10px rgba(0, 120, 183, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-primary:hover::before { opacity: 1; }

@keyframes sheen {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.08); }

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 120px;
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, transparent 0%, rgba(5, 12, 24, 0.55) 70%, var(--ink) 100%),
    linear-gradient(to bottom, transparent 70%, var(--ink));
}

.hero-inner { position: relative; z-index: 2; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(12, 29, 54, 0.5);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(94, 230, 176, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(94, 230, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 230, 176, 0); }
}

.hero-title {
  margin: 28px auto 24px;
  font: 800 clamp(38px, 9vw, 120px)/0.98 var(--display);
  letter-spacing: -0.045em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.split .word { display: inline-block; white-space: nowrap; }
.split .ch {
  display: inline-block;
  transform: translateY(110%) rotate(8deg);
  opacity: 0;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
  transition-delay: calc(var(--i) * 28ms + 0.15s);
}
.split.gradient-text .ch {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
.split.gradient-text { animation: none; background: none; }
.is-loaded .split .ch { transform: none; opacity: 1; }

.hero-lede {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta li::before { content: ""; display: inline-block; vertical-align: middle; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--brand); }
.hero-meta b { color: var(--text); font-weight: 700; }

.scroll-hint { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; opacity: 0.7; }
.mouse { display: block; width: 24px; height: 38px; border: 2px solid var(--muted); border-radius: 14px; position: relative; }
.wheel { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--brand); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* --------------------------------------------------------------- marquee */

.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  transform: rotate(-1.5deg) scale(1.03);
  margin: -20px 0 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 30s linear infinite;
  font: 600 clamp(22px, 3vw, 34px)/1 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.marquee-track span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1px var(--muted); }
.marquee-track i { font-style: normal; color: var(--brand); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- mockup */

.showcase { padding: 120px 0 60px; perspective: 1600px; }

.mockup-stage { position: relative; max-width: 1000px; margin: 0 auto; }

.mockup {
  --rx: 22deg;
  --s: 0.9;
  position: relative;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1830;
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: rotateX(var(--rx)) scale(var(--s));
  transform-origin: 50% 0%;
  transition: transform 0.1s linear;
  font-family: "Segoe UI", var(--body);
}

.mockup-glow {
  position: absolute;
  inset: 10% 5% -10%;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(0, 120, 183, 0.35), rgba(91, 124, 255, 0.2) 40%, transparent 70%);
  filter: blur(60px);
}

.mk-titlebar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; background: #071226; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.mk-logo { width: 20px; height: 20px; border-radius: 5px; }
.mk-win { display: flex; gap: 14px; margin-left: auto; }
.mk-win i { width: 10px; height: 10px; border-radius: 50%; background: var(--raised); }

.mk-body { display: grid; grid-template-columns: 170px 1fr; min-height: 380px; }
.mk-side { display: flex; flex-direction: column; gap: 4px; padding: 16px 10px; border-right: 1px solid var(--line); background: #0c1b34; }
.mk-nav { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.mk-nav.active { background: var(--raised); color: var(--text); box-shadow: inset 3px 0 0 var(--brand); }
.mk-badge { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--brand); color: var(--ink); }

.mk-main { padding: 16px; display: grid; gap: 14px; align-content: start; }
.mk-hero { position: relative; height: 190px; border-radius: 12px; overflow: hidden; }
.mk-hero-art { position: absolute; inset: 0; }
.mk-hero-art svg { width: 100%; height: 100%; }
.mk-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 42, 0.95) 20%, transparent 75%); }
.mk-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 24px; max-width: 60%; font-size: 12px; color: var(--muted); }
.mk-hero-copy strong { font: 800 26px/1 var(--display); color: var(--text); letter-spacing: -0.03em; }
.mk-tag { color: var(--sky); font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.mk-play { align-self: flex-start; margin-top: 8px; padding: 8px 22px; border-radius: 8px; background: var(--brand); color: var(--ink); font-weight: 700; }

.mk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mk-poster { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; transition: transform 0.4s var(--ease); }
.mk-poster svg { width: 100%; height: 100%; }
.mockup:hover .mk-poster:nth-child(2) { transform: translateY(-6px); }

.mk-dl { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); background: #071226; font-size: 12px; }
.mk-dl-info { display: flex; flex-direction: column; min-width: 140px; }
.mk-dl-game { font-weight: 700; }
.mk-dl-game em { font-style: normal; color: var(--muted); font-weight: 400; }
.mk-dl-state { color: var(--mint); font-family: var(--mono); font-size: 11px; }
.mk-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--raised); overflow: hidden; }
.mk-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #5ee6b0, #6cb8ff); box-shadow: 0 0 12px #5ee6b0; }
.mk-dl-num { font-family: var(--mono); min-width: 42px; text-align: right; }

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 29, 54, 0.75);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
  font-size: 13px;
  animation: float 6s ease-in-out infinite;
}
.float-chip b { display: block; font-weight: 700; }
.float-chip small { color: var(--muted); font-size: 12px; }
.chip-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 800; font-size: 15px; }
.chip-icon.ok { background: rgba(94, 230, 176, 0.15); color: var(--mint); }
.chip-icon.up { background: rgba(108, 184, 255, 0.15); color: var(--sky); }
.chip-icon.pause { background: rgba(26, 163, 255, 0.15); color: var(--brand); font-size: 11px; }
.chip-a { top: 16%; left: -6%; }
.chip-b { top: 46%; right: -7%; animation-delay: -2s; }
.chip-c { bottom: 2%; left: 8%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* -------------------------------------------------------------- sections */

.section { position: relative; padding: 130px 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }

.kicker { font: 500 13px/1 var(--mono); color: var(--brand); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.section-title { font: 800 clamp(34px, 5.2vw, 64px)/1.04 var(--display); letter-spacing: -0.04em; }
.section-lede { max-width: 620px; margin-top: 20px; color: var(--muted); font-size: 18px; }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ----------------------------------------------------------------- games */

.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 29, 54, 0.5); }
.filter {
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: 600 13px/1 var(--body);
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}
.filter:hover { color: var(--text); }
.filter[aria-selected="true"] { background: var(--text); color: var(--ink); }

.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.game {
  --accent: var(--brand);
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s, opacity 0.5s var(--ease), scale 0.5s var(--ease);
}
.game:hover { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--accent) 45%, transparent); }
.game.hidden { display: none; }
.reveal-card { opacity: 0; }
.reveal-card.in { opacity: 1; animation: cardIn 0.9s var(--ease) both; animation-delay: var(--d, 0s); }
.game.entering { animation: cardIn 0.7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(0.96); } }

.game-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.game-cover svg { width: 100%; height: 100%; transition: transform 0.8s var(--ease); }
.game:hover .game-cover svg { transform: scale(1.07); }
.game-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.9s var(--ease);
}
.game:hover .game-cover::after { transform: translateX(100%); }

.game-badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 10px; border-radius: 8px; background: rgba(5, 12, 24, 0.75); backdrop-filter: blur(8px); font: 600 11px/1 var(--mono); color: var(--accent); }

.game-body { padding: 18px 18px 20px; }
.game-body h3 { font: 700 19px/1.2 var(--display); letter-spacing: -0.02em; }
.game-body p { margin-top: 6px; font-size: 14px; color: var(--muted); min-height: 44px; }
.game-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--muted); }
.game-foot span:last-child { color: var(--accent); }

.game[data-game] { cursor: pointer; }
.game-open { all: unset; cursor: pointer; }
.game:has(.game-open:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.game-status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--accent);
  color: #0b0710;
  font: 700 11px/1 var(--body);
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px -6px var(--accent);
}
.game-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: statusPulse 1.6s ease-in-out infinite; }
@keyframes statusPulse { 50% { opacity: 0.25; } }

.game-next .game-cover svg { opacity: 0.9; }
.game-next .game-foot span:last-child { color: var(--brand); }
.game-next:hover { border-color: var(--line-strong); box-shadow: none; }

/* living cover art (Child in Haunted House) */
.cih-window, .cih-lamp { animation: flicker 5s infinite; }
.cih-lamp { animation-duration: 3.2s; }
@keyframes flicker {
  0%, 18%, 22%, 60%, 64%, 100% { opacity: 1; }
  20% { opacity: 0.35; }
  62% { opacity: 0.6; }
  80% { opacity: 0.85; }
}
.cih-rain { animation: rain 0.45s linear infinite; }
@keyframes rain { to { transform: translateY(40px); } }
.cih-ghost { animation: ghost 9s ease-in-out infinite; }
@keyframes ghost { 0%, 70%, 100% { opacity: 0; } 76%, 86% { opacity: 0.8; } }
.cih-cloud { animation: cloud 14s ease-in-out infinite alternate; }
@keyframes cloud { to { transform: translateX(-26px); } }

/* living cover art (The Big Payout) */
.bp-wheel { transform-origin: 150px 150px; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bp-laser { animation: laser 2.2s ease-in-out infinite; }
@keyframes laser { 50% { opacity: 0.45; } }
.bp-led { animation: statusPulse 1s steps(2) infinite; }
.game:hover .bp-wheel { animation-duration: 3s; }

/* ---------------------------------------------------------- game modal */

html.modal-open { overflow: hidden; }

.game-modal {
  --accent: var(--brand);
  width: min(1040px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.game-modal::backdrop { background: rgba(3, 7, 15, 0.74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.game-modal[open] .gm-panel { animation: gmIn 0.55s var(--ease) both; }
.game-modal[open]::backdrop { animation: gmFade 0.4s ease both; }
@keyframes gmIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
@keyframes gmFade { from { opacity: 0; } }

.gm-panel {
  position: relative;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 40px 120px -30px color-mix(in srgb, var(--accent) 55%, transparent);
  overflow: hidden;
}
.gm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(5, 12, 24, 0.75);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.3s var(--ease);
}
.gm-close:hover { background: var(--raised); transform: rotate(90deg); }
.gm-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gm-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.gm-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  height: min(640px, calc(100dvh - 48px));
}
.gm-art { position: relative; height: 100%; aspect-ratio: 3 / 4; max-width: 46vw; min-height: 0; background: #050309; }
.gm-art svg { width: 100%; height: 100%; }
.gm-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 90%, var(--panel)); pointer-events: none; }
.gm-copy { overflow-y: auto; padding: 44px 44px 36px 36px; overscroll-behavior: contain; }

.gm-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font: 600 11px/1 var(--mono); }
.gm-genre, .gm-when { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong); }
.gm-genre { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.gm-when { color: var(--text); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.gm-title { font: 800 clamp(26px, 3.4vw, 38px)/1.08 var(--display); letter-spacing: -0.03em; padding-right: 40px; }
.gm-tagline { margin: 12px 0 18px; font-size: 17px; font-weight: 700; color: var(--accent); }
.gm-text { color: var(--muted); margin-bottom: 12px; }
.gm-sub { margin: 26px 0 12px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.gm-features { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.gm-features li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; }
.gm-features li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; rotate: 45deg; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.gm-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; margin: 26px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.gm-details div { padding: 12px 14px; background: var(--ink-2); }
.gm-details dt { font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.gm-details dd { margin: 6px 0 0; font-size: 14px; font-weight: 700; }
.gm-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
/* prices */
.price { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.price-now { font: 800 17px/1 var(--display); letter-spacing: -0.01em; color: var(--text); }
.price-was { font: 500 13px/1 var(--mono); color: var(--muted); }
.price-off { padding: 4px 7px; border-radius: 6px; background: var(--mint); color: #04150e; font: 800 12px/1 var(--body); }
.game-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 14px; }
.game-price small { font: 500 11px/1 var(--mono); color: var(--mint); }
.gm-price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 26px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); }
.gm-price .price-now { font-size: 24px; }
.gm-price-note { font-size: 13px; color: var(--mint); }

.gm-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.gm-cta > span { font-size: 13px; color: var(--muted); max-width: 260px; }

/* launcher mockup tie-ins */
[data-open-game] { cursor: pointer; }
.mk-hero-cih .mk-hero-copy strong { font-size: 22px; line-height: 1.05; }
.mk-hero-cih .mk-tag { color: #ff6b78; }
.mk-hero-cih .mk-play { background: #ff3b4e; color: #fff; }
.mk-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 12px; text-align: center; transition: color 0.2s, border-color 0.2s; }
.mk-slot span { font: 600 26px/1 var(--display); color: var(--brand); }
.mk-slot:hover { color: var(--text); border-color: var(--brand); }

/* --------------------------------------------------------------- bento */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-lg { grid-column: span 2; }

.card {
  --x: 50%;
  --y: 50%;
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 42, 74, 0.55), rgba(12, 29, 54, 0.35));
  overflow: hidden;
  isolation: isolate;
}
.card h3 { font: 700 21px/1.2 var(--display); letter-spacing: -0.02em; margin-top: 22px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(26, 163, 255, 0.13), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--x) var(--y), rgba(26, 163, 255, 0.7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }

.card-visual { height: 130px; border-radius: 14px; background: rgba(5, 12, 24, 0.6); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; position: relative; }

/* resume */
.vis-resume { padding: 0 28px; align-content: center; gap: 12px; }
.resume-bar { width: 100%; height: 10px; border-radius: 10px; background: var(--raised); overflow: hidden; position: relative; }
.resume-bar span { position: absolute; inset: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); animation: resume 5s var(--ease) infinite; }
.resume-labels { width: 100%; display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--muted); }
.resume-labels span:first-child { animation: blinkRed 5s infinite; }
.resume-labels span:last-child { animation: blinkGreen 5s infinite; }
@keyframes resume { 0% { width: 0; } 35% { width: 46%; } 55% { width: 46%; } 100% { width: 100%; } }
@keyframes blinkRed { 0%, 34%, 56%, 100% { color: var(--muted); } 36%, 54% { color: var(--danger); } }
@keyframes blinkGreen { 0%, 56% { color: var(--muted); } 60%, 100% { color: var(--mint); } }

/* hash */
.vis-hash { gap: 10px; align-content: center; }
.vis-hash code { font: 500 14px/1 var(--mono); color: var(--text); }
.hash-ok { justify-self: center; padding: 4px 10px; border-radius: 6px; background: rgba(94, 230, 176, 0.15); color: var(--mint); font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }

/* delta */
.vis-delta { grid-template-columns: repeat(6, 26px); gap: 8px; align-content: center; justify-content: center; }
.blk { width: 26px; height: 26px; border-radius: 6px; background: var(--raised); }
.blk.new { background: var(--brand); animation: blk 2.6s var(--ease) infinite; box-shadow: 0 0 16px rgba(26, 163, 255, 0.6); }
.blk.new:nth-child(6) { animation-delay: 0.4s; }
.blk.new:nth-child(12) { animation-delay: 0.8s; }
@keyframes blk { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.6) rotate(45deg); opacity: 0.4; } }

/* repair */
.vis-repair svg { width: 80%; }
.repair-path { fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 3s var(--ease) infinite; filter: drop-shadow(0 0 6px var(--sky)); }
@keyframes draw { 60%, 100% { stroke-dashoffset: 0; } }

/* shield */
.vis-shield svg { width: 72px; }
.vis-shield path:first-child { fill: rgba(91, 124, 255, 0.12); stroke: var(--indigo); stroke-width: 2; }
.vis-shield .tick { fill: none; stroke: var(--mint); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 2.6s var(--ease) infinite; }

/* speed */
.vis-speed { grid-template-columns: auto 1fr; gap: 28px; padding: 0 28px; }
.gauge { display: flex; align-items: baseline; gap: 6px; }
.gauge span { font: 800 46px/1 var(--display); letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gauge small { color: var(--muted); font: 500 13px/1 var(--mono); }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 70px; }
.spark i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, rgba(26, 163, 255, 0.25), var(--brand)); animation: bar 1.6s ease-in-out infinite alternate; }
.spark i:nth-child(3n) { animation-duration: 1.2s; }
.spark i:nth-child(3n + 1) { animation-duration: 2s; }
.spark i:nth-child(2n) { animation-delay: -0.6s; }
@keyframes bar { from { height: 20%; } to { height: 100%; } }

/* ----------------------------------------------------------------- stats */

.stats { padding: 60px 0; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(26, 163, 255, 0.04), rgba(91, 124, 255, 0.05)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; border-left: 2px solid var(--line-strong); }
.stat-num { font: 800 clamp(36px, 5vw, 58px)/1 var(--display); letter-spacing: -0.04em; }
.stat-label { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- studio */

.studio-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }

.level-detail { display: flex; gap: 22px; align-items: center; margin-top: 40px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.level-detail-num { font: 800 54px/1 var(--display); letter-spacing: -0.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 84px; }
.level-detail strong { font: 700 20px/1.2 var(--display); }
.level-detail p { color: var(--muted); margin-top: 4px; }
.level-detail .swap { animation: swap 0.5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

.stairs { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 10px; height: 440px; }
.stair {
  --h: 20%;
  flex: 1;
  height: var(--h);
  position: relative;
  border-radius: 12px 12px 4px 4px;
  border: 1px solid var(--line);
  background: linear-gradient(to top, rgba(19, 42, 74, 0.3), rgba(19, 42, 74, 0.9));
  cursor: pointer;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 1s var(--ease), background 0.4s, border-color 0.4s, box-shadow 0.4s;
  transition-delay: calc(var(--i) * 80ms);
}
.stairs.in .stair { transform: scaleY(1); }
.stair button { position: absolute; inset: 0; width: 100%; background: none; border: 0; cursor: pointer; color: inherit; padding: 12px 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; }
.stair-num { font: 600 12px/1 var(--mono); color: var(--muted); }
.stair-name { font: 700 12px/1 var(--display); writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.04em; color: var(--muted); transition: color 0.3s; }
.stair:hover { border-color: var(--line-strong); }
.stair.active { background: linear-gradient(to top, rgba(0, 120, 183, 0.25), var(--brand)); border-color: var(--brand); box-shadow: 0 0 40px -6px rgba(26, 163, 255, 0.6); }
.stair.active .stair-num, .stair.active .stair-name { color: var(--ink); }
.stair.done { background: linear-gradient(to top, rgba(26, 163, 255, 0.05), rgba(26, 163, 255, 0.3)); }

/* ------------------------------------------------------------------- how */

.steps { display: grid; grid-template-columns: 1fr 80px 1fr 80px 1fr; align-items: center; }
.step { text-align: center; padding: 10px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font: 800 28px/1 var(--display);
  position: relative;
}
.step-num::after { content: ""; position: absolute; inset: -6px; border-radius: 26px; border: 1px dashed rgba(26, 163, 255, 0.4); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.step h3 { font: 700 21px/1.2 var(--display); }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.step-line { height: 2px; background: var(--line); position: relative; overflow: hidden; margin-top: -90px; }
.step-line span { position: absolute; inset: 0; background: var(--grad); transform: translateX(-100%); animation: flow 2.6s var(--ease) infinite; }
@keyframes flow { to { transform: translateX(100%); } }

/* ------------------------------------------------------------------- faq */

.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.faq-list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: rgba(12, 29, 54, 0.5); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: var(--line-strong); background: var(--panel); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; display: grid; place-items: center; border-radius: 50%; background: var(--raised); color: var(--brand); font-size: 20px; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); animation: swap 0.5s var(--ease); }

/* -------------------------------------------------------------- download */

.download { position: relative; padding: 160px 0; overflow: hidden; text-align: center; }
.download-bg span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; animation: blob 16s ease-in-out infinite; }
.download-bg span:nth-child(1) { width: 480px; height: 480px; background: var(--brand-2); top: -10%; left: 10%; }
.download-bg span:nth-child(2) { width: 420px; height: 420px; background: var(--brand); bottom: -20%; right: 12%; animation-delay: -5s; }
.download-bg span:nth-child(3) { width: 360px; height: 360px; background: var(--indigo); top: 30%; left: 45%; animation-delay: -10s; }
@keyframes blob { 33% { transform: translate(60px, -40px) scale(1.1); } 66% { transform: translate(-50px, 30px) scale(0.9); } }
.download-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.download-title { font: 800 clamp(38px, 7vw, 90px)/1 var(--display); letter-spacing: -0.045em; margin-bottom: 44px; }
.download-note { margin-top: 22px; color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------- footer */

.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-top: 70px; background: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand); margin-bottom: 6px; }
.footer-col a { color: var(--muted); transition: color 0.25s, transform 0.25s; }
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 60px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.to-top:hover { color: var(--brand); }
.footer-giant {
  font: 800 clamp(44px, 12vw, 200px)/0.8 var(--display);
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(143, 172, 210, 0.18);
  background: linear-gradient(to bottom, rgba(26, 163, 255, 0.14), transparent 80%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-top: 10px;
  user-select: none;
}

/* --------------------------------------------------------------- publish */

.publish-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(26, 163, 255, 0.16), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(91, 124, 255, 0.14), transparent 60%),
    var(--ink-2);
  overflow: hidden;
}
.publish-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 34px; }
.publish-note { max-width: 260px; color: var(--muted); font-size: 14px; }

.publish-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.publish-perks .card { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 22px 24px; }
.publish-perks .card h3 { margin-top: 0; font-size: 18px; align-self: center; }
.publish-perks .card p { grid-column: 2; margin-top: 6px; font-size: 14px; }
.perk-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(26, 163, 255, 0.14); color: var(--brand); font-size: 18px; font-weight: 800; }

.publish-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.publish-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(12, 29, 54, 0.45); }
.publish-steps li > span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: var(--ink); font: 800 15px/1 var(--display); }
.publish-steps strong { font: 700 17px/1.2 var(--display); }
.publish-steps p { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .chip-a { left: -2%; }
  .chip-b { right: -2%; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(8, 20, 42, 0.95);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease);
  }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(8, 20, 42, 0.9); border-color: var(--line); backdrop-filter: blur(18px); }
  .nav > .btn { margin-left: auto; }
  .menu-toggle { display: flex; }

  .bento { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .studio-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .publish-panel { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .publish-steps { grid-template-columns: 1fr; gap: 12px; }
  .stairs { height: 320px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step-line { display: none; }
  .float-chip { display: none; }
  .mk-body { grid-template-columns: 1fr; }
  .mk-side { display: none; }
}

@media (max-width: 600px) {
  .nav { gap: 10px; padding-left: 12px; }
  .brand-sub { display: none; }
  .nav > .btn { padding: 11px 14px; font-size: 13px; }
  .hero-cta .btn { width: 100%; }
  .publish-panel { padding: 26px 18px; border-radius: var(--radius); }
  .publish-cta .btn { width: 100%; }
  .publish-perks .card { padding: 18px; column-gap: 14px; }
  .bento { grid-template-columns: 1fr; }
  .bento-lg { grid-column: auto; }
  .section { padding: 90px 0; }
  .showcase { padding: 80px 0 20px; }
  .mk-hero { height: 150px; }
  .mk-hero-copy { max-width: 80%; padding: 16px; }
  .mk-hero-copy strong { font-size: 20px; }
  .mk-row { gap: 8px; }
  .mk-dl-info { min-width: 0; }
  .game-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .game-next { grid-column: 1 / -1; }
  .game-next .game-cover { aspect-ratio: 16 / 7; }
  .game-status { top: 8px; right: 8px; padding: 4px 8px; font-size: 10px; }
  .game[data-game] .game-badge { display: none; }
  .game-foot { flex-wrap: wrap; gap: 8px; line-height: 1.3; }
  .mk-hero-cih .mk-hero-copy strong { font-size: 17px; }
  .mk-hero-cih .mk-hero-copy strong + span { display: none; }
  .game-body { padding: 14px; }
  .game-body h3 { font-size: 15px; }
  .game-body p { font-size: 13px; min-height: 0; }
  .game-foot { font-size: 10px; }
  .stairs { gap: 5px; height: 260px; }
  .stair-name { font-size: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .vis-speed { gap: 16px; padding: 0 18px; }
  .gauge span { font-size: 36px; }
}

@media (max-width: 760px) {
  .game-modal { width: calc(100vw - 24px); }
  .gm-body { display: block; height: auto; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
  .gm-art { width: 100%; height: auto; max-width: none; aspect-ratio: 3 / 4; }
  .gm-art::after { background: linear-gradient(180deg, transparent 80%, var(--panel)); }
  .gm-copy { overflow: visible; padding: 22px 18px 26px; }
  .gm-cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-card { opacity: 1; transform: none; filter: none; }
  .split .ch { transform: none; opacity: 1; }
  .stair { transform: none; }
  .grain { display: none; }
}

/* ======================================================================
   INNER PAGES (privacy, terms, refund policy, contact)
   Shared by every page that loads page.js instead of main.js.
   ====================================================================== */

.page-hero { position: relative; padding: 170px 0 70px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 520px;
  background:
    radial-gradient(40% 60% at 20% 40%, rgba(0, 120, 183, 0.32), transparent 70%),
    radial-gradient(35% 55% at 80% 30%, rgba(91, 124, 255, 0.22), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--text); }
.page-title { font: 800 clamp(38px, 6.4vw, 78px)/1.02 var(--display); letter-spacing: -0.045em; }
.page-lede { max-width: 680px; margin-top: 22px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.page-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.page-meta span { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(12, 29, 54, 0.6); font: 500 12px/1 var(--mono); color: var(--muted); }
.page-meta b { color: var(--text); font-weight: 500; }

/* layout: sticky table of contents + document */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding: 64px 0 120px; align-items: start; }
.legal-toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.legal-toc-title { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc ol a { display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; color: var(--muted); line-height: 1.35; transition: color 0.2s, border-color 0.2s; }
.legal-toc ol a::before { content: counter(toc, decimal-leading-zero); font: 500 11px/1.6 var(--mono); color: var(--line-strong); transition: color 0.2s; }
.legal-toc ol a:hover { color: var(--text); }
.legal-toc ol a.active { color: var(--text); border-left-color: var(--brand); }
.legal-toc ol a.active::before { color: var(--brand); }
.legal-docs { display: grid; gap: 4px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-docs a { padding: 6px 0; font-size: 14px; color: var(--muted); }
.legal-docs a:hover, .legal-docs a[aria-current] { color: var(--brand); }
.legal-print { margin-top: 14px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: none; color: var(--muted); font: 600 13px/1 var(--body); cursor: pointer; }
.legal-print:hover { color: var(--text); border-color: var(--text); }

/* summary cards at the top of a document */
.tldr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 56px; }
@media (max-width: 1180px) { .tldr { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tldr { grid-template-columns: 1fr; } }
.tldr-head { grid-column: 1 / -1; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tldr-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(19, 42, 74, 0.55), rgba(12, 29, 54, 0.3)); }
.tldr-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 11px; background: rgba(26, 163, 255, 0.14); color: var(--brand); }
.tldr-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tldr-card strong { display: block; font: 700 16px/1.25 var(--display); letter-spacing: -0.01em; }
.tldr-card p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* document typography */
.prose { max-width: 760px; font-size: 16.5px; line-height: 1.75; color: #c9d9ec; }
.prose section { scroll-margin-top: 100px; }
.prose section + section { margin-top: 52px; padding-top: 52px; border-top: 1px solid var(--line); }
.prose h2 { display: flex; gap: 14px; align-items: baseline; margin-bottom: 18px; font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--display); letter-spacing: -0.025em; color: var(--text); }
.prose h2 .num { flex: none; font: 500 13px/1 var(--mono); color: var(--brand); letter-spacing: 0.04em; }
.prose h3 { margin: 30px 0 10px; font: 700 18px/1.3 var(--display); letter-spacing: -0.015em; color: var(--text); }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p, .prose .table-wrap + p, .prose p + .table-wrap, .prose .callout + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before { content: ""; position: absolute; left: 3px; top: 0.72em; width: 7px; height: 7px; rotate: 45deg; background: var(--brand); border-radius: 1px; }
.prose ol { counter-reset: item; }
.prose ol > li { position: relative; padding-left: 34px; counter-increment: item; }
.prose ol > li::before { content: counter(item); position: absolute; left: 0; top: 0.2em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--raised); color: var(--brand); font: 700 12px/1 var(--body); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(26, 163, 255, 0.4); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose .lead { font-size: 18px; color: var(--text); }

.callout { display: flex; gap: 14px; margin: 22px 0 0; padding: 18px 20px; border: 1px solid rgba(26, 163, 255, 0.35); border-radius: 16px; background: rgba(26, 163, 255, 0.07); font-size: 15px; line-height: 1.65; }
.callout::before { content: "i"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--ink); font: 800 13px/1 var(--display); }
.callout.ok { border-color: rgba(94, 230, 176, 0.35); background: rgba(94, 230, 176, 0.07); }
.callout.ok::before { content: "✓"; background: var(--mint); }
.callout.warn { border-color: rgba(255, 182, 39, 0.4); background: rgba(255, 182, 39, 0.07); }
.callout.warn::before { content: "!"; background: #ffb627; }

.table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.prose th, .prose td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--ink-2); font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); font-weight: 700; }
.prose tbody tr:nth-child(even) td { background: rgba(12, 29, 54, 0.35); }
.yes { color: var(--mint); font-weight: 700; }
.no { color: var(--danger); font-weight: 700; }

.address-card { margin-top: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); font-style: normal; line-height: 1.7; }
.address-card strong { display: block; font-family: var(--display); }

/* Highlight for any detail still to be filled in: <span class="fill">[...]</span> */
.fill { padding: 1px 6px; border-radius: 6px; border: 1px dashed #ffb627; background: rgba(255, 182, 39, 0.12); color: #ffd27a; font-weight: 600; }

/* --------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 64px; }
.contact-card { display: flex; flex-direction: column; padding: 24px; }
.contact-card h2 { margin-top: 20px; font: 700 19px/1.2 var(--display); letter-spacing: -0.02em; }
.contact-card p { flex: 1; margin-top: 8px; font-size: 14px; color: var(--muted); }
.contact-card .contact-mail { margin-top: 18px; font: 500 13px/1.3 var(--mono); color: var(--brand); word-break: break-all; }
.contact-card .contact-mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-card .perk-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.contact-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; padding: 32px 0 120px; align-items: start; }
.contact-form { padding: 36px; border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 6px); background: radial-gradient(110% 80% at 0% 0%, rgba(26, 163, 255, 0.12), transparent 60%), var(--ink-2); }
.contact-form h2 { font: 800 clamp(24px, 2.6vw, 32px)/1.1 var(--display); letter-spacing: -0.03em; }
.contact-form > p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field label { font-size: 14px; font-weight: 700; }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background-color: rgba(5, 12, 24, 0.7);
  color: var(--text);
  font: 500 15px/1.4 var(--body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 52%, calc(100% - 16px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field select option { background: var(--panel); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: rgba(143, 168, 200, 0.6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(26, 163, 255, 0.18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); }
.field-error:empty { display: none; }
.field-hint { font-size: 13px; color: var(--muted); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 26px; }
.form-foot .btn { cursor: pointer; border: 0; }
.form-note { flex: 1; min-width: 220px; font-size: 13px; color: var(--muted); }
.form-note a { color: var(--brand); }
.form-status:empty { display: none; }

.contact-aside { display: grid; gap: 16px; }
.info-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12, 29, 54, 0.5); }
.info-card h2 { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.info-list { display: grid; gap: 14px; margin: 0; }
.info-list div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; font-size: 14.5px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; color: var(--text); font-weight: 600; }
.info-list a { color: var(--brand); }
.help-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.help-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; font-weight: 600; transition: border-color 0.2s, background 0.2s; }
.help-links a::after { content: "→"; color: var(--brand); transition: transform 0.25s var(--ease); }
.help-links a:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.help-links a:hover::after { transform: translateX(4px); }

/* footer legal column + bottom links (all pages) */
.footer-grid.has-legal { grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a:hover { color: var(--brand); }

@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-main { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .legal-toc { position: static; max-height: none; margin-bottom: 40px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(12, 29, 54, 0.5); }
  .legal-toc ol { columns: 2; column-gap: 20px; border-left: 0; }
  .legal-toc li { break-inside: avoid; }
  .legal-toc ol a { padding-left: 0; border-left: 0; }
  .legal-docs { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .footer-grid.has-legal { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid.has-legal .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .page-hero { padding: 130px 0 48px; }
  .legal-toc ol { columns: 1; }
  .prose { font-size: 16px; }
  .prose section + section { margin-top: 40px; padding-top: 40px; }
  .contact-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .contact-form { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .info-list div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid.has-legal { grid-template-columns: 1fr 1fr; }
}

/* Clean printouts of the legal documents */
@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  .nav, .scroll-progress, .grain, .cursor-glow, .legal-toc, .footer, .tldr-icon, .legal-print { display: none !important; }
  .page-hero { padding: 0 0 16px; border: 0; }
  .page-hero::before { display: none; }
  .page-title, .page-title .gradient-text { color: #111 !important; background: none !important; -webkit-text-fill-color: #111; animation: none; font-size: 26pt; }
  .page-lede, .page-meta span, .page-meta b, .breadcrumb { color: #444; border-color: #ccc; background: none; }
  .legal-layout { display: block; padding: 0; }
  .prose { max-width: none; color: #222; font-size: 11pt; }
  .prose h2, .prose h3, .prose strong, .prose td:first-child, .tldr-card strong { color: #111; }
  .prose a { color: #111; }
  .prose section + section { border-color: #ddd; }
  .tldr-card, .tldr-card p, .callout, .table-wrap, .address-card, .prose th, .prose td { background: none !important; border-color: #ccc; color: #222; }
  .prose section { break-inside: avoid-page; }
}

.footer-contact { margin-top: 16px; font-style: normal; font-size: 14px; line-height: 1.7; color: var(--muted); }
.footer-contact a { transition: color 0.2s; }
.footer-contact a:hover { color: var(--brand); }
