/* style.css - Bright, Exciting, Grade 3 School-Quality Theme */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@700;800;900&display=swap');

:root {
  --font-heading: 'Fredoka', 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;

  /* Theme Colors */
  --bg-gradient: linear-gradient(135deg, #1A472A 0%, #2D5A27 40%, #166534 100%);
  --sky-gradient: linear-gradient(180deg, #BAE6FD 0%, #E0F2FE 100%);
  --safari-sand: #FEF3C7;
  --safari-gold: #F59E0B;
  --safari-green: #10B981;
  --safari-dark: #064E3B;

  /* Team Colors */
  --team-dog: #F97316;     /* Bright Orange */
  --team-cat: #06B6D4;     /* Ocean Cyan */
  --team-rabbit: #EC4899;  /* Radiant Pink */
  --team-parrot: #84CC16;  /* Lime Green */

  /* UI Tokens */
  --card-bg: #FFFFFF;
  --card-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  --btn-shadow: 0 6px 0px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.15);
  --btn-shadow-active: 0 2px 0px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: #1F2937;
}

#app {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(254, 240, 138, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(52, 211, 153, 0.15) 0%, transparent 40%),
              var(--bg-gradient);
}

/* ==========================================================================
   LIVE TOP SCOREBOARD (Always visible, Classroom Projector Friendly)
   ========================================================================== */
.top-scoreboard {
  width: 100%;
  height: 72px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.lesson-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FBBF24;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lesson-badge .paw-icon {
  width: 30px;
  height: 30px;
  color: #FBBF24;
  animation: gentlePulse 2.5s infinite ease-in-out;
}

.teams-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 3px solid transparent;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.team-card:hover {
  transform: translateY(-2px);
}

.team-card.dog { border-color: var(--team-dog); }
.team-card.cat { border-color: var(--team-cat); }
.team-card.rabbit { border-color: var(--team-rabbit); }
.team-card.parrot { border-color: var(--team-parrot); }

.team-avatar {
  font-size: 1.8rem;
  line-height: 1;
}

.team-info {
  display: flex;
  flex-direction: column;
}

.team-name {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4B5563;
}

.team-score-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-score {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #111827;
  min-width: 24px;
  text-align: center;
}

.team-score-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #E5E7EB;
  color: #374151;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.team-score-btn:hover {
  background: #D1D5DB;
  transform: scale(1.1);
}

.team-score-btn.plus {
  background: #DCFCE7;
  color: #15803D;
}
.team-score-btn.plus:hover {
  background: #BBF7D0;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  border-radius: 12px;
  height: 42px;
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   MAIN STAGE / SLIDE CONTENT AREA
   ========================================================================== */
.main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.main-stage::-webkit-scrollbar {
  width: 8px;
}
.main-stage::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.slide-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: slideFadeIn 0.35s ease-out;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav {
  height: 76px;
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-top: 3px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 90;
}

.nav-progress-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.part-pill {
  background: #F59E0B;
  color: #78350F;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.slide-counter {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-body);
}

.nav-buttons-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-btn {
  min-width: 150px;
  height: 54px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--btn-shadow);
}

.nav-btn:active {
  transform: translateY(4px);
  box-shadow: var(--btn-shadow-active);
}

.nav-btn.prev {
  background: #64748B;
  color: #FFFFFF;
}
.nav-btn.prev:hover {
  background: #475569;
}

.nav-btn.next {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
}
.nav-btn.next:hover {
  background: linear-gradient(135deg, #34D399, #10B981);
  transform: translateY(-2px);
}

/* Discussion Timer Widget in Nav */
.timer-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 14px;
  color: #FDE047;
  cursor: pointer;
  transition: all 0.2s;
}

.timer-widget:hover {
  background: rgba(255, 255, 255, 0.22);
}

.timer-digits {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  min-width: 38px;
}

/* ==========================================================================
   CARDS & PROJECTION SURFACES
   ========================================================================== */
