/* ==========================================================================
   GIGIKU SEHAT, SENYUMKU HEBAT! - Mini Dental Show Interactive Game
   Pure CSS3 • Projector 16:9 Fullscreen Friendly • Child-Friendly Palette
   ========================================================================== */

:root {
  /* Palet Warna Utama (Biru Muda, Putih, Kuning, Hijau, Oranye) */
  --sky-light: #e3f6ff;
  --sky-mid: #bae6fd;
  --sky-primary: #0ea5e9;
  --sky-dark: #0369a1;
  --navy-text: #132a4a;

  --white: #ffffff;
  --cream: #fffdf7;

  --yellow-soft: #fef9c3;
  --yellow-primary: #facc15;
  --yellow-dark: #ca8a04;

  --green-soft: #dcfce7;
  --green-primary: #22c55e;
  --green-dark: #15803d;

  --orange-soft: #ffedd5;
  --orange-primary: #f97316;
  --orange-dark: #c2410c;
  --red-accent: #ef4444;

  /* Tipografi Rounded Ramah Anak (Tanpa Ketergantungan Internet) */
  --font-rounded: "Arial Rounded MT Bold", "Nunito", "Fredoka", "Quicksand", "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Dimensi & Efek */
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 30px rgba(19, 42, 74, 0.14);
  --shadow-btn: 0 6px 0 rgba(19, 42, 74, 0.22);
  --transition-fast: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Dasar */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-rounded);
  color: var(--navy-text);
  background: linear-gradient(160deg, #b8e8ff 0%, #e6f7ff 48%, #fff8d6 100%);
  -webkit-font-smoothing: antialiased;
}

/* Kanvas Confetti */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
}

/* ==========================================================================
   DEKORASI BACKGROUND MENGAMBANG
   ========================================================================== */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-item {
  position: absolute;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  opacity: 0.28;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
  animation: floatAround 9s ease-in-out infinite;
}

.item-1 { top: 10%; left: 4%; animation-delay: 0s; }
.item-2 { top: 20%; right: 5%; animation-delay: 1.2s; }
.item-3 { bottom: 14%; left: 6%; animation-delay: 2.4s; }
.item-4 { top: 12%; left: 45%; animation-delay: 0.8s; }
.item-5 { bottom: 12%; right: 7%; animation-delay: 1.8s; }
.item-6 { top: 55%; left: 3%; animation-delay: 3.1s; }
.item-7 { top: 62%; right: 4%; animation-delay: 2.1s; }
.item-8 { bottom: 8%; left: 48%; animation-delay: 1.5s; }

@keyframes floatAround {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-16px) rotate(8deg) scale(1.06); }
}

/* ==========================================================================
   TOP UTILITY BAR (KONTROL OPERATOR & PROYEKTOR)
   ========================================================================== */
.top-utility-bar {
  position: relative;
  z-index: 30;
  height: 62px;
  padding: 0 clamp(14px, 2.5vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--sky-mid);
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--sky-light);
  border: 2px solid var(--sky-primary);
  transition: transform var(--transition-fast);
}

.brand-mini:hover {
  transform: scale(1.04);
}

.brand-mini-icon {
  font-size: 1.5rem;
}

.brand-mini-text {
  font-weight: 900;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  color: var(--sky-dark);
  letter-spacing: 0.5px;
}

.utility-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.util-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--sky-primary);
  background: var(--white);
  color: var(--navy-text);
  font-family: inherit;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(14, 165, 233, 0.28);
  transition: transform var(--transition-fast), background-color 0.2s;
}

.util-btn:hover {
  background: var(--sky-light);
  transform: translateY(-2px);
}

.util-btn:active {
  transform: translateY(2px);
}

.util-btn.active {
  background: var(--yellow-soft);
  border-color: var(--yellow-dark);
}

/* Tombol Keluar Fullscreen Mengambang */
.exit-fs-float {
  display: none;
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 90;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--sky-mid);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  color: var(--navy-text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s, transform 0.2s, background-color 0.2s;
}

.exit-fs-float:hover {
  opacity: 1;
  background: var(--white);
  transform: scale(1.04);
}

/* ==========================================================================
   KONTAINER PANGGUNG UTAMA (16:9 FULLSCREEN OPTIMIZED)
   ========================================================================== */
