/* Flappy Maker (public/arcade/flappymaker.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), and while building the tray: one pip per block, what to do next, the build clock, Clear and Ready. */
.ag-stage[data-kind="flappymaker"] { touch-action: none; -webkit-user-select: none; user-select: none; }
.fm { position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--ac-ink); font-family: var(--ac-pixel); }
.fm-map { flex: none; padding: 8px 10px 6px; display: flex; justify-content: center; }
.fm-mini { display: block; border-radius: 3px; box-shadow: 0 0 0 2px var(--ac-line); touch-action: none; cursor: ew-resize; }
.fm-view { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: pointer; }
.fm-cv { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }

.fm-tray { flex: none; padding: 8px max(12px, env(safe-area-inset-left)) 10px; border-top: 2px solid var(--ac-line); background: #000; }
.fm-tray[hidden] { display: none; }
.fm-stock { display: flex; gap: 3px; justify-content: center; height: 14px; margin: 0 auto 8px; max-width: 520px; }
.fm-stock i { flex: 1 1 0; max-width: 12px; border-radius: 1px; background: var(--ac-line); }
.fm-stock i.used { background: var(--me); box-shadow: 0 0 5px color-mix(in srgb, var(--me) 55%, transparent); }
.fm-row { display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto; }
.fm-left { flex: 1; min-width: 0; margin: 0; font-size: 21px; line-height: 1.05; letter-spacing: .02em; color: var(--ac-ink); }
.fm-left.bad { color: #ff4d6d; }
.fm-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; }
.fm-clock.low { color: #ff4d6d; }
.fm-row .ag-key { height: 46px; min-width: 0; font-size: 22px; }
.fm-row .ag-key[hidden] { display: none; }
.fm-tray.is-ready .fm-left { color: var(--ac-ink-2); }
@media (max-width: 360px) {
  .fm-left { font-size: 18px; }
  .fm-row .ag-key { padding: 0 11px; }
}
