/* ========================================================
   KUIS CERIA SEMESTER - DARK THEME (RAMAH MATA & TIDAK SILAU)
   ======================================================== */

:root {
  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --secondary: #facc15;
  --secondary-hover: #eab308;
  --accent-pink: #f472b6;
  --accent-green: #34d399;
  --accent-purple: #a78bfa;
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #293548;
  --bg-subtle: #334155;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: #334155;
  --border-radius-lg: 24px;
  --border-radius-md: 18px;
  --border-radius-sm: 12px;
  --shadow-card: 0 14px 30px rgba(0, 0, 0, 0.45);
  --shadow-button: 0 6px 0 rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Fredoka', 'Nunito', 'Comic Sans MS', cursive, sans-serif;
  background: linear-gradient(135deg, #090d16 0%, #0f172a 40%, #1e1b4b 100%);
  min-height: 100vh;
  color: var(--text-light);
  padding: 16px;
  position: relative;
  overflow-x: hidden;
}

/* Floating Kid Icons in Background (Reduced Opacity in Dark Mode) */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.18;
  animation: floatAround 14s infinite ease-in-out alternate;
}

.b1 { top: 8%; left: 4%; animation-duration: 12s; }
.b2 { top: 15%; right: 6%; animation-duration: 16s; }
.b3 { bottom: 12%; left: 8%; animation-duration: 18s; }
.b4 { bottom: 18%; right: 5%; animation-duration: 15s; }
.b5 { top: 45%; left: 2%; animation-duration: 20s; }
.b6 { top: 50%; right: 3%; animation-duration: 13s; }

@keyframes floatAround {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(15deg); }
  100% { transform: translateY(15px) rotate(-15deg); }
}

/* App Main Container */
.app-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* App Header (Dark Card with Soft Glow) */
.app-header {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 3px solid #38bdf8;
  margin-bottom: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  font-size: 2.6rem;
  animation: pulseStar 2s infinite ease-in-out;
}

@keyframes pulseStar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(10deg); }
}

.logo-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.logo-sub {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
}

.pill-btn {
  background: #334155;
  color: #f8fafc;
  border: 2px solid #475569;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  background: #475569;
  transform: translateY(-2px);
}

.back-pill-btn {
  background: #7f1d1d;
  color: #fecaca;
  border: 2px solid #ef4444;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-pill-btn:hover {
  background: #991b1b;
  transform: scale(1.05);
}

/* Screens */
.screen {
  display: none;
  animation: fadeIn 0.35s ease-out forwards;
}

.screen.active {
  display: block;
}

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

/* ========================================================
   SCREEN 1: CATEGORY SELECTION (DARK MODE)
   ======================================================== */
.screen-intro {
  margin-bottom: 20px;
}

.mascot-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 14px 20px;
  border-radius: var(--border-radius-lg);
  border: 3px dashed #f59e0b;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
  margin-bottom: 16px;
}

.mascot-emoji {
  font-size: 2.2rem;
}

.bubble-speech {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fde047;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #f8fafc;
  text-align: center;
  margin-bottom: 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.category-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border: 3px solid #334155;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
}

.category-card:active {
  transform: translateY(-2px) scale(0.99);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  background: #0f172a;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #334155;
}

.category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
  line-height: 1.3;
}

.category-badge-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  background: #0f172a;
  padding: 5px 14px;
  border-radius: 999px;
  margin-top: 4px;
  border: 1px solid #334155;
}

