:root { font-family: system-ui, sans-serif; color: #10233b; background: #87c5eb; }
* { box-sizing: border-box; }
body { margin: 0 auto; padding: 12px; max-width: 860px; text-align: center; }
h1 { margin: .2em 0 0; font-size: 2.2rem; letter-spacing: 1px; text-shadow: 0 2px 0 #fff8; }
.tagline { margin: 4px 0 10px; }
#hud { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  background: #fffdf5; border-radius: 14px; padding: 8px 12px; font-weight: 700; }
#hud output { font-variant-numeric: tabular-nums; }
#stage { position: relative; margin-top: 10px; }
canvas { display: block; width: 100%; height: auto; background: #87c5eb; border-radius: 16px; touch-action: none;
  border: 4px solid #10233b; }
#overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; padding: 16px; }
#overlay .card { pointer-events: auto; background: #fffdf5f2; border: 3px solid #10233b; border-radius: 18px;
  padding: 18px 22px; max-width: 440px; box-shadow: 0 8px 24px #10233b55; }
#overlay h2 { margin: 0 0 8px; }
#overlay p { margin: 6px 0; }
#overlay button { font-size: 1.2rem; margin-top: 10px; }
#help { font-size: .95rem; }
kbd { background: #10233b; color: #fff; border-radius: 6px; padding: 1px 7px; font-size: .85em; }
button { font: inherit; font-weight: 700; padding: 10px 18px; border: 0; border-radius: 12px; cursor: pointer;
  background: #10233b; color: #fff; }
button:active { transform: scale(.96); }
#touch-controls { display: flex; gap: 12px; justify-content: center; margin: 4px 0 8px; }
#btn-swoop, #btn-poo { flex: 1; max-width: 260px; padding: 16px; font-size: 1.25rem; border: 3px solid #10233b; }
#btn-swoop { background: #ff9d2e; color: #10233b; }
#btn-poo { background: #6abe30; color: #10233b; }
#btn-swoop.cool, #btn-poo.cool { opacity: .45; }
@media (max-width: 480px) {
  body { padding: 8px; }
  h1 { font-size: 1.6rem; }
  #help { font-size: .8rem; }
}
@media (orientation: landscape) and (max-height: 500px) {
  h1, .tagline, #help { display: none; }
  body { max-width: 100%; }
}