.stage-container {
  position: relative;
  z-index: 10;
  width: 100%;
  height: calc(100vh - 62px);
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(10px, 1.8vh, 24px) clamp(14px, 2.5vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  animation: screenEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.screen.active {
  display: flex;
}

@keyframes screenEnter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   TOMBOL STANDAR BESAR & RAMAH ANAK
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0.6px;
  border: 4px solid var(--white);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-transform: uppercase;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter 0.2s;
}

.btn-xl {
  padding: clamp(14px, 2vh, 22px) clamp(28px, 3.2vw, 48px);
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
}

.btn-lg {
  padding: clamp(12px, 1.6vh, 18px) clamp(22px, 2.4vw, 34px);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
}

.btn-primary {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  color: var(--white);
  box-shadow: 0 8px 0 #14532d, 0 14px 24px rgba(22, 163, 74, 0.35);
}

.btn-secondary {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: var(--white);
  box-shadow: 0 8px 0 #9a3412, 0 14px 24px rgba(234, 88, 12, 0.32);
}

.btn-outline {
  background: var(--white);
  color: var(--sky-dark);
  border-color: var(--sky-primary);
  box-shadow: 0 6px 0 var(--sky-mid);
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(4px) scale(0.98);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.pulse-btn {
  animation: gentlePulse 2.4s infinite ease-in-out;
}

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

/* ==========================================================================
   A. START SCREEN (HALAMAN PEMBUKA)
   ========================================================================== */
.start-hero {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  max-height: 820px;
  background: rgba(255, 255, 255, 0.88);
  border: 6px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 3vh, 36px) clamp(20px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.show-badge {
  background: var(--yellow-primary);
  color: var(--navy-text);
  font-weight: 900;
  font-size: clamp(0.9rem, 1.3vw, 1.25rem);
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.45);
  letter-spacing: 1px;
}

.main-title {
  font-size: clamp(2rem, 4.3vw, 4rem);
  font-weight: 900;
  color: var(--sky-dark);
  text-shadow: 0 4px 0 var(--white), 0 6px 14px rgba(14, 165, 233, 0.28);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.sub-title {
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 900;
  color: var(--orange-dark);
  background: var(--orange-soft);
  padding: 6px 26px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--orange-primary);
}

/* Maskot Gigi & Karakter Pendamping */
.mascot-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 72px);
  margin: 4px 0;
}

.tooth-mascot-wrapper {
  position: relative;
  width: clamp(150px, 22vh, 230px);
  height: clamp(150px, 22vh, 230px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mascot-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.55) 0%, rgba(14, 165, 233, 0) 70%);
  animation: glowSpin 4s ease-in-out infinite;
}

@keyframes glowSpin {
  0%, 100% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

.tooth-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  animation: mascotBounce 2.2s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(14, 165, 233, 0.25));
}

@keyframes mascotBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

.mascot-Sidekick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: floatAround 4s ease-in-out infinite;
}

.sidekick-bubble {
  background: var(--white);
  border: 3px solid var(--sky-primary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: clamp(0.9rem, 1.2vw, 1.15rem);
  color: var(--navy-text);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.sidekick-avatar {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
}

.start-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 32px);
}

/* ==========================================================================
   B. HALAMAN CARA BERMAIN & PANEL UMUM
   ========================================================================== */
.panel-card {
  width: 100%;
  max-width: 1320px;
  height: 100%;
  max-height: 820px;
  background: rgba(255, 255, 255, 0.92);
  border: 6px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 2.6vh, 32px) clamp(20px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 900;
  color: var(--sky-dark);
}

.section-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  color: #475569;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.8vw, 22px);
  margin: auto 0;
}

.step-card {
  background: var(--sky-light);
  border: 3px solid var(--sky-mid);
  border-radius: var(--radius-md);
  padding: clamp(14px, 2.2vh, 24px) clamp(14px, 1.6vw, 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  position: relative;
  transition: transform var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-4px);
  background: var(--yellow-soft);
  border-color: var(--yellow-primary);
}

.step-num {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sky-primary);
  color: var(--white);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-emoji {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
}

.step-text {
  font-size: clamp(0.98rem, 1.3vw, 1.25rem);
  line-height: 1.35;
  color: var(--navy-text);
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* ==========================================================================
   C. HALAMAN PEMILIHAN PEMAIN (DINAMIS 1-3 PEMAIN)
   ========================================================================== */
.player-count-selector {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--sky-light);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--sky-mid);
}

