/* ===== CSS Variables & Themes ===== */
:root {
  --primary: #0a4d3c;
  --primary-light: #1a7a5c;
  --accent: #c9a227;
  --bg: #f5f9f7;
  --bg-card: #ffffff;
  --text: #1a2e28;
  --text-muted: #5a6e68;
  --border: #d0e0d8;
  --shadow: 0 4px 20px rgba(10, 77, 60, 0.12);
  --radius: 16px;
  --font-thai: 'Noto Sans Thai', sans-serif;
  --font-arabic: 'Amiri', serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body.theme-dark {
  --primary: #1a9b6e;
  --primary-light: #2dca8f;
  --accent: #e0b83a;
  --bg: #0d1f1a;
  --bg-card: #152e26;
  --text: #e8f5f0;
  --text-muted: #a0b8b0;
  --border: #2a4a3e;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.theme-sepia {
  --primary: #5c4033;
  --primary-light: #8b6914;
  --accent: #b8860b;
  --bg: #f4ecd8;
  --bg-card: #faf6eb;
  --text: #3e2f1c;
  --text-muted: #6b5a3e;
  --border: #d4c4a8;
  --shadow: 0 4px 20px rgba(92, 64, 51, 0.15);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-thai);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* ===== Screens ===== */
.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

.screen.active {
  display: flex;
}

/* ===== Loading ===== */
#loading-screen {
  justify-content: center;
  align-items: center;
  background: linear-gradient(160deg, #0a4d3c 0%, #0d6b52 50%, #1a8a6a 100%);
  color: white;
}

.loading-content {
  text-align: center;
  padding: 2rem;
}

.crescent-moon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 15px 0 0 0 #f5f9f7;
  margin: 0 auto 1.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.progress-bar {
  width: 200px;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  margin: 1.5rem auto 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #c9a227;
  border-radius: 3px;
  animation: loadProgress 2s ease-out forwards;
}

@keyframes loadProgress {
  to { width: 100%; }
}

/* ===== Main Menu ===== */
#main-menu {
  position: relative;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.menu-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(26, 122, 92, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(201, 162, 39, 0.15) 0%, transparent 40%),
    linear-gradient(180deg, #0a4d3c 0%, #0d6b52 40%, #1a8a6a 100%);
  z-index: 0;
}

body.theme-dark .menu-bg {
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(26, 155, 110, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #061510 0%, #0d1f1a 50%, #152e26 100%);
}

body.theme-sepia .menu-bg {
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(139, 105, 20, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #3e2f1c 0%, #5c4033 50%, #8b6914 100%);
}

.menu-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 420px;
  width: 100%;
}

.logo-area {
  margin-bottom: 2.5rem;
  color: white;
}

.water-drop-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.logo-area h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 300;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 14px;
  font-family: var(--font-thai);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  min-height: 52px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #c9a227, #e0b83a);
  color: #1a2e28;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(201, 162, 39, 0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.18);
  color: white;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
}

/* ปุ่ม secondary บนพื้นหลังสว่าง (ใน modal / การ์ด) ต้องคอนทราสต์สูง */
.modal-content .btn-secondary,
.lesson-section .btn-secondary,
.story-panel .btn-secondary,
.lesson-footer .btn-secondary,
.completion-content .btn-secondary {
  background: var(--primary);
  color: #ffffff !important;
  border: 2px solid var(--primary-light);
  box-shadow: 0 3px 12px rgba(10, 77, 60, 0.25);
}

body.theme-dark .modal-content .btn-secondary,
body.theme-dark .lesson-section .btn-secondary {
  background: var(--primary-light);
  color: #0d1f1a !important;
  border-color: var(--accent);
}

/* ปุ่มหลักใน modal ให้เด่นชัด */
.modal-content .btn-primary {
  background: linear-gradient(135deg, #c9a227, #e8c84a);
  color: #1a2e28 !important;
  border: 2px solid #b8911f;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.5);
  font-weight: 700;
}

/* ปุ่มปิดควิซ / ต่อไป ต้องเห็นชัด */
#btn-quiz-close,
#btn-quiz-next {
  width: 100%;
  margin-top: 0.75rem;
  min-height: 52px;
  font-size: 1.1rem;
}

.btn-icon {
  font-size: 1.3rem;
}

.menu-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.15s;
}

