@font-face {
  font-family: "Mackin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/mackin-latin-400-normal.woff2") format("woff2");
}
:root {
  --canvas-opacity: 1;
}

* {
  margin: 0;
  padding: 0;
  touch-action: none;
}

body {
  overflow: hidden;
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

canvas {
  opacity: var(--canvas-opacity);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  pointer-events: none;
}

button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.hidden {
  display: none !important;
}

.spacer {
  flex-grow: 1;
}

#ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (min-width: 768px) {
  #ui {
    zoom: 1.2;
  }
}
#ui * {
  pointer-events: auto;
}

.walkHint {
  position: absolute;
  top: max(60px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
}

/* First-run trackpad gesture coach.
 *
 * Three looping animations of the gestures that drive first-person movement,
 * sat above the control bar. Inert to the pointer at every level: it floats
 * over the floor, which is the click target for walking, and a coach that
 * swallowed that click would be teaching one thing while blocking another.
 *
 * The loops oscillate rather than repeat one-way because each caption names
 * both directions - the movement itself is the legend. */
#gestureCoach {
  position: absolute;
  left: 50%;
  /* Bottom edge, not floating mid-screen: the walk coach pins its ring to a
   * floor point around two thirds down the view, and the two teaching
   * overlays reading as one pile helps nobody. */
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  pointer-events: none;
  transition: opacity 420ms ease;
}
#gestureCoach.dismissing {
  opacity: 0;
}

#gestureCoach * {
  pointer-events: none;
}

.gestureHint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 11px 16px 9px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.55);
  transition: opacity 420ms ease, transform 420ms ease;
  /* Set the moment its gesture is used: the hint that has served its
   * purpose leaves, the ones still unlearned stay. */
}
.gestureHint.retired {
  opacity: 0;
  transform: translateY(8px);
}

.gesturePad {
  width: 58px;
  height: 42px;
  display: block;
}

.gesturePadOutline {
  /* Faint face as well as an edge - at this size a hairline outline alone
   * disappears against the card and leaves two dots floating in the dark. */
  fill: rgba(255, 255, 255, 0.07);
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
}

.gestureFingers {
  fill: #fff;
  /* Trailing copy of the same motion, a few frames behind, which reads as
   * direction the way a single pair of dots sliding back and forth doesn't. */
}
.gestureFingers.ghost {
  fill: rgba(255, 255, 255, 0.28);
  animation-delay: -140ms !important;
}
.gestureFingers.scroll {
  animation: gestureScrollY 2.4s ease-in-out infinite;
}
.gestureFingers.turn {
  animation: gestureScrollX 2.4s ease-in-out infinite;
}
.gestureFingers.pinch-left {
  animation: gesturePinchLeft 2.4s ease-in-out infinite;
}
.gestureFingers.pinch-right {
  animation: gesturePinchRight 2.4s ease-in-out infinite;
}

.gestureText {
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E0DCDD;
  white-space: nowrap;
}

/* SVG user units, so these track the 64x46 viewBox rather than CSS pixels. */
@keyframes gestureScrollY {
  0%, 100% {
    transform: translateY(-7px);
  }
  50% {
    transform: translateY(7px);
  }
}
@keyframes gestureScrollX {
  0%, 100% {
    transform: translateX(-9px);
  }
  50% {
    transform: translateX(9px);
  }
}
@keyframes gesturePinchLeft {
  0%, 100% {
    transform: translateX(-7px);
  }
  50% {
    transform: translateX(3px);
  }
}
@keyframes gesturePinchRight {
  0%, 100% {
    transform: translateX(7px);
  }
  50% {
    transform: translateX(-3px);
  }
}
/* Motion is the whole message here, so when it is unwelcome the hints hold
 * their spread-apart pose - still legible as up/down, sideways and pinch. */
@media (prefers-reduced-motion: reduce) {
  .gestureFingers {
    animation: none !important;
  }
  .gestureFingers.ghost {
    display: none;
  }
}
/* Phone/narrow view: the coach is trackpad-only, so it never shows there -
 * but keep it out of the way if the window is simply narrow on desktop. */
