/* EduPlay — Bright, playful kid-friendly theme */
:root {
  --pink: #FF6B9D;
  --purple: #C084FC;
  --blue: #60A5FA;
  --cyan: #22D3EE;
  --green: #4ADE80;
  --yellow: #FACC15;
  --orange: #FB923C;
  --red: #F87171;
  --bg: #FFF8F0;
  --card-bg: #FFFFFF;
  --text: #1E293B;
  --text-light: #64748B;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.14);
  --radius: 20px;
  --radius-sm: 12px;
}

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

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
}

/* ===== HEADER / NAV ===== */
header {
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  padding: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-icon { font-size: 1.4rem; }

/* Desktop nav links container */
.nav-links {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

/* Dropdown wrapper */
.nav-dropdown {
  position: relative;
}

/* Dropdown trigger button */
.nav-dropdown-trigger {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.nav-dropdown-trigger.has-active {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.nav-dropdown-trigger .dd-arrow {
  font-size: 0.55rem;
  transition: transform 0.25s ease;
  display: inline-block;
}
.nav-dropdown.open .dd-arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
  background: #fff;
  border-radius: 16px;
  padding: 0.6rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
  min-width: 200px;
  z-index: 500;
  display: grid;
  gap: 0.25rem;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}

/* Dropdown items */
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.nav-dropdown-item:hover {
  background: #F5F3FF;
  transform: translateX(2px);
}
.nav-dropdown-item.active {
  background: linear-gradient(135deg, #F5F3FF, #FDF2F8);
  color: var(--purple);
}
.nav-dropdown-item-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  width: 1.4rem;
  text-align: center;
}

/* "All Games" direct link in nav */
.nav-home-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-home-link:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.nav-home-link.active {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  z-index: 301;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 99px;
  transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.2s ease;
  transform-origin: center;
}
.hamburger span:nth-child(1) { margin-bottom: 6px; }
.hamburger span:nth-child(3) { margin-top: 6px; }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== MOBILE NAV — FULL-SCREEN TAKEOVER ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(160deg, #FFF0F5 0%, #FFF8F0 35%, #F0F7FF 70%, #F0FFF4 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0.35s;
  padding: 0 0 2rem;
  display: flex;
  flex-direction: column;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0s;
}

/* Floating decorative dots */
.mobile-nav::before,
.mobile-nav::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.mobile-nav::before {
  width: 200px; height: 200px;
  top: -40px; right: -40px;
  background: radial-gradient(circle, rgba(255,107,157,0.15) 0%, transparent 70%);
}
.mobile-nav::after {
  width: 160px; height: 160px;
  bottom: 60px; left: -30px;
  background: radial-gradient(circle, rgba(96,165,250,0.15) 0%, transparent 70%);
}

/* Header bar inside mobile nav */
.mobile-nav-header {
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
}
.mobile-nav-header .logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mobile-nav-close {
  background: rgba(255,255,255,0.25);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.4); }
.mobile-nav-close:active { transform: scale(0.9); }

/* "All Games" home link */
.mobile-nav-home {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1rem 1rem 0.4rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 4px 16px rgba(192,132,252,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-home:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(192,132,252,0.2); }

/* Section headings */
.mobile-nav-section {
  padding: 0.8rem 1rem 0.2rem;
}
.mobile-nav-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  padding-left: 0.3rem;
}

/* Nav item grid — single column on phones, 2-col on tablets */
.mobile-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 400px) {
  .mobile-nav-grid { grid-template-columns: 1fr 1fr; }
}

/* Individual nav items — chunky pill buttons */
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--card-bg);
  border: 2.5px solid #F1F5F9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;
  /* Staggered entrance */
  opacity: 0;
  transform: translateY(16px);
}
.mobile-nav.open .mobile-nav-item {
  animation: navBounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.mobile-nav-item:nth-child(1) { animation-delay: 0.08s; }
.mobile-nav-item:nth-child(2) { animation-delay: 0.12s; }
.mobile-nav-item:nth-child(3) { animation-delay: 0.16s; }
.mobile-nav-item:nth-child(4) { animation-delay: 0.20s; }
.mobile-nav-item:nth-child(5) { animation-delay: 0.24s; }
.mobile-nav-item:nth-child(6) { animation-delay: 0.28s; }
.mobile-nav-item:nth-child(7) { animation-delay: 0.32s; }
.mobile-nav-item:nth-child(8) { animation-delay: 0.36s; }

.mobile-nav-item:active {
  transform: scale(0.96);
  border-color: var(--purple);
  box-shadow: 0 2px 12px rgba(192,132,252,0.25);
}
.mobile-nav-item.active {
  border-color: var(--purple);
  background: linear-gradient(135deg, #F5F3FF, #FDF2F8);
  box-shadow: 0 2px 12px rgba(192,132,252,0.15);
}
.mobile-nav-item-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.mobile-nav-item-label { line-height: 1.2; }

/* Privacy badge at bottom */
.mobile-nav-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.2rem 1rem 0;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #ECFDF5;
  color: #065F46;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid #A7F3D0;
  flex-shrink: 0;
}

@keyframes navBounceIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== PRIVACY BADGE ===== */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ECFDF5;
  color: #065F46;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 2px solid #A7F3D0;
}

