/* =========================================================
   COMPONENTS.CSS - CÁC THÀNH PHẦN TƯƠNG TÁC, MINIGAME & HIỆU ỨNG
   ========================================================= */

/* --- 3D BUTTONS & INTERACTIVE ELEMENTS --- */
.btn-primary-3d {
  background: linear-gradient(180deg, #ff6b6b 0%, #ee5253 100%);
  color: white;
  border: none;
  border-bottom: 4px solid #c0392b;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(238, 82, 83, 0.35);
  transition: all 0.15s ease;
  user-select: none;
}

.btn-primary-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(238, 82, 83, 0.45);
}

.btn-primary-3d:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
  box-shadow: 0 2px 5px rgba(238, 82, 83, 0.2);
}

.btn-secondary-3d {
  background: linear-gradient(180deg, #ffffff 0%, #f1f2f6 100%);
  color: #2f3542;
  border: 2px solid #ced6e0;
  border-bottom: 4px solid #a4b0be;
  padding: 12px 22px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary-3d:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.btn-secondary-3d:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 18px;
}

/* --- MASCOT SVG & MOODS --- */
.mascot-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.08));
}

.mascot-happy { animation: mascotHop 0.6s infinite alternate ease-in-out; }
.mascot-cheer { animation: mascotCheer 0.4s infinite alternate ease-in-out; }
.mascot-sad { animation: mascotDroop 1.2s infinite ease-in-out; }

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

@keyframes mascotCheer {
  0% { transform: rotate(-5deg) translateY(-5px); }
  100% { transform: rotate(5deg) translateY(-10px); }
}

@keyframes mascotDroop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(4px) scale(0.96); }
}

/* --- ADVENTURE QUEST STYLING --- */
.adventure-battle-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

.battle-arena {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #dff9fb 0%, #c7ecee 100%);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
}

.fighter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 38%;
}