@media (max-width: 767px) {
  #gestureCoach {
    display: none;
  }
}
/* Door plates - a door-sized quad standing in each doorway's own plane,
 * highlighted on hover. Same coordinate-space reasoning as the walk coach:
 * parented to the canvas, not #ui, because the corners come from
 * `worldToScreen` and #ui carries a `zoom` at desktop widths. Fully inert to
 * the pointer - the click is handled by the collision ray underneath. */
.doorPlates {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.doorPlatesSvg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.doorPlate {
  display: none;
  fill: rgba(255, 255, 255, 0.1);
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.5;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 160ms ease-out;
}
.doorPlate.hovered {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .doorPlate {
    transition: none;
  }
}
/* First-run click-to-move coach mark.
 *
 * Parented to the canvas container rather than #ui: it positions from
 * `worldToScreen`, which returns canvas CSS pixels, and #ui carries a
 * `zoom` at desktop widths that would scale those coordinates. Fully
 * inert to the pointer - the floor click it is teaching has to reach
 * the canvas underneath. */
.walkCoach {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 220ms ease-out;
}
.walkCoach.visible {
  opacity: 1;
}

.walkCoachSvg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  /* The ring is white at 60% fill; without this it disappears into pale
   * flooring, which is most of them. */
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
}

.walkCoachLabel {
  position: absolute;
  transform: translate(-50%, -100%);
  background-color: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  /* Hairline stem tying the bubble to the ring below it, so the pairing
   * reads as one object rather than a caption that happens to be nearby. */
}
.walkCoachLabel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 1px;
  height: 9px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
}

@media (prefers-reduced-motion: reduce) {
  .walkCoach {
    transition: none;
  }
}
/* branding link for third-party embeds */
#viewerBranding {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms ease;
  color: #E0DCDD;
}
#viewerBranding:hover {
  color: #fff;
}
#viewerBranding > svg {
  height: 16px;
  width: auto;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.3);
}
#viewerBranding > span {
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.4), 1px -1px 0 rgba(0, 0, 0, 0.4), -1px 1px 0 rgba(0, 0, 0, 0.4), 1px 1px 0 rgba(0, 0, 0, 0.4);
}

/* poster */
#poster {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--poster-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* loadingWrap */
#loadingWrap {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translate(-50%, 0);
  width: min(380px, 100vw - 32px);
  display: flex;
  flex-direction: column;
  padding: 16px;
}
#loadingWrap > #loadingText {
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}
#loadingWrap > #loadingBar {
  width: 100%;
  height: 10px;
  margin-top: 8px;
  border-radius: 4px;
  overflow: hidden;
}

/* controlsWrap */
/* Minimap */
#minimap {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  --minimap-accent: #B4CBF0;
}
#minimap .minimapClip {
  position: relative;
  width: 210px;
  aspect-ratio: 1166/984;
  border-radius: 12px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}
#minimap .minimapWorld {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  transition: transform 0.18s ease;
}
#minimap .minimapImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}
#minimap .minimapMarker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}
#minimap .minimapMarker > svg {
  position: absolute;
  left: -40px;
  top: -40px;
  width: 80px;
  height: 80px;
  overflow: visible;
}
#minimap .minimapRoomBtn {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--mm-inv-zoom, 1));
  transform-origin: center center;
  white-space: nowrap;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.62);
  color: #E0DCDD;
  cursor: pointer;
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
#minimap .minimapRoomBtn:hover {
  background-color: rgba(0, 0, 0, 0.82);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
#minimap .minimapRoomBtn.active {
  cursor: default;
  background-color: rgba(0, 0, 0, 0.42);
  border-color: var(--minimap-accent);
  color: #fff;
}
#minimap.calibrating .minimapRoomBtn {
  pointer-events: none;
  opacity: 0.25;
}
#minimap .minimapChrome {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#minimap .minimapBtn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.4);
  color: #E0DCDD;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
#minimap .minimapBtn:hover {
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
}

@media (max-width: 767px) {
  #minimap {
    zoom: 0.5;
  }
  #enterFullscreen,
  #exitFullscreen {
    display: none !important;
  }
}
/* Minimap calibrate mode */
#minimap.calibrating .minimapClip {
  cursor: crosshair;
  outline: 2px solid #B4CBF0;
  outline-offset: 2px;
}

