/* ===== WUNDRY — World-Class Puzzle Studio Website ===== */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=cabinet-grotesk@400,500,700&display=swap');

:root {
  --bg: #080412;
  --surface: #0f0a1e;
  --accent: #FFD60A;
  --accent2: #BF5AF2;
  --text: #F5F0FF;
  --muted: rgba(245, 240, 255, 0.45);
  --font-display: 'Clash Display', sans-serif;
  --font-body: 'Cabinet Grotesk', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); width: 0%; z-index: 10001;
}

/* --- Custom Cursor --- */
@media (pointer: fine) {
  .cursor-dot {
    position: fixed; width: 8px; height: 8px;
    background: var(--accent); border-radius: 50%;
    pointer-events: none; z-index: 99999;
    top: 0; left: 0; transform: translate(-50%, -50%);
  }
  .cursor-ring {
    position: fixed; width: 36px; height: 36px;
    border: 1.5px solid rgba(255, 214, 10, 0.4); border-radius: 50%;
    pointer-events: none; z-index: 99998;
    top: 0; left: 0; transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s ease;
  }
  .cursor-ring.hovering { width: 56px; height: 56px; border-color: rgba(255, 214, 10, 0.7); }
  body { cursor: none; }
  a, button, .app-icon, .contact-row { cursor: none; }
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  padding: 0 clamp(24px, 4vw, 64px); height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 4, 18, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 214, 10, 0.15);
}
.nav-wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--text);
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; letter-spacing: 0.05em;
  color: var(--muted); transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-hamburger { display: none; flex-direction: column; gap: 6px; padding: 8px; z-index: 10002; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--text); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; inset: 0;
  background: rgba(8, 4, 18, 0.97); backdrop-filter: blur(30px);
  z-index: 10001; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display); font-size: 32px; font-weight: 600;
  color: var(--text); transition: color 0.3s ease;
}
.nav-mobile a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* =====================================================
   SCROLL STORY — 500vh sticky hero, 5 chapters
   ===================================================== */
.scroll-story {
  position: relative;
  height: 500vh;
}

.scroll-story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* Base for all JS-driven absolutely-positioned elements */
.ss-el {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  pointer-events: none;
  opacity: 0;
}

/* Ch1 — Wordmark */
.ss-wordmark {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  z-index: 20;
}

/* Ch1 — Studio subtitle */
.ss-subtitle {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  z-index: 20;
}

/* Ch1 — 75+ counter badge (corner) */
.ss-counter {
  position: absolute;
  bottom: 7vh;
  right: clamp(24px, 4vw, 64px);
  text-align: right;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.6s ease;
}
.ss-counter-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.ss-counter-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* Ch2 — Game cards (JS-created, .ss-card) */
.ss-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(130px * var(--pos-scale, 1));
  height: calc(160px * var(--pos-scale, 1));
  border-radius: calc(22px * var(--pos-scale, 1));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(10px * var(--pos-scale, 1));
  padding: calc(16px * var(--pos-scale, 1)) calc(12px * var(--pos-scale, 1));
  will-change: transform, opacity;
  opacity: 0;
  pointer-events: none;
  /* JS sets transform — no CSS transitions */
  transition: none !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(245, 240, 255, 0.06);
}

.ssc-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 255, 0.7);
  text-align: center;
  line-height: 1.3;
}

/* Icon shapes inside cards */
.ssc-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Dot grid icon (MindDrop style) */
.ssc-dots {
  display: grid;
  grid-template-columns: repeat(4, 8px);
  grid-template-rows: repeat(4, 8px);
  gap: 4px;
}
.ssc-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245, 240, 255, 0.3);
}
.ssc-dots span:nth-child(1),
.ssc-dots span:nth-child(6),
.ssc-dots span:nth-child(11),
.ssc-dots span:nth-child(16) {
  background: #FFD60A;
}