.count-selector-label {
  font-weight: 900;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: var(--sky-dark);
}

.count-btn-group {
  display: flex;
  gap: 8px;
}

.count-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--sky-primary);
  background: var(--white);
  color: var(--navy-text);
  font-family: inherit;
  font-weight: 900;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  cursor: pointer;
  transition: transform var(--transition-fast), background-color 0.2s;
}

.count-btn:hover {
  transform: translateY(-2px);
  background: var(--yellow-soft);
}

.count-btn.active {
  background: var(--orange-primary);
  color: var(--white);
  border-color: var(--orange-dark);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.35);
}

.players-grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
  margin: auto;
  width: 100%;
}

.players-grid.count-1 {
  grid-template-columns: minmax(280px, 440px);
  justify-content: center;
}

.players-grid.count-2 {
  grid-template-columns: repeat(2, minmax(260px, 420px));
  justify-content: center;
}

.players-grid.count-3 {
  grid-template-columns: repeat(3, 1fr);
}

.player-setup-card {
  border-radius: var(--radius-md);
  padding: clamp(16px, 2.4vh, 28px) clamp(16px, 1.8vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.4vh, 14px);
  border: 4px solid transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  animation: screenEnter 0.3s ease-out;
}

.player-setup-card.hidden-card {
  display: none;
}

.player-theme-1 {
  background: var(--sky-light);
  border-color: var(--sky-primary);
}

.player-theme-2 {
  background: var(--yellow-soft);
  border-color: var(--yellow-primary);
}

.player-theme-3 {
  background: var(--green-soft);
  border-color: var(--green-primary);
}

.player-badge {
  background: var(--navy-text);
  color: var(--white);
  font-weight: 900;
  font-size: 0.9rem;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.8px;
}

.player-avatar-circle {
  width: clamp(74px, 11vh, 108px);
  height: clamp(74px, 11vh, 108px);
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.6rem, 5.5vh, 4rem);
}

.avatar-picker {
  display: flex;
  gap: 8px;
}

.avatar-opt {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  background: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color 0.2s;
}

.avatar-opt:hover {
  transform: scale(1.12);
}

.avatar-opt.active {
  border: 3px solid var(--orange-primary);
  background: var(--orange-soft);
  transform: scale(1.12);
}

.player-label {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--navy-text);
}

.player-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 3px solid var(--sky-dark);
  background: var(--white);
  font-family: inherit;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 900;
  text-align: center;
  color: var(--navy-text);
  text-transform: uppercase;
  user-select: text;
  -webkit-user-select: text;
}

.player-input:focus {
  outline: none;
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.25);
}

/* ==========================================================================
   D. HALAMAN GAME UTAMA (STAGE GAME SHOW)
   ========================================================================== */
#screen-game {
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(8px, 1.4vh, 16px);
}

/* HUD HEADER */
.game-hud {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr 1fr;
  gap: clamp(10px, 1.5vw, 20px);
  align-items: stretch;
}

.hud-logo,
.hud-active-player,
.hud-round,
.hud-score {
  background: var(--white);
  border: 3px solid var(--sky-mid);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(19, 42, 74, 0.08);
}

.hud-logo-icon {
  font-size: 2.2rem;
}

.hud-logo-text {
  display: flex;
  flex-direction: column;
}

.hud-logo-text strong {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--sky-dark);
}

.hud-logo-text span {
  font-size: 0.9rem;
  font-weight: 800;
  color: #64748b;
}

.hud-active-player {
  background: var(--yellow-soft);
  border-color: var(--yellow-primary);
}

.hud-avatar {
  font-size: 2.4rem;
  background: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--yellow-primary);
}

.hud-player-meta,
.hud-round,
.hud-score {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
}

.hud-round,
.hud-score {
  align-items: center;
  text-align: center;
}

.hud-meta-label {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #64748b;
}

.hud-player-name {
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  font-weight: 900;
  color: var(--navy-text);
}

.hud-round-value {
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  font-weight: 900;
  color: var(--sky-dark);
}

.progress-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.progress-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: transform 0.25s, background-color 0.25s;
}

.progress-dots .dot.done {
  background: var(--green-primary);
}

.progress-dots .dot.active {
  background: var(--orange-primary);
  transform: scale(1.25);
}

