/* Shared Daisychain mission checklist. The glyph looks like a checkbox, but it
   is an output: rooms check themselves only when their evidence gate passes. */
[data-room-step] > .room-progress {
  z-index: 3;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 4px 7px 4px 5px;
  border: 1px solid rgba(214, 236, 225, .28);
  border-radius: 999px;
  color: #adc7bc;
  background: rgba(3, 17, 14, .62);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  font: 800 8px/1.1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .01em;
  white-space: nowrap;
}

[data-room-step] > .room-progress > i {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 5px;
  color: inherit;
  background: rgba(255, 255, 255, .025);
  font: normal 950 10px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-room-step][data-room-state="current"] > .room-progress {
  border-color: #ffd57a;
  color: #fff0af;
  background: rgba(82, 59, 22, .72);
  box-shadow: 0 0 14px rgba(255, 213, 122, .2), inset 0 1px rgba(255, 255, 255, .08);
}

[data-room-step][data-room-state="current"] > .room-progress > i {
  animation: daisychain-current-pulse 1.8s ease-in-out infinite;
}

[data-room-step][data-room-state="complete"] > .room-progress {
  border-color: #82e2b5;
  color: #baffd8;
  background: rgba(20, 73, 50, .78);
  box-shadow: 0 0 14px rgba(130, 226, 181, .17), inset 0 1px rgba(255, 255, 255, .08);
}

[data-room-step][data-room-state="missing"] > .room-progress {
  border-color: rgba(255, 177, 125, .58);
  color: #ffd0b2;
  background: rgba(74, 39, 28, .68);
}

.daisychain-rail > ol > li[data-room-step] {
  grid-template-rows: auto auto auto auto;
}

.daisychain-rail > ol > li[data-room-step] > .station-visual {
  grid-row: 1 / 5;
}

.daisychain-rail > ol > li[data-room-step] > .room-progress {
  grid-column: 2;
  grid-row: 4;
}

.quest-map > li[data-room-step] {
  grid-template-rows: auto auto auto auto auto !important;
}

.quest-map > li[data-room-step] > .station-visual {
  grid-row: 1 / 6 !important;
}

.quest-map > li[data-room-step] > .room-progress {
  grid-column: 2 !important;
  grid-row: 5;
  color: #d7e7df;
}

.quest-map > li[data-room-step][data-room-state="current"] > .room-progress {
  color: #fff0af;
}

.quest-map > li[data-room-step][data-room-state="complete"] > .room-progress {
  color: #baffd8;
}

@keyframes daisychain-current-pulse {
  0%, 100% { opacity: .72; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 620px) {
  [data-room-step] > .room-progress {
    gap: 4px;
    padding: 3px 6px 3px 4px;
    font-size: 7px;
  }

  [data-room-step] > .room-progress > i {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .daisychain-rail > ol > li[data-room-step] {
    min-height: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-room-step][data-room-state="current"] > .room-progress > i {
    animation: none;
  }
}
