/* Keep the performance in view. The smoke belongs to each panel, not the room. */
:root{
  --menu-glass:rgba(10,16,21,.64);
  --menu-glass-border:rgba(213,230,225,.24);
  --menu-glass-shadow:0 16px 48px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.05);
  --menu-glass-blur:8px;
}

/* Module styles load on demand, so this shared surface deliberately wins later
   panel backgrounds without changing their layout, controls, or accent colors. */
body dialog,
body #config,
body #jukeboxPanel.music-station,
body #boothPanel,
body #festivalPanel,
body .drawer-content,
body #controlsDrawer .drawer-content.pause-card,
body .plur-panel,
body .performance-style,
body .totem-editor,
body .production-instrument,
body .song-info{
  background:var(--menu-glass)!important;
  border-color:var(--menu-glass-border);
  box-shadow:var(--menu-glass-shadow)!important;
  -webkit-backdrop-filter:blur(var(--menu-glass-blur)) saturate(.9)!important;
  backdrop-filter:blur(var(--menu-glass-blur)) saturate(.9)!important;
}

/* An undistorted stage outside the glass provides the destination and scale. */
body dialog::backdrop{
  background:rgba(2,6,9,.12)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body:not(.play)::before{background:none;opacity:0}
body:not(.play) #world{opacity:1}
body:not(.play) .grain{
  background:linear-gradient(0deg,rgba(2,6,10,.4),rgba(2,6,10,.06) 55%,rgba(2,6,10,.12));
}
body:has(dialog[open]) .grain,
body:has(.hud-drawer[open]) .grain,
body.booth .grain,
body.plur-open .grain{background:rgba(2,6,9,.06)}
body:has(#config[open]) #intro{visibility:hidden}

/* Avoid solid slabs nested inside the main glass. Sticky controls retain a
   little smoke for legibility while the scrolling content passes behind. */
body #config .menu-launch,
body #boothPanel .audio-actions{
  background:rgba(10,16,21,.36)!important;
  box-shadow:none!important;
}
body .plur-panel .plur-head,
body.wardrobe #festivalPanel .panel-head{
  background:rgba(10,16,21,.74)!important;
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}
body .wardrobe-selection,
body.wardrobe #festivalBody .wardrobe-grid .wardrobe-card,
body .plur-outfits .wardrobe-grid .wardrobe-card{background:rgba(15,28,34,.42)}
body .show-disclosure,
body .play-guide,
body .arrival-hint,
body #crowdBalance{
  background:rgba(10,16,21,.66)!important;
  border-color:var(--menu-glass-border);
  box-shadow:0 8px 28px rgba(0,0,0,.22)!important;
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}
body .show-disclosure .show{background:rgba(10,16,21,.26);box-shadow:none}

@media(max-width:700px),(pointer:coarse){
  :root{--menu-glass-blur:4px;--menu-glass:rgba(10,16,21,.7)}
  body .plur-panel .plur-head,
  body.wardrobe #festivalPanel .panel-head,
  body .show-disclosure,
  body .play-guide,
  body .arrival-hint,
  body #crowdBalance{-webkit-backdrop-filter:none;backdrop-filter:none}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :root{--menu-glass:rgba(10,16,21,.82)}
}

/* Five finished destinations keep the same compact thumbnail treatment. */
#config .venue-choices{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#config .venue-choice strong{font-size:19px;min-height:49px;padding:7px 5px}
#venueCapacity{font-size:10px;letter-spacing:0;color:#d7e4d0;margin-left:8px}
#sceneSwitch>div{flex-wrap:wrap}
@media(max-width:700px){
 #config .venue-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}
 #config .venue-choice{flex:0 0 calc((100% - 14px)/3);min-width:0}
 #config .venue-choice strong{font-size:17px;min-height:44px}
}
@media(max-width:430px){
 #config .venue-choice{flex-basis:calc((100% - 7px)/2)}
 #config .venue-choice img{aspect-ratio:1.95}
}
