@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;900&display=swap');

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

:root {
  --orange: #FF6B35;
  --teal: #4ECDC4;
  --yellow: #FFE66D;
  --dark: #1A1A2E;
  --purple: #7B2FBE;
  --white: #FFFFFF;
  --light-bg: #F7F9FC;
  --card-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--light-bg);
  color: var(--dark);
  min-height: 100vh;
}

/* HEADER */
header {
  background: var(--dark);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--orange); }
.logo .star { color: var(--yellow); }

.tagline {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 600;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #16213E 60%, #0F3460 100%);
  color: var(--white);
  text-align: center;
  padding: 64px 32px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '🎮 🌟 🎯 🚀 🎪';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  opacity: 0.12;
  white-space: nowrap;
  letter-spacing: 20px;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero h1 span { color: var(--yellow); }

.hero p {
  font-size: 20px;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 32px;
  font-weight: 600;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 24px;
  max-width: 92vw;
  line-height: 1.5;
  text-align: center;
}

.cta-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 18px 48px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255,107,53,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(255,107,53,0.5); }

/* GAMES SECTION */
.games-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: #666;
  font-size: 16px;
  margin-bottom: 48px;
  font-weight: 600;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.game-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.18); }

.game-thumb {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
}

.game-thumb.orange { background: linear-gradient(135deg, #FF6B35, #FF9A3C); }
.game-thumb.teal   { background: linear-gradient(135deg, #4ECDC4, #44A8B3); }
.game-thumb.purple { background: linear-gradient(135deg, #7B2FBE, #9D4EDD); }

.game-info { padding: 20px 24px 24px; }
.game-info h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.game-info p { color: #666; font-size: 14px; margin-bottom: 16px; font-weight: 600; }

.play-btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
}
.play-btn.orange { background: var(--orange); }
.play-btn.teal   { background: var(--teal); }
.play-btn.purple { background: var(--purple); }

.free-badge {
  display: inline-block;
  background: #E8F8F5;
  color: #2ECC71;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 900;
  margin-left: 8px;
  vertical-align: middle;
}

/* WHY WOOPKID */
.why-section {
  background: var(--dark);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}

.why-section h2 { font-size: 28px; font-weight: 900; margin-bottom: 40px; }
.why-section h2 span { color: var(--yellow); }

.why-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.why-item { max-width: 200px; }
.why-item .icon { font-size: 48px; margin-bottom: 12px; }
.why-item h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.why-item p { font-size: 14px; opacity: 0.7; font-weight: 600; }

/* FOOTER */
footer {
  background: #111;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 24px;
  font-size: 14px;
  font-weight: 600;
}
footer a { color: var(--teal); text-decoration: none; }

/* GAME PAGE */
.game-page {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
}

.game-header {
  background: rgba(0,0,0,0.4);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.game-header .back { color: var(--teal); text-decoration: none; font-weight: 700; font-size: 14px; }
.game-header h1 { color: var(--white); font-size: 20px; font-weight: 900; flex: 1; }

.game-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

canvas {
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-width: 100%;
  touch-action: none;
}

/* AD SLOT (between games) */
.ad-slot {
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  margin: 16px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Replace with: Google AdSense for Kids (COPPA compliant) */
}

.score-display {
  color: var(--yellow);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  margin: 12px 0;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  header { padding: 12px 16px; }
  .tagline { display: none; }
  .hero { padding: 40px 16px 56px; }
  .hero::before { display: none; } /* hide decorative emojis on mobile */
  .hero h1 { font-size: 36px; }
  .games-section { padding: 40px 16px; }
  .why-grid { gap: 24px; }
  .hero-badge { font-size: 12px; padding: 8px 12px; }
}
