/* CSS Styles for Color Learning Game */
:root {
  --primary: #4F46E5;
  --primary-light: #6366F1;
  --primary-dark: #4338CA;
  --accent: #F59E0B;
  --accent-light: #FDE68A;
  --bg-gradient: linear-gradient(135deg, #E0F2FE 0%, #EDE9FE 50%, #FCE7F3 100%);
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.18);
  --text-main: #1E293B;
  --text-muted: #64748B;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-family: 'Fredoka', 'Quicksand', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

/* Background floating decorative elements */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  filter: blur(2px);
  animation: floatCloud linear infinite;
}

.cloud-1 {
  width: 160px;
  height: 60px;
  top: 8%;
  left: -180px;
  animation-duration: 45s;
}

.cloud-2 {
  width: 220px;
  height: 80px;
  top: 25%;
  left: -240px;
  animation-duration: 65s;
  animation-delay: 15s;
}

.cloud-3 {
  width: 140px;
  height: 50px;
  top: 70%;
  left: -150px;
  animation-duration: 50s;
  animation-delay: 8s;
}

@keyframes floatCloud {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 350px)); }
}

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

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

.logo-icon {
  font-size: 2.2rem;
  animation: wiggle 3s infinite ease-in-out;
  display: inline-block;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-10deg) scale(1.05); }
  40% { transform: rotate(10deg) scale(1.05); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(6deg); }
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #EF4444, #F59E0B, #10B981, #3B82F6, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  color: #B45309;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: inset 0 2px 4px rgba(245, 158, 11, 0.2);
  border: 2px solid #FCD34D;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-badge.bounce {
  animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.control-btn {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.control-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.control-btn:active {
  transform: translateY(1px);
}

.control-btn.active {
  background: #EEF2FF;
  border-color: var(--primary);
  color: var(--primary);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 18px;
  border: none;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.tab-btn span.tab-icon {
  font-size: 1.3rem;
}

.tab-btn:hover {
  transform: translateY(-2px);
  color: var(--text-main);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.35);
  transform: translateY(-2px);
}

/* Mascot Banner / Speech bubble */
.mascot-banner {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  border-left: 6px solid var(--accent);
  position: relative;
}

.mascot-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #FEF3C7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mascot-avatar:hover {
  transform: scale(1.1) rotate(8deg);
}

.mascot-dialogue {
  flex: 1;
}

