/* Site-level wayfinding uses the mineral palette; game controls keep their own skin. */
.header-wayfinding { display: flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 32px; }
.header-wayfinding a, .experience-nav a, .experience-nav button, .experience-nav summary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px;
  box-sizing: border-box; color: #e9ddc6; text-decoration: none; font: 400 14px/1.5 var(--font, "DreamPi Sans", "DreamPi Wen", serif); letter-spacing: .035em;
  border: 1px solid transparent; padding: 0 12px; border-radius: 7px; background: transparent; cursor: pointer; white-space: nowrap;
}
.header-wayfinding .dp-return { border-color: #cbb58138; }
.header-wayfinding .dp-home { display: none; }
.header-wayfinding svg, .experience-nav svg { width: 17px; height: 17px; flex: none; }
.header-wayfinding a:hover, .experience-nav :is(a,button,summary):hover { background: #dfc58b14; color: #ffedbd; }
.header-wayfinding a:focus-visible, .experience-nav :is(a,button,summary):focus-visible { outline: 2px solid #d8bb7e; outline-offset: 2px; }
.experience-page { --font: "DreamPi Sans", "DreamPi Wen", "Kaiti SC", "KaiTi", serif; font-family: var(--font); font-synthesis: none; margin: 0; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; background: #102221; }
.experience-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.experience-stage { display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; background: #102221; }
.experience-frame { display: block; border: 0; width: 100%; min-height: 0; flex: 1; background: #102221; }
.experience-nav { position: relative; z-index: 50; flex: none; display: flex; align-items: center; gap: 16px; box-sizing: border-box;
  min-height: 52px; padding: max(5px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 5px max(12px,env(safe-area-inset-left));
  color: #e9ddc6; background: linear-gradient(100deg,#102221,#19312e 60%,#132723); border-bottom: 1px solid #cbb58145; font-family: var(--font);
}
.experience-nav-start, .experience-nav-end { display: flex; align-items: center; flex: none; gap: 4px; }
.experience-nav-start { padding-right: 10px; border-right: 1px solid #cbb58135; }
.experience-nav-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; letter-spacing: .05em; color: #aabbb2; }
.experience-menu { position: relative; }
.experience-menu summary { min-width: 40px; list-style: none; letter-spacing: 2px; }
.experience-menu summary::-webkit-details-marker { display: none; }
.experience-menu > div { position: absolute; right: 0; top: calc(100% + 10px); width: 192px; padding: 9px; border: 1px solid #cbb58145; background: #132724; box-shadow: 0 15px 45px #0006; border-radius: 9px; }
.experience-menu > div > span { display: block; font: 11px/1.5 var(--font); letter-spacing: .12em; color: #9caf9f; padding: 9px 12px; }
.experience-menu > div > a { display: flex; justify-content: space-between; min-height: 44px; }
.dp-nav-status:empty { display: none; }
.dp-nav-status:not(:empty) { position: absolute; top: 100%; right: 12px; max-width: min(360px,90vw); padding: 10px 15px; background: #19312e; color: #e9ddc6; font-size: 12px; border: 1px solid #cbb58145; }
.web-game-stage > .experience-nav, .dune-stage > .experience-nav { display: none; }
.web-game-stage:fullscreen, .dune-stage:fullscreen { display: flex; flex-direction: column; height: 100dvh; width: 100vw; border: 0; }
.web-game-stage:fullscreen > .experience-nav, .dune-stage:fullscreen > .experience-nav { display: flex; }
.web-game-stage:fullscreen > iframe { flex: 1; min-height: 0; height: 0; }
.dune-stage:fullscreen > .dune-stage-top, .dune-stage:fullscreen > .dune-stage-bottom { display: none; }
.dune-stage:fullscreen > .dune-viewport { flex: 1; min-height: 0; width: min(100%,calc((100dvh - 52px) * 9 / 16)); max-height: none; aspect-ratio: auto; align-self: center; }
.admin-site-return { position: relative; display: flex; justify-content: flex-end; gap: 6px; padding: 6px 20px; min-height: 44px; background: #102221; border-bottom: 1px solid #cbb58135; }
.admin-site-return a { display: inline-flex; align-items: center; color: #e9ddc6; text-decoration: none; padding: 0 12px; font: 12px system-ui; min-height: 36px; }
@media (max-width: 760px) {
  .dunhuang-theme .site-header { gap: 8px; padding-inline: 16px; }
  .dunhuang-theme .site-header .brand { gap: 7px; }
  .dunhuang-theme .site-header .brand > small { display: none; }
  .dunhuang-theme .site-header .brand > span { font-size: 21px; }
  .dunhuang-theme .site-header .brand > svg { width: 26px; height: 26px; }
  .header-wayfinding { margin-right: 0; gap: 2px; }
  .header-wayfinding a { padding-inline: 7px; min-width: 40px; }
  .header-wayfinding .dp-home { display: inline-flex; }
  .header-wayfinding svg { display: none; }
  .dunhuang-theme .site-header .menu-toggle { margin: 0; flex: none; }
  .experience-nav { gap: 8px; padding-inline: max(6px,env(safe-area-inset-left)) max(6px,env(safe-area-inset-right)); }
  .experience-nav a, .experience-nav button { padding-inline: 7px; min-height: 42px; }
  .experience-nav-start { padding-right: 6px; gap: 0; }
  .experience-nav-start svg { width: 15px; height: 15px; }
  .experience-nav-end { gap: 0; }
  .experience-nav-title { font-size: 13px; }
}
@media (max-width: 380px) {
  .experience-nav-title { display: none; }
  .experience-nav-end { margin-left: auto; }
  .header-wayfinding .dp-return { border-color: transparent; }
}