#minimapCal {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 20;
  width: min(420px, 92vw);
  padding: 14px 16px;
  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #E0DCDD;
  font-size: 13px;
  line-height: 1.5;
  backdrop-filter: blur(8px);
}
#minimapCal .cal-title {
  color: #fff;
  margin-bottom: 6px;
}
#minimapCal .cal-step {
  color: #AAA;
}
#minimapCal .cal-count {
  margin: 6px 0;
}
#minimapCal .cal-active {
  background-color: rgba(180, 203, 240, 0.1);
  border: 1px solid rgba(180, 203, 240, 0.35);
  border-radius: 8px;
  padding: 10px 10px 4px;
  margin-bottom: 12px;
}
#minimapCal .cal-active .cal-step {
  color: #E0DCDD;
}
#minimapCal .cal-sep {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 12px 0;
}
#minimapCal .cal-json {
  width: 100%;
  margin: 4px 0;
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 8px;
  resize: none;
}
#minimapCal .cal-hint {
  color: #666;
  font-size: 11px;
}
#minimapCal .cal-facing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
#minimapCal .cal-facing-val {
  color: #AAA;
  font-size: 12px;
}
#minimapCal .cal-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
#minimapCal button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.06);
  color: #E0DCDD;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  cursor: pointer;
}
#minimapCal button:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
#minimapCal button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#controlsWrap {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
#controlsWrap.faded-in {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}
#controlsWrap.faded-out {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s ease-out;
}
#controlsWrap > #timelineContainer {
  display: none;
  height: 30px;
  cursor: pointer;
}
#controlsWrap > #timelineContainer > #line {
  width: 100%;
  height: 50%;
  border-bottom: 4px solid #d9d9d9;
}
#controlsWrap > #timelineContainer > #handle {
  position: absolute;
  top: 16.5px;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  background-color: #FFAF50;
}
#controlsWrap > #timelineContainer > #time {
  position: absolute;
  top: 0;
  padding: 2px 4px;
  transform: translate(-50%, -100%);
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  color: #fff;
  background-color: rgba(40, 40, 40, 0.5);
}
#controlsWrap > #buttonsContainer {
  display: flex;
  gap: 8px;
}
#controlsWrap > #buttonsContainer .buttonGroup {
  display: flex;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}
#controlsWrap > #buttonsContainer .buttonGroup:not(:has(> :not(.hidden))) {
  display: none;
}
#controlsWrap > #buttonsContainer {
  /* controlButton */
}
#controlsWrap > #buttonsContainer .controlButton {
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: pointer;
  color: #E0DCDD;
  background-color: transparent;
}
#controlsWrap > #buttonsContainer .controlButton:hover {
  color: #fff;
}
#controlsWrap > #buttonsContainer .controlButton {
  /* icon styling */
}
#controlsWrap > #buttonsContainer .controlButton > svg {
  display: block;
  margin: auto;
}
#controlsWrap > #buttonsContainer .controlButton > svg > g.stroke {
  fill: none;
  stroke: black;
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.4;
}
#controlsWrap > #buttonsContainer .controlButton > svg > g.fill {
  fill: currentColor;
  stroke: none;
}
#controlsWrap > #buttonsContainer .controlButton {
  /* active highlight for simple toggle buttons (e.g. voxel overlay) */
}
#controlsWrap > #buttonsContainer .controlButton.active:not(.toggle) {
  color: #B4CBF0;
}
#controlsWrap > #buttonsContainer .controlButton {
  /* camera toggle styling */
}
#controlsWrap > #buttonsContainer .controlButton.toggle {
  background: linear-gradient(90deg, transparent 0%, transparent 50%, #B4CBF0 50%, #B4CBF0 100%);
  background-size: 200% 100%;
  background-position: 100% 0%;
  background-repeat: no-repeat;
  transition: background-position 0.1s ease-in-out;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.left {
  border-radius: 4px 0px 0px 4px;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.left:not(.active) {
  background-position: 0% 0%;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.middle {
  border-radius: 0;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.middle:not(.active) {
  background-position: 0% 0%;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.right {
  border-radius: 0px 4px 4px 0px;
}
#controlsWrap > #buttonsContainer .controlButton.toggle.right:not(.active) {
  background-position: 200% 0%;
}

/* settingsPanel */
#settingsPanel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E0DCDD;
  background-color: rgba(51, 51, 51, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#settingsPanel > .settingsRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
}
#settingsPanel > .settingsRow > button {
  flex-grow: 1;
  height: 34px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  color: #AAA;
  background-color: rgba(255, 255, 255, 0.04);
  transition: background-color 250ms ease, color 250ms ease;
}
#settingsPanel > .settingsRow > button:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}
#settingsPanel > .settingsRow > div {
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  cursor: pointer;
  color: #AAA;
}
#settingsPanel > .settingsRow > div.toggleSwitch {
  padding: 0 4px;
}
#settingsPanel > .settingsRow > div.toggleSwitch .toggleTrack {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background-color 200ms ease;
}
#settingsPanel > .settingsRow > div.toggleSwitch .toggleTrack .toggleThumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #777;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 200ms ease, background-color 200ms ease;
}
#settingsPanel > .settingsRow > div.toggleSwitch.active .toggleTrack {
  background-color: rgba(180, 203, 240, 0.35);
}
#settingsPanel > .settingsRow > div.toggleSwitch.active .toggleTrack .toggleThumb {
  transform: translateX(16px);
  background-color: #B4CBF0;
}
#settingsPanel > .settingsRow > div:hover {
  color: #E0DCDD;
}
#settingsPanel > .divider {
  width: 100%;
  height: 1px;
  margin: 8px 0;
  background-color: rgba(255, 255, 255, 0.08);
}

