/* A drawn doorway closes around the chosen room, then opens into its interior. */
:root{--room-threshold:#111b26}
html[data-theme=light]{--room-threshold:#c6c2b6}
/* Covers the receiving document before its first ready paint, and is the no-SVG fallback. */
html::after{content:'';position:fixed;inset:0;z-index:2147483645;background:var(--room-threshold);opacity:0;pointer-events:none;transition:opacity .6s ease}
html.room-leaving::after,html.room-arriving::after{opacity:1;pointer-events:auto}
html.room-arriving::after{transition:none}
html.room-portal-ready::after{opacity:0;visibility:hidden;transition:none}
.room-travel-veil{position:fixed;inset:0;width:100%;height:100%;z-index:2147483646;pointer-events:auto;--room-edge:#bda27a}
.room-travel-veil[data-room=music]{--room-edge:#d4ad83}
.room-travel-veil[data-room=workshop]{--room-edge:#91b9d0}
.room-travel-veil[data-room=library]{--room-edge:#c3ae84}
.room-travel-veil[data-room=science]{--room-edge:#ff8575}
.room-travel-surface{fill:var(--room-threshold)}
.room-travel-edge,.room-travel-echo{fill:none;stroke:var(--room-edge);stroke-width:1.25;vector-effect:non-scaling-stroke}
.room-travel-echo{stroke-width:.65}
.room-travel-veil mask{mask-type:luminance}
@media(prefers-reduced-motion:reduce){html::after,.room-travel-veil{display:none}}
