/* ==========================================================================
   NahlMedia Edu - Halaman Arena Materi (materi.css)
   Brand Palette: Emerald Mint & Honey Gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-base: #aee1c4;
  --bg-gradient-top: #c2f0d6;
  --bg-gradient-bottom: #97d4b1;
  --brand-primary: #059669;
  --brand-primary-dark: #064e3b;
  --brand-honey: #f59e0b;
  --text-main: #062b1b;
  --text-muted: #15573b;
  --card-radius: 22px;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(167, 243, 208, 0.6) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(254, 243, 199, 0.5) 0%, transparent 42%),
    linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-base) 45%, var(--bg-gradient-bottom) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
}

/* Honeycomb Geometric Background Layer (Khas NahlMedia) */
.honeycomb-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath fill='%23064e3b' d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66ZM28 97L0 81L0 66L28 82L56 66L56 81L28 97Z'/%3E%3C/svg%3E");
  background-size: 56px 97px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Header */
.materi-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(174, 225, 196, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.04);
}

.materi-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.materi-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-sound-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid #a7f3d0;
  color: #065f46;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-sound-toggle:hover {
  background: #ffffff;
  transform: scale(1.06);
  border-color: #34d399;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: #ffffff;
  color: #065f46;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.1);
  transition: all 0.2s ease;
}

.btn-back-home:hover {
  background: #f8fafc;
  transform: translateX(-3px);
}

/* Breadcrumbs */
.breadcrumb-bar {
  padding: 16px 0 6px 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: #059669;
  text-decoration: none;
  font-weight: 700;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  opacity: 0.6;
}

/* Hero Arena Card */
.arena-hero-card {
  margin: 18px 0 32px 0;
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 26px;
  padding: 32px 36px;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 32px -8px rgba(6, 78, 59, 0.12), 0 0 20px rgba(245, 158, 11, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-left-info {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-subject-icon {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.1));
}

.hero-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.badge-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.badge-km {
  background: #059669;
  color: #ffffff;
}

.badge-grade {
  background: #fef08a;
  color: #854d0e;
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  color: #052417;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* XP Widget */
.hero-xp-widget {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 22px;
  box-shadow: 0 6px 18px rgba(6, 78, 59, 0.08);
  min-width: 220px;
  text-align: center;
}

.xp-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.xp-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: #059669;
  margin: 2px 0 6px 0;
}

.xp-progress-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.xp-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* Sections */
.materi-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #062b1b;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Topics Grid */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

/* Card Elements (Unified Mobile & Desktop) */
.hero-top-tag {
  display: none;
}
.hero-game-counter {
  display: none;
}

.topic-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--card-radius);
  padding: 16px 20px;
  box-shadow: 0 8px 20px rgba(6, 78, 59, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.topic-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(6, 78, 59, 0.12);
}

.topic-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.topic-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.topic-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.topic-info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topic-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-sub-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.btn-action-main {
  padding: 8px 22px;
  border-radius: 9999px;
  background: #059669;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-action-main:hover {
  background: #047857;
  transform: scale(1.05);
}

/* Games Card Item */
.game-card-item {
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--card-radius);
  padding: 16px 20px;
  box-shadow: 0 6px 18px rgba(6, 78, 59, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
}

.game-card-item:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(6, 78, 59, 0.12);
}

.game-card-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.game-card-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.game-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.game-text-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.game-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.btn-play-game {
  padding: 8px 22px;
  border-radius: 9999px;
  border: none;
  background: #059669;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-play-game:hover {
  background: #047857;
  transform: scale(1.05);
}

/* Mobile Bottom Dock (Hidden on Desktop) */
.mobile-bottom-dock {
  display: none;
}

/* Playable Challenge Arena */
.interactive-play-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 28px 32px;
  box-shadow: 0 16px 36px rgba(6, 78, 59, 0.08);
  border: 2px solid #e2e8f0;
}

.play-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.play-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: #065f46;
  background: #d1fae5;
  padding: 4px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.play-reward-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  padding: 4px 12px;
  border-radius: 9999px;
}

.play-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 18px;
  line-height: 1.45;
}

.play-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.play-opt-btn {
  padding: 14px 18px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-opt-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.play-opt-btn.correct {
  background: #d1fae5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
}

.play-opt-btn.wrong {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

.play-feedback-box {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
  line-height: 1.5;
}

.play-feedback-box.show {
  display: block;
}

.play-feedback-box.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #86efac;
}

.play-feedback-box.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Games Grid */
.games-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.game-card-item {
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--card-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 18px rgba(6, 78, 59, 0.06);
  transition: all 0.2s ease;
}

.game-card-item:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(6, 78, 59, 0.12);
}

.game-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-card-icon {
  font-size: 1.8rem;
}

.game-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.game-card-sub {
  font-size: 0.78rem;
  color: #64748b;
}

.btn-play-game {
  padding: 8px 16px;
  border-radius: 9999px;
  border: none;
  background: #059669;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-play-game:hover {
  background: #047857;
  transform: scale(1.05);
}

/* Grade Jump Bar */
.grade-jump-bar {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  padding: 18px 24px;
  margin-bottom: 50px;
}

.grade-jump-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #062b1b;
  margin-bottom: 10px;
  display: block;
}

