:root{
  --shell-height:72px;
  --portal-toolbar-h:46px;
  --shell-gold:#d8b77d;
  --shell-gold-soft:#ead8b8;
  --shell-purple:#c891f0;
  --portal-safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html{margin:0;width:100%;min-height:100%;background:#080604;-webkit-text-size-adjust:100%}
body{margin:0;width:100%;min-height:100%;background:#080604}
body.has-site-shell{
  min-height:100svh;
  padding-top:var(--shell-height);
  padding-bottom:calc(var(--portal-toolbar-h) + var(--portal-safe-bottom));
  overflow-x:hidden;
}
.site-shell{
  position:fixed;z-index:10000;inset:0 0 auto 0;height:var(--shell-height);
  display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(180px,1fr);
  align-items:center;gap:16px;padding:8px max(12px,env(safe-area-inset-right,0px)) 8px max(12px,env(safe-area-inset-left,0px));
  background:linear-gradient(180deg,rgba(17,14,11,.99),rgba(5,5,5,.98));
  border-bottom:1px solid rgba(216,183,125,.55);box-shadow:0 4px 18px rgba(0,0,0,.68);
  color:var(--shell-gold-soft);font-family:Georgia,serif;
}
.site-brand-group{min-width:0;display:flex;align-items:center;gap:9px;height:100%;overflow:hidden}
.site-brand{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-decoration:none;white-space:nowrap;line-height:.95;text-shadow:0 2px 8px #000;min-width:0}
.site-brand-logo{display:block;flex:0 0 auto;width:auto;height:50px;max-width:50px;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 2px 5px rgba(0,0,0,.78))}
.brand-swingali{color:#c891f0;font-family:"Rye",Georgia,serif;font-size:clamp(.78rem,1.2vw,1.12rem);letter-spacing:.045em;text-shadow:0 0 9px rgba(200,145,240,.42),0 2px 8px #000}
.brand-presents{margin-top:5px;align-self:center;color:#d8b77d;font:700 clamp(.45rem,.6vw,.6rem)/1 Georgia,serif;letter-spacing:.14em}
.site-countdown{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;min-width:0}
.countdown-panel{min-width:0}.countdown-label{display:block;text-align:center;font-family:"Rye",Georgia,serif;font-size:.62rem;letter-spacing:.075em;color:var(--shell-gold);white-space:nowrap}
.countdown-units{display:flex;justify-content:center;gap:9px}.countdown-unit{min-width:43px;text-align:center;border-left:1px solid rgba(216,183,125,.3);padding-left:9px}.countdown-unit:first-child{border-left:0;padding-left:0}
.countdown-number{display:block;font-size:1.08rem;line-height:1;color:#f0d7a6;font-variant-numeric:tabular-nums}.countdown-name{display:block;margin-top:3px;font-size:.48rem;letter-spacing:.075em;text-transform:uppercase;color:rgba(234,216,184,.68)}
.site-location{justify-self:end;min-width:0;max-width:100%;text-align:right;line-height:1.15}.location-label{display:block;font-size:.48rem;letter-spacing:.13em;text-transform:uppercase;color:rgba(234,216,184,.5)}.location-name{display:block;margin-top:3px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:"Rye",Georgia,serif;font-size:clamp(.68rem,.95vw,.88rem);color:var(--shell-gold-soft);text-shadow:0 0 9px rgba(200,145,240,.18),0 2px 7px #000}
.countdown-pumpkin-img{display:block;flex:0 0 auto;width:auto;height:42px;max-width:46px;object-fit:contain;margin:0 2px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.78))}
.countdown-victorian{position:relative;display:block;flex:0 0 20px;width:20px;height:42px;opacity:.82;pointer-events:none}.countdown-victorian::before{content:"";position:absolute;inset:4px 2px;border-left:2px solid rgba(176,133,70,.78);border-top:2px solid rgba(176,133,70,.78);border-radius:11px 0 0 0;box-shadow:-2px -2px 0 rgba(45,29,16,.72)}.countdown-victorian::after{content:"";position:absolute;left:6px;top:10px;width:9px;height:9px;border:1px solid rgba(151,108,60,.78);border-radius:50% 2px 50% 2px;transform:rotate(-25deg);box-shadow:6px 8px 0 -3px rgba(176,133,70,.58),4px 16px 0 -4px rgba(176,133,70,.46)}.countdown-victorian-right{transform:scaleX(-1)}

/* One and only one lower interface lane. */
.portal-toolbar,.ambience-bar{
  position:fixed!important;z-index:10002!important;left:50%!important;right:auto!important;top:auto!important;
  bottom:0!important;transform:translateX(-50%)!important;
  width:min(720px,calc(100vw - max(12px,env(safe-area-inset-left,0px)) - max(12px,env(safe-area-inset-right,0px))))!important;
  min-height:var(--portal-toolbar-h)!important;height:auto!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;
  padding:6px 10px calc(6px + var(--portal-safe-bottom))!important;
  background:rgba(7,6,7,.96)!important;border:1px solid rgba(216,183,125,.46)!important;border-bottom:0!important;
  border-radius:6px 6px 0 0!important;box-shadow:0 -4px 18px rgba(0,0,0,.62),0 0 12px rgba(193,116,241,.12)!important;
  color:#d8b77d!important;font-family:Georgia,serif!important;
}
.portal-toolbar-nav{display:flex;align-items:center;min-width:0;flex:1 1 auto}
.portal-toolbar-back{
  position:static!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;margin:0!important;z-index:auto!important;display:flex!important;align-items:center!important;
  min-height:32px!important;max-width:100%!important;padding:6px 10px!important;border:0!important;border-right:1px solid rgba(216,183,125,.30)!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#ead8b8!important;text-decoration:none!important;
  font:700 clamp(.62rem,1.3vw,.78rem)/1.15 Georgia,serif!important;letter-spacing:.045em!important;text-transform:uppercase!important;white-space:normal!important;
}
.portal-toolbar-back:hover,.portal-toolbar-back:focus-visible{color:#f1d5ff!important;text-shadow:0 0 8px rgba(200,145,240,.65)!important;outline:2px solid rgba(200,145,240,.52)!important;outline-offset:1px!important}
.portal-toolbar-sound{display:grid;grid-template-columns:34px minmax(100px,160px);align-items:center;gap:8px;flex:0 0 auto}
.ambience-toggle{width:32px;height:30px;border:1px solid rgba(216,183,125,.36);border-radius:4px;color:#e8d1a7;background:rgba(20,13,21,.8);cursor:pointer}.ambience-toggle:disabled{opacity:.38;cursor:default}
.ambience-volume{-webkit-appearance:none;appearance:none;width:100%;height:22px;background:transparent;cursor:pointer;touch-action:pan-x}.ambience-volume:focus{outline:2px solid rgba(200,145,240,.45);outline-offset:1px}.ambience-volume::-webkit-slider-runnable-track{height:5px;border-radius:4px;background:linear-gradient(90deg,#6f3b8d,#b875df);box-shadow:inset 0 0 2px #000}.ambience-volume::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:17px;height:17px;margin-top:-6px;border-radius:50%;border:1px solid #e6c99a;background:#b875df;box-shadow:0 0 8px rgba(193,116,241,.75)}.ambience-volume::-moz-range-track{height:5px;border-radius:4px;background:#7f499d}.ambience-volume::-moz-range-thumb{width:17px;height:17px;border-radius:50%;border:1px solid #e6c99a;background:#b875df;box-shadow:0 0 8px rgba(193,116,241,.75)}.ambience-volume:disabled{opacity:.32;cursor:default}
.portal-toolbar-no-back .portal-toolbar-nav{display:none}.portal-toolbar-no-back{width:min(280px,calc(100vw - 16px))!important}

/* Scrollable pages always have a real final-content safe zone. */
body.has-site-shell:not(.portal-cinematic-page) main,
body.has-site-shell:not(.portal-cinematic-page) [role="main"]{
  scroll-margin-bottom:calc(var(--portal-toolbar-h) + var(--portal-safe-bottom) + 16px);
}
body.has-site-shell:not(.portal-cinematic-page){padding-bottom:calc(var(--portal-toolbar-h) + var(--portal-safe-bottom) + 24px)}
body.has-site-shell:not(.portal-cinematic-page)::after{
  content:"";display:block;width:100%;height:calc(var(--portal-toolbar-h) + var(--portal-safe-bottom) + 24px);
  flex:0 0 auto;pointer-events:none;
}

/* Cinematic rooms: one immutable coordinate plane. Background, hotspots and markers scale together. */
body.portal-cinematic-page{
  height:100svh;min-height:100svh;overflow:hidden!important;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding-top:var(--shell-height);padding-bottom:calc(var(--portal-toolbar-h) + var(--portal-safe-bottom));
}
.portal-cinematic-stage{
  position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  flex:0 0 auto!important;margin:auto!important;
  width:min(100vw,calc((100svh - var(--shell-height) - var(--portal-toolbar-h) - var(--portal-safe-bottom)) * (var(--portal-art-ratio))))!important;
  height:auto!important;max-width:100vw!important;max-height:calc(100svh - var(--shell-height) - var(--portal-toolbar-h) - var(--portal-safe-bottom))!important;
  aspect-ratio:var(--portal-art-ratio)!important;transform:translate3d(var(--portal-pan-x,0px),var(--portal-pan-y,0px),0) scale(var(--portal-room-scale,1))!important;transform-origin:center center!important;overflow:hidden!important;
  container-type:inline-size;
}
/* The room artwork fills only its same-ratio artboard. No independent distortion. */
.portal-room-foyer .foyer-background,.portal-room-archives .archives-background,.portal-room-history .veil-background,.portal-room-workshop .workshop-background,.portal-room-gallery .gallery-background,.portal-room-radio .radio-background,.portal-room-discover .discover-lab-bg{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;transform:none!important;
}
.portal-room-about .about-stage,.portal-room-notice .notice-stage,.portal-room-legends .ll-stage,.portal-room-horror-theater .theater-artboard{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:inherit!important;transform:none!important}
.portal-room-about .about-art,.portal-room-notice .notice-art,.portal-room-notice .portal-patrons-layer,.portal-room-horror-theater .theater-background,.portal-room-horror-theater .poster-slot img{
  width:100%!important;height:100%!important;object-position:center!important;-webkit-user-drag:none!important;
}
.portal-room-about .about-art,.portal-room-notice .notice-art,.portal-room-notice .portal-patrons-layer,.portal-room-horror-theater .theater-background{object-fit:contain!important}
.portal-room-horror-theater .poster-slot img{object-fit:cover!important}

/* Small visible markers; target rectangles remain full-sized for touch. */
@media (pointer:coarse){
  a,button,[role="button"]{-webkit-tap-highlight-color:transparent}
  .hotspot::after,.archive-hotspot::after,.gallery-click-marker,.about-hotspot::after,.bio-dot,.theater-global-marker,.poster-one-fixed-marker,.ll-hotspot::after{
    max-width:12px!important;max-height:12px!important;
  }
}

/* Exploration cue occupies unused portrait space above the toolbar, never the artboard. */
.portal-explore-cue{display:none;position:fixed;z-index:9998;left:50%;bottom:calc(var(--portal-toolbar-h) + var(--portal-safe-bottom) + 8px);transform:translateX(-50%);max-width:calc(100vw - 24px);padding:5px 9px;border:1px solid rgba(216,183,125,.40);border-radius:4px;background:rgba(7,5,7,.88);color:#dec9aa;font:700 8px/1.2 Georgia,serif;letter-spacing:.07em;text-align:center;text-transform:uppercase;pointer-events:none}
@media (orientation:portrait) and (max-width:820px){body.portal-room-foyer .portal-explore-cue,body.portal-room-archives .portal-explore-cue,body.portal-room-workshop .portal-explore-cue,body.portal-room-about .portal-explore-cue,body.portal-room-notice .portal-explore-cue,body.portal-room-legends .portal-explore-cue,body.portal-room-horror-theater .portal-explore-cue,body.portal-room-watch .portal-explore-cue,body.portal-room-gallery .portal-explore-cue{display:block}}

/* Responsive header: same information, rearranged—not a separate mobile site. */
@media(max-width:860px){
  :root{--shell-height:86px;--portal-toolbar-h:48px}
  .site-shell{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:38px 36px;gap:3px 7px;padding:5px 8px}
  .site-brand-group{grid-column:1;grid-row:1;gap:5px}.site-brand-logo{height:31px;max-width:31px}.brand-swingali{font-size:clamp(.56rem,2.6vw,.72rem);letter-spacing:.02em}.brand-presents{font-size:.36rem;letter-spacing:.08em;margin-top:2px}
  .site-location{grid-column:2;grid-row:1}.location-label{display:none}.location-name{font-size:clamp(.52rem,2vw,.68rem)}
  .site-countdown{grid-column:1/3;grid-row:2;gap:4px;overflow:visible}.countdown-label{font-size:.45rem}.countdown-units{gap:4px}.countdown-unit{min-width:29px;padding-left:4px}.countdown-number{font-size:.78rem}.countdown-name{font-size:.37rem}.countdown-pumpkin-img{height:26px;max-width:29px}.countdown-victorian{display:block;flex-basis:9px;width:9px;height:26px}.countdown-victorian::before{inset:3px 1px;border-left-width:1px;border-top-width:1px}.countdown-victorian::after{left:2px;top:6px;width:6px;height:6px;box-shadow:4px 6px 0 -3px rgba(176,133,70,.58),3px 12px 0 -3px rgba(176,133,70,.46)}
  .portal-toolbar,.ambience-bar{width:calc(100vw - 12px)!important;gap:6px!important;padding-left:7px!important;padding-right:7px!important}.portal-toolbar-back{padding:5px 7px!important;font-size:clamp(.55rem,2.4vw,.68rem)!important}.portal-toolbar-sound{grid-template-columns:32px minmax(88px,128px);gap:5px}
}
@media(max-width:380px){.portal-toolbar-sound{grid-template-columns:31px 84px}.portal-toolbar-back{font-size:.54rem!important}.countdown-pumpkin-img{display:none}}
@media (orientation:landscape) and (max-height:520px){
  :root{--shell-height:58px;--portal-toolbar-h:46px}
  .site-shell{grid-template-columns:minmax(145px,.8fr) auto minmax(130px,.8fr);grid-template-rows:1fr;gap:7px;padding:4px 8px}.site-brand-group{grid-column:1;grid-row:1}.site-location{grid-column:3;grid-row:1}.site-countdown{grid-column:2;grid-row:1}.brand-presents,.location-label{display:none}.site-brand-logo{height:30px;max-width:30px}.countdown-label{display:none}.countdown-victorian{height:24px}.countdown-pumpkin-img{height:25px}.portal-explore-cue{display:none!important}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}


/* 15N — ONE OWNER FOR PARENT NAVIGATION. Room CSS may style legacy controls,
   but once a parent link is inside the permanent toolbar it cannot float back out. */
body .portal-toolbar .portal-toolbar-back,
body .portal-toolbar .gs-back-foyer,
body .portal-toolbar .gs-local-back,
body .portal-toolbar .theater-back,
body .portal-toolbar .watch-back,
body .portal-toolbar .shop-back,
body .portal-toolbar .return-portal,
body .portal-toolbar .patronage-back,
body .portal-toolbar .concession-back-theater{
  position:static!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;margin:0!important;max-width:none!important;width:auto!important;height:auto!important;
  z-index:auto!important;display:flex!important;align-items:center!important;white-space:normal!important;
}
.portal-room-radio .radio-background{background-size:cover!important;background-position:center!important}

@media(pointer:coarse){.portal-cinematic-stage.portal-zoomable{touch-action:none!important;will-change:transform}}


/* 15O — parent navigation remains visible even when legacy room CSS loaded
   after the shared shell attempts to restyle the original link. */
body .portal-toolbar .shop-back{visibility:visible!important;opacity:1!important}
