/* t1368u: ornamental menu frames in the main menu cyan (#00c4e8). Same 9-slice ornament as the t1351 bank badge, ~26% thinner
   (corner 31.5px, band ~13px, gem 25x19). Frame + gems only: panel fills, buttons and typography are unchanged.
   Scrollable panels (FAQ, What's new, Profile, Statistics, Sector full) are framed on an outer .mfWrap so scrolling never clips the ornament. */
:root{--mf-frame:url("/3d/icons/menu-frame-cyan.webp?v=t1368-menuframe-v1");--mf-gem:url("/3d/icons/menu-gem-cyan.webp?v=t1368-menuframe-v1")}
#mainMenu>.box,#soundBox>.box,#roleBox>.box,#start>.box,#ticketBox>.box,#mintBox>.box,#authBox>.box,#dockWaitBox>.box,#leaveBox>.box,#deathBox>.box,#summary>#sumtxt,
.mfWrap,.glass.loginBox{position:relative;overflow:visible}
body.showKeys #keys{overflow:visible}
html body #mainMenu>.box,html body #soundBox>.box,html body #roleBox>.box,html body #start>.box,html body #ticketBox>.box,html body #mintBox>.box,html body #authBox>.box,html body #dockWaitBox>.box,html body #leaveBox>.box,html body #deathBox>.box,html body #summary>#sumtxt,
html body .modal>.mfWrap>.box,html body #faqBox>.mfWrap>.box,html body #whatsNewBox>.mfWrap>.box,html body #profileBox>.mfWrap>.box,html body #statsBox>.mfWrap>.box,html body #sectorFullBox>.mfWrap>.box,html body.showKeys #keys,html body .glass.loginBox{border-color:transparent!important}
#mainMenu>.box::before,#soundBox>.box::before,#roleBox>.box::before,#start>.box::before,#ticketBox>.box::before,#mintBox>.box::before,#authBox>.box::before,#dockWaitBox>.box::before,#leaveBox>.box::before,#deathBox>.box::before,#summary>#sumtxt::before,
.mfWrap::before,body.showKeys #keys::before,.glass.loginBox::before{content:"";position:absolute;inset:-7px;box-sizing:border-box;border:31.5px solid transparent;border-image:var(--mf-frame) 63 / 31.5px / 0 stretch;pointer-events:none;z-index:5;filter:drop-shadow(0 0 5px rgba(0,196,232,.28))}
#mainMenu>.box::after,#soundBox>.box::after,#roleBox>.box::after,#start>.box::after,#ticketBox>.box::after,#mintBox>.box::after,#authBox>.box::after,#dockWaitBox>.box::after,#leaveBox>.box::after,#deathBox>.box::after,#summary>#sumtxt::after,
.mfWrap::after,body.showKeys #keys::after,.glass.loginBox::after{content:"";position:absolute;left:50%;top:-9.5px;bottom:-9.5px;width:25px;transform:translateX(-50%);background:var(--mf-gem) center top/25px 19px no-repeat,var(--mf-gem) center bottom/25px 19px no-repeat;pointer-events:none;z-index:6}
/* outer wrappers: take over the panel's outer width; the panel inside keeps its own max-height and scroll */
.modal>.mfWrap{flex:none;box-sizing:border-box}
.modal>.mfWrap>.box{width:auto;max-width:none;margin:0}
#faqBox>.mfWrap,#whatsNewBox>.mfWrap{width:min(720px,100%)}
#faqBox>.mfWrap>.faqPanel,#whatsNewBox>.mfWrap>.faqPanel{width:100%}
#profileBox>.mfWrap{width:calc(92% + 46px);max-width:806px}
#statsBox>.mfWrap{width:calc(92% + 46px);max-width:666px}
#sectorFullBox>.mfWrap{width:min(100%,560px)}
#sectorFullBox>.mfWrap>.box{width:100%}
