@import url("theme-stage.css");
html:not([data-scene-state]) body,html[data-scene-state="loading"] body{visibility:hidden}
html[data-scene-state="splash"],html[data-scene-state="intro"]{scroll-behavior:auto}
#stage{--bg:#06060e}
html[data-theme="light"] #stage{--bg:#f4f4f8}
.scene-page{position:relative;z-index:2;opacity:0;transition:opacity .6s cubic-bezier(.16,1,.3,1)}
body.content-in .scene-page{opacity:1}
html:not([data-scene-state="background"]) .scene-page{visibility:hidden}
html[data-scene-state="background"] .scene-page{visibility:visible}
html[data-scene-state="background"] #stage{transition:opacity .65s ease,filter .8s ease}
html[data-scene-state="background"] #stage .stage-tiles{transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
html[data-scene-paused="true"] #stage .stage-row,html[data-scene-paused="true"] #stage:before{animation-play-state:paused!important}
html[data-scene-state="background"] .image-world{display:none!important}
#sceneStatus:empty{display:none}
#sceneStatus{position:fixed;bottom:14px;left:14px;z-index:1100;max-width:calc(100vw - 28px);padding:10px 14px;background:#171621;color:#eee5d5;font:12px/1.6 "Microsoft YaHei",sans-serif}
@media(prefers-reduced-motion:reduce){#stage .stage-row{animation-play-state:paused!important}.scene-page,html[data-scene-state="background"] #stage,html[data-scene-state="background"] #stage .stage-tiles{transition:none!important}}
/* Match the original application's reset inside accepted splash templates only. */
.splash,.splash *,.splash *:before,.splash *:after{margin:0;padding:0;box-sizing:border-box}
.splash{line-height:1.6;-webkit-font-smoothing:antialiased}

/* Shared tools follow the entry lifecycle and stay outside each theme's layout. */
:root{--tool-bg:#171621;--tool-fg:#eee5d5;--tool-line:#403943;--tool-accent:#b7a178}
html[data-theme="light"]{--tool-bg:#eee5d5;--tool-fg:#302b32;--tool-line:#c8bdad}
html[data-reference-theme="editorial"]{--tool-bg:var(--paper);--tool-fg:var(--ink);--tool-line:var(--line);--tool-accent:var(--blue)}
html[data-reference-theme="ink"]{--tool-bg:var(--paper,#e8e8df);--tool-fg:var(--ink,#303d37);--tool-line:var(--line,#90998e);--tool-accent:var(--accent,#547566)}
html[data-reference-theme="tide"]{--tool-bg:var(--panel,#edf8f4e8);--tool-fg:var(--paper,#153e4d);--tool-line:var(--card-edge,#ffffffb0);--tool-accent:var(--accent,#205a6b)}
#siteTools,#siteBottomTools{position:fixed;z-index:90;display:flex;gap:8px;color:var(--tool-fg);font-family:"Microsoft YaHei",sans-serif}
#siteTools{right:max(16px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top));flex-direction:column}
#siteBottomTools{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));flex-direction:column-reverse}
#siteTools .site-tool,#siteBottomTools .site-tool{box-sizing:border-box;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--tool-line);border-radius:8px;background:var(--tool-bg);color:var(--tool-fg);text-decoration:none;cursor:pointer;box-shadow:0 3px 12px #0000000d;transition:border-color .18s,background .18s}
#siteTools .site-tool[hidden],#siteBottomTools .site-tool[hidden]{display:none!important}
#siteTools .site-tool:disabled{opacity:.45;cursor:default}
#siteTools .site-tool:hover,#siteBottomTools .site-tool:hover{border-color:var(--tool-accent)}
#siteTools .site-tool:focus-visible,#siteBottomTools .site-tool:focus-visible{outline:2px solid var(--tool-accent);outline-offset:3px}
#siteTools .site-tool:active,#siteBottomTools .site-tool:active{translate:0 1px}
.site-tool svg{width:20px;height:20px;pointer-events:none}
#heroMuteBtn [data-sound-on],#heroMuteBtn.unmuted [data-sound-off]{display:none}
#heroMuteBtn.unmuted [data-sound-on]{display:block}
.site-scroll-progress{position:fixed;z-index:91;inset:0 0 auto;height:2px;background:var(--tool-accent);transform:scaleX(0);transform-origin:left;pointer-events:none}
.scene-page :is(.masthead,.site-header){padding-right:112px}
.scene-page{padding-bottom:72px}
.scene-page [data-media-play],.scene-page [data-media-retry]{min-height:44px;min-width:44px;font-size:13px}
.scene-page .landscape figcaption button{border:0;background:none;color:inherit;padding:0 8px;cursor:pointer}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-new(root){z-index:1}
html.theme-switching .scene-page{transition:none}
@media(min-width:761px){html[data-reference-theme="editorial"] #searchDock{max-width:calc(100% - 144px)}}
@media(max-width:760px){
  .scene-page footer{flex-wrap:wrap}
  .scene-page .site-footer-clock{display:block;width:100%;margin:12px 0 0;font-size:13px;opacity:.75}
  #siteTools{top:max(6px,env(safe-area-inset-top));gap:6px;right:12px;flex-direction:row}
  #siteBottomTools{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}
  html[data-reference-theme]{--site-tools-height:calc(max(6px,env(safe-area-inset-top)) + 50px)}
  html[data-tools-docked="true"] #siteTools{box-sizing:border-box;top:0;left:0;right:0;justify-content:flex-end;padding:max(6px,env(safe-area-inset-top)) 12px 5px;min-height:var(--site-tools-height);background:color-mix(in srgb,var(--tool-bg) 96%,transparent);border-bottom:1px solid var(--tool-line);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  #siteBottomTools:empty{display:none}
  html[data-reference-theme="cinema"] .search.is-docked{top:calc(var(--site-tools-height) + 8px)}
  html[data-reference-theme="cinema"] .search.is-docked::before{height:calc(var(--site-tools-height) + 96px)}
  html[data-reference-theme="editorial"] #searchDock,html[data-reference-theme="ink"] #searchDock{top:calc(var(--site-tools-height) + 8px)}
  .scene-page :is(.masthead,.site-header){padding-right:108px;min-height:56px}
  html[data-reference-theme]{scroll-padding-top:0}
  .scene-page :is(.category,.chapter,.category-section),html[data-reference-theme="cinema"] #emptyState{scroll-margin-top:calc(var(--site-tools-height) + 96px)}
}
@media(prefers-reduced-motion:reduce){#siteTools .site-tool,#siteBottomTools .site-tool{transition:none}}

.nav-modal-meta { grid-column: 1 / -1; min-width: 0; margin: 0 0 12px; color: var(--muted, var(--text-3, inherit)); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.nav-modal-meta:empty { display: none; }
.nav-modal-address, #navModal .nav-modal-address { min-width: 0; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
textarea.nav-modal-address { resize: vertical; }
textarea.nav-modal-url.nav-modal-address[hidden] { display: none; }
textarea.nav-modal-url.nav-modal-address { display: block; width: 100%; min-height: 4.8em; max-height: 30vh; overflow: auto; font-family: inherit; line-height: 1.6; }
#navModalStatus { grid-column: 1 / -1; min-height: 1.7em; margin: 12px 0 16px; color: var(--muted, var(--text-3, inherit)); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
