.world-handoff{position:fixed;inset:0;z-index:999;isolation:isolate;overflow:hidden;background:#29143b;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;gap:12px;color:#f5ecff;font:18px/1.6 'Room Pixel',monospace;text-align:center;text-shadow:2px 2px #160c20}
.world-handoff::before{content:'';position:absolute;inset:0;z-index:-2;background:url('./scenes/assets/minecraft/nether_portal.png') repeat;background-size:256px 8192px;image-rendering:pixelated;opacity:.7;animation:realm-flow 2.67s steps(32) infinite}
.world-handoff::after{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at center,#25103733,#12091f99)}
.world-handoff[hidden],#world-return{display:none}
.portal-return #world-return{display:flex}
.world-handoff p,.world-handoff h2{margin:0;max-width:520px;font:inherit}
.world-handoff h2{color:#fff}
.world-handoff.is-departing{animation:world-enter .28s ease-out both}
.world-handoff.is-arriving{animation:world-enter .22s ease-in reverse both;pointer-events:none}
@keyframes realm-flow{to{background-position:0 -8192px}}
@keyframes world-enter{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.world-handoff::before,.world-handoff.is-departing{animation:none}.world-handoff.is-arriving{animation:none;visibility:hidden}}
