/* ============================================================
   MONTESSORI MÀU SẮC – style.css
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #ff6b6b;
  --yellow: #ffd93d;
  --green:  #6bcb77;
  --blue:   #4d96ff;
  --orange: #ff9f43;
  --purple: #a29bfe;

  --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  --card-bg: rgba(255,255,255,0.07);
  --card-border: rgba(255,255,255,0.15);
  --text-light: #f0f0f0;
  --text-muted: rgba(255,255,255,0.6);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Baloo 2', sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  color: var(--text-light);
  overflow-x: hidden;
  position: relative;
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loading-screen {
  position: fixed; inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loading-content { text-align: center; }
.loading-rainbow {
  font-size: 5rem;
  display: block;
  animation: spin-bounce 1.5s ease-in-out infinite;
  margin-bottom: 16px;
}
@keyframes spin-bounce {
  0%,100% { transform: scale(1) rotate(-5deg); }
  50%      { transform: scale(1.15) rotate(5deg); }
}
.loading-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.loading-bar-wrap {
  width: 240px; height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 12px;
}
.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff);
  background-size: 300% 100%;
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s ease;
  animation: bar-shift 2s linear infinite;
}
@keyframes bar-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.loading-hint {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
.stars-bg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.star {
  position: absolute; border-radius: 50%; background: #fff;
  animation: twinkle var(--dur, 3s) ease-in-out infinite; opacity: 0;
}
@keyframes twinkle {
  0%,100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: var(--op, 0.8); transform: scale(1); }
}

.bubbles-container {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.bubble {
  position: absolute; bottom: -120px; border-radius: 50%; opacity: 0.18;
  animation: float-up var(--dur, 8s) ease-in infinite;
  background: var(--color, #fff);
}
@keyframes float-up {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.18; }
  100% { transform: translateY(-110vh) rotate(720deg); opacity: 0; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: relative; z-index: 10;
  padding: 28px 24px 20px; text-align: center;
}
.header-inner {
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.header-rainbow { font-size: 3.2rem; animation: wiggle 2s ease-in-out infinite; }
.header-star    { font-size: 2.6rem; animation: spin-y 4s linear infinite; }

@keyframes wiggle  { 0%,100%{transform:rotate(-8deg)} 50%{transform:rotate(8deg)} }
@keyframes spin-y  { 0%{transform:rotateY(0deg)} 100%{transform:rotateY(360deg)} }

.site-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #a29bfe);
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: rainbow-shift 4s linear infinite; line-height: 1.2;
}
@keyframes rainbow-shift { 0%{background-position:0% 50%} 100%{background-position:300% 50%} }

.site-subtitle {
  color: var(--text-muted); font-size: 0.95rem;
  font-weight: 600; letter-spacing: 0.05em; margin-top: 4px;
}

.sound-toggle {
  position: fixed; top: 20px; right: 20px; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12); backdrop-filter: blur(12px);
  cursor: pointer; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.sound-toggle:hover { background: rgba(255,255,255,0.25); transform: scale(1.1); }

/* ============================================================
   NAV TABS
   ============================================================ */
