/**
 * ===================================================================
 * LUNA'S HOUSE ADVENTURE - STYLESHEET
 * Designed for Children Ages 3 to 5 | Bilikids Edition
 * Character: Luna the Bunny Explorer
 * ===================================================================
 */

:root {
  --primary-home: #9b59b6;
  --primary-home-hover: #8e44ad;
  --home-warm-bg: #fdf6e2;
  --home-wall-pastel: #e8f8f5;
  --home-wood: #d35400;
  --home-accent-pink: #ff6b81;
  --home-accent-yellow: #f1c40f;
  --home-accent-blue: #3498db;
  --home-accent-green: #2ecc71;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --card-shadow: 0 10px 24px rgba(155, 89, 182, 0.16);
  --btn-shadow: 0 6px 14px rgba(155, 89, 182, 0.28);
  --border-radius-lg: 24px;
  --border-radius-pill: 50px;
}

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

body {
  font-family: 'Fredoka', 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--home-warm-bg);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --- ANIMATED HOUSE BACKGROUND --- */
.house-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(180deg, #dff9fb 0%, #f9f0ff 45%, #fff5eb 100%);
  overflow: hidden;
}

.house-sun {
  position: absolute;
  top: 25px;
  right: 80px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, #fff275 30%, #ffd000 100%);
  border-radius: 50%;
  box-shadow: 0 0 45px rgba(255, 215, 0, 0.6);
  animation: sunWarmGlow 6s ease-in-out infinite alternate;
}

@keyframes sunWarmGlow {
  0% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1.08); opacity: 1; }
}

.house-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  filter: blur(1px);
}
.house-cloud-1 {
  width: 170px;
  height: 48px;
  top: 14%;
  left: -200px;
  animation: floatCloudHouse 38s linear infinite;
}
.house-cloud-2 {
  width: 220px;
  height: 60px;
  top: 26%;
  left: -240px;
  animation: floatCloudHouse 50s linear infinite 15s;
}

@keyframes floatCloudHouse {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 350px)); }
}

.cozy-wallpaper-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38%;
  background: radial-gradient(#f8a5c2 12%, transparent 13%), radial-gradient(#f8a5c2 12%, transparent 13%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.22;
}

.wooden-floor-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55px;
  background: linear-gradient(90deg, #c0392b 0%, #d35400 30%, #e67e22 70%, #d35400 100%);
  border-top: 5px solid #a93226;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

/* --- MAIN CONTAINER --- */
.game-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 18px 24px;
  position: relative;
}

/* --- TOP HEADER BAR --- */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 6px 20px rgba(155, 89, 182, 0.15);
  border: 3px solid #f8eafc;
  margin-bottom: 14px;
  z-index: 50;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fdf2e9;
  color: #d35400;
  border: 2px solid #f8c471;
  padding: 8px 16px;
  border-radius: var(--border-radius-pill);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 10px rgba(211, 84, 0, 0.12);
}
.header-btn:hover {
  transform: translateY(-2px) scale(1.04);
  background: #fbeee6;
}

.header-btn.icon-only {
  padding: 8px 12px;
  font-size: 1.15rem;
}

.header-game-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ebf5fb;
  color: #2980b9;
  border: 2px dashed #85c1e9;
  padding: 7px 14px;
  border-radius: var(--border-radius-pill);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.25s ease;
}
.header-game-switcher:hover {
  background: #d4e6f1;
  transform: translateY(-2px);
}

.bilikids-mini-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #9b59b6;
  letter-spacing: -0.5px;
}
.bilikids-mini-logo span {
  color: #ff6b81;
}

