/* =========================================================================
   story.css — Kido Interactive Story Adventures
   Full-screen place, characters standing in it, a slim dialogue bar that
   never hides the world, glowing things to touch, storybook title card.
   ========================================================================= */

/* The story fills the play area edge to edge (the game screen's padding would push it off the bottom). */
.screen:has(> .st) { padding: 0 !important; overflow: hidden; }
.screen > .st { animation: none; }   /* the story opens with its own scene transition, not the generic slide-in */
.st { position: relative; width: 100%; height: 100%; min-height: 100%; overflow: hidden; background: #CFEFD8; touch-action: manipulation; }
.st-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.st.is-entering .st-art { animation: st-settle .7s cubic-bezier(.2,.7,.3,1); }
@keyframes st-settle { from { transform: scale(1.05); } to { transform: none; } }
.st-hot, .st-cast { position: absolute; inset: 0; pointer-events: none; }
.st-cast { z-index: 2; }
.st-hot { z-index: 3; }   /* things to tap (and their name plates) sit above the characters */
.st-veil { position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0; transition: opacity .34s ease;
  background: radial-gradient(circle at 50% 45%, #FFFDF4 0%, #FFE9B8 100%); }
.st-veil.is-on { opacity: 1; }

/* ---- characters stand on their anchor point (feet = the point) ---- */
.st-actor.actor { position: absolute !important; translate: -50% -100%; pointer-events: none;
  filter: drop-shadow(0 6px 6px rgba(35,48,74,.25));
  transition: left 1s cubic-bezier(.45,0,.3,1), top 1s cubic-bezier(.45,-.3,.3,1); }
.st-actor.no-move { transition: none; }
.st-actor[hidden] { display: none !important; }
.st-actor.st-pop { animation: st-pop .55s cubic-bezier(.34,1.56,.64,1); }
@keyframes st-pop { from { scale: .3; opacity: 0; } to { scale: 1; opacity: 1; } }

/* ---- things to touch ---- */
.st-spot { position: absolute; pointer-events: auto; border: 0; padding: 0; background: transparent; border-radius: 28px; cursor: pointer; min-width: 56px; min-height: 56px; }
.st-spot.is-glow { box-shadow: 0 0 0 4px rgba(255,214,102,.95), 0 0 36px rgba(255,214,102,.75); animation: st-glow 1.6s ease-in-out infinite; }
@keyframes st-glow { 50% { box-shadow: 0 0 0 7px rgba(255,214,102,.55), 0 0 50px rgba(255,214,102,.9); } }
.st-spot:focus-visible { outline: 4px solid #FFFFFF; outline-offset: 4px; }
.st-spot::after { /* a little pointing hand so pre-readers know where to tap */
  content: ""; position: absolute; right: -10px; bottom: -14px; width: 42px; height: 42px; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M18 44c-4 0-7-3-8-6l-4-10c-1-2 1-4 3-3l4 3V9c0-2 2-3 3-3s3 1 3 3v11l2-1c1-1 3-1 4 0l1 1 1-1c1-1 3-1 4 0l1 1c2-1 4 0 4 2v9c0 7-5 13-12 13z' fill='%23FFFFFF' stroke='%236C4BD6' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: st-point 1.2s ease-in-out infinite;
}
.st-spot.has-plate::after { display: none; }
/* Extra visual guidance (Kido.Learning → storyStyle.guided): the pointing hand on choices
   too, placed clear of the label plate, and a stronger glow. */
.st.is-guided .st-spot.has-plate::after { display: block; right: auto; left: -12px; bottom: auto; top: -12px; }
.st.is-guided .st-spot.is-glow { box-shadow: 0 0 0 5px rgba(255,214,102,1), 0 0 44px rgba(255,214,102,.9); }
@keyframes st-point { 50% { transform: translate(-6px, -8px); } }
.st-plate {
  position: absolute; left: 50%; bottom: -10px; translate: -50% 50%; display: flex; flex-direction: column; align-items: center; width: max-content;   /* not squeezed by a small target */
  padding: 6px 16px; border-radius: 18px; background: rgba(255,253,248,.96); color: var(--ink); white-space: nowrap;
  box-shadow: 0 4px 0 rgba(76,50,168,.16), 0 10px 22px rgba(43,33,81,.22);
  font-family: var(--font-display); line-height: 1.15; pointer-events: none;
}
.st-plate b { font-size: clamp(15px, 1vw + 11px, 20px); font-weight: 800; }
.st-plate small { font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: normal; max-width: 180px; text-align: center; }
.st-spot:hover .st-plate { scale: 1.05; }
.st-spot.plate-top .st-plate { bottom: auto; top: -10px; translate: -50% -50%; }   /* Change #17A: name above (story's choice, or no room below) */
.st-spot.plate-left .st-plate { left: auto; right: calc(100% - 8px); bottom: auto; top: 50%; translate: 0 -50%; }   /* last choice on a crowded small screen */
.st-spot.plate-right .st-plate { left: calc(100% - 8px); bottom: auto; top: 50%; translate: 0 -50%; }

/* reactions on the drawn object that was touched */
.st-art .kw-hot.is-live { cursor: pointer; }
.st-art .react-rustle.is-tapped { transform-box: fill-box; transform-origin: 50% 100%; animation: kw-rustle .6s ease-in-out; }
.st-art .react-shine.is-tapped { animation: st-shine .9s ease-out; }
.st-art .react-jump.is-tapped .st-jumper { transform-box: fill-box; transform-origin: center; animation: kw-jump 1.3s ease-in-out; }
.st-art .st-jumper { opacity: 0; }
@keyframes st-shine { 40% { filter: brightness(1.25) drop-shadow(0 0 8px #FFE27A); } }
.st-art .kw-reveal { opacity: 0; transition: opacity .6s ease, transform .6s cubic-bezier(.34,1.56,.64,1); transform: translateY(8px); }
.st-art .kw-reveal.is-shown { opacity: 1; transform: none; }
/* Change #13: revealed garden helpers come alive (wings beat, they hover) */
.st-art .kw-reveal.is-shown .kw-wings { transform-box: fill-box; transform-origin: center; animation: kw-flap .26s ease-in-out infinite alternate; }
.st-art .kw-reveal.is-shown .st-hover { transform-box: fill-box; animation: kw-float 2.2s ease-in-out infinite; }
.st-art .kw-reveal.is-shown .st-hover--b { animation-duration: 1.6s; }

/* ---- dialogue bar: slim, bottom, world stays visible ---- */
.st-dlg {
  position: absolute; left: 50%; bottom: calc(12px + var(--kido-sa-bottom)); translate: -50% 0; z-index: 5;
  width: min(680px, calc(100% - 20px)); display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 12px; border-radius: 26px;
  background: rgba(255,253,248,.95); box-shadow: 0 4px 0 rgba(76,50,168,.14), 0 16px 34px rgba(30,40,60,.28);
}
.st-dlg[hidden] { display: none; }
.st-dlg__face { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 40% 35%, #FFFFFF, #E8F4FF); box-shadow: inset 0 0 0 3px #FFFFFF, 0 2px 6px rgba(0,0,0,.15); display: grid; place-items: center; }
.st-dlg__face svg { width: 92%; height: 92%; }
.st-dlg__face[hidden] { display: none; }
.st-dlg__body { flex: 1 1 auto; min-width: 0; }
.st-dlg__who { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--grape); line-height: 1; margin-bottom: 3px; }
.st-dlg__who[hidden] { display: none; }
.st-dlg__text { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: clamp(17px, 1.1vw + 13px, 22px); line-height: 1.25; }
.st-dlg__text.is-in { animation: st-text .35s ease both; }
@keyframes st-text { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.st-dlg.is-narrator .st-dlg__text { font-style: italic; color: #4A3F72; }
.st-round { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--grape-soft); color: var(--grape-deep); }
.st-round .kido-icon { width: 24px; height: 24px; }
.st-round:focus-visible { outline: 4px solid var(--sky); outline-offset: 2px; }
.st-next { width: 60px; height: 60px; background: linear-gradient(135deg, #FFBE3B, #FF7A1A); color: #FFFFFF; box-shadow: 0 4px 0 #D46A12; }
.st-next[hidden] { display: none; }
.st-next.is-ready { animation: st-nudge 1.4s ease-in-out infinite; }
@keyframes st-nudge { 50% { transform: translateX(4px) scale(1.06); } }
.st-dlg.is-waiting-tap .st-dlg__text::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; border-radius: 50%; background: #FFB020; animation: kv-dot 1s ease-in-out infinite; }

/* ---- overlays: title card, puzzle, video ---- */
.st-overlay { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; }
/* Change #23: the treasure moment — golden light pours over the scene, rays turn slowly */
.st-treasure-fx { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden;
  background: radial-gradient(circle at 50% 52%, rgba(255, 246, 200, .85), rgba(255, 216, 107, .35) 30%, rgba(255, 194, 71, 0) 62%);
  animation: st-treasure-in 1.2s ease-out both; }
.st-treasure-fx::before { content: ""; position: absolute; left: 50%; top: 52%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax;
  background: repeating-conic-gradient(rgba(255, 243, 176, .38) 0deg 8deg, rgba(255, 243, 176, 0) 8deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 18%, transparent 46%); mask: radial-gradient(circle, #000 0, #000 18%, transparent 46%);
  animation: st-treasure-spin 14s linear infinite; }
@keyframes st-treasure-in { from { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes st-treasure-spin { to { transform: rotate(360deg); } }
.st.is-calm .st-treasure-fx, .st.is-calm .st-treasure-fx::before { animation: none; }
.st-art .st-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: st-flame .5s ease-in-out infinite alternate; }
@keyframes st-flame { from { transform: scale(1, .92) rotate(-3deg); } to { transform: scale(1.04, 1.08) rotate(3deg); } }
.st.is-calm .st-art .st-flame { animation: none; }
.st-overlay[hidden] { display: none; }
.st-card {
  position: relative; width: min(460px, calc(100% - 32px)); padding: 26px 22px 24px; text-align: center;
  border-radius: 34px 28px 36px 30px; background: linear-gradient(160deg, #FFFDF4 0%, #FFF1D6 100%);
  box-shadow: 0 0 0 6px rgba(255,255,255,.6), 0 26px 60px rgba(30,40,60,.35);
  animation: pz-rise .5s cubic-bezier(.2,.8,.3,1.15) both;
}
.st-card::before { content: ""; position: absolute; inset: 10px; border-radius: 26px; border: 2px dashed rgba(201,138,82,.45); pointer-events: none; }
.st-card__hero.actor { position: relative !important; inset: auto !important; width: 130px !important; height: 156px !important; margin: -70px auto 4px; filter: drop-shadow(0 10px 12px rgba(35,48,74,.25)); }
.st-card__title { font-size: clamp(26px, 3vw + 14px, 36px); font-weight: 800; color: var(--ink); margin: 0 0 18px; }
.st-card__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.st-card__actions .btn { min-height: 60px; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.st-card__actions .kido-icon { width: 22px; height: 22px; }
.st-card__go { background: linear-gradient(135deg, #FFBE3B 0%, #FF9A1F 55%, #FF7A1A 100%); color: #fff; box-shadow: 0 5px 0 #D46A12, 0 12px 24px rgba(212,106,18,.3); }
.st-card__actions .btn:focus-visible { outline: 4px solid var(--grape); outline-offset: 3px; }
.st-overlay:has(.st-card)::before { content: ""; position: absolute; inset: 0; background: rgba(30,50,40,.25); }
/* the overlay starts below the HUD; its dim (and the vignette) still cover the band behind the HUD, so there is no hard edge */
body.in-gameplay .st-overlay:has(.st-card)::before { top: calc(-1 * var(--hud-h, 64px)); }
.st-puzzle { position: absolute; inset: 0; overflow: auto; }
.st-puzzle .pz { background: rgba(20,40,30,.28); }
.st-video { width: min(92%, 860px); }

/* ---- Change #17A: camera, things that move, finding and tidying ---- */
/* The place, its touchable things and the cast sit in one "camera" that can lean in gently. */
.st-cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1s cubic-bezier(.3,.7,.25,1); }
/* Change #28: in the app the place (and everything to tap in it) sits below the floating HUD and the status bar;
   the story's own background still fills the screen behind the HUD. The camera sizes itself from this box. */
body.in-gameplay .st-cam, body.in-gameplay .st-overlay { top: var(--hud-h, 64px); }   /* the overlay hosts story puzzles and the Continue / Start again card */
body.in-gameplay .st-art { overflow: visible; }   /* each place's sky is drawn far beyond its frame: it now fills the band behind the HUD */
.st-cam.no-move { transition: none; }
.st-vignette { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .8s ease;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(20,24,48,0) 0, rgba(20,24,48,0) 24%, rgba(20,24,48,.24) 70%); }
.st.is-focus .st-vignette { opacity: 1; }
/* Drawn things that fly or tidy away scale/turn around their own middle. */
.st-art [data-prop] { transform-box: fill-box; transform-origin: 50% 50%; }
.st-art .is-gone { opacity: 0 !important; transition: opacity .45s ease; pointer-events: none; }
.st-art .no-fade, .st-art .no-fade.kw-reveal { transition: none !important; }
/* The thing being tidied lifts and glows a little: "where does this go?" */
.st-art .st-lift { animation: st-lift 1.3s ease-in-out infinite; filter: drop-shadow(0 0 5px #FFE27A) drop-shadow(0 0 2px #FFFFFF); }
@keyframes st-lift { 50% { transform: translateY(-9px); } }
/* gentle reactions on drawn things */
.st-art .react-nope.is-tapped { transform-box: fill-box; transform-origin: 50% 100%; animation: st-nope .5s ease-in-out; }
@keyframes st-nope { 20% { transform: translateX(-5px) rotate(-2deg); } 40% { transform: translateX(5px) rotate(2deg); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.st-art .react-bounce.is-tapped { transform-box: fill-box; transform-origin: 50% 100%; animation: st-bounce .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes st-bounce { 35% { transform: scale(1.12, .9); } 70% { transform: scale(.95, 1.07); } }
.st-art .react-wiggle.is-tapped { transform-box: fill-box; transform-origin: 50% 100%; animation: st-wiggle .7s ease-in-out; }
@keyframes st-wiggle { 25% { transform: rotate(-6deg); } 50% { transform: rotate(5deg); } 75% { transform: rotate(-3deg); } }
/* ways for revealed things to arrive */
.st-art .kw-reveal.st-grow { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(.12); transition: opacity .5s ease, transform 1.2s cubic-bezier(.34,1.45,.64,1); }
.st-art .kw-reveal.st-grow.is-shown { transform: none; }
.st-art .kw-reveal.st-bloom { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(.2) rotate(-40deg); transition: opacity .5s ease, transform 1.1s cubic-bezier(.34,1.5,.64,1); }
.st-art .kw-reveal.st-bloom.is-shown { transform: none; }
.st-art .kw-reveal.st-pop { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(.3); transition: opacity .3s ease, transform .55s cubic-bezier(.34,1.56,.64,1); }
.st-art .kw-reveal.st-pop.is-shown { transform: none; }
.st-art .kw-reveal.st-dusk { transition: opacity 2.6s ease; transform: none; }
.st-art .kw-reveal.st-fade { transform: none; transition: opacity 1s ease; }
.st-art .kw-reveal.st-flyaway.is-shown { animation: kw-flyaway 2.6s ease-in forwards; }
.st-art .kw-reveal.is-shown .st-float { transform-box: fill-box; animation: kw-float 2.4s ease-in-out infinite; }
.st-art .kw-reveal.is-shown .st-drift > * { animation: st-drift 4.5s ease-out infinite; }
.st-art .kw-reveal.is-shown .st-drift > *:nth-child(2n) { animation-duration: 5.4s; animation-delay: -1.2s; }
.st-art .kw-reveal.is-shown .st-drift > *:nth-child(3n) { animation-duration: 3.9s; animation-delay: -2.3s; }
@keyframes st-drift { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(90px, -120px); opacity: 0; } }
.st-art .kw-reveal.is-shown .st-rain > * { animation: st-rain .9s linear infinite; }
.st-art .kw-reveal.is-shown .st-rain > *:nth-child(2n) { animation-delay: -.45s; }
.st-art .kw-reveal.is-shown .st-rain > *:nth-child(3n) { animation-delay: -.2s; animation-duration: 1.1s; }
@keyframes st-rain { from { transform: translateY(-30px); opacity: 0; } 20% { opacity: .9; } to { transform: translateY(70px); opacity: 0; } }
.st-art .kw-reveal.is-shown .st-pour > * { animation: st-pour .8s ease-in infinite; }
.st-art .kw-reveal.is-shown .st-pour > *:nth-child(2n) { animation-delay: -.4s; }
@keyframes st-pour { from { transform: translate(0, 0); opacity: 0; } 25% { opacity: 1; } to { transform: translate(14px, 46px); opacity: 0; } }
.st-art .kw-reveal.is-shown .st-twinkle > * { animation: kw-tw 1.8s ease-in-out infinite; }
.st-art .kw-reveal.is-shown .st-twinkle > *:nth-child(2n) { animation-delay: -.6s; }
.st-art .kw-reveal.is-shown .st-twinkle > *:nth-child(3n) { animation-delay: -1.1s; }
.st-art .st-glowpulse { animation: kw-pulse 2.6s ease-in-out infinite; }
.kw-art .st-slow { animation-duration: 40s; }
/* nighttime: the characters take on the evening light */
.st.is-night .st-actor { filter: brightness(.86) saturate(.92) drop-shadow(0 6px 6px rgba(10,14,40,.35)); }
/* finding things: a softer glow than a single "tap here", and dots for how many are left */
.st-spot.is-seek.is-glow { box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 26px rgba(255,214,102,.75); animation: st-glow-soft 2.2s ease-in-out infinite; }
@keyframes st-glow-soft { 50% { box-shadow: 0 0 0 5px rgba(255,255,255,.55), 0 0 36px rgba(255,214,102,.9); } }
.st-spot.is-seek::after { display: none; }
.st.is-guided .st-spot.is-seek::after { display: block; }
.st-spot.is-tried { opacity: .72; }
.st-spot.is-tried.is-glow { animation: none; box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.st-dots { display: flex; gap: 6px; margin-top: 6px; }
.st-dots[hidden] { display: none; }
.st-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(108,75,214,.18); box-shadow: inset 0 0 0 2px rgba(108,75,214,.35); transition: background .3s ease; }
.st-dots i.is-on { background: #FFB020; box-shadow: inset 0 0 0 2px #E08A00; animation: st-dot .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes st-dot { 50% { transform: scale(1.4); } }
/* "@rig" portraits: the speaking character's own face, alive, in the dialogue bar */
.st-dlg__face .st-face-rig.actor { position: relative !important; inset: auto !important; width: 84px !important; height: 101px !important; margin: -6px 0 0 -13px; flex: none; }
.st-dlg__face .st-face-rig .kido-char { width: 100%; height: 100%; }
.st-dlg__face:has(.st-face-rig) { display: block; overflow: hidden; }

/* Narrow phones (Change #17A): the face, voice and Next buttons left the line of text only ~72px at 320px, so
   a sentence stacked into a tall bar that hid the scene. Smaller face and Next, and the voice switch floats
   on the bar's top-right corner — the text gets ~3x the room and the bar stays low. */
@media (max-width: 480px) {
  .st-dlg { width: calc(100% - 12px); bottom: calc(6px + var(--kido-sa-bottom)); padding: 6px 6px 6px 8px; gap: 8px; border-radius: 20px; }
  .st-dlg__face { width: 42px; height: 42px; }
  .st-dlg__face .st-face-rig.actor { width: 60px !important; height: 72px !important; margin: -3px 0 0 -9px; }
  .st-dlg__who { font-size: 13px; margin-bottom: 1px; }
  .st-dlg__text { font-size: 15.5px; line-height: 1.22; }
  .st-next { width: 50px; height: 50px; }
  .st-voice { position: absolute; top: -20px; right: 12px; width: 40px; height: 40px; background: #FFFFFF; box-shadow: 0 2px 8px rgba(30,40,60,.22); }
  .st-voice .kido-icon { width: 20px; height: 20px; }
}

/* short landscape phones */
@media (max-height: 460px) {
  .st-dlg { padding: 6px 8px; gap: 8px; bottom: 6px; }
  .st-dlg__face { width: 44px; height: 44px; }
  .st-round { width: 46px; height: 46px; }
  .st-next { width: 52px; height: 52px; }
  .st-dlg__text { font-size: 16px; }
  .st-card { padding: 16px 18px; }
  .st-card__hero.actor { width: 90px !important; height: 108px !important; margin-top: -40px; }
  .st-card__title { margin-bottom: 10px; font-size: 24px; }
  .st-card__actions { flex-direction: row; justify-content: center; }
  .st-plate { padding: 4px 12px; }   /* which side of its thing a plate sits on: spreadPlates, clear of the dialogue bar */
  .st-plate small { max-width: 150px; font-size: 12px; }
  /* Change #17A: while the child decides (no Next button), the bar shrinks to one slim line and lets taps
     through to the scene beneath it — only the voice switch stays clickable. */
  .st-dlg.is-waiting-tap { padding: 4px 8px 4px 14px; width: min(560px, calc(100% - 120px)); pointer-events: none; }
  .st-dlg.is-waiting-tap .st-dlg__face, .st-dlg.is-waiting-tap .st-dlg__who { display: none; }
  .st-dlg.is-waiting-tap .st-dlg__text { font-size: 14.5px; }
  .st-dlg.is-waiting-tap .st-voice { pointer-events: auto; width: 36px; height: 36px; }
}

/* Change #23A: phones held sideways (≤420px tall) — a slimmer dialogue bar, so it stays below the things
   drawn near the bottom of a place (the treasure beach's bottle, shell and crab). Next stays 44px. */
@media (orientation: landscape) and (max-height: 420px) {
  .st-dlg { padding: 4px 8px; gap: 8px; bottom: calc(4px + var(--kido-sa-bottom)); }
  .st-dlg__face { width: 36px; height: 36px; }
  .st-dlg__face .st-face-rig.actor { width: 52px !important; height: 62px !important; margin: -2px 0 0 -8px; }
  .st-round { width: 40px; height: 40px; }
  .st-next { width: 44px; height: 44px; }
  .st-dlg__who { font-size: 12px; margin-bottom: 0; }
  .st-dlg__text { font-size: 14.5px; line-height: 1.15; }
  .st-dlg.is-waiting-tap { padding: 3px 8px 3px 14px; }
  .st-dlg.is-waiting-tap .st-voice { width: 34px; height: 34px; }
}

/* reduced motion: no pulsing, pointing or settling — everything still works */
html.reduce-motion .st-spot.is-glow, html.reduce-motion .st-spot::after, html.reduce-motion .st-next.is-ready,
html.reduce-motion .st.is-entering .st-art, html.reduce-motion .st-dlg__text.is-in, html.reduce-motion .st-card,
html.reduce-motion .st-actor, html.reduce-motion .st-art .kw-wings, html.reduce-motion .st-art .st-hover { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .st-spot.is-glow, .st-spot::after, .st-next.is-ready, .st.is-entering .st-art, .st-dlg__text.is-in, .st-card, .st-actor,
  .st-art .kw-wings, .st-art .st-hover { animation: none !important; transition: none !important; }
}
