/* Quiz Game Styles - Who Wants to Be a Millionaire Inspired */
body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.game-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Game Header */
.game-header {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px 30px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.game-logo img {
  height: 40px;
}

.game-stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(11, 16, 32, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.stat-value {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #667eea;
}

/* Game Screen */
.game-screen {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 40px;
  min-height: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Welcome Screen */
.welcome-screen {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.welcome-title {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-text {
  font-size: 20px;
  color: rgba(11, 16, 32, 0.7);
  margin: 0 0 40px 0;
}

/* Stage pill on welcome screen */
.welcome-stage{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:999px;border:1px solid rgba(102,126,234,.22);background:linear-gradient(180deg,rgba(102,126,234,.10),rgba(255,255,255,.92));box-shadow:0 10px 30px rgba(11,16,32,.10);margin:-18px auto 28px auto}
.welcome-stage__label{font-size:12px;font-weight:800;color:rgba(11,16,32,.66);text-transform:uppercase;letter-spacing:.08em}
.welcome-stage__value{font-size:16px;font-weight:900;color:rgba(11,16,32,.92);padding:6px 12px;border-radius:999px;background:rgba(102,126,234,.16)}

.rules-box {
  background: linear-gradient(135deg, #f0f4ff 0%, #fef3ff 100%);
  border: 2px solid #667eea;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  text-align: left;
}

.rules-box h3 {
  margin: 0 0 20px 0;
  font-size: 24px;
  color: #667eea;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-list li {
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.2);
  color: rgba(11, 16, 32, 0.8);
}

.rules-list li:last-child {
  border-bottom: none;
}

.btn-huge {
  font-size: 24px;
  padding: 20px 60px;
  border-radius: 999px;
}

/* Quiz Screen */
.quiz-screen {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.question-number {
  font-size: 18px;
  font-weight: 700;
  color: rgba(11, 16, 32, 0.7);
}

.question-number span {
  color: #667eea;
  font-size: 24px;
}

/* Timer Circle */
.timer-container {
  position: relative;
}

.timer-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  animation: pulse 1s ease-in-out infinite;
}

.timer-circle.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.timer-circle.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.timer-text {
  font-size: 36px;
  font-weight: 800;
  color: white;
}

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

/* Question */
.question-content {
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  border: 3px solid #667eea;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.question-text {
  font-size: 28px;
  font-weight: 700;
  color: rgba(11, 16, 32, 0.9);
  margin: 0;
  line-height: 1.4;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.option-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}

.option-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
  border-color: #667eea;
}

.option-letter {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
}

.option-text {
  flex: 1;
  color: rgba(11, 16, 32, 0.9);
}

.option-btn.selected {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border-color: #3b82f6;
}

.option-btn.correct {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  border-color: #10b981;
  animation: correctPulse 0.5s ease-out;
}

.option-btn.correct .option-letter {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.option-btn.correct::after {
  content: '👍';
  font-size: 32px;
  margin-left: 16px;
}

.option-btn.wrong {
  background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
  border-color: #ef4444;
  animation: wrongShake 0.5s ease-out;
}

.option-btn.wrong .option-letter {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.option-btn.wrong::after {
  content: '😞';
  font-size: 32px;
  margin-left: 16px;
}

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

@keyframes correctPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Question Feedback */
.question-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 100;
  text-align: center;
}

.feedback-icon {
  font-size: 100px;
  margin-bottom: 20px;
}

.feedback-message {
  font-size: 32px;
  font-weight: 800;
  color: rgba(11, 16, 32, 0.9);
}

/* Result Screen */
.result-screen {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.result-icon {
  font-size: 120px;
  margin-bottom: 20px;
}

.result-title {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: rgba(11, 16, 32, 0.9);
}

.result-message {
  font-size: 24px;
  color: rgba(11, 16, 32, 0.7);
  margin: 0 0 40px 0;
}

.result-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 40px;
}

.result-stat {
  text-align: center;
}

.result-stat-value {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: #667eea;
  margin-bottom: 8px;
}

.result-stat-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: rgba(11, 16, 32, 0.6);
  text-transform: uppercase;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Tab Warning */
.tab-warning {
  position: absolute;
  inset: 0;
  background: rgba(239, 68, 68, 0.95);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.warning-content {
  text-align: center;
  color: white;
}

.warning-icon {
  font-size: 100px;
  margin-bottom: 20px;
}

.warning-content h3 {
  font-size: 36px;
  margin: 0 0 16px 0;
}

.warning-content p {
  font-size: 20px;
  margin: 0 0 30px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .game-container {
    padding: 10px;
  }

  .game-header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .game-stats {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .stat-label {
    font-size: 10px;
  }

  .stat-value {
    font-size: 16px;
  }

  .game-screen {
    padding: 20px;
  }

  .welcome-title {
    font-size: 32px;
  }

  .welcome-text {
    font-size: 16px;
  }

  .rules-box {
    padding: 20px;
  }

  .rules-list li {
    font-size: 14px;
  }

  .question-text {
    font-size: 20px;
  }

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

  .option-btn {
    padding: 16px;
    font-size: 16px;
  }

  .option-letter {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .timer-circle {
    width: 60px;
    height: 60px;
  }

  .timer-text {
    font-size: 28px;
  }

  .btn-huge {
    font-size: 20px;
    padding: 16px 40px;
  }
}


/* Free tries countdown (24h refresh) */
.free-try-countdown{margin-top:16px;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;border:1px solid rgba(102,126,234,.20);background:linear-gradient(180deg,rgba(102,126,234,.10),rgba(255,255,255,.92));box-shadow:0 10px 30px rgba(11,16,32,.10)}
.free-try-countdown__icon{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:rgba(102,126,234,.16);font-size:18px}...