/* WHO IS SPEAKING, IN STORY MODE (js/story-voices.js). Only under body.ps-clean (story mode, no HUD) with subtitles on. */
/* the person's words come back into the strip (the band hides keyed words because the lit card's bubble carries them; in story mode there
   is no card), with the name above in the speaker's colour; narration is unchanged */
html body.ps-on.ps-clean:not(.ps-clean-nosubs) #psSubs.keyed .ps-line:not(.ps-meas){visibility:visible!important}
html body.ps-on.ps-clean.ps-voice #psSubs .ps-who,html body.ps-on.ps-clean.ps-voice.ps-row #psSubs .ps-who{display:block!important;visibility:visible!important;
  color:var(--voice,#f3d48c);letter-spacing:.24em;text-shadow:0 1px 6px rgba(0,0,0,.9)}
html body.ps-on.ps-clean.ps-voice #psSubs .ps-line:not(.ps-meas){font-style:italic}
/* the face beside the words, on the speaker's side; a soft ring in their colour */
#psVoice{position:fixed;left:0;top:0;z-index:13;pointer-events:none;border-radius:50%;overflow:hidden;
  box-shadow:0 0 0 2px var(--voice,#f3d48c),0 0 16px rgba(0,0,0,.6),0 0 22px color-mix(in srgb,var(--voice,#f3d48c) 35%,transparent);background:#0f0b13;
  transition:transform .28s cubic-bezier(.3,.7,.3,1),opacity .25s ease}
#psVoice[hidden]{display:none}
#psVoice img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 22%}
#psVoice.noimg{display:none}
#psVoice.in{animation:psVoiceIn .32s ease-out both}
#psVoice.inline{box-shadow:0 0 0 1.5px var(--voice,#f3d48c),0 1px 4px rgba(0,0,0,.7)}
@keyframes psVoiceIn{from{opacity:0}to{opacity:1}}
html body.ps-still #psVoice,html body.ps-still #psVoice.in{transition:none;animation:none}
@media (prefers-reduced-motion:reduce){ #psVoice,#psVoice.in{transition:none;animation:none} }

/* SMOOTHER SPEAKER CHANGE ON THE ROW (Eivind, 2026-10-18: "the speaker motion animation of the circled portrait not smooth enough").
   Was: transform .25s ease, the ring's border jumped 1 / 2 / 2.5 px (the picture box changed size each time) and the glow and shadow
   snapped; in Still motion (the default) everything snapped. Now: one border width always (the emphasis is a box-shadow ring that fades),
   a longer eased lift and grow on the compositor, the dim and the glow cross-fade; Still keeps the fades but not the movement. */
html body.ps-on.ps-cards .ps-rchip{transition:transform .42s cubic-bezier(.22,.9,.3,1),filter .42s ease;will-change:transform,filter;backface-visibility:hidden}
html body.ps-on.ps-cards .ps-rchip img,html body.ps-on.ps-cards #psRail.talking .ps-rchip:not(.sp) img,html body.ps-on.ps-cards .ps-rchip.sp img{border-width:2px}
html body.ps-on.ps-cards .ps-rchip img{transition:border-color .38s ease,box-shadow .42s ease}
html body.ps-on.ps-cards .ps-rchip.sp img{box-shadow:0 0 0 1.5px #f3d48c,0 0 0 4px rgba(243,212,140,.30),0 0 22px rgba(243,212,140,.5),0 8px 18px rgba(0,0,0,.6)}
html body.ps-on.ps-cards .ps-cnm{transition:opacity .38s ease}
html body.ps-still.ps-cards .ps-rchip{transition:filter .35s ease!important}
html body.ps-still.ps-cards .ps-rchip img{transition:border-color .3s ease,box-shadow .35s ease!important}
html body.ps-still.ps-cards .ps-cnm{transition:opacity .3s ease!important}
@media (prefers-reduced-motion:reduce){ html body.ps-on.ps-cards .ps-rchip{transition:filter .35s ease!important} }