.privacy-badge svg { width: 16px; height: 16px; }

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: linear-gradient(180deg, rgba(255,107,157,0.08) 0%, transparent 100%);
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 1.2rem;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.badge-green { background: #ECFDF5; color: #065F46; border: 2px solid #A7F3D0; }
.badge-blue { background: #EFF6FF; color: #1E40AF; border: 2px solid #BFDBFE; }
.badge-purple { background: #F5F3FF; color: #5B21B6; border: 2px solid #DDD6FE; }

/* ===== GAME GRID ===== */
.section { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.game-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}

.game-card[data-color="pink"]::before { background: var(--pink); }
.game-card[data-color="purple"]::before { background: var(--purple); }
.game-card[data-color="blue"]::before { background: var(--blue); }
.game-card[data-color="green"]::before { background: var(--green); }
.game-card[data-color="orange"]::before { background: var(--orange); }
.game-card[data-color="cyan"]::before { background: var(--cyan); }

.game-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
}

.game-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.game-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  flex: 1;
}

.game-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-top: 0.6rem;
  width: fit-content;
}

.tag-ages { background: #FEF3C7; color: #92400E; }
.tag-new { background: #DBEAFE; color: #1E40AF; }

/* ===== GAME PAGE LAYOUT ===== */
.game-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
}

.game-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.game-header h1 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
}

.game-header p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Difficulty selector */
.difficulty-selector {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.diff-btn {
  padding: 0.6rem 1.2rem;
  border: 3px solid #E2E8F0;
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
  text-align: center;
}

.diff-btn:hover { border-color: var(--purple); }

.diff-btn.active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.diff-btn.active-green { background: var(--green); border-color: var(--green); color: #fff; }
.diff-btn.active-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.diff-btn.active-orange { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Score bar */
.score-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 1rem;
}

.score-correct { color: #16A34A; }
.score-wrong { color: #DC2626; }
.score-streak { color: var(--purple); }
.score-timer { color: var(--orange); }

/* Question area */
.question-area {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.question-text {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  min-height: 3rem;
}

/* Answer input */
.answer-input {
  font-family: inherit;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  width: 140px;
  padding: 0.5rem;
  border: 3px solid #E2E8F0;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.answer-input:focus { border-color: var(--purple); }
.answer-input.correct { border-color: var(--green); background: #F0FDF4; }
.answer-input.wrong { border-color: var(--red); background: #FEF2F2; }

/* Answer choices (for multiple choice games) */
.answer-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  max-width: 400px;
  margin: 0 auto;
}

.choice-btn {
  padding: 1rem;
  border: 3px solid #E2E8F0;
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-btn:hover { border-color: var(--purple); transform: scale(1.03); }
.choice-btn:active { transform: scale(0.97); }
.choice-btn.correct { background: #DCFCE7; border-color: var(--green); }
.choice-btn.wrong { background: #FEE2E2; border-color: var(--red); }

/* Feedback overlay */
.feedback {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 1rem;
  min-height: 2rem;
  transition: opacity 0.2s;
}

.feedback-correct { color: #16A34A; }
.feedback-wrong { color: #DC2626; }

/* Primary action buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 4px 12px rgba(192,132,252,0.3);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(192,132,252,0.4); }

.btn-secondary {
  background: #F1F5F9;
  color: var(--text);
}

.btn-secondary:hover { background: #E2E8F0; }

.btn-lg { padding: 1rem 2.2rem; font-size: 1.15rem; border-radius: var(--radius); }

.btn-group {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

/* Start screen */
.start-screen {
  text-align: center;
  padding: 2rem 0;
}

.start-screen h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.start-screen p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Results screen */
.results-screen {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.results-screen h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.results-emoji {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.stat-card {
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  padding: 0.8rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--purple);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

/* Number Bonds visual */
.bond-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.bond-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  border: 3px solid;
}

.bond-total { background: #F5F3FF; border-color: var(--purple); color: var(--purple); }
.bond-part { background: #EFF6FF; border-color: var(--blue); color: var(--blue); }
.bond-unknown { background: #FEF3C7; border-color: var(--yellow); color: var(--orange); }
.bond-plus { font-size: 1.4rem; font-weight: 900; color: var(--text-light); }
.bond-equals { font-size: 1.4rem; font-weight: 900; color: var(--text-light); }

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 12px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* ===== PARENT INFO ===== */
.parent-info {
  background: #F8FAFC;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.parent-info h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.parent-info p, .parent-info li {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.7;
}

.parent-info ul { padding-left: 1.2rem; margin-top: 0.4rem; }

/* ===== FOOTER ===== */
footer {
  background: #1E293B;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
  font-size: 0.75rem;
}

footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-links { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 0.6rem; flex-wrap: wrap; }

/* ===== ANIMATIONS ===== */
@keyframes pop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-pop { animation: pop 0.3s ease-out; }
.animate-shake { animation: shake 0.3s ease-out; }
.animate-slide-up { animation: slideUp 0.4s ease-out; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .nav-links { display: none !important; }
  .hamburger { display: block; }

  .hero h1 { font-size: 1.8rem; }

  .game-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }

  .game-card { padding: 1rem; }
  .game-card-icon { font-size: 2rem; }

  .question-text { font-size: 1.6rem; }
  .answer-input { font-size: 1.5rem; width: 120px; }

  .bond-circle { width: 55px; height: 55px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .game-grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: 1.5rem; }

  .question-area { padding: 1.2rem; }
  .question-text { font-size: 1.4rem; }

  .difficulty-selector { gap: 0.3rem; }
  .diff-btn { padding: 0.5rem 0.8rem; font-size: 0.8rem; min-width: 80px; }
}

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