/* impostor.css - Premium Overhaul */

/* ============================================================
   LAYOUT
   ============================================================ */
.container-imp {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  /* Premium text colors for the dark container */
  --text-primary: #fff8e1;
  --text-secondary: rgba(255, 248, 225, 0.7);
  --border-color: rgba(255, 179, 0, 0.3);
  --bg-secondary: rgba(0, 0, 0, 0.4);
  --bg-card: rgba(30, 20, 18, 0.85);
  --color-primary: #e63946;
  --color-gold: #ffb300;
  --color-success: #22c55e;
}

/* Override game-container text inside impostor to fit the dark theme */
.container-imp .game-container {
  color: var(--text-primary);
}

/* ============================================================
   TOP HEADER
   ============================================================ */
.imp-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0 1rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.25rem;
}

/* Timer */
.imp-timer-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  transition: opacity 0.15s;
}
.imp-timer-wrap.imp-timer-pending { opacity: 0; }

.imp-timer-bar-outer {
  flex: 1;
  height: 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
  min-width: 40px;
  border: 2px solid #6d4c41;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.6);
}

.imp-timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ffb300, #ff6f00);
  border-radius: 6px;
  transition: width 0.1s linear, background 0.3s;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2), 0 0 8px rgba(255, 179, 0, 0.5);
}

.imp-timer-bar.warning {
  background: linear-gradient(90deg, #f57c00, #ff9800);
  box-shadow: 0 0 6px rgba(245, 124, 0, 0.5);
}

.imp-timer-bar.danger {
  background: linear-gradient(90deg, #e53935, #b71c1c);
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.5);
  animation: imp-bar-pulse 0.6s ease-in-out infinite alternate;
}

.imp-timer-bar.ended {
  background: #c62828;
  box-shadow: none;
  animation: none;
}

@keyframes imp-bar-pulse {
  from { opacity: 1; }
  to   { opacity: 0.5; }
}

.imp-timer-display {
  font-family: 'Pirata One', cursive;
  font-size: 1.5rem;
  min-width: 3.5rem;
  text-align: right;
  color: #3e2723;
  padding: 0 8px;
  flex-shrink: 0;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.imp-timer-display.warning {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.5);
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.imp-timer-display.danger {
  color: #e63946;
  border-color: rgba(230, 57, 70, 0.5);
  text-shadow: 0 0 8px rgba(230, 57, 70, 0.5);
  animation: imp-pulse 0.6s ease-in-out infinite alternate;
}

.imp-timer-display.ended {
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.3);
  text-shadow: none;
  animation: none;
}

@keyframes imp-pulse {
  from { opacity: 1; text-shadow: 0 0 10px rgba(230, 57, 70, 0.8); }
  to   { opacity: 0.4; text-shadow: none; }
}

/* Timer OFF note */
.imp-timer-off-note {
  text-align: center;
  font-size: 0.85rem;
  color: #fbbf24;
  font-weight: 600;
  margin: 0 0 0.8rem;
  text-shadow: 0 0 5px rgba(251, 191, 36, 0.4);
}

/* Round progress */
.imp-progress {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem;
  flex-shrink: 0;
  padding: 0 12px;
  border-left: 2px solid rgba(141, 110, 99, 0.3);
  border-right: 2px solid rgba(141, 110, 99, 0.3);
}

.imp-progress-label { font-weight: 700; color: #5d4037; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; text-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.imp-progress-num   { font-family: 'Pirata One', cursive; color: #3e2723; font-size: 1.6rem; margin: 0 2px; line-height: 1; padding-top: 4px; text-shadow: 0 2px 4px rgba(0,0,0,0.25); }
.imp-progress-sep   { font-weight: 700; color: #8d6e63; font-size: 0.95rem; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }

/* Score */
.imp-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 4px;
}

.imp-score-num {
  font-family: 'Pirata One', cursive;
  font-size: 1.8rem;
  color: #c62828;
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s;
  line-height: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.imp-score-num.bump {
  animation: imp-score-bump 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes imp-score-bump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4) rotate(5deg); color: #ff4d4d; text-shadow: 0 0 15px #ff4d4d; }
  100% { transform: scale(1); }
}

.imp-score-label {
  font-size: 0.75rem;
  color: #8d6e63;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ============================================================
   QUESTION
   ============================================================ */
.imp-question {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.5rem 0 1rem;
  font-family: 'Pirata One', cursive;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* ============================================================
   STREAK DOTS
   ============================================================ */
.imp-streak-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  min-height: 1.2rem;
}

.imp-streak-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.imp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.imp-dot.correct { 
  background: var(--color-success); 
  transform: scale(1.2); 
  box-shadow: 0 0 8px var(--color-success);
}
.imp-dot.wrong   { 
  background: var(--color-primary); 
  box-shadow: 0 0 8px var(--color-primary);
}

/* ============================================================
   CHARACTER CARDS (PREMIUM OVERHAUL)
   ============================================================ */
.imp-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  perspective: 1000px;
}

@media (max-width: 520px) {
  .imp-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
  .imp-card {
    width: calc(33.33% - 0.55rem);
    box-sizing: border-box;
    flex-shrink: 0;
  }
}

@media (max-width: 340px) {
  .imp-cards {
    gap: 0.6rem;
  }
  .imp-card {
    width: calc(50% - 0.3rem);
  }
}

.imp-loading {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}

.imp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.7rem 0.6rem 0.8rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: var(--bg-card);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4), inset 0 0 10px rgba(255, 255, 255, 0.02);
  overflow: visible;
  transform-style: preserve-3d;
}