.header-level-badge {
  background: linear-gradient(135deg, #a55eea 0%, #8854d0 100%);
  color: #ffffff;
  padding: 7px 22px;
  border-radius: var(--border-radius-pill);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(136, 84, 208, 0.35);
  letter-spacing: 0.5px;
}

.header-stars {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff9db;
  color: #f39c12;
  border: 2px solid #f9ca24;
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  font-size: 1rem;
  font-weight: 800;
}

/* --- SCREEN TRANSITIONS --- */
.game-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex-direction: column;
  animation: fadeInPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.screen.active {
  display: flex;
}

@keyframes fadeInPop {
  0% { opacity: 0; transform: scale(0.97) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- HOME SCREEN HERO --- */
.home-hero-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-lg);
  padding: 24px 28px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 4px solid #f3e5f5;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.home-hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.luna-hero-wrapper {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.luna-hero-wrapper:hover {
  transform: scale(1.08) rotate(3deg);
}

.luna-fullbody-hero-img {
  width: 220px;
  max-width: 90vw;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(155, 89, 182, 0.25));
  animation: cuteBounce 3s ease-in-out infinite alternate;
}

@keyframes cuteBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.home-speech-bubble {
  background: #ffffff;
  border: 3px solid #e1bee7;
  padding: 16px 24px;
  border-radius: 26px;
  position: relative;
  max-width: 440px;
  box-shadow: 0 8px 20px rgba(155, 89, 182, 0.12);
}
.home-speech-bubble::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 14px solid #ffffff;
}

.home-speech-bubble h1 {
  font-size: 2rem;
  color: #8e44ad;
  margin-bottom: 8px;
  font-weight: 800;
}
.home-speech-bubble h1 span {
  color: #ff6b81;
}

.home-speech-bubble p {
  font-size: 1.15rem;
  color: #576574;
  line-height: 1.4;
  margin-bottom: 14px;
}

.btn-start-adventure {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: #ffffff;
  border: none;
  padding: 14px 34px;
  border-radius: var(--border-radius-pill);
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.35);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-start-adventure:hover {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 12px 26px rgba(46, 204, 113, 0.45);
}

/* --- STAGE TABS BAR --- */
.stage-tabs-container {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  justify-content: center;
}

.btn-stage-tab {
  flex: 1;
  max-width: 420px;
  background: #ffffff;
  border: 3px solid #e1bee7;
  padding: 14px 20px;
  border-radius: 20px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(155, 89, 182, 0.08);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-stage-tab.active {
  background: linear-gradient(135deg, #fdf6ff 0%, #f3e5f5 100%);
  border-color: #9b59b6;
  box-shadow: 0 8px 24px rgba(155, 89, 182, 0.22);
  transform: translateY(-3px);
}

.btn-stage-tab.locked {
  opacity: 0.75;
  background: #f8f9fa;
  border-color: #dcdde1;
  cursor: not-allowed;
}

.tab-info-text {
  text-align: left;
}
.tab-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2c3e50;
  display: block;
}
.btn-stage-tab.active .tab-title {
  color: #8e44ad;
}
.tab-subtitle {
  font-size: 0.9rem;
  color: #7f8c8d;
}

.tab-badge {
  padding: 5px 12px;
  border-radius: var(--border-radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
}
.tab-badge.unlocked {
  background: #e8f8f5;
  color: #16a085;
}
.tab-badge.locked-badge {
  background: #ffeaa7;
  color: #d35400;
}

/* --- LEVEL SELECT GRID (10 CARDS PER STAGE) --- */
.stage-grid-wrapper {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  padding: 16px;
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.9);
}

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

.level-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 3px solid #f1f2f6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.level-card.unlocked {
  border-color: #dcdde1;
}
.level-card.unlocked:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: #9b59b6;
  box-shadow: 0 12px 24px rgba(155, 89, 182, 0.2);
}

.level-card.locked {
  opacity: 0.6;
  background: #fdfefe;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.level-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #8e44ad;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.level-art {
  font-size: 2.3rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.level-info h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 2px;
}
.level-info p {
  font-size: 0.8rem;
  color: #7f8c8d;
  line-height: 1.2;
}
.card-stars {
  color: #f1c40f;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* --- GAME SCREEN INSTRUCTION HEADER --- */
.luna-sidekick-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 3px solid #e1bee7;
  box-shadow: var(--card-shadow);
  margin-bottom: 14px;
}

.luna-companion-img {
  width: 82px;
  height: auto;
  cursor: pointer;
  filter: drop-shadow(0 6px 12px rgba(155, 89, 182, 0.2));
  transition: transform 0.25s ease;
}
.luna-companion-img:hover {
  transform: scale(1.15) rotate(5deg);
}

