/* Photo inspection is deliberately flat and uncropped; the mural begins afterwards. */
.photo-stage.has-photo{border-radius:0;height:380px;background:#081b37;overflow:hidden;display:block}
.photo-stage.has-photo:before{display:none}
#inspect-photo{position:absolute;inset:0;padding:10px;border:0;width:100%;height:100%;min-width:0;min-height:0;display:block;background:none;cursor:zoom-in}
#inspect-photo img{width:100%;height:100%;object-fit:contain;background:transparent;display:block}
.photo-check{font-size:14px;margin:8px 0;color:var(--blue)}
.studio-dialog{border:0;background:var(--cream);color:var(--ink);width:min(760px,calc(100% - 28px));max-height:92svh;padding:24px;overflow:auto}
.studio-dialog::backdrop{background:#041225d9}
.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.dialog-top h3{font-size:40px;margin:0}.dialog-top .text-button{white-space:nowrap;align-self:center}
#camera-video{display:block;width:100%;height:min(55svh,500px);object-fit:contain;background:var(--ink);transform:scaleX(-1)}
#photo-large{display:block;width:100%;height:auto;max-height:65svh;object-fit:contain;background:var(--ink)}
.studio-dialog>p{margin-top:14px;font-size:16px}
.square{height:clamp(520px,66.6667vw,1100px);touch-action:pan-y}
.square-world{position:absolute;width:max(100%,780px);aspect-ratio:3/2;left:50%;top:50%;transform:translate(calc(-50% + var(--pan-x,0px)),calc(-50% + var(--pan-y,0px))) scale(var(--zoom,1));transform-origin:center;isolation:isolate}
.square .square-painting,#community-crowd{transform:none}
.square-painting{width:100%;height:100%;object-fit:fill;inset:0}
.square-shade{background:none;pointer-events:none}
.square-sign{top:24px;width:auto;left:24px;right:auto;background:var(--blue);padding:14px 20px;transform:rotate(-2deg);z-index:2;pointer-events:none;box-shadow:5px 5px 0 var(--yellow)}
.square-sign p{font-size:clamp(26px,3vw,40px)}
.square-sign button{pointer-events:auto}
.square-bottom{font-size:22px;bottom:14px;text-shadow:0 1px 6px var(--ink);pointer-events:none;z-index:2}
.crowd-person{height:var(--person-height);width:auto;aspect-ratio:2/3;filter:none;transform:translate(-50%,4%);transform-origin:center bottom;transition:filter .2s}
.crowd-person::before{content:'';position:absolute;width:35%;height:3%;bottom:3%;left:32%;border-radius:50%;background:#07163360;filter:blur(2px);z-index:-1}
.crowd-person img{display:block;object-fit:contain;object-position:bottom}
.crowd-person.mine::after,.crowd-person.invited::after{height:3px;bottom:0;background:var(--cream);box-shadow:none;left:38%;right:38%}
.crowd-person:hover{filter:brightness(1.06)}
.friend-progress{font-weight:600;margin-top:22px;min-height:25px;color:var(--blue)}
.invitation-link{font-size:15px;width:100%;max-width:420px}
.invitation-link summary{cursor:pointer;text-decoration:underline;text-underline-offset:5px}
.invitation-link>div{display:flex;gap:12px;margin-top:12px}
.invitation-link input{min-width:0;width:100%;background:#fff0ca;border:1px solid #081b3760;font-size:14px;padding:10px;color:var(--ink)}
.card-actions #invite-friends{font-size:19px;padding:20px 28px}
.just-arrived canvas{animation:pueblo-welcome 1.2s cubic-bezier(.18,.8,.25,1) both}
@keyframes pueblo-welcome{from{transform:translateY(40px) rotate(-4deg);opacity:.3}to{transform:translateY(0) rotate(3deg);opacity:1}}
@media(max-width:600px){.photo-stage.has-photo{height:340px}.studio-dialog{padding:18px}.dialog-top h3{font-size:36px}.square-sign{top:16px;left:16px;padding:10px 14px}.square-sign .eyebrow{font-size:12px}.square-sign p{font-size:26px}.square{touch-action:pan-y}.your-card canvas{order:-1;max-width:290px}.card-actions #invite-friends{width:100%}.your-card{gap:30px}.your-card h2{font-size:58px}.pose-picker span{font-size:15px;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.just-arrived canvas{animation:none}}
.paused .just-arrived canvas{animation:none}

.album-illustration img{aspect-ratio:3/2;object-fit:contain}.album-illustration span{font-size:clamp(28px,3vw,46px)}

/* The personal keepsake opens on request; the shared piazza remains the main page. */
.returning-panel{align-self:center;justify-self:start;width:100%;max-width:510px;padding:30px 34px 14px;background:var(--yellow);color:var(--ink)}
.returning-panel h3{font:800 clamp(40px,4vw,58px)/.96 Condensed;margin:18px 0 20px}
.returning-panel>p{max-width:380px}.returning-panel .eyebrow{color:var(--blue)}
.returning-actions{display:flex;flex-wrap:wrap;gap:20px;align-items:center;margin-top:24px}
.returning-actions .button{padding:18px 22px;font-size:18px}.returning-actions .text-button{font-size:17px}
.returning-panel .status:empty{display:none}.returning-panel .status{margin-bottom:10px}
.your-card{grid-template-columns:minmax(0,600px) minmax(0,480px);justify-content:center;gap:clamp(36px,6vw,100px)}
.your-card canvas{max-width:480px;justify-self:center}.close-card{margin-top:28px}
@media(max-width:600px){.returning-panel{padding:24px;margin-top:28px}.returning-panel h3{font-size:44px}.returning-actions{flex-direction:column;align-items:flex-start}.your-card{grid-template-columns:minmax(0,1fr);gap:30px}.your-card canvas{max-width:290px}}
