*{box-sizing:border-box}body{margin:0;background:#f3f4f5;color:#343c49;font:14px -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif}button,select,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #7889bb;outline-offset:3px}button{border:1px solid #dfe2e6;border-radius:9px;background:#fff;padding:8px 13px}button:hover{background:#f6f7fa}button[aria-pressed=true]{background:#e7eaf0;border-color:#c6cdd9;color:#27334c}.review-header{height:55px;max-width:1440px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between}.review-header strong{font-weight:550;letter-spacing:-.3px}.review-header strong span{font-weight:400;color:#88909b;margin-left:7px}.review-header>div{display:flex;gap:8px}.variants{display:flex;gap:9px;max-width:940px;margin:4px auto 18px;padding:0 18px}.variants button{flex:1;text-align:left;padding:11px 16px;background:#fafafa;border-radius:12px}.variants b{font-weight:500;color:#7b8594}.variants b span{margin-left:12px;color:#343c49}.variants small{display:block;margin-top:5px;padding-left:25px;color:#707987;font-size:12px}#review{margin:auto;padding:0 20px}#viewport{position:relative;background:#fff;overflow:hidden;aspect-ratio:4/3;width:min(100%,calc((100vh - 305px)*4/3));margin:auto;box-shadow:0 1px 4px #26344709}#stage{position:absolute;left:0;top:0;width:960px;height:720px;transform-origin:0 0;background:#fff;overflow:hidden;color:#364050;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased}#loading{position:absolute;inset:0;display:grid;place-content:center;background:white}#loading[hidden]{display:none}#lineup{position:absolute;inset:0;pointer-events:none}.guest{position:absolute;width:170px;height:330px;transform-origin:50% 100%;will-change:transform,filter,opacity}.guest img{width:100%;height:100%;object-fit:contain;object-position:center bottom}.new-badge{position:absolute;left:50%;bottom:-40px;transform:translateX(-50%);font-size:19px;font-weight:500;letter-spacing:.2px;border:1px solid #e3e7ed;background:#f8f9fbd9;box-shadow:0 7px 24px #4b648c0a;border-radius:30px;padding:7px 16px;color:#5b6576}.new-badge[hidden]{display:none}#camera{position:absolute;left:300px;top:165px;width:360px;height:360px;overflow:hidden;opacity:0;border-radius:24px;background:#e9ebed;box-shadow:0 16px 45px #2b3c5810;transform-origin:center;will-change:left,top,width,height}#camera>img{width:100%;height:100%;object-fit:cover;object-position:55% 50%;display:block}.camera-wash{position:absolute;inset:0;background:#eff2f80d}#body-guide{position:absolute;left:8%;top:7%;height:93%;width:84%;fill:none;stroke:#ffffffe6;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 3px #16243840)}#side-warning{position:absolute;inset:4% 5% 4% auto;width:4px;border-radius:4px;background:#ae4c4c;opacity:0;box-shadow:0 0 20px #b9565660}#pose-guide{position:absolute;inset:7% 9%;border:3px solid #ffffffd9;border-radius:14px;opacity:0;box-shadow:0 0 0 200px #17213129}#countdown{position:absolute;inset:0;display:grid;place-content:center;font-size:140px;font-weight:450;color:white;text-shadow:0 4px 45px #151d3850;font-variant-numeric:tabular-nums}#flash{position:absolute;inset:0;background:white;opacity:0}#creation{position:absolute;inset:0;width:960px;height:720px;opacity:0;pointer-events:none}#hero{position:absolute;width:370px;height:540px;left:295px;top:52px;opacity:0;will-change:transform,opacity}#character{width:100%;height:100%;object-fit:contain}#prompt{position:absolute;left:50%;top:566px;transform:translateX(-50%);display:flex;gap:17px;align-items:center;justify-content:center;max-width:820px;min-height:73px;padding:18px 29px;border:1px solid #e8ebf0;border-radius:50px;background:linear-gradient(140deg,#ffffffed,#f5f7f9d9);box-shadow:0 15px 50px #7186a312,inset 0 1px 0 #fff;backdrop-filter:blur(18px);font-size:29px;line-height:1.25;letter-spacing:-.45px;font-weight:450;white-space:nowrap;overflow:hidden;opacity:0}#prompt-icon{display:flex;align-items:center;font-size:31px}#prompt-icon:empty{display:none}#hold-track{position:absolute;bottom:0;left:0;width:100%;height:3px;background:transparent}#hold-track i{display:block;background:#608575;width:0;height:100%}#stage[data-phase=ready] #body-guide{stroke:#77a58c}#stage[data-phase=idle] #prompt{top:105px;font-size:30px}#stage[data-phase=pose] #prompt,#stage[data-phase=retry] #prompt{top:588px}#stage[data-phase=result] #prompt{top:615px;font-size:26px;min-height:60px;padding:14px 24px}#stage[data-phase=crowded] #side-warning{opacity:1}#stage[data-phase=crowded] #body-guide{stroke:#fff}#stage[data-phase=error] #prompt{white-space:normal;text-align:center;width:640px}#stage[data-phase=return] #prompt{top:105px}#comparisons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:1500px;margin:6vh auto}#comparisons[hidden]{display:none}.comparison h2{font-size:15px;font-weight:500}.comparison iframe{border:0;width:100%;aspect-ratio:4/3;background:white}.review-controls{max-width:1120px;margin:17px auto 0;padding:0 18px 14px}#phases{display:flex;gap:5px;justify-content:center;flex-wrap:wrap}#phases button{border:0;background:transparent;padding:6px 11px;color:#74808f;font-size:13px}#phases button[aria-pressed=true]{background:#e1e6ed;color:#344156}.playback,.scenarios{display:flex;align-items:center;gap:11px;justify-content:center;margin-top:12px}.playback button,.scenarios button{font-size:12px;padding:6px 11px}.playback label,.scenarios label{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:12px;color:#6e7886}#seek{width:185px;accent-color:#7e8da3}#time{width:43px;font-size:12px;color:#7b8593;font-variant-numeric:tabular-nums}select{background:#fafbfc;border:1px solid #dce1e7;border-radius:5px;padding:3px;color:#596675}#study-note{font-size:11px;text-align:center;color:#7b8492;margin:12px 0 0}body.focus{background:#fff}body.focus .review-header,body.focus .variants,body.focus .review-controls{display:none}body.focus #review{height:100vh;padding:0;display:grid;place-items:center}body.focus #viewport{width:min(100vw,calc(100vh*4/3));box-shadow:none}body.focus #comparisons{margin:0}body.embed #viewport{width:100vw;height:100vh;aspect-ratio:auto}body.embed #review{display:block}body.compare #viewport{display:none}body.compare .review-controls{margin-top:30px}@media(max-width:750px){.variants{gap:5px}.variants button{padding:9px}.variants small{display:none}.variants b span{margin-left:3px}.review-header{padding:0 16px}#viewport{width:100%}.playback,.scenarios{flex-wrap:wrap}#comparisons{grid-template-columns:1fr;margin:10px auto}.review-controls{margin-top:12px}}
/* Keep posing guidance below the full-width photo. */
#stage[data-phase=pose] #prompt,#stage[data-phase=retry] #prompt{top:644px;min-height:60px;padding:13px 25px;font-size:27px}
/* The preferred floating direction: readable over the lower camera, clear of the face. */
#stage[data-variant=floating]:is([data-phase=invitation],[data-phase=ready],[data-phase=crowded]) #prompt{top:465px;min-height:82px;padding:20px 30px;background:#fffffff5;color:#253043;border:1px solid #d1d7df;box-shadow:0 8px 28px #17243a2b;font-size:34px;font-weight:550;overflow:visible}
#body-guide{left:0;top:0;width:100%;height:100%;filter:none}
#pose-guide{inset:3.5% 20% 3%;border-radius:0;border:3px solid #ffffffe6;box-shadow:0 0 0 1000px #0000007a}
#side-warning{display:none}
#countdown{font-weight:550;will-change:transform,filter,opacity}
#hold-ring{display:none;width:64px;height:64px;flex:none;margin:-11px 0 -11px -10px;overflow:visible;transform:rotate(-90deg)}
#hold-ring circle{fill:none;stroke:#dce5df;stroke-width:5}
#hold-ring circle+circle{stroke:#347655;stroke-width:6;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--progress,0))}
#stage[data-phase=ready][data-progress=ring] #hold-ring{display:block}
#stage[data-phase=ready][data-progress=ring] #prompt-icon{position:absolute;left:30px;font-size:29px}
#stage[data-phase=ready][data-progress=ring] #hold-track{display:none}
#camera-progress{position:absolute;left:0;bottom:0;width:100%;height:10px;background:#ffffffb8;display:none}
#camera-progress i{display:block;height:100%;background:#347655}
#stage[data-phase=ready][data-progress=camera] #camera-progress{display:block}
#stage[data-progress=camera] #hold-track{display:none}
#stage[data-phase=ready][data-progress=prompt] #hold-track{bottom:-14px;left:10%;width:80%;height:9px;background:#dce5df;border-radius:10px;overflow:hidden}
#stage[data-phase=ready][data-progress=prompt] #hold-track i{background:#347655;border-radius:10px}
.scenarios{flex-wrap:wrap}
#stage[data-variant=floating][data-phase=ready][data-progress=ring] #prompt-icon{left:37px}
#tuning{margin:18px auto 0;border:1px solid #dce1e7;border-radius:12px;padding:14px 18px;background:#fafbfc}#tuning summary{cursor:pointer;font-weight:550}.tuning-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0}.tuning-actions label{display:flex;align-items:center;gap:6px}#tuning-sliders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 24px}#tuning-sliders label{display:grid;grid-template-columns:1fr 44px;gap:5px;font-size:12px}#tuning-sliders label span{grid-column:1/-1}#tuning-sliders input{width:100%;accent-color:#6b7e92}#tuning-sliders output{text-align:right;font-variant-numeric:tabular-nums;color:#566475}#stage[data-silhouettes=true] .guest img{filter:brightness(0)}@media(max-width:750px){#tuning-sliders{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){#tuning-sliders{grid-template-columns:1fr}}
@media(min-width:1200px){body:not(.focus){padding-right:330px}#tuning{position:fixed;right:14px;top:18px;bottom:18px;width:302px;margin:0;overflow:auto;z-index:5;box-shadow:0 5px 25px #2530430a}#tuning-sliders{grid-template-columns:1fr}.tuning-actions{gap:9px}.tuning-actions button{font-size:12px}}
/* Persistent posing instruction and a portrait-shaped clear area. */
#pose-guide{inset:3.5% 32% 3%}
#stage[data-phase=pose] #prompt,#stage[data-phase=retry] #prompt{background:#fffffff5;color:#253043;font-weight:550;box-shadow:0 8px 28px #17243a20}
#stage[data-phase=ready][data-progress=ring] #hold-ring{margin-right:0}
#prompt-prefix:empty{display:none}.gesture-wrap{position:relative;display:flex;align-items:center;justify-content:center;flex:none}.gesture-wrap:has(#prompt-icon:empty){display:none}
#stage[data-phase=ready][data-progress=ring] .gesture-wrap{width:64px;height:64px;margin:-11px 0}
#stage[data-phase=ready][data-progress=ring] .gesture-wrap #hold-ring{position:absolute;inset:0;margin:0}
#stage[data-phase=ready][data-progress=ring] .gesture-wrap #prompt-icon{position:static;font-size:31px}
.guest .angled{position:absolute;inset:0;opacity:0;pointer-events:none}
.claim-label{position:absolute;min-width:90px;max-width:175px;transform:translateX(-50%);text-align:center;color:#596675;font-size:24px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;transition:opacity .3s ease}
.claim-label.is-claimed{font-size:17px;letter-spacing:0;color:#8190a0}
#reveal-claim{position:absolute;left:auto;right:85px;top:46%;width:285px;z-index:2;display:grid;gap:8px;align-content:center;text-align:left;color:#536274;pointer-events:none;filter:drop-shadow(0 7px 20px #52678418);transform:translateY(-50%);will-change:opacity}
#reveal-claim[hidden]{display:none}
#reveal-claim-title{font-size:30px;line-height:1.18;letter-spacing:-.2px;text-wrap:balance}
#reveal-claim-action{font-size:76px;line-height:1.03;letter-spacing:3px;font-weight:550;font-variant-numeric:tabular-nums;color:#33465d}
#reveal-claim.is-selfie #reveal-claim-action,#reveal-claim.is-claimed #reveal-claim-action{font-size:27px;line-height:1.2;letter-spacing:0}
#reveal-claim-url{font-size:34px;font-weight:550;color:#526d83;white-space:nowrap}
#reveal-claim-url[hidden]{display:none}
#tuning-sliders{display:block}.stage-tuning{border-top:1px solid #dce1e7;padding:12px 0}.stage-tuning>summary{font-size:14px;margin-bottom:10px}.stage-tuning>button{margin:0 0 12px;font-size:12px}.stage-tuning>label{margin:10px 0}.stage-tuning>label:has(input[type=checkbox]){display:flex!important;align-items:center}.stage-tuning input[type=checkbox]{width:auto!important}
#prompt-number{display:none;flex:none;width:50px;text-align:center;font-size:44px;font-weight:550;font-variant-numeric:tabular-nums;line-height:1}
#stage[data-phase=pose][data-count-in-prompt=true] #prompt-number:not(:empty){display:block}
#stage[data-phase=pose][data-count-in-prompt=true] #countdown{display:none}
/* Guide stays in the square invitation frame while the posing camera opens behind it. */
#stage>#body-guide{position:absolute;border-radius:24px;pointer-events:none;transform-origin:center;z-index:2}
#stage>#flash{position:absolute;inset:0;background:white;pointer-events:none;z-index:8}
#prompt{z-index:3}
.stage-tuning>label:has(select){display:flex!important;justify-content:space-between;gap:8px;align-items:center}

.live-controls{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin-bottom:12px;font-size:12px}.live-controls output{color:#657080}.replay-file{cursor:pointer}.replay-file input{display:none}#live-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}#live-video[hidden]{display:none}body.live #camera>img{visibility:hidden}body.live #camera:has(video[hidden])>img{visibility:visible}
.recording-controls{margin:10px auto;max-width:1000px;border-top:1px solid #dce1e7;padding-top:10px}.recording-controls summary{cursor:pointer;margin-bottom:12px}.recording-controls input[type=number]{width:65px}.recording-controls a{color:inherit}#camera>img{object-position:50% 50%}#stage[data-live-crowd=true] #pose-guide{border-color:#ef5962}
#stage[data-phase=success] #prompt{top:500px;min-width:76px;min-height:76px;background:#f4fff7;color:#347655;border-color:#bcdcc7;font-size:35px}
#stage[data-phase=success] #prompt{width:76px;height:76px;min-width:76px;min-height:76px;padding:0;gap:0;display:grid;place-items:center;box-sizing:border-box}
#stage[data-phase=success] .gesture-wrap{width:100%;height:100%;margin:0;display:grid;place-items:center}
#stage[data-phase=success] #prompt-icon{position:static;width:100%;justify-content:center;font-size:38px;line-height:1;text-align:center}
#stage[data-phase=success].confirmation-transition #prompt{animation:confirmation-pop .7s cubic-bezier(.2,.8,.2,1)}
#stage[data-phase=success].confirmation-transition #prompt-icon{animation:confirmation-tick .55s cubic-bezier(.2,.8,.2,1)}
@keyframes confirmation-pop{0%{width:var(--confirmation-from-width,400px);background:#fffffff5;transform:translateX(-50%) scale(1)}65%{width:76px;transform:translateX(-50%) scale(1.06)}100%{width:76px;transform:translateX(-50%) scale(1)}}
@keyframes confirmation-tick{0%{opacity:0;transform:scale(.35) rotate(-12deg)}65%{opacity:1;transform:scale(1.14) rotate(3deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
#stage[data-phase=result] #prompt{transition:padding .3s ease,min-height .3s ease}
#stage[data-phase=result] .gesture-wrap{width:34px;height:34px;transition:width .3s ease,height .3s ease}
#stage[data-phase=result] #hold-ring{display:block;position:absolute;inset:0;width:100%;height:100%;margin:0;transition:opacity .2s ease}
#stage[data-phase=result] #prompt-icon{position:relative;z-index:1}
#stage[data-phase=result][data-repeat-active=true] #prompt{min-height:86px;padding-top:16px;padding-bottom:16px}
#stage[data-phase=result][data-repeat-active=true] .gesture-wrap{width:54px;height:54px}
/* A square transparent sprite leaves room for wide poses without squeezing the body. */
.guest img{width:100%;height:100%;object-fit:contain}
body.public-experience{background:#fff}
body.public-experience #viewport{width:100vw;height:100vh;aspect-ratio:auto}
#generation-backdrop{display:none}
body.public-experience #generation-backdrop{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:0}
body.public-experience #hero{width:540px;left:210px}
body.public-experience #character{width:100%;height:100%}
body.public-experience .review-controls,body.public-experience .review-header{display:none}

#lab-gear{display:none;position:fixed;top:18px;right:18px;z-index:20;width:44px;height:44px;align-items:center;justify-content:center;border-radius:50%;color:#52606c;background:#fffffff0;box-shadow:0 2px 14px #25344414;opacity:0;pointer-events:none;transition:opacity .2s}
body.public-experience #lab-gear,body.focus #lab-gear{display:flex}
body.operator-awake #lab-gear,#lab-gear:focus-visible,#lab-gear:hover{opacity:1;pointer-events:auto}
#lab-gear:focus-visible{outline:2px solid #7889bb;outline-offset:3px}
#back-to-experience{display:inline-flex;align-items:center;color:#343c49;text-decoration:none;padding:8px 13px;border:1px solid #dfe2e6;border-radius:9px;background:white}

/* Keep the complete camera frame visible while the preview grows into the pose view. */
#live-video,#camera>img{object-fit:contain}
.tuning-subgroup{margin:0 0 16px;padding:10px 10px 2px;border:1px solid #e1e5ea;border-radius:9px;background:#fff}
.tuning-subgroup h4{margin:0 0 8px;color:#596675;font-size:12px;font-weight:600;letter-spacing:.02em}
.tuning-subgroup>label{margin:9px 0!important}
#tuning-sliders input[type=number]{width:52px;padding:2px 4px;border:1px solid #dce1e7;border-radius:4px;text-align:right;font-variant-numeric:tabular-nums}
#loading{z-index:2}
#loading.camera-outage{gap:18px;text-align:center;padding:40px;background:#f7f7f5;color:#343c49}
#loading.camera-outage strong{font-size:35px;font-weight:500;letter-spacing:-.03em}
#loading.camera-outage span{font-size:18px;line-height:1.4;max-width:560px}
#loading.camera-outage button{justify-self:center;font-size:17px;padding:12px 20px}

#reveal-claim.is-selfie #reveal-claim-action{font-size:24px;font-weight:400;margin-top:8px}
#reveal-claim.is-claimed #reveal-claim-url{display:none}

#reveal-claim-url .claim-at{font-size:24px;font-weight:400}

#reveal-claim-action[hidden]{display:none}

#reveal-claim.is-qr{top:40%;transform:none}

#venue-reveal{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}#venue-reveal[hidden]{display:none}#stage{z-index:1}#generation-backdrop{z-index:0}
#viewport:has(#venue-reveal:not([hidden])) #reveal-claim{filter:none}
/* Retained canvas textures must never enter another Pi scene through opacity. */
html[data-performance-profile=pi4] #stage:not([data-phase=creation]):not([data-phase=error]):not([data-phase=closing]) #creation,
html[data-performance-profile=pi4] #stage:not([data-phase=reveal]):not([data-phase=result]):not([data-phase=return]):not([data-phase=closing]) #hero,
html[data-performance-profile=pi4] #viewport:has(> #stage:not([data-phase=creation]):not([data-phase=error])) > #generation-backdrop{display:none}
html[data-performance-profile=pi4] #stage:not([data-phase=invitation]):not([data-phase=success]):not([data-phase=ready]):not([data-phase=crowded]):not([data-phase=pose]):not([data-phase=retry]):not([data-phase=closing]) :is(#camera,#body-guide){display:none}
html[data-performance-profile=pi4] #prompt{backdrop-filter:none;box-shadow:none}
html[data-performance-profile=pi4] #body-guide{filter:none}
html[data-performance-profile=pi4] #camera{box-shadow:none}
html[data-performance-profile=pi4] .guest{will-change:transform,opacity;filter:none!important}
html[data-performance-profile=pi4] :is(#camera,#body-guide,#pose-guide){border-radius:0!important;box-shadow:none!important}
html[data-performance-profile=pi4] #camera{clip-path:none!important}
html[data-performance-profile=pi4] .confirmation-transition :is(#prompt,#prompt-icon){animation:none}

#camera-heat-note{position:absolute;left:50%;width:880px;transform:translateX(-50%);text-align:center;font-size:24px;line-height:1.4;color:#6e7886;pointer-events:none}
