/*
 * Sam Kido - Stylesheets Chi Tiết Cho Từng Trò Chơi Học Tập & Trí Não
 */

.game-card {
  background: white;
  border-radius: 32px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  border: 4px solid #EBF4FF;
  position: relative;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.game-badge {
  background: #FFF3CD;
  color: #856404;
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid #FFEEBA;
}

.voice-btn {
  background: #E8F7FF;
  color: #0077B6;
  border: 2px solid #90E0EF;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.voice-btn:hover {
  background: #0077B6;
  color: white;
  transform: scale(1.05);
}

.game-question {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: #2D3748;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.4;
}

.section-instruction {
  font-size: 1.1rem;
  color: #4A5568;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.5;
}

.game-hint {
  text-align: center;
  font-size: 0.95rem;
  color: #718096;
  font-weight: 600;
  margin-top: 15px;
}

/* ================= 1. TOÁN HỌC: ĐẾM HÌNH & TÍNH TOÁN ================= */
.counting-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: #FFFDF0;
  border-radius: 24px;
  border: 3px dashed #FFE066;
  margin-bottom: 25px;
  min-height: 160px;
  align-items: center;
}

.count-item {
  position: relative;
  background: white;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 2px solid #E2E8F0;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.count-item:hover {
  transform: scale(1.15) rotate(5deg);
  border-color: #FFB703;
}

.count-item.counted {
  background: #E8F5E9;
  border-color: #4CAF50;
  transform: scale(1.05);
}

.count-icon {
  font-size: 2.5rem;
}

.count-number-tag {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #FF5964;
  color: white;
  font-weight: 900;
  font-size: 0.9rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* SO SÁNH LỚN BÉ BẰNG */
.compare-arena {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin: 25px 0 35px;
  flex-wrap: wrap;
}

.compare-side {
  background: #F8FAFC;
  border: 3px solid #E2E8F0;
  border-radius: 24px;
  padding: 20px;
  min-width: 180px;
  text-align: center;
}

.compare-basket {
  min-height: 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 2rem;
  margin-bottom: 12px;
}

.compare-num-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #3182CE;
}

.compare-middle-slot {
  width: 75px;
  height: 75px;
  border-radius: 20px;
  background: #FFF3CD;
  border: 3px dashed #FFD13B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #D97706;
}

/* PHÉP TÍNH CỘNG TRỪ */
.math-visual-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 30px;
  flex-wrap: wrap;
}

.equation-part {
  background: #F0FFF4;
  border: 3px solid #9AE6B4;
  border-radius: 24px;
  padding: 16px 20px;
  text-align: center;
  min-width: 110px;
}

.part-icons {
  font-size: 1.6rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.part-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #276749;
}

.equation-sign {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #4A5568;
}

.question-part {
  background: #FFF5F5;
  border: 3px dashed #FEB2B2;
  color: #E53E3E;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
}

/* ĐOÀN TÀU SỐ HỌC */
.train-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 25px 0 35px;
  overflow-x: auto;
  padding: 15px 10px;
}

.train-engine {
  font-size: 3.5rem;
  animation: trainBob 1.5s ease-in-out infinite;
}

.train-cars {
  display: flex;
  gap: 8px;
}

.train-car {
  background: #3AA8F7;
  color: white;
  border: 4px solid #0077B6;
  border-radius: 18px;
  width: 78px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  position: relative;
  box-shadow: 0 6px 0 #005F8A;
}

.train-cargo-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 2px;
}

.train-car-val {
  font-size: 1.5rem;
  line-height: 1;
}

.train-car.missing-car {
  background: #FFF3CD;
  color: #D97706;
  border-color: #F59E0B;
  border-style: dashed;
  box-shadow: none;
}

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

/* PHƯƠNG ÁN LỰA CHỌN (OPTIONS GRID) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.game-opt-btn {
  background: white;
  border: 3px solid #CBD5E0;
  border-radius: 24px;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #2D3748;
  cursor: pointer;
  box-shadow: 0 6px 0 #A0AEC0;
  transition: all 0.15s ease;
}

.game-opt-btn:hover {
  transform: translateY(-4px);
  border-color: #3AA8F7;
  box-shadow: 0 10px 0 #3AA8F7;
}

.game-opt-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #A0AEC0;
}

.game-opt-btn.correct-answer {
  background: #48BB78 !important;
  color: white !important;
  border-color: #2F855A !important;
  box-shadow: 0 6px 0 #22543D !important;
}

.game-opt-btn.wrong-answer {
  background: #F56565 !important;
  color: white !important;
  border-color: #C53030 !important;
  box-shadow: 0 6px 0 #742A2A !important;
}

/* ================= 2. TIẾNG VIỆT ================= */
.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 16px;
  max-height: 560px;
  overflow-y: auto;
  padding: 14px 10px;
}

.letter-card {
  background: linear-gradient(145deg, #ffffff, #fbfcfe);
  border: 3px solid #E2E8F0;
  border-radius: 22px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04), 0 3px 0 #CBD5E0;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.letter-card:hover {
  transform: translateY(-7px) scale(1.06);
  border-color: #FF5E7E;
  box-shadow: 0 12px 24px rgba(255, 94, 126, 0.28), 0 4px 0 #FF5E7E;
}

