:root {
  color-scheme: dark;
  --ink: #eaf7ff;
  --muted: #91b7c5;
  --panel: rgba(5, 8, 18, 0.78);
  --cyan: #2df8ff;
  --pink: #ff3df2;
  --yellow: #ffe66d;
  --green: #6dff9a;
  --red: #ff4f67;
  --void: #050812;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--void);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

body {
  display: grid;
  place-items: center;
}

.shell {
  position: relative;
  width: min(100vw, 1180px);
  height: min(100vh, 720px);
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 248, 255, 0.17), transparent 26%),
    radial-gradient(circle at 82% 26%, rgba(255, 61, 242, 0.15), transparent 24%),
    linear-gradient(180deg, #0a1024, #050812 64%, #03040b);
}

.shell::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 50%, rgba(0, 0, 0, 0.08) 50%),
    radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.34));
  background-size: 100% 4px, 100% 100%;
  mix-blend-mode: screen;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hud {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  right: 14px;
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: 8px;
  pointer-events: none;
}

.hud div,
.callout {
  border: 1px solid rgba(45, 248, 255, 0.38);
  background: var(--panel);
  box-shadow: 0 0 18px rgba(45, 248, 255, 0.14);
}

.hud div {
  min-width: 0;
  padding: 8px 10px;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.callout {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  max-width: min(560px, calc(100% - 28px));
  margin: 0;
  padding: 9px 14px;
  color: #d7f9ff;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.callout.quiet {
  opacity: 0.2;
  transform: translateX(-50%) translateY(8px);
}

.overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(3, 4, 11, 0.18), rgba(3, 4, 11, 0.78));
}

.overlay.hidden {
  display: none;
}

h1 {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 76px;
  line-height: 0.95;
  text-shadow: 0 0 16px rgba(45, 248, 255, 0.8), 0 0 30px rgba(255, 61, 242, 0.48);
}

p {
  max-width: 560px;
  margin: 0 0 20px;
  color: #cbe6ef;
  font-size: 16px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

button {
  min-width: 112px;
  border: 2px solid var(--cyan);
  background: #071428;
  color: var(--ink);
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(45, 248, 255, 0.28);
}

button:focus-visible,
button:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

small {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .shell {
    min-height: 100vh;
  }

  .hud {
    top: 8px;
    left: 8px;
    right: 8px;
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 6px;
  }

  .hud div {
    padding: 6px 7px;
  }

  strong {
    font-size: 16px;
  }

  h1 {
    font-size: 52px;
  }

  .callout {
    bottom: 10px;
    font-size: 12px;
  }
}
