:root {
  --ink: #171018;
  --deep: #221227;
  --panel: rgba(43, 24, 50, 0.82);
  --lime: #a9f04a;
  --honey: #ffd15c;
  --stinger: #ff4f6f;
  --foam: #d5fff3;
  --muted: #c8afcf;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background: var(--ink);
}

body {
  color: var(--foam);
  font-family: "Arial Black", Impact, Haettenschweiler, sans-serif;
}

.fps-shell {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 209, 92, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 82%, rgba(169, 240, 74, 0.13), transparent 24rem),
    linear-gradient(135deg, #120d16, #2a1631 54%, #111414);
}

#game {
  position: absolute;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: crosshair;
  image-rendering: pixelated;
  touch-action: none;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.18;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 4px, 26px 26px;
  mix-blend-mode: screen;
}

.brand-lockup {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  left: clamp(14px, 3vw, 32px);
  z-index: 5;
  max-width: min(760px, calc(100vw - 28px));
  pointer-events: none;
}

.brand-lockup p {
  margin: 0 0 5px;
  color: var(--honey);
  font-size: clamp(0.68rem, 1.3vw, 0.92rem);
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--ink);
}

h1 {
  margin: 0;
  color: var(--foam);
  font-size: clamp(2.45rem, 8vw, 7.2rem);
  line-height: 0.78;
  letter-spacing: 0;
  text-shadow:
    4px 0 0 var(--stinger),
    8px 0 0 var(--ink),
    0 8px 0 var(--ink);
}

.hud-panel {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 32px);
  z-index: 5;
  display: grid;
  width: min(245px, calc(100vw - 28px));
  gap: 11px;
  border: 5px solid var(--ink);
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(255, 209, 92, 0.13), transparent 44%),
    var(--panel);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.42);
}

.status-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 4px solid rgba(213, 255, 243, 0.18);
  padding-bottom: 7px;
}

.status-line span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.status-line strong {
  color: var(--honey);
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  line-height: 1;
}

.meter {
  overflow: hidden;
  width: 100%;
  height: 18px;
  border: 4px solid var(--ink);
  background: #5b2538;
}

.meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--honey));
  transform-origin: left center;
  transition: transform 140ms ease-out;
}

.reticle {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.reticle::before,
.reticle::after,
.reticle span::before,
.reticle span::after {
  position: absolute;
  content: "";
  background: var(--foam);
  box-shadow: 2px 2px 0 var(--ink);
}

.reticle::before,
.reticle::after {
  width: 4px;
  height: 18px;
}

.reticle::before {
  transform: translateY(-18px);
}

.reticle::after {
  transform: translateY(18px);
}

.reticle span::before,
.reticle span::after {
  width: 18px;
  height: 4px;
}

.reticle span::before {
  transform: translateX(-18px);
}

.reticle span::after {
  transform: translateX(18px);
}

.message-strip {
  position: absolute;
  left: 50%;
  bottom: clamp(138px, 19vh, 176px);
  z-index: 7;
  max-width: min(720px, calc(100vw - 28px));
  border: 5px solid var(--ink);
  padding: 9px 13px 8px;
  background: rgba(23, 16, 24, 0.82);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.42);
  color: var(--honey);
  font-size: clamp(0.74rem, 1.8vw, 1rem);
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.start-button {
  position: absolute;
  left: 50%;
  bottom: clamp(74px, 11vh, 108px);
  z-index: 8;
  border: 5px solid var(--ink);
  padding: 14px 19px 12px;
  background: var(--lime);
  box-shadow: 7px 7px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.9rem, 2vw, 1.14rem);
  text-transform: uppercase;
  transform: translateX(-50%);
  transition:
    transform 120ms ease-out,
    box-shadow 120ms ease-out,
    background 120ms ease-out;
}

.start-button:hover,
.start-button:focus-visible {
  background: var(--honey);
  outline: none;
  transform: translate(-52%, -2px);
  box-shadow: 9px 9px 0 var(--ink);
}

.start-button:active {
  transform: translate(calc(-50% + 4px), 4px);
  box-shadow: 3px 3px 0 var(--ink);
}

.start-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.controls {
  position: absolute;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 24px);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(720px, calc(100vw - 28px));
  gap: 8px;
  pointer-events: none;
}

.controls span {
  border: 4px solid var(--ink);
  padding: 7px 10px 6px;
  background: rgba(43, 24, 50, 0.82);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  color: var(--foam);
  font-size: clamp(0.68rem, 1.5vw, 0.82rem);
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .brand-lockup {
    top: 14px;
    left: 14px;
  }

  .hud-panel {
    top: auto;
    right: 14px;
    bottom: 132px;
    width: min(190px, calc(100vw - 28px));
    gap: 8px;
    padding: 10px;
  }

  .status-line {
    padding-bottom: 5px;
  }

  .message-strip {
    bottom: 364px;
    font-size: 0.7rem;
  }

  .start-button {
    bottom: 306px;
    max-width: calc(100vw - 30px);
    padding-inline: 13px;
    white-space: normal;
  }

  .controls {
    left: 14px;
    right: 14px;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  h1 {
    max-width: 9ch;
  }

  .hud-panel {
    left: 14px;
    right: 14px;
    width: auto;
  }
}
