:root {
  --bg-grad: radial-gradient(circle at 50% 0%, #fff7d6 0%, #ffe8f0 45%, #d9f3ff 100%);
  --mili-main: #16a34a;
  --mili-dark: #15803d;
  --mili-soft: #dcfce7;
  --mili-glow: rgba(22, 163, 74, 0.35);

  --minnie-main: #ec4899;
  --minnie-dark: #be185d;
  --minnie-soft: #fce7f3;
  --minnie-glow: rgba(236, 72, 153, 0.35);

  --host-main: #f59e0b;
  --card-bg: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --shadow-lg: 0 18px 40px -12px rgba(30, 41, 59, 0.22);
  --shadow-md: 0 10px 24px -8px rgba(30, 41, 59, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-grad);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, .primary-cta, .bell-button, .team-banner, .round-badge {
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
}

.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.float-shape {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.22;
  animation: floatSlow 9s ease-in-out infinite;
}
.float-shape.s1 { top: 8%; left: 4%; animation-delay: 0s; }
.float-shape.s2 { top: 18%; right: 6%; animation-delay: 1.5s; }
.float-shape.s3 { bottom: 14%; left: 8%; animation-delay: 3s; }
.float-shape.s4 { bottom: 10%; right: 8%; animation-delay: 4.5s; }
.float-shape.s5 { top: 52%; left: 50%; animation-delay: 2.2s; }

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

.screen {
  display: none;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 16px 20px 24px;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* ==================== TELA INICIAL ==================== */
.hero-header {
  text-align: center;
  margin-bottom: 16px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fde047, #fb923c);
  color: #422006;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.35);
  margin-bottom: 8px;
}

.game-title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  color: #0f172a;
  text-shadow: 0 3px 0 #ffffff, 0 6px 18px rgba(236, 72, 153, 0.2);
}

.game-subtitle {
  font-size: 1.05rem;
  color: #475569;
  font-weight: 700;
  margin-top: 4px;
}

.start-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 18px;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
}

.team-preview-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  border: 3px solid #ffffff;
}

.team-preview-card.mili-theme {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 35%);
}

.team-preview-card.minnie-theme {
  border-color: #f9a8d4;
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 35%);
}

.team-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.team-pill {
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: #ffffff;
}
.team-pill.mili { background: var(--mili-main); }
.team-pill.minnie { background: var(--minnie-main); }

.team-count {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
}

.preview-boss {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
}

.preview-boss img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.preview-boss strong {
  display: block;
  font-size: 1.15rem;
}

.boss-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 2px;
}

.preview-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mini-char-tile {
  background: #ffffff;
  border-radius: 12px;
  padding: 6px 4px;
  text-align: center;
  border: 1.5px solid #e2e8f0;
  transition: transform 0.2s ease;
}

.mini-char-tile:hover {
  transform: translateY(-3px) scale(1.04);
}

.mini-char-tile img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  margin: 0 auto 3px;
}

.mini-char-tile span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Centro Tela Inicial */
.start-center-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  border: 3px solid #fde68a;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.host-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: 20px;
  padding: 12px 14px;
}

.host-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  text-align: center;
}

.host-start-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.16));
  animation: gentleBob 3s ease-in-out infinite;
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.host-mic-badge {
  display: block;
  background: #d97706;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 2px;
}

.speech-bubble {
  position: relative;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.rules-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-chip {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}

.settings-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 18px;
}

.setting-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 8px;
  text-align: center;
}