.letter-card:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.letter-card.explored-done {
  border-color: #48BB78;
  background: linear-gradient(145deg, #F0FFF4, #FFFFFF);
}

.letter-card.explored-done::after {
  content: '⭐';
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.85rem;
}

.letter-main {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #FF4757;
  line-height: 1;
  letter-spacing: -0.5px;
}

.letter-pair-sub {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #4A5568;
}

.letter-explore-hint {
  font-size: 0.75rem;
  font-weight: 700;
  color: #718096;
  background: #EDF2F7;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ================= MODAL KHÁM PHÁ CHỮ CÁI (LETTER EXPLORER) ================= */
.letter-explorer-card {
  max-width: 480px;
  width: 92%;
  background: #FFFFFF;
  border: 5px solid #FFCCD5;
  border-radius: 36px;
  padding: 28px 24px 22px;
  box-shadow: 0 20px 45px rgba(255, 94, 126, 0.25), 0 8px 0 #FF8FA3;
  position: relative;
  text-align: center;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close-icon {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #FFF0F5;
  border: 2px solid #FFCCD5;
  color: #FF4757;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close-icon:hover {
  transform: scale(1.15) rotate(90deg);
  background: #FF4757;
  color: white;
}

.letter-modal-top {
  margin-bottom: 12px;
}

.letter-modal-glow {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 900;
  color: #FF3366;
  text-shadow: 0 4px 14px rgba(255, 51, 102, 0.3);
  line-height: 1;
  letter-spacing: 2px;
  animation: floatAnim 2.5s ease-in-out infinite;
}

.letter-pronounce-pill {
  display: inline-block;
  background: linear-gradient(135deg, #FFE3E8, #FFF0F5);
  border: 2px solid #FF8FA3;
  color: #D90429;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
  margin-top: 6px;
}

.letter-illustration-container {
  background: linear-gradient(180deg, #F8FAFC, #EDF2F7);
  border: 3px solid #E2E8F0;
  border-radius: 28px;
  padding: 20px 15px;
  margin: 14px 0 18px;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.03);
}

.letter-big-emoji {
  font-size: 5.8rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.12));
  animation: bounceSlow 2s infinite ease-in-out;
}

.letter-word-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #2B2D42;
  margin-bottom: 4px;
}

.letter-word-title .highlight-letter {
  color: #FF3366;
  background: #FFE3E8;
  padding: 0 4px;
  border-radius: 8px;
}

.letter-word-desc {
  font-size: 1.05rem;
  font-weight: 700;
  color: #4A5568;
  line-height: 1.4;
  margin: 0;
}

.letter-modal-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.btn-letter-act {
  border: none;
  padding: 12px 20px;
  border-radius: 22px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-letter-speak {
  background: linear-gradient(135deg, #3AA8F7, #0077B6);
  color: white;
  box-shadow: 0 5px 0 #005F8A;
}

.btn-letter-speak:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #005F8A;
}

.btn-letter-random {
  background: linear-gradient(135deg, #FFB703, #FB8500);
  color: white;
  box-shadow: 0 5px 0 #C46200;
}

.btn-letter-random:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #C46200;
}

.btn-letter-act:active {
  transform: translateY(3px);
  box-shadow: none;
}

.letter-modal-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.btn-nav-letter {
  background: #F7FAFC;
  border: 2px solid #CBD5E0;
  color: #4A5568;
  padding: 8px 18px;
  border-radius: 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-nav-letter:hover {
  background: #EDF2F7;
  border-color: #3AA8F7;
  color: #0077B6;
  transform: scale(1.04);
}

.letter-reward-badge {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #2F855A;
  min-height: 22px;
}

/* DẤU THANH */
.tones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tone-card {
  background: #FFF5F7;
  border: 3px solid #FFCCD5;
  border-radius: 24px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tone-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(255, 94, 126, 0.2);
}

.tone-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #D90429;
  font-weight: 800;
}

.tone-mark {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #718096;
  margin: 6px 0;
}

.tone-example {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #2B2D42;
  margin: 10px 0;
}

.tone-desc {
  font-size: 0.95rem;
  color: #4A5568;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.tone-play-btn {
  background: white;
  border: 2px solid #FF8FA3;
  color: #D90429;
  padding: 6px 14px;
  border-radius: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ĐOÁN TỪ & GHÉP CHỮ */
.quiz-visual-box {
  text-align: center;
  margin-bottom: 25px;
}

.quiz-big-icon {
  font-size: 5.5rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.1));
}

.spelling-header {
  text-align: center;
  margin-bottom: 25px;
}

.spell-icon {
  font-size: 4rem;
  margin-bottom: 8px;
}

.assembled-word-box {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 25px 0;
}

.letter-slot {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  background: #F7FAFC;
  border: 3px dashed #CBD5E0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #2D3748;
}

.letter-slot.filled {
  background: #FFF3CD;
  border-color: #FFB703;
  border-style: solid;
  color: #D97706;
  animation: popIn 0.25s ease-out;
}

.letters-pool {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.pool-letter-btn {
  background: white;
  border: 3px solid #3AA8F7;
  border-radius: 18px;
  width: 60px;
  height: 60px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #0077B6;
  cursor: pointer;
  box-shadow: 0 4px 0 #005F8A;
  transition: all 0.15s ease;
}

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

.pool-letter-btn.used {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
}

.spelling-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.btn-clear-spell {
  background: #FFF5F5;
  color: #E53E3E;
  border: 2px solid #FEB2B2;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

/* ================= BỘ CHỌN CẤP ĐỘ KHÓ 4 LEVEL TOÀN CỤC ================= */
.difficulty-level-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 18px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: #F8FAFC;
  border: 2px dashed #CBD5E0;
  border-radius: 24px;
  max-width: 680px;
}

.diff-bar-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #4A5568;
  margin-right: 4px;
}

.diff-pill-btn {
  background: white;
  border: 2px solid #E2E8F0;
  color: #4A5568;
  padding: 6px 14px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.diff-pill-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

.diff-pill-btn.active.diff-easy {
  background: linear-gradient(135deg, #10AC84, #1DD1A1);
  border-color: #10AC84;
  color: white;
  box-shadow: 0 4px 12px rgba(29, 209, 161, 0.4);
}

.diff-pill-btn.active.diff-medium {
  background: linear-gradient(135deg, #3AA8F7, #0077B6);
  border-color: #0077B6;
  color: white;
  box-shadow: 0 4px 12px rgba(58, 168, 247, 0.4);
}

.diff-pill-btn.active.diff-hard {
  background: linear-gradient(135deg, #FB8500, #FF5964);
  border-color: #FF5964;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 89, 100, 0.4);
}

.diff-pill-btn.active.diff-expert {
  background: linear-gradient(135deg, #8E44AD, #9B59B6);
  border-color: #8E44AD;
  color: white;
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.45);
  animation: pulse-expert 1.8s infinite;
}

@keyframes pulse-expert {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); box-shadow: 0 6px 18px rgba(155, 89, 182, 0.6); }
}

.diff-badge-star {
  background: rgba(255, 255, 255, 0.25);
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.78rem;
  margin-left: 2px;
}

/* ================= 3. ĐẤU TRƯỜNG TRÍ NÃO ================= */
/* LẬT THẺ TRÍ NHỚ (MEMORY MATCH) */
.diff-selector {
  display: flex;
  gap: 8px;
}

.diff-btn {
  background: #EDF2F7;
  border: 2px solid #CBD5E0;
  padding: 6px 14px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

.diff-btn.active {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
  color: white;
}

.memory-grid {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto 20px;
  perspective: 1000px;
}

.grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 300px; }
.grid-8 { grid-template-columns: repeat(4, 1fr); max-width: 580px; }
.grid-12 { grid-template-columns: repeat(4, 1fr); max-width: 640px; }
.grid-16 { grid-template-columns: repeat(4, 1fr); max-width: 700px; }
.grid-20 { grid-template-columns: repeat(5, 1fr); max-width: 780px; }
.grid-24 { grid-template-columns: repeat(6, 1fr); max-width: 860px; }

/* BỘ CHỌN CHẾ ĐỘ CHƠI: 1 BÉ VS ĐỐI KHÁNG BỐ MẸ */
.versus-mode-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.btn-mode-toggle {
  background: white;
  border: 2.5px solid #E2E8F0;
  border-radius: 50px;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-mode-toggle:hover {
  transform: translateY(-3px);
  border-color: #a55eea;
  color: #8854d0;
}

.btn-mode-toggle.active {
  background: linear-gradient(135deg, #a55eea, #8854d0);
  border-color: #8854d0;
  color: white;
  box-shadow: 0 6px 18px rgba(136, 84, 208, 0.35);
}

.versus-setup-box {
  background: linear-gradient(180deg, #F8FAFC, #F1F5F9);
  border: 3px solid #E2E8F0;
  border-radius: 24px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.opponent-picker-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.opp-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #334155;
}

.btn-opp-select {
  padding: 6px 16px;
  background: white;
  border: 2px solid #CBD5E1;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-opp-select:hover {
  border-color: #f43f5e;
  color: #e11d48;
}

.btn-opp-select.active {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border-color: #e11d48;
  color: white;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* BẢNG TỶ SỐ ĐỐI KHÁNG TRỰC TIẾP */
.versus-live-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  margin-bottom: 12px;
}

.player-score-card {
  flex: 1;
  max-width: 260px;
  background: white;
  border: 3px solid #E2E8F0;
  border-radius: 20px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.p1-card {
  border-color: #93c5fd;
  background: #f0fdf4;
}

.p2-card {
  border-color: #fbcfe8;
  background: #fff1f2;
}

.player-score-card.active-turn {
  transform: scale(1.06);
  box-shadow: 0 0 0 4px #fbbf24, 0 8px 20px rgba(251, 191, 36, 0.4);
  border-color: #f59e0b;
}

.player-avatar-box {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.score-avatar-emoji {
  font-size: 1.8rem;
}

.score-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-meta {
  display: flex;
  flex-direction: column;
}

.player-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
}

.player-pairs-count {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #d97706;
}

.turn-indicator-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: #f59e0b;
  color: white;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
  animation: bounceSlow 1.5s infinite;
}

.vs-center-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-badge {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  background: #e11d48;
  color: white;
  padding: 6px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.35);
}

.versus-turn-banner {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  background: white;
  padding: 8px 16px;
  border-radius: 50px;
  border: 2px solid #CBD5E1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.diff-pill-btn.diff-master {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

.diff-pill-btn.diff-master.active {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: white;
  border-color: #1D4ED8;
}

.diff-pill-btn.diff-champ {
  background: #FAF5FF;
  border-color: #E9D5FF;
  color: #7E22CE;
}

.diff-pill-btn.diff-champ.active {
  background: linear-gradient(135deg, #9333EA, #7E22CE);
  color: white;
  border-color: #7E22CE;
}

/* ĐẤU TRÍ TỐC ĐỘ 2 NGƯỜI (PVP REFLEX) */
.pvp-question-container {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 3px solid #FCD34D;
  border-radius: 24px;
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(252, 211, 77, 0.25);
}

.pvp-question-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #92400E;
  margin-bottom: 6px;
}

.pvp-question-visual {
  font-size: 1.8rem;
  letter-spacing: 4px;
  margin-top: 4px;
}

.pvp-battle-arena {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

.pvp-player-zone {
  background: white;
  border: 3px solid #E2E8F0;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.pvp-zone-left {
  border-color: #93C5FD;
  background: #F8FAFC;
}

.pvp-zone-right {
  border-color: #FBCFE8;
  background: #FFF1F2;
}

.pvp-zone-header {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: #1E293B;
  margin-bottom: 12px;
  text-align: center;
}

.pvp-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-pvp-ans {
  padding: 14px 10px;
  border-radius: 18px;
  border: 3px solid #E2E8F0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-ans-p1 {
  background: white;
  border-color: #60A5FA;
  color: #1D4ED8;
}

.btn-ans-p1:hover {
  background: #EFF6FF;
  transform: translateY(-3px) scale(1.03);
}

.btn-ans-p2 {
  background: white;
  border-color: #F472B6;
  color: #BE185D;
}

.btn-ans-p2:hover {
  background: #FDF2F8;
  transform: translateY(-3px) scale(1.03);
}

.btn-pvp-ans.pvp-correct {
  background: #22C55E !important;
  border-color: #16A34A !important;
  color: white !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 0 4px #86EFAC !important;
}

.btn-pvp-ans.pvp-wrong {
  background: #EF4444 !important;
  border-color: #DC2626 !important;
  color: white !important;
}

.pvp-freeze {
  opacity: 0.45;
  pointer-events: none;
}

/* CỜ CARO NHÍ TRÍ TUỆ (TIC-TAC-TOE KIDS) */
.caro-setup-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.caro-board-container {
  display: grid;
  gap: 8px;
  margin: 16px auto;
  background: #F8FAFC;
  border: 4px solid #CBD5E1;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.caro-board-container.size-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 320px;
}

.caro-board-container.size-5 {
  grid-template-columns: repeat(5, 1fr);
  max-width: 440px;
}

.caro-cell {
  aspect-ratio: 1;
  background: white;
  border: 3px solid #E2E8F0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.caro-cell:hover:not(.filled) {
  background: #F0FDF4;
  border-color: #86EFAC;
  transform: scale(1.05);
}

.caro-cell.filled {
  cursor: default;
}

.caro-cell-symbol {
  font-size: 2.2rem;
  animation: bounceSlow 0.4s ease;
}

.caro-board-container.size-5 .caro-cell-symbol {
  font-size: 1.6rem;
}

.caro-cell.winning-cell {
  background: #FEF08A !important;
  border-color: #EAB308 !important;
  box-shadow: 0 0 0 4px #FACC15, 0 6px 16px rgba(234, 179, 8, 0.4) !important;
  animation: pulse 1s infinite alternate;
}

.memory-card {
  height: 110px;
  cursor: pointer;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.memory-card.flipped .card-inner,
.memory-card.matched .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.card-front {
  background: linear-gradient(135deg, #9D65FF, #7B2CBF);
  color: white;
  font-size: 2.2rem;
  border: 3px solid #C77DFF;
}

.card-back {
  background: white;
  border: 3px solid #9D65FF;
  transform: rotateY(180deg);
}

.card-back .card-icon {
  font-size: 2.2rem;
}

.card-back .card-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #4A5568;
}

.memory-card.matched .card-back {
  background: #E8F5E9;
  border-color: #4CAF50;
  animation: pulse 0.6s ease;
}

/* TÌM BÓNG ĐỘNG VẬT */
.shadow-match-arena {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 650px;
  margin: 0 auto 20px;
}

.shadow-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.col-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #4A5568;
  margin-bottom: 6px;
}

.shadow-card {
  background: white;
  border: 3px solid #E2E8F0;
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.shadow-card:hover {
  transform: scale(1.03);
  border-color: #3AA8F7;
}

.shadow-card.selected-source {
  border-color: #FF5E7E;
  background: #FFF0F5;
  transform: scale(1.04);
  box-shadow: 0 0 0 4px rgba(255, 94, 126, 0.3);
}

.shadow-card.matched-done {
  background: #E8F5E9;
  border-color: #4CAF50;
  pointer-events: none;
  opacity: 0.85;
}

.animal-icon {
  font-size: 2.2rem;
}

.silhouette-icon {
  filter: brightness(0) opacity(0.85);
}

.animal-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #2D3748;
}

.wrong-shake {
  animation: shake 0.5s ease;
}

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

/* ODD ONE OUT & PATTERN QUEST */
.odd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  max-width: 650px;
  margin: 20px auto;
}

.odd-item-btn {
  background: white;
  border: 3px solid #E2E8F0;
  border-radius: 24px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.odd-item-btn:hover {
  transform: translateY(-6px);
  border-color: var(--primary-purple);
}

.odd-icon {
  font-size: 3rem;
}

.odd-label {
  font-weight: 800;
  font-size: 1rem;
  color: #4A5568;
}

.pattern-sequence-box {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.pattern-cell {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  background: #F7FAFC;
  border: 3px solid #CBD5E0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.target-pattern-cell {
  background: #FFF3CD;
  border-color: #F59E0B;
  border-style: dashed;
  color: #D97706;
  font-weight: 800;
}

/* ================= 4. ALBUM STICKER & CÀI ĐẶT ================= */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.sticker-item {
  background: white;
  border-radius: 24px;
  padding: 20px 14px;
  text-align: center;
  border: 3px solid #E2E8F0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.sticker-item.unlocked {
  border-color: #FFD13B;
  background: linear-gradient(180deg, #FFFDF0 0%, #FFFFFF 100%);
  cursor: pointer;
}

.sticker-item.unlocked:hover {
  transform: translateY(-6px) scale(1.04);
}

.sticker-item.locked {
  opacity: 0.6;
  background: #F8FAFC;
}

.sticker-badge {
  font-size: 3.5rem;
  margin-bottom: 8px;
}

.sticker-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #2D3748;
  margin-bottom: 4px;
}

.sticker-info {
  font-size: 0.8rem;
  color: #718096;
  font-weight: 700;
}

/* PHẢN HỒI (FEEDBACK MSG) */
.feedback-msg {
  display: none;
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 20px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  animation: popIn 0.3s ease-out;
}

.feedback-msg.show {
  display: block;
}

.feedback-msg.success {
  background: #DEF7EC;
  color: #03543F;
  border: 2px solid #84E1BC;
}

.feedback-msg.error {
  background: #FDE8E8;
  color: #9B1C1C;
  border: 2px solid #F8B4B4;
}

/* Parent dashboard stats */
.parent-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.p-stat-box {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  padding: 15px;
  text-align: center;
}

.p-stat-label {
  font-size: 0.9rem;
  color: #718096;
  font-weight: 700;
}

.p-stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #2B6CB0;
  font-weight: 800;
  margin-top: 4px;
}

.btn-danger {
  background: #FFF5F5;
  color: #E53E3E;
  border: 2px solid #FEB2B2;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 15px;
}

.btn-danger:hover {
  background: #E53E3E;
  color: white;
}

@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ================= 5. ĐOÁN KHỐI HÌNH (SHAPES & 3D BLOCKS) ================= */
.shape-showcase-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 15px auto 25px;
  padding: 20px;
  background: radial-gradient(circle at center, #FFFFFF 0%, #F1F5F9 100%);
  border: 3px dashed #CBD5E1;
  border-radius: 28px;
  max-width: 460px;
  min-height: 220px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.shape-svg-demo {
  width: 170px;
  height: 170px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
  transition: transform 0.3s ease;
}

.shape-showcase-box:hover .shape-svg-demo {
  transform: scale(1.05) rotate(2deg);
}

.real-object-icon-box {
  font-size: 6.5rem;
  line-height: 1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  animation: floatShape 3s ease-in-out infinite;
}

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

.complex-model-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.model-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.block-unit {
  font-size: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: white;
  border-radius: 16px;
  border: 2px solid #E2E8F0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.block-unit:hover {
  transform: scale(1.1);
}

.model-subtext {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #475569;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 14px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

/* ================= 6. TOÁN ĐỜI SỐNG (CLOCKS, MONEY & SCALES) ================= */
.clock-display-card,
.money-showcase-card,
.scale-showcase-card {
  background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
  border: 3px solid #BAE6FD;
  border-radius: 28px;
  padding: 24px 20px;
  margin: 15px auto 25px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12);
}

.analog-clock-svg {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.analog-clock-svg:hover {
  transform: scale(1.05);
}

.money-bill-badge {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  padding: 8px 24px;
  border-radius: 30px;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
  margin-bottom: 16px;
}

.shopping-item-box {
  background: white;
  border: 2px dashed #0284C7;
  border-radius: 20px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0369A1;
}

.shop-item-icon {
  font-size: 2.2rem;
}

.scale-showcase-card {
  flex-direction: row;
  gap: 20px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border-color: #FCD34D;
}

.scale-item {
  background: white;
  border: 2px solid #F59E0B;
  border-radius: 18px;
  padding: 10px 16px;
  font-size: 1.2rem;
  font-weight: 900;
  color: #92400E;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15);
}

.scale-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

/* ================= 7. LUYỆN VIẾT CHỮ Ô LY TIỂU HỌC ================= */
.writing-arena-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 32px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.12);
  border: 4px solid #DDD6FE;
  max-width: 860px;
  margin: 0 auto;
}

.writing-cat-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.writing-cat-btn {
  background: #F1F5F9;
  border: 2px solid #CBD5E1;
  color: #475569;
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.writing-cat-btn.active {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: white;
  border-color: #5B21B6;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

.writing-char-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px 14px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.char-scroll-btn {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 2px solid #E2E8F0;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.char-scroll-btn:hover {
  transform: translateY(-2px);
  border-color: #8B5CF6;
  color: #7C3AED;
}

.char-scroll-btn.active {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: white;
  border-color: #6D28D9;
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.35);
}

.char-cap {
  font-size: 0.65rem;
  opacity: 0.8;
}

.writing-workspace {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.canvas-oly-container {
  position: relative;
  width: 340px;
  height: 340px;
  background: #FFF;
  border: 4px solid #7C3AED;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.15);
  overflow: hidden;
}

#writing-canvas {
  position: relative;
  z-index: 2;
  cursor: crosshair;
  touch-action: none;
}

.oly-guide-char {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Patrick Hand', 'Comic Sans MS', cursive, sans-serif;
  font-size: 16rem;
  color: rgba(148, 163, 184, 0.22);
  pointer-events: none;
  z-index: 1;
  line-height: 1;
  user-select: none;
}

.writing-tools-panel {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.char-info-box {
  background: #FAF5FF;
  border: 2px solid #E9D5FF;
  border-radius: 20px;
  padding: 14px 18px;
}

.char-title-display {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #6B21A8;
  margin-bottom: 4px;
}

.char-hint-text {
  font-size: 0.95rem;
  color: #4B5563;
  line-height: 1.4;
  margin: 0;
}

.ink-color-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ink-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid white;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s;
}

.ink-btn.active {
  transform: scale(1.25);
  box-shadow: 0 0 0 3px #8B5CF6, 0 6px 14px rgba(0, 0, 0, 0.2);
}

.writing-action-btns {
  display: flex;
  gap: 10px;
}

.btn-tool-write {
  flex: 1;
  padding: 12px;
  border-radius: 18px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  background: #F1F5F9;
  color: #334155;
  box-shadow: 0 4px 0 #CBD5E1;
  transition: all 0.15s;
}

.btn-tool-write:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #CBD5E1;
}

.btn-finish-writing {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  box-shadow: 0 4px 0 #047857;
}

.btn-finish-writing:hover {
  box-shadow: 0 6px 0 #047857;
}

/* ================= 8. BÉ HỌC TIẾNG ANH (ENGLISH KIDS) ================= */
.english-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.english-word-card {
  background: white;
  border: 3px solid #BAE6FD;
  border-radius: 24px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.08);
}

.english-word-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #0284C7;
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.2);
}

.en-card-icon {
  font-size: 3.8rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.1));
}

.en-card-word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #0369A1;
  margin-bottom: 2px;
}

.en-card-ipa {
  font-size: 0.9rem;
  color: #64748B;
  font-style: italic;
  margin-bottom: 6px;
}

.en-card-meaning {
  background: #F0FDF4;
  color: #15803D;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid #BBF7D0;
  margin-bottom: 10px;
}

.btn-en-speak {
  border: none;
  background: linear-gradient(135deg, #38BDF8, #0284C7);
  color: white;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 3px 0 #0369A1;
}

/* English Quiz Minigame */
.en-quiz-play-box {
  margin: 15px auto 25px;
  text-align: center;
}

.btn-big-listen-en {
  background: linear-gradient(135deg, #0EA5E9, #0284C7);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
  transition: transform 0.15s;
}

.btn-big-listen-en:hover {
  transform: scale(1.05);
}

.en-quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}

.en-quiz-opt-card {
  background: white;
  border: 3px solid #E2E8F0;
  border-radius: 24px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.en-quiz-opt-card:hover {
  transform: translateY(-4px);
  border-color: #0EA5E9;
}

.en-opt-icon {
  font-size: 4rem;
  margin-bottom: 6px;
}

.en-opt-meaning {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #1E293B;
}

/* ================= 9. NHIỆM VỤ HÀNG NGÀY & STREAKS ================= */
.quests-modal-card {
  max-width: 540px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 4px solid #38BDF8;
}

.modal-header-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: white;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 16px;
  margin-bottom: 8px;
}

.streak-banner {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 2px solid #F59E0B;
  border-radius: 20px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #92400E;
}

.streak-flame {
  font-size: 1.6rem;
  animation: bounceSlow 1.5s infinite;
}

.quests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.quest-item-row {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.quest-item-row.quest-done {
  border-color: #86EFAC;
  background: #F0FDF4;
}

.quest-item-icon {
  font-size: 2rem;
}

.quest-item-details {
  flex: 1;
}

.quest-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 6px;
}

.quest-prog-bar-wrap {
  background: #E2E8F0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.quest-prog-fill {
  background: linear-gradient(90deg, #38BDF8, #0284C7);
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

.quest-item-row.quest-done .quest-prog-fill {
  background: linear-gradient(90deg, #4ADE80, #16A34A);
}

.quest-item-status {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #0284C7;
}

.quest-chest-box {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 3px dashed #3B82F6;
  border-radius: 22px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.chest-icon {
  font-size: 2.8rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.chest-info {
  flex: 1;
  text-align: left;
}

.chest-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #1E40AF;
}

.chest-progress-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #3B82F6;
}

.btn-claim-chest {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  padding: 10px 18px;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
  transition: all 0.15s;
}

.btn-claim-chest:disabled {
  background: #CBD5E1;
  color: #64748B;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-claim-chest.btn-claimed {
  background: #10B981;
  color: white;
}

/* ================= 10. BẢN ĐỒ PHIÊU LƯU 10 ĐẢO TRI THỨC (ADVENTURE MAP QUEST) ================= */
.overworld-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.overworld-header-card {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 4px solid #F59E0B;
  border-radius: 28px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
}

.overworld-title-box {
  text-align: left;
}

.overworld-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: #B45309;
  margin-bottom: 4px;
}

.overworld-subtitle {
  font-size: 1.02rem;
  font-weight: 700;
  color: #92400E;
}

.overworld-stats-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill-item {
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #78350F;
  border: 2px solid #FDE68A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Adventure Path Container & Deco */
.adventure-path-container {
  position: relative;
  background: linear-gradient(180deg, #F0FDF4 0%, #E0F2FE 50%, #FAF5FF 100%);
  border: 4px dashed #93C5FD;
  border-radius: 36px;
  padding: 40px 24px;
  box-shadow: 0 16px 36px rgba(147, 197, 253, 0.25);
  overflow: hidden;
}

.floating-deco {
  position: absolute;
  font-size: 2.5rem;
  pointer-events: none;
  opacity: 0.7;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.deco-1 { top: 5%; left: 3%; animation: floatSlow 3.2s infinite ease-in-out; }
.deco-2 { top: 25%; right: 4%; animation: floatSlow 2.8s infinite ease-in-out 0.5s; }
.deco-3 { top: 55%; left: 2%; animation: floatSlow 3.5s infinite ease-in-out 1s; }
.deco-4 { top: 75%; right: 3%; animation: floatSlow 2.5s infinite ease-in-out 0.8s; }
.deco-5 { bottom: 3%; left: 6%; animation: floatSlow 3s infinite ease-in-out 1.2s; }

/* ================= BẢN ĐỒ TRANH MINH HỌA TOÀN CẢNH (PANORAMIC MAP) ================= */
.panoramic-map-container {
  background: white;
  border: 4px solid #38BDF8;
  border-radius: 36px;
  padding: 16px;
  margin-bottom: 32px;
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.25);
  overflow: hidden;
}

.map-artwork-wrapper {
  position: relative;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
  background: #38BDF8;
}

.panoramic-map-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
  transition: transform 0.3s ease;
}

/* 10 Interactive Hotspot Pins */
.map-hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-hotspot-pin:hover {
  transform: translate(-50%, -60%) scale(1.15);
  z-index: 30;
}

.pin-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all 0.2s;
}

.pin-num {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.pin-icon {
  font-size: 1.15rem;
}

.pin-unlocked .pin-badge {
  animation: floatSlow 2.5s infinite ease-in-out;
}

.pin-locked {
  filter: grayscale(80%) opacity(75%);
  cursor: not-allowed;
}

.pin-current .pin-badge {
  box-shadow: 0 0 0 4px #F59E0B, 0 8px 20px rgba(245, 158, 11, 0.6);
  animation: pulse 1.2s infinite;
}

/* Avatar Bob on Pin */
.pin-avatar-bob {
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
  pointer-events: none;
  animation: bounceJump 0.8s infinite;
}

.pin-avatar-face {
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.pin-avatar-tag {
  background: #EF4444;
  color: white;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1.5px solid white;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Tooltip on Hover / Focus */
.pin-tooltip {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  color: white;
  padding: 10px 16px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 40;
}

.map-hotspot-pin:hover .pin-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.pin-tooltip-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: #FDE047;
}

.pin-tooltip-sub {
  font-size: 0.78rem;
  color: #E2E8F0;
  margin-bottom: 4px;
}

.pin-stars-row {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 4px;
}

.pin-click-action {
  font-size: 0.75rem;
  font-weight: 800;
  color: #38BDF8;
}

.pin-locked-action {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94A3B8;
}

/* Islands Deck Under Panoramic Map */
.islands-deck-section {
  margin-top: 10px;
}

.deck-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 18px;
  text-align: left;
}

/* Grid 10 Đảo */
.islands-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
}

.island-card {
  background: white;
  border: 4px solid var(--island-theme, #CBD5E1);
  border-radius: 28px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.island-card.island-unlocked {
  cursor: pointer;
}

.island-card.island-unlocked:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
}

.island-card.island-locked {
  background: #F8FAFC;
  opacity: 0.75;
  filter: grayscale(40%);
  cursor: not-allowed;
}

.island-card.island-current {
  box-shadow: 0 0 0 4px #F59E0B, 0 16px 36px rgba(245, 158, 11, 0.35);
  animation: pulseCard 2s infinite ease-in-out;
}

@keyframes pulseCard {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.avatar-hero-marker {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #EF4444;
  color: white;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 14px;
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
  white-space: nowrap;
  animation: bounceJump 1s infinite;
}

.island-badge {
  display: inline-block;
  background: #F1F5F9;
  color: #475569;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.island-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 26px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 3px solid white;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.island-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.island-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #1E293B;
  margin-bottom: 4px;
}

.island-desc {
  font-size: 0.88rem;
  color: #64748B;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 14px;
  min-height: 38px;
}

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

.island-stars-row {
  display: flex;
  gap: 2px;
}

.map-star {
  font-size: 1.15rem;
}

.star-gold {
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.5));
}

.star-empty {
  filter: grayscale(100%) opacity(30%);
}

.btn-play-island {
  background: linear-gradient(135deg, var(--island-theme, #3B82F6), #1D4ED8);
  color: white;
  border: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s;
}

.btn-play-island:hover {
  transform: scale(1.08);
}

.locked-hint {
  font-size: 0.8rem;
  color: #94A3B8;
  font-weight: 700;
  width: 100%;
  text-align: center;
}

/* ================= MÀN CHƠI: THẾ GIỚI BẢN ĐỒ SỐNG ĐỘNG (THEMATIC STAGE WORLDS) ================= */
.stage-world-container {
  border-radius: 36px;
  padding: 24px;
  max-width: 950px;
  margin: 0 auto 30px;
  position: relative;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

/* 10 BỐI CẢNH CẢNH NỀN THEME CHUẨN ĐỒ HỌA */
.theme-candy {
  background: radial-gradient(circle at top right, #FFF1F2 0%, #FFE4E6 40%, #FECDD3 100%), 
              repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.4) 20px, rgba(255, 255, 255, 0.4) 40px);
  border-color: #FB7185;
}

.theme-pets {
  background: radial-gradient(circle at top left, #F0FDF4 0%, #DCFCE7 50%, #BBF7D0 100%),
              radial-gradient(ellipse at bottom, rgba(34, 197, 94, 0.2), transparent 70%);
  border-color: #4ADE80;
}

.theme-farm {
  background: linear-gradient(180deg, #FEF9C3 0%, #FEF08A 45%, #FDE047 100%);
  border-color: #F59E0B;
}

.theme-cake {
  background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 50%, #FBCFE8 100%);
  border-color: #EC4899;
}

.theme-city {
  background: linear-gradient(180deg, #E0F2FE 0%, #BAE6FD 50%, #7DD3FC 100%);
  border-color: #38BDF8;
}

.theme-ocean {
  background: linear-gradient(180deg, #ECFEFF 0%, #CFFAFE 30%, #A5F3FC 70%, #67E8F9 100%);
  border-color: #06B6D4;
}

.theme-castle {
  background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 50%, #D8B4FE 100%);
  border-color: #A855F7;
}

.theme-dino {
  background: linear-gradient(180deg, #FFEDD5 0%, #FED7AA 40%, #FDBA74 100%);
  border-color: #EA580C;
}

.theme-space {
  background: linear-gradient(180deg, #0F172A 0%, #1E1B4B 50%, #312E81 100%);
  border-color: #6366F1;
  color: white;
}

.theme-temple {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 40%, #FCD34D 100%);
  border-color: #EAB308;
}

/* Stage World Top Bar */
.stage-world-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.theme-space .stage-world-topbar {
  background: rgba(30, 27, 75, 0.85);
  border-color: rgba(99, 102, 241, 0.5);
}

.btn-back-stage {
  background: white;
  color: #334155;
  border: 2px solid #CBD5E1;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-back-stage:hover {
  background: #F1F5F9;
  transform: scale(1.04);
}

.stage-world-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-world-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.stage-world-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
}

.theme-space .stage-world-name {
  color: #FFFFFF;
}

.stage-step-tag {
  background: #3B82F6;
  color: white;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 14px;
  margin-left: 6px;
}

/* Scenery Landscape & Animated Deco */
.stage-landscape {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  border: 3px dashed rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 24px 20px 28px;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}

.theme-space .stage-landscape {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(99, 102, 241, 0.4);
}

.scenery-theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #1E293B;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  padding: 8px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 5;
}

.theme-space .scenery-theme-badge {
  background: #312E81;
  color: #F8FAFC;
  border-color: #6366F1;
}

.landscape-deco-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.landscape-deco {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.45;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.deco-item-1 { top: 4%; right: 18%; animation: floatSlow 3.2s infinite ease-in-out; }
.deco-item-2 { top: 4%; right: 4%; animation: floatSlow 2.7s infinite ease-in-out 0.4s; }
.deco-item-3 { bottom: 4%; left: 4%; animation: floatSlow 3.5s infinite ease-in-out 0.8s; }
.deco-item-4 { bottom: 4%; right: 4%; animation: floatSlow 2.9s infinite ease-in-out 1.2s; }
.deco-item-5 { top: 38%; right: 6%; animation: floatSlow 3.1s infinite ease-in-out 0.6s; }

/* Stepping Stones Path Track (1 -> 10) */
.stepping-stones-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: relative;
  z-index: 3;
  overflow-x: auto;
  padding: 55px 16px 18px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.stepping-stones-track::before {
  content: '';
  position: absolute;
  top: 75%;
  left: 30px;
  right: 60px;
  height: 6px;
  border-top: 4px dashed rgba(255, 255, 255, 0.85);
  z-index: 0;
  pointer-events: none;
}

.stone-checkpoint {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  z-index: 2;
  flex-shrink: 0;
}

.avatar-walker-bob {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  animation: bounceJump 0.8s infinite;
}

.avatar-walker-inner {
  font-size: 2.4rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.walker-name {
  background: #EF4444;
  color: white;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1.5px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.hop-forward {
  animation: hopStep 0.6s ease;
}

@keyframes hopStep {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(20%) translateY(-24px) scale(1.2); }
  100% { transform: translateX(-50%) translateY(0); }
}

.stone-platform {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: white;
  border: 3px solid #CBD5E1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.stone-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.stone-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  color: #64748B;
  margin-top: 2px;
}

.stone-checkpoint.stone-done .stone-platform {
  background: #DCFCE7;
  border-color: #22C55E;
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.25);
}

.stone-checkpoint.stone-done .stone-num {
  color: #15803D;
}

.stone-checkpoint.stone-active .stone-platform {
  background: #FEF08A;
  border-color: #EAB308;
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.35), 0 8px 20px rgba(234, 179, 8, 0.3);
}

.stone-checkpoint.stone-active .stone-num {
  color: #A16207;
  font-weight: 900;
}

.stone-checkpoint.stone-pending .stone-platform {
  background: #F8FAFC;
  opacity: 0.65;
}

/* Destination Landmark */
.destination-landmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 10px;
}

.landmark-symbol {
  font-size: 3.5rem;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
  transition: transform 0.3s;
}

.landmark-pulsing .landmark-symbol {
  animation: pulse 1.2s infinite;
}

.landmark-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  color: #78350F;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
}

.theme-space .landmark-name {
  color: #E0E7FF;
  background: #312E81;
}

/* RPG Challenge Box (Over Scenery) */
.rpg-challenge-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 4px solid white;
  border-radius: 32px;
  padding: 26px 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.theme-space .rpg-challenge-box {
  background: rgba(30, 27, 75, 0.95);
  border-color: #6366F1;
}

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

.challenge-badge {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  padding: 5px 14px;
  border-radius: 14px;
}

.challenge-hint-tag {
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
}

.theme-space .challenge-hint-tag {
  color: #CBD5E1;
}

.challenge-body {
  margin-bottom: 20px;
}

.challenge-icon-wrap {
  font-size: 4.5rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
  display: inline-block;
}

.challenge-question {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.35;
  max-width: 700px;
  margin: 0 auto;
}

.theme-space .challenge-question {
  color: #F8FAFC;
}

.challenge-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 600px) {
  .challenge-options-grid {
    grid-template-columns: 1fr;
  }
}

.challenge-opt-btn {
  background: white;
  border: 3px solid #E2E8F0;
  border-radius: 22px;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 800;
  color: #1E293B;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-opt-btn:hover {
  border-color: #38BDF8;
  background: #F0F9FF;
  transform: translateY(-3px) scale(1.02);
}

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

.theme-space .challenge-opt-btn {
  background: #1E1B4B;
  border-color: #4338CA;
  color: #F8FAFC;
}

.theme-space .challenge-opt-btn:hover {
  background: #312E81;
  border-color: #818CF8;
}

/* Victory Screen */
.map-victory-card {
  text-align: center;
  padding: 40px 24px;
  max-width: 650px;
  margin: 0 auto;
}

.victory-icon-big {
  font-size: 6rem;
  margin-bottom: 8px;
  animation: bounceJump 0.8s infinite;
}

.victory-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  color: #B45309;
  margin-bottom: 6px;
}

.victory-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 20px;
}

.victory-stars-big {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.big-star {
  font-size: 3.5rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.big-star.star-glow {
  filter: drop-shadow(0 6px 14px rgba(245, 158, 11, 0.6));
  animation: pulse 1.5s infinite;
}

.big-star.star-dim {
  filter: grayscale(100%) opacity(25%);
}

.victory-reward-badge {
  background: #FFFBEB;
  border: 2px dashed #F59E0B;
  border-radius: 20px;
  padding: 12px 24px;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #92400E;
  margin-bottom: 28px;
}

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

/* ================= 10. VUA ĐỐ MẸO & ĐỐ VUI DÂN GIAN ================= */
.riddle-scroll-box {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 3px solid #F59E0B;
  border-radius: 24px;
  padding: 26px 20px;
  margin: 18px 0 16px;
  position: relative;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  text-align: center;
}

.riddle-icon-badge {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: white;
  border: 3px solid #F59E0B;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.riddle-poem-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.6;
  color: #78350F;
  margin-top: 6px;
}

/* ================= 11. MÊ CUNG TRI THỨC (SMART MAZE) ================= */
.maze-card-wrap {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.maze-board-container {
  display: grid;
  grid-template-columns: repeat(var(--maze-cols), 1fr);
  grid-template-rows: repeat(var(--maze-rows), 1fr);
  gap: 4px;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin: 16px auto;
  background: #E2E8F0;
  padding: 8px;
  border-radius: 20px;
  border: 4px solid #CBD5E1;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.maze-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.25rem;
  user-select: none;
  transition: all 0.15s ease;
}

.maze-wall {
  background: #475569;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.maze-path {
  background: #FFFFFF;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cell-player {
  background: #FEF08A;
  border: 2px solid #EAB308;
  animation: pulse 1.2s infinite;
}

.player-avatar-pop {
  font-size: 1.4rem;
  display: inline-block;
  animation: bounceJump 0.6s infinite;
}

.cell-goal {
  background: #DCFCE7;
  border: 2px solid #22C55E;
  font-size: 1.4rem;
}

.cell-star {
  animation: pulse 1.5s infinite;
}

/* Maze Runner Selector */
.maze-runner-selector-wrap {
  margin: 10px auto 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 8px 12px;
  max-width: 580px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.runner-selector-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 6px;
  text-align: center;
}

.runner-pills-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 2px;
}

.runner-pill-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #F8FAFC;
  border: 2px solid #CBD5E1;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.runner-pill-btn:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  transform: translateY(-2px);
}

.runner-pill-btn.active {
  background: #FEF08A;
  border-color: #EAB308;
  color: #854D0E;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.3);
  transform: scale(1.05);
}

.runner-pill-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.runner-pill-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #CBD5E1;
}

.maze-avatar-img {
  width: 85%;
  height: 85%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #EAB308;
  display: block;
  margin: auto;
}

.maze-avatar-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.maze-dpad-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.dpad-mid-row {
  display: flex;
  gap: 12px;
}

.dpad-btn {
  width: 58px;
  height: 54px;
  border-radius: 16px;
  background: white;
  border: 3px solid #E2E8F0;
  font-size: 1.6rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dpad-btn:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  border-color: #94A3B8;
}

.dpad-btn:active {
  transform: scale(0.92);
  background: #E2E8F0;
}

/* ================= 12. THỬ THÁCH ĐUA TỐC ĐỘ 60 GIÂY ================= */
.speed-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.speed-modal.show {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.speed-card {
  background: white;
  border-radius: 32px;
  padding: 32px 24px;
  width: 100%;
  max-width: 540px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  border: 4px solid #FF6B81;
}

.speed-logo-icon {
  font-size: 4rem;
  animation: pulse 1s infinite;
  display: inline-block;
}

.speed-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: #E11D48;
  margin: 4px 0 6px;
}

.speed-subtitle {
  font-size: 1rem;
  color: #64748B;
  margin-bottom: 16px;
}

.speed-stats-badge-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.speed-stat-chip {
  background: #FFF1F2;
  border: 2px solid #FECDD3;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #BE123C;
}

.speed-rules-box {
  background: #F8FAFC;
  border: 2px dashed #CBD5E1;
  border-radius: 20px;
  padding: 14px 16px;
  font-size: 0.92rem;
  color: #334155;
  text-align: left;
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-start-speed-now {
  background: linear-gradient(135deg, #FF4757 0%, #FF6B81 100%);
  color: white;
  border: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  padding: 14px 32px;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-start-speed-now:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 26px rgba(255, 71, 87, 0.5);
}

.btn-start-speed-now:active {
  transform: scale(0.96);
}

/* Speed HUD Arena */
.speed-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #FFF1F2;
  border: 2px solid #FECDD3;
  border-radius: 20px;
  padding: 10px 14px;
  margin-bottom: 20px;
}

.hud-item {
  font-size: 0.95rem;
  font-weight: 800;
  color: #881337;
  display: flex;
  align-items: center;
  gap: 6px;
}

.speed-timer-track {
  width: 90px;
  height: 10px;
  background: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}

.speed-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #F59E0B, #EF4444);
  border-radius: 10px;
  transition: width 1s linear;
}

.combo-pulse {
  animation: pulse 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.speed-q-box {
  background: #FFFBEB;
  border: 3px solid #FCD34D;
  border-radius: 24px;
  padding: 24px 18px;
}

.speed-q-icon {
  font-size: 3rem;
  margin-bottom: 6px;
}

.speed-q-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #78350F;
  margin-bottom: 20px;
}

.speed-opts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.speed-opt-btn {
  background: white;
  border: 3px solid #E2E8F0;
  border-radius: 18px;
  padding: 14px 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #1E293B;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.speed-opt-btn:hover {
  border-color: #38BDF8;
  transform: translateY(-2px);
  background: #F0F9FF;
}

.speed-opt-btn:active {
  transform: scale(0.95);
}

.speed-result-stars-box {
  background: #FFFBEB;
  border: 2px dashed #F59E0B;
  border-radius: 20px;
  padding: 14px 18px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #92400E;
  margin: 16px 0;
}

.speed-highscore-notice {
  font-size: 0.95rem;
  font-weight: 700;
  color: #047857;
  margin-bottom: 20px;
}

/* ================= 13. CHUYÊN MỤC BÉ NGOAN & LỄ PHÉP ================= */
.ethics-card-wrap {
  max-width: 860px;
  margin: 0 auto;
}

/* 5 Điều Bác Hồ Dạy */
.uncle-ho-tabs-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.uncle-ho-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.uncle-ho-tab-btn:hover {
  transform: translateY(-2px);
  border-color: #EF4444;
  background: #FFF1F2;
}

.uncle-ho-tab-btn.active {
  background: #EF4444;
  color: white;
  border-color: #DC2626;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
  transform: scale(1.05);
}

.uncle-ho-rule-card {
  background: white;
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 2px solid #F1F5F9;
  text-align: left;
}

.u-rule-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px dashed #E2E8F0;
  flex-wrap: wrap;
}

.u-rule-big-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.u-rule-main-titles {
  flex: 1;
}

.u-rule-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.u-rule-heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #1E293B;
  margin: 0;
}

.u-listen-btn {
  padding: 8px 16px;
  background: #FEE2E2;
  border: 2px solid #FCA5A5;
  color: #991B1B;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.u-listen-btn:hover {
  background: #FECACA;
  transform: translateY(-2px);
}

.u-rule-meaning-box, .u-rule-actions-box {
  margin-bottom: 16px;
  background: #F8FAFC;
  border-radius: 16px;
  padding: 14px 18px;
  border: 1px solid #E2E8F0;
}

.u-box-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #334155;
  margin: 0 0 8px 0;
}

.u-box-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.u-actions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.u-action-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
}

.u-rule-quote-box {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  border-radius: 0 16px 16px 0;
  padding: 12px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.u-quote-icon {
  font-size: 1.6rem;
}

.u-quote-text {
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 700;
  color: #78350F;
  margin: 0;
}

.u-mini-quiz-box {
  background: #EFF6FF;
  border: 2px solid #BFDBFE;
  border-radius: 20px;
  padding: 18px;
  margin-top: 16px;
}

.u-quiz-header {
  margin-bottom: 10px;
}

.u-quiz-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #1E40AF;
}

.u-quiz-q {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 14px;
}

.u-quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.u-quiz-opt-btn {
  background: white;
  border: 2px solid #DBEAFE;
  border-radius: 14px;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E3A8A;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.u-quiz-opt-btn:hover {
  background: #DBEAFE;
  transform: translateY(-2px);
  border-color: #3B82F6;
}

/* Ứng Xử Lễ Phép & Tình Huống */
.scenario-card-container {
  background: white;
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 2px solid #E2E8F0;
  text-align: left;
}

.scenario-top-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px dashed #E2E8F0;
}

.scenario-icon-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 2px solid #A7F3D0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.scenario-counter {
  font-size: 0.82rem;
  font-weight: 800;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scenario-main-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #1E293B;
  margin: 2px 0 0 0;
}

