:root {
  --ink: #23313e;
  --muted: #72808c;
  --brand: #4449de;
  --line: #e3e7eb;
  --paper: #f7f8fa;
  --panel: rgba(255, 255, 255, 0.94);
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #7377f2;
  outline-offset: 4px;
}
button {
  transition:
    background 0.18s,
    box-shadow 0.18s,
    color 0.18s;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.masthead {
  height: 96px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 155px;
  height: 49px;
  object-fit: contain;
}
.brand > span {
  font-size: 13px;
  font-weight: 600;
  border-left: 1px solid #ccd3dc;
  padding-left: 16px;
}
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
}
.event-meta span:first-child {
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
}
.edition {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.edition i,
.live-dot {
  width: 6px;
  height: 6px;
  background: #7b9381;
  display: inline-block;
  border-radius: 50%;
}
.sidebar {
  position: fixed;
  left: 32px;
  top: 113px;
  bottom: 76px;
  width: 244px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: auto;
  scrollbar-width: thin;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.55px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #7a8893;
}
.intro h1 {
  font-size: 39px;
  font-weight: 500;
  letter-spacing: -1.9px;
  line-height: 1.08;
  margin: 0 0 16px;
}
.intro > p:last-child {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}
.search-wrap {
  position: relative;
  z-index: 25;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 10px;
  box-shadow: 0 2px 3px #20344a03;
}
.search-box svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: #81909a;
  stroke-width: 1.6;
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
  color: var(--ink);
}
.search-box:focus-within {
  border-color: #8387ef;
  box-shadow: 0 0 0 3px #555ee013;
}
.search-box kbd {
  font: 10px inherit;
  color: #8b98a2;
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 4px;
}
.search-box input::placeholder {
  color: #85909b;
}
#search-results {
  max-height: 260px;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 6px;
  padding: 4px;
  box-shadow: 0 10px 30px #2434420d;
}
#search-results button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  border: 0;
  background: none;
  padding: 10px 7px;
  border-radius: 5px;
  font-size: 11px;
}
#search-results button:hover,
#search-results button:focus-visible {
  background: #f0f1fb;
}
#search-results strong {
  color: var(--brand);
  font-size: 10px;
  min-width: 30px;
}
#search-results p {
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.view-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.view-nav > .eyebrow {
  margin-bottom: 6px;
}
.view-nav button {
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 12px 11px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.view-nav button:hover {
  background: #edf0f4;
}
.view-nav button[aria-pressed="true"] {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 3px 6px #203a4a05;
  color: var(--brand);
}
.view-nav small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.nav-icon {
  font-size: 20px;
  width: 25px;
  text-align: center;
  font-weight: 400;
  color: #8a99a7;
}
.view-nav button[aria-pressed="true"] .nav-icon {
  color: var(--brand);
}
.nav-arrow {
  margin-left: auto;
  color: #8d99a5;
  font-size: 15px;
  font-weight: 400;
}
.sidebar-note {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  color: #647480;
}
.note-mark {
  font-size: 24px;
  color: #9daab4;
}
.sidebar-note p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.sidebar-note p > span {
  color: #94a0a9;
  font-size: 10px;
}
#scene-view {
  position: fixed;
  left: 304px;
  right: 24px;
  top: 96px;
  bottom: 67px;
  border: 1px solid #dce2e8;
  border-radius: 18px;
  overflow: hidden;
  background: #e8ecef;
  box-shadow:
    inset 0 0 0 1px #ffffffaa,
    0 14px 40px #34405206;
  isolation: isolate;
}
/* Loading overlay: covers the scene until the first frame has rendered. */
.loading {
  position: absolute;
  inset: 0;
  z-index: 30; /* above the canvas and scene controls */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #e8ecef;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.2px;
  transition: opacity 0.55s ease, visibility 0.55s;
}
.loading p {
  margin: 0;
}
.loading .spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #d2d8de;
  border-top-color: var(--brand);
  animation: spin 0.9s linear infinite;
}
.loading.failed .spinner {
  animation: none;
  border-top-color: #c34a3f;
}
.loading.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .loading .spinner { animation-duration: 2.4s; }
}
#c {
  position: absolute;
  inset: 0;
  display: block;
  touch-action: none;
  width: 100%;
  height: 100%;
}
.scene-toolbar,
.scene-bottom {
  position: absolute;
  z-index: 10;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.scene-toolbar {
  top: 20px;
}
.scene-toolbar > *,
.scene-bottom > * {
  pointer-events: auto;
}
.view-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #546575;
  background: #f4f6f8ca;
  padding: 8px 10px;
  border-radius: 7px;
  backdrop-filter: blur(10px);
}
.view-tag {
  font-size: 9px;
  letter-spacing: 0.6px;
  border-left: 1px solid #bac5cf;
  padding-left: 8px;
  margin-left: 5px;
  color: #8a97a3;
}
.display-tools {
  display: flex;
  gap: 3px;
  background: #ffffffb8;
  padding: 4px;
  border: 1px solid #fff;
  border-radius: 9px;
  backdrop-filter: blur(12px);
}
.display-tools button {
  border: 0;
  background: none;
  color: #72818e;
  border-radius: 5px;
  font-size: 10px;
  padding: 7px 11px;
}
.display-tools button:hover {
  background: #fff;
}
.display-tools button[aria-pressed="true"] {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 6px #36415312;
}
.scene-bottom {
  bottom: 20px;
}
.scene-location {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #7a8b97;
}
.scene-location > span {
  padding: 0 10px;
  opacity: 0.5;
}
.camera-tools {
  display: flex;
  gap: 7px;
}
.camera-tools button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 37px;
  border: 1px solid #ffffffd9;
  background: #ffffffda;
  border-radius: 8px;
  box-shadow: 0 3px 12px #4b617808;
  padding: 0 13px;
  font-size: 10px;
  color: #5e6f7d;
  backdrop-filter: blur(12px);
}
.camera-tools button:hover {
  background: white;
  color: var(--brand);
}
#btn-center {
  font-size: 21px;
  width: 37px;
  padding: 0;
}
#btn-fly svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
#btn-fly[aria-pressed="true"] {
  background: var(--brand);
  color: white;
}
#foot {
  position: fixed;
  bottom: 0;
  height: 67px;
  left: 32px;
  right: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
  color: #8c98a3;
}
#foot > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  display: inline-block;
  margin-left: 13px;
}
.legend-dot:first-child {
  margin-left: 0;
}
.legend-dot.partner {
  background: #beafa6;
}
.legend-dot.stage {
  background: #667ca0;
}
.legend-dot.service {
  background: #adbdc0;
}
.desktop-help b {
  font-weight: 400;
  opacity: 0.5;
  padding: 0 5px;
}
#foot .mobile-help {
  display: none;
}
.selection {
  position: absolute;
  z-index: 15;
  bottom: 78px;
  right: 22px;
  width: 270px;
  padding: 23px;
  border: 1px solid #fff;
  border-radius: 13px;
  background: var(--panel);
  box-shadow: 0 12px 36px #31425818;
  backdrop-filter: blur(18px);
}
.selection .eyebrow {
  color: var(--brand);
  font-size: 10px;
  margin-bottom: 10px;
}
.selection h2 {
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
  padding-right: 5px;
  overflow-wrap: anywhere;
}
.selection > p:last-of-type {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.close {
  position: absolute;
  right: 10px;
  top: 7px;
  border: 0;
  background: none;
  font-size: 22px;
  color: #8a98a3;
  padding: 4px;
}
.selection-actions {
  display: flex;
  gap: 8px;
}
.selection-actions button {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 10px;
  background: white;
}
.selection-actions button:first-child {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.selection-actions button:hover {
  box-shadow: 0 3px 8px #4449de20;
}
#fpchip {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}
.view {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 600;
  box-shadow: 0 5px 20px #4449de30;
}
#tip {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  display: none;
  background: #ffffffee;
  border: 1px solid #fff;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 11px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px #243e531a;
  max-width: 260px;
}
#tip .t1 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
#tip .t2 {
  font-size: 10px;
  color: var(--muted);
}
@media (max-height: 820px) and (min-width: 761px) {
  .sidebar {
    gap: 17px;
  }
  .intro h1 {
    font-size: 33px;
  }
  .intro .eyebrow {
    margin-bottom: 10px;
  }
  .view-nav button {
    padding: 9px 11px;
  }
  .sidebar-note {
    padding-top: 12px;
  }
  .intro > p:last-child {
    display: none;
  }
}
@media (max-width: 1050px) and (min-width: 761px) {
  .sidebar {
    left: 24px;
    width: 215px;
  }
  #scene-view {
    left: 260px;
  }
  .masthead {
    padding: 0 24px;
    gap: 22px;
  }
  .intro h1 {
    font-size: 35px;
  }
  .edition {
    font-size: 10px;
  }
  .scene-toolbar,
  .scene-bottom {
    left: 15px;
    right: 15px;
  }
  .scene-location {
    display: none;
  }
  .scene-bottom {
    justify-content: flex-end;
  }
  .display-tools button {
    padding: 7px;
  }
  .desktop-help {
    font-size: 8px;
  }
}
@media (max-width: 760px) {
  .masthead {
    height: 76px;
    padding: 0 20px;
    gap: 14px;
  }
  .brand {
    gap: 10px;
  }
  .brand img {
    width: 122px;
    height: 38px;
  }
  .brand > span {
    font-size: 11px;
    padding-left: 10px;
  }
  .event-meta {
    margin-left: auto;
    font-size: 9px;
    gap: 4px;
    text-align: right;
  }
  .event-meta span:first-child {
    font-size: 10px;
  }
  .edition,
  .intro,
  .sidebar-note,
  .view-nav > .eyebrow {
    display: none;
  }
  .sidebar {
    top: 80px;
    left: 16px;
    right: 16px;
    bottom: auto;
    width: auto;
    overflow: visible;
    gap: 12px;
  }
  .search-wrap {
    width: 100%;
  }
  .search-box {
    padding: 11px 13px;
  }
  .search-box input {
    font-size: 12px;
  }
  #search-results {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    max-height: 240px;
  }
  .view-nav {
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .view-nav button {
    flex: none;
    width: auto;
    padding: 9px 12px;
    gap: 7px;
    font-size: 10px;
    border-color: #e2e6ed;
    background: #fff;
  }
  .view-nav button[aria-pressed="true"] {
    border-color: #878bed;
    background: #eeeeff;
  }
  .nav-icon {
    font-size: 15px;
    width: 16px;
  }
  .nav-arrow,
  .view-nav small {
    display: none;
  }
  #scene-view {
    top: 188px;
    bottom: 47px;
    left: 12px;
    right: 12px;
    border-radius: 13px;
  }
  .scene-toolbar {
    top: 12px;
    left: 12px;
    right: 12px;
    gap: 5px;
  }
  .view-caption {
    font-size: 9px;
    gap: 5px;
    padding: 7px;
  }
  .view-tag {
    display: none;
  }
  .display-tools {
    gap: 1px;
    padding: 3px;
  }
  .display-tools button {
    padding: 6px;
    font-size: 9px;
  }
  .scene-bottom {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  .scene-location {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .scene-location > span {
    padding: 0 4px;
  }
  .camera-tools button {
    height: 34px;
    padding: 0 10px;
    font-size: 9px;
  }
  .selection {
    left: 12px;
    right: 12px;
    bottom: 57px;
    width: auto;
    padding: 17px;
  }
  .selection h2 {
    font-size: 19px;
  }
  .selection > p:last-of-type {
    margin-bottom: 12px;
  }
  .selection .eyebrow {
    margin-bottom: 7px;
  }
  #foot {
    height: 47px;
    left: 20px;
    right: 20px;
    justify-content: center;
    font-size: 9px;
  }
  #foot > span:first-child,
  #foot .desktop-help {
    display: none;
  }
  #foot .mobile-help {
    display: flex;
  }
  #tip {
    display: none !important;
  }
}
@media (max-width: 380px) {
  .event-meta {
    font-size: 8px;
  }
  .event-meta span:first-child {
    font-size: 9px;
  }
  .brand img {
    width: 105px;
  }
  .scene-location {
    display: none;
  }
  .scene-bottom {
    justify-content: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.landmark {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  padding: 8px 11px;
  border: 1px solid #ffffffdd;
  background: #ffffffdd;
  border-radius: 6px;
  box-shadow: 0 4px 14px #2c425b0a;
  color: #546779;
  font-size: 9px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.landmark::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 14px;
  background: #9baebc;
}
.landmark:hover {
  background: white;
  color: var(--brand);
}
@media (max-width: 760px) {
  .landmark {
    font-size: 8px;
    padding: 6px 8px;
  }
}

/* ?embed=1: the canvas fills its own viewport, regardless of the parent page. */
html.embed .masthead,
html.embed .sidebar,
html.embed #foot,
html.embed .scene-toolbar,
html.embed .scene-bottom,
html.embed .landmark,
html.embed #selection,
html.embed #fpchip {
  display: none !important;
}
/* The recording tool stays hidden unless the URL carries ?film=1. */
html:not(.film) #btn-film {
  display: none;
}
html.embed #scene-view {
  inset: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Tour controls and wayfinding share the same quiet, compact treatment. */
