/* ============================================
   CYBERSECURITY AWARENESS BOOTH
   Mobile-First, Performance Optimized
   ============================================ */

/* === VARIABLES === */
:root {
  --red-primary: #ff0033;
  --red-secondary: #ff4466;
  --red-glow: rgba(255, 0, 51, 0.6);
  --red-bg: #0a0000;
  --red-surface: #1a0505;

  --green-primary: #00ff41;
  --green-secondary: #39ff14;
  --green-glow: rgba(0, 255, 65, 0.6);
  --green-bg: #000a00;
  --green-surface: #001a00;

  --purple-primary: #bf00ff;
  --purple-secondary: #00d4ff;
  --purple-glow: rgba(191, 0, 255, 0.6);
  --purple-bg: #050010;
  --purple-surface: #0f0020;

  --text-white: #ffffff;
  --text-gray: #aaaaaa;
  --font-mono: 'Courier New', monospace;
}

/* === RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

body[data-lang="en"] {
  direction: ltr;
}

/* === THEMES === */
body.theme-red {
  background: var(--red-bg);
  color: var(--text-white);
  --theme-primary: var(--red-primary);
  --theme-secondary: var(--red-secondary);
  --theme-glow: var(--red-glow);
  --theme-bg: var(--red-bg);
  --theme-surface: var(--red-surface);
}

body.theme-green {
  background: var(--green-bg);
  color: var(--text-white);
  --theme-primary: var(--green-primary);
  --theme-secondary: var(--green-secondary);
  --theme-glow: var(--green-glow);
  --theme-bg: var(--green-bg);
  --theme-surface: var(--green-surface);
}

body.theme-purple {
  background: var(--purple-bg);
  color: var(--text-white);
  --theme-primary: var(--purple-primary);
  --theme-secondary: var(--purple-secondary);
  --theme-glow: var(--purple-glow);
  --theme-bg: var(--purple-bg);
  --theme-surface: var(--purple-surface);
}

/* === DYNAMIC BACKGROUND === */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, var(--theme-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, var(--theme-glow) 0%, transparent 50%);
  opacity: 0.15;
  animation: bg-pulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes bg-pulse {

  0%,
  100% {
    opacity: 0.1;
    transform: scale(1);
  }

  50% {
    opacity: 0.2;
    transform: scale(1.1);
  }
}

/* === SCANLINES === */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.1) 0px,
      rgba(0, 0, 0, 0.1) 1px,
      transparent 1px,
      transparent 3px);
  animation: scanline-move 10s linear infinite;
}

@keyframes scanline-move {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 60px;
  }
}

/* === NOISE OVERLAY === */
.noise-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise 0.3s steps(5) infinite;
}

@keyframes noise {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-2%, -2%);
  }
}

/* === CRT VIGNETTE === */
.crt-effect {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
}

/* === MATRIX CANVAS === */
#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

/* === TOP CONTROLS === */
.top-controls {
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  display: flex;
  justify-content: space-between;
  z-index: 2000;
}

body[data-lang="en"] .top-controls {
  flex-direction: row-reverse;
}

.btn-exit,
.btn-lang {
  padding: 0.5rem 1rem;
  border: 2px solid var(--theme-primary);
  background: rgba(0, 0, 0, 0.85);
  color: var(--theme-primary);
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  touch-action: manipulation;
}

.btn-exit {
  animation: pulse-glow 1s ease infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 5px var(--theme-glow);
  }

  50% {
    box-shadow: 0 0 20px var(--theme-glow);
  }
}

.btn-exit:active,
.btn-lang:active {
  transform: scale(0.95);
  background: var(--theme-primary);
  color: var(--theme-bg);
}

/* === MAIN CONTAINER === */
.main-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* ============================================
   PHASE 1: SCARY INTRO
   ============================================ */
.phase-intro {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 1.5rem;
  text-align: center;
  background: var(--theme-bg);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.phase-intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.phase-intro.shake {
  animation: shake 0.3s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translate(0);
  }

  20% {
    transform: translate(-8px, -4px);
  }

  40% {
    transform: translate(8px, 4px);
  }

  60% {
    transform: translate(-4px, 2px);
  }

  80% {
    transform: translate(4px, -2px);
  }
}

/* === GLITCH HEADLINE === */
.headline-glitch {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  color: var(--theme-primary);
  position: relative;
  text-shadow: 0 0 20px var(--theme-glow);
  animation: glitch-text 0.15s infinite;
}

.headline-glitch::before,
.headline-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.8;
}

.headline-glitch::before {
  color: #0ff;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  animation: glitch-1 0.1s infinite;
}

.headline-glitch::after {
  color: #f0f;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  animation: glitch-2 0.1s infinite;
}

