/* === Mission Control Font Faces === */
@font-face {
  font-family: 'TT Norms Pro';
  src: url('fonts/TT_Norms_Pro_Trial_Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Norms Pro';
  src: url('fonts/TT_Norms_Pro_Trial_Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Norms Pro';
  src: url('fonts/TT_Norms_Pro_Trial_Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Norms Pro';
  src: url('fonts/TT_Norms_Pro_Trial_Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === Design Tokens === */
:root {
  --text-zoom: 1;
  --mc-bg-primary: #03176e;
  --mc-bg-secondary: #0a2080;
  --mc-bg-card: rgba(3, 23, 110, 0.85);
  --mc-accent: #8BA8FD;
  --mc-accent-glow: rgba(139, 168, 253, 0.35);
  --mc-accent-dim: rgba(139, 168, 253, 0.15);
  --mc-correct: #66bb6a;
  --mc-correct-glow: rgba(102, 187, 106, 0.4);
  --mc-text-primary: #ffffff;
  --mc-text-secondary: #b0bce0;
  --mc-text-dim: rgba(255, 255, 255, 0.35);
  --mc-button-bg: #0a2080;
  --mc-button-hover: #1a30a0;
  --mc-border-radius: 12px;
  --mc-border-radius-lg: 16px;
  --mc-font-family: 'TT Norms Pro', Arial, sans-serif;
  --mc-overlay: rgba(0, 0, 0, 0.2);
  --mc-transition: 400ms;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--mc-font-family);
  background: var(--mc-bg-primary);
  color: var(--mc-text-primary);
  -webkit-font-smoothing: antialiased;
}

/* === Screen Management === */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mc-transition) ease;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
}

.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity var(--mc-transition) ease;
}

.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: opacity var(--mc-transition) ease;
}

/* === Buttons === */
.btn {
  font-family: var(--mc-font-family);
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: var(--mc-border-radius);
  transition: all 200ms ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--mc-accent);
  color: var(--mc-bg-primary);
  padding: 14px 36px;
  font-size: calc(1.1rem * var(--text-zoom));
}

.btn-primary:hover {
  background: #a3bcfe;
  box-shadow: 0 0 20px var(--mc-accent-glow);
}

.btn-primary::after,
.btn-action::after {
  content: ' \2192';
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-large {
  padding: 20px 56px;
  font-size: calc(1.4rem * var(--text-zoom));
  border-radius: var(--mc-border-radius-lg);
}

/* === LOADING SCREEN === */
#screen-loading {
  background: var(--mc-bg-primary);
  flex-direction: column;
}

.loading-content {
  text-align: center;
}

.loading-title {
  font-size: calc(3rem * var(--text-zoom));
  font-weight: 700;
  color: var(--mc-accent);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.loading-subtitle {
  font-size: calc(1.3rem * var(--text-zoom));
  color: var(--mc-text-secondary);
  margin-bottom: 48px;
  letter-spacing: -0.005em;
  line-height: 130%;
}

.progress-bar-container {
  width: 320px;
  height: 6px;
  background: var(--mc-bg-secondary);
  border-radius: 3px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--mc-accent);
  border-radius: 3px;
  transition: width 200ms ease;
}

.loading-status {
  font-size: calc(0.9rem * var(--text-zoom));
  color: var(--mc-text-secondary);
}

/* === Language Selector === */
.lang-selector {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.lang-btn {
  background: rgba(49, 96, 237, 0.25);
  border: 2px solid rgba(243, 244, 255, 0.15);
  border-radius: 8px;
  font-size: calc(35px * var(--text-zoom));
  cursor: pointer;
  padding: 5px 9px;
  opacity: 0.5;
  transition: all 0.2s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  opacity: 0.8;
  background: rgba(49, 96, 237, 0.4);
}

.lang-btn img.emoji {
  width: calc(31px * var(--text-zoom));
  height: calc(31px * var(--text-zoom));
  vertical-align: middle;
}

.lang-btn.active {
  background: #32D8FD;
  border-color: #32D8FD;
  opacity: 1;
}

/* === START SCREEN === */
#screen-start {
  background: linear-gradient(180deg, #03186E 0%, #0731AF 50%, #3160ED 100%);
}

#screen-start .btn-primary {
  background: #BDEB57;
  color: #050027;
}