.main-nav {
  position: relative; z-index: 10;
  display: flex; justify-content: center; gap: 10px;
  padding: 0 16px 24px; flex-wrap: wrap;
}
.nav-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-family: 'Nunito', sans-serif; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.nav-tab span { font-size: 1.2rem; }
.nav-tab:hover { background: rgba(255,255,255,0.18); color: #fff; transform: translateY(-2px); }
.nav-tab.active {
  background: linear-gradient(135deg, #ff6b6b, #ffd93d); color: #fff;
  border-color: transparent; box-shadow: 0 8px 24px rgba(255,107,107,0.4);
  transform: translateY(-3px);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.main-content {
  position: relative; z-index: 5;
  max-width: 1100px; margin: 0 auto; padding: 0 20px 60px;
}
.section { display: none; }
.section.active { display: block; animation: fade-in-up 0.5s ease; }
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section-header { text-align: center; margin-bottom: 36px; }
.section-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800; margin-bottom: 8px;
}
.section-desc { color: var(--text-muted); font-size: 1rem; font-weight: 600; }

/* ============================================================
   DICTIONARY GRID
   ============================================================ */
.dict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
.dict-card {
  position: relative; border-radius: var(--radius-lg);
  border: 2px solid var(--card-border); background: var(--card-bg);
  backdrop-filter: blur(16px); padding: 20px 14px 16px;
  text-align: center; cursor: pointer; transition: var(--transition); overflow: hidden;
}
.dict-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, var(--card-color, #ff6b6b) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.dict-card:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: var(--card-color, #fff);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 20px color-mix(in srgb, var(--card-color, #fff) 40%, transparent);
}
.dict-card:hover::before { opacity: 0.15; }
.dict-card:active { transform: scale(0.97); }

.dict-card-emoji {
  font-size: 3.5rem; display: block; margin-bottom: 10px;
  transition: transform 0.3s;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.dict-card:hover .dict-card-emoji { transform: scale(1.15) rotate(5deg); }

.dict-card-name {
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: 0.95rem; color: #fff; margin-bottom: 6px;
}
.dict-card-color-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700;
  background: var(--card-color, #ff6b6b); color: #fff; opacity: 0.9;
}
.dict-card-sound {
  position: absolute; top: 8px; right: 8px;
  font-size: 0.85rem; opacity: 0.5; transition: opacity 0.3s;
}
.dict-card:hover .dict-card-sound { opacity: 1; }
.dict-card.playing { animation: pulse-card 0.6s ease-in-out; }
@keyframes pulse-card {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.08); box-shadow: 0 0 30px var(--card-color, #ff6b6b); }
}

/* ============================================================
   COLOR SECTION
   ============================================================ */
.colors-nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 32px;
}
.color-nav-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 50px;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.1); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: var(--transition);
}
.color-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); }
.color-nav-btn:hover, .color-nav-btn.active {
  background: var(--c); border-color: transparent;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--c) 50%, transparent);
  transform: translateY(-2px);
}

.color-showcase { max-width: 680px; margin: 0 auto; }

.color-panel {
  border-radius: var(--radius-lg); padding: 28px 24px;
  border: 3px solid; backdrop-filter: blur(16px);
  text-align: center; transition: var(--transition);
  animation: fade-in-up 0.4s ease;
}

.color-panel-header {
  margin-bottom: 24px;
}
.color-panel-speak-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-radius: 50px; border: none;
  cursor: pointer; font-family: 'Baloo 2', cursive;
  font-size: 1.3rem; font-weight: 800; color: #fff;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.color-panel-speak-btn:hover { transform: scale(1.06); box-shadow: 0 10px 28px rgba(0,0,0,0.4); }
.color-panel-speak-btn:active { transform: scale(0.97); }

.color-panel-items { display: flex; flex-direction: column; gap: 12px; }

.color-item-card {
  background: rgba(255,255,255,0.1); border-radius: var(--radius-md);
  padding: 16px 18px; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(255,255,255,0.12);
}
.color-item-card:hover { background: rgba(255,255,255,0.2); transform: translateX(6px); }
.color-item-card:active { transform: scale(0.98); }
.color-item-card .item-emoji { font-size: 2.2rem; flex-shrink: 0; }
.color-item-card .item-name  { font-weight: 800; font-size: 1rem; text-align: left; }
.color-item-card .item-sound { margin-left: auto; opacity: 0.55; font-size: 1rem; flex-shrink: 0; }

/* ============================================================
   GAME SECTION
   ============================================================ */
