/* Minimal walking prototype mode for /world/. Keep only top nav + one collapsible AI button. */
body.jf-minimal-walk-world .jf-world-room-title,
body.jf-minimal-walk-world .jf-world-map,
body.jf-minimal-walk-world .jf-world-panel,
body.jf-minimal-walk-world .jf-world-mobile-controls,
body.jf-minimal-walk-world .jf-candidate-journey,
body.jf-minimal-walk-world .jf-candidate-journey-rail,
body.jf-minimal-walk-world .jf-candidate-world-rail,
body.jf-minimal-walk-world .jf-candidate-mentor,
body.jf-minimal-walk-world .jf-candidate-mentor-panel,
body.jf-minimal-walk-world .jf-candidate-world-mentor,
body.jf-minimal-walk-world .jf-visual-mentor,
body.jf-minimal-walk-world .jf-visual-workspace,
body.jf-minimal-walk-world .jf-station-workspace,
body.jf-minimal-walk-world .jf-world-station-drawer,
body.jf-minimal-walk-world .jf-world-status {
  display: none !important;
}

body.jf-minimal-walk-world .jf-world-topbar {
  top: 14px;
  left: 18px;
  right: auto;
  width: auto;
  z-index: 20;
}

body.jf-minimal-walk-world .jf-world-brand {
  min-height: 48px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  background: rgba(4, 12, 26, 0.72);
  border-color: rgba(80, 200, 255, 0.38);
}

body.jf-minimal-walk-world .jf-world-brand-mark {
  width: 34px;
  height: 34px;
}

body.jf-minimal-walk-world .jf-world-nav {
  position: absolute;
  z-index: 20;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 8px;
  max-width: min(720px, calc(100vw - 330px));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 8px 12px;
  border: 1px solid rgba(80, 200, 255, 0.28);
  border-radius: 999px;
  background: rgba(4, 12, 26, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
body.jf-minimal-walk-world .jf-world-nav::-webkit-scrollbar { display: none; }

body.jf-minimal-walk-world .jf-world-nav button,
body.jf-minimal-walk-world .jf-world-nav a {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 32px;
  color: rgba(235, 248, 255, 0.92);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
}

body.jf-minimal-walk-world .jf-world-nav button.is-active,
body.jf-minimal-walk-world .jf-world-nav button[data-jf-room].is-active {
  border-color: rgba(85, 215, 255, 0.78);
  background: rgba(54, 187, 255, 0.16);
  box-shadow: 0 0 22px rgba(54, 187, 255, 0.22);
}

body.jf-minimal-walk-world .jf-dialog {
  position: absolute !important;
  left: auto !important;
  right: 22px !important;
  bottom: 82px !important;
  width: min(380px, calc(100vw - 36px)) !important;
  min-height: 0 !important;
  max-height: min(540px, calc(100vh - 130px));
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 12px !important;
  border-radius: 22px !important;
  transform: translateY(16px) scale(0.98) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: auto;
  z-index: 30 !important;
}

body.jf-minimal-walk-world.jf-mentor-open .jf-dialog {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.jf-minimal-walk-world .jf-dialog-portrait {
  min-height: 64px !important;
  height: 64px !important;
  border-radius: 18px !important;
}

body.jf-minimal-walk-world .jf-dialog-message,
body.jf-minimal-walk-world #jf-dialog-message {
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

body.jf-minimal-walk-world .jf-dialog-actions {
  gap: 6px !important;
}

body.jf-minimal-walk-world .jf-dialog-actions button,
body.jf-minimal-walk-world .jf-dialog-tool,
body.jf-minimal-walk-world .jf-dialog-input button {
  min-height: 30px !important;
  font-size: 11px !important;
}

body.jf-minimal-walk-world .jf-dialog-input {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
}

.jf-mentor-toggle {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 31;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(80, 200, 255, 0.48);
  background: rgba(4, 12, 26, 0.78);
  color: rgba(239, 249, 255, 0.96);
  font: 800 12px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36), 0 0 22px rgba(54, 187, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.jf-mentor-toggle span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 216, 255, 0.95), rgba(98, 74, 255, 0.45));
  box-shadow: 0 0 22px rgba(83, 216, 255, 0.42);
}

body.jf-mentor-open .jf-mentor-toggle {
  border-color: rgba(166, 94, 255, 0.75);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36), 0 0 28px rgba(166, 94, 255, 0.25);
}

.jf-walk-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 19;
  padding: 10px 14px;
  border: 1px solid rgba(80, 200, 255, 0.28);
  border-radius: 999px;
  color: rgba(219, 239, 255, 0.82);
  background: rgba(4, 12, 26, 0.58);
  font: 700 12px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (max-width: 920px) {
  body.jf-minimal-walk-world .jf-world-brand span:not(.jf-world-brand-mark) { display: none; }
  body.jf-minimal-walk-world .jf-world-nav {
    left: 74px;
    right: 12px;
    transform: none;
    max-width: none;
  }
}


/* v2: walking test should keep the canvas clean and visible. */
body.jf-minimal-walk-world .jf-world-game {
  overflow: hidden;
}

body.jf-minimal-walk-world .jf-walk-hint {
  bottom: 18px !important;
}


/* v3: deeper floor calibration. */
body.jf-minimal-walk-world .jf-walk-hint {
  background: rgba(4, 12, 26, 0.72) !important;
}
