/* =========================================================
   BÉ GIỎI TOÁN - DESIGN SYSTEM & STYLESHEET
   Lớp 3 & Lớp 4 chuẩn GDPT Việt Nam
   Aesthetics: Cheerful, Glassmorphism, Kid-friendly & Modern
   ========================================================= */

:root {
  /* Brand Color Palette */
  --primary-hue: 220;
  --color-bg-gradient: linear-gradient(135deg, #f0f4ff 0%, #e6eeff 50%, #fdf2f8 100%);
  --color-primary: #4f46e5;
  --color-primary-light: #6366f1;
  --color-primary-dark: #3730a3;
  --color-secondary: #06b6d4;
  --color-accent: #f59e0b;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-purple: #8b5cf6;
  --color-pink: #ec4899;

  /* Card and Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 16px 36px -8px rgba(79, 70, 229, 0.12), 0 6px 16px -4px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.22), 0 8px 20px -4px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-display: 'Baloo 2', cursive, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Grade Specific Color Themes */
  --g3-color: #0284c7;
  --g3-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --g3-bg-soft: #f0f9ff;

  --g4-color: #7c3aed;
  --g4-gradient: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  --g4-bg-soft: #faf5ff;

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-smooth: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--color-bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Background Animated Blobs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.55;
  pointer-events: none;
}

body::before {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #c7d2fe 0%, #e0e7ff 100%);
  top: -100px;
  left: -100px;
}

body::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #fbcfe8 0%, #fce7f3 100%);
  bottom: -150px;
  right: -100px;
}

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

/* App Container Layout */
#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  animation: gentle-bounce 3s ease-in-out infinite;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Profile Chip */
.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.profile-chip:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.15);
}

.profile-chip .avatar {
  font-size: 1.5rem;
  background: #eef2ff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-info {
  display: flex;
  flex-direction: column;
}

.chip-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.1;
}

.chip-grade {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-switch-profile {
  background: #f1f5f9;
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-switch-profile:hover {
  background: #e0e7ff;
}

/* Stats Badges (Stars, Diamonds, Streak) */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1.5px solid transparent;
}

.stat-badge.star {
  color: #d97706;
  border-color: #fef3c7;
  background: #fffbeb;
}

.stat-badge.diamond {
  color: #0284c7;
  border-color: #e0f2fe;
  background: #f0f9ff;
}

.stat-badge.streak {
  color: #ea580c;
  border-color: #ffedd5;
  background: #fff7ed;
}

.sound-toggle-btn {
  background: white;
  border: 1.5px solid #e2e8f0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sound-toggle-btn:hover {
  transform: scale(1.1);
  border-color: var(--color-primary-light);
}

/* =========================================================
   SCREENS (Switchable single page views)
   ========================================================= */
.main-content {
  flex: 1;
}

.screen {
  display: none;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.screen.active {
  display: block;
}

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

/* =========================================================
   SCREEN 1: WELCOME & PROFILE SELECT
   ========================================================= */
.welcome-hero {
  text-align: center;
  margin: 20px auto 36px;
  max-width: 720px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 600;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.profile-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--glass-shadow);
  border: 2px solid transparent;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-grade3 {
  border-color: rgba(56, 189, 248, 0.4);
}

.card-grade4 {
  border-color: rgba(168, 85, 247, 0.4);
}

.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.card-grade3 .card-badge {
  background: #e0f2fe;
  color: #0369a1;
}

.card-grade4 .card-badge {
  background: #f3e8ff;
  color: #6b21a8;
}

.card-avatar-wrap {
  position: relative;
  margin: 12px 0 16px;
}

.avatar-large {
  font-size: 4.8rem;
  line-height: 1;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.12));
  transition: var(--transition-smooth);
}

.profile-card:hover .avatar-large {
  transform: scale(1.15) rotate(4deg);
}

.profile-card-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.profile-birth-badge {
  display: inline-block;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.profile-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.profile-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-bottom: 24px;
}