.tour-length {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 39px;
  border: 1px solid #ffffffa8;
  border-radius: 8px;
  background: #ffffffc9;
  padding: 0 9px;
  color: #526777;
  font: 600 11px system-ui, sans-serif;
}
.tour-length input {
  width: 70px;
  min-width: 0;
  padding: 5px 2px 5px 6px;
  border: 1px solid #dbe2e4;
  border-radius: 5px;
  background: white;
  color: #344d5c;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.tour-length:has(input:disabled) { opacity: .6; }
.tour-length input:user-invalid, #film-duration:user-invalid { border-color: #b42318; }
.camera-tools { flex-wrap: wrap; justify-content: flex-end; }
.selection-actions { flex-wrap: wrap; }
#selection-route { color: white; background: #465be2; border-color: #465be2; }
.route-panel {
  position: absolute;
  left: 24px;
  bottom: 84px;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: calc(100% - 48px);
  padding: 19px 22px;
  border: 1px solid #ffffffc9;
  border-radius: 15px;
  background: #fafbf7ed;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px #283e4914;
}
.route-panel .eyebrow { margin: 0 0 7px; font-size: 8px; }
.route-panel strong { color: #293e4c; font-size: 19px; }
.route-panel p:last-child { margin: 5px 0 0; font-size: 11px; color: #738391; }
.route-actions { display: flex; gap: 10px; align-items: center; }
.route-actions button { border: 0; border-radius: 8px; padding: 10px 14px; background: #465be2; color: white; font-size: 11px; white-space: nowrap; }
#route-clear { font-size: 22px; background: transparent; color: #7b8993; padding: 4px; }
.tour-progress { position: absolute; left: 24px; bottom: 84px; width: 240px; color: #344d5c; pointer-events: none; }
.tour-progress span { display: block; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.tour-progress progress { display: block; width: 100%; height: 3px; border: 0; border-radius: 3px; background: #344d5c15; accent-color: #4d64df; }
.tour-progress progress::-webkit-progress-bar { background: #344d5c15; }
.tour-progress progress::-webkit-progress-value { background: #4d64df; }
#film-dialog { max-width: 430px; width: calc(100% - 40px); box-sizing: border-box; padding: 34px; border: 1px solid #fff; border-radius: 22px; background: #fafbf7; color: #344d5c; box-shadow: 0 30px 110px #102a4540; }
#film-dialog::backdrop { background: #1c344738; backdrop-filter: blur(5px); }
#film-dialog h2 { font-size: 34px; letter-spacing: -1.5px; margin: 10px 0 15px; }
#film-dialog p { font-size: 13px; line-height: 1.6; color: #6a7b88; }
#film-dialog .eyebrow { font-size: 9px; color: #5365db; }
#film-dialog label { display: block; font-size: 11px; margin: 19px 0; font-weight: 600; }
#film-dialog select, #film-dialog input { width: 100%; display: block; margin-top: 8px; padding: 12px; border: 1px solid #dbe2e4; border-radius: 8px; color: #344d5c; background: white; }
#film-dialog .film-note { font-size: 11px; }
.film-close { position: absolute; right: 17px; top: 14px; font-size: 24px; border: 0; background: none; color: #8a959b; }
#film-record, #film-cancel { width: 100%; border: 0; border-radius: 9px; padding: 13px 18px; color: white; background: #465be2; font-size: 12px; font-weight: 600; }
#film-cancel { background: #e9eef0; color: #526777; margin-top: 8px; }
#film-status { min-height: 18px; }
html.embed .route-panel, html.embed .tour-progress, html.embed #film-dialog { display: none !important; }
@media (max-width: 1100px) {
  .scene-location { display: none; }
}
@media (max-width: 760px) {
  .tour-length { height: 34px; font-size: 10px; padding: 0 5px; }
  .tour-length > span:first-child { display: none; }
  .tour-length input { width: 66px; }
  .camera-tools { gap: 5px; }
  .route-panel { left: 12px; bottom: 60px; padding: 13px; gap: 10px; max-width: calc(100% - 24px); }
  .route-panel strong { font-size: 16px; }
  .route-panel p:last-child { font-size: 9px; }
  .route-actions button { padding: 9px; font-size: 10px; }
  .tour-progress { bottom: 66px; left: 14px; width: 210px; }
  .view-caption { max-width: 135px; font-size: 10px; }
  .view-caption #view-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #film-dialog { padding: 25px; }
}

/* iOS Safari zooms the whole page when a focused field renders below 16px.
   Touch devices keep fields at 16px so the guide stays put like an app. */
@media (hover: none) and (pointer: coarse) {
  .search-box input,
  .tour-length input,
  #film-dialog input,
  #film-dialog select {
    font-size: 16px;
  }
}
