/* Physical stories; load after style.css. Final poses are the base styles, so a
   still/reduced-motion story communicates the same result. No endless effects. */
.live-scene[data-story]{--story-floor:79px;--story-ease:cubic-bezier(.22,.7,.24,1)}
.live-scene.story-playing[data-story] .scene-cat,
.live-scene.story-playing[data-story] .scene-friend,
.live-scene.story-playing[data-story] .scene-object{animation:none;transition:none}
.live-scene[data-story] .scene-cat{left:9%;bottom:var(--story-floor);width:39%;max-width:220px;transform:none}
.live-scene[data-story] .scene-friend{right:5%;bottom:calc(var(--story-floor) + 5px);width:25%;max-width:135px;transform:none}
.live-scene[data-story] .scene-object{top:auto;left:45%;bottom:calc(var(--story-floor) + 10px);width:25%;max-width:none;z-index:5;transform:none}
.live-scene.story-playing[data-story] .scene-magic,.live-scene.story-playing[data-story] .scene-mini-letters{animation:none;opacity:0}
.live-scene[data-story] .scene-ground{left:8%;bottom:calc(var(--story-floor) - 3px);width:84%;height:16px;background:#35432924}
.live-scene[data-story] .scene-word{opacity:.2}
.live-scene[data-story] .scene-friend:after{z-index:2}
.story-piece,.story-object-visual,.story-family-member{display:block;pointer-events:none}
.story-piece,.story-family-member{position:absolute}
.story-piece .art-frame,.story-object-visual .art-frame,.story-family-member .art-frame{width:100%}
.story-object-visual{position:relative;width:100%}
.live-scene[data-story] .scene-cat.story-cat-posed>.cat-art{visibility:hidden}
.story-cat-pose{position:absolute;inset:0;display:block;pointer-events:none}
.story-cat-pose>.art-frame{width:100%}
.story-pose-before{opacity:0}.story-pose-after{opacity:1}
.live-scene[data-story-motion="play"] .story-pose-before{animation:story-pose-before 3.8s steps(1,end) both}
.live-scene[data-story-motion="play"] .story-pose-after{animation:story-pose-after 3.8s steps(1,end) both}
.live-scene[data-story="cup-pour"][data-story-motion="play"] .story-pose-before{animation:story-late-pose-before 4.2s steps(1,end) both}
.live-scene[data-story="cup-pour"][data-story-motion="play"] .story-pose-after{animation:story-late-pose-after 4.2s steps(1,end) both}
@keyframes story-pose-before{0%,46%{opacity:1}47%,100%{opacity:0}}
@keyframes story-pose-after{0%,46%{opacity:0}47%,100%{opacity:1}}
@keyframes story-late-pose-before{0%,81%{opacity:1}82%,100%{opacity:0}}
@keyframes story-late-pose-after{0%,81%{opacity:0}82%,100%{opacity:1}}
.story-piece,.story-family-member,.story-water-ring,.story-hat-shadow,.story-ball-shadow,
.story-window,.story-curtain,.story-cloud-cat,.story-pitcher,.story-water-stream,
.story-water-bowl,.story-bowl-stream,.story-laundry-cloth,.story-tracks,.story-snow-bank,
.story-picnic-cloth,.story-lamp-beam,.story-pier,.story-rain,.story-splash-drops,
.story-kite-string,.story-adventure-step,.story-flower-stem{pointer-events:none}

/* Original, deliberately simple backup props. New atlas art replaces these. */
.story-fallback-hat{aspect-ratio:1;background:radial-gradient(ellipse at 45% 75%,#75484e 0 30%,#bd7867 31% 47%,#92554e 48% 52%,transparent 53%);filter:drop-shadow(0 7px 4px #51333935)}
.story-fallback-hat:before{content:"";position:absolute;left:24%;right:24%;top:17%;height:58%;border-radius:38% 38% 18% 18%;background:linear-gradient(100deg,#dcac81,#b96f5e 72%,#8d4f4a);box-shadow:inset 3px 3px 0 #ffe3ae80}
.story-fallback-hat:after{content:"";position:absolute;left:24%;right:24%;top:57%;height:12%;border-radius:10% 10% 28% 28%;background:linear-gradient(90deg,#f7cb70,#efb658,#f8dc8a)}
.story-fallback-basket{aspect-ratio:1.25;filter:drop-shadow(0 5px 3px #563c382f)}
.story-fallback-basket:before{content:"";position:absolute;left:18%;right:18%;top:4%;height:65%;border:8px solid #c18a56;border-radius:50% 50% 0 0;box-shadow:inset 2px 0 #ffe3ad,2px 0 #885337}
.story-fallback-basket:after{content:"";position:absolute;inset:37% 3% 4%;border:3px solid #b67d4a;border-radius:12% 12% 29% 29%;background:repeating-linear-gradient(0deg,transparent 0 8px,#9f6b3c44 8px 10px),repeating-linear-gradient(90deg,#e7bd7c 0 10px,#c99458 10px 13px);box-shadow:inset 0 5px #f5d292,inset 0 -6px #a56b3d55}
.story-fallback-puddle{aspect-ratio:3.3;border-radius:50%;background:radial-gradient(ellipse at 38% 30%,#e7ffffc7 0 4%,transparent 5%),radial-gradient(ellipse,#7bd4e5ba 0 43%,#baf7ffb8 47% 54%,#59bbce8c 57% 63%,transparent 66%);filter:drop-shadow(0 3px 1px #40798821)}
.story-fallback-cookie{aspect-ratio:1;background:radial-gradient(circle at 34% 32%,#864735 0 4%,transparent 5%),radial-gradient(circle at 62% 26%,#754435 0 4%,transparent 5%),radial-gradient(circle at 55% 64%,#85442f 0 5%,transparent 6%),radial-gradient(circle at 27% 60%,#a65838 0 4%,transparent 5%),radial-gradient(circle at 73% 51%,#814833 0 4%,transparent 5%),radial-gradient(circle,#f4ce87 0 43%,#dc9a59 47% 53%,transparent 54%);filter:drop-shadow(0 5px 3px #86563835)}
.story-basket{left:51%;bottom:calc(var(--story-floor) - 1px);width:29%;z-index:6}
.story-puddle{left:29%;bottom:calc(var(--story-floor) - 10px);width:47%;z-index:2}
.story-water-ring{position:absolute;left:43%;bottom:calc(var(--story-floor) + 4px);width:15%;height:15px;border:2px solid #d1fbff;border-radius:50%;opacity:0;z-index:3}

/* HATT: an opaque brimmed hat covers Amor, is lifted, and leaves him revealed. */
.live-scene[data-story="hat-reveal"] .scene-cat{left:18%;width:40%;z-index:4}
.live-scene[data-story="hat-reveal"] .scene-object{left:16%;bottom:calc(var(--story-floor) + 45px);width:46%;z-index:6;transform:translateX(55%) rotate(12deg)}
.live-scene[data-story="hat-reveal"] .story-object-visual{aspect-ratio:auto}
.story-hat-shadow{position:absolute;left:20%;bottom:calc(var(--story-floor) - 2px);width:34%;height:15px;background:#4b394933;border-radius:50%;filter:blur(3px);z-index:2}
.live-scene[data-story="hat-reveal"][data-story-motion="play"] .scene-object{animation:story-hat-lift 3.8s var(--story-ease) both}
.live-scene[data-story="hat-reveal"][data-story-motion="play"] .scene-cat{animation:story-cat-reveal 3.8s var(--story-ease) both}
@keyframes story-hat-lift{0%,15%{bottom:calc(var(--story-floor) + 3px);transform:translateX(0) rotate(0)}25%{bottom:calc(var(--story-floor) + 8px);transform:translateX(-2%) rotate(-4deg)}52%,100%{bottom:calc(var(--story-floor) + 45px);transform:translateX(55%) rotate(12deg)}}
@keyframes story-cat-reveal{0%,27%{clip-path:inset(100% 0 0);transform:scale(.82) translateY(10%)}53%{clip-path:inset(0);transform:scale(1.04) translateY(-3%)}66%,100%{clip-path:inset(0);transform:none}}

/* SOCKA: the rim hides the lower sock until Amor pulls it out of the basket. */
.live-scene[data-story="sock-pull"] .scene-cat{left:5%;width:41%;transform:rotate(5deg)}
.live-scene[data-story="sock-pull"] .scene-object{left:46%;width:22%;bottom:calc(var(--story-floor) + 19px);transform:translate(-66%,-73%) rotate(-38deg);z-index:5}
.live-scene[data-story="sock-pull"] .story-basket{left:44%;width:32%;z-index:6}
.story-laundry-cloth{position:absolute;left:59%;bottom:calc(var(--story-floor) + 50px);width:10%;height:34px;border-radius:9px 9px 45% 25%;background:linear-gradient(100deg,#f9e0ef,#db9dc2);transform:rotate(12deg);z-index:7}
.live-scene[data-story="sock-pull"][data-story-motion="play"] .scene-object{animation:story-sock-tug 3.7s var(--story-ease) both}
.live-scene[data-story="sock-pull"][data-story-motion="play"] .scene-cat{animation:story-cat-tug 3.7s var(--story-ease) both}
@keyframes story-sock-tug{0%,15%{transform:translate(0,17%) rotate(4deg);opacity:.45}28%{transform:translate(-12%,-20%) rotate(-16deg);opacity:1}38%{transform:translate(-5%,-11%) rotate(-10deg)}59%,100%{transform:translate(-66%,-73%) rotate(-38deg);opacity:1}}
@keyframes story-cat-tug{0%,15%{transform:rotate(0)}29%,42%{transform:translate(9%,0) rotate(10deg)}61%,100%{transform:rotate(5deg)}}
.live-scene[data-story="cap-find"] .scene-object{left:49%;bottom:calc(var(--story-floor) + 68px);width:27%;z-index:5;transform:rotate(-8deg)}
.live-scene[data-story="cap-find"] .story-basket{left:43%;width:35%;z-index:6}
.live-scene[data-story="cap-find"][data-story-motion="play"] .scene-object{animation:story-cap-find 3.8s var(--story-ease) both}
@keyframes story-cap-find{0%,18%{transform:translateY(90%) scale(.6);opacity:0}28%{opacity:1}57%,100%{transform:rotate(-8deg);opacity:1}}

/* BÄR: one berry is detached from the bush and lands inside the basket. */
.live-scene[data-story="berry-pick"] .scene-cat{left:29%;width:33%;transform:rotate(-8deg)}
.live-scene[data-story="berry-pick"] .scene-object{left:23%;width:14%;bottom:calc(var(--story-floor) + 96px);transform:translate(255%,75%) scale(.7);z-index:5}
.live-scene[data-story="berry-pick"] .story-basket{left:56%;width:25%;z-index:6}
.story-berry-bush{left:1%;bottom:calc(var(--story-floor) - 4px);width:37%;z-index:3}
.story-berry-on-bush{width:11%;z-index:4}
.story-berry-one{left:9%;bottom:calc(var(--story-floor) + 92px)}
.story-berry-two{left:21%;bottom:calc(var(--story-floor) + 44px)}
.live-scene[data-story="berry-pick"][data-story-motion="play"] .scene-object{animation:story-berry-pick 4.2s var(--story-ease) both}
.live-scene[data-story="berry-pick"][data-story-motion="play"] .scene-friend{animation:story-pick-reach 4.2s var(--story-ease) both}
@keyframes story-berry-pick{0%,17%{transform:none}29%{transform:translate(22%,-22%) rotate(-12deg)}46%{transform:translate(170%,-49%) rotate(18deg)}65%,100%{transform:translate(255%,75%) scale(.7)}}
@keyframes story-pick-reach{0%,13%,69%,100%{transform:none}32%,49%{transform:translateX(-14%) rotate(-8deg)}}

/* KOPP: two separate pours, a rising water surface, then Amor's own bowl. */
.live-scene[data-story="cup-pour"] .scene-cat{left:1%;width:39%;transform:rotate(8deg)}
.live-scene[data-story="cup-pour"] .scene-object{left:47%;width:27%;bottom:calc(var(--story-floor) + 1px)}
.story-pitcher{position:absolute;left:48%;bottom:calc(var(--story-floor) + 132px);width:14%;height:73px;border:3px solid #d9fcfff2;border-radius:17% 20% 33% 31%;background:linear-gradient(105deg,#f4ffffb3,#6ecbdfbc 64%,#aeeaf4dd);box-shadow:inset 6px 0 #fff8,inset 0 -12px #75c3db66;transform:rotate(0);z-index:6}
.story-pitcher:before{content:"";position:absolute;left:-27%;top:10%;width:31%;height:49%;border:6px solid #cff4f7;border-right:0;border-radius:50% 0 0 50%}
.story-pitcher:after{content:"";position:absolute;right:-19%;top:-4%;width:30%;height:27%;background:#d1f7fc;clip-path:polygon(0 0,100% 0,25% 100%,0 100%)}
.story-water-stream,.story-bowl-stream{position:absolute;left:61%;bottom:calc(var(--story-floor) + 67px);height:100px;width:6px;z-index:6;transform-origin:50% 0;background:linear-gradient(90deg,#71cde2aa,#ecffff,#8be4ee);border-radius:40%;opacity:0}
.story-liquid{position:absolute;left:23%;top:29%;width:46%;height:10%;border-radius:50%;background:radial-gradient(ellipse,#d4ffff 5%,#7cd4df 45%,#4bacc7 70%);box-shadow:inset 0 1px #eaffff;z-index:1}
.story-water-bowl{position:absolute;left:23%;bottom:calc(var(--story-floor) + 2px);width:21%;height:29px;border-radius:12% 12% 45% 45%;border:3px solid #ebd5a9;background:radial-gradient(ellipse at 50% 12%,#b9f4f5 0 23%,#7fcbdc 30% 41%,transparent 45%),linear-gradient(#faf1d1,#d3a974);box-shadow:0 4px 3px #475d4d21,inset 0 -4px #be925f44;z-index:5}
.story-bowl-stream{left:34%;bottom:calc(var(--story-floor) + 24px);height:114px}
.live-scene[data-story="cup-pour"][data-story-motion="play"] .story-pitcher{animation:story-pitcher-pour 4.2s var(--story-ease) both}
.live-scene[data-story="cup-pour"][data-story-motion="play"] .story-water-stream{animation:story-pour-stream 4.2s linear both}
.live-scene[data-story="cup-pour"][data-story-motion="play"] .story-bowl-stream{animation:story-bowl-pour 4.2s linear both}
.live-scene[data-story="cup-pour"][data-story-motion="play"] .story-liquid{animation:story-water-fill 4.2s linear both}
.live-scene[data-story="cup-pour"][data-story-motion="play"] .scene-cat{animation:story-bowl-sniff 4.2s var(--story-ease) both}
@keyframes story-pitcher-pour{0%,9%{transform:rotate(0)}20%,38%{transform:rotate(31deg)}47%{transform:rotate(0)}56%{transform:translate(-180%,25%) rotate(0)}64%,78%{transform:translate(-180%,25%) rotate(31deg)}90%,100%{transform:translate(-120%,10%) rotate(0)}}
@keyframes story-pour-stream{0%,18%,43%,100%{opacity:0;transform:scaleY(.1)}22%,37%{opacity:.95;transform:scaleY(1)}}
@keyframes story-bowl-pour{0%,62%,82%,100%{opacity:0;transform:scaleY(.1)}66%,77%{opacity:.95;transform:scaleY(1)}}
@keyframes story-water-fill{0%,20%{opacity:0;transform:scale(.4)}39%,100%{opacity:1;transform:scale(1)}}
@keyframes story-bowl-sniff{0%,73%{transform:none}90%,100%{transform:rotate(8deg)}}

/* BÅT: held above the water, released, then carried by the small ripples. */
.live-scene[data-story="boat-launch"] .scene-cat{left:3%;width:35%;transform:rotate(5deg)}
.live-scene[data-story="boat-launch"] .scene-object{left:40%;bottom:calc(var(--story-floor) + 4px);width:27%;transform:translate(-10%,0) rotate(-3deg)}
.live-scene[data-story="boat-launch"] .scene-friend{right:2%;width:24%}
.live-scene[data-story="boat-launch"][data-story-motion="play"] .scene-object{animation:story-boat-launch 3.8s var(--story-ease) both}
.live-scene[data-story="boat-launch"][data-story-motion="play"] .story-water-ring,
.live-scene[data-story="paw-splash"][data-story-motion="play"] .story-water-ring{animation:story-contact-ripple 2.1s calc(1.1s + var(--ring-delay)) ease-out both}
@keyframes story-boat-launch{0%,14%{transform:translate(79%,-78%) rotate(-14deg)}40%{transform:translate(10%,0) rotate(6deg)}52%{transform:translate(6%,-3%) rotate(-6deg)}67%{transform:translate(0,1%) rotate(3deg)}100%{transform:translate(-10%,0) rotate(-3deg)}}
@keyframes story-contact-ripple{0%{opacity:0;transform:scale(.25)}18%{opacity:.8}100%{opacity:0;transform:scale(2.8)}}

/* PARAPLY/REGN: the canopy arrives BEFORE drops, with a dry area below it. */
.live-scene[data-story="rain-shelter"] .scene-cat{left:29%;width:37%;max-width:210px}
.live-scene[data-story="rain-shelter"] .scene-object{left:20%;width:59%;bottom:calc(var(--story-floor) + 65px);z-index:6;transform:rotate(-5deg)}
.live-scene[data-story="rain-shelter"] .scene-friend{right:3%;width:24%}
.story-rain{position:absolute;inset:16% 0 18%;z-index:5;overflow:hidden;opacity:0;clip-path:polygon(0 0,100% 0,100% 100%,76% 100%,76% 34%,25% 34%,25% 100%,0 100%)}
.story-drop{position:absolute;left:var(--drop-x);top:0;display:block;width:3px;height:15px;border-radius:50%;background:linear-gradient(#defaff66,#bbf2ffff);box-shadow:0 0 3px #e7ffff5e;opacity:0}
.story-rain-puddle{left:3%;width:27%;bottom:calc(var(--story-floor) - 12px)}
.live-scene[data-story="rain-shelter"][data-story-motion="play"] .scene-object{animation:story-open-shelter 4.2s var(--story-ease) both}
.live-scene[data-story="rain-shelter"][data-story-motion="play"] .story-rain{animation:story-rain-arrive 4.2s linear both}
.live-scene[data-story="rain-shelter"][data-story-motion="play"] .story-rain .story-drop{animation:story-rain-drop .65s calc(.9s + var(--drop-delay)) linear 4}
.live-scene[data-story="rain-shelter"][data-story-motion="still"] .story-rain{opacity:.75}
.live-scene[data-story="rain-shelter"][data-story-motion="still"] .story-drop{top:calc(10% + var(--drop-x) * .6);opacity:.7}
@keyframes story-open-shelter{0%,9%{transform:translate(45%,30%) rotate(28deg) scale(.65)}28%,100%{transform:rotate(-5deg)}}
@keyframes story-rain-arrive{0%,22%{opacity:0}30%,87%{opacity:.95}100%{opacity:.6}}
@keyframes story-rain-drop{0%{transform:translate(0,-20px) rotate(12deg);opacity:0}15%{opacity:1}100%{transform:translate(-20px,230px) rotate(12deg);opacity:0}}

/* A rolled ball really travels from Sara to Amor; the jump follows its bounce. */
.live-scene[data-story="ball-roll"] .scene-object,
.live-scene[data-story="ball-jump"] .scene-object{left:35%;width:22%;bottom:calc(var(--story-floor) + 1px)}
.story-ball-shadow{position:absolute;left:39%;bottom:calc(var(--story-floor) - 2px);width:17%;height:12px;border-radius:50%;background:#41513930;filter:blur(2px);z-index:2}
.live-scene[data-story="ball-roll"][data-story-motion="play"] .scene-object{animation:story-ball-roll 3.8s var(--story-ease) both}
.live-scene[data-story="ball-jump"][data-story-motion="play"] .scene-object{animation:story-ball-bounce 3.8s var(--story-ease) both}
.live-scene[data-story="ball-jump"][data-story-motion="play"] .scene-cat{animation:story-follow-jump 3.8s var(--story-ease) both}
@keyframes story-ball-roll{0%,12%{transform:translateX(162%) rotate(160deg)}53%{transform:translateX(-40%) rotate(-50deg)}70%,100%{transform:none}}
@keyframes story-ball-bounce{0%,12%{transform:translateY(0)}31%{transform:translateY(-90%)}51%{transform:translateY(0) scale(1.12,.88)}66%,100%{transform:none}}
@keyframes story-follow-jump{0%,24%{transform:none}39%{transform:translateY(-24%) rotate(-5deg)}57%{transform:scale(1.06,.95)}72%,100%{transform:none}}

/* A butterfly lands on a flower. A leaf falls from its own tree. */
.live-scene[data-story="butterfly-visit"] .scene-object{left:46%;bottom:calc(var(--story-floor) + 109px);width:18%;transform:rotate(-7deg)}
.story-landing-flower{left:43%;bottom:calc(var(--story-floor) - 3px);width:27%;z-index:3}
.live-scene[data-story="butterfly-visit"][data-story-motion="play"] .scene-object{animation:story-butterfly-land 3.8s ease-in-out both}
@keyframes story-butterfly-land{0%{transform:translate(-160%,-75%) rotate(-20deg) scale(.7)}24%{transform:translate(-20%,-110%) rotate(14deg)}47%{transform:translate(50%,-65%) rotate(-15deg)}68%{transform:translate(0,-5%) rotate(10deg)}80%,100%{transform:rotate(-7deg)}}
.live-scene[data-story="leaf-chase"] .scene-object{left:42%;bottom:calc(var(--story-floor) + 5px);width:19%;transform:rotate(30deg)}
.story-leaf-tree{left:44%;bottom:calc(var(--story-floor) - 2px);width:50%;z-index:2}
.live-scene[data-story="leaf-chase"][data-story-motion="play"] .scene-object{animation:story-leaf-fall 3.8s ease-in-out both}
.live-scene[data-story="leaf-chase"][data-story-motion="play"] .scene-cat{animation:story-follow-jump 3.8s .5s var(--story-ease) both}
@keyframes story-leaf-fall{0%,10%{transform:translate(120%,-170%) rotate(-35deg)}37%{transform:translate(-10%,-125%) rotate(35deg)}59%{transform:translate(60%,-70%) rotate(-20deg)}85%,100%{transform:rotate(30deg)}}

/* SNÖ: six prints appear behind the moving cat, never ahead of its paws. */
.story-snow-bank{position:absolute;left:5%;right:5%;bottom:calc(var(--story-floor) - 9px);height:33px;border-radius:50%;background:linear-gradient(#fffdf5ee,#d9f4f4dd);z-index:2}
.live-scene[data-story="snow-tracks"] .scene-cat{left:33%;width:34%}
.live-scene[data-story="snow-tracks"] .scene-object{left:9%;bottom:calc(var(--story-floor) + 100px);width:18%}
.story-tracks{position:absolute;left:12%;bottom:calc(var(--story-floor) + 1px);width:38%;height:24px;z-index:3}
.story-pawprint{position:absolute;left:calc(var(--step)*15%);top:0;width:13px;height:11px;border-radius:50%;background:radial-gradient(ellipse at 50% 73%,#8aa6b977 0 28%,transparent 30%),radial-gradient(ellipse at 15% 25%,#8aa6b977 0 14%,transparent 16%),radial-gradient(ellipse at 49% 13%,#8aa6b977 0 14%,transparent 16%),radial-gradient(ellipse at 85% 25%,#8aa6b977 0 14%,transparent 16%);transform:translateY(var(--paw-y)) rotate(-12deg)}
.live-scene[data-story="snow-tracks"][data-story-motion="play"] .scene-cat{animation:story-snow-walk 3.8s linear both}
.live-scene[data-story="snow-tracks"][data-story-motion="play"] .story-pawprint{animation:story-print-appear .3s calc(.4s + var(--step)*.31s) linear both}
@keyframes story-snow-walk{0%{transform:translateX(-60%)}22%{transform:translate(-44%,-3%)}44%{transform:translate(-29%,0)}66%{transform:translate(-12%,-3%)}82%,100%{transform:none}}
@keyframes story-print-appear{from{opacity:0}to{opacity:1}}

/* TRÄD: Sara starts behind the trunk and steps into view beside it. */
.live-scene[data-story="tree-peek"] .scene-object{left:49%;width:43%;bottom:calc(var(--story-floor) - 7px);z-index:6}
.live-scene[data-story="tree-peek"] .scene-friend{right:5%;bottom:calc(var(--story-floor) + 16px);transform:translateX(-63%);z-index:5}
.live-scene[data-story="tree-peek"][data-story-motion="play"] .scene-friend{animation:story-tree-peek 3.8s var(--story-ease) both}
@keyframes story-tree-peek{0%,16%{transform:translateX(-142%);opacity:0}35%{transform:translateX(-110%) rotate(-8deg);opacity:1}61%,100%{transform:translateX(-63%);opacity:1}}

/* BOK: opening pages reveal a real page space while Amor comes closer. */
.live-scene[data-story="book-read"] .scene-object{left:48%;width:27%;bottom:calc(var(--story-floor) + 39px)}
.live-scene[data-story="book-read"] .scene-cat{left:18%;width:38%;transform:rotate(6deg)}
.story-book-page{position:absolute;top:27%;width:31%;height:43%;background:repeating-linear-gradient(0deg,#fbf1d8 0 12%,#dacbb36e 13% 15%,#fbf1d8 16% 24%);border:1px solid #e8d6b7;box-shadow:0 3px 3px #6a4b3b33;z-index:2}
.story-page-left{left:17%;transform-origin:100% 50%;transform:perspective(200px) rotateY(12deg) rotate(-6deg);border-radius:12% 0 0 7%}
.story-page-right{right:17%;transform-origin:0 50%;transform:perspective(200px) rotateY(-12deg) rotate(6deg);border-radius:0 12% 7% 0}
.live-scene[data-story="book-read"][data-story-motion="play"] .story-page-left{animation:story-page-open 3.8s var(--story-ease) both}
.live-scene[data-story="book-read"][data-story-motion="play"] .story-page-right{animation:story-page-turn 3.8s var(--story-ease) both}
.live-scene[data-story="book-read"][data-story-motion="play"] .scene-cat{animation:story-read-close 3.8s var(--story-ease) both}
@keyframes story-page-open{0%,14%{transform:perspective(200px) rotateY(85deg);opacity:0}42%,100%{transform:perspective(200px) rotateY(12deg) rotate(-6deg);opacity:1}}
@keyframes story-page-turn{0%,18%{transform:perspective(200px) rotateY(-85deg);opacity:0}47%,100%{transform:perspective(200px) rotateY(-12deg) rotate(6deg);opacity:1}}
@keyframes story-read-close{0%,20%{transform:translateX(-15%)}60%,100%{transform:rotate(6deg)}}

/* Giving, cuddling and family arrivals keep bodies together instead of looping. */
.live-scene[data-story="heart-give"] .scene-object{left:39%;width:20%;bottom:calc(var(--story-floor) + 70px);transform:rotate(-7deg)}
.live-scene[data-story="heart-give"][data-story-motion="play"] .scene-object{animation:story-heart-give 3.8s var(--story-ease) both}
@keyframes story-heart-give{0%,16%{transform:translate(155%,15%) rotate(12deg)}60%,100%{transform:rotate(-7deg)}}
.live-scene[data-story="gentle-cuddle"] .scene-friend,
.live-scene[data-story="teddy-cuddle"] .scene-friend{right:23%;width:28%;transform:rotate(-8deg)}
.live-scene[data-story="gentle-cuddle"] .scene-friend{right:31%}
.live-scene[data-story="gentle-cuddle"] .scene-cat,
.live-scene[data-story="teddy-cuddle"] .scene-cat{left:18%;width:39%;transform:rotate(7deg)}
.live-scene[data-story="gentle-cuddle"] .scene-object{left:43%;width:13%;bottom:calc(var(--story-floor) + 108px);z-index:3}
.live-scene[data-story="teddy-cuddle"] .scene-object{left:47%;width:22%;bottom:calc(var(--story-floor) + 31px)}
.live-scene[data-story="gentle-cuddle"][data-story-motion="play"] .scene-friend,
.live-scene[data-story="teddy-cuddle"][data-story-motion="play"] .scene-friend{animation:story-cuddle-close 3.8s var(--story-ease) both}
@keyframes story-cuddle-close{0%,14%{transform:translateX(52%) rotate(0)}58%,100%{transform:rotate(-8deg)}}
.live-scene[data-story="family-together"] .scene-cat{left:29%;width:34%;z-index:5}
.live-scene[data-story="family-together"] .scene-friend{right:17%;width:23%;z-index:4}
.live-scene[data-story="family-together"] .scene-object{left:41%;width:15%;bottom:calc(var(--story-floor) + 120px)}
.story-family-member{width:24%;bottom:calc(var(--story-floor) + 3px);z-index:4;filter:drop-shadow(0 4px 3px #41394c22)}
.story-family-linda{left:4%}.story-family-klas{right:0}
.live-scene[data-story="family-together"][data-story-motion="play"] .story-family-member{animation:story-family-arrive 3.6s var(--arrival) var(--story-ease) both}
@keyframes story-family-arrive{0%{transform:translateY(25%);opacity:0}35%,100%{transform:none;opacity:1}}

/* Food: a cookie goes to Sara, an apple separates, an egg is packed gently. */
.live-scene[data-story="cookie-bite"] .scene-object{left:70%;width:18%;bottom:calc(var(--story-floor) + 75px);z-index:6}
.live-scene[data-story="cookie-bite"] .scene-friend{right:2%;width:28%}
.live-scene[data-story="cookie-bite"] .story-object-visual{aspect-ratio:1;overflow:hidden;mask-image:radial-gradient(circle at 85% 22%,transparent 0 13%,#000 13.5%)}
.live-scene[data-story="cookie-bite"] .story-object-visual>.art-frame{width:200%;margin-left:-40%}
.story-crumb{position:absolute;left:73%;bottom:calc(var(--story-floor) + 75px);width:5px;height:5px;border-radius:40%;background:#d9a060;opacity:0;z-index:6}
.live-scene[data-story="cookie-bite"][data-story-motion="play"] .scene-object{animation:story-cookie-lift 3.8s var(--story-ease) both}
.live-scene[data-story="cookie-bite"][data-story-motion="play"] .story-object-visual{animation:story-cookie-nibble 3.8s steps(1,end) both}
.live-scene[data-story="cookie-bite"][data-story-motion="play"] .story-crumb{animation:story-crumb-fall .8s calc(2s + var(--crumb)*.08s) ease-in both}
@keyframes story-cookie-lift{0%,12%{transform:translate(-75%,-10%) rotate(-12deg)}44%,60%{transform:translate(20%,-31%) rotate(11deg)}82%,100%{transform:none}}
@keyframes story-cookie-nibble{0%,51%{mask-image:none}52%,100%{mask-image:radial-gradient(circle at 85% 22%,transparent 0 13%,#000 13.5%)}}
@keyframes story-crumb-fall{0%{opacity:1;transform:none}100%{opacity:0;transform:translate(calc((var(--crumb) - 1)*13px),55px) rotate(80deg)}}
.story-picnic-cloth{position:absolute;left:28%;bottom:calc(var(--story-floor) - 4px);width:47%;height:35px;border-radius:50%;transform:rotate(-4deg);background:repeating-linear-gradient(90deg,#eeb9b199 0 18px,#fff0dd99 18px 36px),repeating-linear-gradient(0deg,#eeb9b1 0 18px,#fff0dd 18px 36px);z-index:2}
.live-scene[data-story="apple-share"] .scene-object{left:52%;width:22%;bottom:calc(var(--story-floor) + 18px);clip-path:inset(0 48% 0 0);transform:translateX(-20%)}
.story-apple-half{left:52%;width:22%;bottom:calc(var(--story-floor) + 18px);clip-path:inset(0 0 0 48%);transform:translateX(20%);z-index:5}
.live-scene[data-story="apple-share"] .scene-object:after,.story-apple-half:after{content:"";position:absolute;left:47%;top:28%;width:6%;height:43%;border-radius:50%;background:#fff0c7;box-shadow:inset 1px 0 #b87555}
.live-scene[data-story="apple-share"][data-story-motion="play"] .scene-object{animation:story-apple-left 3.8s var(--story-ease) both}
.live-scene[data-story="apple-share"][data-story-motion="play"] .story-apple-half{animation:story-apple-right 3.8s var(--story-ease) both}
@keyframes story-apple-left{0%,25%{transform:none}60%,100%{transform:translateX(-20%)}}
@keyframes story-apple-right{0%,25%{transform:none}60%,100%{transform:translateX(20%)}}
.live-scene[data-story="cake-carry"] .scene-object{left:46%;width:29%;bottom:calc(var(--story-floor) + 1px)}
.live-scene[data-story="cake-carry"][data-story-motion="play"] .scene-object{animation:story-cake-place 3.8s var(--story-ease) both}
@keyframes story-cake-place{0%,10%{transform:translate(75%,-85%) rotate(-5deg)}55%,100%{transform:none}}
.live-scene[data-story="egg-pack"] .scene-object{left:54%;width:18%;bottom:calc(var(--story-floor) + 23px);z-index:5}
.live-scene[data-story="egg-pack"] .story-basket{left:47%;width:32%;z-index:6}
.live-scene[data-story="egg-pack"][data-story-motion="play"] .scene-object{animation:story-egg-pack 3.8s var(--story-ease) both}
@keyframes story-egg-pack{0%,15%{transform:translate(50%,-145%) rotate(14deg)}48%,100%{transform:none}}

/* LAMPA: light reveals a toy. The beam is restrained and never flashes. */
.live-scene[data-story="lamp-on"] .scene-object{left:47%;width:29%;bottom:calc(var(--story-floor) + 59px)}
.story-lamp-beam{position:absolute;left:35%;bottom:calc(var(--story-floor) - 5px);width:48%;height:210px;clip-path:polygon(50% 0,100% 100%,0 100%);background:linear-gradient(#fff0b352,#fff2bdb3);z-index:2;mix-blend-mode:screen}
.story-found-toy{left:43%;bottom:calc(var(--story-floor) + 1px);width:18%;z-index:3}
.live-scene[data-story="lamp-on"][data-story-motion="play"] .story-lamp-beam,
.live-scene[data-story="lamp-on"][data-story-motion="play"] .story-found-toy{animation:story-lamp-reveal 3.8s ease both}
@keyframes story-lamp-reveal{0%,25%{opacity:0}40%,100%{opacity:1}}

/* Fish remain under the pier; only a dipping paw causes water drops. */
.live-scene[data-story="fish-swim"] .scene-object{left:44%;width:21%;bottom:calc(var(--story-floor) + 1px);z-index:4}
.story-fish-pool{left:29%;width:59%;bottom:calc(var(--story-floor) - 13px)}
.story-pier{position:absolute;left:7%;width:33%;bottom:calc(var(--story-floor) + 13px);height:17px;border-radius:5px;background:repeating-linear-gradient(90deg,#bb926b 0 24px,#87654c 25px 28px);box-shadow:0 4px #694e3b;z-index:5}
.story-pier:after{content:"";position:absolute;left:13%;top:10px;width:8px;height:24px;background:#8c6448;box-shadow:82px 0 #8c6448}
.live-scene[data-story="fish-swim"][data-story-motion="play"] .scene-object{animation:story-fish-pass 3.8s linear both}
@keyframes story-fish-pass{0%{transform:translateX(145%);opacity:0}15%{opacity:1}75%,100%{transform:translateX(-80%);opacity:1}}
.live-scene[data-story="paw-splash"] .scene-cat{left:12%;width:44%;transform:rotate(6deg)}
.live-scene[data-story="paw-splash"] .story-puddle{left:31%;width:48%}
.story-splash-drops{position:absolute;left:36%;width:24%;bottom:calc(var(--story-floor) + 18px);height:67px;z-index:6}
.story-splash-drops .story-drop{top:80%;background:#beefff;height:9px;width:5px;transform-origin:50% 50%}
.live-scene[data-story="paw-splash"][data-story-motion="play"] .scene-cat{animation:story-paw-dip 3.8s var(--story-ease) both}
.live-scene[data-story="paw-splash"][data-story-motion="play"] .story-drop{animation:story-paw-drops .9s calc(1.5s + var(--drop-delay)) ease-out both}
@keyframes story-paw-dip{0%,12%{transform:none}36%{transform:rotate(12deg) translate(5%,4%)}51%{transform:rotate(2deg) translate(0,-2%)}60%{transform:rotate(8deg)}70%,100%{transform:rotate(6deg)}}
@keyframes story-paw-drops{0%{opacity:0;transform:none}20%{opacity:1}100%{opacity:0;transform:translate(calc(var(--drop-x) * .5),-64px) rotate(30deg)}}

/* MÖSSA and quiet observation are distinct from the hat hiding trick. */
.live-scene[data-story="hat-wear"] .scene-object{left:70%;width:24%;bottom:calc(var(--story-floor) + 102px);z-index:6;transform:rotate(-6deg)}
.live-scene[data-story="hat-wear"] .scene-cat{left:28%;width:37%;transform:rotate(7deg)}
.live-scene[data-story="hat-wear"][data-story-motion="play"] .scene-object{animation:story-cap-on 3.8s var(--story-ease) both}
@keyframes story-cap-on{0%,15%{transform:translate(-80%,30%) rotate(-22deg)}53%,100%{transform:rotate(-6deg)}}
.live-scene[data-story="mushroom-look"] .scene-object{left:43%;width:25%;bottom:calc(var(--story-floor) - 4px)}
.live-scene[data-story="mushroom-look"] .scene-cat{left:7%;width:37%;transform:rotate(8deg)}
.live-scene[data-story="shell-show"] .scene-object{left:49%;width:22%;bottom:calc(var(--story-floor) + 58px)}
.live-scene[data-story="shell-show"][data-story-motion="play"] .scene-object{animation:story-show-object 3.8s var(--story-ease) both}
@keyframes story-show-object{0%,15%{transform:translate(80%,20%) rotate(10deg)}55%,100%{transform:none}}
.live-scene[data-story="listen-close"] .scene-cat{left:17%;width:39%;transform:rotate(7deg)}
.live-scene[data-story="listen-close"] .scene-object{left:48%;width:24%;bottom:calc(var(--story-floor) + 27px)}
.live-scene[data-story="listen-close"][data-story-motion="play"] .scene-cat{animation:story-listen-turn 3.8s var(--story-ease) both}
@keyframes story-listen-turn{0%,16%{transform:rotate(-5deg)}45%,100%{transform:rotate(7deg)}}

/* Night stories use a window and a closing curtain, then a quiet held pose. */
.story-window{position:absolute;left:16%;top:25%;width:40%;height:37%;max-height:170px;z-index:2;background:linear-gradient(#354c76,#7d78ac);border:9px solid #f0d0a2;border-radius:45% 45% 3% 3%;box-shadow:inset 0 0 0 2px #b9896c,0 4px 10px #382a4b22}
.story-window-cross{position:absolute;left:48%;top:0;bottom:0;width:5px;background:#efd1a5}
.story-window-cross:after{content:"";position:absolute;left:-60px;top:53%;height:5px;width:125px;background:#efd1a5}
.live-scene[data-story="moon-window"] .scene-object,
.live-scene[data-story="star-window"] .scene-object{left:25%;width:19%;top:27%;bottom:auto;z-index:3;filter:drop-shadow(0 0 9px #fce3b078)}
.live-scene[data-story="moon-window"] .scene-cat,
.live-scene[data-story="star-window"] .scene-cat{left:20%;width:37%;transform:rotate(-5deg)}
.live-scene[data-story="moon-window"][data-story-motion="play"] .scene-object,
.live-scene[data-story="star-window"][data-story-motion="play"] .scene-object{animation:story-night-light 3.8s ease both}
@keyframes story-night-light{0%,15%{opacity:.2;filter:drop-shadow(0 0 0 #fce3b000)}48%,100%{opacity:1;filter:drop-shadow(0 0 9px #fce3b078)}}
.live-scene[data-story="curtain-close"] .scene-object{left:27%;top:28%;bottom:auto;width:17%;z-index:3}
.story-curtain{position:absolute;top:24%;width:21%;height:39%;max-height:182px;z-index:4;background:repeating-linear-gradient(90deg,#d0acd5 0 10%,#ba8cbe 18%,#dfbfdf 28%);box-shadow:inset 0 5px #f1d3eb;border-radius:6px 6px 12% 12%}
.story-curtain-left{left:15%}.story-curtain-right{left:36%}
.live-scene[data-story="curtain-close"][data-story-motion="play"] .story-curtain-left{animation:story-curtain-draw 3.8s ease both;transform-origin:0 50%}
.live-scene[data-story="curtain-close"][data-story-motion="play"] .story-curtain-right{animation:story-curtain-draw 3.8s ease both;transform-origin:100% 50%}
@keyframes story-curtain-draw{0%,14%{transform:scaleX(.17)}67%,100%{transform:scaleX(1)}}
.live-scene[data-story="sleep-close"] .scene-cat{left:23%;width:39%;transform:scale(.9) translateY(8%)}
.live-scene[data-story="sleep-close"] .scene-friend{right:13%;width:27%}
.live-scene[data-story="sleep-close"] .scene-object{left:15%;top:23%;bottom:auto;width:18%}
.live-scene[data-story="sleep-close"][data-story-motion="play"] .scene-cat{animation:story-sleep-curl 3.8s var(--story-ease) both}
@keyframes story-sleep-curl{0%,13%{transform:scale(1)}57%,100%{transform:scale(.9) translateY(8%)}}

/* Sky and garden scenes retain a concrete subject and a readable final image. */
.live-scene[data-story="sun-stretch"] .scene-object{left:16%;top:21%;bottom:auto;width:24%}
.live-scene[data-story="sun-stretch"][data-story-motion="play"] .scene-cat{animation:story-warm-stretch 3.8s var(--story-ease) both}
@keyframes story-warm-stretch{0%,12%{transform:none}42%{transform:scale(1.08,.94) rotate(-4deg)}68%,100%{transform:none}}
.live-scene[data-story="cloud-cat"] .scene-object{left:22%;width:42%;top:21%;bottom:auto;z-index:3}
.story-cloud-cat{position:absolute;left:30%;width:25%;top:20%;z-index:4;opacity:.38;filter:grayscale(1) brightness(2.8);transform:scale(.85)}
.live-scene[data-story="cloud-cat"][data-story-motion="play"] .story-cloud-cat{animation:story-cloud-recognize 3.8s ease both}
@keyframes story-cloud-recognize{0%,23%{opacity:0}56%,100%{opacity:.38}}
.live-scene[data-story="kite-fly"] .scene-object{left:28%;top:21%;bottom:auto;width:27%;transform:rotate(8deg);z-index:5}
.story-kite-string{position:absolute;left:48%;top:38%;width:28%;height:26%;border-bottom:2px solid #fff2ce;border-right:2px solid #fff2ce;border-radius:0 0 70% 0;transform:rotate(-13deg);z-index:4}
.live-scene[data-story="kite-fly"][data-story-motion="play"] .scene-object{animation:story-kite-rise 3.8s var(--story-ease) both}
@keyframes story-kite-rise{0%,12%{transform:translate(60%,95%) rotate(-18deg)}48%{transform:translate(-5%,-12%) rotate(14deg)}75%,100%{transform:rotate(8deg)}}
.live-scene[data-story="flower-show"] .scene-object{left:45%;width:26%;bottom:calc(var(--story-floor) + 26px)}
.story-flower-stem{position:absolute;left:56%;bottom:var(--story-floor);height:56px;width:5px;border-radius:100%;background:#77a777;z-index:3;transform:rotate(9deg)}
.live-scene[data-story="flower-show"][data-story-motion="play"] .scene-object{animation:story-show-object 3.8s var(--story-ease) both}
.live-scene[data-story="rainbow-clear"] .scene-object{left:15%;width:54%;top:22%;bottom:auto;z-index:3}
.story-clearing-cloud{left:15%;top:23%;width:37%;z-index:5;transform:translateX(-75%);opacity:.6}
.live-scene[data-story="rainbow-clear"][data-story-motion="play"] .story-clearing-cloud{animation:story-clouds-part 3.8s var(--story-ease) both}
@keyframes story-clouds-part{0%,15%{transform:none;opacity:1}73%,100%{transform:translateX(-75%);opacity:.6}}

/* Extra vocabulary: a toy is discovered, footsteps lead on, a greeting settles. */
.live-scene[data-story="mouse-play"] .scene-object,
.live-scene[data-story="toy-find"] .scene-object{left:43%;width:18%;bottom:calc(var(--story-floor) + 1px)}
.live-scene[data-story="mouse-play"][data-story-motion="play"] .scene-object{animation:story-mouse-scoot 3.8s var(--story-ease) both}
@keyframes story-mouse-scoot{0%,14%{transform:translateX(75%)}32%{transform:translateX(10%)}43%{transform:translateX(32%)}62%,100%{transform:none}}
.story-toy-cover{left:35%;width:34%;bottom:calc(var(--story-floor) - 1px);z-index:6;transform:translate(60%,-80%) rotate(15deg)}
.live-scene[data-story="toy-find"][data-story-motion="play"] .story-toy-cover{animation:story-toy-uncover 3.8s var(--story-ease) both}
@keyframes story-toy-uncover{0%,15%{transform:none}55%,100%{transform:translate(60%,-80%) rotate(15deg)}}
.story-adventure-step{position:absolute;left:calc(33% + var(--step)*10%);bottom:calc(var(--story-floor) + 6px);width:15px;height:10px;border-radius:50%;background:#e6ce9d;box-shadow:0 2px #9b896b55;z-index:2}
.live-scene[data-story="adventure-path"] .scene-object{left:69%;width:22%;bottom:calc(var(--story-floor) + 8px)}
.live-scene[data-story="adventure-path"][data-story-motion="play"] .scene-cat{animation:story-read-close 3.8s var(--story-ease) both}
.live-scene[data-story="adventure-path"][data-story-motion="play"] .story-adventure-step{animation:story-print-appear .4s calc(var(--step)*.35s) ease both}
.live-scene[data-story="happy-hello"] .scene-object{left:20%;width:21%;top:22%;bottom:auto}
.live-scene[data-story="happy-hello"][data-story-motion="play"] .scene-cat{animation:story-follow-jump 3.8s var(--story-ease) both}
.live-scene[data-story="funny-face"][data-story-motion="play"] .scene-cat{animation:story-funny-tilt 3.8s var(--story-ease) both}
@keyframes story-funny-tilt{0%,14%{transform:none}29%{transform:rotate(-11deg)}40%{transform:rotate(10deg)}51%{transform:rotate(-7deg)}69%,100%{transform:none}}
.live-scene[data-story="careful-step"] .scene-object{left:46%;width:18%;bottom:calc(var(--story-floor) + 1px)}
.live-scene[data-story="careful-step"][data-story-motion="play"] .scene-cat{animation:story-careful-step 3.8s ease both}
@keyframes story-careful-step{0%,15%{transform:translateX(-15%)}65%,100%{transform:translateX(2%) rotate(3deg)}}

@media(max-width:1050px){
  .live-scene[data-story]{--story-floor:68px}
  .live-scene[data-story] .scene-cat{max-width:180px}
  .live-scene[data-story] .scene-friend{max-width:108px}
  .live-scene[data-story="hat-reveal"] .scene-cat{width:31%;left:24%}
  .live-scene[data-story="hat-reveal"] .scene-object{width:36%;left:21%}
  .story-lamp-beam{height:150px}
  .story-pitcher{height:51px;bottom:calc(var(--story-floor) + 112px)}
  .story-water-stream{height:80px}
  .story-window{top:23%;height:33%}
  .story-curtain{top:22%;height:35%}
}
@media(max-width:700px){
  .live-scene[data-story]{--story-floor:76px}
  .live-scene[data-story] .scene-cat{width:38%;max-width:170px}
  .live-scene[data-story] .scene-friend{width:25%;max-width:100px}
  .live-scene[data-story] .scene-friend[data-person="sara"]{max-width:78px}
  .live-scene[data-story] .scene-friend[data-person="linda"],
  .live-scene[data-story] .scene-friend[data-person="klas"],
  .live-scene[data-story] .story-family-member{max-width:65px}
  .live-scene[data-story="hat-reveal"] .scene-cat{left:18%;width:39%}
  .live-scene[data-story="hat-reveal"] .scene-object{left:16%;width:45%}
  .live-scene[data-story="rain-shelter"] .scene-object{bottom:calc(var(--story-floor) + 41px)}
  .live-scene[data-story="berry-pick"] .scene-object{bottom:calc(var(--story-floor) + 63px)}
  .story-berry-one{bottom:calc(var(--story-floor) + 59px)}
  .story-berry-two{bottom:calc(var(--story-floor) + 29px)}
  .story-laundry-cloth{bottom:calc(var(--story-floor) + 33px);height:23px}
  .story-fallback-basket:before{border-width:5px}
  .live-scene[data-story="cup-pour"] .scene-object{width:29%}
  .story-pitcher{height:47px;bottom:calc(var(--story-floor) + 104px)}
  .story-water-stream{bottom:calc(var(--story-floor) + 51px);height:85px;width:4px}
  .story-bowl-stream{height:88px;width:4px}
  .story-water-bowl{height:22px}
  .live-scene[data-story="butterfly-visit"] .scene-object{bottom:calc(var(--story-floor) + 70px)}
  .live-scene[data-story="hat-wear"] .scene-object{bottom:calc(var(--story-floor) + 75px)}
  .live-scene[data-story="heart-give"] .scene-object{bottom:calc(var(--story-floor) + 53px)}
  .live-scene[data-story="gentle-cuddle"] .scene-object{bottom:calc(var(--story-floor) + 108px)}
  .live-scene[data-story="gentle-cuddle"] .scene-friend{right:34%}
  .live-scene[data-story="family-together"] .scene-object{bottom:calc(var(--story-floor) + 91px)}
  .live-scene[data-story="cookie-bite"] .scene-object{bottom:calc(var(--story-floor) + 50px)}
  .live-scene[data-story="book-read"] .scene-object{bottom:calc(var(--story-floor) + 26px)}
  .story-window{border-width:6px;top:24%;height:30%}
  .story-curtain{top:23%;height:32%}
  .story-window-cross:after{left:-40px;width:84px;height:4px}
  .live-scene[data-story="moon-window"] .scene-object,
  .live-scene[data-story="star-window"] .scene-object{top:24%}
  .live-scene[data-story="rainbow-clear"] .scene-object{top:20%;width:51%}
  .story-kite-string{height:19%}
}

/* Also honour an OS preference changed during the story. The final state stays
   understandable; rain becomes stationary and transient splashes disappear. */
.live-scene[data-story-motion="still"] .scene-word,
.live-scene[data-story-motion="still"] .scene-light{animation:none;transition:none}
@media(prefers-reduced-motion:reduce){
  .live-scene[data-story] .scene-cat,.live-scene[data-story] .scene-friend,
  .live-scene[data-story] .scene-object,.live-scene[data-story] [class^="story-"],
  .live-scene[data-story] [class*=" story-"]{animation:none!important;transition:none!important}
  .live-scene[data-story="rain-shelter"] .story-rain{opacity:.75}
  .live-scene[data-story="rain-shelter"] .story-drop{top:35%;opacity:.65}
  .live-scene[data-story] .story-water-stream,.live-scene[data-story] .story-bowl-stream,
  .live-scene[data-story] .story-water-ring,.live-scene[data-story] .story-splash-drops{opacity:0}
}
/* Keep the canopy inside the theatre and its handle beside Amor's face. */
.live-scene[data-story="rain-shelter"] .scene-object{left:15%;width:48%;max-width:270px;bottom:calc(var(--story-floor) + 45px)}
@media(max-width:700px){.live-scene[data-story="rain-shelter"] .scene-object{bottom:calc(var(--story-floor) + 5px)}}