/* 5×5 grid icon (Nonogram) */
.ssc-grid {
  display: grid;
  grid-template-columns: repeat(5, 7px);
  grid-template-rows: repeat(5, 7px);
  gap: 2px;
}
.ssc-grid span {
  width: 7px; height: 7px; border-radius: 1px;
  background: rgba(10, 132, 255, 0.25);
}
.ssc-grid span.on { background: #0A84FF; }

/* Clock icon (Speed Puzzle) */
.ssc-clock {
  width: 36px; height: 36px;
  border: 3px solid #30D158;
  border-radius: 50%;
  position: relative;
}
.ssc-clock::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 1.5px; height: 10px;
  background: #30D158;
  transform-origin: bottom center;
  transform: translateX(-50%) translateY(-100%) rotate(-30deg);
  border-radius: 2px;
}
.ssc-clock::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 1.5px; height: 14px;
  background: rgba(48, 209, 88, 0.6);
  transform-origin: bottom center;
  transform: translateX(-50%) translateY(-100%) rotate(60deg);
  border-radius: 2px;
}

/* Diamond icon (Logic) */
.ssc-diamond {
  width: 28px; height: 28px;
  background: #64D2FF;
  transform: rotate(45deg);
  border-radius: 4px;
}

/* Maze icon */
.ssc-maze {
  width: 36px; height: 36px;
  border: 2px solid rgba(245, 240, 255, 0.5);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.ssc-maze::before {
  content: '';
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border-top: 2px solid rgba(245, 240, 255, 0.5);
  border-left: 2px solid rgba(245, 240, 255, 0.5);
  border-radius: 2px;
}

/* Text icons (letter/symbol) */
.ssc-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

/* Ch3 — Studio tagline (fades in center) */
.ss-studio-sub {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  white-space: nowrap;
  z-index: 20;
  text-align: center;
}

/* Ch4 — MindDrop info panel (right side) */
.ss-md-info {
  position: absolute;
  right: clamp(24px, 6vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(180px, 22vw, 280px);
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  will-change: transform, opacity;
}
@media (max-width: 579px) {
  .ss-md-info { display: none; }
}
.ss-md-badge-row { margin-bottom: 12px; }
.ss-md-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 214, 10, 0.3);
  border-radius: 100px;
  padding: 4px 12px;
}
.ss-md-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 12px;
}
.ss-md-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.ss-md-stores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ss-md-stores span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  background: rgba(245, 240, 255, 0.06);
  border: 1px solid rgba(245, 240, 255, 0.1);
  border-radius: 8px;
  padding: 6px 14px;
}

/* Ch5 — Statement (center, large) */
.ss-statement {
  position: absolute;
  left: 0; right: 0;
  top: 36%;
  text-align: center;
  padding: 0 clamp(16px, 4vw, 60px);
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  will-change: opacity, transform;
}
.ss-stmt-line {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.ss-stmt-em { color: var(--accent); }

/* Ch5 — CTAs row */
.ss-ctas-final {
  position: absolute;
  left: 0; right: 0;
  bottom: 14vh;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  pointer-events: none;
  z-index: 26;
  will-change: opacity;
}
.ss-email-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s ease;
  pointer-events: all;
}
.ss-email-link:hover { color: var(--accent); }

/* Ch5 — 2×2 logomark (top-left corner) */
.ss-logomark {
  position: absolute;
  top: clamp(88px, 12vh, 120px);
  left: clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  will-change: transform, opacity;
}
.lm-sq {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

/* Scroll hint */
.ss-scroll-hint {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  z-index: 25;
  pointer-events: none;
}
.ss-scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Bouncing dot */
.scroll-dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: bounce-dot 2s ease-in-out infinite;
}
@keyframes bounce-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* =====================================================
   SHARED SECTION STYLES
   ===================================================== */
.section {
  padding: clamp(80px, 10vw, 160px) clamp(24px, 4vw, 64px);
  position: relative;
}
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px); font-weight: 700;
  line-height: 1.1; margin-bottom: 24px;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 48px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn-pill {
  display: inline-block;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 14px 36px; border-radius: 100px;
  border: 1.5px solid var(--accent); color: var(--accent);
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out-expo);
  letter-spacing: 0.02em; cursor: pointer;
}
.btn-pill:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); }
.btn-pill-secondary { border-color: rgba(245, 240, 255, 0.2); color: var(--text); }
.btn-pill-secondary:hover { background: rgba(245, 240, 255, 0.1); color: var(--text); }

