/* Quiz 9: The MOB Button Test — Styles
   Dark nautical theme, Quiz 5 gold standard + drift counter */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

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

:root { --navy: #1e3a5f; --orange: #FF9800; --text: #ffffff; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(160deg, #0a1628 0%, #122a4a 50%, #0d1f3c 100%);
  color: #ffffff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.3s ease; }

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 1.5rem 1.2rem 3rem;
}

.logo {
  display: block;
  margin: 0 auto 1.5rem;
  max-width: 200px;
  height: auto;
}

/* ── Landing Page — vertical center ── */

#landing-page .container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-box h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.subtitle {
  font-size: 1.4rem;
  color: #FF9800;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.preview-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transform: perspective(200px) rotateY(var(--tilt, 0deg));
  transition: transform 0.2s;
}
.preview-icon:nth-child(1) { --tilt: -8deg; }
.preview-icon:nth-child(2) { --tilt: -4deg; }
.preview-icon:nth-child(3) { --tilt: 0deg; }
.preview-icon:nth-child(4) { --tilt: 4deg; }
.preview-icon:nth-child(5) { --tilt: 8deg; }

/* ── Animated MOB Scene ── */

.mob-scene {
  position: relative;
  width: 100%;
  height: 160px;
  margin-top: 1.2rem;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #0a1628 0%, #0d2444 40%, #122a4a 60%, #1a3a5f 100%);
}

/* Ocean waves */
.mob-ocean {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  overflow: hidden;
}

.mob-wave {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 100%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  opacity: 0.25;
}

.mob-wave-1 {
  background: #1e5a8a;
  height: 40px;
  bottom: 0;
  animation: mobWave 4s ease-in-out infinite;
}
.mob-wave-2 {
  background: #1a4a7a;
  height: 35px;
  bottom: 5px;
  animation: mobWave 5s ease-in-out infinite reverse;
  animation-delay: -1s;
}
.mob-wave-3 {
  background: #163a6a;
  height: 30px;
  bottom: 10px;
  animation: mobWave 6s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes mobWave {
  0%, 100% { transform: translateX(-3%) scaleY(1); }
  50% { transform: translateX(3%) scaleY(1.3); }
}

/* Boat silhouette — moves away from person */
.mob-boat {
  position: absolute;
  bottom: 45px;
  left: 65%;
  animation: boatDrift 8s ease-in-out infinite;
}

@keyframes boatDrift {
  0% { left: 55%; }
  50% { left: 75%; }
  100% { left: 55%; }
}

.mob-hull {
  width: 50px;
  height: 12px;
  background: rgba(255,255,255,0.25);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  position: relative;
}

.mob-mast {
  position: absolute;
  bottom: 12px;
  left: 22px;
  width: 2px;
  height: 50px;
  background: rgba(255,255,255,0.3);
}

.mob-sail {
  position: absolute;
  bottom: 22px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 0 solid transparent;
  border-right: 22px solid rgba(255,255,255,0.12);
  border-top: 0 solid transparent;
  border-bottom: 38px solid transparent;
}

/* Person in water */
.mob-person {
  position: absolute;
  bottom: 42px;
  left: 28%;
  width: 0;
  height: 0;
}

.mob-person-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF9800;
  position: absolute;
  top: -5px;
  left: -5px;
  z-index: 3;
  animation: personBob 2.5s ease-in-out infinite;
}

@keyframes personBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Expanding search rings */
.mob-search-ring {
  position: absolute;
  border: 2px solid rgba(255,107,53,0.4);
  border-radius: 50%;
  animation: searchExpand 3s ease-out infinite;
}

.mob-ring-1 {
  width: 30px; height: 30px;
  top: -15px; left: -15px;
  animation-delay: 0s;
}
.mob-ring-2 {
  width: 30px; height: 30px;
  top: -15px; left: -15px;
  animation-delay: 1s;
}
.mob-ring-3 {
  width: 30px; height: 30px;
  top: -15px; left: -15px;
  animation-delay: 2s;
}

@keyframes searchExpand {
  0% {
    width: 10px; height: 10px;
    top: -5px; left: -5px;
    opacity: 0.8;
  }
  100% {
    width: 100px; height: 100px;
    top: -50px; left: -50px;
    opacity: 0;
  }
}

/* Pulsing MOB beacon */
.mob-beacon {
  position: absolute;
  bottom: 48px;
  left: 28%;
  z-index: 4;
}

.mob-beacon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4444;
  position: absolute;
  top: -12px;
  left: -3px;
  animation: beaconFlash 1.2s ease-in-out infinite;
}

@keyframes beaconFlash {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px 2px rgba(255,68,68,0.6); }
  50% { opacity: 0.3; box-shadow: 0 0 1px 0 rgba(255,68,68,0.2); }
}