.instruction-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.speech-target {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2c3e50;
}
.speech-target .speech-intro {
  color: #8e44ad;
  font-weight: 800;
}
.speech-target strong {
  background: #ffeaa7;
  color: #d35400;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 1.45rem;
}
.speech-target .spanish-hint {
  font-size: 1rem;
  color: #7f8c8d;
  font-weight: 600;
  margin-left: 6px;
}

.voice-btn-round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1c40f;
  border: 2px solid #f39c12;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.voice-btn-round:hover {
  transform: scale(1.15) rotate(10deg);
}

/* Progress bar inside levels */
.round-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.progress-track {
  flex: 1;
  height: 12px;
  background: #ecf0f1;
  border-radius: 20px;
  overflow: hidden;
  margin-right: 14px;
  border: 2px solid #dfe6e9;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #9b59b6, #e056fd);
  border-radius: 20px;
  transition: width 0.4s ease;
}
.round-counter {
  font-size: 0.95rem;
  font-weight: 800;
  color: #8e44ad;
}

/* --- PLAY ARENA COMMON LAYOUT --- */
.play-arena {
  background: #ffffff;
  border-radius: 26px;
  padding: 24px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  border: 4px solid #f3e5f5;
  position: relative;
  overflow: hidden;
}

/* --- MINI-GAME SPECIFIC INTERACTION STYLES --- */

/* LEVEL 1: LIVING ROOM (FURNITURE SHELF) */
.furniture-shelf-row {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 15px;
}
.furniture-card-btn {
  background: #fdfaf6;
  border: 3px solid #f8c291;
  border-radius: 24px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 170px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.furniture-card-btn:hover {
  transform: translateY(-8px) scale(1.06);
  border-color: #e67e22;
  box-shadow: 0 14px 26px rgba(230, 126, 34, 0.25);
}
.fc-icon { font-size: 4.8rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); transition: transform 0.2s ease; display: flex; align-items: center; justify-content: center; min-height: 80px; }
.fc-name { font-size: 1.45rem; font-weight: 800; color: #2c3e50; text-transform: uppercase; letter-spacing: 0.5px; }
.fc-span { display: none !important; }

.svg-item-icon {
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.2s ease;
}
.furniture-card-btn:hover .svg-item-icon {
  transform: scale(1.1);
}
.prompt-icon-slot {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}
.prompt-icon-slot svg {
  width: 36px;
  height: 36px;
}

/* LEVEL 2: REFRIGERATOR */
.fridge-interactive-unit {
  position: relative;
  width: 320px;
  height: 380px;
  background: #eef1f6;
  border: 5px solid #95a5a6;
  border-radius: 30px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}
.fridge-door {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f6fa 0%, #dcdde1 100%);
  border-radius: 25px;
  border: 4px solid #7f8c8d;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 25px;
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 6px 0 18px rgba(0, 0, 0, 0.15);
  z-index: 10;
  cursor: pointer;
}
.fridge-door.open {
  transform: rotateY(-115deg);
}
.fridge-handle {
  width: 16px;
  height: 90px;
  background: #bdc3c7;
  border: 2px solid #7f8c8d;
  border-radius: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.fridge-interior {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
  align-items: center;
  justify-items: center;
}
.fridge-food-item {
  font-size: 3.5rem;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fridge-food-item:hover {
  transform: scale(1.3) rotate(8deg);
}

/* LEVEL 4: BATH BUBBLES */
.bath-bubbles-arena {
  width: 100%;
  height: 380px;
  position: relative;
  background: linear-gradient(180deg, #c7ecee 0%, #7ed6df 100%);
  border-radius: 26px;
  overflow: hidden;
  border: 4px solid #48dbfb;
}
.bath-bubble-item {
  position: absolute;
  width: 95px;
  height: 95px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(224, 247, 250, 0.6) 60%, rgba(72, 219, 251, 0.45) 100%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 180, 216, 0.25);
  animation: floatBubbleAround 4s ease-in-out infinite alternate;
  transition: transform 0.15s ease;
}
.bath-bubble-item:hover {
  transform: scale(1.15);
}
.bath-bubble-item.popping {
  animation: bubblePopEffect 0.25s forwards;
}
@keyframes floatBubbleAround {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-22px) rotate(8deg); }
}
@keyframes bubblePopEffect {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.7; }
  100% { transform: scale(0); opacity: 0; }
}