.icon-btn:active {
  transform: scale(0.92);
}

/* ปุ่มไอคอนใน header (พื้นสว่าง) ต้องเห็นชัด */
.game-header .icon-btn {
  background: var(--primary);
  color: #ffffff !important;
  border: 2px solid var(--primary-light);
  box-shadow: 0 2px 8px rgba(10, 77, 60, 0.25);
  font-weight: 700;
}

body.theme-dark .game-header .icon-btn {
  background: var(--primary-light);
  color: #0d1f1a !important;
  border-color: var(--accent);
}

.game-header .icon-btn:active {
  transform: scale(0.92);
  opacity: 0.9;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 400px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  color: var(--text);
}

.modal-content h2 {
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-size: 1.35rem;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.setting-item label {
  font-weight: 500;
}

.setting-item select,
.setting-item input[type="checkbox"] {
  font-size: 1rem;
  accent-color: var(--primary);
}

.about-content ul {
  margin: 0.75rem 0 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-content .note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ===== Game Header ===== */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.progress-info {
  flex: 1;
  text-align: center;
  padding: 0 0.75rem;
}

.progress-info span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.stage-progress {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 0.35rem;
  overflow: hidden;
}

.stage-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

.header-right {
  font-weight: 600;
  color: var(--accent);
  min-width: 50px;
  text-align: right;
}

/* ===== Adventure Main ===== */
.adventure-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
}

.scene-bg {
  height: 180px;
  background: linear-gradient(180deg, #87CEEB 0%, #e0f0e8 100%);
  position: relative;
  overflow: hidden;
  transition: background 0.5s;
}

.scene-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--bg));
}

