/* One small toolbar for every scene. Scene art and hit targets stay together. */
body{margin:0;padding:0;background:#f7f4e9}body .tp-shell{max-width:1200px;margin:auto;padding:12px;position:relative;font-family:ui-rounded,"PingFang SC","Microsoft YaHei",sans-serif;color:#34564b}
.tp-bar{display:flex;align-items:center;gap:14px;margin:0 0 12px;min-height:48px}.tp-home,.tp-actions button{font:inherit;font-size:14px;color:#34564b;border:1px solid #d5dfd2;background:#fffdf4;border-radius:18px;padding:10px 14px;min-height:44px;text-decoration:none;white-space:nowrap;cursor:pointer}.tp-title{font-weight:800;font-size:20px}.tp-actions{margin-left:auto;display:flex;gap:7px}.tp-actions button[aria-expanded=true],.tp-actions button[aria-pressed=true]{background:#dcebd4}.tp-stage{position:relative;margin:auto}.tp-stage #scene-window,.tp-stage #pond-window,.tp-stage #world-window{width:100%;max-width:1100px;min-width:0;margin:auto;border-radius:24px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.tp-stage #scene,.tp-stage #pond,.tp-stage #world{max-height:none}.tp-stage>#scene{width:100%;max-width:1100px;margin:auto}.tp-caption{margin:0 auto;padding:12px;text-align:center;font-size:15px;min-height:44px;color:#456254}.tp-panel{position:absolute;z-index:100;right:12px;top:72px;width:min(390px,calc(100% - 24px));max-height:calc(100dvh - 90px);overflow:auto;padding:20px;background:#fffdf4f5;box-shadow:0 10px 35px #29452c30;border:1px solid #dce3d2;border-radius:24px;backdrop-filter:blur(12px)}.tp-panel[hidden]{display:none!important}.tp-panel p{margin:0 0 16px;font-size:15px}.tp-shortcuts,.tp-settings-controls{display:flex;flex-wrap:wrap;gap:10px}.tp-panel button{position:static;display:flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:96px;min-height:48px;padding:12px;border:1px solid #d5dfd2;border-radius:16px;background:#ecf2df;font:inherit;color:inherit;cursor:pointer}.tp-panel button span{font-size:19px}.tp-panel a{display:inline-block;margin-top:20px;color:inherit;font-size:13px}.tp-panel button:disabled{opacity:.5}.tp-shell :focus-visible{outline:3px solid #397e65;outline-offset:3px}.tp-stage .toys{margin:0 auto}
body.tp-immersive{overflow:hidden}.tp-immersive .tp-shell{max-width:none;position:fixed;inset:0;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:flex;flex-direction:column}.tp-immersive .tp-bar{flex-shrink:0;margin-bottom:4px}.tp-immersive .tp-stage{width:min(100%,calc((100dvh - 105px)*1.5));margin:auto;max-height:calc(100dvh - 60px)}.tp-immersive .tp-stage #scene,.tp-immersive .tp-stage #pond,.tp-immersive .tp-stage #world{min-width:0;width:100%}.tp-immersive .tp-caption{font-size:13px;padding:6px;min-height:30px}.tp-immersive[data-scene=toys] .tp-stage{width:min(100%,1000px);overflow:auto}.tp-immersive[data-scene=toys] .toy{max-height:calc((100dvh - 135px)/2)}
@media(max-width:650px){body .tp-shell{padding:8px}.tp-bar{gap:6px;margin-bottom:8px}.tp-title{font-size:16px}.tp-home,.tp-actions button{font-size:13px;padding:9px 10px}.tp-actions{gap:4px}.tp-panel{top:64px}.tp-stage #scene-window,.tp-stage #pond-window,.tp-stage #world-window{border-radius:20px}}
@media(orientation:landscape){.tp-stage{width:min(100%,calc((100dvh - 125px)*1.5))}.tp-stage #scene,.tp-stage #pond,.tp-stage #world{min-width:0;width:100%}.tp-immersive[data-scene=yard] .tp-stage{width:min(100%,calc((100dvh - 65px)*1.5))}[data-scene=toys] .tp-stage{width:100%}}
@media(max-width:360px){.tp-title{display:none}}
