/* ===== FONTS ===== */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/pressstart2p/v15/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2') format('woff2');
}

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

/* ===== CSS VARIABLES ===== */
:root {
  --electric-blue: #00d4ff;
  --arcade-purple: #a855f7;
  --pixel-gold: #fbbf24;
  --deep-charcoal: #1a1a2e;
  --retro-magenta: #e91e8b;
  --dark-navy: #0f0f23;
  --crt-green: #39ff14;
  --neon-pink: #ff2d95;
  --arcade-dark: #0a0a1a;
  --card-bg: #16213e;
  --border-glow: #00d4ff;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --font-pixel: 'Press Start 2P', monospace;
  --font-main: 'Courier New', monospace;
}

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--arcade-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* CRT Scanline Overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* Pixel Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(233, 30, 139, 0.03) 0%, transparent 50%);
}

/* ===== ANIMATIONS ===== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 5px var(--electric-blue), 0 0 10px var(--electric-blue); }
  50% { box-shadow: 0 0 15px var(--electric-blue), 0 0 30px var(--electric-blue), 0 0 45px var(--electric-blue); }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 7px var(--electric-blue), 0 0 10px var(--electric-blue), 0 0 21px var(--electric-blue);
  }
  20%, 24%, 55% { text-shadow: none; }
}

@keyframes score-count {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); color: var(--pixel-gold); }
  100% { transform: scale(1); }
}

@keyframes slide-in-left {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pixel-expand {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes crt-flicker {
  0% { opacity: 0.97; }
  5% { opacity: 1; }
  10% { opacity: 0.98; }
  15% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes float-up {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-30px); opacity: 0; }
}

@keyframes streak-meter {
  0% { width: 0%; }
  100% { width: var(--streak-width, 0%); }
}

@keyframes card-flip {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(90deg); }
  100% { transform: rotateY(0deg); }
}

@keyframes badge-unlock {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

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

/* ===== FLOATING PIXEL HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10, 10, 26, 0.98) 0%, rgba(10, 10, 26, 0.95) 100%);
  border-bottom: 2px solid var(--electric-blue);
  padding: 12px 20px;
  animation: crt-flicker 3s infinite;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--pixel-gold);
  text-decoration: none;
  text-shadow: 0 0 10px var(--pixel-gold);
  letter-spacing: 1px;
}

.header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-nav a {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--electric-blue);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid transparent;
  transition: all 0.3s;
  text-transform: uppercase;
}

.header-nav a:hover {
  border-color: var(--electric-blue);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  text-shadow: 0 0 5px var(--electric-blue);
}

.badge-18 {
  font-family: var(--font-pixel);
  font-size: 9px;
  background: var(--retro-magenta);
  color: #fff;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid var(--neon-pink);
  box-shadow: 0 0 8px rgba(233, 30, 139, 0.5);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--electric-blue);
  color: var(--electric-blue);
  font-family: var(--font-pixel);
  font-size: 14px;
  padding: 6px 10px;
  cursor: pointer;
}

/* ===== ARCADE INTRO SCREEN ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(168, 85, 247, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--arcade-dark) 0%, var(--dark-navy) 100%);
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(24px, 5vw, 48px);
  color: var(--pixel-gold);
  text-shadow: 0 0 20px var(--pixel-gold), 0 0 40px rgba(251, 191, 36, 0.5);
  margin-bottom: 20px;
  animation: neon-flicker 4s infinite;
}

.hero-subtitle {
  font-family: var(--font-pixel);
  font-size: clamp(10px, 2vw, 14px);
  color: var(--electric-blue);
  margin-bottom: 40px;
  text-shadow: 0 0 10px var(--electric-blue);
}

.hero-insert-coin {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--retro-magenta);
  animation: blink 1.5s infinite;
  margin-top: 30px;
}

.hero-start-btn {
  font-family: var(--font-pixel);
  font-size: 14px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--retro-magenta), var(--arcade-purple));
  color: #fff;
  border: 2px solid var(--neon-pink);
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(233, 30, 139, 0.4);
}

.hero-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(233, 30, 139, 0.7);
}

/* ===== SECTION STYLES ===== */
.section {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.5vw, 22px);
  color: var(--electric-blue);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 0 10px var(--electric-blue);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
  margin: 15px auto 0;
}

