/* Item 16: voice-line subtitles. Bottom centre, above the safe area, solid ink plate (no blur, so it reads in
   low-spec mode too), cream text 18 px, speaker in gold. No motion. */
.cu-cc{position:absolute;left:50%;bottom:max(24px,env(safe-area-inset-bottom));translate:-50% 0;z-index:30;max-width:min(90%,720px);
 box-sizing:border-box;padding:8px 16px;background:#120d22eb;border:2px solid #b98a45;color:#fff3cd;font:400 18px/26px var(--ui-body,system-ui);
 text-align:center;text-wrap:balance;overflow-wrap:anywhere;pointer-events:none}
.cu-cc[hidden]{display:none}
.cu-cc-who{margin-inline-end:8px;color:#f4c67b;font-weight:700}
/* N13-01/02: phone layout (16 px gutter, 16 px text) and the toast/dialog pixel shadow with a gold top rule. */
.cu-cc{box-shadow:4px 4px 0 #0008,inset 0 2px 0 var(--cu-gold-2,#f4c67b)}
@media (max-width:480px){.cu-cc{max-width:calc(100% - 32px);width:max-content;padding:6px 12px;font-size:16px;line-height:22px}}
/* N14-13: caption lines wrap evenly, no lone last word. */
.cu-cc{text-wrap:pretty}
/* N20-05: the host keeps captions clear of its HUD with --cu-caption-bottom/-top/-left/-right (or captions.js setCaptionInsets);
   each inset is added to env(safe-area-inset-*), so notches stay clear by default. The plate stays inside left/right insets. */
.cu-cc{bottom:calc(env(safe-area-inset-bottom,0px) + var(--cu-caption-bottom,24px));
 max-width:min(calc(100% - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px) - var(--cu-caption-left,16px) - var(--cu-caption-right,16px)),720px);
 max-height:calc(100% - env(safe-area-inset-top,0px) - var(--cu-caption-top,16px) - env(safe-area-inset-bottom,0px) - var(--cu-caption-bottom,24px));overflow:hidden;
 left:calc(50% + (env(safe-area-inset-left,0px) + var(--cu-caption-left,16px) - env(safe-area-inset-right,0px) - var(--cu-caption-right,16px)) / 2)}
@media (max-height:400px){.cu-cc{font-size:16px;line-height:22px;padding:4px 12px}}
