* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
  color: #00ff00;
  font-family: 'Courier New', monospace;
  overflow: hidden;
  text-align: center;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  position: relative;
  /* Handle notched devices */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ========================================
   START SCREEN
   ======================================== */
#start-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  touch-action: manipulation;
}

#start-screen.hidden {
  display: none;
}

.start-content {
  text-align: center;
  padding: 20px;
}

.start-logo {
  font-size: 56px;
  font-weight: bold;
  letter-spacing: 8px;
  color: #00ff00;
  text-shadow:
    0 0 10px #00ff00,
    0 0 20px #00ff00,
    0 0 40px #00ff00,
    0 0 80px #00ff00;
  margin-bottom: 10px;
  animation: logoGlow 2s ease-in-out infinite;
}

.start-subtitle {
  font-size: 14px;
  color: #666;
  letter-spacing: 4px;
  margin-bottom: 40px;
}

.start-rules {
  margin-bottom: 40px;
}

.start-rules p {
  font-size: 16px;
  color: #aaa;
  margin: 15px 0;
  line-height: 1.5;
}

.start-rules strong {
  color: #00ff00;
}

.start-btn {
  display: inline-block;
  background: linear-gradient(180deg, #00ff00, #00aa00);
  color: #000;
  font-size: 24px;
  font-weight: bold;
  padding: 20px 60px;
  border-radius: 15px;
  letter-spacing: 3px;
  cursor: pointer;
  box-shadow:
    0 0 20px rgba(0, 255, 0, 0.4),
    0 0 40px rgba(0, 255, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.start-btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 30px rgba(0, 255, 0, 0.6),
    0 0 60px rgba(0, 255, 0, 0.3);
}

.start-btn:active {
  transform: scale(0.98);
}

.start-hint {
  margin-top: 30px;
  font-size: 12px;
  color: #555;
}

/* Particle canvas */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Header */
#header {
  position: absolute;
  top: 20px;
  width: 100%;
  z-index: 10;
}

#logo {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 8px;
  text-shadow:
    0 0 10px #00ff00,
    0 0 20px #00ff00,
    0 0 40px #00ff00,
    0 0 80px #00ff00;
  animation: logoGlow 2s ease-in-out infinite;
}

#subtitle {
  font-size: 12px;
  color: #666;
  letter-spacing: 4px;
  margin-top: 5px;
}

@keyframes logoGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Main game area */
#game {
  position: relative;
  top: 25vh;
  z-index: 10;
}

/* Timer */
#timer-container {
  margin-bottom: 20px;
}

#timer {
  font-size: 120px;
  font-weight: bold;
  text-shadow:
    0 0 20px #00ff00,
    0 0 40px #00ff00,
    0 0 60px #00ff00;
  transition: all 0.3s ease;
  animation: timerPulse 1s ease-in-out infinite;
}

#timer.danger {
  color: #ff0040;
  text-shadow:
    0 0 20px #ff0040,
    0 0 40px #ff0040,
    0 0 60px #ff0040;
  animation: timerShake 0.1s infinite;
}

#timer.gold {
  color: #ffd700;
  text-shadow:
    0 0 20px #ffd700,
    0 0 40px #ffd700,
    0 0 60px #ffd700;
}

#timer-label {
  font-size: 14px;
  color: #555;
  letter-spacing: 2px;
}

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

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

/* Progress bar */
#progress-container {
  width: 80%;
  max-width: 400px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 4px;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
  border: 1px solid #333;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ff00, #00ff88, #00ff00);
  border-radius: 4px;
  transition: width 0.1s linear;
  position: relative;
}

#progress-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.5), transparent);
  animation: progressGlow 2s linear infinite;
}

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

/* Messages */
#message {
  font-size: 32px;
  margin-top: 30px;
  text-transform: uppercase;
  letter-spacing: 4px;
  min-height: 40px;
  transition: all 0.3s ease;
}

#message.danger {
  color: #ff0040;
  text-shadow: 0 0 20px #ff0040;
}

#message.gold {
  color: #ffd700;
  text-shadow: 0 0 20px #ffd700;
}

#sub-message {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  min-height: 20px;
}