.summary-item {
  background: white;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.profile-card-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-select-hero {
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  transition: var(--transition-smooth);
  margin-bottom: 10px;
}

.btn-select-hero:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.btn-grade3 {
  background: var(--g3-gradient);
}

.btn-grade4 {
  background: var(--g4-gradient);
}

.btn-rename {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}

.btn-rename:hover {
  color: var(--color-primary);
  background: #f1f5f9;
}

/* =========================================================
   SCREEN 2: DASHBOARD & TOPIC SELECTION
   ========================================================= */
.dashboard-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.student-level-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.level-avatar {
  font-size: 3.5rem;
  background: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  border: 3px solid #e0e7ff;
}

.level-details {
  flex: 1;
}

.level-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.student-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.student-title-badge {
  background: #eef2ff;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.xp-bar-container {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 6px;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.xp-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Quick Actions (60s Challenge, 10 Questions Exam, Badges) */
.dash-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.btn-mode-quick {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

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

.btn-speed-challenge:hover {
  border-color: #f59e0b;
}

.btn-exam-challenge:hover {
  border-color: #10b981;
}

.btn-achievements:hover {
  border-color: #8b5cf6;
}

.mode-icon {
  font-size: 2rem;
  line-height: 1;
}

.mode-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.mode-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Topics Grid */
.topics-section {
  margin-bottom: 40px;
}

/* Roadmap Summary Card */
.roadmap-summary-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.9) 100%);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--glass-shadow);
  border: 2px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.roadmap-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.roadmap-badge {
  font-size: 0.76rem;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.roadmap-headline {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.roadmap-stats-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.roadmap-stat-pill {
  background: white;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  gap: 6px;
}

.roadmap-stat-pill strong {
  color: #0284c7;
  font-weight: 800;
  font-size: 1.05rem;
}

.btn-toggle-free-mode {
  background: white;
  border: 1.5px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-toggle-free-mode:hover {
  background: #f8fafc;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-toggle-free-mode.active-free {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.roadmap-bar-track {
  width: 100%;
  height: 14px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}

.roadmap-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 50%, #8b5cf6 100%);
  border-radius: var(--radius-pill);
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.roadmap-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.roadmap-footer-info span:first-child {
  color: #0284c7;
  font-weight: 800;
}

/* Filter Tabs Bar */
.topics-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.btn-filter-tab {
  background: white;
  border: 1.5px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.btn-filter-tab:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-main);
}

.btn-filter-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Enhanced Topic Cards with Sequential Progress */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.topic-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  border: 1.5px solid var(--glass-border);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Topic Step Ribbon Header */
.topic-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.topic-step-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.topic-chapter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}

/* Completed Card State */
.topic-card.completed {
  border-color: #86efac;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.topic-card.completed .topic-step-badge {
  background: #dcfce7;
  color: #15803d;
}

/* Current / Up-next Card State (Active Pulse) */
.topic-card.current {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), var(--glass-shadow);
  animation: gentle-card-pulse 3s infinite alternate;
}

.topic-card.current .topic-step-badge {
  background: #e0f2fe;
  color: #0369a1;
}

@keyframes gentle-card-pulse {
  0% { transform: translateY(0); box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2); }
  100% { transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.4); }
}

/* Locked Card State */
.topic-card.locked {
  opacity: 0.65;
  filter: grayscale(0.65);
  cursor: not-allowed;
  background: #f8fafc;
}

.topic-card.locked .topic-step-badge {
  background: #f1f5f9;
  color: #64748b;
}

.topic-card.locked:hover {
  transform: none;
  box-shadow: var(--glass-shadow);
  border-color: var(--glass-border);
}

.topic-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.topic-icon {
  font-size: 2.2rem;
  background: white;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.topic-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.topic-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 18px;
}

.topic-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.topic-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}

.btn-start-topic {
  background: var(--color-primary);
  color: white;
  border: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.topic-card:hover .btn-start-topic {
  background: var(--color-primary-light);
  transform: scale(1.05);
}

/* =========================================================
   SCREEN 3: PRACTICE & QUIZ ARENA
   ========================================================= */
.practice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

.btn-back-dash {
  background: white;
  border: 1px solid #cbd5e1;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.practice-topic-info {
  text-align: center;
}

.practice-topic-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.practice-mode-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  background: #eef2ff;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.practice-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timer-badge {
  background: #fee2e2;
  color: #dc2626;
  font-weight: 800;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  animation: pulse-border 1.5s infinite;
}

.progress-pill {
  background: #f1f5f9;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* Question Box */
.question-container {
  max-width: 800px;
  margin: 0 auto;
}

.question-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--glass-shadow);
  border: 2px solid white;
  position: relative;
}

.question-badge {
  display: inline-block;
  background: #e0e7ff;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.question-body {
  margin-bottom: 28px;
}

.question-text {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #1e1b4b;
  line-height: 1.35;
  margin-bottom: 14px;
}

/* Question Visual Aid (Shape, Fractions or Dots) */
.question-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  min-height: 40px;
}

.visual-fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  padding: 0 4px;
}

.visual-fraction .numerator {
  border-bottom: 2px solid #1e293b;
  padding: 0 4px;
  font-weight: 800;
}

.visual-fraction .denominator {
  padding: 0 4px;
  font-weight: 800;
}

/* Fraction Pie/Bar visualization */
.fraction-bar-visual {
  display: flex;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  overflow: hidden;
  width: 240px;
  height: 40px;
}