.game-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 20px; flex-wrap: wrap;
}
.btn-primary {
  padding: 12px 28px; border-radius: 50px; border: none;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 28px rgba(255,107,107,0.5); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  padding: 12px 28px; border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem;
  cursor: pointer; transition: var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

.score-display {
  font-family: 'Baloo 2', cursive; font-size: 1.4rem; font-weight: 800;
  background: rgba(255,215,0,0.15); border: 2px solid rgba(255,215,0,0.4);
  padding: 8px 20px; border-radius: 50px;
}

.game-level-select {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap;
}
.level-btn {
  padding: 8px 18px; border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.88rem;
  cursor: pointer; transition: var(--transition);
}
.level-btn:hover  { background: rgba(255,255,255,0.15); color: #fff; }
.level-btn.active { background: rgba(255,255,255,0.25); color: #fff; border-color: rgba(255,255,255,0.5); }

.game-arena { display: flex; flex-direction: column; gap: 28px; }

.game-items-pool {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  min-height: 110px; padding: 20px;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}
.pool-label {
  width: 100%; text-align: center;
  color: rgba(255,255,255,0.35); font-size: 0.85rem; font-weight: 700;
  margin-bottom: 4px;
}

.drag-item {
  width: 90px; height: 90px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: grab; transition: var(--transition); user-select: none; gap: 4px;
}
.drag-item:hover { background: rgba(255,255,255,0.2); transform: scale(1.08); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.drag-item:active { cursor: grabbing; }
.drag-item.dragging { opacity: 0.35; transform: scale(0.9); }
.drag-item .di-emoji { font-size: 2.2rem; }
.drag-item .di-name  { font-size: 0.62rem; font-weight: 700; color: rgba(255,255,255,0.8); text-align: center; line-height: 1.2; }

.game-drop-zone {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 16px;
}
.drop-bucket {
  min-height: 140px; border-radius: var(--radius-lg); border: 3px dashed;
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 8px; gap: 8px; transition: all 0.25s;
}
.drop-bucket .bucket-title {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 0.9rem;
  padding: 5px 14px; border-radius: 20px; flex-shrink: 0; color: #fff;
}
.drop-bucket .bucket-items { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.drop-bucket.drag-over { transform: scale(1.04); filter: brightness(1.2); }
.drop-bucket.correct-flash { animation: flash-green 0.5s ease; }
.drop-bucket.wrong-flash   { animation: flash-red 0.5s ease; }
@keyframes flash-green { 0%,100%{background:transparent} 50%{background:rgba(107,203,119,0.3)} }
@keyframes flash-red   { 0%,100%{background:transparent} 50%{background:rgba(255,107,107,0.3)} }

.placed-item {
  font-size: 1.6rem; background: rgba(255,255,255,0.15);
  border-radius: 8px; padding: 4px 6px;
  animation: pop-in 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes pop-in {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.game-result {
  text-align: center; padding: 40px;
  border-radius: var(--radius-lg); background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15); backdrop-filter: blur(16px);
  animation: fade-in-up 0.5s ease;
}
.result-emoji { font-size: 5rem; animation: bounce 1s ease infinite; }
.result-msg   { font-family: 'Baloo 2', cursive; font-size: 1.8rem; font-weight: 800; margin: 16px 0 24px; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

/* ============================================================
   QUIZ SECTION
   ============================================================ */
.quiz-progress-bar-wrap {
  width: 100%; height: 12px; border-radius: 12px;
  background: rgba(255,255,255,0.1); margin-bottom: 12px; overflow: hidden;
}
.quiz-progress-bar {
  height: 100%; border-radius: 12px;
  background: linear-gradient(90deg, #6bcb77, #4d96ff);
  transition: width 0.5s ease;
}
.quiz-counter { text-align: center; font-weight: 700; color: var(--text-muted); margin-bottom: 28px; font-size: 0.95rem; }

.quiz-card {
  max-width: 520px; margin: 0 auto;
  background: var(--card-bg); border: 2px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 32px 24px;
  backdrop-filter: blur(16px); animation: fade-in-up 0.4s ease;
}
.quiz-question { text-align: center; margin-bottom: 28px; }
.quiz-question .q-emoji { font-size: 5.5rem; display: block; margin-bottom: 14px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4)); }
.quiz-question .q-text  { font-family: 'Baloo 2', cursive; font-size: 1.35rem; font-weight: 700; }
.quiz-question .q-sub   { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

.quiz-speak-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 8px 24px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #4d96ff, #a29bfe);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(77, 150, 255, 0.4);
  transition: var(--transition);
  animation: pulse-speak-btn 2s infinite;
}
.quiz-speak-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(77, 150, 255, 0.6);
}
.quiz-speak-btn:active {
  transform: scale(0.95);
}
@keyframes pulse-speak-btn {
  0%, 100% { box-shadow: 0 4px 15px rgba(77, 150, 255, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(77, 150, 255, 0.7); }
}

.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz-opt-btn {
  padding: 18px 14px; border-radius: var(--radius-md); border: 2px solid;
  background: rgba(255,255,255,0.06); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.quiz-opt-btn:hover:not(:disabled) { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.3); background: rgba(255,255,255,0.14); }
.quiz-opt-btn:disabled { cursor: default; }
.quiz-opt-btn.correct { background: rgba(107,203,119,0.25); border-color: #6bcb77; animation: bounce-once 0.5s ease; }
.quiz-opt-btn.wrong   { background: rgba(255,107,107,0.25); border-color: #ff6b6b; animation: shake 0.4s ease; }
@keyframes bounce-once { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%,75%{transform:translateX(-6px)} 50%{transform:translateX(6px)} }

.quiz-score-row { text-align: center; margin-top: 20px; font-size: 1rem; color: var(--text-muted); font-weight: 700; }
.quiz-score-row strong { color: #ffd93d; font-size: 1.3rem; }

.quiz-final {
  max-width: 400px; margin: 0 auto; text-align: center;
  padding: 40px 24px; background: var(--card-bg);
  border: 2px solid var(--card-border); border-radius: var(--radius-lg);
  backdrop-filter: blur(16px); animation: fade-in-up 0.5s ease;
}
.quiz-final-emoji { font-size: 5rem; margin-bottom: 12px; animation: bounce 1s ease infinite; }
.quiz-final-title { font-family: 'Baloo 2', cursive; font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.quiz-final-score { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 24px; }

/* ============================================================
   CELEBRATION OVERLAY
   ============================================================ */
.celebrate-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.celebrate-content {
  background: rgba(255,255,255,0.12); backdrop-filter: blur(20px);
  border: 2px solid rgba(255,255,255,0.3); border-radius: 32px;
  padding: 28px 48px; text-align: center;
  animation: celebrate-pop 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
.celebrate-emoji { font-size: 4.5rem; margin-bottom: 6px; }
.celebrate-msg {
  font-family: 'Baloo 2', cursive; font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(90deg, #ffd93d, #6bcb77);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
@keyframes celebrate-pop {
  0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
  80%  { transform: scale(1.1) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative; z-index: 5; text-align: center;
  padding: 24px; color: var(--text-muted); font-size: 0.9rem; font-weight: 600;
}

/* ============================================================
   TOUCH DRAG
   ============================================================ */
.drag-item.touch-dragging {
  position: fixed; z-index: 8000; pointer-events: none;
  opacity: 0.85; transform: scale(1.1);
  border: 3px solid rgba(255,255,255,0.6);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .dict-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .dict-card { padding: 14px 8px 12px; }
  .dict-card-emoji { font-size: 2.5rem; }
  .game-drop-zone { grid-template-columns: repeat(2, 1fr); }
  .quiz-options { grid-template-columns: 1fr; }
  .header-inner { gap: 8px; }
  .header-rainbow { font-size: 2.2rem; }
  .drag-item { width: 76px; height: 76px; }
  .drag-item .di-emoji { font-size: 1.9rem; }
}
@media (max-width: 400px) {
  .dict-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-tab { padding: 9px 12px; font-size: 0.8rem; }
  .nav-tab span { font-size: 1rem; }
}