.blink {
  animation: blink 1s infinite;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

/* Fake button */
#fake-button {
  margin: 30px auto;
  padding: 15px 40px;
  background: linear-gradient(180deg, #ffd700, #ff8c00);
  color: #000;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow:
    0 4px 15px rgba(255, 215, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  animation: buttonBounce 0.5s ease-in-out infinite;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#fake-button:hover {
  transform: scale(1.1);
}

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

/* Fake notification */
#fake-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
  border: 2px solid #ffd700;
  border-radius: 15px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideIn 0.3s ease, notifGlow 1s infinite;
  z-index: 100;
  cursor: pointer;
}

.notif-icon {
  font-size: 40px;
  animation: iconBounce 0.5s infinite;
}

.notif-text {
  text-align: left;
}

.notif-text strong {
  color: #ffd700;
  display: block;
  font-size: 14px;
}

.notif-text span {
  color: #999;
  font-size: 12px;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes notifGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); }
}

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

/* Stats */
#stats {
  position: fixed;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 40px;
  z-index: 10;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-label {
  font-size: 10px;
  color: #555;
  letter-spacing: 2px;
}

.stat-value {
  font-size: 24px;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
}

/* Warning bar */
#warning-bar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px;
  background: linear-gradient(90deg, #ff0040, #ff4040, #ff0040);
  color: white;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  animation: warningFlash 0.3s infinite;
  z-index: 100;
}

@keyframes warningFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* CRT scanlines */
#crt {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 0, 0.03),
    rgba(0, 255, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1000;
}

/* Glitch overlay */
#glitch-overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  opacity: 0;
}

#glitch-overlay.active {
  animation: glitchOverlay 0.1s infinite;
  opacity: 1;
}

@keyframes glitchOverlay {
  0% {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 0, 64, 0.3) 50%, transparent 100%);
    transform: translateX(-10px);
  }
  25% {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.3) 50%, transparent 100%);
    transform: translateX(10px) skewX(5deg);
  }
  50% {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 0, 128, 0.3) 50%, transparent 100%);
    transform: translateX(-5px) skewX(-5deg);
  }
  75% {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 0, 0.3) 50%, transparent 100%);
    transform: translateX(5px);
  }
  100% {
    background: transparent;
    transform: translateX(0);
  }
}

/* Screen shake */
body.shake {
  animation: screenShake 0.1s infinite;
}

@keyframes screenShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-5px, 2px) rotate(-0.5deg); }
  50% { transform: translate(5px, -2px) rotate(0.5deg); }
  75% { transform: translate(-3px, -1px) rotate(-0.3deg); }
}

/* Flash overlay for screen flash effects */
#flash-overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  opacity: 0;
  background: white;
  transition: opacity 0.1s;
}

#flash-overlay.active {
  opacity: 0.8;
}

/* Fake cursor */
#fake-cursor {
  position: fixed;
  font-size: 40px;
  pointer-events: none;
  z-index: 500;
  transition: all 0.1s ease;
  filter: drop-shadow(0 0 10px #ffd700);
  animation: cursorWiggle 0.3s infinite;
}

@keyframes cursorWiggle {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* Fake close button */
#fake-close {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: #ff0040;
  color: white;
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  animation: closeButtonPulse 0.5s infinite;
  box-shadow: 0 0 20px #ff0040;
}

@keyframes closeButtonPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px #ff0040; }
  50% { transform: scale(1.2); box-shadow: 0 0 40px #ff0040; }
}

/* Fake Ad popup */
#fake-ad {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #1a1a3a, #0a0a2a);
  border: 3px solid #ffd700;
  border-radius: 20px;
  padding: 30px;
  z-index: 300;
  min-width: 300px;
  animation: adPopIn 0.3s ease;
}

@keyframes adPopIn {
  from { transform: translate(-50%, -50%) scale(0); }
  to { transform: translate(-50%, -50%) scale(1); }
}

.ad-content {
  text-align: center;
}

.ad-text {
  font-size: 28px;
  color: #ffd700;
  font-weight: bold;
  animation: adTextGlow 0.5s infinite;
}

@keyframes adTextGlow {
  0%, 100% { text-shadow: 0 0 10px #ffd700; }
  50% { text-shadow: 0 0 30px #ffd700, 0 0 60px #ffd700; }
}

.ad-subtext {
  color: #aaa;
  margin: 15px 0;
}

.ad-button {
  background: linear-gradient(180deg, #00ff00, #00aa00);
  color: #000;
  padding: 15px 40px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 18px;
  margin-top: 10px;
  display: inline-block;
  animation: buttonBounce 0.5s infinite;
  cursor: pointer;
}

.ad-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: #ff0040;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  animation: closeButtonPulse 0.5s infinite;
}

.ad-timer {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #666;
  font-size: 12px;
}

/* Fake system dialog */
#fake-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2a2a2a;
  border-radius: 15px;
  padding: 25px;
  z-index: 350;
  min-width: 320px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  animation: dialogShake 0.5s ease;
}

@keyframes dialogShake {
  0%, 100% { transform: translate(-50%, -50%); }
  10%, 30%, 50%, 70%, 90% { transform: translate(-52%, -50%); }
  20%, 40%, 60%, 80% { transform: translate(-48%, -50%); }
}

.dialog-title {
  font-size: 20px;
  color: #ff6b6b;
  margin-bottom: 15px;
}

.dialog-message {
  color: #ccc;
  margin-bottom: 20px;
  font-size: 14px;
}

.dialog-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.dialog-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  background: #444;
  color: #fff;
}

