#flight-guide.world-nav-guide {
  position: fixed;
  z-index: 40;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(490px, calc(100% - 28px), 130vh);
  border: 1px solid rgb(235 222 204 / .37);
  border-radius: 15px;
  background: rgb(20 23 26 / .74);
  box-shadow: 0 12px 38px rgb(0 0 0 / .34), inset 0 1px 0 rgb(255 255 255 / .05);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  pointer-events: none;
  user-select: none;
}
.flight-diagram { display: block; width: 100%; height: auto; overflow: visible; }
#flight-guide #guide-close {
  position: absolute; top: 4px; right: 4px; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0;
  pointer-events: auto; background: transparent; color: #fff4e9; border: 0; border-radius: 8px;
}
#flight-guide #guide-close:hover, #flight-guide #guide-close:focus-visible { background: rgb(255 255 255 / .09); color: #fff; }
#flight-guide #guide-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fg-floor path { fill: none; stroke: #b6b0a4; stroke-width: 1; opacity: .35; }
.fg-floor .fg-floor-face { fill: #857b69; fill-opacity: .17; stroke: none; opacity: 1; }
.fg-divider { fill: none; stroke: #d5cfc3; opacity: .23; }
.fg-plumb { fill: none; stroke: #e0bb91; stroke-width: 1.1; stroke-dasharray: 2 5; opacity: .65; }
.fg-shadow { fill: #080808; opacity: .55; }
.fg-key { color: #ded8cc; animation: fg-key-light 8.4s infinite both; }
.fg-key-a { animation-delay: 1.4s; } .fg-key-s { animation-delay: 2.8s; } .fg-key-d { animation-delay: 4.2s; }
.fg-key-e { animation-delay: 5.6s; } .fg-key-q { animation-delay: 7s; }
.fg-arrow { fill: none; stroke: #f2cbad; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fg-key-base { fill: #131416; stroke: #969084; stroke-width: 1; }
.fg-key-face { fill: #323337; stroke: currentColor; stroke-width: 1.35; }
.fg-key text { fill: currentColor; font: 600 20px/1 "Segoe UI", system-ui, sans-serif; }
.fg-plan-traveller { animation: fg-plan 8.4s ease-in-out infinite; }
.fg-height-traveller { animation: fg-rise 8.4s ease-in-out infinite; }
@keyframes fg-key-light { 0%, 15%, 100% { color: #e6e3dd; } 4%, 10% { color: #ffb170; } }
@keyframes fg-plan {
  0%, 15%, 31.6%, 48.3%, 65%, 100% { transform: translate(0,0); }
  5%, 9% { transform: translate(0,-10px) scale(.92); }
  21.6%, 25.6% { transform: translate(-12px,0); }
  38.3%, 42.3% { transform: translate(0,9px) scale(1.06); }
  55%, 59% { transform: translate(12px,0); }
}
@keyframes fg-rise { 0%, 66%, 81.6%, 100% { transform: translateY(0); } 72%, 76% { transform: translateY(-12px); } 88%, 92% { transform: translateY(12px); } }
#guide-toggle.world-nav-toggle {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 41;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #eee5d8;
  background: rgb(20 23 26 / .74);
  border: 1px solid rgb(235 222 204 / .37);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  cursor: pointer;
}
#guide-toggle.world-nav-toggle:focus-visible { outline: 2px solid #ffb270; outline-offset: 3px; }
#guide-toggle.world-nav-toggle svg { width: 22px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
#guide-toggle.world-nav-toggle[aria-expanded="true"] { color: #ffd2ad; border-color: #a37b5d; }
.flight-mouse svg { fill: none; stroke: #c7c3bb; stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; }
.flight-mouse { display: none; justify-items: center; margin: 0 18px; padding: 8px 0 10px; border-top: 1px solid rgb(235 222 204 / .21); }
.flight-mouse svg { width: 79px; height: 37px; }
@media (any-pointer: fine) { .flight-mouse { display: grid; } }
.look-rmb { fill: #e2a371; stroke: none; }
@media (prefers-reduced-motion: reduce) { .fg-key, .fg-plan-traveller, .fg-height-traveller { animation: none; } }
.world-nav-touch { display: none; margin: 0 12px 12px; text-align: center; color: #eee5d8; font-size: 13px; }
@media (pointer: coarse) { .world-nav-touch { display: block; } }

#flight-guide[hidden], #guide-toggle[hidden], .world-nav-note[hidden] { display: none !important; }
#flight-guide.world-nav-ground { width: min(380px, calc(100% - 28px), 100vh); }
.world-nav-ground .flight-diagram { overflow: hidden; }
.world-nav-note { margin: 0 12px 12px; text-align: center; color: #eee5d8; font-size: 13px; }
body.clean .world-nav-guide, body.clean .world-nav-toggle { display: none !important; }
