#nuolan-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  color: #eaf3ff;
  font-family: "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

.nuolan-title {
  position: absolute;
  top: 28px;
  left: 50%;
  width: min(1040px, calc(100vw - 72px));
  transform: translateX(-50%);
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 8px 0 rgba(21, 27, 34, 0.86),
    0 18px 38px rgba(0, 0, 0, 0.5);
}

.nuolan-title span,
.nuolan-title strong {
  display: inline-block;
  font-weight: 900;
  line-height: 0.95;
}

.nuolan-title span {
  margin-right: 20px;
  color: #fff4a6;
  font-size: clamp(48px, 6.2vw, 98px);
}

.nuolan-title strong {
  color: #fff9c9;
  font-size: clamp(42px, 5.6vw, 88px);
}

#nuolan-hud.is-in-scene .nuolan-title {
  opacity: 0;
}

.nuolan-scene-tag {
  position: absolute;
  top: calc(28px + env(safe-area-inset-top));
  left: calc(28px + env(safe-area-inset-left));
  min-height: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 240, 163, 0.38);
  border-radius: 6px;
  background: rgba(22, 31, 47, 0.78);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  color: #fff0a3;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.nuolan-scene-tag:empty {
  display: none;
}

/* 顶部任务链 + 最高纪录横幅(进场后 title 隐藏，正好居中展示) */
.nuolan-physics-quest {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* setActive → flex */
  flex-direction: column;
  align-items: center;
  gap: 5px;
  max-width: min(42vw, 460px);
  padding: 6px 12px;
  border: 1px solid rgba(118, 255, 177, 0.28);
  border-radius: 12px;
  background: rgba(12, 32, 46, 0.5);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
  color: #eafff6;
  text-align: center;
  backdrop-filter: none;
  pointer-events: none; /* 纯展示，不挡道具点击 */
}
.nuolan-quest-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.nuolan-quest-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}
.nuolan-quest-pill.is-done {
  color: #6bffb0;
  background: rgba(40, 120, 80, 0.4);
  border-color: rgba(118, 255, 177, 0.5);
}
.nuolan-quest-pill.is-current {
  color: #fff0a3;
  background: rgba(120, 96, 24, 0.46);
  border-color: rgba(255, 240, 163, 0.6);
  animation: nuolan-quest-pulse 1.6s ease-in-out infinite;
}
.nuolan-quest-pill.is-locked {
  color: #8fb4c6;
  background: rgba(30, 48, 62, 0.5);
}
@keyframes nuolan-quest-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 240, 163, 0); }
  50% { box-shadow: 0 0 10px 1px rgba(255, 240, 163, 0.5); }
}
.nuolan-quest-goal {
  font-size: 12.5px;
  font-weight: 700;
  color: #cdefff;
}
.nuolan-quest-best {
  font-size: 12px;
  font-weight: 800;
  color: #ffd45c;
}
.nuolan-quest-rank {
  font-size: 12px;
  font-weight: 800;
  color: #8fe6ff;
}
.nuolan-quest-news {
  font-size: 13px;
  font-weight: 900;
  color: #7affd0;
}

.nuolan-physics-readout {
  position: absolute;
  top: calc(28px + env(safe-area-inset-top));
  right: calc(28px + env(safe-area-inset-right));
  display: none;
  grid-template-columns: repeat(2, minmax(84px, auto));
  gap: 5px 10px;
  max-width: 320px;
  padding: 8px 12px;
  border: 1px solid rgba(118, 255, 177, 0.28);
  border-radius: 12px;
  background: rgba(14, 37, 52, 0.5);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
  color: #eafff6;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: none;
}

.nuolan-physics-readout strong {
  grid-column: 1 / -1;
  color: #fff0a3;
}