.hud-score {
  background: var(--green-soft);
  border-color: var(--green-primary);
}

.hud-score-value {
  font-size: clamp(1.3rem, 1.9vw, 1.8rem);
  font-weight: 900;
  color: var(--green-dark);
}

/* BANNER PERTANYAAN */
.question-banner {
  background: var(--white);
  border: 3px solid var(--sky-primary);
  border-radius: var(--radius-pill);
  padding: 10px 32px;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.15);
  text-align: center;
}

.question-prompt {
  font-size: clamp(1.15rem, 1.9vw, 1.75rem);
  font-weight: 900;
  color: var(--navy-text);
  letter-spacing: 0.5px;
}

.badge-do-inline {
  background: var(--green-primary);
  color: var(--white);
  padding: 2px 14px;
  border-radius: var(--radius-pill);
}

.badge-dont-inline {
  background: var(--orange-primary);
  color: var(--white);
  padding: 2px 14px;
  border-radius: var(--radius-pill);
}

/* ARENA UTAMA: DO (Kiri) | KARTU (Tengah) | DON'T (Kanan) */
.game-arena {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: clamp(16px, 2.5vw, 36px);
  align-items: stretch;
}

/* ZONA PILIHAN DO & DON'T */
.choice-zone {
  border-radius: var(--radius-lg);
  border: 6px dashed transparent;
  padding: clamp(16px, 2.5vh, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(8px, 1.5vh, 16px);
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter 0.2s;
  position: relative;
}

.zone-do {
  background: linear-gradient(180deg, #dcfce7 0%, #86efac 100%);
  border-color: var(--green-primary);
  color: var(--green-dark);
  box-shadow: 0 10px 0 var(--green-primary), 0 16px 28px rgba(34, 197, 94, 0.25);
}

.zone-dont {
  background: linear-gradient(180deg, #ffedd5 0%, #fdba74 100%);
  border-color: var(--orange-primary);
  color: var(--orange-dark);
  box-shadow: 0 10px 0 var(--orange-primary), 0 16px 28px rgba(249, 115, 22, 0.25);
}

.choice-zone:hover,
.choice-zone.drag-over {
  transform: translateY(-6px) scale(1.03);
  filter: brightness(1.04);
}

.choice-zone.drag-over {
  border-style: solid;
  box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.75), 0 16px 32px rgba(0, 0, 0, 0.2);
}

.choice-zone:active {
  transform: translateY(4px) scale(0.98);
}

.zone-icon-circle {
  width: clamp(72px, 11vh, 110px);
  height: clamp(72px, 11vh, 110px);
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 5.5vh, 3.8rem);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.zone-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
}

.zone-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  font-weight: 900;
  background: var(--white);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
}

.zone-hint {
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  font-weight: 800;
  opacity: 0.85;
}

/* KARTU MAKANAN DI TENGAH */
.card-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}

.food-card {
  width: 100%;
  height: 100%;
  max-height: 460px;
  background: var(--white);
  border: 6px solid var(--sky-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(19, 42, 74, 0.18), 0 8px 0 var(--sky-mid);
  padding: clamp(18px, 3vh, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  cursor: grab;
  touch-action: none;
  position: relative;
  z-index: 15;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s;
}

.food-card:active {
  cursor: grabbing;
}

.food-card.dragging {
  transition: none;
  box-shadow: 0 26px 50px rgba(19, 42, 74, 0.32);
  z-index: 60;
}

.food-card.card-pop-in {
  animation: cardPopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardPopIn {
  0% {
    opacity: 0;
    transform: scale(0.6) rotate(-8deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.food-card.card-fly-left {
  animation: flyLeft 0.38s ease-in forwards;
}

.food-card.card-fly-right {
  animation: flyRight 0.38s ease-in forwards;
}

@keyframes flyLeft {
  to {
    opacity: 0;
    transform: translate(-240px, -20px) rotate(-18deg) scale(0.75);
  }
}

@keyframes flyRight {
  to {
    opacity: 0;
    transform: translate(240px, -20px) rotate(18deg) scale(0.75);
  }
}

.card-top-tag {
  background: var(--sky-light);
  color: var(--sky-dark);
  font-weight: 900;
  font-size: 0.95rem;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--sky-mid);
}

.card-illustration {
  font-size: clamp(5.2rem, 13vh, 8.8rem);
  line-height: 1;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.12));
  animation: foodFloat 2.8s ease-in-out infinite;
}

@keyframes foodFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.06); }
}

