html {scroll-behavior: auto}
.world-opening {position: relative; overflow: clip; background: #241b38; color: #fff2cd}
.world-opening[data-leaving] .world-dock,
.world-opening[data-leaving] .playback {visibility: hidden}
/* The signs on the islands already open these destinations. */
.world-opening .world > .stations,
.world-opening .world > .world-footer {display: none}
.world-opening .assembly-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#root {font: 400 16px/normal PixelBody, monospace; color: #fff2cd; font-synthesis: none}
#root:empty {min-height: calc(100svh + max(1100px, 200svh))}
.world-dock {position: sticky; z-index: 7; top: 0; height: 0; pointer-events: none}
.world-projects-link {
  position: absolute;
  top: max(7px, env(safe-area-inset-top));
  left: max(4%, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  pointer-events: auto;
  font: 400 15px/1.2 PixelBody, monospace;
  color: #fff1cd;
}
.world-projects-link:hover {text-decoration: underline; text-underline-offset: 4px}
.world-opening[data-assembling] .world-projects-link {text-shadow: 0 1px 2px #241b38}
.world-opening[data-assembling] .world-projects-link::before {content: ''; position: absolute; z-index: -1; inset: 7px -7px; background: #241b38}
.world-projects-link:focus-visible {outline: 2px solid #ffe4a6; outline-offset: 3px}
.world-welcome {position: absolute; top: 34svh; width: 100%; text-align: center; padding: 0 16px; color: #e4d1eb}
.world-welcome p {font: 400 clamp(17px, 2.2vw, 24px)/1.45 PixelBody, monospace}
.world-welcome .welcome-name {margin-bottom: 9px; color: #ffedc1; font: 700 clamp(39px, 6vw, 78px)/1.06 PixelDisplay, monospace}
.world-opening[data-started] .world-welcome {visibility: hidden; opacity: 0}
.world-continue {display: none; position: absolute; top: max(14px, env(safe-area-inset-top)); right: 4%; align-items: center; gap: 6px; padding: 5px 8px; background: #241b38; color: #fff1cd; font: 400 16px/1.3 PixelBody, monospace}
.world-opening[data-assembling] .world-continue {display: inline-flex}
.world-still {max-width: 900px; margin: auto; padding: 75px 20px 30px}
.world-still img {width: 100%; height: auto}
.world-opening .playback button {min-height: 44px}
@media (prefers-reduced-motion: no-preference) {
  .world-welcome {transition: opacity .25s, visibility .25s}
}
@media (prefers-reduced-motion: reduce) {
  #root:empty {min-height: 100svh}
  .world-welcome {display: none}
}

/* Reserve the footer's safe-area band for existing bottom controls. */
.world-page .world-opening .playback { bottom: calc(var(--world-footer-height) + 8px); }
.world-page .world-opening .world-whisper { bottom: calc(var(--world-footer-height) + 62px); }
@media (orientation: landscape) {
  .world-page .world-opening .world-tools { bottom: max(12%, calc(var(--world-footer-height) + 12px)); }
  .world-page .world-opening .pet-controls { bottom: max(12%, calc(var(--world-footer-height) + 62px)); }
  .world-page .world-opening .pet-invite { bottom: max(22%, calc(var(--world-footer-height) + 62px)); }
  .world-page .world-opening .world-help-panel {
    bottom: max(20%, calc(var(--world-footer-height) + 62px));
    max-height: min(65%, calc(100% - var(--world-footer-height) - 96px));
  }
}
@media (max-aspect-ratio: 1/1) {
  .world-page .world-opening .world-help-panel { max-height: calc(100% - var(--world-footer-height) - 122px); }
}
@media (max-height: 600px) and (orientation: landscape) {
  .world-page .world-opening .world-tools { bottom: max(16%, calc(var(--world-footer-height) + 12px)); }
  .world-page .world-opening .pet-controls { bottom: max(18%, calc(var(--world-footer-height) + 62px)); }
}
