/* One stationary menu scene, visible through the translucent UI, never the playfield. */
body:has(#game[hidden]):has(#menu) {
 --shared-veil:#16110f30;
 --shared-panel:#221a16bf;
 --shared-panel-deep:#211916e0;
 --shared-control:#4b372cc4;
 --shared-control-hover:#634533de;
 --shared-underlay:#171211;
 position:relative;
 isolation:isolate;
 background:var(--shared-underlay);
}
:root[data-menu-theme=vivid] body:has(#game[hidden]):has(#menu) {
 --shared-veil:#1b102339;
 --shared-panel:#25172ac0;
 --shared-panel-deep:#251a27e6;
 --shared-control:#553452cd;
 --shared-control-hover:#71436cde;
 --shared-underlay:#171018;
}
body:has(#game[hidden]):has(#menu)::before {
 content:"";
 position:fixed;
 inset:0;
 z-index:-1;
 pointer-events:none;
 background:linear-gradient(var(--shared-veil),var(--shared-veil)),url("wuffbeat/banner-continuation-568.webp") center top / cover no-repeat;
}
body:has(#game[hidden]) #menu :is(#sectionIntro,.campaign-profiles .campaign-profile-hero) {
 background:linear-gradient(112deg,var(--shared-panel-deep),var(--shared-panel) 74%);
}
body:has(#game[hidden]) #menu :is(#sectionIntro,.campaign-profiles .campaign-profile-hero)::before {content:none;}
#libraryView .library,
#libraryView .selection .selectionbody,
#campaignProfilesView .campaign-profile-panel,
#scoreView .score-top,
#scoreView .run-history-card,
#scoreView .video-results>div:not(#videoExportIssue),
.arcade-essentials :is(#landingBridge,#landingProfile) {
 background:linear-gradient(128deg,var(--shared-panel-deep),var(--shared-panel));
}
.arcade-essentials #landingProfile {backdrop-filter:none;}
#libraryView .selection {background:transparent;}
#libraryView .track:not(.selected),
#campaignProfilesView .campaign-profile-row,
#scoreView .run-history-metric {
 background:color-mix(in srgb,var(--chrome-well,#241d1c) 72%,transparent);
}
#libraryView .track.selected,
#campaignProfilesView .campaign-profile-row:has(.campaign-profile-tag) {
 background:linear-gradient(95deg,var(--shared-control),var(--shared-panel) 88%);
}
#libraryView #import,
#libraryView :is(#openChartStudio,#generateCurrent) {
 background:linear-gradient(100deg,var(--shared-control),var(--shared-panel));
}
#libraryView #import:hover,
#libraryView :is(#openChartStudio,#generateCurrent):enabled:hover {
 background:linear-gradient(100deg,var(--shared-control-hover),var(--shared-panel-deep));
}
body:has(#game[hidden]) #modal,
body:has(#game[hidden]) #modal:has(#importTitle),
body:has(#game[hidden]) #settingsModal {
 background:var(--shared-panel-deep);
}
body:has(#game[hidden]) :is(#modal,#settingsModal)::backdrop {
 background:var(--shared-veil);
}
body:has(#game[hidden]) :is(#modal .chart-studio,#modal .studio-header) {background:transparent;}
body:has(#game[hidden]) #modal :is(.studio-timeline,.studio-panel,.studio-footer) {
 background:var(--shared-panel);
}
body:has(#game[hidden]) #settingsModal :is(.settings-shell .settings-header,.settings-shell .settings-tabs,.settings-scroll,.settings-actions) {
 background:transparent;
}
body:has(#game[hidden]) #settingsModal .settings-group {
 background:var(--shared-control);
}
body:has(#game:not([hidden])) #settingsModal .settings-shell .settings-header,
body:has(#game:not([hidden])) #settingsModal .settings-shell .settings-tabs,
body:has(#game:not([hidden])) #settingsModal .settings-scroll {
 background:var(--chrome-panel);
}

