:root {
  --color-red: #ff3131;
  --color-yellow: #f3b900;
  --color-black: #050505;
}

body {
  font-family: "Space Mono", monospace;
  background-color: var(--color-black);
  color: #ffffff;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  cursor: default;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: "Space Grotesk", sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border: 1px solid #ff3131;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff3131;
}

/* Pixel Canvas Styles */
.pixel-canvas {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: screen;
}

.content-layer {
  position: relative;
  z-index: 10;
}

/* Vignette overlay */
.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    #050505 120%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}

/* Top Gradient Overlay */
.top-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  background: linear-gradient(
    to bottom,
    #050505 0%,
    rgba(5, 5, 5, 0.8) 20%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Pattern for Bento Cards */
.bg-grid-pattern {
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    );
  background-size: 20px 20px;
}

.bg-dot-pattern {
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
}

/* Digital Horizon Animation */
.horizon-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: linear-gradient(
      rgba(255, 49, 49, 0.3) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 49, 49, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(500px) rotateX(60deg) translateY(-100px)
    translateZ(-200px);
  animation: horizon-move 20s linear infinite;
  opacity: 0.3;
  top: 0;
  left: -50%;
}

@keyframes horizon-move {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0)
      translateZ(-200px);
  }
  100% {
    transform: perspective(500px) rotateX(60deg) translateY(40px)
      translateZ(-200px);
  }
}

.text-outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  color: transparent;
  transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
}

.text-highlight {
  -webkit-text-stroke: 0px;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

#asteroids-game,
#game-ui {
  touch-action: none;
}

#game-ui,
#game-ui * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