.nuolan-physics-hotspots {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.nuolan-achievement-hotspots {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.nuolan-physics-hotspot {
  position: absolute;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(20, 45, 62, 0.52);
  box-shadow:
    0 0 0 2px rgba(116, 216, 255, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  cursor: grab;
  font: 800 10px/1 "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
  opacity: 0.82;
  touch-action: none;
  user-select: none;
}

.nuolan-physics-hotspot:hover {
  opacity: 1;
  box-shadow:
    0 0 0 3px rgba(116, 216, 255, 0.32),
    0 6px 16px rgba(0, 0, 0, 0.36);
}

.nuolan-physics-hotspot:active {
  cursor: grabbing;
  opacity: 1;
  transform: translate(-50%, -50%) scale(0.94);
}

.nuolan-physics-hotspot span,
.nuolan-physics-hotspot small {
  display: block;
  line-height: 1;
  pointer-events: none;
}

.nuolan-physics-hotspot small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 8px;
  font-weight: 800;
}

.nuolan-physics-hotspot.is-weight {
  border-color: rgba(126, 216, 255, 0.92);
  background: rgba(30, 97, 147, 0.62);
  cursor: ns-resize;
}

.nuolan-physics-hotspot.is-ramp {
  border-color: rgba(255, 232, 130, 0.92);
  background: rgba(120, 92, 30, 0.62);
  cursor: ns-resize;
}

.nuolan-physics-hotspot.is-lever {
  border-color: rgba(255, 132, 102, 0.92);
  background: rgba(142, 55, 44, 0.66);
  cursor: s-resize;
}

/* ===== 走近交互（虚拟触控）===== */
.nuolan-interact {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

/* 道具「显形操作徽章」：让用户本能知道可点击(常驻可见，桌面/移动通用，无 hover 依赖) */
.nuolan-prop-glow {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(180, 255, 225, 0.95);
  background: radial-gradient(circle at 38% 32%, rgba(86, 178, 235, 0.97), rgba(20, 78, 120, 0.97));
  color: #ffffff;
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
  animation: nuolan-badge-breathe 1.6s ease-in-out infinite;
}
.nuolan-prop-glow:hover { border-color: #ffffff; }
.nuolan-prop-glow .nuolan-prop-ic {
  font: 800 16px/1 "Segoe UI Symbol", "Microsoft YaHei", sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  animation: nuolan-badge-bob 1.3s ease-in-out infinite;
}
.nuolan-prop-glow .nuolan-prop-num {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ff7a3d;
  color: #fff;
  font: 800 10px/15px "Microsoft YaHei", sans-serif;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.nuolan-prop-glow .nuolan-prop-tip {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 1px 6px;
  border-radius: 7px;
  background: rgba(12, 36, 52, 0.86);
  border: 1px solid rgba(180, 255, 225, 0.45);
  color: #eafaff;
  font: 700 10px/1.2 "Microsoft YaHei", sans-serif;
}
.nuolan-prop-glow.is-door {
  border-color: rgba(118, 255, 177, 0.95);
  background: radial-gradient(circle at 38% 32%, rgba(86, 220, 150, 0.95), rgba(22, 96, 70, 0.95));
  font: 800 12px/1 "Microsoft YaHei", sans-serif;
  pointer-events: none; /* 纯出口指示，走过去即出馆，不靠点击 */
}
.nuolan-prop-ripple {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: nuolan-ripple 0.46s ease-out forwards;
}
/* 只脉动光晕/边框，不改 transform → 边界框稳定，可点击/可测 */
@keyframes nuolan-badge-breathe {
  0%, 100% { box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35), 0 0 10px 1px rgba(120, 230, 255, 0.5); border-color: rgba(180, 255, 225, 0.8); }
  50% { box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35), 0 0 22px 5px rgba(120, 230, 255, 0.9); border-color: rgba(220, 255, 240, 1); }
}
@keyframes nuolan-badge-bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}
@keyframes nuolan-ripple {
  0% { transform: scale(0.3); opacity: 0.7; }
  100% { transform: scale(5); opacity: 0; }
}

/* 道具说明气泡(作用 + 使用方法) */
.nuolan-prop-bubble {
  position: absolute;
  transform: translate(-50%, -100%);
  max-width: 240px;
  padding: 9px 13px;
  border-radius: 13px;
  background: rgba(16, 40, 56, 0.94);
  border: 1.5px solid rgba(126, 216, 255, 0.7);
  color: #eafaff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
  pointer-events: none;
  z-index: 8;
}
.nuolan-prop-bubble strong {
  display: block;
  font: 800 13px/1.3 "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: #aef3ff;
  margin-bottom: 3px;
}
.nuolan-prop-bubble span {
  display: block;
  font: 600 12px/1.45 "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}
.nuolan-prop-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(16, 40, 56, 0.94);
}

.nuolan-interact-enter {
  position: absolute;
  transform: translate(-50%, 0);
  pointer-events: auto;
  padding: 9px 16px;
  border: 1.5px solid rgba(118, 255, 177, 0.9);
  border-radius: 22px;
  background: rgba(20, 110, 80, 0.9);
  color: #ffffff;
  font: 800 14px/1 "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36);
  animation: nuolan-enter-pulse 1.1s ease-in-out infinite;
  touch-action: none;
  user-select: none;
}

/* 脉冲只动光晕，不改变包围盒（避免自动化点击判定为不稳定）*/
@keyframes nuolan-enter-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36), 0 0 0 0 rgba(118, 255, 177, 0.5); }
  50% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36), 0 0 0 7px rgba(118, 255, 177, 0); }
}

