/* ============================================
   閃電英語 Lightning English — 8-bit Game Style
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Noto+Sans+TC:wght@400;700;900&display=swap');

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

:root {
  --c-bg: #1a1a2e;
  --c-bg-alt: #16213e;
  --c-bg-dark: #0f0f23;
  --c-primary: #ffd700;
  --c-secondary: #58cc02;
  --c-accent: #ff6b6b;
  --c-blue: #4fc3f7;
  --c-purple: #b388ff;
  --c-white: #f0f0f0;
  --c-text: #e0e0e0;
  --c-text-dim: #a0a0b0;
  --c-card: rgba(20, 30, 60, 0.92);
  --c-card-border: #3a4a6a;
  --pixel-shadow: 4px 4px 0px rgba(0,0,0,0.5);
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Noto Sans TC', sans-serif;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

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

img {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

a { color: var(--c-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-secondary); }
strong { color: var(--c-primary); }

/* White text shadow for readability */
.pixel-text,
.section-title,
.section-title-light,
.card-title,
.hero-subtitle,
.cta-title,
.cta-desc,
.story-p,
.story-question,
.product-feat-card span,
.pixel-list li,
.map-label,
.gallery-title,
.hero-desc,
.game-card .pixel-text,
.feature-card p,
.audience-card p,
.price-badge,
.result-item h3,
.char-name {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7), 0 0 10px rgba(0,0,0,0.4);
}

.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;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pixel-text { font-family: var(--font-pixel); line-height: 2; }

/* ==================
   NAV
   ================== */
.pixel-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  height: var(--nav-height);
  box-shadow: none;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.4s, transform 0.4s, background 0.4s;
}
.pixel-nav.nav-scrolled {
  opacity: 1;
  transform: translateY(0);
  background: rgba(10, 10, 28, 0.85);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 36px; width: auto;
  filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.5));
  image-rendering: auto;
  opacity: 0.9;
}
.nav-logo:hover .nav-logo-img { filter: drop-shadow(0 0 10px rgba(255,215,0,0.6)); opacity: 1; }
.nav-toggle {
  display: none; background: none; border: 2px solid rgba(255,215,0,0.5);
  color: var(--c-primary); font-size: 22px; padding: 5px 8px;
  cursor: pointer; font-family: var(--font-pixel); border-radius: 4px;
}
.nav-links { display: flex; list-style: none; gap: 6px; align-items: center; }
.nav-links a {
  font-family: var(--font-pixel); font-size: 16px; color: rgba(224,224,224,0.75);
  padding: 10px 16px; transition: all 0.2s; white-space: nowrap;
  border-bottom: none; border-radius: 6px;
}
.nav-links a:hover {
  color: var(--c-primary);
  text-shadow: 0 0 8px rgba(255,215,0,0.4);
  background: rgba(255,215,0,0.08);
}
.nav-cta {
  background: rgba(255,215,0,0.15); color: var(--c-primary) !important;
  border: 2px solid rgba(255,215,0,0.4); box-shadow: none;
  padding: 10px 20px; font-size: 16px; border-radius: 6px;
}
.nav-cta:hover {
  background: rgba(255,215,0,0.25); color: var(--c-primary) !important;
  border-color: var(--c-primary);
}

/* ==================
   BUTTONS
   ================== */
