:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #121826;
  --bg-card: #182234;
  --bg-card-hover: #1f2c42;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(56, 189, 248, 0.15);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.35);
  --shadow-danger: 0 0 25px rgba(239, 68, 68, 0.45);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* Header */
.quiz-header {
  height: 80px;
  flex-shrink: 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(18, 24, 38, 0.95);
  backdrop-filter: blur(16px);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 6px;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-title .highlight {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Round & Question Navigator */
.round-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-round-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.round-pill-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.round-chip {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.round-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.round-chip.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

.round-chip.completed {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Timer Widget (Top Right, 20s) */
.timer-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  padding: 8px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timer-widget.warning {
  border-color: var(--accent-amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.timer-widget.danger {
  border-color: var(--accent-red);
  box-shadow: var(--shadow-danger);
  animation: pulse-danger 1s infinite alternate;
}

@keyframes pulse-danger {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

.timer-circular {
  position: relative;
  width: 44px;
  height: 44px;
}

.timer-circular svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.timer-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 4;
}

.timer-bar {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 113.1; /* 2 * pi * 18 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.25s linear, stroke 0.3s ease;
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.timer-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.timer-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

.timer-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-timer-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-timer-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Main Content Area */
.main-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 32px 48px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Always align to top so header never cuts off titles */
  align-items: center;
  position: relative;
}

/* Slide Card Structure */
.slide-card {
  width: 100%;
  max-width: 1080px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px 28px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideFadeIn 0.35s ease;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide Header Meta */
.slide-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.meta-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-round {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.badge-group {
  background: rgba(139, 92, 246, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(139, 92, 246, 0.45);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.slide-title-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.4) 100%);
  border-left: 6px solid var(--accent-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.challenge-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 1.8px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.15;
}

.title-accent-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  display: inline-block;
}

.challenge-prompt {
  font-size: 17px;
  line-height: 1.5;
  color: #f1f5f9;
  font-weight: 500;
}

/* Media Presentation Area */
.media-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

/* Image Challenge Specifics */
.challenge-image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  cursor: zoom-in;
}

.challenge-img {
  max-height: 380px;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}

/* Media Timer Badge */
.media-timer-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  width: auto;
  max-width: 600px;
}

.media-timer-badge.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.badge-status-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.badge-dot.pulse {
  animation: dotPulse 1.5s infinite;
}

.badge-dot.playing {
  background: var(--accent-amber);
  animation: dotPulse 0.8s infinite;
}

.badge-dot.urgent {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

@keyframes dotPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.btn-start-timer-manual {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-start-timer-manual:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

/* Audio Challenge Specifics */
.audio-card-wrapper {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px;
}

.audio-speaker-visual {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(18, 24, 38, 0.8) 70%);
  border: 2px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  position: relative;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.audio-speaker-visual.playing {
  animation: audioPulse 1.2s infinite ease-in-out;
}

@keyframes audioPulse {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); }
  50% { transform: scale(1.06); box-shadow: 0 0 40px rgba(56, 189, 248, 0.5); }
  100% { transform: scale(1); box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); }
}

.audio-waveform-bars {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
}

.wave-bar {
  width: 5px;
  height: 12px;
  background: var(--accent-cyan);
  border-radius: 4px;
  transition: height 0.15s ease;
}

.playing .wave-bar:nth-child(1) { animation: wave 0.8s infinite 0.1s; }
.playing .wave-bar:nth-child(2) { animation: wave 0.8s infinite 0.3s; }
.playing .wave-bar:nth-child(3) { animation: wave 0.8s infinite 0.2s; }
.playing .wave-bar:nth-child(4) { animation: wave 0.8s infinite 0.5s; }
.playing .wave-bar:nth-child(5) { animation: wave 0.8s infinite 0.4s; }
.playing .wave-bar:nth-child(6) { animation: wave 0.8s infinite 0.2s; }
.playing .wave-bar:nth-child(7) { animation: wave 0.8s infinite 0.6s; }

@keyframes wave {
  0%, 100% { height: 10px; }
  50% { height: 38px; }
}

.custom-audio-player {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-audio-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
  transition: transform 0.2s;
}

.btn-audio-play:hover {
  transform: scale(1.08);
}

.audio-progress-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audio-seek-slider {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.audio-time-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* Video Challenge Specifics */
.video-wrapper {
  position: relative;
  max-width: 720px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  background: #000;
}

.video-player {
  width: 100%;
  display: block;
  max-height: 360px;
  object-fit: contain;
}

/* Interactive Quick Guess Buttons */
.interactive-guess-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}

.guess-prompt {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-guess {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-guess:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.btn-guess.selected-fake {
  background: rgba(236, 72, 153, 0.2);
  border-color: var(--accent-pink);
  color: #f472b6;
}

.btn-guess.selected-real {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-green);
  color: #34d399;
}

/* Reveal Answer Section */
.reveal-action-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.btn-reveal-answer {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
}

.btn-reveal-answer:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 28px rgba(239, 68, 68, 0.5);
}

.btn-reveal-answer.revealed {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  box-shadow: none;
}

/* Answer Content Box (Hidden by default) */
.answer-box {
  width: 100%;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-glow);
  animation: answerPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes answerPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.verdict-tag {
  font-size: 15px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verdict-tag.deepfake {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.verdict-tag.real {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.answer-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
}

.answer-tells-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.tell-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.tell-icon {
  font-size: 16px;
  line-height: 1;
}

.answer-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Welcome Slide & Rules */
.welcome-card {
  max-width: 860px;
  text-align: center;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.welcome-hero-badge {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
}

.welcome-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
}

.welcome-title .glow {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  text-align: left;
}

.rule-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rule-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.rule-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.rule-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

.btn-start-quiz {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  padding: 16px 48px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
  transition: all 0.25s ease;
}

.btn-start-quiz:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.5);
}

/* Footer & Controls */
.quiz-footer {
  height: 80px;
  flex-shrink: 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  background: rgba(18, 24, 38, 0.95);
  backdrop-filter: blur(16px);
  z-index: 20;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slide-indicator {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.next-btn {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.next-btn:hover:not(:disabled) {
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.4);
}

/* Scoreboard Panel */
.scoreboard-panel {
  position: absolute;
  bottom: 90px;
  left: 32px;
  width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 30;
  animation: panelSlideUp 0.25s ease;
}

@keyframes panelSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.scoreboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.scoreboard-title {
  font-size: 15px;
  font-weight: 800;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.scoreboard-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.group-score-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.group-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.group-score {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.score-btns {
  display: flex;
  gap: 6px;
}

.btn-score-adjust {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-score-adjust:hover {
  background: rgba(255, 255, 255, 0.15);
}

.scoreboard-footer {
  margin-top: 14px;
  text-align: center;
}

.btn-reset-scores {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.btn-reset-scores:hover {
  color: var(--text-secondary);
}

/* Lock Button in Header */
.btn-header-lock {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-header-lock:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Password Protection Lock Screen Overlay */
.lock-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle at 50% 40%, rgba(18, 24, 38, 0.98) 0%, rgba(10, 14, 23, 1) 100%);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lock-screen-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.2);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  animation: lockCardPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lockCardPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lock-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(18, 24, 38, 0.8) 100%);
  border: 2px solid rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}

.lock-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lock-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.lock-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.lock-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.password-input-group {
  position: relative;
  width: 100%;
}

.lock-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 46px 14px 16px;
  font-size: 15px;
  color: #fff;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
}

.lock-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s;
}

.btn-toggle-password:hover {
  color: var(--text-primary);
}

.lock-error-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.btn-unlock-quiz {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.4);
  transition: all 0.2s;
}

.btn-unlock-quiz:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

.lock-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .quiz-header, .quiz-footer {
    padding: 0 16px;
  }
  .round-pill-title {
    display: none;
  }
  .welcome-rules-grid {
    grid-template-columns: 1fr;
  }
}