.dialog-btn.primary {
  background: #ff0040;
  animation: buttonPulse 0.5s infinite;
}

@keyframes buttonPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 64, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(255, 0, 64, 0); }
}

/* Fake loading spinner */
#fake-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 280;
  text-align: center;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #333;
  border-top: 5px solid #00ff00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: #ff6b6b;
  font-size: 18px;
}

.loading-hint {
  color: #00ff00;
  font-size: 14px;
  margin-top: 10px;
  animation: blink 0.5s infinite;
}

/* Fake cookie consent */
#fake-cookie {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  border: 2px solid #333;
  border-radius: 15px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 150;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100px); }
  to { transform: translateX(-50%) translateY(0); }
}

.cookie-btn {
  background: #00ff00;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  animation: buttonBounce 0.5s infinite;
}

/* Floating bonus coin */
#bonus-coin {
  position: fixed;
  font-size: 50px;
  z-index: 180;
  animation: coinFloat 2s ease-in-out infinite, coinSpin 1s linear infinite;
  cursor: pointer;
  filter: drop-shadow(0 0 20px #ffd700);
}

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

@keyframes coinSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* Fake video player */
#fake-video {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 200px;
  background: #000;
  border: 3px solid #333;
  border-radius: 10px;
  z-index: 270;
  overflow: hidden;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 0, 64, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  cursor: pointer;
  animation: playButtonPulse 1s infinite;
}

@keyframes playButtonPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 64, 0.7); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(255, 0, 64, 0); }
}

.video-text {
  position: absolute;
  bottom: 5px;
  width: 100%;
  text-align: center;
  color: #ffd700;
  font-size: 12px;
  animation: blink 0.5s infinite;
}

/* Reverse psychology message */
#reverse-msg {
  position: fixed;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #00ff00;
  border-radius: 10px;
  padding: 15px 30px;
  color: #00ff00;
  font-size: 18px;
  z-index: 160;
  animation: reverseMsgPulse 1s infinite;
}