/* infoPanel */
#infoPanel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
#infoPanel > #infoPanelContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: min(80vh, 640px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #E0DCDD;
  background-color: rgba(51, 51, 51, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#infoPanel > #infoPanelContent > #viewerTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  flex-shrink: 0;
  background-color: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  white-space: nowrap;
  color: #E0DCDD;
}
#infoPanel > #infoPanelContent > #viewerTitle > svg {
  height: 20px;
  width: auto;
  flex-shrink: 0;
}
#infoPanel > #infoPanelContent > #viewerTitle > svg > g.stroke {
  fill: black;
  stroke: black;
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.4;
}
#infoPanel > #infoPanelContent > #viewerTitle > svg > g.fill {
  fill: #B4CBF0;
  stroke: none;
}
#infoPanel > #infoPanelContent > #viewerTitle > .title-name {
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
#infoPanel > #infoPanelContent > #viewerTitle > .title-version {
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #AAA;
  margin-left: -2px;
}
#infoPanel > #infoPanelContent > #viewerTitle[href] {
  cursor: pointer;
  transition: color 150ms ease;
}
#infoPanel > #infoPanelContent > #viewerTitle[href]:hover {
  color: #fff;
}
#infoPanel > #infoPanelContent > #infoPanels {
  padding: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
#infoPanel > #infoPanelContent > #infoPanels::-webkit-scrollbar {
  width: 6px;
}
#infoPanel > #infoPanelContent > #infoPanels::-webkit-scrollbar-track {
  background: transparent;
}
#infoPanel > #infoPanelContent > #infoPanels::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
#infoPanel > #infoPanelContent > #infoPanels h1 {
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 0 8px 0;
  color: #B4CBF0;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 5px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  font-size: 13px;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item > .control-action {
  text-align: left;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item > .control-key {
  text-align: right;
  color: #AAA;
  font-size: 12px;
}
#infoPanel > #infoPanelContent > #infoPanels .control-item:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.03);
}
#infoPanel > #infoPanelContent > #infoPanels .control-spacer {
  margin: 14px 0;
}
#infoPanel > #infoPanelContent > #tabs {
  display: flex;
  gap: 24px;
  padding: 8px 16px;
  justify-content: center;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
#infoPanel > #infoPanelContent > #tabs > .tab {
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #AAA;
  transition: color 150ms ease, border-color 150ms ease;
}
#infoPanel > #infoPanelContent > #tabs > .tab:hover {
  color: #fff;
}
#infoPanel > #infoPanelContent > #tabs > .tab.active {
  color: #fff;
  border-bottom-color: #B4CBF0;
}

