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

:root {
  --yellow: #FFD700;
  --black: #000000;
  --white: #FFFFFF;
  --yellow-dim: #CC9900;
  --gray: #333333;
  --font: 'Press Start 2P', monospace;
  --border-thin: 2px solid var(--yellow);
  --border-thick: 4px solid var(--yellow);
  --border-white: 2px solid var(--white);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* CRT Scanlines overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* CRT flicker */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 0, 0.01);
  pointer-events: none;
  z-index: 9998;
  animation: crt-flicker 8s infinite;
}

@keyframes crt-flicker {
  0%, 97%, 100% { opacity: 0; }
  97.5% { opacity: 1; }
  98% { opacity: 0; }
  98.5% { opacity: 0.5; }
  99% { opacity: 0; }
}

/* Pixel dot grid background */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, rgba(255, 215, 0, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  border-bottom: var(--border-thick);
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
}

.nav-logo {
  color: var(--yellow);
  font-family: var(--font);
  font-size: 11px;
  text-decoration: none;
  padding: 20px 0;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-bracket {
  color: var(--white);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: stretch;
  gap: 0;
}

.nav-links li {
  display: flex;
  align-items: stretch;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font);
  font-size: 9px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-left: var(--border-thin);
  transition: background 0.1s, color 0.1s;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--yellow);
  color: var(--black);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--yellow);
}

/* ============================================================
   MARQUEE TICKER
   ============================================================ */

.marquee-bar {
  border-bottom: var(--border-thin);
  background: var(--yellow);
  overflow: hidden;
  padding: 6px 0;
}

.marquee-track {
  display: flex;
  animation: marquee-scroll 24s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  color: var(--black);
  font-family: var(--font);
  font-size: 8px;
  padding-right: 48px;
  letter-spacing: 2px;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */

.main-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 80px - 60px);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.page-title {
  font-size: clamp(24px, 5vw, 48px);
  color: var(--yellow);
  letter-spacing: 2px;
  line-height: 1.3;
  margin-bottom: 24px;
  text-shadow:
    4px 4px 0px rgba(255, 215, 0, 0.2),
    -1px -1px 0px rgba(255, 215, 0, 0.1);
}

.page-title .cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--yellow);
  margin-left: 6px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.section-label {
  font-size: 8px;
  color: var(--yellow);
  letter-spacing: 4px;
  border-left: 4px solid var(--yellow);
  padding-left: 12px;
  margin-bottom: 48px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(16px, 3vw, 28px);
  color: var(--yellow);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

h3 {
  font-size: 14px;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

p {
  font-size: 11px;
  line-height: 2;
  color: #CCCCCC;
  margin-bottom: 20px;
}

/* ============================================================
   PIXEL BOXES / CARDS
   ============================================================ */

.pixel-box {
  border: var(--border-thick);
  background: var(--black);
  padding: 32px;
  position: relative;
  box-shadow: 4px 4px 0px var(--yellow);
}

.pixel-box::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: 8px;
  bottom: 8px;
  border: var(--border-thin);
  pointer-events: none;
  opacity: 0.3;
}

.pixel-box-white {
  border: var(--border-thick);
  border-color: var(--white);
  background: var(--black);
  padding: 32px;
  box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.2);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 9px;
  padding: 14px 24px;
  text-decoration: none;
  letter-spacing: 2px;
  cursor: pointer;
  border: 4px solid transparent;
  transition: all 0.08s;
  text-transform: uppercase;
  position: relative;
}

.btn:active {
  transform: translate(2px, 2px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
  box-shadow: 4px 4px 0px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--yellow);
  box-shadow: none;
}

.btn-outline {
  background: var(--black);
  color: var(--white);
  border-color: var(--white);
  box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  box-shadow: none;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ============================================================
   STORE BUTTONS
   ============================================================ */

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  border: var(--border-thick);
  font-family: var(--font);
  font-size: 8px;
  letter-spacing: 1px;
  transition: all 0.08s;
}

.store-btn:active {
  transform: translate(2px, 2px);
}

.store-btn-appstore {
  background: var(--black);
  color: var(--white);
  border-color: var(--white);
  box-shadow: 4px 4px 0 rgba(255,255,255,0.2);
}

.store-btn-appstore:hover {
  background: var(--white);
  color: var(--black);
  box-shadow: none;
}

.store-btn-play {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
  box-shadow: 4px 4px 0 rgba(255,215,0,0.3);
}

.store-btn-play:hover {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--yellow);
  box-shadow: none;
}

.store-btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-btn-sub {
  font-size: 6px;
  opacity: 0.7;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.store-btn-name {
  font-size: 9px;
  letter-spacing: 1px;
}

/* ============================================================
   DIVIDER
   ============================================================ */

.pixel-divider {
  border: none;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0px,
    var(--yellow) 8px,
    transparent 8px,
    transparent 16px
  );
  margin: 48px 0;
}

.pixel-divider-sm {
  border: none;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0px,
    var(--yellow) 4px,
    transparent 4px,
    transparent 8px
  );
  margin: 32px 0;
}