.btn {
  display: inline-block; font-family: var(--font-pixel); font-size: 16px;
  padding: 14px 28px; border: 4px solid; cursor: pointer;
  text-align: center; transition: all 0.15s; text-decoration: none;
}
.pixel-btn { box-shadow: var(--pixel-shadow); }
.pixel-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px rgba(0,0,0,0.5); }
.pixel-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0px rgba(0,0,0,0.5); }
.btn-yellow { background: var(--c-primary); color: #1a1a2e; border-color: #b8960a; }
.btn-yellow:hover { background: #ffea00; color: #1a1a2e; }
.btn-green { background: var(--c-secondary); color: #fff; border-color: #3a8a01; }
.btn-green:hover { background: #6be00a; color: #1a1a2e; }
.btn-lg { font-size: 16px; padding: 18px 40px; }

/* ==================
   PIXEL CARD
   ================== */
.pixel-card {
  background: var(--c-card); border: 3px solid var(--c-card-border);
  box-shadow: var(--pixel-shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pixel-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(0,0,0,0.5);
  border-color: var(--c-primary);
}

/* ==================
   PHONE MOCKUP
   ================== */
.phone-mockup {
  position: relative;
  width: 260px;
  background: #1a1a1a;
  border: 4px solid #444;
  border-radius: 32px;
  padding: 12px 8px;
  box-shadow: 8px 8px 0px rgba(0,0,0,0.5), 0 0 40px rgba(255,215,0,0.08);
  flex-shrink: 0;
}
.phone-notch {
  width: 80px; height: 6px; background: #333; border-radius: 4px;
  margin: 0 auto 8px;
}
.phone-screen {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 2px solid #555;
}
.phone-screen-img {
  width: 100%; height: 100%; object-fit: cover;
  image-rendering: auto;
}
.phone-home-bar {
  width: 60px; height: 4px; background: #555; border-radius: 3px;
  margin: 8px auto 0;
}

/* Hero phone size */
.phone-mockup-hero { width: 280px; }

/* Small phones for screenshot row */
.phone-mockup-sm {
  width: 200px;
  transition: transform 0.3s;
}
.phone-mockup-sm:hover { transform: translateY(-8px); }
.phone-mockup-featured {
  width: 230px;
  border-color: var(--c-primary);
  box-shadow: 8px 8px 0px rgba(0,0,0,0.5), 0 0 30px rgba(255,215,0,0.15);
}
.screenshot-label {
  display: block; text-align: center; font-size: 16px;
  color: var(--c-primary); margin-top: 12px;
}

/* ==================
   SECTION COMMON
   ================== */
.section { padding: 100px 0; position: relative; overflow: hidden; }
.section-bg-wrap {
  position: absolute; inset: -15%; z-index: 0; overflow: hidden;
  will-change: transform;
}
.section-bg-img {
  width: 100%; height: 100%; object-fit: cover; image-rendering: auto;
}
.section-bg-overlay {
  display: none;
}
.section-bg-overlay-dark {
  display: none;
}
/* Pixel decorative backgrounds */
.section-product::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle 2px at 10% 20%, rgba(255,215,0,0.15) 0%, transparent 2px),
    radial-gradient(circle 2px at 30% 70%, rgba(88,204,2,0.12) 0%, transparent 2px),
    radial-gradient(circle 2px at 70% 15%, rgba(255,215,0,0.1) 0%, transparent 2px),
    radial-gradient(circle 2px at 85% 60%, rgba(79,195,247,0.12) 0%, transparent 2px),
    radial-gradient(circle 2px at 50% 90%, rgba(255,215,0,0.08) 0%, transparent 2px);
}
.section-gameplay::before,
.section-results::before,
.section-pricing::before,
.section-characters::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0px, transparent 40px, rgba(255,215,0,0.02) 40px, rgba(255,215,0,0.02) 41px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 40px, rgba(255,215,0,0.02) 40px, rgba(255,215,0,0.02) 41px);
}
.section-product::after,
.section-gameplay::after,
.section-characters::after,
.section-results::after,
.section-pricing::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--c-primary) 0px, var(--c-primary) 8px, transparent 8px, transparent 16px);
  opacity: 0.3;
}
.section > .container { position: relative; z-index: 1; }
.section-title {
  text-align: center; font-size: 28px; color: var(--c-primary);
  margin-bottom: 16px; text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.section-title-light {
  color: #fff; text-shadow: 2px 2px 0px rgba(0,0,0,0.8), 0 0 20px rgba(255,215,0,0.3);
}
.title-icon { vertical-align: middle; }
.section-desc {
  text-align: center; font-size: 16px; color: var(--c-text-dim);
  margin-top: 0; margin-bottom: 50px; line-height: 2.2;
}

/* ==================
   HERO
   ================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; padding-top: 0; overflow: hidden;
}
.hero-bg-layer {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-bg-img {
  width: 100%; height: 100%; object-fit: cover; image-rendering: auto;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(26,26,46,0.6) 100%),
    repeating-linear-gradient(0deg, transparent 0px, transparent 40px, rgba(255,215,0,0.015) 40px, rgba(255,215,0,0.015) 41px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 40px, rgba(255,215,0,0.015) 40px, rgba(255,215,0,0.015) 41px);
}
.hero-content {
  display: flex; align-items: center; gap: 50px;
  position: relative; z-index: 2;
}
.hero-text { flex: 1; text-align: center; }
.hero-visual {
  flex: 0 0 320px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo {
  width: 100%; max-width: 480px; height: auto; margin: 0 auto 20px;
  display: block; image-rendering: auto;
  filter: drop-shadow(4px 4px 0px rgba(0,0,0,0.5));
  animation: float-y 4s ease-in-out infinite;
}
.hero-subtitle { font-size: 20px; color: var(--c-white); margin-bottom: 24px; line-height: 2.2; }
.hero-desc { font-size: 16px; color: var(--c-text-dim); margin-bottom: 36px; line-height: 2.4; }
.hero-desc p + p { margin-top: 12px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-shine {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: auto; opacity: 0.4; pointer-events: none;
  animation: pulse-glow 3s ease-in-out infinite; image-rendering: auto;
  z-index: -1;
}
.hero-float-char {
  position: absolute;
  filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.5));
  image-rendering: auto;
}
.hero-float-1 { bottom: 30px; left: -50px; animation: float-y 3s ease-in-out infinite; }
.hero-float-2 { top: 20px; right: -30px; animation: float-y 2.5s ease-in-out infinite 0.5s; }

.hero-ground {
  position: absolute; bottom: 0; left: 0; right: 0; height: 50px;
  background: repeating-linear-gradient(90deg, #3a6b35 0px, #3a6b35 40px, #2d5a28 40px, #2d5a28 80px);
  border-top: 4px solid #4a8b45; z-index: 1;
}
.ground-star { position: absolute; top: -30px; animation: float-y 2s ease-in-out infinite; }
.ground-star-1 { left: 10%; }
.ground-star-2 { left: 50%; animation-delay: 0.8s; }
.ground-star-3 { left: 85%; animation-delay: 1.5s; }
.hero-particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1;
}

/* ==================
   PRODUCT
   ================== */
.section-product {
  background: var(--c-bg-alt);
  border-top: 4px solid var(--c-card-border);
  border-bottom: 4px solid var(--c-card-border);
}
.product-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.product-intro {
  font-family: var(--font-body); font-size: 18px; color: var(--c-text);
  margin-bottom: 30px; line-height: 2;
}
.product-intro strong { color: var(--c-primary); font-weight: 900; }

/* Feature cards grid */
.product-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-bottom: 24px;
}
.product-feat-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-color: rgba(255,215,0,0.2);
  background: rgba(255,215,0,0.04);
}
.product-feat-card img {
  flex-shrink: 0;
  filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.4));
}
.product-feat-card span {
  font-family: var(--font-pixel); font-size: 16px; color: var(--c-white);
}
.product-feat-card:hover {
  background: rgba(255,215,0,0.1);
  border-color: var(--c-primary);
}