@media (max-width: 767px) {
  #infoPanel > #infoPanelContent {
    zoom: 0.75;
  }
}
#joystickBase {
  position: absolute;
  width: 56px;
  height: 100px;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  touch-action: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2666666667) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.2666666667) 100%);
  background-color: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease;
}
#joystickBase > #joystick {
  position: absolute;
  left: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  touch-action: none;
  background-color: rgba(255, 255, 255, 0.5333333333);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: left 0.1s ease;
}
#joystickBase.mode-2d {
  width: 100px;
  height: 100px;
  border-radius: 50px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.2666666667) 100%);
  background-color: rgba(0, 0, 0, 0.2);
}
#joystickBase.mode-2d > #joystick {
  left: 30px;
}

/* xr WebGL-required modal */
#xrModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
}
#xrModal > #xrModalContent {
  width: min(360px, 100vw - 32px);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E0DCDD;
  background-color: rgba(51, 51, 51, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
#xrModal > #xrModalContent > h2 {
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
#xrModal > #xrModalContent > p {
  font-size: 13px;
  line-height: 1.4;
  color: #E0DCDD;
  margin-bottom: 16px;
}
#xrModal > #xrModalContent > #xrModalButtons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
#xrModal > #xrModalContent > #xrModalButtons > button {
  height: 34px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #AAA;
  background-color: rgba(255, 255, 255, 0.04);
  transition: background-color 250ms ease, color 250ms ease;
}
#xrModal > #xrModalContent > #xrModalButtons > button:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}
#xrModal > #xrModalContent > #xrModalButtons > button#xrModalOk {
  color: #fff;
  background-color: rgba(180, 203, 240, 0.7);
  border-color: rgba(180, 203, 240, 0.8);
}
#xrModal > #xrModalContent > #xrModalButtons > button#xrModalOk:hover {
  background-color: #B4CBF0;
}

#tooltip {
  display: none;
  position: absolute;
  border-radius: 4px;
  padding: 4px 4px;
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E0DCDD;
  background-color: #282828;
}

/* Screen-space annotation labels + the shared tooltip. Parented as a sibling
 * of the canvas (see annotations.ts) so the `zoom` on #ui doesn't scale the
 * `worldToScreen` pixel coordinates the labels are positioned with.
 *
 * No z-index: it sits between the canvas and #ui in DOM order and all three
 * are position: fixed with `z-index: auto`, so paint order alone puts labels
 * over the scene and under the UI chrome. A negative z-index here would drop
 * the whole layer behind the canvas now that it is no longer nested in #ui's
 * stacking context. */
#annotations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#annotations * {
  pointer-events: auto;
}

/* annotationNav */
#annotationNav {
  pointer-events: none;
}
#annotationNav.faded-in {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}
#annotationNav.faded-out {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s ease-out;
}
#annotationNav > button {
  pointer-events: auto;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E0DCDD;
  background-color: rgba(0, 0, 0, 0.3);
}
#annotationNav > button:hover {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
}
#annotationNav > button > svg {
  display: block;
}
#annotationNav > button > svg > g.stroke {
  fill: none;
  stroke: black;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.4;
}
#annotationNav > button > svg > g.fill {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#annotationNav.desktop {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.6);
}
#annotationNav.desktop > button {
  width: 34px;
  height: 34px;
  background-color: transparent;
}
#annotationNav.desktop > button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
#annotationNav.desktop > #annotationInfo {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  white-space: nowrap;
  width: 240px;
}
#annotationNav.desktop > #annotationInfo > #annotationNavTitle {
  font-family: "Mackin", Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}
#annotationNav.touch {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#annotationNav.touch > #annotationInfo {
  display: none;
}
#annotationNav.touch > button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.3);
}
#annotationNav.touch > button:active {
  background-color: rgba(0, 0, 0, 0.4);
}
#annotationNav.touch > #annotationPrev {
  left: max(0px, env(safe-area-inset-left));
  border-radius: 0 6px 6px 0;
}
#annotationNav.touch > #annotationNext {
  right: max(0px, env(safe-area-inset-right));
  border-radius: 6px 0 0 6px;
}

/*# sourceMappingURL=index.css.map */