.round-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.round-btn {
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 9px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.round-btn.active {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.toggles-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toggle-pill {
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.toggle-pill.active {
  background: #ecfdf5;
  border-color: #34d399;
  color: #065f46;
}

.primary-cta {
  border: none;
  background: linear-gradient(180deg, #ff5f6d 0%, #e11d48 100%);
  color: #ffffff;
  font-size: 1.32rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 7px 0 #9f1239, 0 14px 24px rgba(225, 29, 72, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.primary-cta:hover {
  filter: brightness(1.05);
}

.primary-cta:active {
  transform: translateY(4px);
  box-shadow: 0 3px 0 #9f1239, 0 6px 12px rgba(225, 29, 72, 0.3);
}

.primary-cta.tiebreaker {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 7px 0 #92400e, 0 14px 24px rgba(217, 119, 6, 0.35);
}

.secondary-cta {
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 16px;
  cursor: pointer;
}

/* ==================== PALCO DO JOGO ==================== */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto 14px;
}

.score-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  border: 3px solid #ffffff;
}

.score-box.mili-score { border-color: #4ade80; }
.score-box.minnie-score { border-color: #f472b6; }

.score-team-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.score-values {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.mili-score .score-num { color: var(--mili-dark); }
.minnie-score .score-num { color: var(--minnie-dark); }

.score-pts-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
}

.pie-counter {
  background: #fff1f2;
  border: 1.5px solid #fda4af;
  color: #be123c;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 4px 10px;
  border-radius: 999px;
}

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

.round-badge {
  background: #0f172a;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  border: 2px solid #cbd5e1;
  background: #ffffff;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 1rem;
  cursor: pointer;
}
.icon-btn.muted {
  opacity: 0.48;
  background: #f1f5f9;
}

/* Stage Grid */
.stage-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.45fr) minmax(260px, 1fr);
  gap: 16px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  align-items: stretch;
}

.team-stage {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  border: 3px solid #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-stage.mili-stage {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 42%);
}

.team-stage.minnie-stage {
  border-color: #f9a8d4;
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 42%);
}

.team-stage.answering-glow.mili-stage {
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.35), var(--shadow-lg);
}

.team-stage.answering-glow.minnie-stage {
  box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.35), var(--shadow-lg);
}

.team-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
}
.mili-banner { background: linear-gradient(135deg, #16a34a, #15803d); }
.minnie-banner { background: linear-gradient(135deg, #ec4899, #be185d); }

.active-member-pill {
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
}

.boss-podium {
  background: #ffffff;
  border-radius: 20px;
  padding: 10px;
  text-align: center;
  box-shadow: inset 0 0 0 2px #f1f5f9;
  position: relative;
}

.boss-crown {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.boss-sprite-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boss-sprite {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.16));
  transition: transform 0.25s ease;
}

.boss-sprite-wrap.hit .boss-sprite {
  animation: bossShake 0.55s ease-in-out;
}

.boss-sprite-wrap.cheer .boss-sprite {
  animation: bossJump 0.6s ease-in-out 2;
}

@keyframes bossShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-10px) rotate(-8deg) scale(0.95); }
  45% { transform: translateX(10px) rotate(7deg); }
  70% { transform: translateX(-6px) rotate(-4deg); }
}

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

.splat-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.cream-splat {
  position: absolute;
  width: 96px;
  height: 82px;
  transform: translate(-50%, -50%) scale(0);
  animation: splatPop 0.35s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18));
}

@keyframes splatPop {
  0% { transform: translate(-50%, -50%) scale(0.2) rotate(-18deg); opacity: 0; }
  70% { transform: translate(-50%, -50%) scale(1.15) rotate(6deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.96; }
}

.reaction-pop {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}

.reaction-pop.show {
  animation: popUpFade 1.4s ease forwards;
}

.reaction-pop.splat-msg {
  background: #ffe4e6;
  color: #be123c;
  border: 2px solid #fb7185;
}

.reaction-pop.yay-msg {
  background: #dcfce7;
  color: #15803d;
  border: 2px solid #4ade80;
}

@keyframes popUpFade {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.8); }
  20% { opacity: 1; transform: translate(-50%, -6px) scale(1.06); }
  80% { opacity: 1; transform: translate(-50%, -14px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -26px) scale(0.95); }
}

/* Roster Strip */
.roster-strip-wrap {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  padding: 8px;
}

.roster-strip-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-align: center;
}

.team-roster-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.roster-chip {
  background: #ffffff;
  border-radius: 10px;
  padding: 3px;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.roster-chip img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.roster-chip span {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-chip.is-active {
  border-color: #f59e0b;
  background: #fef9c3;
  transform: scale(1.1);
}

.roster-chip.celebrating {
  animation: bossJump 0.45s ease-in-out 2;
}

/* Botões de Sininho */
.bell-button {
  border: none;
  border-radius: 20px;
  padding: 13px 16px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform 0.1s ease, filter 0.15s ease, opacity 0.15s ease;
}

.mili-bell {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  box-shadow: 0 7px 0 #14532d, 0 12px 24px var(--mili-glow);
}

.minnie-bell {
  background: linear-gradient(180deg, #f472b6 0%, #db2777 100%);
  box-shadow: 0 7px 0 #831843, 0 12px 24px var(--minnie-glow);
}

.bell-button:not(:disabled):hover {
  filter: brightness(1.06);
}

.bell-button:not(:disabled):active,
.bell-button.pressed {
  transform: translateY(5px);
}

.bell-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.bell-button.ringing .bell-icon {
  animation: bellRing 0.45s ease-in-out;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(22deg) scale(1.2); }
  45% { transform: rotate(-20deg) scale(1.2); }
  70% { transform: rotate(14deg); }
}

.bell-icon { font-size: 1.7rem; line-height: 1; }
.bell-text { font-size: 1.15rem; font-weight: 700; }
.bell-key {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.24);
  padding: 2px 10px;
  border-radius: 999px;
}

/* Centro do Palco */
.center-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.host-stage-row {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 3px solid #fcd34d;
  border-radius: 22px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
}

.host-stage-figure {
  flex-shrink: 0;
  text-align: center;
}

.host-stage-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.16));
}

