/* "Back to games" pill injected into every /play/<slug>/ page by scripts/build_games.mjs.
   Bottom-left, clear of the kit HUD (top row) and of the safe areas on a phone. */
.sc-back {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 14, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.86);
  font: 500 13px/1 'Outfit', system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sc-back svg { width: 14px; height: 14px; }
/* On a touch screen the bottom-left corner is part of the play area (Iris Run steers
   by holding a screen half), so a stray thumb there must not leave the game. While a
   round runs (HUD on, no start/results card) the pill steps aside; it is back on the
   start and results cards. Mouse users keep it: a click there is deliberate. */
@media (pointer: coarse) {
  body:has(.kit-hud.is-on):not(:has(.kit-screen.is-on)) .sc-back { display: none; }
}
.sc-back:hover { color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.sc-back:focus-visible { outline: 2px solid #d33a3a; outline-offset: 2px; }