#screen-start .btn-primary:hover {
  background: #ccf074;
  box-shadow: 0 0 24px rgba(189, 235, 87, 0.4);
}

.instruction-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: rgba(243, 244, 255, 0.5);
  font-size: calc(1.6rem * var(--text-zoom));
  font-weight: 700;
  line-height: 1;
}

#screen-start .instruction-icon {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.start-content {
  text-align: center;
}

.start-title {
  font-size: calc(2.8rem * var(--text-zoom));
  font-weight: 700;
  color: #F3F4FF;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 100%;
}

.start-subtitle {
  font-size: calc(1.5rem * var(--text-zoom));
  color: rgba(243, 244, 255, 0.75);
  margin-bottom: 48px;
  letter-spacing: -0.005em;
  line-height: 130%;
}

.start-instructions {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 56px;
}

.instruction-card {
  position: relative;
  flex: 1;
  max-width: 480px;
  min-width: 200px;
  background: rgba(49, 96, 237, 0.2);
  border: 2px solid rgba(243, 244, 255, 0.12);
  border-radius: var(--mc-border-radius-lg);
  padding: 3vh 2.5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
  backdrop-filter: blur(8px);
}

.instruction-icon {
  width: calc(clamp(64px, 10vw, 100px) * var(--text-zoom));
  height: calc(clamp(80px, 12vh, 120px) * var(--text-zoom));
  object-fit: contain;
}

.instruction-text {
  font-size: calc(clamp(1.4rem, 2.5vw, 1.8rem) * var(--text-zoom));
  font-weight: 500;
  color: #F3F4FF;
  white-space: nowrap;
  letter-spacing: -0.005em;
  line-height: 130%;
}

/* === GAME SCREEN === */
#screen-game {
  flex-direction: column;
  justify-content: center;
  padding: 2vh 3vw 2vh;
  gap: 1.2vh;
}

.game-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 600ms ease;
  z-index: 0;
}

/* Steady zoom during question countdown */
.game-background.zoom-question {
  animation: zoom-question var(--question-zoom-duration, 6000ms) linear forwards;
}

@keyframes zoom-question {
  from { transform: scale(1); }
  to { transform: scale(1.13); }
}

/* Zoom back out to normal on reveal */
.game-background.zoom-reveal {
  transform: scale(1);
  transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(3, 24, 110, 0.50) 0%,
      rgba(3, 24, 110, 0.20) 12%,
      rgba(3, 24, 110, 0.0) 22%,
      rgba(3, 24, 110, 0.0) 55%,
      rgba(3, 24, 110, 0.60) 100%
    );
}

.game-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(3, 24, 110, 0);
  transition: background 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.game-overlay.overlay-answering::after {
  background: rgba(3, 24, 110, 0.45);
  transition: background calc(var(--question-countdown-duration, 6000ms) * 0.6) ease-in;
}


.game-overlay.overlay-reveal::after {
  background: rgba(3, 24, 110, 0.10);
  transition: background 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.game-overlay.overlay-focus::after {
  background: rgba(3, 24, 110, 0.80);
  transition: background 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#screen-game > *:not(.game-background):not(.game-overlay):not(.screen-flash):not(.dramatic-countdown):not(.image-phase-label):not(.action-area):not(.game-transition-overlay) {
  position: relative;
  z-index: 2;
}

/* === Screen Flash === */
.screen-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.screen-flash.flash {
  animation: flash-bang 0.4s ease-out forwards;
}

@keyframes flash-bang {
  0% { opacity: 0.7; }
  100% { opacity: 0; }
}

/* === Screen Shake === */
#screen-game.shake {
  animation: screen-shake 0.4s ease-out;
}

@keyframes screen-shake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-4px, 2px); }
  30% { transform: translate(4px, -2px); }
  45% { transform: translate(-3px, -1px); }
  60% { transform: translate(3px, 1px); }
  75% { transform: translate(-2px, 1px); }
}

/* === Dramatic Countdown Overlay (3..2..1..LOCK!) === */
.dramatic-countdown {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
}

.dramatic-countdown.active {
  display: flex;
}