.mascot-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.mascot-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.mascot-replay-btn {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mascot-replay-btn:hover {
  background: #E2E8F0;
  transform: scale(1.05);
}

/* Views Container */
.game-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.game-view.active {
  display: block;
}

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

/* ========================================= */
/* MODE 1: BALLOONS POP                      */
/* ========================================= */
.balloon-arena-wrapper {
  background: linear-gradient(180deg, #BAE6FD 0%, #E0F2FE 70%, #BBF7D0 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  border: 4px solid white;
}

.balloon-hud {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.balloon-target-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

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

.target-color-name {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sound-repeat-btn {
  background: #EEF2FF;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.sound-repeat-btn:hover {
  transform: scale(1.15);
  background: #E0E7FF;
}

.balloon-streak {
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  color: #D97706;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#balloon-canvas-container {
  width: 100%;
  height: 480px;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}

.balloon-element {
  position: absolute;
  width: 78px;
  height: 98px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  cursor: pointer;
  transition: transform 0.1s ease;
  box-shadow: inset -6px -6px 12px rgba(0,0,0,0.18), inset 6px 6px 12px rgba(255,255,255,0.45), 0 8px 16px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center bottom;
}

.balloon-element::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid inherit;
}

.balloon-string {
  position: absolute;
  bottom: -45px;
  left: 50%;
  width: 2px;
  height: 40px;
  background: rgba(100, 116, 139, 0.4);
  transform: translateX(-50%);
}

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

.balloon-element:hover {
  transform: scale(1.1);
}

.balloon-element.pop-anim {
  animation: popBalloon 0.25s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popBalloon {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ========================================= */
/* MODE 2: QUIZ & MATCH                      */
/* ========================================= */
.quiz-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.quiz-header {
  margin-bottom: 24px;
}

.quiz-prompt-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #EEF2FF;
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.quiz-prompt-text {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.quiz-phonetic {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quiz-translation-hint {
  font-size: 1rem;
  color: #94A3B8;
  margin-top: 4px;
  font-weight: 600;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.color-option-btn {
  border: 4px solid white;
  border-radius: var(--radius-md);
  padding: 22px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.color-option-btn:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.15);
}

.color-option-btn:active {
  transform: translateY(1px);
}

.color-option-btn.correct-choice {
  animation: correctBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-color: #10B981 !important;
}

.color-option-btn.wrong-choice {
  animation: wrongShake 0.4s ease;
  opacity: 0.6;
}

@keyframes correctBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.option-paint-swatch {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid rgba(255,255,255,0.7);
}

.option-label {
  font-size: 1.25rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.option-sublabel {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
}

/* ========================================= */
/* MODE 3: COLOR MIXING LAB                  */
/* ========================================= */
.mixer-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.mixer-intro {
  text-align: center;
  margin-bottom: 24px;
}

.mixer-intro h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.mixer-intro p {
  color: var(--text-muted);
  font-weight: 600;
}

.cauldron-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0;
  padding: 24px;
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 100%);
  border-radius: var(--radius-lg);
  border: 2px dashed #CBD5E1;
}

.mixing-slot {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  border: 3px dashed #94A3B8;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.mixing-slot.filled {
  border-style: solid;
  border-color: white;
  box-shadow: var(--card-shadow);
}

.slot-inner-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin-bottom: 4px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.slot-name {
  font-weight: 800;
  font-size: 0.95rem;
}

.mixing-operator {
  font-size: 2.2rem;
  font-weight: 900;
  color: #64748B;
}

.result-slot {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  background: white;
  border: 4px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.result-slot.active-result {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
}

.result-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 6px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.2), 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.mixer-palette {
  margin-top: 24px;
}

.palette-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.palette-colors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.palette-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: white;
  border-radius: var(--radius-md);
  border: 2px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.04);
}

.palette-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.palette-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.palette-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.mixer-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.action-btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
}

.action-btn-primary {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}

.action-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.action-btn-secondary {
  background: #F1F5F9;
  color: var(--text-muted);
}

.action-btn-secondary:hover {
  background: #E2E8F0;
  color: var(--text-main);
}

/* ========================================= */
/* MODE 4: DICTIONARY / FLASHCARDS           */
/* ========================================= */
.dictionary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.color-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

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

.color-card-top {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 -10px 20px rgba(0,0,0,0.06);
}

.card-emoji-badge {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
  transition: transform 0.2s ease;
}

.color-card:hover .card-emoji-badge {
  transform: scale(1.15) rotate(6deg);
}

.color-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-color-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.card-listen-btn {
  background: #EEF2FF;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.2s ease;
}

.card-listen-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-polish-trans {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.card-phonetic {
  font-size: 0.85rem;
  color: #94A3B8;
  font-family: monospace;
}

.card-example {
  background: #F8FAFC;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 6px;
  border-left: 3px solid var(--primary-light);
}

.example-en {
  font-weight: 700;
  color: var(--text-main);
}

.example-pl {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ========================================= */
/* MODAL: STICKERS ALBUM                     */
/* ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

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

.modal-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.modal-close-btn {
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stickers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.sticker-item {
  background: #F8FAFC;
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.sticker-item.unlocked {
  background: #FEF9C3;
  border: 2px solid #FACC15;
  box-shadow: 0 6px 16px rgba(250, 204, 21, 0.25);
  transform: translateY(-2px);
}

.sticker-icon {
  font-size: 2.8rem;
  filter: grayscale(1);
  opacity: 0.35;
  transition: all 0.3s ease;
}

.sticker-item.unlocked .sticker-icon {
  filter: grayscale(0);
  opacity: 1;
  animation: bounceSticker 0.6s ease;
}

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

.sticker-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.sticker-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Confetti overlay */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .top-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .logo-area {
    justify-content: center;
  }
  .header-controls {
    justify-content: center;
  }
  .nav-tabs {
    justify-content: flex-start;
  }
  .tab-btn {
    min-width: 120px;
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  #balloon-canvas-container {
    height: 380px;
  }
  .quiz-prompt-text {
    font-size: 1.8rem;
  }
}
