/* ════════════════════════════════════════
   GAME 1 — MONTY HALL
   ════════════════════════════════════════ */
.doors-stage {
  display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
  perspective: 1200px; padding: 1rem;
}
.door-wrap { position: relative; width: 160px; }
.door-num  { text-align: center; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.15em; margin-bottom: 0.5rem; text-transform: uppercase; }

.door {
  width: 160px; height: 240px; position: relative; cursor: pointer;
  transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.door.open     { transform: rotateY(-160deg); }
.door.disabled { cursor: default; }
.door.chosen-glow::after {
  content: ''; position: absolute; inset: -3px; border-radius: 14px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.4), inset 0 0 20px rgba(201,168,76,0.05);
  z-index: 10; animation: chosenPulse 2s infinite;
}
@keyframes chosenPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.4), inset 0 0 20px rgba(201,168,76,0.05); }
  50%      { box-shadow: 0 0 35px rgba(201,168,76,0.6), inset 0 0 30px rgba(201,168,76,0.1); }
}

.door-front, .door-back {
  position: absolute; inset: 0; border-radius: 12px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center;
}
.door-front {
  background: linear-gradient(160deg, #1e2240 0%, #141728 100%);
  border: 1px solid rgba(255,255,255,0.08);
  flex-direction: column; gap: 1rem; transition: border-color 0.3s; overflow: hidden;
}
.door-front::after {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: rgba(255,255,255,0.04);
}
.door-front.winner-hint { animation: subtleWin 4s ease-in-out infinite; }
@keyframes subtleWin {
  0%, 100% { box-shadow: inset 0 0 0 rgba(0,255,179,0); }
  50%      { box-shadow: inset 0 0 18px rgba(0,255,179,0.04); }
}
.door:hover:not(.disabled) .door-front { border-color: rgba(201,168,76,0.35); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }

.door-number-big {
  font-family: 'Syne', sans-serif; font-size: 3.5rem; font-weight: 800;
  color: rgba(255,255,255,0.06); position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); pointer-events: none; user-select: none;
}
.door-handle {
  width: 8px; height: 8px; background: var(--gold-dim); border-radius: 50%;
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  box-shadow: 0 0 6px rgba(201,168,76,0.3);
}
.door-back {
  background: linear-gradient(160deg, #0f1022 0%, #0a0c18 100%);
  border: 1px solid rgba(255,255,255,0.04);
  transform: rotateY(180deg); flex-direction: column; gap: 0.5rem;
}
.door-back.is-car  { background: linear-gradient(160deg, #0d1a14 0%, #080f0d 100%); }
.door-back.is-goat { background: linear-gradient(160deg, #150d1a 0%, #0d0810 100%); }

.reveal-emoji { font-size: 3.5rem; animation: revealPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
.reveal-label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.door-eliminated .door-front { opacity: 0.4; border-color: transparent !important; }

/* ════════════════════════════════════════
   GAME 2 — GAMBLER'S FALLACY
   ════════════════════════════════════════ */
.roulette-history {
  display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center;
  max-width: 520px;
}
.rh-ball {
  width: 34px; height: 34px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700;
  animation: revealPop 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
.rh-ball.red   { background: #c0392b; color: #fff; }
.rh-ball.black { background: #1a1a2e; color: #aaa; border: 1px solid rgba(255,255,255,0.12); }
.rh-ball.green { background: #27ae60; color: #fff; }

.bet-area { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.bet-row  { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.bet-btn {
  padding: 0.7rem 1.4rem; border-radius: 10px; font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s ease;
}
.bet-btn.red-btn   { background: rgba(192,57,43,0.15); color: #e74c3c; border-color: rgba(192,57,43,0.3); }
.bet-btn.black-btn { background: rgba(255,255,255,0.05); color: var(--muted); border-color: rgba(255,255,255,0.1); }
.bet-btn.red-btn:hover   { background: rgba(192,57,43,0.3); border-color: #c0392b; }
.bet-btn.black-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.bet-btn.selected { transform: scale(1.05); box-shadow: 0 0 20px rgba(0,0,0,0.4); }
.bet-btn.red-btn.selected   { background: rgba(192,57,43,0.5); border-color: #e74c3c; }
.bet-btn.black-btn.selected { background: rgba(255,255,255,0.15); border-color: #aaa; color: #fff; }

.streak-counter {
  font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800;
  color: var(--gold); text-align: center;
}
.streak-label { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--muted); text-align: center; text-transform: uppercase; }

/* ════════════════════════════════════════
   GAME 3 — BAYES
   ════════════════════════════════════════ */
.bayes-scenario {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 2rem; max-width: 560px; width: 100%;
}
.scenario-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.scenario-desc  { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

.slider-group { display: flex; flex-direction: column; gap: 1.2rem; max-width: 500px; width: 100%; }
.slider-row label { font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.slider-row label span { color: var(--gold); font-weight: 600; }
input[type=range] {
  -webkit-appearance: none; width: 100%; height: 6px;
  background: rgba(255,255,255,0.07); border-radius: 100px; outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); cursor: pointer; box-shadow: 0 0 8px rgba(201,168,76,0.5);
}

.bayes-result-big {
  font-family: 'Syne', sans-serif; font-size: 4rem; font-weight: 800;
  color: var(--mint); text-align: center; transition: all 0.3s ease;
}
.bayes-result-label {
  font-size: 0.75rem; letter-spacing: 0.2em; color: var(--muted);
  text-align: center; text-transform: uppercase; margin-top: -0.5rem;
}

/* ════════════════════════════════════════
   GAME 4 — BIRTHDAY PARADOX
   ════════════════════════════════════════ */
.birthday-canvas-wrap {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 1.5rem; max-width: 560px; width: 100%;
}
canvas#birthdayChart { width: 100% !important; height: 220px; }

.people-counter {
  font-family: 'Syne', sans-serif; font-size: 3.5rem; font-weight: 800;
  color: var(--gold); text-align: center; line-height: 1;
}
.people-label { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--muted); text-align: center; text-transform: uppercase; margin-bottom: 1rem; }
.people-slider { width: 100%; max-width: 400px; }

.birthday-sim-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(16px, 1fr));
  gap: 4px; max-width: 480px; width: 100%; padding: 0.5rem;
}
.person-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}
.person-dot.match  { background: var(--danger); box-shadow: 0 0 8px rgba(255,79,107,0.6); border-color: var(--danger); }
.person-dot.unique { background: var(--violet); border-color: var(--violet); }