/* Card Entrance Animation */
.imp-card.enter {
  animation: impCardEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.imp-card.enter:nth-child(1) { animation-delay: 0.1s; }
.imp-card.enter:nth-child(2) { animation-delay: 0.15s; }
.imp-card.enter:nth-child(3) { animation-delay: 0.2s; }
.imp-card.enter:nth-child(4) { animation-delay: 0.25s; }
.imp-card.enter:nth-child(5) { animation-delay: 0.3s; }

@keyframes impCardEnter {
  0% { transform: translateY(30px) scale(0.8) rotateX(20deg); opacity: 0; }
  100% { transform: translateY(0) scale(1) rotateX(0); opacity: 1; }
}

@media (hover: hover) {
  .imp-card:hover:not(.disabled) {
    border-color: var(--color-gold);
    transform: translateY(-8px) scale(1.05);
    box-shadow:
      0 15px 30px rgba(0,0,0,0.6),
      0 0 15px rgba(255, 179, 0, 0.4),
      inset 0 0 15px rgba(255, 179, 0, 0.1);
    z-index: 10;
  }
}

.imp-card.disabled {
  cursor: default;
  pointer-events: none;
}

.imp-card.selected {
  border-color: var(--color-gold);
  background: rgba(255, 179, 0, 0.1);
  box-shadow: 0 0 20px rgba(255, 179, 0, 0.5);
  transform: translateY(-4px) scale(1.02);
}

.imp-card.reveal-correct {
  border-color: var(--color-success);
  background: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.6), inset 0 0 15px rgba(34, 197, 94, 0.3);
  animation: imp-flash-correct 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 20;
}

.imp-card.reveal-wrong {
  border-color: var(--color-primary);
  background: rgba(230, 57, 70, 0.15);
  box-shadow: 0 0 25px rgba(230, 57, 70, 0.6), inset 0 0 15px rgba(230, 57, 70, 0.3);
  animation: imp-flash-wrong 0.6s ease-in-out;
  z-index: 20;
}

.imp-card.reveal-impostor {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.8), inset 0 0 20px rgba(245, 158, 11, 0.4);
  transform: translateY(-10px) scale(1.08);
  z-index: 25;
}

@keyframes imp-flash-correct {
  0%   { transform: scale(1) translateY(0); }
  50%  { transform: scale(1.15) translateY(-10px); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes imp-flash-wrong {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-8px) rotate(-3deg); }
  30%      { transform: translateX(8px) rotate(3deg); }
  45%      { transform: translateX(-8px) rotate(-3deg); }
  60%      { transform: translateX(8px) rotate(3deg); }
  75%      { transform: translateX(-4px) rotate(-1deg); }
}