@keyframes reverseMsgPulse {
  0%, 100% { border-color: #00ff00; box-shadow: 0 0 10px #00ff00; }
  50% { border-color: #ff0040; box-shadow: 0 0 20px #ff0040; }
}

/* Crash screen */
#crash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a15;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.crash-icon {
  font-size: 100px;
  animation: crashIconShake 0.2s infinite;
}

@keyframes crashIconShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.crash-title {
  font-size: 40px;
  color: #ff0040;
  margin: 20px 0;
  text-shadow: 0 0 20px #ff0040;
}

.crash-message {
  color: #666;
  margin-bottom: 30px;
}

.crash-btn {
  background: linear-gradient(180deg, #ff0040, #aa0020);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  font-family: inherit;
  border-radius: 10px;
  cursor: pointer;
  animation: buttonPulse 0.5s infinite;
}

/* Fake win overlay */
#fake-win-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #1a1a3a 0%, #0a0a1a 100%);
  z-index: 380;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win-content {
  text-align: center;
  animation: winContentPop 0.5s ease;
}

@keyframes winContentPop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.win-icon {
  font-size: 100px;
  animation: winIconBounce 0.5s infinite;
}

@keyframes winIconBounce {
  0%, 100% { transform: scale(1) rotate(-5deg); }
  50% { transform: scale(1.2) rotate(5deg); }
}

.win-title {
  font-size: 48px;
  color: #ffd700;
  text-shadow: 0 0 30px #ffd700;
  margin: 20px 0;
}

.win-subtitle {
  font-size: 24px;
  color: #00ff00;
}

.win-time {
  color: #888;
  margin: 20px 0;
}

.win-btn {
  background: linear-gradient(180deg, #ffd700, #ff8c00);
  color: #000;
  border: none;
  padding: 20px 60px;
  font-size: 24px;
  font-weight: bold;
  font-family: inherit;
  border-radius: 15px;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Blackout screen trap */
#blackout-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 500;
}

/* Fullscreen mode for mobile */
html {
  height: 100%;
  height: -webkit-fill-available;
}


/* Mobile responsive */
@media (max-width: 600px) {
  /* Header adjustments */
  #header {
    top: 10px;
    padding: 0 10px;
  }

  #logo {
    font-size: 24px;
    letter-spacing: 2px;
  }

  #subtitle {
    font-size: 9px;
    letter-spacing: 1px;
  }

  /* Main game area */
  #game {
    top: 15vh;
    padding: 0 15px;
  }

  /* Timer */
  #timer {
    font-size: 100px;
  }

  #timer-label {
    font-size: 11px;
  }

  /* Progress bar */
  #progress-container {
    width: 90%;
    height: 6px;
    margin: 15px auto;
  }

  /* Messages */
  #message {
    font-size: 20px;
    letter-spacing: 2px;
    margin-top: 20px;
    padding: 0 10px;
  }

  #sub-message {
    font-size: 12px;
    padding: 0 15px;
    line-height: 1.4;
  }

  /* Fake button */
  #fake-button {
    margin: 20px auto;
    padding: 12px 30px;
    font-size: 16px;
  }

  /* Notification */
  #fake-notification {
    right: 10px;
    left: 10px;
    top: 60px;
    padding: 12px;
    justify-content: center;
  }

  .notif-icon {
    font-size: 28px;
  }

  .notif-text strong {
    font-size: 12px;
  }

  .notif-text span {
    font-size: 10px;
  }

  /* Fake ad */
  #fake-ad {
    min-width: 280px;
    max-width: 90vw;
    padding: 20px;
  }

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

  .ad-subtext {
    font-size: 12px;
  }

  /* Fake dialog */
  #fake-dialog {
    min-width: 280px;
    max-width: 90vw;
    padding: 20px;
  }

  .dialog-title {
    font-size: 18px;
  }

  .dialog-message {
    font-size: 13px;
  }

  /* Fake video */
  #fake-video {
    width: 280px;
    height: 160px;
  }

  .video-text {
    font-size: 12px;
  }

  /* Stats at bottom */
  #stats {
    bottom: 10px;
    gap: 30px;
    padding-bottom: env(safe-area-inset-bottom);
  }

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

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

  /* Fake close button */
  #fake-close {
    font-size: 28px;
    width: 44px;
    height: 44px;
    line-height: 44px;
  }

  /* Cookie banner */
  #fake-cookie {
    padding: 12px 15px;
    font-size: 11px;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .cookie-btn {
    padding: 8px 20px;
    font-size: 12px;
  }

  /* Loading */
  #fake-loading {
    padding: 20px 30px;
  }

  .loading-text {
    font-size: 14px;
  }

  /* Bonus coin */
  #bonus-coin {
    font-size: 50px;
  }

  /* Reverse message */
  #reverse-msg {
    font-size: 14px;
    padding: 15px 20px;
    max-width: 90%;
  }

  /* Crash screen */
  .crash-icon {
    font-size: 70px;
  }

  .crash-title {
    font-size: 28px;
  }

  .crash-btn {
    padding: 12px 30px;
    font-size: 16px;
  }

  /* Win overlay */
  .win-icon {
    font-size: 70px;
  }

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

  .win-subtitle {
    font-size: 18px;
  }

  .win-btn {
    padding: 15px 40px;
    font-size: 16px;
  }

  /* Start screen mobile */
  .start-logo {
    font-size: 20px;
    letter-spacing: 2px;
    padding: 0 10px;
  }

  .start-subtitle {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .start-rules {
    margin-bottom: 30px;
  }

  .start-rules p {
    font-size: 14px;
    margin: 10px 0;
  }

  .start-btn {
    font-size: 18px;
    padding: 16px 40px;
  }

  .start-hint {
    font-size: 11px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  #timer {
    font-size: 80px;
  }

  #message {
    font-size: 18px;
  }

  .start-logo {
    font-size: 16px;
  }

  .start-btn {
    font-size: 16px;
    padding: 14px 30px;
  }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  #header {
    display: none;
  }

  #game {
    top: 5vh;
  }

  #timer {
    font-size: 60px;
  }

  #timer-container {
    margin-bottom: 10px;
  }

  #progress-container {
    margin: 10px auto;
  }

  #message {
    font-size: 18px;
    margin-top: 10px;
  }

  #stats {
    bottom: 5px;
  }
}