/* ===== GAME CABINET ARENA ===== */
.game-arena {
  padding: 60px 20px 80px;
  background: linear-gradient(180deg, var(--dark-navy) 0%, var(--arcade-dark) 50%, var(--dark-navy) 100%);
  position: relative;
}

.arcade-cabinet {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1e1e3f 0%, #12122a 100%);
  border: 3px solid var(--arcade-purple);
  border-radius: 20px 20px 5px 5px;
  padding: 30px 20px;
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.3),
    inset 0 0 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.arcade-cabinet::before {
  content: 'GOLD CHIP ARCADE';
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--pixel-gold);
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  text-shadow: 0 0 8px var(--pixel-gold);
}

.game-screen {
  background: #0a0a1a;
  border: 3px solid #333;
  border-radius: 8px;
  padding: 30px 20px;
  margin-top: 20px;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.game-hud {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 10px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.hud-item {
  text-align: center;
}

.hud-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 5px;
}

.hud-value {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--pixel-gold);
  text-shadow: 0 0 5px var(--pixel-gold);
}

.game-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 30px 0;
  min-height: 200px;
}

.game-card {
  width: 120px;
  height: 170px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 28px;
  position: relative;
  transition: transform 0.3s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.game-card-face {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  border: 3px solid #ddd;
  color: #333;
}

.game-card-face.red {
  color: #e11d48;
}

.game-card-face.black {
  color: #1a1a1a;
}

.game-card-back {
  background: linear-gradient(135deg, var(--arcade-purple), var(--retro-magenta));
  border: 3px solid var(--neon-pink);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.game-card-back::before {
  content: '?';
  font-size: 40px;
  color: rgba(255, 255, 255, 0.8);
  animation: blink 2s infinite;
}

.card-suit {
  font-size: 14px;
  position: absolute;
  bottom: 15px;
}

.card-rank {
  font-size: 24px;
}

.vs-text {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--retro-magenta);
  text-shadow: 0 0 10px var(--retro-magenta);
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 25px 0;
}

.game-btn {
  font-family: var(--font-pixel);
  font-size: 11px;
  padding: 14px 30px;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.game-btn-higher {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: #34d399;
  color: #fff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.game-btn-higher:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

.game-btn-lower {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  border-color: #f87171;
  color: #fff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.game-btn-lower:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

.game-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.game-status {
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 11px;
  min-height: 30px;
  padding: 10px;
}

.game-status.win {
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.game-status.lose {
  color: #f87171;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

.game-restart-btn {
  display: none;
  margin: 15px auto;
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 12px 24px;
  background: var(--pixel-gold);
  color: var(--deep-charcoal);
  border: 2px solid var(--pixel-gold);
  cursor: pointer;
  transition: all 0.3s;
}

.game-restart-btn:hover {
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.game-restart-btn.visible {
  display: block;
}

/* Streak Meter */
.streak-meter {
  margin: 15px 0;
  padding: 10px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 5px;
}

.streak-meter-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--electric-blue);
  margin-bottom: 8px;
}

.streak-meter-bar {
  height: 8px;
  background: #1a1a2e;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #333;
}

.streak-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--electric-blue), var(--pixel-gold), var(--retro-magenta));
  border-radius: 4px;
  transition: width 0.5s ease;
  width: 0%;
}

/* Combo Display */
.combo-display {
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--pixel-gold);
  min-height: 20px;
  margin: 5px 0;
}

/* Game History */
.game-history {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
}

.game-history-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--electric-blue);
  margin-bottom: 10px;
}

.game-history-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-height: 80px;
  overflow-y: auto;
}