.adventure-card {
  background: var(--card-bg);
  border-radius: 32px;
  box-shadow: var(--card-shadow);
  border: 5px solid #F3F4F6;
  padding: 36px 44px;
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

.adventure-card.gold-border {
  border-color: #FBBF24;
}

.card-header-badge {
  background: #FEF3C7;
  color: #92400E;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  padding: 8px 24px;
  border-radius: 9999px;
  margin-bottom: 18px;
  border: 2px solid #FDE68A;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 12px;
}

.card-subtitle {
  font-size: 1.45rem;
  font-weight: 700;
  color: #4B5563;
  margin-bottom: 24px;
}

/* ==========================================================================
   INTERACTIVE ANIMAL REVEAL (PART 1 GAME 1)
   ========================================================================== */
.mystery-animal-box {
  width: 250px;
  height: 250px;
  margin: 10px 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 28px;
  background: #F3F4F6;
  border: 4px dashed #D1D5DB;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.mystery-animal-box.revealed {
  border: 4px solid #10B981;
  background: #ECFDF5;
  transform: scale(1.04);
}

.mystery-animal-box .animal-svg {
  width: 210px;
  height: 210px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease-out;
}

.mystery-animal-box.revealed .animal-svg {
  animation: animalBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes animalBounce {
  0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

.action-btn {
  height: 64px;
  padding: 0 36px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--btn-shadow);
  transition: all 0.15s;
}

.action-btn:active {
  transform: translateY(4px);
  box-shadow: var(--btn-shadow-active);
}

.action-btn.reveal {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
}

.action-btn.sound {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #FFFFFF;
}

.action-btn.award {
  background: linear-gradient(135deg, #10B981, #047857);
  color: #FFFFFF;
}

.animal-name-tag {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: #065F46;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px 0;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   PART 2: WHERE IN THE WORLD?
   ========================================================================== */
.country-animal-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 12px 0 20px;
  background: #F8FAFC;
  border: 3px solid #E2E8F0;
  border-radius: 28px;
  padding: 16px 36px;
  width: 100%;
  max-width: 860px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.country-animal-avatar {
  width: 120px;
  height: 120px;
  min-width: 120px;
  max-width: 120px;
  border-radius: 22px;
  background: #FFFFFF;
  border: 3px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.country-animal-avatar svg,
.country-animal-avatar .animal-svg {
  width: 100px !important;
  height: 100px !important;
  max-width: 100px !important;
  max-height: 100px !important;
  object-fit: contain;
  display: block;
}

.country-animal-details {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.country-animal-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: #1E293B;
  line-height: 1.1;
  margin: 0 0 6px 0;
}

.country-animal-prompt {
  font-size: 1.45rem;
  color: #475569;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 860px;
  margin-top: 10px;
}

.country-card-btn {
  background: #F8FAFC;
  border: 4px solid #E2E8F0;
  border-radius: 24px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
}

.country-card-btn:hover:not(:disabled) {
  border-color: #38BDF8;
  background: #F0F9FF;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}

.country-card-btn .opt-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #E2E8F0;
  color: #334155;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.country-card-btn .country-text {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #1E293B;
}

.country-card-btn .country-flag-reveal {
  margin-left: auto;
  display: none;
  width: 75px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Answer states */
.country-card-btn.correct {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.35) !important;
  transform: scale(1.03);
}

.country-card-btn.correct .opt-badge {
  background: #10B981;
  color: #FFFFFF;
}

.country-card-btn.correct .country-flag-reveal {
  display: block;
  animation: flagUnfurl 0.5s ease-out;
}

.country-card-btn.wrong-picked {
  background: #FEF2F2 !important;
  border-color: #F87171 !important;
  opacity: 0.85;
}

.country-card-btn.wrong-picked .opt-badge {
  background: #EF4444;
  color: #FFFFFF;
}

@keyframes flagUnfurl {
  0% { transform: scale(0.4) rotate(-15deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ==========================================================================
   PART 3: LISTENING MISSION (EMBEDDED YOUTUBE VIDEO)
   ========================================================================== */
.video-mission-card {
  width: 100%;
  max-width: 1100px;
  background: #FFFFFF;
  border-radius: 32px;
  padding: 24px 32px;
  border: 5px solid #FBBF24;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-player-container {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: #000;
  margin: 14px 0;
  border: 4px solid #1E293B;
  position: relative;
}

.video-player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.mission-checklist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.checklist-tag {
  background: #F0FDF4;
  border: 2px solid #86EFAC;
  color: #166534;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   PART 4: LISTENING QUESTIONS (1 to 9)
   ========================================================================== */
.question-card {
  width: 100%;
  max-width: 1100px;
  background: #FFFFFF;
  border-radius: 32px;
  padding: 32px 42px;
  border: 5px solid #E2E8F0;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.q-number-pill {
  background: #EEF2FF;
  color: #4338CA;
  border: 2px solid #C7D2FE;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.question-text {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 28px;
  text-align: center;
}

.question-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  margin-bottom: 20px;
}

.option-btn {
  background: #F8FAFC;
  border: 4px solid #CBD5E1;
  border-radius: 24px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
}

.option-btn:hover:not(:disabled) {
  border-color: #60A5FA;
  background: #EFF6FF;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(96, 165, 250, 0.25);
}

.option-btn .letter-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #E2E8F0;
  color: #1E293B;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-btn .option-text {
  font-family: var(--font-body);
  font-size: 1.65rem;
  font-weight: 800;
  color: #1E293B;
}

/* Post-answer reveals: NO HINTS BEFORE ANSWER! */
.option-btn.correct-highlight {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4) !important;
  transform: scale(1.02);
}

.option-btn.correct-highlight .letter-badge {
  background: #10B981;
  color: #FFFFFF;
}

.option-btn.wrong-highlight {
  background: #FEF2F2 !important;
  border-color: #F87171 !important;
  opacity: 0.8;
}

.option-btn.wrong-highlight .letter-badge {
  background: #EF4444;
  color: #FFFFFF;
}

.feedback-banner {
  width: 100%;
  padding: 14px 24px;
  border-radius: 18px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  animation: popIn 0.3s ease-out;
}

.feedback-banner.correct {
  display: flex;
  background: #DCFCE7;
  color: #15803D;
  border: 3px solid #86EFAC;
}

.feedback-banner.gentle-retry {
  display: flex;
  background: #FEF3C7;
  color: #92400E;
  border: 3px solid #FCD34D;
}

/* ==========================================================================
   PART 5: TRUE OR FALSE MOVEMENT GAME
   ========================================================================== */
.tf-movement-badge {
  background: #FEF08A;
  color: #854D0E;
  border: 2px dashed #EAB308;
  font-size: 1.35rem;
  font-weight: 800;
  padding: 10px 28px;
  border-radius: 9999px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tf-statement-card {
  background: #F8FAFC;
  border: 4px solid #E2E8F0;
  border-radius: 28px;
  padding: 36px 40px;
  width: 100%;
  margin-bottom: 28px;
}

.tf-statement-text {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
}

.tf-choice-container {
  display: flex;
  justify-content: center;
  gap: 36px;
  width: 100%;
}

.tf-choice-btn {
  flex: 1;
  max-width: 320px;
  height: 90px;
  border-radius: 26px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: #FFFFFF;
  box-shadow: var(--btn-shadow);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tf-choice-btn.true-btn {
  background: linear-gradient(135deg, #10B981, #047857);
}

.tf-choice-btn.false-btn {
  background: linear-gradient(135deg, #EF4444, #B91C1C);
}

.tf-choice-btn:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.02);
}

.tf-choice-btn.correct-glow {
  animation: pulseGreenGlow 1.2s infinite alternate;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.8) !important;
}

@keyframes pulseGreenGlow {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.08); }
}

/* ==========================================================================
   PART 6: SENTENCE CONSTRUCTION GAME
   ========================================================================== */
.sentence-drop-zone {
  width: 100%;
  min-height: 100px;
  background: #F1F5F9;
  border: 4px dashed #94A3B8;
  border-radius: 24px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  transition: all 0.2s;
}

.sentence-drop-zone.correct-zone {
  background: #ECFDF5;
  border: 4px solid #10B981;
}

.word-tile-pool {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.word-tile {
  background: #FFFFFF;
  border: 3px solid #3B82F6;
  color: #1E3A8A;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
}

.word-tile:hover {
  transform: translateY(-3px) scale(1.05);
  background: #EFF6FF;
}

.word-tile.placed {
  background: #FEF3C7;
  border-color: #D97706;
  color: #78350F;
}

.word-tile.correct-tile {
  background: #10B981;
  border-color: #047857;
  color: #FFFFFF;
  animation: popIn 0.3s ease-out;
}

/* ==========================================================================
   PART 7 & FINAL CELEBRATION
   ========================================================================== */
.final-challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 10px;
}

.team-task-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 24px;
  border: 4px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.team-task-card.dog { border-color: var(--team-dog); background: #FFF7ED; }
.team-task-card.cat { border-color: var(--team-cat); background: #ECFEFF; }
.team-task-card.rabbit { border-color: var(--team-rabbit); background: #FDF2F8; }
.team-task-card.parrot { border-color: var(--team-parrot); background: #F7FEE7; }

.task-prompt {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #1F2937;
  margin: 14px 0 18px;
}

/* PODIUM IN FINAL CELEBRATION */
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  margin: 20px 0 30px;
  width: 100%;
  max-width: 900px;
}

.podium-pillar {
  flex: 1;
  background: #FFFFFF;
  border-radius: 24px 24px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: 4px solid #E2E8F0;
  position: relative;
}

.podium-pillar.rank-1 {
  height: 310px;
  border-color: #F59E0B;
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%);
}

.podium-pillar.rank-2 {
  height: 260px;
  border-color: #94A3B8;
}

.podium-pillar.rank-3 {
  height: 230px;
  border-color: #D97706;
}

.podium-pillar.rank-4 {
  height: 200px;
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 32px;
  padding: 36px 44px;
  max-width: 680px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  border: 5px solid #F59E0B;
  text-align: center;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 10px;
}

.team-pick-btn {
  height: 70px;
  border-radius: 20px;
  border: 3px solid transparent;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-pick-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.team-pick-btn.dog { background: #FFEDD5; color: #C2410C; border-color: var(--team-dog); }
.team-pick-btn.cat { background: #CFFAFE; color: #0E7490; border-color: var(--team-cat); }
.team-pick-btn.rabbit { background: #FCE7F3; color: #BE185D; border-color: var(--team-rabbit); }
.team-pick-btn.parrot { background: #ECFCCB; color: #4D7C0F; border-color: var(--team-parrot); }

/* Quick Jump Drawer */
.jump-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding: 10px;
}

.jump-item-btn {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 800;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.15s;
}

.jump-item-btn:hover {
  background: #EEF2FF;
  border-color: #6366F1;
  color: #4338CA;
}

/* ==========================================================================
   CANVAS OVERLAY (FIREWORKS & CONFETTI)
   ========================================================================== */
#fxCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 150;
}

/* Flying Paw Animation */
.flying-paw {
  position: fixed;
  z-index: 250;
  pointer-events: none;
  width: 50px;
  height: 50px;
  color: #F59E0B;
  transition: all 0.75s cubic-bezier(0.25, 1, 0.5, 1);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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