/* HAHUMI 6.29.1 — the hero stands on the room's rug, ~15 % smaller (owner: «чудики стоят где угодно, но только не на ковриках»).
 * The rug is painted into every layered room background (client/rooms629/<room>/bg*.webp) at the same spot in all seven rooms:
 *   desktop picture 1586×992, rug centre ≈ (794, 779) → 21.5 % above the picture's bottom;
 *   phone picture  1122×1402, rug centre ≈ (560, 966) → 31.1 % above the picture's bottom.
 * The stage draws the picture as `cover` and is always taller than the picture's aspect (desktop ≈1:1 vs 1.6:1, phone ≈0.78:1 vs 0.8:1),
 * so the picture's height = the stage's height and the rug line is a plain % of the stage height (bottom: %), horizontally on the centre line.
 * The hero's feet sit 13.2 % of the art's height above the art box's bottom (legs end at y≈330 of the 360×380 rig), i.e. 0.139 × its width;
 * moros stands in a puddle that reaches lower (0.125). So: bottom = rug line − feet offset (+ a per-hero nudge).
 * Width = the old width × 0.85 (66 % / 470 px → 56.1 % / 400 px; phones 80 % / 360 px → 68 % / 306 px; ≤400 px 74 % → 62.9 %).
 * Widths are in cqw (the stage is an inline-size container) so the feet offset can be computed inside `bottom`.
 * Only `width` and `bottom` change: `transform` (centring, «Лови!» scale) and `translate` (catch610.js moves the hero with it) stay untouched,
 * so the game's pointer → hero-centre mapping is unchanged. The scene's contact shadow moves onto the same rug line. */
.stage{--h6291-rug:21.5%;--h6291-w:min(56.1cqw,400px);--h6291-feet:.139;--h6291-dy:0px;--h6291-shw:min(28.9%,204px)}
@media (max-width:740px){.stage{--h6291-w:min(68cqw,306px)}}
@media (max-width:640px){.stage{--h6291-rug:31.1%;--h6291-shw:39%}}
@media (max-width:400px){.stage{--h6291-w:min(62.9cqw,306px)}}
/* per-hero: where the feet end inside the rig, and a small nudge (px, + = up) */
.stage:has(#heroArt[data-persona=moros]){--h6291-feet:.125}
#homeView .stage #heroArt,.stage #heroArt{width:var(--h6291-w);bottom:calc(var(--h6291-rug) - var(--h6291-w)*var(--h6291-feet) + var(--h6291-dy))}
/* the painted room's contact shadow: centred on the rug line, as wide as the smaller hero's feet */
.scene617.photo617::after,.stage .scene617.photo617::after{bottom:calc(var(--h6291-rug) - 3.5%);width:var(--h6291-shw)}