.dramatic-countdown span {
  font-size: calc(16rem * var(--text-zoom));
  font-weight: 700;
  color: var(--mc-text-primary);
  text-shadow:
    0 0 60px rgba(139, 168, 253, 0.8),
    0 0 120px rgba(139, 168, 253, 0.4),
    0 4px 20px rgba(0, 0, 0, 0.7);
  animation: countdown-pop 0.75s cubic-bezier(0.2, 0, 0.2, 1) forwards;
  will-change: transform, opacity;
}

@keyframes countdown-pop {
  0% {
    transform: scale(3);
    opacity: 0;
  }
  15% {
    transform: scale(0.85);
    opacity: 1;
  }
  30% {
    transform: scale(1.1);
    opacity: 1;
  }
  60% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.7);
    opacity: 0;
  }
}


/* === Image Phase === */
.image-phase-label {
  position: absolute;
  top: 5vh;
  left: 4vw;
  z-index: 3;
  transition: opacity var(--mc-transition) ease;
}

.image-phase-label span {
  font-size: calc(3.5rem * var(--text-zoom));
  font-weight: 700;
  color: #F3F4FF;
  text-shadow: 0 2px 6px rgba(5, 0, 39, 0.45);
  letter-spacing: -0.01em;
}

.image-countdown {
  width: 48px;
  height: 48px;
}

.image-countdown svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.image-countdown-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 3;
}

.image-countdown-fill {
  fill: none;
  stroke: var(--mc-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset linear;
}

.game-background.zoom-image-phase {
  animation: ken-burns-zoom var(--image-phase-duration, 4000ms) ease-in-out forwards;
}

@keyframes ken-burns-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.015); }
}

.qa-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.2vh;
  border-radius: var(--mc-border-radius-lg);
}

/* === Question Area — clean, no box === */
.question-area {
  text-align: center;
  transition: opacity var(--mc-transition) ease;
  padding: 0 2vw;
  border-radius: var(--mc-border-radius-lg);
}

.reveal-backdrop {
  background: rgba(3, 24, 110, 0.10);
  padding: 2vh 3vw;
  backdrop-filter: blur(6px);
  border-radius: var(--mc-border-radius-lg);
  animation: backdrop-fade-in 1.5s ease forwards;
}

@keyframes backdrop-fade-in {
  from { background: rgba(3, 24, 110, 0); backdrop-filter: blur(0); }
  to { background: rgba(3, 24, 110, 0.10); backdrop-filter: blur(6px); }
}