/* Category Card Vibrant Borders */
.cat-c1 { border-color: #ec4899; } .cat-c1:hover { border-color: #f472b6; }
.cat-c2 { border-color: #22c55e; } .cat-c2:hover { border-color: #4ade80; }
.cat-c3 { border-color: #0ea5e9; } .cat-c3:hover { border-color: #38bdf8; }
.cat-c4 { border-color: #f97316; } .cat-c4:hover { border-color: #fb923c; }
.cat-c5 { border-color: #14b8a6; } .cat-c5:hover { border-color: #2dd4bf; }
.cat-c6 { border-color: #8b5cf6; } .cat-c6:hover { border-color: #a78bfa; }
.cat-c7 { border-color: #ef4444; } .cat-c7:hover { border-color: #f87171; }
.cat-c8 { border-color: #eab308; } .cat-c8:hover { border-color: #facc15; }
.cat-c9 { border-color: #6366f1; } .cat-c9:hover { border-color: #818cf8; }
.cat-c10 { border-color: #d946ef; } .cat-c10:hover { border-color: #e879f9; }
.cat-c11 { border-color: #10b981; } .cat-c11:hover { border-color: #34d399; }

/* ========================================================
   SCREEN 2: QUIZ AREA (DARK MODE)
   ======================================================== */
.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 12px 20px;
  border-radius: var(--border-radius-md);
  border: 3px solid #334155;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.category-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-cat-badge {
  background: #1e3a8a;
  color: #93c5fd;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid #3b82f6;
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #78350f;
  border: 3px solid #f59e0b;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fef3c7;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
}

.timer-box.timer-warning {
  background: #7f1d1d;
  border-color: #ef4444;
  color: #fecaca;
  animation: shakeWarning 0.6s infinite alternate;
}

@keyframes shakeWarning {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* Question Navigator Bubbles (1 to 10) */
.question-navigator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.nav-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #475569;
  background: var(--bg-card);
  color: #cbd5e1;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.nav-bubble:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: #38bdf8;
  color: #38bdf8;
}

.nav-bubble.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.nav-bubble.answered {
  background: #065f46;
  color: #a7f3d0;
  border-color: #10b981;
}

.nav-bubble.answered.active {
  background: #047857;
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.6);
}

/* Question Card */
.quiz-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 24px 28px;
  border: 3px solid #38bdf8;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.quiz-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px dashed #334155;
}

.question-badge {
  background: #854d0e;
  color: #fef08a;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid #eab308;
}

.question-status-pill {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  background: #334155;
  color: #94a3b8;
}

.question-status-pill.answered {
  background: #064e3b;
  color: #6ee7b7;
  border: 1px solid #10b981;
}

.question-content {
  margin-bottom: 24px;
  text-align: center;
}

.question-text {
  font-size: 1.55rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.5;
  margin-bottom: 16px;
}

.question-image-wrapper {
  margin: 14px auto 10px auto;
  text-align: center;
}

.question-img {
  max-width: 220px;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  border: 3px solid #475569;
  background: #0f172a;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Multiple Choice Options (a, b, c) */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option-card {
  background: #334155;
  border: 3px solid #475569;
  border-radius: var(--border-radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

.option-card:hover {
  background: #3f4e65;
  border-color: #38bdf8;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.2);
}

.option-card.selected {
  background: #064e3b;
  border-color: #34d399;
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.25);
}

.option-letter {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border: 2px solid #475569;
}

.option-card.selected .option-letter {
  background: #10b981;
  color: #ffffff;
  border-color: #34d399;
}

.option-body {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-grow: 1;
}

.option-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}

.option-img {
  max-width: 90px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 12px;
  background: #0f172a;
  border: 2px solid #475569;
  padding: 6px;
}

.option-check {
  margin-left: auto;
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.option-card.selected .option-check {
  opacity: 1;
}

/* Quiz Footer / Actions */
.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.action-btn {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 14px 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-button);
}

.action-btn:hover {
  transform: translateY(-3px);
}

.action-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.btn-prev {
  background: #334155;
  color: #e2e8f0;
  border: 3px solid #475569;
}

.btn-prev:hover {
  background: #475569;
}

.btn-next {
  background: #0284c7;
  color: #ffffff;
  border: 3px solid #38bdf8;
}

.btn-next:hover {
  background: #0369a1;
}

.btn-finish {
  background: #059669;
  color: #ffffff;
  border: 3px solid #34d399;
  font-size: 1.2rem;
  margin-left: auto;
  animation: pulseFinish 2s infinite ease-in-out;
}

.btn-finish:hover {
  background: #047857;
}

@keyframes pulseFinish {
  0%, 100% { box-shadow: 0 6px 0 #065f46, 0 0 0 0 rgba(52, 211, 153, 0.6); }
  50% { box-shadow: 0 6px 0 #065f46, 0 0 0 10px rgba(52, 211, 153, 0); }
}

/* ========================================================
   SCREEN 3: RESULT SCREEN (DARK MODE)
   ======================================================== */
.result-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 36px 28px;
  border: 4px solid #f59e0b;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.result-header {
  margin-bottom: 24px;
}

.result-mascot {
  font-size: 4.5rem;
  margin-bottom: 12px;
  animation: bounceMascot 1s infinite alternate ease-in-out;
}

@keyframes bounceMascot {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.result-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 6px;
}

.result-category {
  font-size: 1.15rem;
  font-weight: 700;
  color: #94a3b8;
}

/* Score Circle */
.score-circle-wrapper {
  margin: 20px auto 26px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.score-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid #facc15;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

.score-value {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
}

.score-max {
  font-size: 1.15rem;
  font-weight: 700;
  opacity: 0.9;
}

.stars-row {
  display: flex;
  gap: 12px;
  font-size: 2.4rem;
}

.star {
  filter: grayscale(100%);
  opacity: 0.25;
  transition: all 0.3s ease;
}

.star.active {
  filter: none;
  opacity: 1;
  animation: starPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes starPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-box {
  background: #334155;
  border: 3px solid #475569;
  border-radius: var(--border-radius-md);
  padding: 14px 20px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f8fafc;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
}

.stat-correct { border-color: #22c55e; background: #064e3b; }
.stat-correct .stat-num { color: #86efac; }
.stat-wrong { border-color: #ef4444; background: #7f1d1d; }
.stat-wrong .stat-num { color: #fca5a5; }
.stat-time { border-color: #38bdf8; background: #0c4a6e; }
.stat-time .stat-num { color: #bae6fd; }

.result-feedback-box {
  background: #78350f;
  border: 3px dashed #f59e0b;
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fef3c7;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-retry {
  background: #d97706;
  color: #ffffff;
  border: 3px solid #f59e0b;
}

.btn-choose-subject {
  background: #0284c7;
  color: #ffffff;
  border: 3px solid #38bdf8;
}

.btn-review-toggle {
  background: #7c3aed;
  color: #ffffff;
  border: 3px solid #a78bfa;
}

/* Review Section */
.review-section {
  text-align: left;
  border-top: 3px dashed #475569;
  padding-top: 24px;
  margin-top: 24px;
}

.review-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 16px;
  text-align: center;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-item {
  background: #334155;
  border: 3px solid #475569;
  border-radius: var(--border-radius-md);
  padding: 16px 18px;
}

.review-item.is-correct {
  border-color: #22c55e;
  background: #064e3b;
}

.review-item.is-wrong {
  border-color: #ef4444;
  background: #7f1d1d;
}

.review-q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 1.1rem;
}

.review-q-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 10px;
}

.review-ans-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1rem;
  font-weight: 600;
}

.ans-child {
  color: #cbd5e1;
}

.ans-correct {
  color: #86efac;
}

/* ========================================================
   TOAST NOTIFICATION (DARK THEMED)
   ======================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  width: 90%;
  max-width: 520px;
}

.toast {
  pointer-events: auto;
  background: #1e293b;
  border-radius: var(--border-radius-lg);
  padding: 18px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 4px solid #38bdf8;
  font-size: 1.25rem;
  font-weight: 800;
  animation: slideToastDown 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: all 0.3s ease;
  color: #f8fafc;
}

.toast.toast-success {
  background: #064e3b;
  border-color: #34d399;
  color: #a7f3d0;
}

.toast.toast-warning {
  background: #78350f;
  border-color: #f59e0b;
  color: #fef3c7;
}

.toast.toast-danger {
  background: #7f1d1d;
  border-color: #ef4444;
  color: #fecaca;
}

.toast-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.toast-message {
  flex-grow: 1;
  line-height: 1.35;
}

@keyframes slideToastDown {
  from { opacity: 0; transform: translateY(-40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast.toast-hide {
  opacity: 0;
  transform: translateY(-30px) scale(0.9);
}

/* ========================================================
   MODAL POPUP (DARK THEMED)
   ======================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  background: #1e293b;
  border-radius: var(--border-radius-lg);
  padding: 30px 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  border: 4px solid #38bdf8;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  color: #f8fafc;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.modal-emoji {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 10px;
}

.modal-message {
  font-size: 1.15rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 24px;
  line-height: 1.45;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Canvas Confetti */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

/* ========================================================
   RESPONSIVE DESIGN (HP, Tablet, Laptop)
   ======================================================== */
@media (max-width: 640px) {
  body {
    padding: 10px;
  }

  .app-header {
    padding: 12px 16px;
  }

  .logo-title {
    font-size: 1.25rem;
  }

  .logo-sub {
    font-size: 0.8rem;
  }

  .question-text {
    font-size: 1.3rem;
  }

  .option-text {
    font-size: 1.15rem;
  }

  .quiz-card {
    padding: 18px 16px;
  }

  .action-btn {
    padding: 12px 18px;
    font-size: 1rem;
    flex: 1 1 auto;
  }

  .nav-bubble {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .category-card {
    padding: 14px 10px;
  }

  .category-icon {
    font-size: 2.2rem;
    width: 55px;
    height: 55px;
  }

  .category-title {
    font-size: 0.95rem;
  }

  .score-circle {
    width: 140px;
    height: 140px;
  }

  .score-value {
    font-size: 2.8rem;
  }
}
