/* All selectors are scoped; no VR canvas transforms or shared UI redesign. */
.autumn-intro { position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: default; touch-action: none; color: #394f44; isolation: isolate; }
.intro-matte, .intro-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-matte { z-index: 0; }
.intro-depth { position:absolute; inset:0; z-index:-1; background:#dce0ce; pointer-events:none; overflow:hidden; }
.intro-depth-view { width:100%;height:100%;transform-origin:50% 58%;will-change:transform,opacity; }
.intro-skip[hidden] { display:none; }
.intro-gate { --frame-depth: 7px; position: absolute; z-index: 1; box-sizing: border-box; border-radius: 46% 46% 2px 2px / 12% 12% 2px 2px; box-shadow: 0 12px 26px #68726319, 0 2px 5px #716a5217; }
/* Front lip and recessed inner reveal: thin material, not a heavy wooden door. */
.intro-gate::before { content: ''; position: absolute; inset: 0; z-index: 4; border: var(--frame-depth) solid #ded7bc; border-top-color: #e5dec5; border-right-color: #c4b899; border-bottom-color: #c8bca0; border-radius: inherit; box-shadow: inset 0 0 0 1px #fff8de88, 0 0 0 1px #ada58a66; pointer-events: none; }
.intro-gate::after { content: ''; position: absolute; inset: var(--frame-depth); z-index: 4; border: 1px solid #a89e8066; border-radius: 46% 46% 1px 1px / 11.6% 11.6% 1px 1px; box-shadow: inset 4px 2px 9px #655b3c26, inset -2px -1px 5px #fff1c92b; pointer-events: none; }
.intro-recess { position: absolute; inset: 2px; border-radius: inherit; border: var(--frame-depth) solid #bbb196; box-sizing: border-box; }
.intro-doors { position: absolute; inset: var(--frame-depth); border-radius: 46% 46% 1px 1px / 11.6% 11.6% 1px 1px; overflow: hidden; perspective: 1100px; perspective-origin: 50% 50%; }
.intro-door { --hinge-shade: 0; position: absolute; top: 0; width: 50.15%; height: 100%; background: linear-gradient(rgba(95,85,58,var(--hinge-shade)), rgba(95,85,58,var(--hinge-shade))), linear-gradient(105deg, #e1e4d5, #eee8ce 67%, #ded5b6); border: 1px solid #b4a57c66; box-sizing: border-box; backface-visibility: hidden; }
.intro-door-left { left: 0; transform-origin: left center; border-radius: 90% 0 0 0 / 12% 0 0 0; box-shadow: inset 1px 1px 2px #fff8e6b3, inset -3px 0 7px #9c8b5e22, 4px 0 9px #645a3d1c; }
.intro-door-right { right: 0; transform-origin: right center; border-radius: 0 90% 0 0 / 0 12% 0 0; background-color: #e8dfc2; box-shadow: inset -1px 1px 2px #fff8e699, inset 3px 0 6px #9984582b, -3px 0 7px #645a3d14; }
.intro-door::after { content: ''; position: absolute; top: 0; bottom: 0; width: 3px; background: linear-gradient(90deg, #f6edce, #b1a17a); }
.intro-door-left::after { right: 0; }
.intro-door-right::after { left: 0; opacity: .75; }
.intro-door svg { width: 100%; height: 100%; fill: none; stroke: #939e7d; stroke-width: 1; opacity: .52; }
.intro-seam { position: absolute; z-index: 2; top: 1%; left: 50%; height: 99%; width: 1px; background: #fff1c1; box-shadow: 0 0 5px 1px #f4d99b55; opacity: 0; }
.intro-keyhole { position: absolute; z-index: 5; top: 50%; left: 50%; width: 3px; height: 9px; transform: translate(-50%,-50%); border-radius: 50% 50% 20% 20%; background: #918366; box-shadow: -1px 0 1px #6e62452b, 1px 0 1px #fff8de99; }
.intro-key { position: absolute; z-index: 3; height: auto; overflow: visible; transform-origin: 91.8% 50%; filter: drop-shadow(0 -1px 1px #fff8de66) drop-shadow(0 2px 3px #74603b20); }
.intro-rain { z-index: 4; }
.intro-reading { position: absolute; inset: 12% 12px auto; z-index: 5; text-align: center; pointer-events: none; }
.intro-line { position: absolute; left: 0; right: 0; margin: 0; opacity: 0; font: 400 clamp(24px, 2.65vw, 42px)/1.85 'STKaiti', 'KaiTi', 'FangSong', 'Noto Serif CJK SC', serif; letter-spacing: .1em; text-shadow: 0 1px 10px #fbf5e5aa; }
.intro-last { font-size: clamp(23px, 2.3vw, 36px); text-shadow: 0 1px 5px #fff8e6, 0 0 18px #fff8e6, 0 0 30px #fff8e6; }
.intro-skip { position: absolute; z-index: 6; top: max(22px, env(safe-area-inset-top)); right: max(26px, env(safe-area-inset-right)); padding: 6px 10px; border: 1px solid #6b7b671a; border-radius: 20px; background: #eff0df26; color: #667360b3; font: 12.5px/1.4 'Microsoft YaHei', sans-serif; cursor: pointer; outline: none; }
.intro-skip:hover, .autumn-intro[data-keyboard="true"] .intro-skip:focus-visible { background: #f8f5e599; color: #4e6049; outline: 1px solid #87927c88; outline-offset: 3px; }
html.intro-running body { cursor: default; }
html.intro-running body > canvas { pointer-events: none; }
html.intro-running .exploration-panel, html.intro-running .exploration-toast,
html.intro-running .exploration-completion, html.intro-running .hotspot-card,
html.intro-running .hotspot-name, html.intro-running .scene-title { visibility: hidden !important; pointer-events: none !important; }
@media (max-width: 600px) { .intro-reading { top: 15%; } .intro-line { letter-spacing: .025em; } .intro-skip { top: 14px; right: 14px; font-size: 12px; } }
