#v1-ending{position:fixed;inset:0;z-index:1300;overflow:auto;overscroll-behavior:contain;background:#102d35;color:#f2ead4;font-family:inherit;outline:none;box-sizing:border-box}
#v1-ending *{box-sizing:border-box}.v1-ending-toolbar{position:sticky;top:0;z-index:1;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px;background:#102d35f5}
#v1-ending button{font:inherit;min-height:44px;padding:10px 14px;border:1px solid #bba578;border-radius:10px;background:#19444a;color:#f4e8cf;cursor:pointer}#v1-ending button:focus-visible{outline:3px solid #efd28a;outline-offset:2px}
.v1-ending-content{max-width:560px;padding:12px 20px calc(24px + env(safe-area-inset-bottom,0px));margin:auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px}.v1-ending-label{font-size:12px;color:#dec58d;line-height:1.6;margin:0}.v1-ending-content canvas{width:min(100%,300px);height:auto;max-height:38dvh;object-fit:contain;image-rendering:pixelated}.v1-ending-caption{font-size:clamp(18px,4.6vw,24px);line-height:1.8;white-space:pre-line;margin:0;animation:v1-caption .8s ease-out}.v1-ending-note{font-size:12px;line-height:1.7;color:#bbcec7;margin:0}.v1-ending-actions{width:100%;display:flex;flex-direction:column;gap:10px}#v1-ending-canada{background:#dbbd80!important;color:#14383f!important}#v1-ending[data-paused=true] .v1-ending-caption{animation-play-state:paused}@keyframes v1-caption{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){#v1-ending *{animation:none!important;transition:none!important}}

#v1-ending[data-stage=question],#v1-ending[data-stage=answer]{background:#050a10}#v1-ending canvas[hidden]{display:none}#v1-ending[data-stage=question] .v1-ending-content,#v1-ending[data-stage=answer] .v1-ending-content{min-height:65dvh;justify-content:center}

/* Post-waking CG art shares the cover's teal/gold direction; text remains live/localized. */
#v1-ending{isolation:isolate}.v1-ending-poster{position:fixed;inset:0;width:100%;height:100%;object-fit:contain;object-position:center top;z-index:-2;animation:v1-cg-reveal 1.5s ease both;pointer-events:none}#v1-ending img[hidden]{display:none}
#v1-ending[data-cg]::after{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#052a3345 0%,#052a3300 24%,#052a3320 43%,#052a33b8 66%,#052a33f5 100%)}
#v1-ending[data-cg] .v1-ending-toolbar{background:linear-gradient(#0a3039bd,transparent)}#v1-ending[data-cg] .v1-ending-content{min-height:calc(100dvh - 72px);justify-content:flex-end;gap:15px;max-width:600px;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
#v1-ending[data-cg] .v1-ending-label{color:#f3d895;text-shadow:0 2px 8px #00252f}#v1-ending[data-cg] .v1-ending-caption{font-family:Georgia,'Noto Serif SC','Songti SC',serif;font-size:clamp(19px,4.8vw,27px);line-height:1.8;color:#fff5de;text-shadow:0 2px 12px #00252f}#v1-ending[data-cg] .v1-ending-note{color:#dae6dc;text-shadow:0 1px 8px #00252f}#v1-ending[data-cg] button{background:#0b3841d9;backdrop-filter:blur(6px)}#v1-ending[data-paused=true] .v1-ending-poster{animation-play-state:paused}
@keyframes v1-cg-reveal{from{opacity:.35}to{opacity:1}}@media(min-aspect-ratio:1/1){.v1-ending-poster{object-fit:contain;background:#092a33}}@media(prefers-reduced-motion:reduce){.v1-ending-poster{animation:none!important}}

#v1-ending .v1-ending-art-status{font-size:14px;line-height:1.6;color:#f2dba8}#v1-ending [hidden]{display:none!important}