/* =====================================================
   MARQUEE
   ===================================================== */
.marquee-section {
  overflow: hidden; background: var(--surface);
  padding: 28px 0;
  border-top: 1px solid rgba(255, 214, 10, 0.06);
  border-bottom: 1px solid rgba(255, 214, 10, 0.06);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display); font-size: clamp(16px, 2vw, 22px);
  font-weight: 600; color: var(--accent); white-space: nowrap;
  padding: 0 24px; letter-spacing: 0.05em;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   GAMES SHOWCASE — iPhone-style app grid
   ===================================================== */
.games-showcase {
  max-width: 1200px;
  margin: 0 auto;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Individual app icon cell */
.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* Icon artwork square */
.app-icon-inner {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 240, 255, 0.06);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.app-icon:hover .app-icon-inner {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* MindDrop icon — gold gradient */
.app-icon-minddrop {
  background: linear-gradient(135deg, #1a1035, #0f0a1e);
  border-color: rgba(255, 214, 10, 0.2);
}
.app-icon-minddrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 214, 10, 0.12), transparent 60%);
  pointer-events: none;
}

/* Locked icon overlay */
.app-icon.locked .app-icon-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 18, 0.35);
  border-radius: inherit;
}
.app-icon.mystery .app-icon-inner::after {
  background: rgba(8, 4, 18, 0.55);
}

/* App name label */
.app-name {
  font-family: var(--font-body);
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 500;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* NEW badge on MindDrop */
.app-new-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 5px;
  border-radius: 4px;
  z-index: 2;
}

/* 2×2 dot grid (MindDrop) */
.icon-dots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.icon-dots span {
  width: clamp(14px, 2vw, 18px);
  height: clamp(14px, 2vw, 18px);
  border-radius: 50%;
}

/* 5×5 nonogram grid */
.icon-grid-5x5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 2px;
  width: 60%;
  height: 60%;
}
.icon-grid-5x5 span {
  border-radius: 2px;
  background: rgba(10, 132, 255, 0.2);
}
.icon-grid-5x5 span.on { background: #0A84FF; }

/* Large centered letter/symbol */
.icon-text-lg {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
  line-height: 1;
  z-index: 1;
  position: relative;
}

/* Pipes icon (connected dots) */
.icon-pipes {
  width: 55%;
  height: 55%;
  position: relative;
}
.icon-pipes::before,
.icon-pipes::after {
  content: '';
  position: absolute;
  border-radius: 100px;
}
.icon-pipes::before {
  width: 40%; height: 40%;
  background: #30D158;
  top: 0; left: 0;
  box-shadow: 60% 60% 0 0 #30D158;
}
.icon-pipes::after {
  width: 14px; height: 14px;
  border: 3px solid #30D158;
  top: 20%; left: 20%;
  width: 60%; height: 60%;
  border-radius: 12px;
  background: transparent;
}

/* Suko icon (3×3 grid + circle overlays) */
.icon-suko {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  width: 60%;
  height: 60%;
}
.icon-suko::before {
  display: none;
}

/* Waffle icon (alternating colored cells) */
.icon-waffle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 2px;
  width: 60%;
  height: 60%;
  position: relative;
}

/* Bridges icon (nodes + lines) */
.icon-bridges {
  width: 55%;
  height: 55%;
  position: relative;
  border: 2px solid rgba(191, 90, 242, 0.5);
  border-radius: 8px;
}
.icon-bridges::before {
  content: '';
  position: absolute;
  top: 50%; left: 10%; right: 10%;
  height: 2px;
  background: rgba(191, 90, 242, 0.5);
  transform: translateY(-50%);
}
.icon-bridges::after {
  content: '';
  position: absolute;
  left: 50%; top: 10%; bottom: 10%;
  width: 2px;
  background: rgba(191, 90, 242, 0.5);
  transform: translateX(-50%);
}

