/* ==========================================================================
   LAZZYENGINEER - GLOBAL RESETS & AMBIENT VIGNETTES
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-family: var(--fonts-body);
  background-color: var(--colors-bg);
  color: var(--colors-gray12);
  line-height: 1.5;
  transition: background-color 250ms ease, color 250ms ease;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background: var(--colors-bg);
  color: var(--colors-gray12);
  user-select: none;
  -webkit-user-select: none;
}

::selection {
  background: #fff9a8;
  color: #000000;
}

.dark ::selection {
  background: #f8e71c;
  color: #000000;
}

input, button, textarea, select {
  font-family: inherit;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.ambient-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  user-select: none;
  background: radial-gradient(ellipse at center, transparent 40%, var(--colors-bg) 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 50%, black 100%);
  mask-image: radial-gradient(ellipse at center, transparent 50%, black 100%);
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
  opacity: 0.8;
}

.bottom-blur-gradient {
  -webkit-mask-image: linear-gradient(to top, #000 25%, transparent);
  mask-image: linear-gradient(to top, #000 25%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  width: 100%;
  height: clamp(80px, 12vh, 180px);
  bottom: 0;
  left: 0;
  pointer-events: none;
  position: fixed;
  z-index: 5;
}

.screen-crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  z-index: 30;
  pointer-events: none;
}

.screen-crosshair svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

@keyframes dockAppear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(80px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}
