:root {
  --ink: #111b21;
  --paper: #e9e8d7;
  --muted: #8dabae;
  --cyan: #76edd8;
  --orange: #ffb568;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden;
  touch-action: none;
}
#play {
  display: block;
  width: 100vw;
  height: 100vh;
}
#menu, #result {
  position: fixed;
  inset: 0;
  padding: 56px 28px 80px;
  max-width: 720px;
  pointer-events: none;
}
#menu > *, #result > * { pointer-events: auto; }
.kicker {
  color: var(--cyan);
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 8px;
}
h1 {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  text-shadow: 0 8px 24px rgba(17, 27, 33, 0.55);
}
.lede {
  color: var(--muted);
  font-size: 18px;
  margin: 10px 0 28px;
  max-width: 28em;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
nav button, #result button, #touch button {
  background: transparent;
  color: var(--paper);
  border: 0;
  border-bottom: 1px solid rgba(233,232,215,0.2);
  padding: 12px 16px;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
}
nav button.on {
  color: var(--ink);
  background: var(--cyan);
  border-bottom-color: var(--cyan);
}
.go {
  margin-top: 12px;
  background: var(--cyan);
  color: var(--ink);
  border: 0;
  padding: 14px 22px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 22px;
  font-family: Menlo, ui-monospace, monospace;
}
#touch {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
#touch .stick {
  pointer-events: auto;
  position: absolute;
  left: 24px;
  bottom: 28px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 1px solid rgba(233,232,215,0.25);
  background: rgba(17,27,33,0.35);
}
#touch .right {
  pointer-events: auto;
  position: absolute;
  right: 18px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 8px;
}
#touch .right button {
  background: rgba(17,27,33,0.55);
  border: 1px solid rgba(233,232,215,0.18);
  min-height: 48px;
}
#touch .fire {
  grid-column: span 3;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
}
@media (pointer: fine) {
  #touch { display: none; }
}