.question-area.enter {
  animation: question-slide-down 0.5s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

@keyframes question-slide-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-counter {
  font-size: calc(0.95rem * var(--text-zoom));
  font-weight: 700;
  color: #32D8FD;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(5, 0, 39, 0.5);
}

.question-text {
  font-size: calc(clamp(1.6rem, 3.5vw, 2.6rem) * var(--text-zoom));
  font-weight: 700;
  line-height: 125%;
  letter-spacing: -0.01em;
  max-width: 75vw;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(5, 0, 39, 0.5);
}

/* === Reveal Text — pulled out of question area === */
.reveal-text {
  text-align: center;
  font-size: calc(clamp(1.1rem, 2.2vw, 1.5rem) * var(--text-zoom));
  color: #F3F4FF;
  max-width: 70vw;
  margin: 0 auto;
  background: rgba(7, 49, 175, 0.70);
  padding: 1.5vh 2.5vw;
  border-radius: var(--mc-border-radius);
  border-left: 4px solid #BDEB57;
  line-height: 150%;
  transition: opacity var(--mc-transition) ease;
  backdrop-filter: blur(10px);
}

.reveal-text strong {
  color: #F3F4FF;
}

.reveal-text.enter {
  animation: reveal-pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             reveal-glow-pulse 1.2s ease-out 0.4s forwards;
}

@keyframes reveal-pop-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes reveal-glow-pulse {
  0% { box-shadow: 0 0 0px rgba(189, 235, 87, 0); }
  30% { box-shadow: 0 0 24px rgba(189, 235, 87, 0.4), 0 0 48px rgba(189, 235, 87, 0.15); }
  100% { box-shadow: 0 0 0px rgba(189, 235, 87, 0); }
}

/* === Answer Cards === */
.answers-area {
  display: flex;
  flex-direction: column;
  gap: 0.8vh;
  justify-content: center;
  padding: 0 6vw;
  transition: opacity var(--mc-transition) ease;
}

.answer-card {
  position: relative;
  background: rgba(7, 49, 175, 0.82);
  border: 1px solid rgba(49, 96, 237, 0.35);
  border-radius: var(--mc-border-radius);
  padding: 1.4vh 2vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5vw;
  transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

/* Staggered entrance */
.answer-card.deal-in {
  animation: card-deal-in 0.4s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.answer-card[data-index="0"].deal-in { animation-delay: 0ms; }
.answer-card[data-index="1"].deal-in { animation-delay: 100ms; }
.answer-card[data-index="2"].deal-in { animation-delay: 200ms; }

@keyframes card-deal-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Idle pulse while waiting for answer */
.answer-card.waiting {
  animation: card-idle-pulse 2s ease-in-out infinite;
}

.answer-card[data-index="1"].waiting { animation-delay: 0.3s; }
.answer-card[data-index="2"].waiting { animation-delay: 0.6s; }

@keyframes card-idle-pulse {
  0%, 100% { border-color: rgba(50, 216, 253, 0.15); }
  50% { border-color: rgba(50, 216, 253, 0.35); }
}

.answer-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3vh;
  flex-shrink: 0;
  width: calc(44px * var(--text-zoom));
}

.answer-badge {
  color: #32D8FD;
  font-size: calc(1rem * var(--text-zoom));
  font-weight: 700;
  line-height: 1;
  opacity: 0.8;
}

.answer-icon {
  width: calc(32px * var(--text-zoom));
  height: calc(36px * var(--text-zoom));
  object-fit: contain;
  opacity: 0.6;
  filter: brightness(0) invert(1);
}

.answer-text {
  font-size: calc(clamp(1.3rem, 2.5vw, 1.8rem) * var(--text-zoom));
  font-weight: 500;
  text-align: left;
  line-height: 125%;
  letter-spacing: -0.005em;
  flex: 1;
}

/* === Answer States — Reveal === */

/* Correct: Siri-style animated gradient glow */
.answer-card.correct {
  border-color: transparent;
  z-index: 5;
  backdrop-filter: none;
  overflow: visible;
}

.answer-card.correct > * {
  position: relative;
  z-index: 2;
}

.answer-card.correct::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--mc-border-radius) + 3px);
  padding: 3px;
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    #8BA8FD,
    #66bb6a,
    #d4ff00,
    #8BA8FD,
    #66bb6a,
    #d4ff00,
    #8BA8FD
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: siri-glow-rotate 3s linear infinite;
  z-index: 0;
}

.answer-card.correct::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--mc-border-radius) + 10px);
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    #8BA8FD33,
    #66bb6a33,
    #d4ff0033,
    #8BA8FD33,
    #66bb6a33,
    #d4ff0033,
    #8BA8FD33
  );
  filter: blur(16px);
  animation: siri-glow-rotate 3s linear infinite;
  z-index: -1;
}

@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes siri-glow-rotate {
  to { --glow-angle: 360deg; }
}


/* === Wrong answer reveal effects === */

