.hall-discovery-markers {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.hall-discovery-pin {
  position: absolute;
  top: var(--discovery-y);
  left: var(--discovery-x);
  display: grid;
  place-items: center;
  width: var(--discovery-target, 44px);
  height: var(--discovery-target, 44px);
  box-sizing: border-box;
  padding: 0;
  transform: translate(-50%, -50%);
  color: #ffe5a3;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.hall-discovery-dot {
  position: relative;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: clamp(14px, 2vw, 18px);
  height: clamp(14px, 2vw, 18px);
  border: 1px solid #ffe3a8c4;
  border-radius: 50%;
  background: #21180e9e;
  box-shadow: 0 0 4px #120c079c;
  font: 700 clamp(8px, 1.3vw, 11px)/1 system-ui, sans-serif;
}

.hall-discovery-pin.is-discovered .hall-discovery-dot {
  color: #eef2c6;
  background: #1b3429a6;
  border-color: #d0db8dbd;
}

.entrance-panorama[data-explore="true"] .hall-discovery-pin::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--discovery-leader);
  height: 1px;
  background: linear-gradient(90deg, #ffe4a5ed, #ffe4a550);
  transform: rotate(var(--discovery-angle));
  transform-origin: left center;
  pointer-events: none;
}

.entrance-panorama[data-explore="true"] .hall-discovery-dot {
  border-color: #ffe4a5;
  background: #291d0eeb;
  box-shadow: 0 0 0 2px #21180e99, 0 0 8px #ffd586bd;
}

.entrance-panorama[data-explore="true"] .is-discovered .hall-discovery-dot {
  border-color: #e4ecaf;
  background: #233b2aeb;
  box-shadow: 0 0 0 2px #1b342980, 0 0 8px #d0db8da1;
}

.hall-discovery-pin:focus-visible {
  z-index: 1;
  outline: 2px solid #ffe5a3;
  outline-offset: -3px;
}

.entrance-panorama .hall-discovery-pin:focus-visible .hall-discovery-dot {
  color: #20150c;
  background: #ffe5a3;
}

@media (hover: hover) {
  .entrance-panorama .hall-discovery-pin:hover .hall-discovery-dot {
    color: #20150c;
    background: #ffe5a3;
  }
}

.hall-discovery-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 6px 0 0;
}

.hall-discovery-list[hidden],
.hall-discovery-markers[hidden] {
  display: none;
}

.hall-discovery-list-button {
  min-height: 44px;
  padding: 4px 9px;
  color: #ffe3a9;
  border: 1px solid #8c7651;
  border-radius: 4px;
  background: #24221a;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.hall-discovery-list-button.is-discovered {
  color: #e4ecaf;
  border-color: #8b9969;
}

.hall-discovery-dialog {
  --dialog-inset: clamp(18px, 5vw, 35px);
  position: fixed;
  box-sizing: border-box;
  width: min(620px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0 var(--dialog-inset) var(--dialog-inset);
  overflow: auto;
  overscroll-behavior: contain;
  color: #f6e6c4;
  border: 1px solid #987547;
  border-radius: 12px;
  background: #221b14;
  box-shadow: 0 15px 80px #000b;
}

.hall-discovery-dialog::backdrop {
  background: #0d0b09bb;
}

body:has(.hall-discovery-dialog[open]) {
  overflow: hidden;
}

.hall-discovery-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: calc(var(--dialog-inset) * .7) 0 10px;
  background: #221b14;
}

.hall-discovery-dialog h2 {
  margin: 0;
  color: #ffe3a9;
  line-height: 1.1;
}

.hall-discovery-dialog .hall-discovery-tale {
  margin: 0;
  line-height: 1.55;
}

.hall-discovery-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid #8c7651;
  border-radius: 50%;
  background: #2e261c;
  color: #ffe3a9;
  font: 24px/1 system-ui, sans-serif;
  cursor: pointer;
}

.hall-discovery-close:focus-visible,
.hall-discovery-list-button:focus-visible,
.tea-console button:focus-visible,
.tea-terminal:focus-visible {
  outline: 2px solid #ffe5a3;
  outline-offset: 2px;
}

.tea-console {
  margin-top: 22px;
}

.tea-console h3 {
  margin: 0 0 8px;
  color: #e4c080;
  font: 700 .86rem/1.3 system-ui, sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.tea-readings {
  margin: 0;
  border-top: 1px solid #574732;
}

.tea-reading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #574732;
  font-size: .94rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tea-reading dd {
  margin: 0;
  color: #ffe3a9;
  overflow-wrap: anywhere;
}

.tea-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tea-controls .btn {
  min-height: 44px;
}

.tea-controls .btn[aria-disabled="true"] {
  opacity: .6;
  cursor: default;
}

.tea-terminal {
  box-sizing: border-box;
  max-height: min(35dvh, 11rem);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 16px 0 0;
  padding: 12px 12px 12px 34px;
  border: 1px solid #626643;
  border-radius: 4px;
  background: #161c13;
  color: #e3e9cd;
  font: .83rem/1.5 ui-monospace, monospace;
  overflow-wrap: anywhere;
}

.tea-diagnostic-status {
  color: #ebcc90;
}

.tea-diagnostic-status:empty {
  margin: 0;
}

.hall-discovery-dialog [hidden] {
  display: none;
}

@media (forced-colors: active) {
  .hall-discovery-dot {
    border: 1px solid ButtonText;
    background: ButtonFace;
  }
}
