:root {
  color-scheme: dark;
  font-family: Inter, ui-rounded, system-ui, sans-serif;
  background: #061b22;
  color: #f8ffe9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0%, #26785a 0, transparent 34rem),
    radial-gradient(circle at 15% 70%, #1e496a 0, transparent 24rem),
    linear-gradient(#061b22, #10120e);
}

main {
  width: min(96vw, 760px);
  padding: 1rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  letter-spacing: 0.06em;
  text-shadow: 0 6px 0 #0006;
}

.subtitle,
.help { color: #d9ffcf; }

#game {
  width: min(94vw, 624px);
  height: auto;
  max-height: 72vh;
  border: 6px solid #ccff8a;
  border-radius: 22px;
  box-shadow: 0 24px 70px #000a, inset 0 0 0 4px #123d26;
  background: #123d26;
  touch-action: none;
}

.hud,
.controls {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.75rem auto;
  flex-wrap: wrap;
}

.hud div,
button,
.quip {
  border: 2px solid #ccff8a;
  border-radius: 999px;
  background: #0d3a2d;
  color: #f8ffe9;
  padding: 0.55rem 0.9rem;
  font-weight: 850;
}

.quip {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(94vw, 624px);
  border-color: #ffd56a;
  background: #442b12;
}

button {
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 0 #0007;
}

button:hover,
button:focus-visible { background: #176348; }
button:active { transform: translateY(2px); box-shadow: 0 2px 0 #0007; }

@media (max-width: 560px) {
  main { padding: 0.5rem; }
  .hud div,
  button,
  .quip { padding: 0.45rem 0.65rem; }
}