.fighter-info {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.fighter-name {
  font-weight: 800;
  font-size: 16px;
  color: #2f3542;
  display: block;
  margin-bottom: 6px;
}

.hp-bar-outer {
  width: 100%;
  height: 16px;
  background: #dfe4ea;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hp-bar-inner {
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-hp { background: linear-gradient(90deg, #2ed573, #10ac84); }
.monster-hp { background: linear-gradient(90deg, #ff4757, #ff6b81); }

.hp-text {
  font-size: 12px;
  font-weight: 700;
  color: #57606f;
  margin-top: 4px;
  display: block;
}

.fighter-avatar {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.monster-emoji {
  font-size: 70px;
  animation: monsterFloat 2s infinite ease-in-out;
}

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

.vs-badge {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  color: #ff4757;
  text-shadow: 2px 2px 0 #fff;
}

.stage-tag {
  font-size: 13px;
  background: #2f3542;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 4px;
}

/* Floating damage numbers */
.floating-damage {
  position: absolute;
  top: -20px;
  font-size: 22px;
  font-weight: 900;
  animation: floatDmg 0.9s forwards ease-out;
  pointer-events: none;
  text-shadow: 2px 2px 0 white;
}

@keyframes floatDmg {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-40px) scale(1.3); }
}

.monster-hurt { animation: shakeEffect 0.4s ease; }
.hero-hurt { animation: shakeEffect 0.4s ease; }

@keyframes shakeEffect {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  75% { transform: translateX(-6px); }
}

/* Question Section */
.battle-question-box {
  text-align: center;
}

.question-header-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.badge-topic {
  background: #f1f2f6;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  color: #2f3542;
}

.btn-voice-speak {
  background: #70a1ff;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-voice-speak:hover { transform: scale(1.08); }

.battle-q-text {
  font-size: 22px;
  font-weight: 800;
  color: #2f3542;
  margin-bottom: 16px;
}

.quest-visual-grid {
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.quest-visual-large {
  font-size: 64px;
  margin-bottom: 16px;
}

.quest-visual-color {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  border: 4px solid white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.battle-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.btn-battle-option {
  background: white;
  border: 2px solid #e4e7eb;
  border-bottom: 4px solid #ced6e0;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 17px;
  color: #2f3542;
  transition: all 0.15s ease;
  text-align: left;
}

.btn-battle-option:hover {
  border-color: #70a1ff;
  transform: translateY(-2px);
}

.opt-key {
  width: 32px;
  height: 32px;
  background: #f1f2f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #57606f;
}

.btn-correct-anim {
  background: #2ed573 !important;
  color: white !important;
  border-color: #26af5f !important;
}

.btn-wrong-anim {
  background: #ff4757 !important;
  color: white !important;
  border-color: #d63031 !important;
}

.btn-highlight-correct {
  border: 2px solid #2ed573 !important;
  background: #e8fbf0 !important;
}

.btn-hint-mini {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #d48806;
  padding: 8px 16px;
  border-radius: 12px;
  font-family: var(--font-family);
  font-weight: 700;
  cursor: pointer;
}

.hint-speech-bubble {
  background: #fffbe6;
  border: 2px dashed #ffe58f;
  padding: 12px 18px;
  border-radius: 14px;
  margin-top: 12px;
  font-weight: 600;
  color: #874d00;
}

/* Victory & Defeat Cards */
.adventure-victory-card, .adventure-defeat-card {
  text-align: center;
  padding: 30px;
}

.victory-stars {
  font-size: 48px;
  margin: 16px 0;
}

.reward-box {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 30px 0;
  flex-wrap: wrap;
}

.reward-item {
  background: #fffbe6;
  border: 2px solid #ffe58f;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  color: #d48806;
}

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

/* --- BALLOON POP GAME STYLING --- */
.balloon-game-wrapper {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 20px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

.balloon-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f2f6;
  padding: 12px 20px;
  border-radius: 16px;
  margin-bottom: 16px;
  gap: 12px;
}

.hud-challenge-banner h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ff4757;
  text-align: center;
}

.balloon-sky {
  width: 100%;
  height: 480px;
  background: var(--sky-gradient);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.05);
}

.magic-balloon {
  position: absolute;
  bottom: -120px;
  width: 90px;
  height: 110px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f3542;
  font-weight: 800;
  font-size: 15px;
  user-select: none;
  box-shadow: inset -6px -6px 12px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.15);
  animation: floatUp linear forwards;
}

.magic-balloon:hover {
  transform: scale(1.08);
}

.balloon-shine {
  position: absolute;
  top: 15px;
  left: 18px;
  width: 22px;
  height: 14px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: rotate(-30deg);
}

.balloon-knot {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 6px;
  background: inherit;
  filter: brightness(0.85);
  border-radius: 2px;
}

.balloon-string {
  position: absolute;
  bottom: -35px;
  left: 50%;
  width: 2px;
  height: 30px;
  background: rgba(255, 255, 255, 0.8);
}

.balloon-label {
  text-align: center;
  padding: 4px 6px;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-620px) rotate(15deg); opacity: 1; }
}

.balloon-shake-wrong {
  animation: shakeBalloon 0.4s ease;
}

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

.pop-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: particleBurst 0.6s forwards ease-out;
  pointer-events: none;
}

@keyframes particleBurst {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* --- MEMORY GAME STYLING --- */
.memory-game-wrapper {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

.memory-header-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.memory-title h3 {
  font-size: 22px;
  font-weight: 800;
  color: #2f3542;
  text-align: center;
}

.memory-title p {
  font-size: 14px;
  color: #747d8c;
  text-align: center;
}

.memory-stat {
  background: #f1f2f6;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  perspective: 1000px;
}

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

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

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

.memory-card-front, .memory-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.memory-card-front {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
  color: white;
  border: 3px solid white;
}

.card-pattern {
  font-size: 32px;
  font-weight: 900;
}

.memory-card-back {
  background: #ffffff;
  color: #2f3542;
  border: 3px solid #6c5ce7;
  transform: rotateY(180deg);
  font-weight: 800;
  font-size: 15px;
}

.memory-card-outer.is-matched .memory-card-back {
  background: #2ed573;
  color: white;
  border-color: #26af5f;
  animation: matchPulse 0.5s ease;
}

@keyframes matchPulse {
  0% { transform: rotateY(180deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.1); }
  100% { transform: rotateY(180deg) scale(1); }
}

/* --- FRACTION & CLOCK TOOLS STYLING --- */
.tool-wrapper {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

.tool-header {
  text-align: center;
  margin-bottom: 20px;
}

.fraction-challenge-banner, .clock-challenge-banner {
  background: #fff2e2;
  border: 2px dashed #f39c12;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-sm-refresh {
  background: #f39c12;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.fraction-interactive-area, .clock-interactive-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.pizza-canvas-container, .clock-canvas-container {
  max-width: 320px;
  margin: 0 auto;
}

.pizza-svg, .bear-clock-svg {
  width: 100%;
  height: auto;
  cursor: pointer;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.1));
}

.slice-selector-bar {
  margin-bottom: 20px;
}

.slice-buttons {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-slice-num {
  background: #f1f2f6;
  border: 1px solid #ced6e0;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-slice-num.active {
  background: #ff4757;
  color: white;
  border-color: #ff4757;
}

.fraction-result-display {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f8f9fa;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 20px;
}

.fraction-number-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 32px;
  font-weight: 900;
  color: #ff4757;
}

.fraction-line {
  width: 40px;
  height: 4px;
  background: #2f3542;
  margin: 2px 0;
}

.digital-clock-display {
  background: #2f3542;
  color: #2ed573;
  font-family: monospace;
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  padding: 10px;
  border-radius: 14px;
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.btn-group-row {
  display: flex;
  gap: 8px;
  margin: 6px 0 16px 0;
  flex-wrap: wrap;
}

.btn-clock-adj {
  background: #e4e7eb;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-clock-adj:hover { background: #dcdde1; }

.tool-feedback {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
}

.feedback-correct { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.feedback-wrong { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* --- PRACTICE & SANDBOX STYLING --- */
.practice-config-card, .sandbox-quiz-card, .sandbox-result-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 28px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

.grade-pills {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.btn-grade-pill {
  background: #f1f2f6;
  border: 2px solid transparent;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-grade-pill.active {
  background: #ff4757;
  color: white;
}

.subject-cards-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.subject-radio-card {
  border: 2px solid #e4e7eb;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subject-radio-card input { display: none; }
.subject-radio-card.active {
  border-color: #ff4757;
  background: #fff5f5;
}

.subj-icon { font-size: 32px; }
.subj-name { font-weight: 800; font-size: 15px; }

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.custom-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid #e4e7eb;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 15px;
  margin-top: 6px;
}

.config-action-row {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Quiz Top Bar */
.quiz-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.progress-bar-track {
  width: 220px;
  height: 12px;
  background: #f1f2f6;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4757, #ff6b81);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.quiz-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-tag {
  background: #f1f2f6;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.quiz-question-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-quiz-option {
  background: white;
  border: 2px solid #e4e7eb;
  border-bottom: 4px solid #ced6e0;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 17px;
  text-align: left;
  transition: all 0.15s ease;
}

.btn-quiz-option:hover {
  border-color: #70a1ff;
  transform: translateY(-2px);
}

.opt-indicator {
  width: 32px;
  height: 32px;
  background: #f1f2f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.correct-choice { background: #2ed573 !important; color: white !important; }
.wrong-choice { background: #ff4757 !important; color: white !important; }
.correct-highlight { border-color: #2ed573 !important; background: #e8fbf0 !important; }

.quiz-solution-box {
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.solution-correct { background: #e8fbf0; color: #1e824c; }
.solution-wrong { background: #ffebee; color: #c0392b; }

.quiz-footer-bar {
  display: flex;
  gap: 12px;
}

.btn-skip-mini {
  background: #f1f2f6;
  border: 1px solid #ced6e0;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Result Breakdown */
.result-breakdown {
  margin: 24px 0;
  text-align: left;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.breakdown-item {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e4e7eb;
}

.item-correct { background: #f0fdf4; border-color: #bbf7d0; }
.item-wrong { background: #fef2f2; border-color: #fecaca; }

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active { display: flex; }

.modal-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 28px;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: #f1f2f6;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

/* Wardrobe items grid */
.wardrobe-grid, .trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.wardrobe-item-card, .trophy-item-card {
  border: 2px solid #e4e7eb;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wardrobe-item-card.equipped { border-color: #2ed573; background: #f0fdf4; }
.trophy-item-card.unlocked { border-color: #f1c40f; background: #fffbe6; }
.trophy-item-card.locked { opacity: 0.5; filter: grayscale(1); }

/* --- STAGE MAP & ADVENTURE NODES --- */
.adventure-map-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 28px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  text-align: center;
}

.map-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #2f3542;
  margin-bottom: 6px;
}

.map-header p {
  color: #747d8c;
  margin-bottom: 20px;
}

.world-tabs-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-world-tab {
  background: #f1f2f6;
  border: 2px solid transparent;
  padding: 10px 20px;
  border-radius: 14px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-world-tab.active {
  background: #ff4757;
  color: white;
  box-shadow: 0 6px 15px rgba(255, 71, 87, 0.35);
  transform: translateY(-2px);
}

.stages-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
  padding: 10px;
}

.stage-node-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.stage-node-box:hover {
  transform: translateY(-6px) scale(1.05);
}

.stage-circle {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, #feca57 0%, #ff9f43 100%);
  border: 4px solid white;
  box-shadow: 0 8px 18px rgba(254, 202, 87, 0.45);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stage-num {
  font-size: 24px;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stage-star {
  font-size: 10px;
  margin-top: -2px;
}

.stage-label {
  font-weight: 800;
  font-size: 14px;
  color: #2f3542;
  margin-top: 8px;
}

.map-footer-actions {
  display: flex;
  justify-content: center;
}

/* --- WARDROBE SHOP & MASCOT SELECTOR --- */
.mascot-select-card {
  border: 2px solid #e4e7eb;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.mascot-select-card:hover {
  border-color: #ff9f43;
  transform: translateY(-2px);
}

.mascot-select-card.active-mascot {
  border-color: #ff4757;
  background: #fff5f5;
}

.m-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 6px;
}

.btn-select-mascot {
  background: #f1f2f6;
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 8px;
  cursor: pointer;
}

.active-mascot .btn-select-mascot {
  background: #ff4757;
  color: white;
}

.acc-price {
  font-size: 13px;
  font-weight: 700;
  color: #d48806;
}

.btn-acc-action {
  border: none;
  padding: 6px 14px;
  border-radius: 10px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.15s ease;
}

.btn-buy { background: #feca57; color: #2f3542; }
.btn-equip { background: #2ed573; color: white; }

.badge-status-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  margin-top: 4px;
  background: #f1f2f6;
}

.trophy-item-card.unlocked .badge-status-tag {
  background: #f1c40f;
  color: white;
}

/* --- GLOBAL TOAST NOTIFICATION --- */
.global-toast-card {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: #2f3542;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Animations */
.bounce-in {
  /* animation removed to prevent flashing */
}

@keyframes bounceIn {
  /* disabled */
}

/* --- CODE ROBOT ADVENTURE STYLING --- */
.code-robot-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 28px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

.robot-header {
  text-align: center;
  margin-bottom: 20px;
}

.robot-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #2f3542;
}

.code-robot-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
}

.grid-arena-wrapper {
  background: #f1f2f6;
  padding: 16px;
  border-radius: 20px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
}

.robot-grid-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.grid-cell {
  background: white;
  border-radius: 12px;
  border: 2px solid #e4e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
}

.cell-obstacle { background: #fbecec; border-color: #fab1a0; }
.cell-target { background: #e8fbf0; border-color: #2ed573; }

.robot-token {
  font-size: 36px;
  transition: transform 0.3s ease;
  user-select: none;
}

.target-flag { font-size: 32px; animation: flagWave 1.2s infinite ease-in-out; }
.grid-star { font-size: 30px; animation: starPulse 1.5s infinite alternate ease-in-out; }

@keyframes starPulse {
  0% { transform: scale(0.9); }
  100% { transform: scale(1.15); }
}

/* Control Panel */
.code-control-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.command-buttons-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cmd-block {
  background: #ffffff;
  border: 2px solid #ced6e0;
  border-bottom: 4px solid #a4b0be;
  padding: 10px 16px;
  border-radius: 14px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-cmd-forward { border-color: #74b9ff; border-bottom-color: #0984e3; color: #0984e3; }
.btn-cmd-left { border-color: #a29bfe; border-bottom-color: #6c5ce7; color: #6c5ce7; }
.btn-cmd-right { border-color: #fd79a8; border-bottom-color: #e84393; color: #e84393; }

.btn-cmd-block:hover { transform: translateY(-2px); }
.btn-cmd-block:active { transform: translateY(2px); border-bottom-width: 2px; }

.program-sequence-box {
  background: #f8f9fa;
  border: 2px dashed #dfe4ea;
  border-radius: 16px;
  padding: 14px;
}

.seq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.btn-clear-queue {
  background: #ff7675;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.command-queue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  align-items: center;
}

.empty-hint {
  color: #a4b0be;
  font-size: 14px;
  font-style: italic;
}

.cmd-pill {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  /* animation removed */
}

.pill-forward { background: #0984e3; }
.pill-left { background: #6c5ce7; }
.pill-right { background: #e84393; }

.code-run-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-run-code {
  background: linear-gradient(180deg, #2ed573 0%, #10ac84 100%) !important;
  border-bottom-color: #0d8a6a !important;
}

/* --- CHESS ACADEMY & 8x8 BOARD STYLING --- */
.chess-academy-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

.chess-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-chess-tab {
  background: #f1f2f6;
  border: 2px solid transparent;
  padding: 10px 18px;
  border-radius: 14px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-chess-tab.active {
  background: #2f3542;
  color: white;
  box-shadow: 0 6px 15px rgba(47, 53, 66, 0.35);
  transform: translateY(-2px);
}

.chess-explorer-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

.chessboard-canvas-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chessboard-8x8 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 6px solid #2f3542;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.chess-square {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  font-size: 32px;
}

.sq-light { background: #f0d9b5; }
.sq-dark { background: #b58863; }

.legal-move-dot {
  width: 14px;
  height: 14px;
  background: #2ed573;
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 8px rgba(46, 213, 115, 0.8);
  animation: pulseDot 1s infinite alternate;
}

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

.board-hint-sub {
  font-size: 13px;
  font-weight: 700;
  color: #2ed573;
  margin-top: 10px;
  text-align: center;
}

/* Piece Selector & Info Card */
.piece-selector-row {
  display: flex;
  gap: 8px;
  margin: 12px 0 20px 0;
  flex-wrap: wrap;
}

.btn-piece-select {
  background: #f1f2f6;
  border: 2px solid #dfe4ea;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-piece-select.active {
  background: #2f3542;
  color: white;
  border-color: #2f3542;
}

.p-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.p-big-icon {
  font-size: 48px;
}

.p-points-badge {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #d48806;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  display: inline-block;
  margin-top: 4px;
}

.p-rule-box {
  background: #f8f9fa;
  border-left: 4px solid #2ed573;
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
  margin-top: 12px;
}

/* Chess Guide Views */
.chess-guide-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guide-section-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e4e7eb;
}

.guide-section-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #2f3542;
  margin-bottom: 8px;
}

.guide-callout {
  background: #e8fbf0;
  border: 1px solid #bbf7d0;
  color: #1e824c;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 14px;
}

.special-moves-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.special-move-item {
  background: white;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e4e7eb;
}

.special-move-item h4 {
  font-size: 15px;
  font-weight: 800;
  color: #ff4757;
  margin-bottom: 6px;
}

.guide-list {
  padding-left: 20px;
  margin-top: 8px;
}

.guide-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Card Themes on Lobby */
.card-informatics { border-top: 6px solid #00cec9; }
.card-informatics .card-btn-launch { background: #00cec9; color: white; }
.card-chess { border-top: 6px solid #2d3436; }
.card-chess .card-btn-launch { background: #2d3436; color: white; }

/* --- 50-LEVEL ROBOT ZONE THEMES & LEVEL SELECTOR --- */
.theme-grass .robot-grid-board { background: #e8fbf0; }
.theme-desert .robot-grid-board { background: #fff2e2; }
.theme-ice .robot-grid-board { background: #e3f2fd; }
.theme-volcano .robot-grid-board { background: #ffebee; }
.theme-space .robot-grid-board { background: #f3e5f5; }

.robot-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: #f1f2f6;
  padding: 12px 20px;
  border-radius: 16px;
}

.btn-level-picker {
  background: #ff4757;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.world-tag {
  font-weight: 700;
  font-size: 14px;
  color: #57606f;
  margin-left: 10px;
}

.robot-level-select-view {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 24px;
}

.level-select-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.zone-section-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid #e4e7eb;
}

.zone-section-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #2f3542;
  margin-bottom: 14px;
}

.levels-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px;
}

.btn-lvl-node {
  height: 64px;
  border-radius: 14px;
  border: 2px solid #ced6e0;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-lvl-node.unlocked {
  border-color: #2ed573;
  color: #2f3542;
}

.btn-lvl-node.unlocked:hover {
  transform: scale(1.08);
  border-color: #10ac84;
}

.btn-lvl-node.active {
  background: #ff4757;
  color: white;
  border-color: #d63031;
}

.btn-lvl-node.locked {
  opacity: 0.5;
  background: #dfe4ea;
  cursor: not-allowed;
}

.lvl-number { font-size: 16px; font-weight: 900; }
.lvl-stars { font-size: 10px; margin-top: 2px; }

/* Grid Dynamic Sizes */
.grid-size-6 { grid-template-columns: repeat(6, 1fr) !important; grid-template-rows: repeat(6, 1fr) !important; }
.grid-size-7 { grid-template-columns: repeat(7, 1fr) !important; grid-template-rows: repeat(7, 1fr) !important; }

/* --- CHESS PLAY AI STYLING --- */
.chess-play-ai-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  align-items: start;
}

.ai-board-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f2f6;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid #e4e7eb;
}

.p-info-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.p-avatar-icon { font-size: 28px; }

.turn-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  background: #dfe4ea;
  display: inline-block;
  margin-top: 2px;
}

.turn-active { background: #2ed573; color: white; animation: pulseTurn 1s infinite alternate; }

@keyframes pulseTurn {
  0% { transform: scale(0.96); }
  100% { transform: scale(1.04); }
}

.captured-row {
  display: flex;
  gap: 2px;
  font-size: 18px;
}

.chess-live-board {
  border: 8px solid #2f3542;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.chess-live-piece {
  font-size: 38px;
  cursor: pointer;
  transition: transform 0.15s ease;
  user-select: none;
}

.piece-white { color: #ffffff; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.piece-black { color: #1e272e; filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.4)); }

.sq-selected {
  background: #ffeaa7 !important;
}

.sq-legal-target {
  cursor: pointer;
}

.live-move-dot {
  width: 16px;
  height: 16px;
  background: rgba(46, 213, 115, 0.85);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 10px rgba(46, 213, 115, 0.9);
}

/* AI Sidebar */
.ai-controls-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-speech-card {
  background: #fffbe6;
  border: 2px dashed #ffe58f;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 700;
  color: #874d00;
}

.ai-speech-card h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.diff-btn-group {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-diff-pill {
  background: #f1f2f6;
  border: 2px solid transparent;
  padding: 6px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-diff-pill.active {
  background: #2f3542;
  color: white;
}

.chess-move-log-box {
  background: #f8f9fa;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #e4e7eb;
}

.move-log-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 100px;
  overflow-y: auto;
  margin-top: 8px;
}

.log-item {
  background: white;
  border: 1px solid #dfe4ea;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.ai-action-buttons {
  display: flex;
  gap: 10px;
}

/* --- TYPING & MOUSE GAMES STYLING --- */
.typing-game-card, .mouse-game-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

.typing-top-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.mode-pills-row, .mouse-nav-drills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-typing-mode, .btn-drill-tab {
  background: #f1f2f6;
  border: 2px solid transparent;
  padding: 8px 14px;
  border-radius: 12px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn-typing-mode.active, .btn-drill-tab.active {
  background: #00cec9;
  color: white;
}

.typing-falling-arena {
  width: 100%;
  height: 340px;
  background: linear-gradient(180deg, #74b9ff 0%, #dfe6e9 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.08);
}

.falling-letter-bubble {
  position: absolute;
  top: -60px;
  background: white;
  border: 3px solid #0984e3;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #0984e3;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  animation: letterFall linear forwards;
}

@keyframes letterFall {
  0% { transform: translateY(0); }
  100% { transform: translateY(420px); }
}

.letter-pop-anim {
  animation: letterPop 0.25s forwards ease-out;
}

@keyframes letterPop {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.virtual-keyboard-box {
  margin-top: 20px;
  text-align: center;
}

.vk-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.vk-key {
  width: 44px;
  height: 44px;
  background: white;
  border: 2px solid #dfe4ea;
  border-bottom: 4px solid #b2bec3;
  border-radius: 10px;
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.vk-key:hover { border-color: #00cec9; transform: translateY(-2px); }
.vk-key:active { transform: translateY(2px); border-bottom-width: 2px; }

/* Mouse Master Arena Styles */
.drill-box { padding: 10px 0; }

.mouse-click-arena {
  width: 100%;
  height: 360px;
  background: #f8f9fa;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 2px dashed #dfe4ea;
}

.bouncing-fruit-target {
  position: absolute;
  font-size: 48px;
  cursor: pointer;
  animation: fruitBounce 2s infinite alternate ease-in-out;
  user-select: none;
}

@keyframes fruitBounce {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -30px) scale(1.1); }
}

.giant-egg {
  width: 180px;
  height: 220px;
  background: #ffeaa7;
  border: 6px solid #fdcb6e;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.giant-egg:hover { transform: scale(1.05) rotate(3deg); }
.egg-icon { font-size: 60px; }
.egg-label { font-weight: 800; font-size: 14px; color: #d35400; margin-top: 8px; }

.drag-drop-arena {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.draggable-items-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.drag-item-card {
  background: white;
  border: 2px solid #74b9ff;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 800;
  cursor: grab;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.drop-zones-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.drop-target-zone {
  background: #f1f2f6;
  border: 3px dashed #b2bec3;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  min-height: 160px;
}

.zone-fruit { border-color: #ff7675; }
.zone-school { border-color: #0984e3; }
.zone-icon { font-size: 40px; display: block; margin-bottom: 6px; }

.scroll-sea-wrapper {
  height: 380px;
  overflow-y: scroll;
  border-radius: 20px;
  border: 3px solid #0984e3;
}

.sea-depth {
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
}

.depth-top { background: #74b9ff; }
.depth-mid { background: #0984e3; }
.depth-deep { background: #1e3799; }
.depth-bottom { background: #0c2461; height: 300px; text-align: center; }

@media (max-width: 768px) {
  .chess-play-ai-layout { grid-template-columns: 1fr; }
  .drop-zones-row { grid-template-columns: 1fr; }
  .code-robot-layout { grid-template-columns: 1fr; }
}