.scenario-story-box {
  background: #F8FAFC;
  border-left: 4px solid #10B981;
  border-radius: 0 16px 16px 0;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.scenario-story-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 8px 0;
}

.scenario-q-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F766E;
  margin: 0;
}

.scenario-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scenario-opt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scenario-opt-btn:hover {
  border-color: #10B981;
  background: #F0FDF4;
  transform: translateY(-2px);
}

.scenario-opt-letter {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #F1F5F9;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scenario-opt-text {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.4;
}

/* Thử Tài Đúng - Sai */
.tf-card-container {
  background: white;
  border-radius: 28px;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 3px solid #E0E7FF;
  max-width: 600px;
  margin: 0 auto;
}

.tf-progress-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #EEF2FF;
  color: #4F46E5;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.tf-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #F5F3FF;
  border: 3px solid #DDD6FE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 16px;
}

.tf-statement-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #1E293B;
  line-height: 1.5;
  margin-bottom: 12px;
}

.tf-question-prompt {
  font-size: 1.05rem;
  color: #64748B;
  margin-bottom: 24px;
}

.tf-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.tf-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.tf-btn:hover {
  transform: translateY(-4px) scale(1.03);
}

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

.tf-btn-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
}

.tf-btn-yes {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  border: none;
}

.tf-btn-no {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  border: none;
}