.imp-card-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  margin-bottom: 0.5rem;
  position: relative;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.05);
}

.imp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

@media (hover: hover) {
  .imp-card:hover .imp-card-img {
    transform: scale(1.1);
  }
}

.imp-card-name {
  font-size: 0.82rem;
  text-align: center;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  word-break: break-word;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

@media (max-width: 520px) {
  .imp-card {
    padding: 0.5rem 0.4rem 0.6rem;
  }
  .imp-card-name {
    font-size: 0.72rem;
  }
}

/* Impostor badge shown after reveal */
.imp-card-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 2px solid #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
  animation-delay: 0.2s;
  z-index: 30;
}

@keyframes badgePop {
  0% { transform: scale(0) rotate(-45deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ============================================================
   ROUND FEEDBACK
   ============================================================ */
.imp-feedback {
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  background: var(--bg-card);
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5), inset 0 0 15px rgba(255,255,255,0.02);
  animation: imp-feedback-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

@keyframes imp-feedback-in {
  from { opacity: 0; transform: translateY(-15px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.imp-feedback-text {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.imp-feedback-text.correct { 
  color: var(--color-success); 
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}
.imp-feedback-text.wrong { 
  color: var(--color-primary); 
  text-shadow: 0 0 10px rgba(230, 57, 70, 0.4);
}

.imp-category-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}
.imp-category-label strong {
  color: var(--color-gold);
  font-weight: 700;
}

/* Botón "Siguiente" / "Ver resultado": avance manual de ronda */
.imp-next-btn {
  margin-top: 0.9rem;
  padding: 0.6rem 2rem;
  border: 1px solid rgba(141, 110, 99, 0.5);
  border-radius: 10px;
  background: rgba(255, 248, 225, 0.85);
  color: #3e2723;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
}
.imp-next-btn:active {
  transform: translateY(0);
}

/* ============================================================
   FINAL SCORE BREAKDOWN
   ============================================================ */
.imp-final-breakdown {
  background: rgba(0, 0, 0, 0.65);
  border-radius: 12px;
  padding: 1.2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 179, 0, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 100%;
  box-sizing: border-box;
}

/* Enhanced Receipt Layout */
.imp-receipt-row {
  display: grid;
  grid-template-columns: 1fr auto 95px;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
  border-radius: 8px;
}

.imp-receipt-row:last-of-type {
  border-bottom: none;
}

.imp-receipt-row:hover {
  background: rgba(255, 179, 0, 0.06);
}

@media (max-width: 400px) {
  .imp-receipt-row {
    grid-template-columns: 1fr auto 75px;
    gap: 0.4rem;
    font-size: 0.95rem;
    padding: 0.5rem 0.3rem;
  }
}

.receipt-icon {
  margin-right: 8px;
  width: 1.3em;
  height: 1.3em;
  flex-shrink: 0;
  stroke: #ffb300;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.receipt-label {
  font-weight: 600;
  color: #ffeba1;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.receipt-calc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
  font-family: 'Roboto', monospace;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.receipt-note {
  font-size: 0.75em;
  color: #fbbf24;
  opacity: 1;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 3px;
}

.receipt-val {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  color: #ffffff;
  text-align: right;
  font-size: 1.15rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.imp-time-bonus-row .receipt-val {
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.5), 0 2px 4px rgba(0,0,0,0.8);
}

.receipt-divider {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 0, 0.6), transparent);
  margin: 1.2rem 0;
}

.imp-receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.2) 0%, rgba(255, 179, 0, 0.25) 100%);
  border: 1px solid rgba(255, 179, 0, 0.6);
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(255, 179, 0, 0.15), 0 6px 20px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

/* Shine effect for TOTAL */
.imp-receipt-total::before {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  animation: receiptShine 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes receiptShine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.imp-receipt-total strong:first-child {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1.4rem;
  color: #ffb300;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  position: relative;
  z-index: 2;
}

.imp-receipt-total strong:last-child {
  color: #ffb300;
  font-size: 1.8rem;
  text-shadow: 0 0 15px rgba(255, 179, 0, 0.7), 0 2px 5px rgba(0,0,0,0.9);
  position: relative;
  z-index: 2;
}

/* Aciertos en modo sin tiempo (sin puntuación), dentro del recuadro del resultado.
   Se usa el ID para ganar especificidad a `.game-result-modal p`. */
#impWinHits {
  font-family: 'Pirata One', cursive;
  font-size: 2.2rem;
  color: #ffe082;
  text-align: center;
  margin: 6px 0 0;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(255, 224, 130, 0.5), 0 2px 5px rgba(0, 0, 0, 0.9);
}

/* End game modals overrides specifically for impostor */
.container-imp .game-result-modal {
  max-width: 100%;
}

.container-imp .game-result-content {
  background: var(--bg-card);
  border: 2px solid var(--color-gold);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 0 20px rgba(255, 179, 0, 0.1);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: var(--text-primary);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.container-imp .game-result-content.is-loss {
  border-color: var(--color-primary);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 0 20px rgba(230, 57, 70, 0.1);
}

.container-imp .game-result-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}

.container-imp .game-result-title {
  font-family: 'Pirata One', cursive;
  font-size: 2.5rem;
  color: var(--color-gold);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 0.5rem;
}

.container-imp .game-result-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.game-result-modal.hidden {
  display: none !important;
}

.container-imp .countdown-container {
  margin-top: 0 !important;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 12px;
  border: 1px solid rgba(255, 179, 0, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.container-imp .game-result-modal {
  gap: 20px;
}

/* ============================================================
   DESKTOP ENHANCEMENTS (≥ 768px)
   ============================================================ */
@media (min-width: 768px) {
  .imp-question {
    font-size: 1.45rem;
    margin: 0.75rem 0 1.25rem;
  }

  .imp-card-img-wrap {
    margin-bottom: 0.7rem;
  }

  .imp-top-header {
    padding: 0.75rem 0 1.25rem;
    margin-bottom: 1.5rem;
  }

  .imp-score-num {
    font-size: 1.6rem;
  }

  .imp-timer-display {
    font-size: 1.4rem;
  }
}

/* ============================================================
   TUTORIAL COMPACT OVERRIDES
   (impostor has 4 steps + toggle option — needs more vertical room)
   ============================================================ */
#tutorialModal .tutorial-content {
  padding: 20px 20px 24px;
  max-height: 96vh;
}

#tutorialModal .tutorial-title {
  font-size: 1.9rem;
  margin-bottom: 14px;
}

#tutorialModal .tutorial-steps {
  gap: 10px;
  margin-bottom: 14px;
}

#tutorialModal .tutorial-steps .anim-box {
  height: 46px;
}

#tutorialModal .tutorial-steps .step-emoji {
  font-size: 1.8rem;
}

#tutorialModal .tutorial-steps .step-card h3 {
  font-size: 0.95rem;
  margin: 6px 0 3px;
}

#tutorialModal .tutorial-steps .step-card p {
  font-size: 0.8rem;
  line-height: 1.25;
}

#tutorialModal .tutorial-options {
  margin-top: 14px;
}

#tutorialModal .btn-play {
  margin-top: 14px;
}

/* ============================================================
   TUTORIAL TOGGLE SWITCH
   ============================================================ */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider         { background-color: #ffd700; }
input:focus  + .slider          { box-shadow: 0 0 1px #ffd700; }
input:checked + .slider:before  { transform: translateX(26px); }

.slider.round        { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.toggle-label {
  font-size: 22px;
  font-weight: bold;
  color: var(--color-gold, #ffd700);
  font-family: 'Pirata One', cursive;
  text-shadow: 2px 2px 0 #3e2723;
}

@media (max-width: 600px) {
  .toggle-label { font-size: 16px; }
}

/* ============================================================
   DARK MODE COMPATIBILITY (Base is already dark, just tweak borders)
   ============================================================ */
@media (prefers-color-scheme: dark) {
  /* Our base is already a premium dark theme, we just keep it looking great */
}
