:root {
  color-scheme: dark;
  --ink: #eff8ff;
  --deep: #061126;
  --water: #0875d7;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 242, 164, 0.18), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(141, 243, 255, 0.16), transparent 28%),
    repeating-linear-gradient(90deg, rgba(14, 126, 91, 0.16) 0 48px, rgba(5, 44, 86, 0.16) 48px 96px),
    linear-gradient(180deg, #0b2c4f 0%, #061126 58%, #041021 100%);
}

button,
canvas {
  touch-action: none;
}

.game-page {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: #061126;
}

.game-shell {
  position: relative;
  width: min(100vw, 50vh, 900px);
  height: min(100vh, 200vw, 1800px);
  aspect-ratio: 1 / 2;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 22px 56px rgba(1, 19, 52, 0.5));
}

.game-shell canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.blast-target-hit {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.blast-target-hit:focus-visible {
  outline: 3px solid rgba(255, 242, 164, 0.92);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

noscript {
  position: fixed;
  inset: auto 20px 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(6, 17, 38, 0.84);
}

@media (max-width: 560px) {
  .game-page {
    place-items: center;
  }

  .game-shell {
    width: min(100vw, 50vh);
    height: min(100vh, 200vw);
  }
}
