#authDialog{width:min(900px,calc(100vw - 28px));max-width:900px;padding:0;border:1px solid #efd3e0;border-radius:28px;overflow:auto;max-height:92dvh;color:#391c33;background:#fffafd}#authDialog::backdrop{background:#32162e66;backdrop-filter:blur(5px)}.auth-layout{display:grid;grid-template-columns:1fr 1fr}.auth-scene{position:relative;min-height:520px;display:grid;align-content:end;text-align:center;background:radial-gradient(circle at 50% 35%,#fff9 0 30%,transparent 31%),linear-gradient(145deg,#e2dcfa,#fce0ed);border-radius:27px 0 0 27px;padding:25px;overflow:hidden}.auth-scene img{position:absolute;width:100%;height:84%;object-fit:contain;inset:10px 0 auto;transition:opacity .25s}.auth-scene strong{z-index:1;font-size:21px;margin-bottom:8px}.auth-scene small{z-index:1;color:#75516b}.auth-motion{position:absolute;top:16px;left:16px;z-index:2;border-radius:50%;width:38px;height:38px;padding:0;background:#fff9}.auth-content{padding:42px 32px 25px}.auth-content h2{font-size:25px;line-height:1.4;margin:18px 0 8px}.auth-content p{font-size:13px;line-height:1.6}.auth-tabs{display:flex;border-radius:14px;background:#f9e9f1;padding:4px;gap:4px}.auth-tabs button{flex:1;border:0;background:none;color:#75465c;padding:10px}.auth-tabs button[aria-selected=true]{background:#d51d58;color:white;box-shadow:0 3px 10px #b2224422}.auth-google{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;background:white;border:1px solid #dfd1dc;border-radius:12px;padding:12px}.auth-google b{font:bold 23px Arial;color:#4285f4}.auth-divider{display:flex;align-items:center;gap:12px;color:#977a8d;font-size:12px;margin:18px 0}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:#eadce4;flex:1}#authDialog input{margin:6px 0 14px;padding:12px;background:white;border-radius:12px}#authDialog .dialog-close{z-index:4;top:8px;right:10px}#authDialog #authError{color:#b71d4c}#authDialog .primary{border-radius:12px;background:#d51d58;border-color:#d51d58}@media(max-width:640px){.auth-layout{grid-template-columns:1fr}.auth-scene{min-height:210px;border-radius:27px 27px 0 0;padding:12px}.auth-scene img{height:190px;top:-5px}.auth-scene strong,.auth-scene small{display:none}.auth-content{padding:20px}.auth-content h2{margin-top:14px;font-size:22px}}@media(prefers-reduced-motion:reduce){.auth-scene img{transition:none}}

/* Full body on desktop; enlarged upper-body framing on phones. */
.auth-scene{background:radial-gradient(circle at 50% 35%,#fff8 0 29%,transparent 30%),linear-gradient(145deg,#fff0f6,#fbd5e5)}
.auth-mascot{position:absolute;left:50%;top:12px;transform:translateX(-50%);width:100%;aspect-ratio:1;max-width:460px;isolation:isolate}
.auth-pose{position:absolute;inset:0;background-image:url('/static/auth-sweetie/sweetie-poses-v3.png');background-size:300% 300%;background-repeat:no-repeat;mix-blend-mode:normal}
@media(max-width:640px){.auth-scene{height:clamp(245px,76vw,310px);min-height:0}.auth-mascot{width:110%;max-width:440px;top:0}.auth-scene:after{content:'';position:absolute;inset:auto 0 0;height:20px;background:linear-gradient(transparent,#fce1ec);pointer-events:none}}
/* Center the complete figure in the desktop illustration area above its caption. */
@media(min-width:641px){.auth-mascot{top:calc(50% - 42px);transform:translate(-50%,-50%);width:min(100%,460px)}.auth-scene strong,.auth-scene small{position:relative}}
/* Anchor the halo to the same center as Sweetie, on both layouts. */
.auth-scene{background:linear-gradient(145deg,#fff0f6,#fbd5e5)}
.auth-mascot:before{content:none}

.auth-google>img{width:24px;height:24px;object-fit:contain;flex-shrink:0;display:block}

/* Render one full-resolution illustration, avoiding enlarged sprite-sheet cells. */
.auth-mascot{aspect-ratio:16/9;max-width:none;width:100%}
.auth-scene .auth-sweetie-hd{position:static;display:block;width:100%;height:auto;object-fit:contain;image-rendering:auto;transition:none;animation:auth-sweetie-float 4s ease-in-out infinite}
.auth-scene.motion-paused .auth-sweetie-hd{animation-play-state:paused}
@keyframes auth-sweetie-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@media(min-width:641px){.auth-mascot{width:100%;top:calc(50% - 24px)}.auth-scene{padding:24px 18px}.auth-scene strong{font-size:19px}}
@media(max-width:640px){.auth-mascot{width:100%;max-width:520px;top:50%;transform:translate(-50%,-50%)}.auth-scene{height:clamp(210px,58vw,290px)}}
@media(prefers-reduced-motion:reduce){.auth-scene .auth-sweetie-hd{animation:none}}
@media(min-width:641px){.auth-mascot{width:128%;max-width:none}}
@media(max-width:640px){.auth-mascot{width:125%;max-width:600px}}
/* Ten separately rendered full images; no sprite magnification or floating substitute. */
.auth-mascot{aspect-ratio:1;width:100%;max-width:460px}
.auth-scene .auth-sweetie-hd{animation:none;width:100%;height:100%;object-fit:contain}
@media(min-width:641px){.auth-mascot{width:100%;top:calc(50% - 35px)}}
@media(max-width:640px){.auth-mascot{width:100%;height:100%;max-width:350px;top:50%}.auth-scene{height:clamp(245px,76vw,320px)}}

/* Resident decoded layers avoid source swaps and blank frames during playback. */
.auth-scene .auth-sweetie-hd{position:absolute;inset:0;display:block;opacity:0;transition:none;pointer-events:none}
.auth-scene .auth-sweetie-hd:first-child{opacity:1}