.host-stage-img.talking {
  animation: gentleBob 0.7s ease-in-out infinite;
}

.host-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  color: #92400e;
  margin-top: 2px;
}

.host-dialogue-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.speak-again-btn {
  align-self: flex-start;
  border: 2px solid #f59e0b;
  background: #ffffff;
  color: #92400e;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.speak-again-btn:hover { background: #fef3c7; }

/* Carta de Pergunta */
.question-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  border: 3px solid #bfdbfe;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pill {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.status-pill {
  font-weight: 800;
  font-size: 0.86rem;
  padding: 5px 14px;
  border-radius: 999px;
}
.status-pill.waiting { background: #fef9c3; color: #854d0e; }
.status-pill.mili-turn { background: #dcfce7; color: #166534; }
.status-pill.minnie-turn { background: #fce7f3; color: #9d174d; }
.status-pill.resolved { background: #e2e8f0; color: #334155; }

.timer-track {
  position: relative;
  height: 24px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #38bdf8, #3b82f6);
  transition: width 0.2s linear, background 0.25s ease;
}

.timer-fill.danger {
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.timer-text {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 900;
  color: #0f172a;
}

.question-text {
  font-size: clamp(1.22rem, 2vw, 1.58rem);
  line-height: 1.35;
  color: #0f172a;
  text-align: center;
  padding: 8px 4px;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-btn {
  border: 2.5px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  transition: all 0.14s ease;
}

.option-btn:not(:disabled):hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-2px);
}

.option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.opt-num {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #334155;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 900;
}

.option-btn.correct {
  background: #dcfce7;
  border-color: #16a34a;
  color: #14532d;
  opacity: 1;
}
.option-btn.correct .opt-num { background: #16a34a; color: #ffffff; }

.option-btn.wrong {
  background: #ffe4e6;
  border-color: #e11d48;
  color: #881337;
  opacity: 1;
}
.option-btn.wrong .opt-num { background: #e11d48; color: #ffffff; }

.feedback-bar {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.feedback-msg {
  font-weight: 800;
  font-size: 0.98rem;
}

.next-btn {
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.next-btn:hover { background: #1d4ed8; }

/* ==================== TORTA VOADORA E PARTICULAS ==================== */
.flying-pie {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.25));
}

.splat-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 49;
}

.cream-drop {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #fbcfe8;
  pointer-events: none;
}

/* ==================== TELA FINAL / PRÊMIO ==================== */
#victory-screen {
  justify-content: center;
  align-items: center;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.victory-card {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 32px;
  padding: 28px;
  max-width: 820px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fde047;
}

.trophy-hero {
  font-size: 4.5rem;
  line-height: 1;
  animation: bossJump 1.1s ease-in-out infinite;
}

.winner-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 5px 16px;
  border-radius: 999px;
  margin: 10px 0 6px;
}

.victory-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #0f172a;
}

.victory-prize {
  font-size: 1.1rem;
  font-weight: 800;
  color: #b45309;
  margin-top: 6px;
}

.victory-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.v-stat {
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v-stat.mili { background: #f0fdf4; border: 2px solid #86efac; }
.v-stat.minnie { background: #fdf2f8; border: 2px solid #f9a8d4; }
.v-stat span { font-family: 'Fredoka', sans-serif; font-size: 1.6rem; font-weight: 700; }
.v-stat small { font-weight: 700; color: var(--muted); }

.victory-parade {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 20px;
}

.victory-parade img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  animation: bossJump 0.9s ease-in-out infinite;
}

.victory-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsivo */
@media (max-width: 1080px) {
  .start-layout {
    grid-template-columns: 1fr;
  }
  .stage-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .team-roster-grid {
    grid-template-columns: repeat(11, 1fr);
  }
}

@media (max-width: 600px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
  .team-roster-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .victory-stats {
    grid-template-columns: 1fr;
  }
}