.nuolan-interact-controls {
  position: absolute;
  right: calc(26px + env(safe-area-inset-right));
  bottom: calc(30px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  z-index: 7;
}

.nuolan-ictrl {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(26, 58, 78, 0.8);
  color: #ffffff;
  font: 800 22px/1 "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.nuolan-ictrl small {
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.nuolan-ictrl:active {
  transform: scale(0.94);
}

.nuolan-ictrl.is-up { border-color: rgba(126, 216, 255, 0.95); background: rgba(30, 97, 147, 0.85); }
.nuolan-ictrl.is-down { border-color: rgba(255, 232, 130, 0.95); background: rgba(120, 92, 30, 0.85); }
.nuolan-ictrl.is-start {
  width: auto;
  height: 64px;
  padding: 0 22px;
  border-radius: 32px;
  font-size: 18px;
  border-color: rgba(118, 255, 177, 0.95);
  background: rgba(20, 120, 86, 0.9);
}
.nuolan-ictrl.is-release {
  width: 64px;
  height: 64px;
  font-size: 15px;
  border-color: rgba(255, 150, 120, 0.92);
  background: rgba(120, 48, 40, 0.86);
}
.nuolan-ictrl.is-predict-survive { border-color: rgba(118, 255, 177, 0.95); background: rgba(20, 110, 80, 0.82); }
.nuolan-ictrl.is-predict-topple { border-color: rgba(255, 150, 120, 0.95); background: rgba(130, 60, 50, 0.82); }

/* ===== 虚拟方向键 D-pad ===== */
/* 方向盘摇杆(替换方向键) */
/* 极简摇杆：半透明圆盘 + 实心旋钮 */
.nuolan-wheel {
  position: absolute;
  left: calc(30px + env(safe-area-inset-left));
  bottom: calc(30px + env(safe-area-inset-bottom));
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(18, 40, 58, 0.4);
  border: 2px solid rgba(180, 220, 245, 0.55);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  cursor: grab;
  z-index: 7;
}
.nuolan-wheel:active { cursor: grabbing; }

.nuolan-wheel-knob {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(40, 130, 180, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* 场景出口门标签 */
.nuolan-door-label {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 5px 12px;
  border-radius: 12px;
  border: 1px solid rgba(118, 255, 177, 0.7);
  background: rgba(18, 64, 46, 0.86);
  color: #eafff3;
  font: 800 13px/1.2 "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
  z-index: 6;
}

/* 形象选择入口(配色变体；后续可换 3D 绑骨人物) */
.nuolan-charsel {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  display: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 340px;
  padding: 7px 11px;
  border-radius: 16px;
  background: rgba(14, 30, 46, 0.72);
  border: 1px solid rgba(126, 216, 255, 0.4);
  z-index: 7;
  pointer-events: auto;
}
.nuolan-charsel-label {
  color: #cfeeff;
  font: 800 13px/1 "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  width: 100%;
  text-align: right;
  margin-bottom: 2px;
}
.nuolan-charsel-sw {
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1.5px solid var(--sw, #7ed8ff);
  background: rgba(255, 255, 255, 0.07);
  color: #eaf6ff;
  font: 800 11px/1 "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}
.nuolan-charsel-sw.is-active {
  background: var(--sw, #7ed8ff);
  border-color: #ffffff;
  color: #07202e;
  box-shadow: 0 0 9px 1px rgba(255, 255, 255, 0.45);
}
/* 窄屏(移动端)：收窄角色选择栏，避免横向挤占 */
@media (max-width: 480px) {
  .nuolan-charsel {
    max-width: 64vw;
    gap: 4px;
    padding: 5px 8px;
  }
  .nuolan-charsel-sw { height: 22px; padding: 0 7px; font-size: 10px; }
  .nuolan-charsel-label { font-size: 11px; }
}

/* 进场操作引导：左侧竖排「怎么玩」小卡(四步一次列出，半透明不挡中间，每会话只显一次) */
.nuolan-onboard {
  position: absolute;
  top: 96px;
  left: 14px;
  display: none; /* JS → flex */
  flex-direction: column;
  gap: 6px;
  width: 180px;
  max-width: 44vw;
  padding: 9px 11px 10px;
  border-radius: 12px;
  background: rgba(12, 32, 46, 0.5);
  border: 1px solid rgba(118, 255, 177, 0.3);
  color: #eafff6;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
  z-index: 30;
  pointer-events: auto;
}
.nuolan-onboard-title {
  font: 900 11px/1.2 "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: #ffe08a;
  letter-spacing: 0.04em;
}
.nuolan-onboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nuolan-onboard-list li {
  font: 700 10.5px/1.35 "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: #d7f3ea;
}
.nuolan-onboard-skip {
  align-self: flex-end;
  margin-top: 1px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #bfe9d8;
  font: 800 10.5px/1 "Microsoft YaHei", sans-serif;
  cursor: pointer;
}
/* 引导高亮当前徽章：只脉动 box-shadow/边框，不改尺寸/位置(保持可点稳定) */
.nuolan-prop-glow.is-onboard {
  border-color: #ffffff;
  animation: nuolan-onboard-pulse 0.8s ease-in-out infinite;
}
@keyframes nuolan-onboard-pulse {
  0%, 100% { box-shadow: 0 0 14px 3px rgba(255, 220, 120, 0.7); }
  50% { box-shadow: 0 0 28px 10px rgba(255, 220, 120, 1); }
}

.nuolan-achievement-hotspot {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0;
  border: 2px solid rgba(255, 244, 170, 0.95);
  border-radius: 50%;
  background: rgba(90, 67, 28, 0.82);
  box-shadow:
    0 0 0 8px rgba(255, 214, 92, 0.2),
    0 12px 30px rgba(0, 0, 0, 0.38);
  color: #ffffff;
  cursor: grab;
  font: 800 13px/1 "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  touch-action: none;
}

.nuolan-achievement-hotspot:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(0.96);
}

.nuolan-panel {
  position: absolute;
  left: 28px;
  top: 92px;
  width: min(380px, calc(100vw - 56px));
  padding: 18px 20px;
  border: 1px solid rgba(116, 191, 255, 0.38);
  border-radius: 6px;
  background: rgba(22, 31, 47, 0.82);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(12px);
}

/* 提示卡片 = 科学小向导「诺诺」的游戏内 NPC 对话气泡:亮色卡通、跟随诺诺、尾巴指向它 */
.nuolan-panel.is-guide {
  width: min(248px, calc(100vw - 40px));
  border: 1.5px solid rgba(32, 54, 79, 0.4);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.5), rgba(222, 240, 255, 0.44));
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
  backdrop-filter: none; /* 气泡纯透明，不要磨砂模糊 */
  color: #14233a;
  padding: 8px 12px 9px;
}
.nuolan-panel.is-guide span[data-nuolan-eyebrow] { color: #0f6f8c; font-size: 10.5px; margin-bottom: 3px; }
.nuolan-panel.is-guide h1 { color: #112233; font-size: 15.5px; margin: 0 0 4px; line-height: 1.18; }
.nuolan-panel.is-guide p { color: #283d52; font-size: 12px; line-height: 1.42; margin: 0 0 5px; }
.nuolan-panel.is-guide strong { color: #a4560a; font-size: 11px; }
.nuolan-guide-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.nuolan-guide-chip .nuolan-guide-ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #8fefff, #2aa6c8);
  border: 1.5px solid rgba(32, 54, 79, 0.5);
  box-shadow: 0 0 7px rgba(111, 232, 255, 0.55);
  font-size: 12px;
}
.nuolan-guide-chip .nuolan-guide-name {
  color: #0f6f8c;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 1px;
}
/* 气泡尾巴(双层:淡描边 + 半透明填充);默认停靠态在左下 */
.nuolan-panel.is-guide::before {
  content: '';
  position: absolute;
  left: 24px;
  bottom: -13px;
  border: 12px solid transparent;
  border-top-color: rgba(32, 54, 79, 0.38);
  border-bottom: 0;
}
.nuolan-panel.is-guide::after {
  content: '';
  position: absolute;
  left: 27px;
  bottom: -8px;
  border: 9px solid transparent;
  border-top-color: rgba(222, 240, 255, 0.5);
  border-bottom: 0;
}
/* 跟随诺诺(漂浮)态:气泡在诺诺左上方展开，右下角尾巴指向诺诺(不挡中央装置) */
.nuolan-panel.is-guide.is-floating {
  transform: translate(-100%, -100%);
  margin: -8px 0 0 -6px;
}
.nuolan-panel.is-guide.is-floating::before { left: auto; right: 16px; }
.nuolan-panel.is-guide.is-floating::after { left: auto; right: 19px; }

/* 首次进岛:诺诺开场自我介绍卡(居中弹出，磨砂，一次性) */
.nuolan-intro {
  position: absolute;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
  display: none; /* JS → flex */
  flex-direction: column;
  gap: 9px;
  width: min(420px, calc(100vw - 48px));
  padding: 16px 22px 18px;
  border: 2px solid rgba(111, 232, 255, 0.6);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.93), rgba(222, 240, 255, 0.9));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  color: #15263a;
  z-index: 42;
  pointer-events: auto;
}
.nuolan-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #25394e;
}
.nuolan-intro p b { color: #0f6f8c; }
.nuolan-intro-btn {
  align-self: center;
  margin-top: 3px;
  padding: 9px 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #36c0e6, #1f93c8);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(31, 147, 200, 0.5);
}
.nuolan-intro-btn:active { transform: translateY(1px); }

.nuolan-panel span {
  display: block;
  margin-bottom: 6px;
  color: #85d7ff;
  font-size: 13px;
  font-weight: 800;
}

.nuolan-panel h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 25px;
  line-height: 1.18;
}

.nuolan-panel p {
  margin: 0 0 11px;
  color: #c8d6e6;
  font-size: 14px;
  line-height: 1.55;
}

.nuolan-panel strong {
  display: inline-block;
  color: #fff0a3;
  font-size: 13px;
  line-height: 1.4;
}

.nuolan-label {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 7px 10px;
  border: 1px solid rgba(116, 191, 255, 0.34);
  border-radius: 6px;
  background: rgba(20, 30, 48, 0.84);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.42);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.nuolan-label.is-open {
  border-color: rgba(126, 216, 255, 0.82);
  background: rgba(30, 92, 130, 0.84);
}

.nuolan-label.is-closed {
  border-color: rgba(255, 216, 90, 0.58);
  background: rgba(42, 48, 54, 0.82);
}

#hub .nuolan-mainmenu .hub-btn {
  height: 48px;
  border-color: rgba(130, 200, 255, 0.5);
  background: rgba(22, 37, 58, 0.92);
  color: #f2f7ff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

#hub .nuolan-mainmenu .hub-btn:hover {
  border-color: rgba(255, 238, 150, 0.78);
  background: rgba(40, 89, 126, 0.95);
}

#hub .hub-bottombar {
  display: none;
}

@media (max-width: 760px) {
  .nuolan-title {
    top: 22px;
    width: calc(100vw - 32px);
  }

  .nuolan-title span {
    margin-right: 8px;
    font-size: 44px;
  }

  .nuolan-title strong {
    font-size: 36px;
  }

  .nuolan-panel {
    left: 16px;
    right: 16px;
    top: 84px;
    width: auto;
  }

  .nuolan-physics-readout {
    top: 16px;
    right: 16px;
    grid-template-columns: 1fr;
    max-width: 220px;
  }

  .nuolan-label {
    font-size: 11px;
  }
}

/* ===== 横屏引导(仅移动端竖屏，JS 控制 display) ===== */
.nuolan-rotate {
  position: absolute;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: none; /* JS → flex(移动端竖屏) */
  flex-direction: row;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 9px 14px;
  border-radius: 22px;
  background: rgba(14, 30, 46, 0.92);
  border: 1px solid rgba(126, 216, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: #eafaff;
  z-index: 40;
  pointer-events: auto;
}
.nuolan-rotate .nuolan-rotate-ic {
  font-size: 22px;
  line-height: 1;
  animation: nuolan-rotate-wiggle 1.8s ease-in-out infinite;
}
.nuolan-rotate p {
  margin: 0;
  font: 800 13.5px/1.3 "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  white-space: nowrap;
}
.nuolan-rotate-skip {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font: 700 12px/1 "Microsoft YaHei", sans-serif;
  cursor: pointer;
}
@keyframes nuolan-rotate-wiggle {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(12deg); }
}

/* 生物馆 readout 承载力警示色 */
.nuolan-physics-readout .is-warn { color: #ffb38a; }
.nuolan-physics-readout .is-ok { color: #7affb0; }

/* 生物馆「逐天翻页」器:底部居中，前一天/当天卡片/下一天 */
.nuolan-daypager {
  position: absolute;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: none;
  align-items: stretch;
  gap: 12px;
  z-index: 30;
  pointer-events: auto;
}
.nuolan-day-btn {
  min-width: 96px;
  padding: 10px 16px;
  border: 1px solid rgba(118, 255, 177, 0.7);
  border-radius: 10px;
  background: rgba(20, 90, 66, 0.86);
  color: #eafff4;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
}
.nuolan-day-btn:active { transform: translateY(1px); }
.nuolan-day-btn:disabled { opacity: 0.4; cursor: default; }
.nuolan-day-btn.is-next { border-color: rgba(255, 240, 163, 0.85); background: rgba(120, 96, 24, 0.88); color: #fff6d8; }
.nuolan-day-card {
  min-width: 320px;
  max-width: 380px;
  padding: 12px 16px;
  border: 1px solid rgba(118, 255, 177, 0.4);
  border-radius: 10px;
  background: rgba(8, 35, 28, 0.9);
  color: #e9fff5;
  font-size: 13.5px;
  line-height: 1.5;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.nuolan-day-title { font-size: 15px; font-weight: 900; color: #ffe08a; margin-bottom: 4px; }
.nuolan-day-row { font-weight: 700; }
.nuolan-day-row b { color: #7affd0; }
.nuolan-day-row b.is-bad { color: #ff9a7a; }
.nuolan-day-hint { margin-top: 4px; font-size: 12.5px; color: #bfe7d8; }
.nuolan-day-hint b { color: #ffe08a; }
.nuolan-day-more { margin-top: 5px; font-size: 12px; color: #9fd0c0; font-weight: 700; }
.nuolan-day-end { margin-top: 6px; font-weight: 900; font-size: 14px; }
.nuolan-day-end.is-ok { color: #7affb0; }
.nuolan-day-end.is-bad { color: #ff8a6a; }

@media (max-width: 720px) {
  .nuolan-daypager { bottom: calc(150px + env(safe-area-inset-bottom)); gap: 6px; }
  .nuolan-day-btn { min-width: 70px; padding: 8px 10px; font-size: 13px; }
  .nuolan-day-card { min-width: 180px; max-width: 200px; font-size: 12px; padding: 8px 10px; }
}

/* 主世界小地图：右下角圆形罗盘(相机跟随人物后，靠它把握全岛与自身位置) */
.nuolan-minimap {
  position: absolute;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(40, 110, 150, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  pointer-events: none;
  z-index: 8;
}
.nuolan-minimap-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nuolan-minimap-poi {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ee08a;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
}
.nuolan-minimap-poi.is-closed {
  background: #9fb0bd;
  opacity: 0.85;
}
.nuolan-minimap-me {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #ff5a3c;
  box-shadow: 0 0 6px 1px rgba(255, 90, 60, 0.85);
  transform: translate(-50%, -50%);
}
@media (max-width: 720px) {
  .nuolan-minimap { width: 104px; height: 104px; right: calc(12px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); }
}