/* Decorative mini characters */
.product-deco {
  display: flex; gap: 10px; margin-top: 10px;
}
.product-deco-char {
  filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.4));
  animation: float-y 2.5s ease-in-out infinite;
  image-rendering: auto;
}
.product-deco-char:nth-child(2) { animation-delay: 0.4s; }
.product-deco-char:nth-child(3) { animation-delay: 0.8s; }

/* Floating items around phone */
.phone-deco {
  position: absolute; pointer-events: none;
  filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.4));
  z-index: 2;
}
.phone-deco-1 { top: -10px; left: -20px; animation: float-y 3s ease-in-out infinite; }
.phone-deco-2 { top: 30%; right: -25px; animation: float-y 2.5s ease-in-out infinite 0.5s; }
.phone-deco-3 { bottom: 20%; left: -35px; animation: float-y 3.5s ease-in-out infinite 1s; image-rendering: auto; }
.phone-deco-4 { bottom: 10px; right: -30px; animation: float-y 2.8s ease-in-out infinite 0.3s; image-rendering: auto; }
.phone-deco-5 { top: 15%; left: -30px; animation: float-y 2s ease-in-out infinite 0.7s; image-rendering: auto; }

/* Keep old pixel-list for other sections */
.pixel-list { list-style: none; margin: 20px 0; }
.pixel-list li {
  font-family: var(--font-pixel); font-size: 16px; padding: 12px 0;
  display: flex; align-items: center; gap: 14px;
  color: var(--c-white);
}
.li-icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.product-visual { position: relative; display: flex; justify-content: center; }
.product-float {
  position: absolute;
  filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.4));
  pointer-events: none; image-rendering: auto;
}
.product-float-1 { bottom: -20px; right: -10px; animation: float-y 3s ease-in-out infinite; }

