:root {
  /* Backgrounds */
  --bg-deep: #f2e9d7;
  --bg-glass: rgba(255, 252, 244, 0.86);
  --bg-panel: rgba(255, 252, 244, 0.92);

  /* Interface Colors */
  --holo-cyan: #1f7d78;
  --holo-alert: #c2443a;
  --holo-gold: #b7742f;
  --holo-blue: #2d6f8f;
  --holo-gray: #b4a99a;
  --holo-dark: #3d332a;

  /* Effects */
  --glow-strong: 0 0 18px rgba(31, 125, 120, 0.35);
  --glow-subtle: 0 0 6px rgba(31, 125, 120, 0.18);
  --border-glass: 1px solid rgba(31, 125, 120, 0.2);
  --glow-border: 0 0 12px rgba(31, 125, 120, 0.22);
  --glass-blur: blur(10px);

  /* Fonts */
  --font-hud: 'Unbounded', sans-serif;
  --font-text: 'Spline Sans', sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  /* Text */
  --text-main: #241a14;
  --text-dim: #6f5e50;
  --button-bg: rgba(31, 125, 120, 0.1);
  --button-selected: rgba(183, 116, 47, 0.18);
  --border-radius: 14px;
  
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* -moz-osx-font-smoothing: grayscale; */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-text);
  overflow: hidden;
  position: relative;
}

#root {
  width: 100vw;
  height: 100vh;
  position: relative;
  transition: all 0.3s ease;
}

/* Scanlines Overlay */
.scanlines {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(0,0,0,0.2) 50%,
    rgba(0,0,0,0.2)
  );
  background-size: 100% 4px;
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  pointer-events: none; /* Let clicks pass through */
  z-index: 999;
  opacity: 0.08;
}

/* Glitch Effect */
.glitch {
  animation: glitch 0.2s;
}

@keyframes glitch {
  0% {
    filter: hue-rotate(0deg);
  }
  10% {
    filter: hue-rotate(90deg) saturate(150%);
    transform: translateX(-2px);
  }
  20% {
    filter: hue-rotate(180deg) saturate(150%);
    transform: translateX(2px);
  }
  30% {
    filter: hue-rotate(270deg) saturate(150%);
    transform: translateX(-1px);
  }
  40% {
    filter: hue-rotate(360deg) saturate(150%);
    transform: translateX(1px);
  }
  100% {
    filter: hue-rotate(0deg);
    transform: translateX(0);
  }
}