/* 1. FADE (default) — slide left + fade */
.answers-area.reveal-fade .answer-card.wrong {
  animation: wrong-fade 0.5s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.answers-area.reveal-fade .answer-card[data-index="1"].wrong { animation-delay: 80ms; }
.answers-area.reveal-fade .answer-card[data-index="2"].wrong { animation-delay: 160ms; }

@keyframes wrong-fade {
  0% { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0.12; transform: translateX(-20px) scale(0.95); }
}

/* 2. DESTROY — flash red, violent shake, implode */
.answers-area.reveal-destroy .answer-card.wrong {
  animation: wrong-destroy 0.7s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.answers-area.reveal-destroy .answer-card[data-index="1"].wrong { animation-delay: 150ms; }
.answers-area.reveal-destroy .answer-card[data-index="2"].wrong { animation-delay: 300ms; }

@keyframes wrong-destroy {
  0% { opacity: 1; transform: scale(1) rotate(0deg); background: rgba(7, 49, 175, 0.82); }
  15% { opacity: 1; transform: scale(1.04) rotate(0deg); background: rgba(209, 33, 67, 0.5); }
  25% { transform: scale(1.02) rotate(1.5deg); }
  35% { transform: scale(1) rotate(-2deg); background: rgba(209, 33, 67, 0.3); }
  45% { transform: scale(0.9) rotate(1deg); }
  60% { transform: scale(0.6) rotate(-1.5deg); opacity: 0.6; }
  100% { transform: scale(0) rotate(3deg); opacity: 0; }
}

/* 3. THROW — fly off screen in opposite directions with spin */
.answers-area.reveal-throw .answer-card.wrong:nth-child(1) {
  animation: wrong-throw-left 0.6s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.answers-area.reveal-throw .answer-card.wrong:nth-child(2) {
  animation: wrong-throw-right 0.6s cubic-bezier(0.4, 0, 1, 1) forwards;
  animation-delay: 100ms;
}
.answers-area.reveal-throw .answer-card.wrong:nth-child(3) {
  animation: wrong-throw-left 0.6s cubic-bezier(0.4, 0, 1, 1) forwards;
  animation-delay: 100ms;
}

@keyframes wrong-throw-left {
  0% { opacity: 1; transform: translateX(0) rotate(0deg); }
  30% { opacity: 1; transform: translateX(30px) rotate(2deg); }
  100% { opacity: 0; transform: translateX(-120vw) rotate(-40deg); }
}

@keyframes wrong-throw-right {
  0% { opacity: 1; transform: translateX(0) rotate(0deg); }
  30% { opacity: 1; transform: translateX(-30px) rotate(-2deg); }
  100% { opacity: 0; transform: translateX(120vw) rotate(40deg); }
}

/* 4. SHRINK — vortex/black hole suck, spiral into nothing */
.answers-area.reveal-shrink .answer-card.wrong {
  animation: wrong-shrink 0.7s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.answers-area.reveal-shrink .answer-card[data-index="1"].wrong { animation-delay: 120ms; }
.answers-area.reveal-shrink .answer-card[data-index="2"].wrong { animation-delay: 240ms; }

@keyframes wrong-shrink {
  0% { opacity: 1; transform: scale(1) rotate(0deg); }
  30% { opacity: 1; transform: scale(0.9) rotate(3deg); }
  50% { opacity: 0.8; transform: scale(0.6) rotate(-8deg); }
  70% { opacity: 0.5; transform: scale(0.3) rotate(15deg); }
  100% { opacity: 0; transform: scale(0) rotate(40deg); }
}

/* 5. CRUSH — squash flat and fade */
.answers-area.reveal-crush .answer-card.wrong {
  transform-origin: center bottom;
  animation: wrong-crush 0.6s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.answers-area.reveal-crush .answer-card[data-index="1"].wrong { animation-delay: 100ms; }
.answers-area.reveal-crush .answer-card[data-index="2"].wrong { animation-delay: 200ms; }

@keyframes wrong-crush {
  0% { opacity: 1; transform: scaleY(1) scaleX(1); }
  30% { opacity: 1; transform: scaleY(1.08) scaleX(0.97); }
  50% { opacity: 0.8; transform: scaleY(0.4) scaleX(1.1); }
  70% { opacity: 0.4; transform: scaleY(0.1) scaleX(1.15); }
  100% { opacity: 0; transform: scaleY(0) scaleX(1.2); }
}

/* === Question Transitions === */
.game-transition-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
}

/* Swoop — choreographed element exits */
.exit-up {
  animation: exit-slide-up 0.9s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

.exit-right {
  animation: exit-slide-right 0.9s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

.exit-left {
  animation: exit-slide-left 0.9s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

.exit-fade {
  animation: exit-fade-out 0.9s ease forwards !important;
}

.exit-bg-fade {
  transition: opacity 0.6s ease !important;
  opacity: 0 !important;
}

.bg-slide-out {
  animation: bg-slide-out 2s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.bg-slide-in {
  animation: bg-slide-in 2s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes bg-slide-out {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes bg-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes exit-slide-up {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-50vh); }
}

@keyframes exit-slide-right {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100vw); }
}

@keyframes exit-slide-left {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-100vw); }
}

@keyframes exit-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Zoom Out — circle expands then fades */
.game-transition-overlay.trans-zoomOut {
  background: #03186E;
  opacity: 1;
  animation: trans-zoom 0.8s ease forwards;
}

@keyframes trans-zoom {
  0% { transform: scale(0); border-radius: 50%; }
  35% { transform: scale(1.5); border-radius: 0; }
  65% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* Blackout — smooth fade through dark blue */
.game-transition-overlay.trans-blackout {
  background: #03186E;
  animation: trans-blackout 0.9s ease forwards;
}

@keyframes trans-blackout {
  0% { opacity: 0; }
  35% { opacity: 1; }
  65% { opacity: 1; }
  100% { opacity: 0; }
}

/* === Finale Styling === */
#screen-game.finale .question-counter {
  color: #d4ff00;
  font-size: calc(1.1rem * var(--text-zoom));
  text-shadow: 0 0 20px rgba(212, 255, 0, 0.4);
}

#screen-game.finale .question-text {
  font-size: calc(clamp(1.8rem, 4vw, 3rem) * var(--text-zoom));
}

#screen-game.finale .answer-card {
  border-color: rgba(212, 255, 0, 0.15);
}

/* === Countdown Bar === */
.countdown-container {
  width: 100%;
  height: 8px;
  background: rgba(3, 24, 110, 0.4);
  border-radius: 4px;
  overflow: hidden;
  transition: opacity var(--mc-transition) ease;
  margin-top: 5vh;
}

.countdown-bar {
  height: 100%;
  width: 100%;
  background: #32D8FD;
  border-radius: 4px;
  transition: width linear, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 12px rgba(50, 216, 253, 0.5), 0 0 4px rgba(50, 216, 253, 0.3);
}

.countdown-bar.warning {
  background: #FFDE17;
  box-shadow: 0 0 12px rgba(255, 222, 23, 0.5), 0 0 4px rgba(255, 222, 23, 0.3);
}

.countdown-bar.critical {
  background: #D12143;
  box-shadow: 0 0 12px rgba(209, 33, 67, 0.5), 0 0 4px rgba(209, 33, 67, 0.3);
}

/* === Action Area === */
.action-area {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  flex-shrink: 0;
  position: absolute;
  bottom: 2vh;
  right: 3vw;
  z-index: 2;
}

.btn-action {
  padding: 1.4vh 3vw;
  font-size: calc(1.2rem * var(--text-zoom));
  border-radius: 8px;
  transition: all 200ms ease, opacity var(--mc-transition) ease;
  background: #BDEB57;
  color: #050027;
}

.btn-action:hover {
  background: #ccf074;
  box-shadow: 0 0 20px rgba(189, 235, 87, 0.4);
}

.btn-action.btn-next {
  background: #BDEB57;
  color: #050027;
}

.btn-action.btn-next:hover {
  background: #ccf074;
  box-shadow: 0 0 20px rgba(189, 235, 87, 0.4);
}

/* === END SCREEN === */
#screen-end {
  background: var(--mc-bg-primary);
}

.end-content {
  text-align: center;
}

.end-title {
  font-size: calc(3.2rem * var(--text-zoom));
  font-weight: 700;
  color: #BDEB57;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.end-subtitle {
  font-size: calc(1.5rem * var(--text-zoom));
  color: var(--mc-text-secondary);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
  line-height: 130%;
}

.end-stats {
  font-size: calc(1.4rem * var(--text-zoom));
  color: var(--mc-text-secondary);
  margin-bottom: 48px;
  letter-spacing: -0.005em;
  line-height: 130%;
}

/* === Zoom Controls === */
#zoom-controls {
  position: fixed;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 9999;
}

#zoom-controls button {
  background: #0731AF;
  border: 1px solid rgba(50, 216, 253, 0.3);
  border-radius: 6px;
  color: white;
  font-size: calc(24px * var(--text-zoom));
  font-weight: 700;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-family: inherit;
  line-height: 1;
}

#zoom-controls button:hover {
  background: #3160ED;
}

#zoom-label {
  color: white;
  font-size: 14px;
  font-weight: 700;
  align-self: center;
  margin-right: 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