.fraction-segment {
  flex: 1;
  border-right: 1px solid #3b82f6;
}

.fraction-segment:last-child {
  border-right: none;
}

.fraction-segment.filled {
  background: #60a5fa;
}

/* Shape Visualizer (Rectangle, Square, Clock, Roman) */
.shape-visual-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
}

/* Multiple Choice Interaction Grid */
.answer-interactive-area {
  margin-bottom: 24px;
}

.choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.btn-choice {
  background: white;
  border: 2.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-choice:hover:not(:disabled) {
  border-color: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.15);
  background: #f8faff;
}

.btn-choice.correct {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
  animation: correct-bounce 0.5s ease;
}

.btn-choice.wrong {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
  animation: shake 0.4s ease;
}

/* Number Pad & Direct Input Mode */
.numpad-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.numpad-display-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 380px;
}

.numpad-input-field {
  flex: 1;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  border: 2.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 10px;
  background: white;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-smooth);
}

.numpad-input-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.btn-numpad-submit {
  background: var(--color-success);
  border: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  padding: 0 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-numpad-submit:hover {
  background: #059669;
  transform: scale(1.04);
}

.numpad-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.btn-num {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  padding: 12px 0;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-num:hover {
  background: #eef2ff;
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
}

/* Instant Feedback Banner */
.feedback-banner {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feedback-banner.correct {
  background: #f0fdf4;
  border-color: #86efac;
}

.feedback-banner.wrong {
  background: #fef2f2;
  border-color: #fca5a5;
}

.feedback-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feedback-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.feedback-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.feedback-banner.correct .feedback-title {
  color: #166534;
}

.feedback-banner.wrong .feedback-title {
  color: #991b1b;
}

.feedback-desc {
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
}

.btn-next-question {
  background: var(--color-primary);
  color: white;
  border: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  transition: var(--transition-smooth);
}

.btn-next-question:hover {
  background: var(--color-primary-light);
  transform: scale(1.05);
}

/* Explanation / Hint Box */
.explanation-box {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-top: 18px;
  color: #78350f;
}

.exp-header {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #92400e;
}

.exp-content {
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-line;
}

/* Assistance Buttons */
.question-footer-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.btn-hint {
  background: transparent;
  border: 1.5px dashed #cbd5e1;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: #64748b;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-hint:hover {
  border-color: #f59e0b;
  color: #d97706;
  background: #fffbeb;
}

.score-live-tracker {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.score-live-tracker b {
  color: #d97706;
}

/* =========================================================
   SCREEN 4: SUMMARY & CELEBRATION
   ========================================================= */
.summary-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  max-width: 640px;
  margin: 20px auto;
  text-align: center;
  box-shadow: var(--card-shadow-hover);
  border: 2px solid white;
}

.summary-trophy-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.big-trophy {
  font-size: 5rem;
  line-height: 1;
  animation: gentle-bounce 2.5s ease-in-out infinite;
}

.summary-confetti-fx {
  position: absolute;
  top: -10px;
  right: -15px;
  font-size: 2rem;
}

.summary-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 6px;
}

.summary-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 28px;
}

.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.sum-stat-box {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.sum-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 4px;
}

.sum-val {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  display: block;
  line-height: 1.1;
}

.sum-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}

.unlocked-badge-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.badge-icon-wrap {
  font-size: 2.4rem;
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #92400e;
  letter-spacing: 0.5px;
}

.unlocked-badge-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #78350f;
  line-height: 1.1;
}

.unlocked-badge-card p {
  font-size: 0.85rem;
  font-weight: 600;
  color: #92400e;
}

.summary-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-action-primary, .btn-action-secondary {
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-action-primary {
  background: var(--color-primary);
  color: white;
  border: none;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
}

.btn-action-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-action-secondary {
  background: white;
  color: var(--text-main);
  border: 2px solid #cbd5e1;
}

.btn-action-secondary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

/* =========================================================
   SCREEN 5: BADGES & TROPHY ROOM
   ========================================================= */
.badges-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.badges-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e1b4b;
}

.badges-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.badge-item-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.badge-item-card.locked {
  opacity: 0.55;
  filter: grayscale(0.8);
}