/* Kakuro icon (diagonal split cells) */
.icon-kakuro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2px;
  width: 60%;
  height: 60%;
}

/* Grid footnote */
.grid-footnote {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}

@media (max-width: 600px) {
  .app-grid { max-width: 100%; gap: 12px; }
  .app-icon-inner { border-radius: 20%; }
}
@media (max-width: 360px) {
  .app-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* =====================================================
   GAME OVERLAY — full-screen puzzle fragment reveal
   ===================================================== */
.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(8, 4, 18, 0);
}
.game-overlay.overlay-visible {
  pointer-events: all;
  opacity: 1;
  background: rgba(8, 4, 18, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Puzzle fragment pieces (JS-created) */
.puzzle-piece {
  position: absolute;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
}

/* Overlay close button */
.overlay-close {
  position: absolute;
  top: clamp(20px, 4vh, 40px);
  right: clamp(20px, 4vw, 48px);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(245, 240, 255, 0.08);
  border: 1px solid rgba(245, 240, 255, 0.12);
  color: var(--text);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 5;
}
.overlay-close:hover { background: rgba(245, 240, 255, 0.15); transform: scale(1.1); }

/* Overlay content panel */
.overlay-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: clamp(24px, 4vw, 60px);
  max-width: 460px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Large icon preview in overlay */
.overlay-icon-wrap {
  width: 100px; height: 100px;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.overlay-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.overlay-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 340px;
}

.overlay-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  border: 1px solid;
  margin-top: 4px;
}

.overlay-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.overlay-badges span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(245, 240, 255, 0.05);
  border: 1px solid rgba(245, 240, 255, 0.08);
  border-radius: 8px;
  padding: 6px 14px;
}

/* =====================================================
   STATS
   ===================================================== */
.stats-section {
  background: var(--surface);
  border-top: 1px solid rgba(255, 214, 10, 0.06);
  border-bottom: 1px solid rgba(255, 214, 10, 0.06);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; max-width: 1200px; margin: 0 auto;
}
.stat-block { text-align: center; padding: 20px; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 120px); font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: 12px;
}
.stat-label { font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* =====================================================
   PHILOSOPHY
   ===================================================== */
.philosophy-section { max-width: 1400px; margin: 0 auto; }
.philosophy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.philosophy-left { position: sticky; top: 140px; }
.philosophy-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px); font-weight: 700; line-height: 1.2;
}
.philosophy-cards { display: flex; flex-direction: column; gap: 32px; }
.philosophy-card {
  background: var(--surface); border-radius: 20px; padding: 40px;
  border: 1px solid rgba(191, 90, 242, 0.08);
  transform: translateX(60px); opacity: 0;
  transition: transform 0.7s var(--ease-out-expo), opacity 0.7s var(--ease-out-expo);
}
.philosophy-card.visible { transform: translateX(0); opacity: 1; }
.philosophy-card-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 12px; color: var(--accent); }
.philosophy-card-text { font-size: 16px; color: var(--muted); line-height: 1.6; }
@media (max-width: 768px) {
  .philosophy-layout { grid-template-columns: 1fr; gap: 40px; }
  .philosophy-left { position: static; }
}

/* =====================================================
   PRESS QUOTE
   ===================================================== */