.mob-beacon-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  top: -12px;
  left: -3px;
  animation: beaconPulseRing 2s ease-out infinite;
  border: 2px solid rgba(255,68,68,0.5);
}

@keyframes beaconPulseRing {
  0% {
    width: 6px; height: 6px;
    top: -12px; left: -3px;
    opacity: 0.8;
  }
  100% {
    width: 40px; height: 40px;
    top: -29px; left: -20px;
    opacity: 0;
  }
}

.cta-button {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 0.8rem;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: inherit;
  color: #0a1628;
  background: #FF9800;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,107,53,0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(255,107,53,0.35); }
  50% { box-shadow: 0 4px 30px rgba(255,107,53,0.55), 0 0 40px rgba(255,107,53,0.15); }
}

.cta-button:hover {
  background: #ff8555;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255,107,53,0.45);
  animation: none;
}
.cta-button:active { transform: translateY(0); }

.subtext {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* ── Quiz Page ── */

.progress-container {
  text-align: center;
  margin-bottom: 1rem;
}

#progress-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 0.4rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  background: #FF9800;
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s ease;
}

/* Drift Banner */
.drift-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  background: rgba(255,68,68,0.12);
  border: 1px solid rgba(255,68,68,0.3);
  border-radius: 10px;
  font-size: 0.9rem;
  animation: fadeIn 0.3s ease;
}

.drift-icon { font-size: 1.1rem; }

#drift-distance {
  font-size: 1.1rem;
  color: #FF9800;
  font-weight: 700;
  min-width: 2ch;
  display: inline-block;
}

/* Scenario Image */
.scenario-image {
  background: #0a0a15;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 400 / 250;
}

.scenario-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s ease;
}

/* Scenario Text */
.scenario-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin-bottom: 1rem;
  font-style: italic;
}