/* ==================
   SCREENSHOTS
   ================== */
.section-screenshots { padding: 100px 0 80px; }
.screenshots-row {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 24px; flex-wrap: wrap;
}
.congrats-row {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  margin-top: 50px;
}
.congrats-img {
  height: 70px; width: auto; image-rendering: auto;
  filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.4));
  transition: transform 0.3s;
}
.congrats-img:hover { transform: scale(1.08) translateY(-4px); }

/* ==================
   GAMEPLAY
   ================== */
.section-gameplay { background: var(--c-bg); }
.gameplay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.game-card { padding: 30px 24px; text-align: center; }
.card-icon-wrap {
  width: 130px; height: 130px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.card-icon { filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.4)); image-rendering: auto; }
.card-title { font-size: 16px; color: var(--c-primary); margin-bottom: 16px; }
.game-card .pixel-text { font-size: 16px; color: var(--c-text-dim); line-height: 2.2; }
.check-list { list-style: none; margin-top: 16px; text-align: left; padding-left: 10px; }
.check-list li { font-size: 16px; padding: 4px 0; color: var(--c-secondary); }
.check-list li::before { content: '✔ '; color: var(--c-secondary); }
.treasure-list li {
  font-size: 16px; text-align: left; display: flex; align-items: center; gap: 8px;
}
.treasure-list li::before { content: ''; }

/* ==================
   FEATURES
   ================== */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.feature-card { padding: 40px 24px; text-align: center; }
.feature-icon-wrap {
  width: 80px; height: 80px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.feature-icon-wrap img { filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.4)); }
.feature-card h3 { font-size: 16px; color: var(--c-primary); margin-bottom: 16px; }
.feature-card p { font-size: 16px; color: var(--c-text-dim); line-height: 2.2; }

/* ==================
   CHARACTERS
   ================== */
.section-characters { background: var(--c-bg); }
.characters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.char-card { padding: 30px 20px; text-align: center; cursor: pointer; }
.char-img {
  margin-bottom: 16px;
  filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.4));
  transition: transform 0.3s; image-rendering: auto;
}
.char-card:hover .char-img { transform: scale(1.1); animation: float-y 1s ease-in-out infinite; }
.char-card h3 { font-size: 16px; color: var(--c-primary); margin-bottom: 4px; }
.char-name { font-size: 16px; color: var(--c-blue); }

/* ==================
   WORLD STORY
   ================== */
.world-story {
  position: relative; padding: 80px 50px; text-align: center;
  overflow: hidden; min-height: 450px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.story-bg-paper { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.paper-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.1; image-rendering: auto; }
.story-monsters {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 1;
}
.monster-img {
  position: absolute; opacity: 0.3;
  filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.5)); image-rendering: auto;
}
.monster-1 { top: 20px; left: 30px; animation: float-y 4s ease-in-out infinite; }
.monster-2 { bottom: 20px; right: 30px; animation: float-y 4s ease-in-out infinite 1s; }
.monster-3 { top: 40%; left: 85%; animation: float-y 4s ease-in-out infinite 2s; }
.story-text { position: relative; z-index: 2; }
.story-p { font-size: 16px; color: var(--c-text); margin-bottom: 20px; line-height: 2.4; }
.story-question {
  font-size: 16px; color: var(--c-primary); margin-top: 30px;
  text-shadow: 0 0 20px rgba(255,215,0,0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}
.story-items {
  position: absolute; bottom: 20px; right: 30px;
  display: flex; gap: 16px; z-index: 1; align-items: flex-end;
}
.item-crown { animation: spin-slow 6s linear infinite; }
.item-key { animation: float-y 2s ease-in-out infinite; }

/* ==================
   RESULTS
   ================== */
.section-results { background: var(--c-bg); }
.results-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px;
}
.result-item { padding: 30px 20px; text-align: center; }
.result-icon-img {
  display: block; margin: 0 auto 16px;
  filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.4));
}
.result-item h3 { font-size: 16px; color: var(--c-white); }
.results-note { text-align: center; font-size: 16px; color: var(--c-secondary); }

