/* Static cinematic Headquarters view; WebGL starts only after entry. */
.headquarters-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.headquarters-interface { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.glass-entry {
  position: absolute;
  inset: 10% 1% 27% 53%;
  pointer-events: auto;
  border-radius: 50% 50% 7% 7% / 50% 50% 7% 7%;
}
.core-memory-hotspots { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.core-memory-hit { position: absolute; transform: translate(-50%,-50%); width: 39px; height: 42px; border-radius: 50%; pointer-events: auto; border: 1px solid #f7f4ffb0; box-shadow: 0 0 0 5px #bbdbff25,0 0 25px #a6dcff9c,inset 0 0 14px #ffffff4d; transition: transform .25s,box-shadow .25s; }
.core-memory-hit[data-slot="2"] { box-shadow: 0 0 0 5px #ffdf9e2b,0 0 25px #ffdc95b0,inset 0 0 14px #ffffff4d; }
.core-memory-hit:hover,.core-memory-hit:focus-visible { transform: translate(-50%,-50%) scale(1.2); box-shadow: 0 0 0 8px #ffffff29,0 0 32px #ffffffbd; }
.core-memory-tooltip { position: absolute; left: 50%; bottom: calc(100% + 15px); transform: translateX(-50%) translateY(5px); white-space: nowrap; color: #fff; background: #201436e8; border: 1px solid #e9dbff6d; border-radius: 9px; padding: 7px 10px; font-size: 10px; opacity: 0; transition: opacity .2s,transform .2s; pointer-events: none; }
.core-memory-hit:hover .core-memory-tooltip,.core-memory-hit:focus-visible .core-memory-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }
.memory-discover { position: absolute; z-index: 4; left: 15%; top: 63%; pointer-events: auto; padding: 11px 13px; border: 1px solid #d8eaff75; color: #f9f3ff; text-shadow: 0 2px 12px #211134; background: #211536b5; backdrop-filter: blur(8px); border-radius: 9px; }
.memory-discover small { display: block; color: #d8eaffc9; font-size: 8px; letter-spacing: 2px; margin-bottom: 5px; }
.memory-discover span { display: block; font-size: 11px; letter-spacing: .4px; white-space: nowrap; }
.memory-discover b { margin-left: 7px; font-size: 15px; font-weight: 400; }
.memory-discover:hover { background: #2a1b498a; }
.headquarters-self-hit { position: absolute; z-index: 5; transform: translate(-50%,-50%); width: 155px; height: 155px; border: 1px solid transparent; border-radius: 50%; pointer-events: auto; color: #eaf8ff; }
.headquarters-self-hit:hover,.headquarters-self-hit:focus-visible { border-color: #b2e8ff99; box-shadow: 0 0 28px #a9d9ff69,inset 0 0 30px #a9d9ff29; }
.headquarters-self-hit span { position: absolute; left: 50%; bottom: calc(100% + 5px); transform: translateX(-50%); white-space: nowrap; font-size: 10px; letter-spacing: 1px; text-shadow: 0 2px 10px #241436; opacity: 0; }
.headquarters-self-hit:hover span,.headquarters-self-hit:focus-visible span { opacity: 1; }
.glass-window-light {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 72% 60%, #fff5dc0f, transparent 62%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.glass-copy {
  position: absolute;
  left: 75%;
  top: calc(100% + 15px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 38vw;
  padding: 12px 0;
  color: #faf4ff;
  text-shadow: 0 2px 15px #211339a6;
}
.glass-eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 2px; margin-bottom: 12px; color: #f0e3ffcc; }
.glass-eyebrow > span { font-size: 21px; line-height: 1; color: #dcc6ff; transform: translateY(-1px); transition: transform .4s; }
.glass-copy h1 { margin: 0; font-size: clamp(21px, 2.2vw, 34px); font-weight: 500; line-height: 1.5; letter-spacing: 2px; }
.glass-title-break { display: none; }
.glass-copy h1 > span { margin-left: 12px; font-size: .8em; color: #e0cfff; display: inline-block; transition: transform .4s; }
.glass-description { display: block; margin-top: 11px; font-size: 11px; color: #e3d5f1ad; letter-spacing: 1.5px; }
.glass-entry:hover .glass-window-light, .glass-entry:focus-visible .glass-window-light { opacity: 1; }
.glass-entry:hover .glass-copy h1 > span { transform: translate(3px, -3px); }
.glass-entry:hover .glass-eyebrow > span { transform: translate(-2px, -3px); }
.glass-entry:focus-visible { outline: 1px solid #e9d4ff8a; outline-offset: -6px; }
html[data-view=headquarters] .world-stage { height: 100dvh; min-height: 500px; background: #25143e; }
html[data-view=headquarters] .topbar { position: absolute; top: 0; left: 0; width: 100%; height: 80px; padding: 0 4%; background: linear-gradient(#21133855, transparent); border: 0; }
html[data-view=headquarters] .wordmark { font-size: 17px; letter-spacing: 2px; text-shadow: 0 1px 10px #25123a; }
html[data-view=headquarters] .wordmark small { color: #d7c7e499; }
html[data-view=headquarters] .logo-orb { width: 25px; height: 25px; }
html[data-view=headquarters] .topbar nav { margin-left: auto; }
html[data-view=headquarters] .topbar nav button { color: #e7daefc7; font-size: 11px; }
html[data-view=headquarters] .mode-control,
html[data-view=headquarters] #directory-button,
html[data-view=headquarters] .memory-bar,
html[data-view=headquarters] .stage-toolbar,
html[data-view=headquarters] .stage-caption,
html[data-view=headquarters] .stage-vignette { display: none; }
@media(max-width:900px) {
  .glass-copy { left: 77%; top: calc(100% + 10px); }
  .glass-copy h1 { font-size: 22px; letter-spacing: 1px; }
  .glass-title-break { display: inline; }
  .glass-eyebrow { font-size: 9px; margin-bottom: 8px; }
  .glass-description { font-size: 10px; margin-top: 7px; letter-spacing: 1px; }
}
@media(max-width:600px) {
  .topbar { height: 100px; flex-wrap: wrap; align-content: center; row-gap: 7px; }
  .topbar nav { margin-left: auto; }
  #about-button { display: block; }
  .mode-control { order: 10; width: 100%; justify-content: center; margin: 0; }
  .mode-control button { flex: 1; font-size: 10px; padding: 7px 9px; }
  .world-stage { height: calc(100dvh - 188px); }
  html[data-view=headquarters] .topbar { height: 76px; padding: 0 21px; flex-wrap: nowrap; }
  html[data-view=headquarters] .wordmark { font-size: 15px; letter-spacing: 1px; }
  html[data-view=headquarters] .logo-orb { width: 23px; height: 23px; }
  .headquarters-preview { object-position: 42% center; }
  .glass-entry { inset: 12% 0 27% 53%; }
  .headquarters-self-hit { width: 95px; height: 95px; }
  .core-memory-hit { width: 31px; height: 33px; }
  .memory-discover { left: auto; right: 13px; top: 47%; max-width: 140px; }
  .memory-discover span { white-space: normal; line-height: 1.6; font-size: 9px; }
  .glass-copy { left: auto; right: 18px; top: calc(100% + 26px); transform: none; width: 145px; max-width: calc(100vw - 44px); text-align: left; }
  .glass-eyebrow { justify-content: flex-start; }
  .glass-copy h1 { font-size: 22px; letter-spacing: 1px; }
  .glass-copy h1 > span { margin-left: 7px; }
  .glass-description { font-size: 10px; margin-top: 9px; }
}
@media(max-height:550px) and (min-width:601px) {
  html[data-view=headquarters] .world-stage { min-height: 0; }
  html[data-view=headquarters] .topbar { height: 58px; }
  .glass-copy { top: 100%; padding: 8px 0; }
  .glass-copy h1 { font-size: 20px; }
  .glass-eyebrow { margin-bottom: 4px; font-size: 8px; }
  .glass-description { margin-top: 3px; font-size: 9px; }
}
