html,body{overflow-x:hidden;touch-action:manipulation}button,a,nav,.grid{touch-action:manipulation;-webkit-user-select:none;user-select:none}input,textarea{font-size:16px!important}#story{position:fixed;inset:0;z-index:9999;background:radial-gradient(ellipse at top,#805b83,#241b30);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:25px}#story[hidden]{display:none}#storySkip{position:absolute;top:calc(env(safe-area-inset-top) + 16px);right:16px}#storyArt{width:min(100%,420px)}#storyArt svg{width:100%;height:auto}#storyArt .person{animation:sway 2s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:bottom center}@keyframes sway{to{rotate:3deg}}#storyArt{animation:appear .5s ease-out}@keyframes appear{from{opacity:0;transform:translateY(8px)}}#messages{min-height:180px;max-height:50dvh;overflow:auto;display:flex;flex-direction:column;gap:8px}#messages p{margin:0;padding:10px 14px;border-radius:18px;background:#ffffff20;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere;max-width:85%}#messages p.mine{align-self:flex-end;background:#a45e8c}#sendForm{display:flex;gap:6px}#sendForm input{min-width:0;flex:1}#pair input{display:block;width:100%;margin:8px 0}@media(prefers-reduced-motion:reduce){#storyArt,#storyArt .person{animation:none}}

#storyArt{width:min(100%,480px);overflow:hidden;border-radius:22px;box-shadow:0 18px 55px #0005}#storyCaption{font:600 clamp(22px,6vw,32px) Georgia,serif;margin:22px 0 8px}#storyLine{max-width:340px;line-height:1.6;color:#f5d6e7}#storyArt .actor{transform-box:fill-box;transform-origin:bottom center;animation:storyBreathe 2s ease-in-out infinite alternate}#storyArt .arm{transform-box:fill-box;transform-origin:top center;animation:storyWave 1.5s ease-in-out infinite alternate}#storyArt .sad{animation:none}#storyArt .clouds{animation:storyCloud 5s linear infinite alternate}#storyArt .storyHeart{animation:storyPulse 1.5s ease-in-out infinite alternate;transform-origin:180px 80px}#storyArt .rain{animation:storyRain .7s linear infinite}#storyArt[data-scene="0"] .boy,#storyArt[data-scene="2"] .boy{animation:storyApproach 2s ease-out both}#storyArt[data-scene="4"] .girl{animation:storyApproachGirl 2s ease-out both}@keyframes storyBreathe{to{transform:translateY(-3px) rotate(2deg)}}@keyframes storyWave{to{transform:rotate(12deg)}}@keyframes storyCloud{to{transform:translateX(15px)}}@keyframes storyPulse{to{opacity:.6;transform:scale(1.15)}}@keyframes storyRain{to{transform:translate(-15px,80px)}}@keyframes storyApproach{from{transform:translateX(-22px)}to{transform:translateX(10px)}}@keyframes storyApproachGirl{from{transform:translateX(22px)}to{transform:translateX(-10px)}}@media(prefers-reduced-motion:reduce){#storyArt *{animation:none!important}}
