body{margin:0;background:#050b16;color:#eef3ff;font:16px system-ui} [hidden]{display:none!important}#journey{max-width:1280px;margin:auto}header,.actions{display:flex;align-items:center;gap:16px;padding:12px}header label{margin-left:auto}button,select{font:inherit;padding:8px 16px;cursor:pointer}button:disabled{cursor:default}#nodes{padding:16px;background:#142037}#nodes li{margin:12px 0;display:flex;gap:12px;align-items:center;flex-wrap:wrap}#nodes h2{margin-top:0}.scope,#notice{padding:0 16px;font-size:14px;color:#b9cce3}#player{width:100%;height:calc(100dvh - 200px);min-height:520px;border:0;background:black}#notice{white-space:pre-wrap}#opening{margin:6px 16px}#quest{margin:auto}#home .original-inspector{display:none}
#journey{height:100dvh;display:flex;flex-direction:column;box-sizing:border-box}#quest{width:min(100%,calc((100dvh - 190px)*16/9));flex-shrink:0}#nodes{overflow:auto;flex:1;min-height:0}#playback{display:flex;flex-direction:column;flex:1;min-height:0}#player{flex:1;min-height:0;height:100%}header,.actions,.scope,#notice{flex-shrink:0}#notice{max-height:80px;overflow:auto}
#chapter-stories{align-self:flex-start;margin:6px 16px;flex-shrink:0}#quest{width:min(100%,calc((100dvh - 240px)*16/9))}

.presentation-preview{font-size:14px;color:#b9cce3}.presentation-preview summary{cursor:pointer}.presentation-preview p{max-width:40em}
@media(max-width:700px){#journey header{flex-wrap:wrap;gap:8px;padding:8px}#journey header strong{display:none}#journey button,#journey select{min-height:40px;font-size:14px;padding:6px 10px}#nodes{padding:10px}#nodes li{gap:8px}.actions{flex-wrap:wrap;gap:8px}.scope{font-size:12px;padding:0 10px}#notice{font-size:12px;max-height:56px}}
@media(max-height:500px){#journey>.scope{display:none}#journey header,.actions{padding:4px}#notice{max-height:28px}}

/* Safari fallback when viewport/container query units are unavailable. */
#journey{height:100vh;height:100dvh}#home .fgo-boot-home{height:100vh;height:100dvh}
@supports not (width:1cqw){#home .original-stage{width:min(100vw,calc(100vh * 16 / 9));height:min(calc(100vw * 9 / 16),100vh)}}

#quest.scene-assets-loading{visibility:hidden}

.chapter-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0;padding:0 12px}.chapter-actions>button{margin:4px 0!important}
@media(max-height:500px){#quest{width:min(100%,calc((100dvh - 128px)*16/9))}#notice{margin:4px 0;line-height:16px}}