.card-food-name {
  font-size: clamp(1.8rem, 3.2vw, 2.85rem);
  font-weight: 900;
  color: var(--navy-text);
  line-height: 1.15;
}

.card-drag-tip {
  background: var(--yellow-soft);
  color: var(--navy-text);
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--yellow-primary);
}

/* PAPAN SKOR BAWAH (LIVE SCOREBOARD) */
.live-scoreboard {
  width: 100%;
  display: grid;
  gap: 16px;
}

.live-scoreboard.count-1 {
  grid-template-columns: minmax(260px, 420px);
  justify-content: center;
}

.live-scoreboard.count-2 {
  grid-template-columns: repeat(2, minmax(240px, 420px));
  justify-content: center;
}

.live-scoreboard.count-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mini-score-pill {
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid var(--sky-mid);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
  transition: transform 0.25s, background-color 0.25s;
}

.mini-score-pill.active {
  background: var(--yellow-soft);
  border-color: var(--orange-primary);
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

.mini-avatar {
  font-size: 1.5rem;
}

.mini-name {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: var(--navy-text);
}

.mini-pts {
  background: var(--sky-primary);
  color: var(--white);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
}

/* ==========================================================================
   MODE FOKUS FULLSCREEN (CLEAN MODE: HANYA PERTANYAAN & JAWABAN)
   ========================================================================== */
body.fullscreen-focus .top-utility-bar {
  display: none !important;
}

body.fullscreen-focus .exit-fs-float {
  display: inline-flex;
}

body.fullscreen-focus .stage-container {
  height: 100vh;
  max-width: 1760px;
  padding: clamp(20px, 3.5vh, 42px) clamp(24px, 4vw, 56px);
}

/* Sembunyikan HUD Header dan Live Scoreboard saat bermain di Mode Fullscreen */
body.fullscreen-focus #screen-game .game-hud,
body.fullscreen-focus #screen-game .live-scoreboard {
  display: none !important;
}

body.fullscreen-focus #screen-game {
  justify-content: center;
  gap: clamp(20px, 3.5vh, 36px);
}

body.fullscreen-focus #screen-game .question-banner {
  padding: 14px 44px;
  border-width: 4px;
}

body.fullscreen-focus #screen-game .question-prompt {
  font-size: clamp(1.4rem, 2.5vw, 2.25rem);
}

body.fullscreen-focus #screen-game .game-arena {
  max-height: 74vh;
  gap: clamp(24px, 3.5vw, 48px);
}

body.fullscreen-focus #screen-game .food-card {
  max-height: 620px;
  padding: clamp(24px, 4vh, 44px);
}

body.fullscreen-focus #screen-game .card-illustration {
  font-size: clamp(6.5rem, 17vh, 11rem);
}

body.fullscreen-focus #screen-game .card-food-name {
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
}

/* ==========================================================================
   G. HALAMAN HASIL AKHIR (PODIUM & GELAR PAHLAWAN GIGI SEHAT)
   ========================================================================== */
.results-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.trophy-banner {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  animation: gentlePulse 2s infinite;
}

