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

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

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  min-height: 100vh;
  overflow-x: hidden;
  color: #333;
}

/* Soft light particles */
.lights { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 0; }
.light {
  position: absolute;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  animation: glow 3s ease-in-out infinite alternate;
}
@keyframes glow { 0% { opacity: 0.2; transform: scale(1); } 100% { opacity: 0.6; transform: scale(1.4); } }

/* Layout */
.container { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 30px 20px; }

/* Header */
.header { text-align: center; margin-bottom: 40px; }
.mascot { font-size: 80px; line-height: 1; margin-bottom: 10px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.title {
  font-family: 'Fredoka One', cursive;
  font-size: 42px;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.15);
  letter-spacing: 2px;
}
.subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  margin-top: 8px;
  font-weight: 600;
}

/* Game cards grid */
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.game-card {
  background: white;
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: 3px solid rgba(245,158,11,0.2);
}
.game-card:hover, .game-card:active {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  border-color: rgba(245,158,11,0.5);
}
.game-icon { font-size: 64px; line-height: 1; margin-bottom: 12px; }
.game-name { font-family: 'Fredoka One', cursive; font-size: 20px; margin-bottom: 6px; color: #92400e; }
.game-desc { font-size: 14px; color: #777; line-height: 1.4; }
.game-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.badge-memory { background: #fef3c7; color: #92400e; }
.badge-tracing { background: #ecfccb; color: #3f6212; }
.badge-runner { background: #e0f2fe; color: #0369a1; }
.badge-catching { background: #fce7f3; color: #9d174d; }

/* Coming soon overlay */
.game-card.coming-soon {
  opacity: 0.6;
  cursor: default;
  position: relative;
}
.game-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: rgba(245,158,11,0.2);
}
.coming-soon-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f59e0b;
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Game iframe overlay */
.game-frame-container { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 50; background: #000; display: none; }
.game-frame-container.active { display: block; }
.game-frame-container iframe { width: 100%; height: 100%; border: none; }
.game-back-btn {
  position: fixed; top: 12px; left: 12px; z-index: 51;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.game-back-btn:hover { background: rgba(0,0,0,0.8); }

/* Footer */
.footer { text-align: center; margin-top: 40px; color: rgba(255,255,255,0.6); font-size: 13px; }
.parent-link { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; font-weight: 600; }
.parent-link:hover { color: rgba(255,255,255,0.8); }

/* Responsive */
@media (max-width: 500px) {
  .games-grid { grid-template-columns: 1fr; }
  .title { font-size: 32px; }
  .mascot { font-size: 60px; }
}