@keyframes glitch-text {

  0%,
  100% {
    text-shadow: 2px 0 #f0f, -2px 0 #0ff, 0 0 20px var(--theme-glow);
  }

  50% {
    text-shadow: -2px 0 #f0f, 2px 0 #0ff, 0 0 30px var(--theme-glow);
  }
}

@keyframes glitch-1 {

  0%,
  100% {
    transform: translate(-2px, 0);
  }

  50% {
    transform: translate(2px, 1px);
  }
}

@keyframes glitch-2 {

  0%,
  100% {
    transform: translate(2px, 0);
  }

  50% {
    transform: translate(-2px, -1px);
  }
}

/* === FAKE ALERTS === */
.fake-alerts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.fake-alert {
  position: absolute;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--theme-primary);
  color: var(--theme-primary);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  border-radius: 4px;
  opacity: 0;
  animation: alert-pop 0.4s ease forwards;
  white-space: nowrap;
  box-shadow: 0 0 15px var(--theme-glow);
}

.fake-alert:nth-child(1) {
  top: 8%;
  left: 3%;
}

.fake-alert:nth-child(2) {
  top: 20%;
  right: 5%;
}

.fake-alert:nth-child(3) {
  bottom: 25%;
  left: 5%;
}

.fake-alert:nth-child(4) {
  top: 12%;
  right: 10%;
}

.fake-alert:nth-child(5) {
  bottom: 18%;
  right: 3%;
}

.fake-alert:nth-child(6) {
  top: 35%;
  left: 2%;
}

@keyframes alert-pop {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(10px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* === LIVE STATS === */
.live-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--theme-primary);
  border-radius: 8px;
  min-width: 80px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--theme-primary);
  text-shadow: 0 0 10px var(--theme-glow);
}

.stat-label {
  font-size: 0.6rem;
  color: var(--text-gray);
  text-transform: uppercase;
}

/* === TERMINAL === */
.terminal-output {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  color: var(--theme-primary);
  text-align: left;
  direction: ltr;
  margin-top: 1rem;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--theme-primary);
  border-radius: 6px;
  width: 100%;
  max-width: 400px;
  min-height: 100px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.terminal-line {
  opacity: 0;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 0 5px var(--theme-glow);
}

.terminal-line.visible {
  opacity: 1;
  animation: type 0.3s steps(20) forwards;
}

@keyframes type {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.terminal-line::before {
  content: '> ';
  color: var(--theme-secondary);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--theme-primary);
  animation: blink 0.5s infinite;
  vertical-align: middle;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* === PROGRESS BAR === */
.progress-container {
  width: 100%;
  max-width: 400px;
  margin-top: 1rem;
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--theme-primary);
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
  text-shadow: 0 0 5px var(--theme-glow);
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--theme-primary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px var(--theme-glow);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--theme-secondary), var(--theme-primary), var(--theme-secondary));
  background-size: 200% 100%;
  animation: gradient-flow 0.5s linear infinite;
  box-shadow: 0 0 20px var(--theme-glow);
  transition: width 0.05s linear;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.progress-bar.complete {
  animation: complete-pulse 0.2s ease 3;
}

@keyframes complete-pulse {

  0%,
  100% {
    box-shadow: 0 0 15px var(--theme-glow);
  }

  50% {
    box-shadow: 0 0 40px var(--theme-glow);
  }
}

/* === HAZARD STRIPES (RED) === */
.theme-red .phase-intro::before,
.theme-red .phase-intro::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--red-primary) 0px, var(--red-primary) 15px, #000 15px, #000 30px);
  animation: hazard 0.4s linear infinite;
}

.theme-red .phase-intro::before {
  top: 0;
}

.theme-red .phase-intro::after {
  bottom: 0;
  animation-direction: reverse;
}

@keyframes hazard {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 30px 0;
  }
}

/* ============================================
   GLITCH TRANSITION
   ============================================ */
.glitch-transition {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
}

.glitch-transition.active {
  animation: glitch-flash 0.35s ease;
}

@keyframes glitch-flash {
  0% {
    opacity: 0;
    background: transparent;
  }

  15% {
    opacity: 1;
    background: var(--theme-primary);
  }

  25% {
    opacity: 0;
    background: transparent;
  }

  35% {
    opacity: 1;
    background: #000;
  }

  50% {
    opacity: 0.5;
    background: #fff;
  }

  65% {
    opacity: 0;
    background: transparent;
  }

  80% {
    opacity: 0.3;
    background: var(--theme-secondary);
  }

  100% {
    opacity: 0;
    background: transparent;
  }
}

/* ============================================
   PHASE 2: REVEAL
   ============================================ */
