* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100vw; overscroll-behavior: none; }
body {
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { touch-action: manipulation; cursor: pointer; }
.mono { font-family: 'Courier New', monospace; }

/* Scanline overlay — matches original repeating-linear-gradient */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}

/* REC badge */
.rec-badge {
  position: fixed;
  top: max(1.25rem, env(safe-area-inset-top));
  right: max(1.5rem, env(safe-area-inset-right));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  filter: drop-shadow(0 0 12px rgba(255,40,40,0.8));
}
.rec-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,40,40,0.2);
  transition: all 0.3s ease;
}
.rec-dot.on {
  background: rgb(255,40,40);
  box-shadow: 0 0 12px rgba(255,40,40,1);
}
.rec-label {
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,40,40,0.45);
  transition: color 0.3s ease;
}
.rec-label.on { color: rgba(255,40,40,1); }

/* Back button */
.back-btn {
  position: fixed;
  top: max(1.25rem, env(safe-area-inset-top));
  left: max(1.25rem, env(safe-area-inset-left));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.75rem;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.back-btn svg { width: 14px; height: 14px; }
