/* Swimmy Fishler (public/arcade/swimmy.js). Arcade tokens come from arcade.css. Top to bottom: the overview strip
   (the whole course; building, a frame shows the bit you're looking at), the course itself (pixel canvas, the
   Downwell-style deep, the same size building and flying), and while building the tray over the seabed: one pip per block, what to do next, the build clock,
   Clear and Ready. */
.ag-stage[data-kind="swimmy"] { touch-action: none; -webkit-user-select: none; user-select: none; }
.sf { position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--ac-ink); font-family: var(--ac-pixel); }
.sf-map { flex: none; padding: 8px 10px 6px; display: flex; justify-content: center; }
.sf-mini { display: block; border-radius: 3px; box-shadow: 0 0 0 2px var(--ac-line); touch-action: none; cursor: ew-resize; }
.sf-view { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; touch-action: none; cursor: pointer; }
.sf-cv { display: block; flex: none; image-rendering: pixelated; image-rendering: crisp-edges; }

.sf-tray { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: block; box-sizing: border-box; height: 80px;
  padding: 8px max(12px, env(safe-area-inset-left)) 8px; border-top: 2px solid var(--ac-line); background: #000; }
/* while flying it stays laid out (swimmy.js sizes the course around it either way), just unseen */
.sf-tray.off { visibility: hidden; }
.sf-stock { display: flex; gap: 3px; justify-content: center; height: 10px; margin: 0 auto 6px; max-width: 520px; }
.sf-stock i { flex: 1 1 0; max-width: 12px; border-radius: 1px; background: var(--ac-line); }
.sf-stock i.used { background: var(--me); box-shadow: 0 0 5px color-mix(in srgb, var(--me) 55%, transparent); }
.sf-row { display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto; }
.sf-left { flex: 1; min-width: 0; margin: 0; font-size: 21px; line-height: 1.05; max-height: 2.1em; overflow: hidden; letter-spacing: .02em; color: var(--ac-ink); }
.sf-left.bad { color: #ff4d6d; }
.sf-clock { flex: none; min-width: 3.2ch; font-size: 28px; line-height: 1; color: var(--ac-ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.sf-clock.low { color: #ff4d6d; }
.sf-row .ag-key { height: 46px; min-width: 0; font-size: 22px; }
.sf-row .ag-key[hidden] { display: none; }
.sf-tray.is-ready .sf-left { color: var(--ac-ink-2); }
@media (max-width: 360px) {
  .sf-left { font-size: 18px; }
  .sf-row .ag-key { padding: 0 11px; }
}
