/* Slingshot page: builds on styles.css (the manual game's arcade look and keycaps). */
/* The page fills its frame at every width, so an iframe of any size fits without scrolling;
   the scene takes whatever height the panel leaves (slingshot.js decides how much of the world it shows). */
html, body { height: 100%; }
.game.sling { height: 100dvh; }
/* On a phone the page takes the whole screen; on wider screens it stops growing past the scene's useful height. */
@media (min-width: 761px) { .game.sling { max-height: 840px; } }
.sling .stage { flex: 1 1 auto; min-height: 220px; }
.sling #scene { height: 100%; aspect-ratio: auto; cursor: crosshair; }

.tally { display: flex; gap: 14px; flex-wrap: wrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.count b { font-weight: 400; }
.count.good { color: var(--accent-strong); }
.count.bad { color: var(--danger); }
/* Flashes when a throw is refused because the sky is full. */
.count.full { animation: full .6s steps(2, jump-none) 2; }
@keyframes full { 50% { color: var(--danger); } }

.how { display: grid; gap: 8px; min-width: 0; }
.how h1 { margin: 0; font: 14px/1.4 var(--arcade); text-transform: uppercase; }
.how p { margin: 0; font: 9px/1.7 var(--arcade); text-transform: uppercase; }
.how .tip { color: var(--muted); font-size: 8px; }

.sling .actions { grid-template-columns: repeat(2, auto); }

@media (max-width: 760px) {
  .sling .actions { grid-template-columns: repeat(2, 1fr); }
  .how h1 { font-size: 12px; }
  .how .tip { display: none; }
  .tally { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .count.full { animation: none; color: var(--danger); }
}
