.native-actors{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:2}.native-stand{position:absolute;display:block;height:94%;width:auto;bottom:calc(-8% + var(--actor-height,0%));transform:translateX(-50%) scale(var(--actor-scale,1));transform-origin:50% 65%;filter:brightness(.82) saturate(.85);transition:left .4s ease,transform .4s ease,filter .25s ease;isolation:isolate}.native-stand.is-speaking{filter:brightness(1) saturate(1);z-index:2}.native-body{display:block;width:100%;height:100%;object-fit:contain}.native-face{position:absolute;object-fit:fill;pointer-events:none}.native-scene .stage-atmosphere{opacity:.18}.native-scene .scene-background{filter:none}.native-scene-note{position:absolute;top:60px;left:25px;z-index:4;border-radius:20px;background:#14221b9c;color:#f9f7ef;font-size:10px;padding:6px 11px;max-width:calc(100% - 50px)}.native-scene .dialogue-panel{z-index:5;background:linear-gradient(120deg,#11251df0,#19372aeb);backdrop-filter:blur(14px);border:1px solid #e7d6a64a;box-shadow:0 12px 40px #0004}.native-scene .dialogue-panel p{color:#fff7e7}.native-scene .speaker{color:#e9d6a2}.native-scene .dialogue-hint{color:#e9d6a2}.native-scene .vn-controls{z-index:6}.native-scene .vn-top{z-index:6}.cover.has-stand{height:230px}.cover.has-stand>.cover-portrait,.cover.has-stand>.cover-letter,.cover.has-stand>.cover-ring{display:none}.cover-stand{position:absolute;display:block;bottom:-7px;height:93%;max-width:100%;filter:drop-shadow(0 7px 12px #1a3f3522)}.cover-stand .native-body{object-fit:fill}.game-background-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px;max-height:55vh;overflow:auto;padding:5px}.background-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:7px;font-size:11px;min-height:80px;background:var(--bg)}.background-choice img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:5px}.native-toggle{display:flex;gap:10px;align-items:center;margin:14px 0;font-size:13px}.native-toggle input{accent-color:var(--accent)}#openGameArt{margin-top:18px}#gameArtDialog{max-width:760px;width:94vw}
@media(max-width:700px){.native-stand{height:81%;bottom:4%;transform-origin:50% 75%}.native-scene-note{left:14px;top:53px;font-size:8px;max-width:calc(100% - 28px)}.native-scene .dialogue-panel{bottom:63px;max-height:49%;min-height:165px}.cover.has-stand{height:205px}.game-background-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.native-stand{transition:none}}

.native-badge{display:inline-block;border:1px solid var(--line);border-radius:9px;padding:1px 6px;font:9px/1.5 'Abyss Sans',sans-serif;letter-spacing:normal;color:var(--muted);margin-left:8px;vertical-align:middle;white-space:nowrap}

.vn-stage.pending-stage-background{background:#18241f}.pending-stage-background .scene-background{background:linear-gradient(135deg,#15291f,#263b30)}.pending-stage-background .stage-atmosphere{display:none}
@media(max-width:700px){.native-actors[data-count="2"] .native-stand{height:72%;bottom:12%}.native-actors[data-count="3"] .native-stand,.native-actors[data-count="4"] .native-stand{height:62%;bottom:21%}}

.auto-scene-background{margin-left:auto;margin-right:12px;border:1px solid #e9d6a26b;cursor:pointer;font-size:10px}@media(max-width:700px){.auto-scene-background{font-size:8px;padding:5px 7px;margin-right:7px}}

.vn-stage.source-empty-background{background:#18241f}.source-empty-background .scene-background{background:#18241f}.source-empty-background .stage-atmosphere{display:none}

.native-world{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}.native-world canvas{display:block;width:100%;height:100%}.native-layer{position:absolute;pointer-events:none;object-fit:fill}.vn-stage[data-world-state="ready"] .stage-atmosphere{display:none}

.native-actors[data-focused="false"] .native-stand{filter:brightness(.92) saturate(.98)}.native-actors[data-focused="true"] .native-stand:not(.is-speaking){filter:brightness(.78) saturate(.9)}.native-actors[data-focused="true"] .native-stand.is-speaking{filter:brightness(1) saturate(1)}
/* Shared face framing keeps padded sprite canvases at a consistent visual scale.
   Story-specified zoom and movement still apply via actor-scale/actor-height. */
.native-actors{--vn-head-size:.085;--vn-head-line:.29}
.native-actors .native-stand{height:calc(var(--vn-head-size)/var(--face-height,.1)*100%);top:calc((var(--vn-head-line) - var(--face-y,.2)*var(--vn-head-size)/var(--face-height,.1))*100% - var(--actor-height,0%));bottom:auto;transform:translateX(calc(var(--face-x,.5)*-100%)) scale(var(--actor-scale,1));transform-origin:calc(var(--face-x,.5)*100%) calc(var(--face-y,.2)*100%)}
.native-stand:not(.images-ready),.cover-stand:not(.images-ready){visibility:hidden}
@media(max-width:700px){.native-actors{--vn-head-size:.1;--vn-head-line:.25}}
/* Compose sprites as one image so automatic browser night modes cannot invert faces alone. */
.native-stand.has-composite>img,.cover-stand.has-composite>img{visibility:hidden!important}
.native-stand>.actor-composite,.cover-stand>.actor-composite{position:absolute;display:block;pointer-events:none}

/* Pilot: source body rectangle and root/zoom pivot, not equal-sized face boxes. */
.native-pilot .native-actors .native-stand{transform:none;transform-origin:0 0;transition:none;z-index:auto}
.native-pilot .stage-atmosphere{display:none}
.native-pilot .native-actors[data-focused="false"] .native-stand{filter:none}
.native-pilot .native-actors[data-focused="true"] .native-stand:not(.is-speaking){filter:brightness(.7098039215686275)}
.native-pilot .native-actors[data-focused="true"] .native-stand.is-speaking{filter:none}

.vn-stage.native-pilot{background:#000}

.scene-loading{position:absolute;top:95px;left:25px;z-index:8;padding:7px 12px;border-radius:16px;background:#000b;color:#fff;font:12px/1.4 'Abyss Sans',sans-serif;pointer-events:none}

.sound-button{margin-left:auto;color:#fff}.sound-button .mute-slash{display:none}.sound-button.is-muted .mute-slash{display:block}

.voice-button{color:#fff}.voice-button .mute-slash{display:none}.voice-button.is-muted .mute-slash{display:block}

.bgm-button{color:#fff}.bgm-button .mute-slash{display:none}.bgm-button.is-muted .mute-slash{display:block}

.quick-audio-button{color:#fff}.quick-audio{position:absolute;right:18px;top:68px;z-index:12;width:min(310px,calc(100% - 24px));padding:14px 18px 18px;border:1px solid #e8d39c55;border-radius:14px;background:#10261ff5;color:#fff7e7;box-shadow:0 12px 40px #0006;backdrop-filter:blur(16px)}.quick-audio[hidden]{display:none}.quick-audio-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.quick-audio-heading strong{font-size:15px}.quick-audio-heading button{font-size:24px;color:inherit}.quick-audio-channel{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:14px;font:13px var(--font-ui,system-ui)}.quick-audio-channel label{display:flex;align-items:center;gap:8px}.quick-audio-channel input[type=range]{grid-column:1/-1;width:100%;min-height:24px;accent-color:#e0c685;margin:0}.quick-audio-channel input[type=checkbox]{accent-color:#e0c685}.quick-audio-channel output{font-variant-numeric:tabular-nums;color:#e0c685}.hud-hidden .quick-audio,.hud-hidden #audioMixerBtn{display:none}@media(max-width:600px){.quick-audio{right:12px;top:62px}.quick-audio-button{flex-shrink:0}}
