/* 消防线 · experiment.html?fire=1 · HUD 背景与面板绿色主题 */

.fire-sim-page {
  --fire-sim-a: #0b5c52;
  --fire-sim-b: #042820;
  --fire-sim-edge: rgba(0, 255, 238, 0.24);
  --fire-sim-glow: rgba(0, 170, 153, 0.32);
}

.fire-sim-page .hotspot.is-need,
.fire-sim-page .sim-scene img.is-need {
  box-shadow: inset 0 0 0 2px rgba(0, 255, 238, 0.58);
}

.fire-sim-page .tool.is-held .tool__box,
.fire-sim-page .dock__tool.is-held .tool__box {
  box-shadow: 0 0 12px rgba(0, 255, 238, 0.75);
}

/* 漫游地图底图暂无绿色导出，保留 CSS 兜底 */
.fire-sim-page .roam-map__bg {
  opacity: 0;
}

.fire-sim-page .roam-map::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 32px;
  width: 266px;
  height: 229px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 92, 82, 0.96) 0%, rgba(4, 40, 32, 0.98) 100%);
  box-shadow: inset 0 0 0 1px var(--fire-sim-edge);
}

.fire-sim-page .guide .hud-title,
.fire-sim-page .guide .steps,
.fire-sim-page .guide .kit,
.fire-sim-page .guide .guide__collapse,
.fire-sim-page .lib .hud-title,
.fire-sim-page .lib .lib__row,
.fire-sim-page .lib .guide__collapse,
.fire-sim-page .dock .hud-title,
.fire-sim-page .dock .dock__tools,
.fire-sim-page .dock .dock__nav,
.fire-sim-page .hint .hint__person,
.fire-sim-page .hint .hint__text,
.fire-sim-page .roam-map .roam-map__title,
.fire-sim-page .roam-map .roam-map__viewport,
.fire-sim-page .roam-map .roam-map__acts,
.fire-sim-page .roam-map .guide__collapse {
  z-index: 1;
}

.fire-sim-page .hud-title {
  background: url("../assets/fire/sim/hud-title.svg") center / 100% 34px no-repeat;
}

.fire-sim-page .guide__collapse {
  background: #1a5c56;
}

.fire-sim-page .step {
  background: url("../assets/fire/sim/step-off.svg") left 7px / 230px 44px no-repeat;
}

.fire-sim-page .step.is-on,
.fire-sim-page .step.is-done {
  background: url("../assets/fire/sim/step-on.svg") left 7px / 230px 44px no-repeat;
}

.fire-sim-page .tool__box,
.fire-sim-page .dock__tool .tool__box {
  background: url("../assets/fire/sim/tool-bg.svg") center / 100% 100% no-repeat !important;
  box-shadow: none;
}

.fire-sim-page .tool.is-off .tool__box,
.fire-sim-page .dock__tool.is-off .tool__box {
  background: url("../assets/sim/tool-bg-off.svg") center / 100% 100% no-repeat !important;
}

.fire-sim-page .dock__nav-btn {
  background: rgba(7, 70, 75, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 255, 238, 0.45);
}

.fire-sim-page .dock__nav-btn:hover {
  background: rgba(0, 170, 153, 0.85);
}

.fire-sim-page .rail__bg,
.fire-sim-page .roam-map__btn-skin {
  filter: hue-rotate(132deg) saturate(0.88) brightness(1.02);
}

