@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --text: #f8fafc;
  --muted: #a1a1aa;
  --dim: #52525b;
  --line: rgba(255, 255, 255, 0.12);
  --hot: #ffd84d;
  --hot-2: #ff7a1a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: var(--text);
  overflow: hidden;
  cursor: crosshair;
}

button,
a {
  font: inherit;
}

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

.noise-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#webgl-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  touch-action: none;
}

.reticle {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 12;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border: 1px solid rgba(255, 216, 77, 0.48);
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: border-color 120ms ease, scale 120ms ease;
  mix-blend-mode: screen;
}

.reticle::before,
.reticle::after {
  content: "";
  position: absolute;
  inset: 25px 12px auto;
  height: 1px;
  background: rgba(255, 216, 77, 0.64);
}

.reticle::after {
  inset: 12px auto auto 25px;
  width: 1px;
  height: 28px;
}

.reticle span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--hot);
}

.reticle span:nth-child(1) {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.reticle span:nth-child(2) {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
}

.reticle span:nth-child(3) {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.reticle span:nth-child(4) {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.webgl-warning {
  position: fixed;
  left: 50%;
  top: 54%;
  z-index: 30;
  width: min(420px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  padding: 14px 16px;
  border: 1px solid rgba(255, 216, 77, 0.38);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffd84d;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  backdrop-filter: blur(12px);
}

body.is-firing .reticle {
  border-color: rgba(255, 122, 26, 0.9);
  scale: 0.84;
}

@media (max-width: 760px) {
  .reticle {
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
  }
}
