/* ===== BODY ===== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  background: #f0f2f5;
  color: #333;
  overscroll-behavior: none;
}

/* ===== HERO SECTION ===== */
#hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #84fab0, #8fd3f4, #cfd9df);
  padding: 15px;
  flex-direction: column;
  gap: 15px;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: clamp(1rem, 4vw, 1.3rem);
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.15);
}

/* ===== CATEGORY GRID ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
}

.category-btn {
  padding: 18px 10px;
  border-radius: 20px;
  cursor: pointer;
  background: rgba(255,255,255,0.85);
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.category-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  background: rgba(255,255,255,1);
}

/* ===== QUIZ SECTION ===== */
#quiz-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 15px;
  gap: 15px;
}

#question-text {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

/* ===== OPTIONS ===== */
.option-btn {
  margin: 8px 0;
  padding: 15px 12px;
  width: 90%;
  max-width: 300px;
  border-radius: 15px;
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  background: #fff;
}

.option-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.correct {background: #4CAF50; color: #fff;}
.wrong {background: #f44336; color: #fff;}

/* ===== PROGRESS BAR ===== */
#progress-container {
  width: 90%;
  max-width: 350px;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  margin: 10px 0;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f6d365, #fda085);
  width: 0%;
  border-radius: 5px;
  transition: width 0.3s ease;
}

/* ===== GAME CONTROLS ===== */
.game-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.game-controls button {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  cursor: pointer;
  background: #8fd3f4;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.game-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* ===== COMPLETION SCREEN ===== */
#completion-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
}

#completion-screen h2 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  color: #ff9800;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.2);
}

#completion-screen p {
  font-size: clamp(1rem, 4vw, 1.4rem);
}

/* ===== TOP BUTTONS ===== */
#music-toggle, #install-btn {
  position: fixed;
  top: 12px;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

#music-toggle {right: 12px; background: #ffb74d; color: #fff;}
#install-btn {left: 12px; background: #4fc3f7; color: #fff;}

#music-toggle:hover, #install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* ===== CATEGORY BACKGROUNDS ===== */
.science-bg {background: linear-gradient(135deg, #a8edea, #fed6e3);}
.maths-bg {background: linear-gradient(135deg, #fceabb, #f8b500);}
.english-bg {background: linear-gradient(135deg, #fbc2eb, #a6c1ee);}
.gk-bg {background: linear-gradient(135deg, #c2e59c, #64b3f4);}
