/* oddlyplay · assets/rescue-hero.css
   The Rescue Bot picture on the home page and on /play/: the game's own robot, asleep and broken for years, asking for help.
   It is captured from the real game, not redrawn (scripts/make-rescue-hero.mjs says how): a still picture and a 9 second silent loop of
   the same view. Shared by both pages; the markup (figure.rbh) is written out in index.html and play/index.html, keep the two the same.

   Still first. The picture is the still (img.rbh-still) and stays that way for reduced motion, the Motion dial at Still, high contrast,
   Clean screen, a Save-Data connection, a browser that can play neither the WebM nor the animated WebP, no script, and while the pause button is on. The video only
   covers it once it is actually playing (figure.is-live). The caption is real text, always on. */
.rbh { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-4); overflow: hidden; background: #3A4642; box-shadow: var(--sunk); }
.rbh-art { position: absolute; inset: 0; }
.rbh-art :is(img, video) { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.rbh-video, .rbh-anim { opacity: 0; }
.rbh.is-live .rbh-video, .rbh.is-anim .rbh-anim { opacity: 1; }   /* .rbh-anim is the animated WebP for browsers that cannot play the WebM; rescue-hero.js adds it */

.rbh-line { position: absolute; left: 50%; bottom: clamp(10px, 4.5%, 24px); transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); margin: 0; padding: 8px 16px; border-radius: var(--r-3); background: rgba(24, 22, 20, .86); color: #FFF3D6; font-weight: 600; font-size: clamp(.875rem, .8rem + .5vw, 1.0625rem); line-height: 1.35; text-align: center; text-wrap: balance; }

.rbh-pause { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(24, 22, 20, .78); color: #FFF3D6; cursor: pointer; }
.rbh-pause:hover { background: rgba(24, 22, 20, .92); }
.rbh-pause:focus-visible { outline: 2px solid #FFF3D6; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(24, 22, 20, .9); }
.rbh-pause svg { width: 18px; height: 18px; fill: currentColor; }
.rbh-pause .rbh-i-play { display: none; }
.rbh[data-paused] .rbh-pause .rbh-i-pause { display: none; }
.rbh[data-paused] .rbh-pause .rbh-i-play { display: block; }
@media (max-width: 420px) { .rbh-line { padding: 6px 12px; font-size: .8125rem; } }
