/* The park is the page. All controls float above the continuous world. */
html:has(#park-app),body:has(#park-app){width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;background:#e3edd5}#park-app{position:fixed;inset:0;width:100%;height:100dvh;overflow:hidden;--glass:rgba(255,253,245,.91);--glass-line:rgba(255,255,249,.9);--float-shadow:0 6px 24px #42533513,0 1px 3px #42533512;background:#e3edd5}.park-main,.playground{position:absolute;inset:0;width:100%;height:100%;margin:0;border:0;border-radius:0;overflow:hidden;box-shadow:none;background:transparent}.viewport{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;touch-action:none;background:radial-gradient(ellipse at 12% 18%,#f0f2d5 0,transparent 48%),linear-gradient(140deg,#e8efd8,#dae8cf 55%,#e8edd9);border:0;border-radius:0}.viewport:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;box-shadow:inset 0 0 100px #91a87512}.park-header{position:absolute;left:28px;right:28px;top:24px;z-index:100;display:flex;justify-content:space-between;align-items:flex-start;gap:15px;pointer-events:none}.park-header>*{pointer-events:auto}.park-brand{display:flex;gap:11px;align-items:center;background:var(--glass);border:1px solid var(--glass-line);border-radius:21px;padding:13px 17px 13px 13px;box-shadow:var(--float-shadow);backdrop-filter:blur(18px)}.park-brand .logo-face{width:38px;height:38px;border-radius:14px;color:#56634b;font-size:25px}.park-brand strong{display:block;font-size:15px;letter-spacing:-.5px;line-height:1.1;font-weight:750;color:#485440}.brand-dot{color:#a38dbd}.park-brand h1{margin:5px 0 0;font-size:11px;font-weight:450;line-height:1.1;letter-spacing:3px;color:#859074}.park-top-tools{display:flex;gap:7px;align-items:center}.park-top-tools>button{background:var(--glass);border:1px solid var(--glass-line);border-radius:14px;min-height:43px;padding:10px 14px;box-shadow:var(--float-shadow);font-size:11px;color:#6c775f;backdrop-filter:blur(18px);transition:background .2s,transform .2s}.park-top-tools>button:hover{background:#fffdf5;transform:translateY(-2px)}.park-top-tools>.guide-open{background:#7a8a66;color:#fffdf6;border-color:#91a07d;padding:10px 19px;font-size:12px}.guide-open>span{font-size:16px;vertical-align:-1px;margin-right:4px}.park-top-tools>.about-open{width:42px;padding:8px 12px;font-size:16px;color:#a095ad}.fortune-invitation{width:auto;margin:0;position:absolute;top:119px;left:28px;z-index:80;gap:12px;border-radius:20px;background:#fff7dfed;border:1px solid #fff9e9;box-shadow:var(--float-shadow);padding:13px 15px;max-width:none;backdrop-filter:blur(12px)}.fortune-invitation .fortune-symbol{font-size:26px;line-height:1;color:#c6a879}.fortune-invitation strong{font-size:12px;color:#8b795d}.fortune-invitation small{font-size:10px;color:#b39d7b;margin-top:1px}.fortune-invitation>span:last-child{font-size:17px;color:#baa484;margin-left:6px}.map-tools{width:auto;margin:0;position:absolute;right:26px;bottom:170px;z-index:80;display:flex;flex-direction:column;gap:4px;background:var(--glass);border:1px solid var(--glass-line);box-shadow:var(--float-shadow);border-radius:18px;padding:7px;backdrop-filter:blur(18px)}.map-tools button{margin:0!important;width:42px;height:40px;min-height:40px;border-radius:12px;padding:0;background:transparent;color:#6e7c5e;font-size:10px;letter-spacing:1px}.map-tools button:hover{background:#e8eddc}.map-tools #zoom-in,.map-tools #zoom-out{font-size:23px;line-height:1;font-weight:350;letter-spacing:0}.tools-divider{height:1px;background:#e4e8db;margin:2px 7px}.cast-dock{position:absolute;left:28px;bottom:28px;z-index:90;display:flex;flex-direction:column;gap:6px;padding:12px 13px 10px;background:var(--glass);border:1px solid var(--glass-line);border-radius:23px;box-shadow:var(--float-shadow);backdrop-filter:blur(20px)}.dock-kicker{font-size:9px;letter-spacing:2px;color:#9aa28c;padding-left:8px;line-height:1.4}.cast{gap:5px;width:auto;flex:none}.cast-choice{padding:5px 9px 5px 5px;min-height:47px;gap:5px;border-radius:15px;transition:background .2s,transform .2s}.cast-choice:hover{transform:translateY(-2px);background:#f0f0e4}.cast-choice[aria-pressed="true"]{background:#e7dfef;border-color:#dacde7}.cast-choice strong{font-size:11px}.cast-choice small{font-size:9px}.portrait{width:34px;height:35px;background:#e7e8d9}.play-panel{position:absolute;right:28px;bottom:28px;z-index:90;display:block;width:min(470px,calc(100% - 470px));min-height:0;padding:13px 15px;background:var(--glass);border:1px solid var(--glass-line);border-radius:22px;box-shadow:var(--float-shadow);backdrop-filter:blur(20px)}.play-copy{max-width:none}.play-copy>summary{display:flex;justify-content:space-between;align-items:center;gap:15px;cursor:pointer;list-style:none;min-height:20px}.play-copy>summary::-webkit-details-marker{display:none}.scene-label{font-size:10px;letter-spacing:.5px;color:#83916f;margin:0}.story-expand{font-size:9px;color:#a5a99b;white-space:nowrap}.play-copy[open] .story-expand{font-size:0}.play-copy[open] .story-expand:after{content:"收起故事⌄";font-size:9px}.play-copy #scene-story{font-size:11px;line-height:1.85;color:#747d68;margin:9px 0 12px;max-height:150px;overflow:auto}.play-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:9px}.play-actions .button{font-size:11px;padding:10px 16px;min-height:39px;border-radius:12px}.primary{background:#7a8968}.primary:hover{background:#687956}.secondary{background:#e9e1f0;color:#8b779c}.map-caption{bottom:141px;z-index:2;width:max-content;background:rgba(250,251,238,.65);backdrop-filter:blur(7px);padding:5px 15px;font-size:9px;color:#8f9b7e;pointer-events:none}.park-progress{position:absolute;left:30px;bottom:123px;z-index:80;display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:.3px;color:#8e9b7c;text-shadow:0 1px #fff9f0}.park-progress .soft-star{margin:0;color:#a897b9;font-size:15px}.park-progress .album-link{padding:4px 0 4px 9px;color:#9b88aa;font-size:9px;border-left:1px solid #a5b2953b}.zone-button{box-shadow:0 3px 12px #6b79400d;background:#fffdf0e8;border-color:#fffff7c9;border-radius:13px;padding:6px 10px;min-height:40px;transition:background .2s,transform .2s;backdrop-filter:blur(5px)}.zone-button span{font-size:11px;font-weight:450;color:#758268}.zone-button i{font-size:8px;color:#9fa98c}.zone-button small{font-size:8px;color:#a6ae97;margin-top:1px}.zone-button:hover,.zone-button.is-target{background:#f2e8f8;border-color:#d9c6e7}.hidden-surprise{background:#ede0f4ed;border:1px solid #fff8ff;color:#9879ab;box-shadow:0 4px 20px #b39bc62b}.actor-talk{font-size:11px;color:#738166;background:#fffdf4f0;border:1px solid #ffffffd9;box-shadow:0 4px 15px #61763f0f;padding:6px 10px}.actor-name{font-size:10px;background:#fffcf0ce;color:#7f8b71;backdrop-filter:blur(5px)}.loading{z-index:120;background:#ecf0ddf5;display:flex;flex-direction:column;font-size:12px;color:#7a8c69;gap:10px}.loading .loading-star{font-size:42px;line-height:1;color:#b4a2c5;animation:none}.sky-decoration{z-index:0;opacity:.45}.cloud-a{top:8%;left:30%}.cloud-b{top:13%;right:22%}.sun{width:70px;height:70px;top:7%;right:12%;filter:blur(1px)}.about-intro{font-size:13px;line-height:1.9;color:var(--muted)}.about-instructions{margin:22px 0;padding:6px 17px;border-radius:16px;background:#f3f4e9}.about-instructions p{font-size:12px;line-height:1.8;color:#90967f}.about-instructions strong{font-weight:500;color:#7e8b6b;display:block;margin-bottom:2px}.about-links{display:flex;gap:25px;font-size:11px;color:#9c8aaa}.guide-dialog{box-shadow:0 25px 100px #42533530}dialog::backdrop{background:#35462b33;backdrop-filter:blur(8px)}
#park-app[data-sky="night"]{--glass:rgba(44,54,63,.89);--glass-line:rgba(181,193,177,.16);--float-shadow:0 8px 30px #17202422}#park-app[data-sky="night"] .viewport{background:radial-gradient(ellipse at 80% 8%,#53686c,transparent 55%),#2d4447}#park-app[data-sky="night"] .park-brand strong{color:#ebe9d7}#park-app[data-sky="night"] .park-brand h1,#park-app[data-sky="night"] .logo-face{color:#c6cdb4}#park-app[data-sky="night"] .park-top-tools>button{color:#d1d5bf}#park-app[data-sky="night"] .park-top-tools>.guide-open{background:#7d8d70}#park-app[data-sky="night"] .map-tools button{background:transparent;color:#c2cdb1}#park-app[data-sky="night"] .map-tools button:hover{background:#53614f}#park-app[data-sky="night"] .fortune-invitation{background:#4f4b42e6;border-color:#746b543a}#park-app[data-sky="night"] .fortune-invitation strong{color:#ddceab}#park-app[data-sky="night"] .fortune-invitation small{color:#b4aa8e}#park-app[data-sky="night"] .play-copy #scene-story{color:#c9ceb9}#park-app[data-sky="night"] .scene-label{color:#c4cdae}#park-app[data-sky="night"] .park-progress{color:#bdc6ab;text-shadow:none}#park-app[data-sky="night"] .about-instructions{background:#414e47}#park-app[data-sky="night"] .about-instructions p{color:#bdc6ab}#park-app[data-sky="night"] .about-instructions strong{color:#d2dac5}
@media(min-width:1650px){.park-header{left:38px;right:38px;top:30px}.cast-dock{left:38px;bottom:35px}.play-panel{right:38px;bottom:35px}.park-progress{left:40px;bottom:133px}.fortune-invitation{left:38px;top:130px}.map-tools{right:36px;bottom:180px}}
@media(max-width:900px){.park-header{left:18px;right:18px;top:18px}.park-brand{padding:10px 13px 10px 10px;border-radius:18px}.park-top-tools{gap:5px}.park-top-tools>button{padding:9px 10px}.park-top-tools>.guide-open{padding:9px 13px}.fortune-invitation{left:18px;top:108px;padding:11px 13px}.cast-dock{left:18px;bottom:18px;padding:9px}.dock-kicker{display:none}.cast{gap:3px}.cast-choice{gap:3px;padding:4px 7px 4px 3px}.play-panel{right:18px;bottom:18px;width:calc(100% - 420px);padding:11px 12px;min-width:300px}.play-actions .button{padding:9px 12px;font-size:10px}.park-progress{left:21px;bottom:92px}.map-tools{right:18px;bottom:145px}.map-caption{bottom:115px}.scene-label{font-size:9px}}
@media(max-width:700px){.park-header{left:12px;right:12px;top:max(12px,env(safe-area-inset-top));gap:8px;align-items:center}.park-brand{gap:7px;padding:9px 11px 9px 9px;border-radius:17px}.park-brand .logo-face{width:30px;height:30px;font-size:22px;border-radius:11px}.park-brand strong{font-size:13px}.park-brand h1{font-size:9px;letter-spacing:2px;margin-top:5px}.park-top-tools{gap:5px}.park-top-tools>button{height:38px;min-height:38px;border-radius:13px;padding:7px 10px}.park-top-tools>.guide-open{font-size:10px;padding:7px 11px}.guide-open>span{display:none}#sky-toggle,#sound-toggle{width:36px;font-size:0;padding:7px 0}#sky-toggle:after{content:"☾";font-size:20px;line-height:1}#park-app[data-sky="night"] #sky-toggle:after{content:"☀";font-size:18px}#sound-toggle:after{content:"♪";font-size:18px;color:#a5ad94}#sound-toggle[aria-pressed="true"]:after{color:#6d8d52}.park-top-tools>.about-open{display:none}.fortune-invitation{left:13px;top:89px;padding:10px 12px;gap:8px;border-radius:16px}.fortune-invitation .fortune-symbol{font-size:22px}.fortune-invitation strong{font-size:10px}.fortune-invitation small{font-size:8px}.fortune-invitation>span:last-child{font-size:13px;margin-left:2px}.cast-dock{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));padding:7px 8px;border-radius:20px;display:block}.cast{width:100%;justify-content:space-between;gap:2px}.cast-choice{min-height:43px;gap:4px;padding:4px 8px 4px 3px}.cast-choice strong{font-size:10px}.cast-choice small{font-size:8px}.portrait{width:30px;height:33px}.play-panel{left:12px;right:12px;bottom:83px;width:auto;min-width:0;padding:10px 12px;border-radius:19px}.play-copy>summary{min-height:15px}.scene-label{font-size:9px;letter-spacing:.2px}.story-expand{font-size:8px}.play-copy[open] .story-expand:after{font-size:8px}.play-copy #scene-story{font-size:10px;line-height:1.8;margin-top:8px;max-height:105px}.play-actions{margin-top:8px;gap:7px}.play-actions .button{font-size:10px;min-height:35px;padding:8px 13px;border-radius:11px}.park-progress{left:16px;bottom:171px;gap:5px;font-size:8px;max-width:calc(100% - 100px);flex-wrap:wrap}.park-progress .soft-star{font-size:13px}.park-progress .album-link{font-size:8px;padding-left:7px}.map-tools{right:12px;bottom:194px;padding:5px;border-radius:16px;gap:2px}.map-tools button{width:34px;min-height:34px;height:34px;font-size:9px}.map-tools #zoom-in,.map-tools #zoom-out{font-size:21px}.map-caption{bottom:auto;top:143px;font-size:8px;padding:4px 11px;left:12px;right:auto;max-width:calc(100% - 26px);margin:0}.guide-dialog{padding:27px 19px}.guide-card{min-height:95px}.zone-button small{display:none}.zone-button{min-height:31px;padding:6px 9px;border-radius:11px}.zone-button span{font-size:10px}.actor-talk{font-size:10px;max-width:160px;white-space:normal;text-align:center}.actor-name{font-size:9px}.loading{font-size:11px}}
@media(max-width:355px){.park-header{gap:5px}.park-brand{padding:8px 9px 8px 8px;gap:5px}.park-brand strong{font-size:12px}.park-brand .logo-face{width:27px;height:28px}.park-brand h1{font-size:8px;letter-spacing:1.5px}.park-top-tools{gap:4px}.park-top-tools>.guide-open{padding-left:8px;padding-right:8px}#sky-toggle,#sound-toggle{width:31px}.cast-choice{padding-right:5px;gap:3px}.portrait{width:27px}.cast-choice strong{font-size:9px}.play-actions .button{font-size:9px}.park-progress{font-size:7px}}
@media(max-height:520px) and (min-width:701px){.park-header{top:12px}.park-brand{padding:8px 12px}.fortune-invitation{top:90px}.cast-dock{bottom:12px}.play-panel{bottom:12px}.park-progress{bottom:85px}.map-tools{bottom:130px}.map-caption{display:none}.dock-kicker{display:none}}
/* Individual translations preserve each animal's SVG placement. */
@keyframes animal-hop{50%{translate:0 -6px}}
#park-app[data-sky="night"] .park-land-layer{filter:brightness(.62) saturate(.74)}
@media(max-width:700px){.park-top-tools>.about-open{display:block;position:fixed;right:12px;top:137px;width:28px;height:28px;min-height:28px;padding:0;font-size:12px;border-radius:10px}}
#park-app[data-sky="night"] .terrain{filter:brightness(.64) saturate(.72)}
#park-app:has(#story-details[open]) .park-progress{opacity:0;pointer-events:none}
/* Sharp character surfaces with grounded volume; selection never blurs the face. */
.actor,.actor-art{will-change:auto}.actor-art{overflow:hidden;animation:none!important;transition:none;filter:none!important;isolation:isolate}.actor-image{position:absolute;display:block;max-width:none;pointer-events:none;user-select:none;-webkit-user-drag:none;image-rendering:auto}.actor:not([data-render="refined"]) .actor-image{display:none}.actor.is-selected .actor-art{filter:none!important}.actor-shadow{bottom:-5px;height:11px;background:radial-gradient(ellipse,#52634439 0,#5263441c 43%,#52634400 75%);filter:none;transform:translateX(-50%);transition:opacity .2s;z-index:-1}.actor-shadow:after{content:"";position:absolute;left:29%;right:29%;top:3px;height:4px;background:#53634636;border-radius:50%}.actor.is-selected .actor-shadow:before{content:"";position:absolute;inset:-4px -7px;border:1.2px solid #ab91c18c;border-radius:50%;transform:rotateX(40deg)}.actor.is-walking .actor-shadow{animation:foot-contact .4s ease-in-out infinite alternate}.actor.is-dragging{filter:none}.actor.is-dragging .actor-art{translate:0 -9px}.actor.is-dragging .actor-shadow{opacity:0}.actor[data-render="refined"] .actor-art{transform-origin:50% 100%}.actor[data-render="refined"][data-state="idle"]:not(.is-reacting) .actor-art{animation:quiet-breath 3.6s ease-in-out infinite!important}.actor[data-render="refined"].is-walking .actor-art{animation:none!important}.actor-name{background:#fffdf0ab;border:1px solid #fffef8c7;font-size:10px;padding:1px 7px}.actor.is-selected .actor-name{background:#ece2f2ed;color:#8c73a0}.actor-talk{box-shadow:0 4px 16px #61763f0f}#park-app[data-sky="night"] .actor-shadow{background:radial-gradient(ellipse,#182e385c 0,#182e382a 45%,transparent 76%)}
@keyframes quiet-breath{0%,100%{scale:1 1}50%{scale:1.004 1.008;translate:0 -.35px}}@keyframes foot-contact{from{scale:.92 .92;opacity:.75}to{scale:1.05 1;opacity:1}}
@media(prefers-reduced-motion:reduce){.actor[data-render="refined"] .actor-art,.actor.is-walking .actor-shadow{animation:none!important}}

.actor-mesh{position:absolute;display:none;pointer-events:none;max-width:none}.actor[data-mesh="true"] .actor-image{visibility:hidden}.actor[data-mesh="true"] .actor-mesh{display:block}.actor[data-mesh="true"] .actor-art{overflow:visible;animation:none!important}.actor[data-mesh="true"][data-state="idle"] .actor-art{animation:none!important}