.hero-grand-badge {
  background: linear-gradient(90deg, #facc15 0%, #fb923c 100%);
  color: var(--navy-text);
  font-weight: 900;
  font-size: clamp(0.95rem, 1.3vw, 1.25rem);
  padding: 6px 24px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.podium-grid {
  display: grid;
  gap: clamp(14px, 2vw, 26px);
  margin: auto;
  width: 100%;
}

.podium-grid.count-1 {
  grid-template-columns: minmax(280px, 460px);
  justify-content: center;
}

.podium-grid.count-2 {
  grid-template-columns: repeat(2, minmax(260px, 420px));
  justify-content: center;
}

.podium-grid.count-3 {
  grid-template-columns: repeat(3, 1fr);
}

.podium-card {
  background: var(--sky-light);
  border: 4px solid var(--sky-primary);
  border-radius: var(--radius-md);
  padding: clamp(14px, 2vh, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  position: relative;
  box-shadow: 0 10px 24px rgba(19, 42, 74, 0.1);
}

.podium-card.rank-1 {
  background: linear-gradient(180deg, #fef9c3 0%, #fde047 100%);
  border-color: var(--orange-primary);
  transform: scale(1.04);
}

.rank-medal {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 900;
}

.podium-avatar {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  background: var(--white);
  width: clamp(64px, 9vh, 86px);
  height: clamp(64px, 9vh, 86px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.podium-name {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 900;
  color: var(--navy-text);
}

.podium-score {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-weight: 900;
  color: var(--green-dark);
  background: var(--white);
  padding: 4px 20px;
  border-radius: var(--radius-pill);
}

.podium-title-badge {
  background: var(--navy-text);
  color: var(--yellow-primary);
  font-weight: 900;
  font-size: clamp(0.85rem, 1.15vw, 1.05rem);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.closing-message-box {
  background: var(--green-soft);
  border: 3px solid var(--green-primary);
  border-radius: var(--radius-md);
  padding: clamp(12px, 1.8vh, 18px) clamp(18px, 2.4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.closing-mascot {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.closing-text {
  font-size: clamp(0.95rem, 1.3vw, 1.25rem);
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1.35;
}

/* ==========================================================================
   MODAL FEEDBACK & TRANSISI GILIRAN
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 42, 74, 0.68);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.22s ease-out;
}

.modal-overlay.hidden {
  display: none;
}

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

.modal-card {
  width: 100%;
  max-width: 720px;
  background: var(--white);
  border: 6px solid var(--sky-primary);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vh, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(12px, 2vh, 20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: modalBounce 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-card.feedback-correct {
  border-color: var(--green-primary);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.modal-card.feedback-wrong {
  border-color: var(--orange-primary);
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  animation: modalShake 0.45s ease-in-out;
}

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

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

.feedback-badge-icon {
  font-size: clamp(3.4rem, 7vh, 5rem);
  line-height: 1;
}

.feedback-headline {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 900;
}

.feedback-correct .feedback-headline {
  color: var(--green-dark);
}

.feedback-wrong .feedback-headline {
  color: var(--orange-dark);
}

.feedback-points-pill {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 900;
  padding: 6px 24px;
  border-radius: var(--radius-pill);
  background: var(--yellow-primary);
  color: var(--navy-text);
}

.feedback-food-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--sky-light);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 2px solid var(--sky-mid);
}

.feedback-food-emoji {
  font-size: 3rem;
}

.feedback-food-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.feedback-food-info strong {
  font-size: 1.35rem;
  color: var(--navy-text);
}

.category-pill {
  font-size: 0.85rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: var(--white);
}

.pill-do {
  background: var(--green-primary);
}

.pill-dont {
  background: var(--orange-primary);
}

.feedback-explanation {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--navy-text);
  background: var(--white);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  border: 3px dashed var(--sky-mid);
}

/* Modal Pergantian Giliran */
.turn-round-pill {
  background: var(--sky-primary);
  color: var(--white);
  font-weight: 900;
  padding: 6px 22px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
}

.turn-avatar-big {
  font-size: 5rem;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--yellow-soft);
  border: 5px solid var(--yellow-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.turn-headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--sky-dark);
}

.turn-subtext {
  font-size: 1.25rem;
  font-weight: 700;
  color: #475569;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & SMARTPHONE)
   ========================================================================== */
@media (max-width: 1024px) {
  html,
  body {
    overflow-y: auto;
  }

  .stage-container {
    height: auto;
    min-height: calc(100vh - 62px);
  }

  .panel-card,
  .start-hero {
    max-height: none;
  }

  .steps-grid,
  .players-grid.count-2,
  .players-grid.count-3,
  .podium-grid.count-2,
  .podium-grid.count-3 {
    grid-template-columns: 1fr;
  }

  .game-hud {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-arena {
    grid-template-columns: 1fr 1fr;
  }

  .card-stage {
    grid-column: 1 / -1;
    order: -1;
  }

  .food-card {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .util-label {
    display: none;
  }

  .mascot-Sidekick {
    display: none;
  }

  .player-count-selector {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .game-hud {
    grid-template-columns: 1fr;
  }

  .live-scoreboard.count-2,
  .live-scoreboard.count-3 {
    grid-template-columns: 1fr;
  }

  .panel-footer {
    flex-direction: column;
    width: 100%;
  }

  .panel-footer .btn {
    width: 100%;
  }
}