.grade-jump-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.grade-jump-link {
  padding: 6px 14px;
  border-radius: 9999px;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.grade-jump-link:hover {
  background: #059669;
  color: #ffffff;
}

.grade-jump-link.current {
  background: #059669;
  color: #ffffff;
}

/* Footer */
.materi-footer {
  padding: 24px 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .play-options-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Mobile-First App Layout (Optimized for Smartphones <= 640px)
   Matches the Modern EdTech App Reference:
   - Sticky Top Bar with Brand Logo & Circular Utility Buttons
   - Curved Vibrant Hero Banner (Class & Subject Title, Game Count)
   - Vertical Feed of Clean White Cards with Soft Pastel Squircles & "Main" Pill
   - Floating Bottom Navigation Dock (5 App Tabs)
   ========================================================================== */
@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
  }

  body {
    background-color: #f3f6fc !important;
    background-image: none !important;
  }

  .honeycomb-bg,
  .sparkle-layer {
    display: none !important;
  }

  .container {
    padding: 0 16px;
  }

  main.container {
    padding-bottom: 84px !important; /* space for bottom dock */
  }

  /* Fixed 56px Sleek Top App Bar - Perfectly Clamped */
  .materi-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 56px !important;
    max-height: 56px !important;
    padding: 0 !important;
    background: #ffffff !important;
    backdrop-filter: blur(14px);
    border-bottom: 1.5px solid #eef2f6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  }

  .materi-header .container,
  .materi-header .materi-nav {
    height: 100% !important;
    padding: 0 16px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .materi-nav .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 0;
  }

  .materi-nav .brand-icon {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0;
  }

  .materi-nav .brand-name {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap;
  }

  .materi-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  /* Hide bulky Donasi button in mobile header (available in bottom dock) */
  .header-donasi-btn {
    display: none !important;
  }

  .btn-sound-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    padding: 0 !important;
  }

  .btn-back-home {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: #eff6ff !important;
    border: 1.5px solid #c7d2fe !important;
    color: #4338ca !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(67, 56, 202, 0.1) !important;
  }

  .btn-back-text {
    display: none !important; /* Hide label, leave clean round arrow button */
  }

  /* Hide Promotional Interactive Banner in Mobile to Match Reference Clean View */
  div[id$="InteractiveBanner"] {
    display: none !important;
  }

  /* Hide Desktop Breadcrumb */
  .breadcrumb-bar {
    display: none;
  }

  /* Hero Card transformed into Vibrant App Header Banner (Matching Reference Image) */
  .arena-hero-card {
    margin: 12px 0 16px 0 !important;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #1e40af 100%) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 20px 20px !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28) !important;
    color: #ffffff !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
  }

  /* Watermark Honeycomb inside Hero Card */
  .arena-hero-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 140px;
    height: 140px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath fill='%23ffffff' fill-opacity='0.12' d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66ZM28 97L0 81L0 66L28 82L56 66L56 81L28 97Z'/%3E%3C/svg%3E");
    background-size: 56px 97px;
    pointer-events: none;
    border-radius: 50%;
  }

  .hero-left-info {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
  }

  .hero-subject-icon {
    display: none !important; /* Hidden on mobile to match minimal hero card in reference */
  }

  .hero-top-tag {
    display: block !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
  }

  .hero-badge-row {
    display: none !important; /* replaced by hero-top-tag */
  }

  .hero-title {
    font-size: 1.85rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    margin-bottom: 4px !important;
  }

  .hero-subtitle {
    display: none !important;
  }

  .hero-game-counter {
    display: block !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }

  /* Hide cluttered section header in mobile so topic cards directly follow the hero card */
  .section-header {
    display: none !important;
  }

  /* Single Column Feed for Topics and Games (Matching Reference Cards) */
  .topics-grid,
  .games-cards-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .topic-card,
  .game-card-item {
    background: #ffffff !important;
    border: 1.5px solid #edf2f7 !important;
    border-radius: 18px !important;
    padding: 12px 14px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .topic-card-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .topic-icon-box,
  .game-card-icon-box {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .topic-emoji,
  .game-emoji {
    font-size: 1.45rem !important;
  }

  .topic-info-col {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }

  .topic-name,
  .game-card-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .topic-sub-label,
  .game-card-sub {
    font-size: 0.74rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
  }

  .btn-action-main,
  .btn-play-game {
    padding: 7px 20px !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    border-radius: 9999px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28) !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
  }

  .btn-action-main:hover,
  .btn-play-game:hover {
    background: #1d4ed8 !important;
  }

  .section-title {
    font-size: 1.15rem;
  }

  /* Interactive Play Card in Mobile */
  .interactive-play-card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .play-question {
    font-size: 1.02rem;
  }

  .play-options-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .play-opt-btn {
    padding: 12px 14px;
    font-size: 0.9rem;
    border-radius: 14px;
  }

  /* Grade Jump Bar */
  .grade-jump-bar {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 14px 16px !important;
    margin-top: 16px !important;
    margin-bottom: 24px !important;
  }

  .grade-jump-label {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
  }

  .grade-jump-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .grade-jump-link {
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 9999px !important;
  }

  /* Mobile Bottom Dock (App-Like 5 Tab Bar) - Fully Visible Labels */
  .mobile-bottom-dock {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 66px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    border-top: 1.5px solid #eef2f6 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)) 6px !important;
    z-index: 9999 !important;
  }

  .dock-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #64748b !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    flex: 1 !important;
    height: 100% !important;
    transition: all 0.2s ease !important;
    gap: 2px !important;
  }

  .dock-icon {
    font-size: 1.15rem !important;
    line-height: 1 !important;
  }

  .dock-label {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .dock-item.active {
    color: #2563eb !important;
  }

  .dock-pill {
    background: #dbeafe !important;
    padding: 2px 14px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1px !important;
  }

  .dock-item:active {
    transform: scale(0.95) !important;
  }

  .materi-footer {
    padding: 16px 0 24px 0 !important;
    padding-bottom: 84px !important;
    font-size: 0.76rem !important;
    color: #94a3b8 !important;
    text-align: center !important;
  }
}
