@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* ─── Custom Properties ─────────────────────────────────────── */
:root {
  --color-red:    #FF0000;
  --color-yellow: #FFD700;
  --color-cyan:   #00FFFF;
  --color-bg:     #000000;
  --font-pixel:   'Press Start 2P', monospace;
  --glow-red:     0 0 3px rgba(255, 0, 0, 0.6);
  --glow-cyan:    0 0 10px #00FFFF, 0 0 20px #00FFFF;
  --glow-yellow:  0 0 10px #FFD700, 0 0 20px #FFD700;
}

/* ─── Reset + Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ─── Scanline Overlay ──────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ─── Starfield Canvas ──────────────────────────────────────── */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Site Wrapper ──────────────────────────────────────────── */
.site-wrapper {
  position: relative;
  z-index: 1;
}

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3 {
  color: var(--color-red);
  text-shadow: var(--glow-red);
  font-family: var(--font-pixel);
  line-height: 1.4;
}

h1 { font-size: clamp(16px, 3vw, 32px); }
h2 { font-size: clamp(12px, 2vw, 20px); }
h3 { font-size: clamp(10px, 1.5vw, 14px); }

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: text-shadow 0.2s;
}

a:hover {
  text-shadow: var(--glow-cyan);
}

p {
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 2;
}

/* ─── Flicker Animation ─────────────────────────────────────── */
@keyframes flicker {
  0%   { opacity: 1; }
  4%   { opacity: 0.85; }
  8%   { opacity: 1; }
  50%  { opacity: 1; }
  52%  { opacity: 0.9; }
  54%  { opacity: 1; }
  80%  { opacity: 1; }
  82%  { opacity: 0.88; }
  84%  { opacity: 1; }
  100% { opacity: 1; }
}

.flicker {
  animation: flicker 8s infinite;
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  border-bottom: 2px solid var(--color-yellow);
}

.nav__logo img {
  height: 40px;
  width: auto;
  image-rendering: pixelated;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav__links a {
  color: var(--color-yellow);
  font-size: 9px;
  letter-spacing: 0.05em;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav__links a:hover {
  color: var(--color-cyan);
  text-shadow: var(--glow-cyan);
}

.nav__links .nav-icon svg {
  display: block;
  fill: var(--color-yellow);
  transition: fill 0.2s;
}

.nav__links .nav-icon:hover svg {
  fill: var(--color-cyan);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-retro {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--color-bg);
  background: var(--color-yellow);
  border: none;
  cursor: pointer;
  padding: 14px 28px;
  box-shadow: 4px 4px 0 var(--color-red);
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
  letter-spacing: 0.05em;
}

.btn-retro:hover {
  color: var(--color-bg);
  text-shadow: none;
}

.btn-retro:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--color-red);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 4px 4px 0 var(--color-red), 0 0 12px var(--color-yellow), 0 0 24px var(--color-yellow); }
  50%       { box-shadow: 4px 4px 0 var(--color-red), 0 0 24px var(--color-yellow), 0 0 48px var(--color-yellow); }
}

.btn-retro--play {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ─── Section ───────────────────────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section__heading {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section__heading::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--color-yellow);
  margin-top: 16px;
  box-shadow: var(--glow-yellow);
}

/* ─── Hero CTA ──────────────────────────────────────────────── */
.hero__cta {
  margin-top: 40px;
}

/* ─── Video Section ─────────────────────────────────────────── */
.video-section {
  padding: 96px 24px 64px;
  text-align: center;
  background: rgba(0, 5, 20, 0.5);
}

.video-section .section__heading {
  display: block;
  position: static;
  left: auto;
  transform: none;
  margin-bottom: 40px;
}

.video-section .section__heading::after {
  display: none;
}

/* ─── Phone Mockup ──────────────────────────────────────────── */
.phone-mockup {
  position: relative;
  display: inline-block;
  width: 280px;
  background: #1c1c1e;
  border-radius: 48px;
  padding: 14px 10px;
  box-shadow:
    0 0 0 2px #3a3a3c,
    0 0 0 4px #1c1c1e,
    0 0 0 6px #3a3a3c,
    0 0 40px rgba(0, 255, 255, 0.25),
    0 0 80px rgba(0, 255, 255, 0.1);
}

/* Volume buttons (left side) */
.phone-btn {
  position: absolute;
  background: #2c2c2e;
  border-radius: 3px;
  left: -5px;
}

.phone-btn--vol-up {
  top: 96px;
  width: 4px;
  height: 36px;
  box-shadow: -1px 0 0 #111;
}

.phone-btn--vol-down {
  top: 144px;
  width: 4px;
  height: 36px;
  box-shadow: -1px 0 0 #111;
}

/* Power button (right side) */
.phone-btn--power {
  right: -5px;
  top: 116px;
  width: 4px;
  height: 52px;
  box-shadow: 1px 0 0 #111;
}

