/* Visible room navigation in Theme 1, including the WebGL fallback. */
.vrPage .vrNav,
.vrPage .vrNav.vrNav--hidden {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(1000px, calc(100% - 24px));
  height: auto;
  min-height: 58px;
  padding: 8px 14px;
  color: #171713;
  background: rgba(247, 245, 238, .96);
  border: 1px solid #484842;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(-50%) !important;
}
.vrPage .vrNav > span,
.vrPage .vrNav > .arcadeNavButton { display: none !important; }
.vrPage .vrNav > .vrBrand {
  grid-column: 1;
  color: #171713;
  font-size: clamp(15px, 1.6vw, 19px) !important;
  white-space: nowrap;
}
.vrPage .vrNav > .hundredQuickNav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.vrPage .vrNav .hundredQuickNav button {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 38px;
  padding: 0 9px;
  color: #191916;
  background: transparent;
  border: 1px solid #62625d;
  border-radius: 7px;
  font: 800 10px/1 system-ui, sans-serif;
  letter-spacing: .08em;
  cursor: pointer;
}
.vrPage .vrNav .hundredQuickNav button[aria-pressed="true"],
.vrPage .vrNav .hundredQuickNav button:hover {
  color: #fff;
  background: #191916;
}
.vrPage .vrNav .hundredQuickNav button:focus-visible,
.vrPage .vrNav > .hundredShopNav:focus-visible {
  outline: 3px solid #485742;
  outline-offset: 2px;
}
.vrPage .vrNav > .hundredShopNav {
  grid-column: 3;
  justify-self: end;
  min-width: 76px;
  min-height: 38px;
  padding: 0 10px;
  color: #fff;
  background: #191916;
  border-radius: 7px;
  font: 800 10px/1 system-ui, sans-serif;
  letter-spacing: .08em;
  cursor: pointer;
}
/* The central emergency menu would duplicate the restored navigation. */
.vrPage:has(.hundredQuickNav) .hundredFallbackNav { display: none !important; }

/* The old panel background remained dark after Theme 1 changed its text to black. */
.vrPage .vrPanel--collab,
.vrPage .vrPanel--events {
  color: #191916;
  background: rgba(247, 245, 238, .97);
  border-color: #54544d;
}
.vrPage .vrPanel--collab .vrPanel__head,
.vrPage .vrPanel--events .vrPanel__head { border-bottom-color: #77766e; }
.vrPage .vrPanel--collab .vrPanel__head .vrPanel__back,
.vrPage .vrPanel--events .vrPanel__head .vrPanel__back {
  color: #fff;
  background: #191916;
  border-color: #191916;
  box-shadow: none;
}
.vrPage .vrPanel--collab .vrPanel__copy a {
  color: #191916;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vrPage .vrPanel--events .vrCards a {
  color: #191916;
  background: #e6e3da;
  border-color: #77766e;
}
.vrPage .vrPanel--events .vrCards b { color: #34342d; }

@media (max-width: 650px), (pointer: coarse) {
  .vrPage .vrNav,
  .vrPage .vrNav.vrNav--hidden {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 8px;
    top: max(8px, env(safe-area-inset-top));
    width: calc(100% - 16px);
    padding: 7px 9px;
  }
  .vrPage .vrNav > .vrBrand { grid-column: 1; grid-row: 1; }
  .vrPage .vrNav > .hundredShopNav {
    grid-column: 2;
    grid-row: 1;
    min-height: 36px;
  }
  .vrPage .vrNav > .hundredQuickNav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: stretch;
    width: 100%;
    padding: 1px 0 2px;
  }
  .vrPage .vrNav .hundredQuickNav button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 0 3px;
    font-size: clamp(7px, 2.3vw, 9px);
  }
  .vrPage .vrPanel--collab,
  .vrPage .vrPanel--events {
    max-height: calc(100dvh - 125px);
    overflow-y: auto;
  }
  .vrPage .vrPanel--events .vrCards { grid-template-columns: 1fr; }
  .vrPage .vrPanel--events .vrCards a { min-height: 54px; }
}