/* LEVEL 12: REAL LIGHT SWITCH */
.light-switch-plate {
  width: 140px;
  height: 220px;
  background: #ffffff;
  border: 6px solid #dcdde1;
  border-radius: 24px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.06), 0 12px 30px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.switch-toggle-rocker {
  width: 50px;
  height: 95px;
  background: #ecf0f1;
  border: 3px solid #bdc3c7;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.18);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.light-switch-plate.turned-on .switch-toggle-rocker {
  transform: translateY(-16px);
  background: #f1c40f;
  border-color: #f39c12;
  box-shadow: 0 0 25px rgba(241, 196, 15, 0.8);
}
.light-switch-plate.turned-off .switch-toggle-rocker {
  transform: translateY(16px);
}

/* LEVEL 15: BLENDER IN THE KITCHEN */
.blender-appliance {
  width: 180px;
  height: 280px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.blender-jug {
  width: 130px;
  height: 180px;
  background: rgba(255, 255, 255, 0.7);
  border: 4px solid #74b9ff;
  border-radius: 14px 14px 20px 20px;
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blender-base {
  width: 170px;
  height: 75px;
  background: #e17055;
  border-radius: 18px 18px 24px 24px;
  border: 4px solid #d63031;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blender-jug.blending {
  animation: blenderShake 0.12s infinite alternate;
}
@keyframes blenderShake {
  0% { transform: translateX(-3px) rotate(-1deg); }
  100% { transform: translateX(3px) rotate(1deg); }
}

/* CELEBRATION MODAL */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.3s ease;
}
.success-overlay.hidden {
  display: none;
}
.success-popup {
  background: #ffffff;
  border-radius: 30px;
  padding: 30px 40px;
  text-align: center;
  border: 6px solid #a29bfe;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  max-width: 460px;
  animation: popInModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popInModal {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.luna-success-img {
  width: 130px;
  height: auto;
  margin-bottom: 12px;
  animation: cuteBounce 1s infinite alternate;
}
.success-popup h2 {
  font-size: 2.2rem;
  color: #8e44ad;
  margin-bottom: 6px;
  font-weight: 800;
}
.success-popup p {
  font-size: 1.25rem;
  color: #2c3e50;
  margin-bottom: 16px;
}
.success-stars {
  font-size: 2.2rem;
  color: #f1c40f;
}

/* DIPLOMA SCREEN */
.diploma-card {
  background: #ffffff;
  border: 10px double #8e44ad;
  border-radius: 30px;
  padding: 36px 40px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(155, 89, 182, 0.25);
  position: relative;
}
.diploma-header {
  font-size: 2.2rem;
  color: #8e44ad;
  font-weight: 800;
  margin-bottom: 8px;
}
.diploma-body p {
  font-size: 1.2rem;
  color: #34495e;
  line-height: 1.6;
  margin: 10px 0;
}
.diploma-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn-action-diploma {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--border-radius-pill);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(155, 89, 182, 0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-action-diploma:hover {
  transform: translateY(-3px) scale(1.04);
}
.btn-action-diploma.print {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .game-header {
    padding: 8px 12px;
  }
  .header-btn .btn-label, .header-game-switcher span:last-child {
    display: none;
  }
  .home-hero-content {
    flex-direction: column;
    gap: 15px;
  }
  .luna-fullbody-hero-img {
    width: 170px;
  }
  .home-speech-bubble h1 {
    font-size: 1.6rem;
  }
  .stage-tabs-container {
    flex-direction: column;
  }
  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .speech-target {
    font-size: 1.1rem;
  }
  .speech-target strong {
    font-size: 1.2rem;
  }
}