/* Question */
.question-title {
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Options */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.option {
  display: block;
  width: 100%;
  padding: 1rem 1.1rem;
  font-size: 1.05rem;
  font-family: inherit;
  color: #ffffff;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.option:hover:not(.disabled) {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  transform: translateX(3px);
}
.option.disabled { cursor: default; opacity: 0.85; }
.option.selected { background: rgba(255,107,53,0.2); border-color: #FF9800; }
.option.correct { background: rgba(76,175,80,0.25); border-color: #4caf50; }
.option.incorrect { background: rgba(255,68,68,0.25); border-color: #ff4444; }
.option.reveal-correct {
  background: rgba(76,175,80,0.3);
  border-color: #4caf50;
  animation: pulseCorrect 0.5s ease;
}

/* Explanation Toast */
.explanation-toast {
  display: none;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid #FF9800;
  border-radius: 0 10px 10px 0;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
.explanation-toast.visible {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: slideUp 0.25s ease-out;
}

.toast-icon {
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.toast-correct { color: #4caf50; }
.toast-incorrect { color: #ff4444; }
.toast-text { flex: 1; }

/* Drift Result (per-question) */
.drift-result {
  text-align: center;
  padding: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  animation: slideUp 0.25s ease-out;
}
.drift-result strong { color: #FF9800; }

/* ── Results Page ── */

.results-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

/* Total Drift Summary */
.total-drift {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255,68,68,0.1);
  border: 2px solid rgba(255,68,68,0.3);
  border-radius: 16px;
}

.drift-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #FF9800;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.drift-unit {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.drift-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.8rem;
}

.drift-context {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  font-style: italic;
}

/* Score Display */
.score-display {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 16px;
}

.score-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.score-green .score-number { color: #4caf50; }
.score-green { border-color: rgba(76,175,80,0.4); }
.score-orange .score-number { color: #FF9800; }
.score-orange { border-color: rgba(255,107,53,0.4); }
.score-red .score-number { color: #ff4444; }
.score-red { border-color: rgba(255,68,68,0.4); }

.score-message {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* Email Gate */
.email-gate {
  background: rgba(255,107,53,0.12);
  border: 2px solid rgba(255,107,53,0.5);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 0.8rem;
  text-align: center;
}
.email-gate h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.email-gate p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.email-gate form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}
input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
input[type="email"]:focus { border-color: #FF9800; }

.subscribe-button {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: #FF9800;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.subscribe-button:hover { background: #ff8555; transform: translateY(-1px); }
.subscribe-button:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-message {
  font-size: 0.85rem;
  min-height: 1.2rem;
  margin-top: 0.3rem;
}

/* Skip Link */
.skip-link {
  display: block;
  text-align: center;
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.skip-link:hover { color: rgba(255,255,255,0.7); }

/* Report Download */
.report-download {
  background: rgba(76,175,80,0.12);
  border: 2px solid rgba(76,175,80,0.4);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.report-download p { margin-bottom: 0.6rem; color: rgba(255,255,255,0.85); }

.download-button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: #4caf50;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.download-button:hover { background: #43a047; }

.download-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.5rem;
}

/* Answer Breakdown */
.answer-breakdown {
  margin-bottom: 1.5rem;
}
.answer-breakdown h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.breakdown-item {
  padding: 1rem;
  margin-bottom: 0.6rem;
  background: rgba(255,255,255,0.04);
  border-left: 4px solid;
  border-radius: 0 10px 10px 0;
}
.breakdown-item.was-correct { border-left-color: #4caf50; }
.breakdown-item.was-incorrect { border-left-color: #ff4444; }

.breakdown-header {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.breakdown-header strong { color: #FF9800; }
.breakdown-icon { margin-right: 0.3rem; }
.was-correct .breakdown-icon { color: #4caf50; }
.was-incorrect .breakdown-icon { color: #ff4444; }

.breakdown-correct {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.3rem;
}

.breakdown-explanation {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* Voice Box */
.voice-box {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.voice-side {
  flex: 1;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.voice-side.bad { background: rgba(255,68,68,0.1); }
.voice-side.good { background: rgba(76,175,80,0.1); }
.voice-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
}
.voice-val {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
.voice-side.bad .voice-val { color: rgba(255,255,255,0.4); font-size: 1.5rem; }
.voice-side.good .voice-val { color: #4caf50; font-style: italic; }
.voice-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.03);
}

@media (max-width: 480px) {
  .voice-box { flex-direction: column; }
  .voice-vs { padding: 0.4rem 0; }
}

/* The Twist */
.twist {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255,107,53,0.1);
  border-radius: 16px;
}

.twist-headline {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FF9800;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.twist-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.twist-body em { color: #FF9800; font-style: normal; font-weight: 700; }

/* Share */
.share-section {
  margin-bottom: 1.5rem;
}
.share-section h3 {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.share-btn.native { background: #FF9800; color: #fff; }
.share-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.share-facebook { background: #1877f2; }
.share-linkedin { background: #0a66c2; }
.share-copy { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); }

/* Explanation Section */
.explanation-section {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #FF9800;
  border-radius: 0 10px 10px 0;
  background: rgba(255,255,255,0.04);
}
.explanation-section h2 {
  font-size: 1.2rem;
  color: #FF9800;
  margin-bottom: 0.8rem;
}
.explanation-section p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.insight-link {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #FF9800;
  border: 2px solid #FF9800;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.insight-link:hover { background: #FF9800; color: #fff; }

/* Second Chance */
.second-chance {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.second-chance h3 {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.3rem;
}
.second-chance p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.8rem;
}
.second-chance form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Cross-Promo Cards */
.other-quizzes {
  margin-bottom: 1.5rem;
}
.other-quizzes h3 {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.8rem;
  text-align: center;
}

.quiz-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  margin-bottom: 0.5rem;
}

.quiz-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
  align-items: center;
}
.quiz-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.quiz-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.quiz-card-info { flex: 1; }
.quiz-card-info strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.quiz-card-info span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ── Gamification ── */

/* Streak counter */
.streak {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4caf50;
  letter-spacing: 1px;
  opacity: 0;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}
.streak.visible { opacity: 1; }
.streak.hot { color: #ff4444; animation: streakPulse 0.4s ease; }

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

/* Reaction time */
.reaction-time {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.3s;
  margin-bottom: 8px;
}
.reaction-time.visible { opacity: 1; }
.reaction-time.fast { color: #4caf50; }
.reaction-time.medium { color: #ff9800; }
.reaction-time.slow { color: #ff6b6b; }

/* Particle burst */
.particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  animation: particleBurst 0.6s ease-out forwards;
}

@keyframes particleBurst {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* Score title */
.score-title {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FF9800;
  text-align: center;
  margin-bottom: 8px;
  font-weight: 700;
}

/* ── Animations ── */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulseCorrect {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76,175,80,0.3); }
  50% { transform: scale(1.02); box-shadow: 0 0 12px 4px rgba(76,175,80,0.15); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .option { min-height: 48px; }
  .share-btn { min-height: 48px; }
}

@media (max-width: 380px) {
  .hero-box h1 { font-size: 1.8rem; }
  .subtitle { font-size: 1.2rem; }
  .question-title { font-size: 1.15rem; }
  .drift-number { font-size: 2.8rem; }
  .score-number { font-size: 2.8rem; }
}

.gdpr-consent {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 0.75rem; color: rgba(255,255,255,0.4);
    cursor: pointer; text-align: left; line-height: 1.4;
}
.gdpr-consent input[type="checkbox"] {
    margin-top: 2px; flex-shrink: 0; accent-color: #FF9800;
    width: 16px; height: 16px; cursor: pointer;
}
.gdpr-consent a { color: rgba(255,255,255,0.5); text-decoration: underline; }
.gdpr-consent a:hover { color: #FF9800; }