/* Screen area */
.phone-screen {
  background: #000;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island notch */
.phone-notch {
  flex-shrink: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.phone-notch::after {
  content: '';
  width: 90px;
  height: 20px;
  background: #1c1c1e;
  border-radius: 10px;
}

/* Video fills screen */
.video-wrapper {
  position: relative;
  flex: 1;
  background: #000;
  overflow: hidden;
}

.video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.2s;
}

.video-overlay:hover {
  background: rgba(0, 0, 0, 0.25);
}

.play-btn {
  width: 0;
  height: 0;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 42px solid var(--color-cyan);
  filter: drop-shadow(0 0 10px var(--color-cyan));
  transition: filter 0.2s;
}

.video-overlay:hover .play-btn {
  filter: drop-shadow(0 0 18px var(--color-cyan));
}

/* Home indicator bar */
.phone-home-bar {
  flex-shrink: 0;
  height: 24px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-home-bar::after {
  content: '';
  width: 80px;
  height: 4px;
  background: #444;
  border-radius: 2px;
}

/* ─── Screenshots ───────────────────────────────────────────── */
.screenshots-section {
  padding: 64px 0;
  overflow: hidden;
}

.screenshots-section .section__heading {
  padding: 0 24px;
}

.screenshot-strip {
  display: flex;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px 40px 32px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-cyan) transparent;
}

.screenshot-strip::-webkit-scrollbar {
  height: 6px;
}
.screenshot-strip::-webkit-scrollbar-track {
  background: transparent;
}
.screenshot-strip::-webkit-scrollbar-thumb {
  background: var(--color-cyan);
  border-radius: 3px;
}

.screenshot-frame {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 3px solid var(--color-cyan);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 200px;
}

.screenshot-frame:hover {
  transform: scale(1.04);
  box-shadow: 0 0 28px var(--color-cyan);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
}

/* ─── Sticker Grid ──────────────────────────────────────────── */
.sticker-page-hero {
  text-align: center;
  padding: 48px 24px 16px;
}

.sticker-page-hero h1 {
  font-size: clamp(14px, 2.5vw, 24px);
  margin-bottom: 24px;
}

.sticker-subheading {
  color: var(--color-yellow);
  font-size: 9px;
  text-shadow: var(--glow-yellow);
  margin-bottom: 8px;
  display: block;
}

.sticker-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.sticker-card {
  background: rgba(0, 5, 20, 0.8);
  border: 2px solid var(--color-yellow);
  border-radius: 8px;
  padding: 16px 12px 14px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.sticker-card:hover {
  transform: scale(1.05);
  border-color: var(--color-cyan);
  box-shadow: 0 0 16px var(--color-cyan), 0 0 32px rgba(0, 255, 255, 0.2);
}

.sticker-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--color-yellow);
  color: var(--color-bg);
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 3px 6px;
  line-height: 1;
}

.sticker-card img {
  width: 100%;
  max-width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 20px 0 12px;
  image-rendering: auto;
}

.sticker-name {
  color: var(--color-yellow);
  font-size: 8px;
  margin-bottom: 8px;
  text-shadow: var(--glow-yellow);
  letter-spacing: 0.05em;
}

.sticker-unlock {
  color: rgba(255, 255, 255, 0.7);
  font-size: 7px;
  line-height: 1.8;
}

.sticker-cta {
  text-align: center;
  color: var(--color-cyan);
  font-size: 9px;
  margin-top: 8px;
  text-shadow: var(--glow-cyan);
}

/* ─── Privacy Page ──────────────────────────────────────────── */
.privacy-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px;
}

.privacy-panel {
  background: rgba(0, 5, 20, 0.7);
  border: 2px solid var(--color-cyan);
  border-radius: 4px;
  padding: 40px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.privacy-panel h1 {
  font-size: 14px;
  margin-bottom: 32px;
  text-align: center;
}

.privacy-panel h2 {
  font-size: 10px;
  color: var(--color-red);
  text-shadow: var(--glow-red);
  margin: 32px 0 14px;
}

.privacy-panel p {
  font-size: 9px;
  line-height: 2.4;
  color: rgba(255, 255, 255, 0.85);
}

.privacy-panel a {
  color: var(--color-cyan);
}

.privacy-panel a:hover {
  text-shadow: var(--glow-cyan);
}

.effective-date {
  font-size: 8px;
  color: var(--color-yellow);
  margin-top: 32px;
  display: block;
}

/* ─── Power-Ups Page ────────────────────────────────────────── */
.powerup-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.powerup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.powerup-card {
  background: rgba(0, 5, 20, 0.85);
  border: 2px solid var(--color-yellow);
  border-radius: 8px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.powerup-card:hover {
  border-color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.powerup-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.powerup-name {
  font-size: clamp(11px, 1.5vw, 14px);
  color: var(--color-red);
  text-shadow: var(--glow-red);
  margin-bottom: 14px;
}

.powerup-desc {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 2.2;
  margin-bottom: 24px;
  max-width: 320px;
}

.powerup-video-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 2px dashed var(--color-cyan);
  border-radius: 6px;
  background: rgba(0, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.powerup-video-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.powerup-play-icon {
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 30px solid rgba(0, 255, 255, 0.35);
  filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.4));
  margin-bottom: 4px;
}

.powerup-video-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: rgba(0, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

.powerup-video-hint {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

.powerup-unlock-hint {
  text-align: center;
  color: var(--color-yellow);
  font-size: 9px;
  text-shadow: var(--glow-yellow);
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .powerup-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 2px solid var(--color-red);
  padding: 32px 24px;
  text-align: center;
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer__links a {
  color: var(--color-cyan);
  font-size: 8px;
}

.footer__copy {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
}

/* ─── Responsive: Tablet ────────────────────────────────────── */
@media (max-width: 768px) {
  .nav {
    padding: 10px 16px;
  }

  .nav__links {
    gap: 14px;
  }

  .sticker-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 48px 16px;
  }

  .video-wrapper {
    max-width: 100%;
  }

  .privacy-panel {
    padding: 24px 20px;
  }
}

/* ─── Responsive: Mobile ────────────────────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: 14px; }
  h2 { font-size: 11px; }

  .nav__logo img {
    height: 30px;
  }

  .nav__links a {
    font-size: 8px;
  }

  .btn-retro {
    font-size: 9px;
    padding: 12px 20px;
  }

  .screenshot-frame {
    width: 160px;
  }

  .sticker-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sticker-card img {
    height: 90px;
  }

  .footer__links {
    gap: 16px;
  }
}
