:root {
  color: #f7fbff;
  background: #0c1720;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

button {
  border: 0;
  border-radius: 8px;
  background: #ffcc3d;
  color: #18202a;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.8rem 1.25rem;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

button:hover {
  background: #ffe179;
  transform: translateY(-1px);
}

#game {
  display: block;
  height: 100%;
  width: 100%;
}

#hud {
  display: flex;
  gap: 0.75rem;
  left: 50%;
  pointer-events: none;
  position: fixed;
  top: 1rem;
  transform: translateX(-50%);
  z-index: 5;
}

.stat {
  align-items: center;
  background: rgb(7 17 27 / 78%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 22%);
  display: grid;
  min-width: 110px;
  padding: 0.55rem 0.75rem;
}

.stat span {
  color: #b7c9d8;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stat strong {
  font-size: 1.15rem;
}

#reticle {
  border: 2px solid rgb(255 255 255 / 88%);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 50%),
    0 0 18px rgb(255 204 61 / 55%);
  height: 30px;
  left: 50%;
  pointer-events: none;
  position: fixed;
  top: 47%;
  transform: translate(-50%, -50%);
  width: 30px;
  z-index: 4;
}

#reticle::before,
#reticle::after {
  background: rgb(255 255 255 / 88%);
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

#reticle::before {
  height: 2px;
  width: 44px;
}

#reticle::after {
  height: 44px;
  width: 2px;
}

.panel {
  background: rgb(8 19 30 / 84%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgb(0 0 0 / 36%);
  left: 50%;
  max-width: min(92vw, 480px);
  padding: 1.6rem;
  position: fixed;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 10;
}

.panel h1,
.panel h2 {
  font-size: clamp(2rem, 8vw, 4.5rem);
  line-height: 0.95;
  margin: 0 0 0.7rem;
}

.panel h2 {
  font-size: clamp(1.9rem, 7vw, 3.5rem);
}

.panel p {
  color: #cbd7e1;
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0 auto 1.25rem;
}

.controls {
  color: #aebdcc;
  display: grid;
  font-size: 0.9rem;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.hidden {
  display: none;
}

@media (max-width: 620px) {
  #hud {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100vw - 1rem);
  }

  .stat {
    min-width: 0;
    padding: 0.45rem 0.5rem;
  }

  .stat strong {
    font-size: 0.95rem;
  }
}