/* ==================
   TESTIMONIALS
   ================== */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.testimonial-card {
  padding: 30px 28px; text-align: left;
}
.testimonial-stars {
  font-size: 18px; margin-bottom: 16px; letter-spacing: 2px;
}
.testimonial-text {
  font-size: 16px; color: var(--c-text); line-height: 2.2; margin-bottom: 16px;
}
.testimonial-text strong {
  color: var(--c-primary);
}
.testimonial-author {
  font-size: 16px; color: var(--c-text-dim); text-align: right;
}

/* ==================
   AUDIENCE
   ================== */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.audience-card { padding: 40px 24px; text-align: center; }
.audience-icon-img {
  display: block; margin: 0 auto 20px;
  filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.4));
}
.audience-card h3 { font-size: 16px; color: var(--c-primary); margin-bottom: 16px; }
.audience-card p { font-size: 16px; color: var(--c-text-dim); line-height: 2.4; }

/* ==================
   PRICING
   ================== */
.section-pricing { background: var(--c-bg); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
  max-width: 800px; margin: 0 auto;
}
.price-card { padding: 40px 30px; text-align: center; position: relative; }
.price-icon {
  display: block; margin: 0 auto 16px;
  filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.4));
}
.price-badge { font-size: 16px; color: var(--c-text-dim); margin-bottom: 16px; }
.price-badge-pro { color: var(--c-primary); }
.price-card-pro { border-color: var(--c-primary); }
.price-card-pro::before {
  content: 'BEST'; position: absolute; top: -14px; right: 20px;
  background: var(--c-accent); color: #fff; font-family: var(--font-pixel);
  font-size: 8px; padding: 4px 10px; border: 2px solid #c0392b;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.4);
}
.price-amount { font-size: 28px; color: var(--c-primary); margin-bottom: 24px; }
.price-amount span { font-size: 16px; color: var(--c-text-dim); }
.price-features { list-style: none; margin-bottom: 30px; text-align: left; }
.price-features li {
  font-size: 16px; padding: 6px 0;
  border-bottom: 1px dashed var(--c-card-border); color: var(--c-text);
}
.price-features li.excluded { color: var(--c-text-dim); opacity: 0.5; }

/* ==================
   GAME WORLD
   ================== */
.game-world-map {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 60px; flex-wrap: wrap;
}
.map-node { padding: 20px; text-align: center; cursor: pointer; min-width: 140px; }
.map-icon {
  margin-bottom: 8px;
  filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.4)); image-rendering: auto;
}
.map-label { font-size: 16px; color: var(--c-white); display: block; }
.map-path { display: flex; align-items: center; animation: pulse-glow 2s ease-in-out infinite; }
.map-path img { animation: spin-slow 3s linear infinite; }
.gallery-section { margin-top: 50px; }
.gallery-title {
  font-size: 16px; color: var(--c-primary); text-align: center;
  margin-bottom: 30px; text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { padding: 16px 8px; text-align: center; cursor: pointer; }
.gallery-item img {
  margin-bottom: 8px;
  filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.4));
  transition: transform 0.3s; image-rendering: auto;
}
.gallery-item:hover img { transform: scale(1.15); }
.gallery-item span { font-size: 16px; color: var(--c-text-dim); display: block; }

/* ==================
   FINAL CTA
   ================== */
.section-cta-final { padding: 120px 0; }
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-logo {
  width: 320px; height: auto; margin-bottom: 20px;
  image-rendering: auto;
  filter: drop-shadow(4px 4px 0px rgba(0,0,0,0.5));
}
.cta-title {
  font-size: 22px; color: var(--c-primary); margin-bottom: 20px;
  text-shadow: 3px 3px 0px rgba(0,0,0,0.5);
  animation: pulse-glow 2s ease-in-out infinite;
}
.cta-desc { font-size: 16px; color: var(--c-text); margin-bottom: 40px; }
.cta-buttons {
  display: flex; gap: 20px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 40px;
}
.cta-characters { display: flex; gap: 12px; justify-content: center; }
.cta-characters img {
  filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.4));
  animation: float-y 2s ease-in-out infinite;
}
.cta-characters img:nth-child(2) { animation-delay: 0.3s; }
.cta-characters img:nth-child(3) { animation-delay: 0.6s; }
.cta-characters img:nth-child(4) { animation-delay: 0.9s; }
.cta-characters img:nth-child(5) { animation-delay: 1.2s; }