.press-section { text-align: center; padding: clamp(100px, 12vw, 200px) clamp(24px, 6vw, 120px); }
.press-quote-marks {
  font-family: var(--font-display); font-size: clamp(80px, 12vw, 180px);
  color: var(--accent); opacity: 0.15; line-height: 0.8; margin-bottom: -20px; user-select: none;
}
.press-quote {
  font-family: var(--font-display); font-size: clamp(24px, 4vw, 48px);
  font-weight: 600; font-style: italic; line-height: 1.3;
  max-width: 800px; margin: 0 auto 24px;
}
.press-attribution { font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.press-email { font-size: 16px; color: var(--accent); transition: opacity 0.3s ease; }
.press-email:hover { opacity: 0.7; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact-section { max-width: 1200px; margin: 0 auto; }
.contact-rows { margin-top: 48px; }
.contact-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 0; border-bottom: 1px solid rgba(245,240,255,0.06);
  position: relative; transition: padding 0.3s ease;
}
.contact-row::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.6s var(--ease-out-expo);
}
.contact-row:hover::after { width: 100%; }
.contact-row:hover { padding-left: 16px; }
.contact-row-label { font-family: var(--font-display); font-size: clamp(24px, 3vw, 40px); font-weight: 600; }
.contact-row-email { font-size: clamp(14px, 1.5vw, 18px); color: var(--muted); transition: color 0.3s ease; }
.contact-row:hover .contact-row-email { color: var(--accent); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  padding: 40px clamp(24px, 4vw, 64px);
  border-top: 1px solid rgba(245,240,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.3s ease; }
.footer-links a:hover { color: var(--accent); }
@media (max-width: 768px) { .footer { flex-direction: column; text-align: center; gap: 12px; } }

/* =====================================================
   PRIVACY & SUPPORT PAGES
   ===================================================== */
.page-header {
  padding: 100px clamp(24px, 4vw, 64px) 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.page-back { font-size: 14px; color: var(--muted); transition: color 0.3s ease; }
.page-back:hover { color: var(--accent); }
.page-content { max-width: 720px; margin: 0 auto; padding: 40px clamp(24px, 4vw, 64px) 120px; }
.page-title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 700; margin-bottom: 8px; }
.page-updated { font-size: 14px; color: var(--muted); margin-bottom: 48px; }
.page-content h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-top: 48px; margin-bottom: 16px; }
.page-content p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.page-content ul { list-style: none; margin-bottom: 16px; }
.page-content ul li { font-size: 16px; color: var(--muted); line-height: 1.7; padding-left: 20px; position: relative; }
.page-content ul li::before { content: '·'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.page-content a { color: var(--accent); transition: opacity 0.3s ease; }
.page-content a:hover { opacity: 0.7; }

/* =====================================================
   GLOBAL RESPONSIVE SAFETY NET
   ===================================================== */

/* Prevent horizontal scroll from any element */
.scroll-story-sticky,
.marquee-section,
.stats-section,
.games-showcase,
.philosophy-section,
.press-section,
.contact-section,
.footer {
  overflow-x: hidden;
}

/* Contact row label wrapping on tiny screens */
@media (max-width: 480px) {
  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .contact-row-email { font-size: 13px; }
  .section-title { font-size: clamp(28px, 8vw, 64px); }
  .stat-number { font-size: clamp(48px, 12vw, 120px); }
  .philosophy-card { padding: 24px; }
  .press-quote { font-size: clamp(18px, 5vw, 48px); }
  .press-quote-marks { font-size: clamp(60px, 18vw, 180px); }
}

/* Wordmark overflow protection in scroll story */
@media (max-width: 480px) {
  .ss-wordmark { font-size: clamp(36px, 11vw, 120px); }
  .ss-subtitle { font-size: 10px; letter-spacing: 0.2em; }
  .ss-studio-sub { font-size: clamp(14px, 4.5vw, 36px); }
  .ss-counter { right: 16px; bottom: 10vh; }
  .ss-counter-num { font-size: clamp(28px, 8vw, 64px); }
  .ss-ctas-final { flex-direction: column; gap: 16px; padding: 0 24px; bottom: 10vh; }
}

/* Scroll hint safe zone */
@media (max-width: 768px) {
  .ss-scroll-hint { bottom: 3vh; }
}

/* =====================================================
   FAQ */
.faq-item { border-bottom: 1px solid rgba(245,240,255,0.06); padding: 24px 0; }
.faq-question {
  font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text);
  width: 100%; text-align: left; padding: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer;
  background: none; border: none;
}
.faq-question span { transition: transform 0.3s ease; color: var(--accent); font-size: 20px; }
.faq-question.open span { transform: rotate(45deg); }
.faq-answer {
  font-size: 16px; color: var(--muted); line-height: 1.7;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo), padding 0.4s ease;
}
.faq-answer.open { max-height: 300px; padding-top: 16px; }
.support-cta { text-align: center; padding: 60px 0; }