/* Vườn Hoa Việc Tốt */
.garden-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #FDF2F8, #FCE7F3);
  border: 2px solid #FBCFE8;
  border-radius: 24px;
  padding: 16px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  text-align: left;
}

.garden-summary-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.garden-trophy-icon {
  font-size: 2.5rem;
}

.garden-summary-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #9D174D;
  margin: 0 0 4px 0;
}

.garden-summary-sub {
  font-size: 0.92rem;
  color: #BE185D;
  margin: 0;
}

.garden-stars-badge {
  background: white;
  border: 2px solid #F472B6;
  border-radius: 16px;
  padding: 8px 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #DB2777;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.15);
}

.good-deeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.deed-card {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 22px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.deed-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.deed-card.done {
  border-color: var(--deed-color, #EC4899);
  background: #FFFDFE;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.18);
}

.deed-flower-art {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.deed-card.done .deed-flower-art {
  background: #FDF2F8;
  transform: scale(1.1);
}

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

.deed-flower-icon.blooming {
  animation: bounceJump 1.2s infinite;
}

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

.deed-item-icon {
  font-size: 1.4rem;
}

.deed-star-tag {
  background: #FEF3C7;
  color: #92400E;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 800;
}

.deed-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0 0 14px 0;
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-check-deed {
  width: 100%;
  padding: 10px 14px;
  background: #F1F5F9;
  border: 2px solid #CBD5E1;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-check-deed:hover {
  background: #E2E8F0;
  transform: translateY(-2px);
}

.btn-check-deed.btn-done {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}