/* ==================
   FOOTER
   ================== */
.pixel-footer {
  background: var(--c-bg-dark); border-top: 4px solid var(--c-card-border); padding: 30px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo-row { display: flex; align-items: center; gap: 16px; }
.footer-logo {
  height: 32px; width: auto; image-rendering: auto;
  filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.4));
}
.footer-inner .pixel-text,
.footer-logo-row .pixel-text { font-size: 16px; color: var(--c-text-dim); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 16px; color: var(--c-text-dim); }
.footer-links a:hover { color: var(--c-primary); }

/* ==================
   ANIMATIONS
   ================== */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(255,215,0,0.3); }
  50% { opacity: 0.85; text-shadow: 0 0 20px rgba(255,215,0,0.6); }
}
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* ==================
   SOUND TOGGLE
   ================== */
.sound-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99998;
  width: 48px;
  height: 48px;
  border: 3px solid var(--c-primary);
  border-radius: 4px;
  background: var(--c-bg-dark);
  color: var(--c-primary);
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--pixel-shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  image-rendering: pixelated;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sound-toggle:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(0,0,0,0.5);
}
.sound-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

/* ==================
   LOADING SCREEN
   ================== */
.loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--c-bg-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-done {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.loader-inner { text-align: center; width: 340px; }
.loader-logo {
  image-rendering: auto; margin-bottom: 30px;
  animation: float-y 2s ease-in-out infinite;
  filter: drop-shadow(4px 4px 0px rgba(0,0,0,0.5));
}
.loader-bar-wrap {
  width: 100%; height: 20px; background: #111;
  border: 3px solid var(--c-card-border);
  box-shadow: var(--pixel-shadow);
  position: relative; overflow: hidden;
}
.loader-bar {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--c-secondary), var(--c-primary));
  transition: width 0.2s ease;
  position: relative;
}
.loader-bar::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent 0px, transparent 6px,
    rgba(255,255,255,0.1) 6px, rgba(255,255,255,0.1) 12px
  );
  animation: loader-stripe 0.6s linear infinite;
}
@keyframes loader-stripe {
  0% { background-position: 0 0; }
  100% { background-position: 17px 0; }
}
.loader-text {
  font-size: 16px; color: var(--c-primary); margin-top: 16px;
  text-shadow: 0 0 10px rgba(255,215,0,0.3);
}
.loader-characters {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.loader-char {
  animation: loader-bounce 1.2s ease-in-out infinite;
  filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.5));
}
.loader-char:nth-child(2) { animation-delay: 0.1s; }
.loader-char:nth-child(3) { animation-delay: 0.2s; }
.loader-char:nth-child(4) { animation-delay: 0.3s; }
.loader-char:nth-child(5) { animation-delay: 0.4s; }
@keyframes loader-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Body hidden before load */
body:not(.loaded) main,
body:not(.loaded) .pixel-footer {
  opacity: 0;
}
body.loaded main,
body.loaded .pixel-footer {
  opacity: 1;
  transition: opacity 0.4s ease 0.2s;
}

/* ==================
   HERO ENTRANCE
   ================== */
