/* Scoped continuous companion conversation. Original assets and shared feedback retained. */
#what-is-it.sts{max-width:620px;margin:0 auto;color:var(--ink)}
.sts .sts-top{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;min-height:44px;margin:0 0 12px;padding:0 0 8px}.sts .sts-top .back{margin:0;justify-self:start}.sts .sts-count{font-size:13px;color:var(--muted);white-space:nowrap}.sts .feedback-sound-toggle{width:92px;min-height:44px;padding:4px;font-size:10px;line-height:1.3;white-space:normal}
.sts .sts-companion{display:flex;align-items:center;gap:14px;min-height:94px;margin:0 0 10px}.sts .sts-companion>.sts-portrait{width:72px;height:94px;object-fit:contain;flex-shrink:0}.sts .sts-companion>div{flex:1;min-width:0}.sts h2.sts-speaker{font:500 17px/1.4 var(--ui);color:var(--violet);margin:0 0 3px;letter-spacing:0}.sts .sts-turn{font:500 28px/1.3 var(--display);color:var(--ink);margin:0}.sts .sts-intro{font-size:19px;color:var(--ink);margin:12px 0;line-height:1.5}.sts-menu>h2{margin:8px 0 20px}.sts-menu>.eyebrow{margin:10px 0}
.sts .sts-art{display:flex;justify-content:center;align-items:center;min-height:140px;margin:8px auto 12px}.sts .sts-object{display:block;width:100%;height:175px;object-fit:contain}.sts .sts-hidden-object{min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%}.sts .sts-hidden-object>span{font:500 64px/1 var(--display);color:var(--violet)}.sts .sts-hidden-object small{font-size:14px;color:var(--muted);margin-top:8px}
.sts .sts-replay{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:8px;background:transparent;color:var(--violet);border-radius:4px;flex:none}.sts .sts-replay svg{width:22px;height:22px}.sts .sts-replay span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.sts .sts-model{text-align:center}.sts .sts-model>p:first-child{font:500 28px/1.4 var(--display);color:var(--ink);margin:2px 0}.sts .sts-model .translation{font-size:14px;margin:4px 0 16px}.sts .sts-play-model{width:100%;gap:10px;min-height:52px}.sts .sts-play-model svg{width:22px;height:22px;flex:none}
.sts .instruction{font-size:16px;line-height:1.4;color:var(--ink);margin:8px 0 12px}.sts .sts-options{display:grid;gap:10px;margin:8px 0}.sts .sts-options .option{min-height:52px;padding:12px 14px;border:1px solid #b9adcd;background:#fffdf9;text-align:left;font-size:20px;line-height:1.4;border-radius:4px;white-space:normal}.sts .sts-picture-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.sts .sts-picture-options button{min-width:0;background:white;border:1px solid #b9adcd;border-radius:4px;padding:8px;min-height:118px}.sts .sts-picture-options .sts-object{height:100px}.sts .sts-picture-options button:disabled{opacity:.65}
.sts #sts-form{display:grid;gap:10px;margin:12px 0}.sts #sts-form label{font-size:15px;color:var(--ink)}.sts #sts-input{width:100%;min-width:0;font:400 20px/1.4 var(--ui);padding:12px;border:1px solid #a99cc6;border-radius:4px;background:white;color:var(--ink);min-height:54px;scroll-margin-bottom:150px}.sts .sts-frame{font:500 25px/1.4 var(--display);color:var(--ink);margin:10px 0}.sts .sts-slots{display:flex;gap:6px;flex-wrap:wrap;min-height:58px;border-bottom:1px solid #b9adcd;padding:6px 0;margin:10px 0}.sts .sts-tiles{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px}.sts .sts-tiles button,.sts .sts-slots button{background:#eeebf5;color:var(--ink);padding:9px 12px;min-height:48px;min-width:44px;border-radius:4px;font-size:20px}.sts .sts-slots button{background:transparent;padding:6px}.sts .sts-hint{font-size:20px;color:var(--violet);margin:4px 0 10px}
.sts .btn{min-height:52px;border-radius:4px}.sts .sts-actions{display:grid;gap:8px;margin:16px 0}.sts .feedback{font-size:16px;min-height:0;margin:8px 0}.sts .feedback:empty{margin:0;padding:0}.sts .sts-next{width:100%;justify-content:center}.sts .completion-panel{margin:10px 0;padding:4px 0}.sts .completion-panel>.btn{max-width:none}.sts #sts-audio-status{min-height:20px;margin:6px 0;font-size:13px}.sts .mini{font-size:13px}.sts .quiet-link{font-size:14px;background:transparent;min-height:44px;text-align:center}.sts .exercise-content{min-width:0}.sts [hidden]{display:none!important}
@media(max-width:650px){body:has(#what-is-it.sts) header{min-height:60px}body:has(#what-is-it.sts) main{margin-top:4px}.sts .sts-top{gap:8px;margin-bottom:10px}.sts .sts-companion{gap:12px;min-height:80px}.sts .sts-companion>.sts-portrait{width:62px;height:80px}.sts .sts-turn{font-size:25px}.sts h2.sts-speaker{font-size:15px}.sts .sts-art{min-height:120px;margin:4px auto 10px}.sts .sts-object{height:155px}.sts .sts-hidden-object{min-height:120px}.sts .completion-panel{scroll-margin-bottom:calc(110px + env(safe-area-inset-bottom))}}
@media(max-height:700px) and (max-width:650px){body:has(#what-is-it.sts) header{min-height:50px}.sts .sts-companion{min-height:64px;margin-bottom:6px}.sts .sts-companion>.sts-portrait{height:64px}.sts .sts-art{min-height:88px;margin:4px auto}.sts .sts-object{height:105px}.sts .sts-hidden-object{min-height:88px}.sts #sts-form{margin:8px 0;gap:8px}.sts .instruction{margin:6px 0}.sts .sts-top{margin-bottom:6px}}
@media(max-height:650px){.sts:focus-within .sts-art{min-height:70px}.sts:focus-within .sts-object{height:85px}.sts:focus-within .sts-hidden-object{min-height:75px}}

/* Fixed portrait footprint: silent cue overlays the untouched static fallback. */
.sts .sts-portrait{display:block;position:relative;overflow:hidden}.sts .sts-portrait>img,.sts .sts-talking-video{display:block;width:100%;height:100%;object-fit:contain}.sts .sts-talking-video{position:absolute;inset:0;pointer-events:none}.sts .sts-portrait.is-speaking>img{visibility:hidden;display:none}
@media(prefers-reduced-motion:reduce){.sts .sts-talking-video{display:none!important}.sts .sts-portrait.is-speaking>img{visibility:visible;display:block}}

/* A question reserves a readable speaking portrait before media starts.
   The static image covers the video while it loads; the video itself is
   rendered before play(), rather than display:none until playing. Both states occupy the exact same rectangle. */
.sts .sts-companion>.sts-portrait[data-companion-cue]{width:128px;height:176px}
.sts .sts-portrait[data-companion-cue]>img{position:relative;z-index:1;background:var(--paper,#faf9f6)}
.sts .sts-talking-video{z-index:0}
@media(max-height:700px) and (max-width:650px){.sts .sts-companion>.sts-portrait[data-companion-cue]{width:104px;height:144px}}