.phase-reveal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.phase-reveal.visible {
  opacity: 1;
  visibility: visible;
}

.reveal-card {
  background: var(--theme-surface);
  border: 3px solid var(--theme-primary);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px var(--theme-glow);
  transform: scale(0.8) perspective(500px) rotateX(30deg);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phase-reveal.visible .reveal-card {
  transform: scale(1) perspective(500px) rotateX(0);
  opacity: 1;
}

.reveal-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  animation: bounce 0.5s ease infinite alternate;
  filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.5));
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

.reveal-title {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: #00ff00;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.reveal-subtitle {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* === PRIMARY BUTTON === */
.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: var(--theme-bg);
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }

  50%,
  100% {
    transform: translateX(100%);
  }
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 5px 25px var(--theme-glow);
}

/* Ripple effect on tap */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn-primary:active::after {
  width: 200px;
  height: 200px;
}

/* ============================================
   PHASE 3: EDUCATION
   ============================================ */
.phase-education {
  padding: 5rem 1rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.phase-education.visible {
  opacity: 1;
  transform: translateY(0);
}

.section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--theme-surface);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--theme-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 10px var(--theme-glow);
}

.section-title .icon {
  font-size: 1.3em;
  animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* === DANGER LIST === */
.danger-list {
  list-style: none;
}

.danger-list li {
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  border-left: 3px solid var(--theme-primary);
}

body[data-lang="en"] .danger-list li {
  border-left: none;
  border-right: 3px solid var(--theme-primary);
  transform: translateX(-20px);
}

.danger-list li.visible {
  opacity: 1;
  transform: translateX(0);
}

.danger-list li .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* === TIPS GRID === */
.tips-grid {
  display: grid;
  gap: 0.75rem;
}

.tip-item {
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s ease;
}

.tip-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.tip-number {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: var(--theme-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 0.8rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--theme-glow);
}

.tip-text {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* === QUIZ === */
.quiz-container {
  margin-top: 1.5rem;
}

.quiz-question {
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s ease;
}

.quiz-question.visible {
  opacity: 1;
  transform: translateY(0);
}

.quiz-question p {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: var(--text-white);
}

.quiz-options {
  display: flex;
  gap: 0.8rem;
}

.quiz-option {
  flex: 1;
  padding: 0.6rem 1rem;
  background: var(--theme-surface);
  border: 2px solid var(--theme-primary);
  color: var(--theme-primary);
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.quiz-option:active {
  transform: scale(0.95);
}

.quiz-option.correct {
  background: #00cc33;
  border-color: #00cc33;
  color: #000;
  animation: correct-pop 0.4s ease;
}

@keyframes correct-pop {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.quiz-option.wrong {
  background: #cc0000;
  border-color: #cc0000;
  color: #fff;
  animation: wrong-shake 0.4s ease;
}

@keyframes wrong-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  50% {
    transform: translateX(6px);
  }

  75% {
    transform: translateX(-3px);
  }
}

.quiz-option:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.quiz-result {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--theme-surface), rgba(0, 0, 0, 0.5));
  border-radius: 12px;
  text-align: center;
  display: none;
  border: 2px solid var(--theme-primary);
}

.quiz-result.visible {
  display: block;
  animation: result-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes result-pop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.quiz-score {
  font-size: 3rem;
  font-weight: bold;
  color: var(--theme-primary);
  text-shadow: 0 0 25px var(--theme-glow);
}

.quiz-message {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-top: 0.3rem;
}

/* === FOOTER === */
.footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.5rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-gray);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px dashed var(--theme-primary);
}

.footer-disclaimer .icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.4rem;
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 600px) {
  .headline-glitch {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  .fake-alerts {
    display: none;
    /* Hide on very small screens for performance */
  }

  .terminal-output {
    font-size: 0.55rem;
    min-height: 80px;
    padding: 0.6rem;
  }

  .live-stats {
    gap: 0.8rem;
  }

  .stat-item {
    padding: 0.4rem 0.6rem;
    min-width: 60px;
  }

  .stat-value {
    font-size: 0.9rem;
  }

  .reveal-card {
    padding: 1.5rem;
  }

  .reveal-icon {
    font-size: 3rem;
  }

  .section {
    padding: 1rem;
  }

  .tip-item {
    padding: 0.6rem 0.8rem;
  }

  .quiz-options {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
  }

  .noise-overlay,
  .scanlines {
    display: none;
  }
}

/* === ENHANCED MOBILE FAKE ALERTS (show fewer) === */
@media (min-width: 400px) and (max-width: 600px) {
  .fake-alerts {
    display: block;
  }

  .fake-alert:nth-child(n+5) {
    display: none;
  }
}