/* LOCAL STAGING ONLY: production CSS and behavior remain untouched. */
#stageNotice{position:fixed;bottom:0;left:0;right:0;z-index:30000;pointer-events:none;background:#122631ee;color:#ffd491;font:10px/1.3 system-ui;text-align:center;padding:3px}
#stageVocalNotice{position:fixed;top:0;left:10%;right:10%;z-index:31000;background:#231a0eee;color:#ffe6b7;font:12px/1.4 system-ui;text-align:center;padding:7px}
.stage-language{padding:12px;border:1px solid #a7bac4;overflow-wrap:anywhere}.stage-language p{font:12px/1.5 system-ui}.stage-language select{font:16px/1.5 system-ui;min-height:44px;max-width:100%}
.preview-untranslated{outline:1px dotted #ce9b48}.preview-untranslated::before{display:none}
/* Per-control warning banners obscured compact controls at 320/390px. Keep
   exact missing markers and outlines; explain them once in a persistent legend. */
#dialogueText.preview-untranslated::before,.choices button.preview-untranslated::before{content:attr(data-preview-missing);font:10px/1.3 system-ui;color:#ffd18d;display:block}
#stageVocalDialog{max-width:min(600px,90vw);background:#142330;color:#fff;border:1px solid #a7bac4;padding:20px}#stageVocalDialog button{font:16px/1.5 system-ui;padding:10px;margin:5px}#stageVocalDialog::backdrop{background:#000b}
#stageReadingNotice{font:10px/1.4 system-ui;color:#ffd18d;margin:4px 0}#stageStatus{font:10px/1.4 monospace}html:not([lang=ja]) #dialogueText .char{display:inline}html:not([lang=ja]) #dialogueText{overflow-wrap:anywhere;word-break:normal}
#closeup:not([src]),#closeup[src=""]{visibility:hidden!important}.cast-detail,.cast-copy{min-width:0}.expression-record.preview-untranslated::before{grid-column:1/-1}.expression-record .preview-untranslated::before{display:none}
@media(max-width:600px){.cast-copy .expression-record{grid-template-columns:repeat(auto-fit,minmax(44px,1fr))}.bookmark-actions button{padding:6px;font-size:14px}}

.settings-panel{z-index:32000}.settings-panel[hidden]{display:none}.song-controls{flex-wrap:wrap}

/* Translated source lines use natural word wrapping; no per-character Japanese splitting. */
.localized-song-lyric .song-lyric-line{white-space:normal;word-break:normal;overflow-wrap:anywhere;text-wrap:balance}
@media(max-width:700px){.song-overlay .song-copy p.localized-song-lyric{font-size:clamp(18px,5.3vw,27px);line-height:1.3}}
#songLyric.preview-untranslated::before{content:attr(data-preview-missing);display:block;font:10px/1.3 system-ui;color:#ffd18d}

[data-ja-reading-only][hidden]{display:none!important}#languageReadingPolicy{font:12px/1.5 system-ui;padding:8px;overflow-wrap:anywhere}
@media(max-width:700px){.song-overlay:not(.waiting) .song-copy p.localized-song-lyric{font-size:clamp(18px,5.3vw,27px);line-height:1.3}}
html[lang="ko"] .song-overlay:not(.waiting) .song-copy p.localized-song-lyric .song-lyric-line,
html[lang="ko"] .song-overlay:not(.waiting) .song-copy p.localized-song-lyric .song-lyric-accent{word-break:keep-all;overflow-wrap:anywhere}