.history-card {
  width: 40px;
  height: 55px;
  border-radius: 4px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 10px;
  border: 2px solid;
}

.history-card.win {
  border-color: #34d399;
}

.history-card.lose {
  border-color: #f87171;
}

.history-card.red {
  color: #e11d48;
}

.history-card.black {
  color: #1a1a1a;
}

.history-suit {
  font-size: 8px;
}

/* Last Game Result Panel */
.last-game-panel {
  margin-top: 15px;
  padding: 10px 15px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 5px;
  background: rgba(251, 191, 36, 0.05);
  display: none;
}

.last-game-panel.visible {
  display: block;
}

.last-game-text {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--pixel-gold);
}

/* ===== HIGH SCORE DASHBOARD ===== */
.scoreboard {
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--arcade-dark) 0%, var(--dark-navy) 100%);
}

.scoreboard-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.score-panel {
  background: linear-gradient(135deg, #1e1e3f, #16213e);
  border: 2px solid var(--electric-blue);
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.score-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.score-panel-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.score-panel-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.score-panel-value {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--pixel-gold);
  text-shadow: 0 0 10px var(--pixel-gold);
}

/* ===== PLAYER MISSION SECTION ===== */
.missions {
  padding: 80px 20px;
  background: var(--dark-navy);
}

.mission-board {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.mission-card {
  background: rgba(30, 30, 63, 0.8);
  border: 2px solid var(--arcade-purple);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.mission-card:hover {
  border-color: var(--pixel-gold);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.mission-step {
  font-family: var(--font-pixel);
  font-size: 24px;
  color: var(--arcade-purple);
  margin-bottom: 15px;
  text-shadow: 0 0 10px var(--arcade-purple);
}

.mission-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--electric-blue);
  margin-bottom: 10px;
}

.mission-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== LEVEL PROGRESS TIMELINE ===== */
.timeline {
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--dark-navy) 0%, var(--arcade-dark) 100%);
}

.timeline-track {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--electric-blue), var(--arcade-purple), var(--retro-magenta));
  transform: translateX(-50%);
}

.timeline-node {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.timeline-node:nth-child(odd) {
  flex-direction: row;
}

.timeline-node:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--electric-blue);
  border: 3px solid var(--arcade-purple);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 10px var(--electric-blue);
}

.timeline-content {
  width: 42%;
  background: rgba(30, 30, 63, 0.8);
  border: 1px solid var(--arcade-purple);
  border-radius: 8px;
  padding: 20px;
}

.timeline-node:nth-child(odd) .timeline-content {
  margin-right: auto;
}

.timeline-node:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-level {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--pixel-gold);
  margin-bottom: 8px;
}

.timeline-text {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== ACHIEVEMENT WALL ===== */
.achievements {
  padding: 80px 20px;
  background: var(--arcade-dark);
}

.achievement-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.achievement-badge {
  background: linear-gradient(135deg, #1e1e3f, #0f0f23);
  border: 2px solid var(--pixel-gold);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.achievement-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(251, 191, 36, 0.1), transparent 30%);
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.achievement-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.3);
}

.achievement-icon {
  font-size: 36px;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.achievement-name {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--pixel-gold);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.achievement-desc {
  font-size: 12px;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* ===== COMMUNITY SCORE FEED ===== */
.community {
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--arcade-dark) 0%, var(--dark-navy) 100%);
}

.community-feed {
  max-width: 800px;
  margin: 0 auto;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 8px;
  margin-bottom: 12px;
  background: rgba(30, 30, 63, 0.5);
  transition: border-color 0.3s;
}

.feed-item:hover {
  border-color: var(--electric-blue);
}

.feed-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--arcade-purple), var(--retro-magenta));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

.feed-content {
  flex: 1;
}

.feed-player {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--electric-blue);
  margin-bottom: 4px;
}

.feed-action {
  font-size: 12px;
  color: var(--text-secondary);
}