.badge-item-card.unlocked {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.badge-icon-display {
  font-size: 3.2rem;
  margin-bottom: 12px;
}

.badge-item-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.badge-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.badge-status-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.badge-item-card.unlocked .badge-status-tag {
  background: #dcfce7;
  color: #15803d;
}

.badge-item-card.locked .badge-status-tag {
  background: #e2e8f0;
  color: #64748b;
}

/* =========================================================
   MODAL DIALOG (Rename Student)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-dialog {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.modal-dialog p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-input {
  width: 100%;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  outline: none;
  transition: var(--transition-smooth);
}

.modal-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

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

.btn-modal-cancel {
  background: #f1f5f9;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: #64748b;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.btn-modal-save {
  background: var(--color-primary);
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* Lock Indicator in Profile Chip */
.lock-indicator {
  font-size: 0.75rem;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

/* Floating Toast Notification for iPad */
.toast-notification {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

/* Parent Gate Modal Styling */
.parent-gate-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.parent-challenge-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.parent-error-text {
  color: #dc2626;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Parent Unlock Link in Footer */
.btn-parent-unlock {
  background: transparent;
  border: 1px dashed #cbd5e1;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-parent-unlock:hover {
  color: #475569;
  border-color: #94a3b8;
  background: #f1f5f9;
}

/* =========================================================
   FOOTER
   ========================================================= */
.app-footer {
  text-align: center;
  padding: 24px 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* =========================================================
   ANIMATIONS & KEYFRAMES
   ========================================================= */
@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes correct-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

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

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* =========================================================
   IPAD & TABLET DEDICATED OPTIMIZATIONS
   Tối ưu hóa chuyên sâu cho iPad (Portrait 768-834px & Landscape 1024-1194px)
   ========================================================= */

/* Cảm ứng mượt mà, phản hồi ngay lập tức cho màn hình iPad */
button, .btn-choice, .topic-card, .btn-mode-quick, .profile-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

button:active, .btn-choice:active, .btn-mode-quick:active, .topic-card:active {
  transform: scale(0.97) !important;
  transition: transform 0.08s ease;
}

/* 1. iPad Portrait Mode (<= 980px: iPad 10.2", iPad Air, iPad Mini, iPad Pro 11" dọc) */
@media (max-width: 980px) {
  #app-container {
    max-width: 920px;
    padding: 16px 20px;
  }

  .app-header {
    padding: 14px 20px;
    margin-bottom: 20px;
  }

  .brand-title {
    font-size: 1.55rem;
  }

  /* Dashboard Header: Thẻ thông tin bé chiếm trọn hàng, 3 nút tính năng dàn đều 3 cột ngay dưới */
  .dashboard-header {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .student-level-card {
    padding: 20px 22px;
    gap: 18px;
  }

  .level-avatar {
    width: 76px;
    height: 76px;
    font-size: 3.2rem;
  }

  .student-name {
    font-size: 1.65rem;
  }

  .dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .btn-mode-quick {
    padding: 16px 12px;
    gap: 10px;
  }

  .mode-icon {
    font-size: 2rem;
  }

  .mode-text strong {
    font-size: 0.96rem;
  }

  .mode-text span {
    font-size: 0.76rem;
  }

  /* Grid chủ đề toán học: 2 cột cực kỳ cân đối, vừa vặn trên iPad dọc, không bị tràn hay cắt chữ */
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .topic-card {
    padding: 22px 20px;
  }

  .topic-icon {
    width: 50px;
    height: 50px;
    font-size: 2.1rem;
  }

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

  .topic-desc {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .btn-start-topic {
    font-size: 0.88rem;
    padding: 9px 18px;
  }

  /* Màn hình làm bài tập trên iPad Portrait */
  .question-container {
    max-width: 760px;
  }

  .question-card {
    padding: 32px 26px;
  }

  .question-text {
    font-size: 1.95rem;
    line-height: 1.35;
    margin-bottom: 20px;
  }

  .choices-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .btn-choice {
    min-height: 80px;
    font-size: 1.5rem;
    padding: 18px 20px;
    border-radius: var(--radius-md);
  }

  /* Tổng kết điểm */
  .summary-card {
    max-width: 680px;
    padding: 40px 28px;
  }

  .summary-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

/* 2. iPad Landscape Mode (>= 981px: iPad để ngang, iPad Pro) */
@media (min-width: 981px) {
  #app-container {
    max-width: 1160px;
    padding: 20px 28px;
  }

  .dashboard-header {
    grid-template-columns: 1.15fr 1.35fr;
    gap: 20px;
    margin-bottom: 28px;
  }

  .student-level-card {
    padding: 22px;
  }

  .dash-quick-actions {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .btn-mode-quick {
    padding: 16px 14px;
    gap: 10px;
  }

  /* 3 Cột chủ đề rộng rãi, thoáng mắt khi cầm ngang iPad */
  .topics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .topic-card {
    padding: 24px 20px;
  }

  /* Bài tập khi iPad nằm ngang */
  .question-container {
    max-width: 840px;
  }

  .question-card {
    padding: 36px 32px;
  }

  .question-text {
    font-size: 2.1rem;
    line-height: 1.35;
  }

  .choices-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .btn-choice {
    min-height: 86px;
    font-size: 1.6rem;
    padding: 20px 24px;
  }

  .summary-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}