/* Scene-specific backgrounds via classes */
.scene-bg.desert {
  background: linear-gradient(180deg, #f4a460 0%, #deb887 40%, #d2b48c 100%);
}
.scene-bg.ocean {
  background: linear-gradient(180deg, #4a90d9 0%, #87CEEB 50%, #b0e0e6 100%);
}
.scene-bg.sky {
  background: linear-gradient(180deg, #1a3a5c 0%, #4a7ab0 40%, #87CEEB 100%);
}
.scene-bg.rain {
  background: linear-gradient(180deg, #2c3e50 0%, #5d6d7e 40%, #85929e 100%);
}
.scene-bg.earth {
  background: linear-gradient(180deg, #8B7355 0%, #a08060 40%, #c4a574 100%);
}
.scene-bg.garden {
  background: linear-gradient(180deg, #2ecc71 0%, #58d68d 40%, #a9dfbf 100%);
}
.scene-bg.summit {
  background: linear-gradient(180deg, #1a5276 0%, #2980b9 40%, #5dade2 100%);
}

.story-panel {
  flex: 1;
  padding: 1.25rem;
  padding-bottom: 2rem;
}

.location-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

#scene-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

#scene-desc {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* Knowledge Card */
.knowledge-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.knowledge-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--primary);
}

.quran-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ayah-block {
  margin-bottom: 1rem;
}

.ayah-arabic {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  line-height: 2;
  text-align: right;
  direction: rtl;
  color: var(--primary);
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  background: rgba(10, 77, 60, 0.06);
  border-radius: 10px;
}

body.theme-dark .ayah-arabic {
  background: rgba(26, 155, 110, 0.12);
}

.ayah-meta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ayah-thai {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.ayah-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.science-section,
.benefit-section {
  margin-bottom: 1rem;
}

.science-section p,
.benefit-section p {
  font-size: 0.92rem;
  color: var(--text);
}

.ref-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.ref-section small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Interactive Area */
.interactive-area {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  min-height: 100px;
  text-align: center;
}

.interactive-area h4 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.collect-game {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem 0;
}

.vapor-drop {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #87CEEB, #4a90d9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
  box-shadow: 0 2px 8px rgba(74, 144, 217, 0.4);
}

.vapor-drop:active {
  transform: scale(0.85);
}

.vapor-drop.collected {
  opacity: 0.3;
  pointer-events: none;
  transform: scale(0.7);
}

.puzzle-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}

.puzzle-item {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: grab;
  font-size: 0.9rem;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.puzzle-item.correct {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
}

.puzzle-item.wrong {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

.catch-area {
  position: relative;
  height: 150px;
  background: linear-gradient(180deg, #5d6d7e, #85929e);
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
}

.rain-drop {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #87CEEB;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  animation: fall linear;
  cursor: pointer;
}

@keyframes fall {
  from { top: -20px; }
  to { top: 100%; }
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.action-buttons .btn {
  width: 100%;
}

/* Learn Mode */
.learn-main {
  padding: 1.25rem;
  overflow-y: auto;
}

.stage-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stage-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.15rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.stage-card:active {
  transform: scale(0.98);
}

.stage-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.stage-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Completion */
#completion-screen {
  justify-content: center;
  align-items: center;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  text-align: center;
  padding: 2rem;
}

.completion-content {
  max-width: 400px;
}

.trophy {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  animation: bounce 1s ease infinite;
}

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

#completion-screen h1 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.score-display {
  font-size: 1.2rem;
  margin: 1rem 0;
  font-weight: 600;
}

#final-ayah {
  font-family: var(--font-arabic);
  font-size: 1.2rem;
  line-height: 1.9;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  direction: rtl;
}

.completion-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Quiz */
#quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.quiz-option {
  padding: 0.9rem 1.1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-thai);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  color: var(--text);
}

.quiz-option:hover {
  border-color: var(--primary);
}

.quiz-option.correct {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.15);
}

.quiz-option.wrong {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

#quiz-feedback {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  min-height: 1.5em;
}

/* Responsive */
@media (min-width: 600px) {
  .logo-area h1 {
    font-size: 2.2rem;
  }
  .scene-bg {
    height: 220px;
  }
  .story-panel {
    max-width: 640px;
    margin: 0 auto;
  }
  .action-buttons {
    flex-direction: row;
  }
  .action-buttons .btn {
    flex: 1;
  }
}

@media (min-width: 900px) {
  .story-panel {
    max-width: 720px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hide scrollbar but keep functionality */
.adventure-main::-webkit-scrollbar,
.learn-main::-webkit-scrollbar {
  width: 4px;
}
.adventure-main::-webkit-scrollbar-thumb,
.learn-main::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ===== Learn Mode Extra Styles ===== */
.menu-hint {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  margin: 0.5rem 0 1.25rem;
  text-align: center;
}

.learn-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}

.lesson-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.15rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
  position: relative;
}

.lesson-card:active { transform: scale(0.98); }

.lesson-card.completed {
  border-color: #2ecc71;
}

.lesson-card.completed::after {
  content: '✓';
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #2ecc71;
  font-weight: bold;
  font-size: 1.2rem;
}

.lesson-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
  padding-right: 1.5rem;
}

.lesson-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lesson-detail-main {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  padding-bottom: 5rem;
}

.lesson-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.lesson-section h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.lesson-section .ayah-arabic {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  line-height: 2;
  text-align: right;
  direction: rtl;
  color: var(--primary);
  margin: 0.5rem 0;
  padding: 0.75rem;
  background: rgba(10, 77, 60, 0.06);
  border-radius: 10px;
}

body.theme-dark .lesson-section .ayah-arabic {
  background: rgba(26, 155, 110, 0.12);
}

.lesson-section .ayah-meta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.lesson-section .ayah-thai {
  font-size: 0.95rem;
  margin: 0.35rem 0;
}

.lesson-section .explanation {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.4rem;
}

.lesson-section .content-text {
  font-size: 0.92rem;
  white-space: pre-line;
  line-height: 1.7;
}

.lesson-section ul {
  margin: 0.5rem 0 0 1.2rem;
  font-size: 0.92rem;
}

.lesson-section .dua-item {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border);
}

.lesson-section .dua-item:last-child {
  border-bottom: none;
}

.lesson-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 50;
}

.lesson-footer .btn {
  width: 100%;
}

.hint-box {
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.hint-box strong {
  color: var(--accent);
}

.scene-story {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

#lesson-detail-screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

#lesson-detail-screen.active {
  display: flex;
}
