/* The CONFIGURACOES window EXACTLY as zenux's mockup 24 (Work-ID 20261020-mockup-exact-b4b; "FACA EXATAMENTE COMO NA IMAGEM"): the window (the #audio-dialog) is painted over the mockup's own 1672 x 940 sheet (settings/sheet.webp,
   the mockup with its texts and live controls painted out, Tools/build_mx4_sheets.py), so the plates with their corner ornaments, the header band and the emblem are zenux's own pixels; the tabs take frames cropped from the mockup
   (red when selected, gold on hover / focus); the controls keep the layout of gothic-settings.css, which already lies on the mockup's coordinates. Everything here only repaints (AGENTS.md "Absolute UI hover geometry"). Desktop only. */
@media screen and (min-width:901px){
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb){background:#0d111c url('settings/sheet.webp?v=mx4') 0 0/100% 100% no-repeat!important;border:0!important;box-shadow:0 0 30px #0d111c!important}
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) >.modal-header{background:none!important;border:0!important;box-shadow:none!important}
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) >.modal-header::before{content:''!important;background:none!important;box-shadow:none!important}
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) >.modal-header::after{content:none!important;display:none!important}
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) #audio-close{background:transparent!important;border:0!important;box-shadow:none!important;color:transparent!important;font-size:0!important}
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) #audio-close::before,#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) #audio-close::after{content:none!important;display:none!important}
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) #audio-close:is(:hover,:focus-visible,.pad-focus){background:#cc6b5d22!important;box-shadow:inset 0 0 0 2px #d28071!important}
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) .settings-nav{background:none!important;border:0!important;box-shadow:none!important}
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) .settings-tab{background:url('settings/tab.webp?v=mx4') 0 0/100% 100% no-repeat!important;border:0!important;box-shadow:none!important;color:#e0ddd7!important}
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) .settings-tab:is(:hover:not(:disabled),:focus-visible,.pad-focus){background:url('settings/tab-code.webp?v=mx4') 0 0/100% 100% no-repeat!important;box-shadow:none!important;color:#ffe3a0!important}
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) .settings-tab.selected{background:url('settings/tab-sel.webp?v=mx4') 0 0/100% 100% no-repeat!important;box-shadow:none!important;color:#fff!important}
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) .settings-section{background:none!important;border:0!important;box-shadow:none!important}
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) .settings-persistence{background:none!important;border:0!important;box-shadow:none!important}
#audio-dialog#audio-dialog[open][open][open][open]:not(#mxa):not(#mxb) .settings-general .audio-slider{background:none!important;box-shadow:none!important}
}

/* Work-ID 20261022-ui-sweep: on a phone the four areas of Settings (general, sound, options, persistence) are auto rows of a grid that scrolls; the sound and options sections are overflow:hidden, so their minimum was 0 and the rows squeezed to ~50px, stacking the sections over the General one (the language note, the move-names row and the battle animation row ended up under the next heading). Rows take their content height now and the body scrolls. */
body.mobile-web #audio-dialog#audio-dialog>.audio-body{grid-template-rows:repeat(4,max-content)!important;grid-auto-rows:max-content!important;align-content:start!important}