/* ============================================================
   STAT / INFO BLOCKS
   ============================================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
  margin: 48px 0;
}

.stat-block {
  border: var(--border-thin);
  padding: 24px 16px;
  text-align: center;
}

.stat-block:first-child {
  border-left: var(--border-thick);
}

.stat-value {
  font-size: 20px;
  color: var(--yellow);
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 7px;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: var(--border-thick);
  background: var(--black);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 7px;
  color: #555;
  letter-spacing: 2px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 7px;
  color: #555;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.1s;
}

.footer-links a:hover {
  color: var(--yellow);
}

/* ============================================================
   HOME PAGE — HERO
   ============================================================ */

.hero {
  padding: 80px 24px 64px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 8px;
  color: var(--yellow);
  letter-spacing: 6px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--yellow);
}

.hero-title {
  font-size: clamp(28px, 7vw, 64px);
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.hero-title .highlight {
  color: var(--yellow);
  display: block;
}

.hero-tagline {
  font-size: clamp(10px, 2vw, 14px);
  color: var(--yellow);
  letter-spacing: 4px;
  margin-bottom: 40px;
  border-left: 4px solid var(--yellow);
  padding-left: 16px;
}

.hero-desc {
  font-size: 11px;
  line-height: 2.2;
  color: #BBBBBB;
  max-width: 600px;
  margin-bottom: 48px;
}

.hero-frame {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Pixel car SVG visual */
.pixel-art-display {
  border: var(--border-thick);
  padding: 24px;
  background: #0A0A0A;
  box-shadow: 4px 4px 0px var(--yellow), inset 0 0 40px rgba(255,215,0,0.05);
  position: relative;
  overflow: hidden;
}

.pixel-art-display::before {
  content: 'PRESS START';
  font-family: var(--font);
  font-size: 7px;
  color: var(--yellow);
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 3px;
  animation: blink 1s step-end infinite;
  white-space: nowrap;
}

.pixel-track {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 32px;
}

.track-line {
  height: 4px;
  background: #222;
  position: relative;
}

.track-line.center-line {
  background: repeating-linear-gradient(
    90deg,
    #333 0px, #333 16px,
    transparent 16px, transparent 32px
  );
}

.track-line.yellow-line {
  background: var(--yellow);
  height: 2px;
  opacity: 0.4;
}

/* ============================================================
   GAME CARD
   ============================================================ */

.game-card {
  border: var(--border-thick);
  background: #040404;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  box-shadow: 6px 6px 0px var(--yellow);
  margin: 48px 0;
}

.game-card-art {
  border-right: var(--border-thick);
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.game-card-art::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, #050505);
}

.game-card-info {
  padding: 40px 36px;
}

.game-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: 7px;
  padding: 6px 12px;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.game-title {
  font-size: clamp(20px, 3.5vw, 32px);
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.game-desc {
  font-size: 10px;
  line-height: 2.2;
  color: #AAAAAA;
  margin-bottom: 32px;
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */

.support-box {
  border: var(--border-thick);
  padding: 48px;
  background: #040404;
  box-shadow: 6px 6px 0px var(--yellow);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.support-label {
  font-size: 8px;
  color: #666;
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.support-email {
  display: block;
  font-family: var(--font);
  font-size: clamp(9px, 2vw, 13px);
  color: var(--yellow);
  text-decoration: none;
  padding: 20px 16px;
  border: var(--border-thin);
  margin: 24px 0;
  letter-spacing: 1px;
  transition: all 0.08s;
  word-break: break-all;
}

.support-email:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

/* ============================================================
   PRIVACY POLICY
   ============================================================ */

.privacy-section {
  margin-bottom: 48px;
}

.privacy-section h2 {
  font-size: 13px;
  border-bottom: var(--border-thin);
  padding-bottom: 12px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.privacy-section p,
.privacy-section li {
  font-size: 10px;
  line-height: 2.2;
  color: #BBBBBB;
  margin-bottom: 16px;
}

.privacy-section ul,
.privacy-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.privacy-section li {
  margin-bottom: 8px;
}

.privacy-section a {
  color: var(--yellow);
  text-decoration: underline;
}

.privacy-section a:hover {
  color: var(--white);
}

.privacy-date {
  font-size: 8px;
  color: #555;
  letter-spacing: 2px;
  margin-bottom: 48px;
  padding: 12px 16px;
  border: var(--border-thin);
  display: inline-block;
}

/* ============================================================
   PIXEL ART SVGs / DECORATIONS
   ============================================================ */

.corner-decoration {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--yellow);
}

.corner-decoration.tl { top: -2px; left: -2px; }
.corner-decoration.tr { top: -2px; right: -2px; }
.corner-decoration.bl { bottom: -2px; left: -2px; }
.corner-decoration.br { bottom: -2px; right: -2px; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .nav-logo {
    font-size: 9px;
  }

  .nav-links a {
    font-size: 7px;
    padding: 0 12px;
  }

  .hero {
    padding: 48px 20px 40px;
  }

  .hero-frame {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-card-art {
    border-right: none;
    border-bottom: var(--border-thick);
    min-height: 180px;
  }

  .game-card-info {
    padding: 28px 20px;
  }

  .support-box {
    padding: 32px 20px;
  }

  .container {
    padding: 40px 20px;
  }

  .btn-group {
    flex-direction: column;
  }

  .store-btn {
    justify-content: center;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }

  .nav-logo {
    padding: 16px 20px;
    border-bottom: 1px solid #111;
    width: 100%;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links li {
    flex: 1;
  }

  .nav-links a {
    justify-content: center;
    padding: 14px 8px;
    font-size: 6px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }

  .pixel-box {
    padding: 20px;
  }
}
