/* The story page's stage frame (/how-it-works/stage), on top of site-v3/styles.css. The frame
   draws the art for one beat at a time; the story page around it drives it and draws Hani. */

/* Without scripts the stage shows scene 1, the empty house: every beat's pieces and the reward
   shop stay hidden. story-stage.js removes "no-js" before it draws, then shows each piece itself. */
.no-js [data-beat-el],
.no-js [data-reward-stack] {
    display: none;
}

/* No scroll runway: the stage fills the frame. */
html,
body {
    height: 100%;
    overflow: hidden;
    background: #0a0a0a;
}

.phone-frame {
    background: #0a0a0a !important;
}

.prototype-shell,
.phone-frame {
    display: block !important;
    height: 100vh !important;
    min-height: 0 !important;
}

.stage-scroll {
    height: 100vh;
    padding: 0 !important;
    overflow: hidden !important;
}

.world-runway {
    height: 100vh !important;
    background: #111;
}

.sticky-world {
    position: relative !important;
    top: 0 !important;
    height: 100vh !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* Hani is drawn by the story page, never in the frame. The reward stack's guide keeps its space,
   so the shop sits where the approved stage puts it. */
.hani-guide {
    visibility: hidden !important;
}

/* Scene 16: the kid's wishlist beside the parent's Reward Catalog. Both pictures are already
   cropped to what shows; they share one height, the box's or less when the pair would be wider
   than the box. */
.rv {
    display: flex;
    gap: 2.5%;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 1.5%;
    background: #F4F1EA;
    container-type: size;
}

.rv-shot {
    position: relative;
    flex: none;
    overflow: hidden;
    background: #F6F7FB;
    border: 2px solid #111;
    border-radius: 10px;
}

.rv-shot img {
    display: block;
    width: 100%;
}

.rv-parent {
    height: 100%;
    aspect-ratio: 1080 / 1384;
}

.rv-wish {
    height: 100%;
    aspect-ratio: 1080 / 1590;
}

.rv .rv-wish,
.rv .rv-parent {
    height: min(100cqh, calc((97.5cqw - 10px) / 1.46));
}

/* Set by story-stage.js under reduced motion: no pop-ins, no swipes, no pulsing highlight. */
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
    animation: none !important;
    transition: none !important;
}