.feed-time {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-secondary);
}

/* ===== FAQ PIXEL TERMINAL ===== */
.faq {
  padding: 80px 20px;
  background: var(--dark-navy);
}

.faq-terminal {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(10, 10, 26, 0.8);
  border: 1px solid #333;
  border-radius: 5px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 20px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--crt-green);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: rgba(57, 255, 20, 0.05);
}

.faq-question::before {
  content: '> ';
  color: var(--crt-green);
}

.faq-arrow {
  font-size: 12px;
  transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 18px 20px;
  border-top-color: #333;
}

/* ===== BONUS CHALLENGE BANNER ===== */
.bonus-banner {
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(233, 30, 139, 0.1));
  border-top: 2px solid var(--arcade-purple);
  border-bottom: 2px solid var(--arcade-purple);
  text-align: center;
}

.bonus-text {
  font-family: var(--font-pixel);
  font-size: clamp(12px, 2vw, 16px);
  color: var(--pixel-gold);
  text-shadow: 0 0 10px var(--pixel-gold);
  margin-bottom: 20px;
}

.bonus-sub {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 20px 30px;
  background: var(--arcade-dark);
  border-top: 2px solid var(--electric-blue);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-responsible {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.footer-responsible-title {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--retro-magenta);
  margin-bottom: 20px;
}

.responsible-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.responsible-link {
  font-size: 13px;
  color: var(--electric-blue);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--electric-blue);
  border-radius: 4px;
  transition: all 0.3s;
}

.responsible-link:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-nav a {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--electric-blue);
}

.footer-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.footer-copyright {
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-secondary);
  margin-top: 30px;
}

/* ===== SECONDARY PAGES ===== */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 20px 80px;
  min-height: 100vh;
}

.page-title {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 3vw, 24px);
  color: var(--electric-blue);
  text-shadow: 0 0 10px var(--electric-blue);
  margin-bottom: 40px;
  text-align: center;
}

.page-section {
  margin-bottom: 40px;
}

.page-section h2 {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--pixel-gold);
  margin-bottom: 15px;
}

.page-section p,
.page-section li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.page-section ul {
  list-style: none;
  padding-left: 20px;
}

.page-section ul li::before {
  content: '> ';
  color: var(--crt-green);
  font-family: var(--font-pixel);
  font-size: 10px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--electric-blue);
  display: block;
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(30, 30, 63, 0.8);
  border: 2px solid #333;
  border-radius: 5px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--electric-blue);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  font-family: var(--font-pixel);
  font-size: 11px;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--electric-blue), var(--arcade-purple));
  color: #fff;
  border: 2px solid var(--electric-blue);
  cursor: pointer;
  transition: all 0.3s;
}

.form-submit:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.98);
    flex-direction: column;
    padding: 20px;
    border-bottom: 2px solid var(--electric-blue);
  }

  .header-nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .game-cards {
    gap: 20px;
  }

  .game-card {
    width: 100px;
    height: 145px;
  }

  .game-controls {
    flex-direction: column;
    align-items: center;
  }

  .game-btn {
    width: 100%;
    max-width: 250px;
  }

  .timeline-track::before {
    left: 20px;
  }

  .timeline-node,
  .timeline-node:nth-child(even) {
    flex-direction: row;
    padding-left: 50px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-content,
  .timeline-node:nth-child(odd) .timeline-content,
  .timeline-node:nth-child(even) .timeline-content {
    width: 100%;
    margin: 0;
  }

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

  .mission-board {
    grid-template-columns: 1fr;
  }

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

  .responsible-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .header-logo {
    font-size: 11px;
  }

  .game-card {
    width: 85px;
    height: 125px;
  }

  .card-rank {
    font-size: 20px;
  }

  .scoreboard-grid {
    grid-template-columns: 1fr;
  }

  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .game-history-list {
    gap: 5px;
  }

  .history-card {
    width: 35px;
    height: 48px;
    font-size: 9px;
  }
}