.fire-sim-page .phases {
  background: linear-gradient(180deg, rgba(11, 92, 82, 0.88) 0%, rgba(4, 40, 32, 0.9) 100%);
  border-color: rgba(0, 255, 238, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(112, 248, 187, 0.18),
    inset 0 -1px 0 rgba(0, 170, 153, 0.28);
}

.fire-sim-page .phases::before,
.fire-sim-page .phases::after {
  background: #40ffd4;
  box-shadow: 0 0 8px rgba(64, 255, 212, 0.65);
}

.fire-sim-page .phase.is-on {
  text-shadow: 0 0 10px rgba(0, 255, 238, 0.28);
}

.fire-sim-page .phase.is-on::after {
  background: linear-gradient(90deg, transparent, #70f8bb 28%, #70f8bb 72%, transparent);
  box-shadow: 0 0 8px rgba(112, 248, 187, 0.55);
}

.fire-sim-page .phase.is-on .phase__idx {
  color: #042820;
  background: #40ffd4;
  border-color: #70f8bb;
  box-shadow:
    0 0 0 3px rgba(64, 255, 212, 0.18),
    0 0 12px rgba(64, 255, 212, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.fire-sim-page .phase__idx {
  background: rgba(7, 70, 75, 0.65);
  border-color: rgba(112, 248, 187, 0.45);
}

.fire-sim-page .phase.is-done:not(.is-on) .phase__idx {
  background: rgba(0, 170, 153, 0.28);
  border-color: #40ffd4;
}

.fire-sim-page .roam-map__title {
  background: linear-gradient(270deg, rgba(7, 70, 75, 0) 0%, rgba(0, 170, 153, 0.75) 50%, rgba(7, 70, 75, 0) 100%);
}

.fire-sim-page .roam-map__viewport {
  background: #063028;
}

.fire-sim-page .roam-switch__btn {
  border-color: rgba(0, 255, 238, 0.32);
  background:
    linear-gradient(180deg, rgba(112, 248, 187, 0.08) 0%, rgba(112, 248, 187, 0) 18%),
    linear-gradient(0deg, #07464b 0%, #042820 100%);
  box-shadow: inset 0 0 18px rgba(0, 170, 153, 0.28);
}

.fire-sim-page .roam-switch__btn::after {
  background: linear-gradient(90deg, rgba(64, 255, 212, 0) 0%, rgba(64, 255, 212, 0.85) 50%, rgba(64, 255, 212, 0) 100%);
}

.fire-sim-page .roam-switch.is-open .roam-switch__btn {
  box-shadow: inset 0 0 22px rgba(0, 170, 153, 0.34);
}

.fire-sim-page .roam-switch__tag {
  background: linear-gradient(270deg, rgba(7, 70, 75, 0) 0%, rgba(7, 70, 75, 0.85) 50%, rgba(7, 70, 75, 0) 100%);
}

.fire-sim-page .roam-switch__divider {
  background: linear-gradient(180deg, rgba(0, 255, 238, 0) 0%, rgba(112, 248, 187, 0.55) 50%, rgba(0, 255, 238, 0) 100%);
}

.fire-sim-page .roam-switch__chev {
  border-left-color: rgba(0, 255, 238, 0.22);
  background: linear-gradient(180deg, rgba(0, 170, 153, 0.16) 0%, rgba(4, 40, 32, 0.08) 100%);
}

.fire-sim-page .roam-switch.is-open .roam-switch__chev {
  background: linear-gradient(180deg, rgba(0, 170, 153, 0.28) 0%, rgba(4, 40, 32, 0.04) 100%);
}

.fire-sim-page .roam-switch__menu {
  background:
    linear-gradient(180deg, rgba(112, 248, 187, 0.08) 0%, rgba(112, 248, 187, 0) 12%),
    linear-gradient(0deg, #07464b 0%, #042820 100%);
  border-color: rgba(0, 255, 238, 0.28);
  box-shadow: inset 0 0 20px rgba(0, 170, 153, 0.2);
}

.fire-sim-page .roam-switch__option.is-active {
  background: linear-gradient(90deg, rgba(0, 170, 153, 0.2) 0%, rgba(0, 170, 153, 0.06) 100%);
}

.fire-sim-page .docs__item {
  background: linear-gradient(180deg, var(--fire-sim-a) 0%, var(--fire-sim-b) 100%);
  box-shadow: inset 0 0 0 1px var(--fire-sim-edge);
}

.fire-sim-page .docs__item:hover {
  box-shadow: inset 0 0 20px var(--fire-sim-glow);
}

.fire-sim-page .draw-view__name {
  color: #b8fff4;
}

.fire-sim-page .draw-view__stage {
  background: #031816;
}

.fire-sim-page .draw-view__nav {
  color: #00ffee;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 238, 0.7);
}

.fire-sim-page .draw-view__nav:hover {
  background: rgba(0, 255, 238, 0.12);
}

.fire-sim-page .hint-pop__box {
  background: url("../assets/fire/sim/player-frame.svg") center / 100% 100% no-repeat;
}

/* 715 弹窗 · 绿色框体右上关闭区较蓝版更靠内 */
.fire-sim-page .hint-pop__box > .player__close {
  right: calc(var(--hint-pop-w) * 32 / 1200);
  top: 0;
}

.fire-sim-page .player__box > .player__close {
  right: 0;
  top: 0;
}

.fire-sim-page .hint-pop__text {
  color: #d4fff8;
}

.fire-sim-page .exam-submit:hover {
  filter: brightness(1.14) drop-shadow(0 0 14px rgba(0, 255, 238, 0.35));
}

.fire-sim-page .player__body > p {
  color: #e6fffb;
}

/* 资料库 · 弹窗内一行三卡 · 流式布局（禁止 transform 缩放） */
.fire-sim-page .player__body:has(.fire-kcards-shell) {
  overflow: hidden;
}

.fire-sim-page .player__body .fire-kcards-shell {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 6px 12px;
  min-height: 0;
}

.fire-sim-page .player__body .fire-kcards--player {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 488px;
  gap: 67.5px;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 170, 153, 0.45) transparent;
}

.fire-sim-page .player__body .fire-kcard {
  flex: 0 0 435px;
  width: 435px;
  height: 488px;
  padding: 36px 28px 24px;
}

.fire-sim-page .player__body .fire-kcard__frame {
  left: 0;
  top: 0;
  width: 435px;
  height: 488px;
}

.fire-sim-page .player__body .fire-kcard__title {
  font-size: 18px;
  line-height: 24px;
  white-space: normal;
  word-break: break-word;
}

.fire-sim-page .player__body .fire-kcard__body {
  width: 378px;
  gap: 16px;
}

.fire-sim-page .player__body .fire-kcard__hero {
  width: 378px;
  height: 220px;
}

.fire-sim-page .player__body .fire-kcard__img {
  width: 220px;
  height: 220px;
}

.fire-sim-page .player__body .fire-kcard__excerpt {
  width: 378px;
  height: auto;
  min-height: 0;
  font-size: 14px;
  line-height: 22px;
}

.fire-sim-page .player__body .fire-kcards__bar {
  flex-shrink: 0;
  margin-top: 6px;
}

.fire-sim-page .player__body .kcard-view__copy {
  flex: 0 1 420px;
  min-width: 280px;
}

.fire-sim-page .player__body .kcard-view__text {
  font-size: 14px;
  line-height: 26px;
}

.fire-sim-page .player__body .draw-view__idx {
  color: #b8fff4;
}