.hero-logo,
.hero-subtitle,
.hero-desc,
.hero-cta,
.phone-mockup-hero,
.hero-float-char {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-logo.hero-entered { opacity: 1; transform: translateY(0); }
.hero-subtitle.hero-entered { opacity: 1; transform: translateY(0); }
.hero-desc.hero-entered { opacity: 1; transform: translateY(0); }
.hero-cta.hero-entered { opacity: 1; transform: translateY(0); }
.phone-mockup-hero.hero-entered { opacity: 1; transform: translateY(0) rotate(0); }
.hero-float-char.hero-entered { opacity: 1; transform: translateY(0); }

/* ==================
   SCROLL REVEAL SYSTEM
   ================== */
.rv {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal="up"]   .rv, .rv[data-reveal="up"]   { transform: translateY(50px); }
[data-reveal="down"] .rv, .rv[data-reveal="down"] { transform: translateY(-50px); }
[data-reveal="left"] .rv, .rv[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"].rv, .rv[data-reveal="right"]{ transform: translateX(60px); }
[data-reveal="scale"].rv, .rv[data-reveal="scale"]{ transform: scale(0.85); }

.rv-visible {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* ==================
   CARD GLOW + TILT
   ================== */
.pixel-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pixel-card:hover {
  box-shadow:
    6px 6px 0px rgba(0,0,0,0.5),
    0 0 20px rgba(255, 215, 0, 0.08);
  border-color: var(--c-primary);
}

/* Nav active indicator */
.nav-active {
  color: var(--c-primary) !important;
  text-shadow: 0 0 8px rgba(255,215,0,0.4) !important;
  background: rgba(255,215,0,0.1);
  border-radius: 4px;
}

/* ==================
   SCANLINE
   ================== */
body::after {
  content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 9998;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 1024px) {
  .gameplay-grid, .features-grid, .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .characters-grid { grid-template-columns: repeat(3, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .screenshots-row { gap: 16px; }
  .phone-mockup-sm { width: 170px; }
  .phone-mockup-featured { width: 200px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .nav-toggle { display: block; }
  .nav-logo-img { height: 36px; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: rgba(10,10,28,0.92); flex-direction: column; padding: 16px; gap: 0;
    border-bottom: none; backdrop-filter: blur(12px); border-radius: 0 0 8px 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 16px; width: 100%; text-align: center; }

  .hero-content { flex-direction: column; text-align: center; padding-top: 40px; }
  .hero-visual { flex: 0 0 auto; }
  .hero-logo { max-width: 320px; }
  .phone-mockup-hero { width: 220px; }
  .hero-cta { justify-content: center; }
  .hero-float-1 { left: -30px; width: 60px; height: 60px; }
  .hero-float-2 { right: -15px; width: 35px; height: 35px; }

  .product-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-visual .phone-mockup { width: 220px; margin: 0 auto; }

  .screenshots-row { gap: 12px; }
  .phone-mockup-sm { width: 140px; border-radius: 20px; padding: 8px 6px; }
  .phone-mockup-sm .phone-notch { width: 50px; height: 4px; margin-bottom: 4px; }
  .phone-mockup-sm .phone-home-bar { width: 40px; height: 3px; margin-top: 4px; }
  .phone-mockup-featured { width: 160px; }
  .congrats-img { height: 50px; }

  .gameplay-grid, .features-grid, .audience-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .characters-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 20px; flex-wrap: wrap; }
  .section { padding: 70px 0; }
  .game-world-map { flex-direction: column; }
  .map-path { transform: rotate(90deg); }
  .cta-title { font-size: 18px; }
  .cta-logo { width: 240px; }
  .btn-lg { font-size: 16px; padding: 14px 28px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-logo-row { flex-direction: column; }
  .world-story { padding: 40px 20px; }
  .story-monsters .monster-3 { display: none; }
}

@media (max-width: 480px) {
  .hero-logo { max-width: 260px; }
  .hero-subtitle { font-size: 16px; }
  .hero-desc { font-size: 16px; }
  .phone-mockup-hero { width: 190px; }
  .phone-mockup-sm { width: 110px; border-radius: 14px; padding: 6px 4px; }
  .phone-mockup-sm .phone-screen { border-radius: 6px; }
  .phone-mockup-featured { width: 130px; }
  .screenshot-label { font-size: 16px; }
  .congrats-img { height: 40px; }
  .btn { font-size: 16px; padding: 12px 20px; }
  .section-title { font-size: 16px; }
  .characters-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cta-logo { width: 200px; }
}

/* ==================
   ACCESSIBILITY
   ================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .rv { opacity: 1 !important; transform: none !important; }
  .loader { display: none; }
  body:not(.loaded) main,
  body:not(.loaded) .pixel-footer { opacity: 1; }
  .pixel-nav { opacity: 0; transform: translateY(-100%); }
  .pixel-nav.nav-scrolled { opacity: 1; transform: translateY(0); }
}
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }
