:root{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#243f3b;background:#f6f8f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}header{height:105px;margin:0 5.4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d9e2dc}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:inherit;font-size:17px;letter-spacing:2px;font-weight:700}.brand-icon{font-size:31px;color:#2b766b}.divider{height:17px;width:1px;background:#bdcdc4;margin:0 7px}.lab,.edition{font-size:10px;letter-spacing:1.8px;font-weight:500;color:#69827a}main{max-width:1440px;margin:auto;display:grid;grid-template-columns:.83fr 1.17fr;align-items:center;padding:54px 5.4% 40px;gap:5%}.intro{padding-bottom:15px}.eyebrow{font-size:12px;letter-spacing:2px;display:flex;align-items:center;gap:10px}.eyebrow span{width:7px;height:7px;border-radius:50%;background:#428e78}h1{font-size:clamp(58px,6.5vw,96px);font-weight:500;letter-spacing:-5px;line-height:1.25;margin:31px 0 26px;position:relative}h1>span{color:#368776}h1 i{font-style:normal;display:inline-block;font-size:44px;vertical-align:top;transform:rotate(15deg);margin:18px 0 0 17px;color:#a9be7f}.description{font-size:17px;color:#75867d;line-height:2;letter-spacing:1px}.intro-bottom{display:flex;gap:15px;align-items:center;margin-top:62px;font-size:12px}.intro-bottom p{line-height:1.9}.intro-bottom small{font-size:8px;letter-spacing:1.3px;color:#86978d}.tiny-orbit{font-size:29px;border:1px solid #cedbd2;border-radius:50%;width:46px;height:46px;display:grid;place-items:center}.stage{height:540px;position:relative;background:radial-gradient(ellipse at 50% 45%,#e5f7f3 20%,#e1f2ec 62%,#dcebe3);border:1px solid #d6e5dc;border-radius:200px 200px 24px 24px;overflow:hidden;isolation:isolate}.stage-caption{position:absolute;top:43px;left:25%;right:25%;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.6px;z-index:4;color:#718d81}.stage-caption b{display:inline-block;width:5px;height:5px;border-radius:50%;background:#59997f;margin-right:5px}.character-area{position:absolute;inset:84px 3% 28px;display:grid;place-items:center;perspective:1000px}.float{width:min(100%,440px);animation:float 5s ease-in-out infinite}.character{display:block;width:100%;padding:0;border:0;background:transparent;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .35s ease-out;mix-blend-mode:multiply;touch-action:manipulation}.character img{width:100%;display:block;mix-blend-mode:multiply;mask-image:radial-gradient(ellipse 51% 49% at 50% 51%,#000 78%,transparent 100%);user-select:none}.character:focus-visible{outline:2px dashed #3f8f78;outline-offset:-30px;border-radius:50%}.speech{position:absolute;top:93px;left:50%;transform:translateX(-50%);width:max-content;max-width:85%;background:#fffdf5;padding:13px 18px;border-radius:15px 15px 15px 3px;font-size:12px;box-shadow:0 6px 25px #426b4d0a;z-index:3;transition:opacity .2s}.speech span{color:#b9ad73;margin-left:14px}.orbit{position:absolute;width:85%;height:46%;border:1px solid #aecabe66;border-radius:50%;top:36%;left:7%;transform:rotate(-25deg);z-index:-1}.orbit-two{transform:rotate(30deg);height:52%;top:27%;border-style:dashed;opacity:.5}.star{position:absolute;color:#80ab97}.star-one{top:31%;left:9%;font-size:34px}.star-two{top:53%;right:8%;font-size:22px;color:#aeb981}.star-three{top:72%;left:15%;font-size:20px}.shadow{position:absolute;width:39%;height:16px;bottom:51px;left:30.5%;background:#518a7450;filter:blur(13px);border-radius:50%;animation:shadow 5s ease-in-out infinite;z-index:-1}.stage-bottom{position:absolute;bottom:22px;left:27px;right:27px;display:flex;justify-content:space-between;font-size:9px;color:#65877a;letter-spacing:1px}.stage-bottom i{display:inline-block;width:5px;height:5px;background:#77a48b;border-radius:50%;margin-right:6px}.controls{display:flex;justify-content:center;gap:10px;margin-top:22px}.controls button{border:1px solid #d8e2d9;background:#fffefa;color:#456457;border-radius:12px;padding:13px 18px;font-size:12px;transition:background .2s,transform .2s}.controls button span{margin-right:7px}.controls button:hover{background:#e4eee3;transform:translateY(-2px)}button:focus-visible,a:focus-visible{outline:2px solid #418874;outline-offset:4px}.controls button.active{background:#326e5c;color:white;border-color:#326e5c}.interaction-note{text-align:center;font-size:10px;color:#8d9b91;margin:20px 0 0;letter-spacing:1px}footer{margin:0 5.4%;padding:24px 0;border-top:1px solid #d9e2dc;display:flex;align-items:center;justify-content:space-between;color:#83958a;font-size:9px;letter-spacing:1.5px}.footer-dot{margin:0 10px;color:#a9b598}#sound{margin-left:20px;background:transparent;border:0;color:#6b8276;font-size:10px}.particles{position:absolute;inset:0;pointer-events:none}.particle{position:absolute;left:50%;top:50%;color:#5c9d84;font-size:25px;animation:spark 1.5s ease-out forwards}.stage[data-mode=hello] .float{animation:hello 1.6s ease-in-out infinite}.stage[data-mode=think] .float{animation:think 3s ease-in-out infinite}.stage[data-mode=happy] .float{animation:happy .9s ease-in-out infinite}.paused *,.paused *::before,.paused *::after{animation-play-state:paused!important}.paused .character{transform:none!important}@keyframes float{50%{transform:translateY(-12px) rotate(1deg)}}@keyframes shadow{50%{transform:scale(.85);opacity:.55}}@keyframes hello{0%,100%{transform:rotate(0)}25%{transform:rotate(-7deg) translateY(-7px)}65%{transform:rotate(7deg) translateY(-7px)}}@keyframes think{50%{transform:rotate(-8deg) translateY(-6px)}}@keyframes happy{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-25px) rotate(4deg)}}@keyframes spark{to{transform:translate(var(--x),var(--y)) rotate(80deg);opacity:0}}@media(min-width:1500px){main{padding-top:80px;padding-bottom:65px}.stage{height:600px}.character-area{top:100px}}@media(max-width:760px){header{height:78px}.edition{display:none}.brand{font-size:14px}.lab{font-size:8px}main{grid-template-columns:1fr;padding-top:32px;gap:20px}.intro{padding:0}.eyebrow{font-size:10px}h1{font-size:56px;letter-spacing:-2px;margin:18px 0}h1 br{display:none}h1 i{font-size:27px;margin:10px 0 0 10px}.description{font-size:13px;line-height:1.8}.description br{display:none}.intro-bottom{display:none}.stage{height:490px;max-width:560px;margin:auto}.character-area{inset:83px 1% 26px}.speech{top:86px}.controls{gap:7px}.controls button{padding:12px 13px;font-size:11px}.controls button span{margin-right:4px}footer{font-size:8px;gap:20px;line-height:1.8}footer>span:last-child{font-size:0}#sound{font-size:10px;margin:0}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.character{transform:none!important}}
@media(max-width:440px){h1{font-size:50px;line-height:1.2}h1 br{display:block}h1>span{white-space:nowrap}h1 i{font-size:24px;margin-left:10px}.stage-bottom{left:17px;right:17px;font-size:8px;letter-spacing:0}.controls button{padding:12px 11px}}

/* The supplied rig owns character motion; the introduction remains the host. */
.motion-frame{position:absolute;inset:128px 5% 42px;width:90%;height:calc(100% - 170px);border:0;z-index:2;color-scheme:light;opacity:0}
.motion-ready .motion-frame{opacity:1}
.motion-ready .character-area{display:none}
.character-area .float{animation:none!important}
.character-area{pointer-events:none}
.shadow{animation:none}
.controls{flex-wrap:wrap}
.controls button:disabled,.action-grid button:disabled{opacity:.45;cursor:wait}
.more-actions{margin:16px auto 0;max-width:560px;border:1px solid #d8e2d9;border-radius:14px;background:#fffefa}
.more-actions summary{padding:14px 18px;cursor:pointer;font-size:12px;color:#456457}
.more-actions summary:focus-visible{outline:2px solid #418874;outline-offset:3px}
.action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 12px 12px}
.action-grid button{padding:11px 5px;border:1px solid #d8e2d9;border-radius:9px;background:#f6f8f4;color:#456457;font-size:11px}
.action-grid button:hover{background:#e4eee3}
.action-grid button.active{background:#326e5c;color:#fff}
@media(max-width:440px){.motion-frame{left:2%;width:96%}.controls{gap:6px}}

.display-controls{text-align:center;margin-top:20px}
#display-mode{border:1px solid #91b5a2;border-radius:24px;background:#326e5c;color:#fff;padding:12px 22px;font-size:12px}
#display-mode:hover{background:#245642}
#display-hint{font-size:12px;color:#65877a;line-height:1.8}
.floating-mode .motion-frame,.floating-mode .controls,.floating-mode .more-actions{display:none}
.floating-mode .character-area{display:grid;opacity:.45}
.floating-mode .speech{visibility:hidden}

/* Action library stays within the character stage as a popover. */
.stage .more-actions{position:absolute;right:18px;top:58px;z-index:8;margin:0;width:auto;max-width:calc(100% - 36px);box-shadow:0 8px 24px #244d3212}
.stage .more-actions summary{padding:10px 15px}
.stage .more-actions[open]{width:320px;background:#fffefa}
.stage .action-grid{max-height:330px;overflow:auto}

.stage{overflow:visible}

/* Fit the introduction and controls within a desktop viewport. */
@media(min-width:761px) and (min-height:560px){
 body{min-height:100svh;display:flex;flex-direction:column}
 header{height:clamp(60px,10svh,90px);flex-shrink:0}
 main{width:100%;flex:1;min-height:0;padding-top:16px;padding-bottom:16px;gap:4%;grid-template-columns:.83fr 1.17fr}
 .stage{height:clamp(300px,calc(100svh - 304px),540px);border-radius:150px 150px 24px 24px}
 .intro{padding-bottom:0}
 h1{font-size:clamp(50px,min(6.5vw,10svh),90px);margin:20px 0}
 .description{font-size:15px;line-height:1.8}
 .intro-bottom{margin-top:clamp(16px,4svh,44px)}
 .stage-caption{top:28px}
 .speech{top:64px;padding:10px 15px}
 .motion-frame{inset:100px 5% 32px;width:90%;height:calc(100% - 132px)}
 .stage-bottom{bottom:16px}
 .stage .more-actions{top:42px;right:16px}
 .stage .action-grid{max-height:calc(100svh - 400px)}
 .character-area{inset:65px 8% 25px}
 .character-area .float{width:min(100%,calc(100svh - 370px))}
 .display-controls{margin-top:12px}
 #display-mode{padding:10px 20px}
 #display-hint{margin:8px 0 0}
 .controls{margin-top:10px}
 .controls button{padding:10px 14px}
 .interaction-note{margin-top:10px}
 footer{padding:14px 0;min-height:48px;flex-shrink:0}
}

/* A quiet mint atmosphere around the explorer. */
:root{background:#d9ebe4}
body{background:radial-gradient(ellipse at 12% 18%,#e9f3ccaa,transparent 43%),radial-gradient(ellipse at 88% 12%,#afdcd6aa,transparent 48%),radial-gradient(ellipse at 65% 92%,#c8cce855,transparent 45%),linear-gradient(135deg,#e5eee0,#d4ebe5 55%,#c8e0df);background-attachment:fixed;isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(circle,#ffffffa8 1px,transparent 2px),radial-gradient(circle,#59958d30 1px,transparent 2px);background-size:113px 127px,173px 157px;background-position:18px 32px,70px 90px}
header,footer{border-color:#9dbcb77a}
.stage{background:radial-gradient(ellipse at 50% 40%,#f0faf299,#d8eee888 62%,#bad9d499);border-color:#a9cac1;box-shadow:0 20px 65px #316b5c0d,inset 0 1px 0 #ffffff88}
.description,.interaction-note,footer{color:#58776b}

/* The portrait remains fitted until the 3D view is ready. */
.stage:not(.motion-ready) .character-area{bottom:50px;container-type:size}
.stage:not(.motion-ready) .character-area .float{width:min(100%,280px);width:min(100%,400px,100cqh);height:auto;aspect-ratio:1}
.stage:not(.motion-ready) .character-area .character img{width:100%;height:100%}
.static-view .motion-frame,.static-view .controls,.static-view .more-actions,.static-view .speech{display:none}
.static-view:not(.floating-mode) .character-area{display:grid;opacity:1}
.motion-frame[hidden]{display:none}
.display-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px}
.display-controls #view-mode{border:1px solid #91b5a2;border-radius:24px;background:#fffefa;color:#326e5c;padding:12px 22px;font-size:12px}
.display-controls #view-mode:hover{background:#e4eee3}
.display-controls #display-hint{flex-basis:100%;margin:0}
