/* The main menu of zenux's mockup (Work-ID 20261105-main-menu-mockup-3d8c, card "menu"; Client/app/main_menu.js, menu_icons.js): dark, red accents, two pages (INICIO list / PERFIL trainer), a bottom bar.
   The window sets data-view="mainmenu" on #modal, so none of the old menu sheets (data-view="menu") applies. Hover geometry (AGENTS.md): every row, tab, dot and banner keeps its authored box in every state;
   hover, focus, pressed and selected only paint (background, inset line / outline, picture filter). Small windows: the list scrolls inside the frame, the bar and dots stay. */
#modal#modal[data-view="mainmenu"]{width:min(30rem,96vw)!important;max-width:96vw!important;height:min(56rem,calc(100dvh - 1rem))!important;max-height:calc(100dvh - 1rem)!important;padding:5px!important;border:0!important;border-radius:2rem!important;overflow:hidden!important;
 background:linear-gradient(160deg,#55678f,#26314c 42%,#3b4a6c)!important;box-shadow:0 0 0 2px #0b0f1a,0 0 0 3px #2a3550,0 1.4rem 4rem #000c!important}      /* the phone body: a steel bezel, rounded, outlined twice */
/* one sequence: the trainer and the numbers are fixed at the top (.mm-fixed), the bottom bar at the bottom, the list between them scrolls (zenux 06:09: "se inicia na loja oficial e termina em sair, apenas deslizando o menu") */
.mm-fixed{flex:none;padding:.2rem 1rem 0}
/* the window is placed in the free area of the screen by ui_scale.js (inline inset and max-height), like every window that sizes itself: the HUD bars stay clear */
#modal#modal[data-view="mainmenu"] .modal-header{display:none!important}
/* the screen: a second outline, thin and red, with angled cut corners (the body is the red line, .mm is the screen inside it) */
#modal#modal[data-view="mainmenu"] #modal-body{height:100%!important;max-height:none!important;padding:1.5px!important;overflow:hidden!important;background:linear-gradient(135deg,#d2283a,#6d1020 40%,#b3202f)!important;
 clip-path:polygon(0 1.4rem,1.4rem 0,calc(100% - 1.4rem) 0,100% 1.4rem,100% calc(100% - 1.4rem),calc(100% - 1.4rem) 100%,1.4rem 100%,0 calc(100% - 1.4rem))}
.mm{--mm-red:#e5242e;--mm-red2:#ff4b4b;--mm-line:#1e2a44;--mm-panel:#0c1322;--mm-ink:#e8eefb;--mm-mute:#8e9bb8;display:flex;flex-direction:column;height:100%;min-height:0;box-sizing:border-box;color:var(--mm-ink);font-family:inherit;
 background:radial-gradient(120% 60% at 85% 12%,#16213a55 0,#0000 60%),linear-gradient(180deg,#0a0f1b,#060912);position:relative}
.mm{clip-path:polygon(0 calc(1.4rem - .9px),calc(1.4rem - .9px) 0,calc(100% - 1.4rem + .9px) 0,100% calc(1.4rem - .9px),100% calc(100% - 1.4rem + .9px),calc(100% - 1.4rem + .9px) 100%,calc(1.4rem - .9px) 100%,0 calc(100% - 1.4rem + .9px))}
.mm-status{position:relative;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;flex:none;height:2.7rem;padding:.95rem 1.6rem 0;font-size:.72rem;letter-spacing:.12em;color:#c9d3ea}
.mm-brand{display:inline-flex;align-items:center;gap:.45rem}
.mm-sig{display:block;width:.95rem;height:.95rem;color:#dfe7fa}
.mm-batt{display:block;justify-self:end;width:1.8rem;height:1.1rem;color:#59e08a}
/* the camera of the phone, in the notch over the status row */
.mm-cam{position:absolute;top:.4rem;left:50%;width:.95rem;height:.95rem;margin-left:-.475rem;border-radius:50%;background:radial-gradient(circle at 35% 35%,#2d4a7e,#05070d 65%);box-shadow:0 0 0 2px #121a2e,0 0 0 3px #3a4a6e}
/* angled cut corners and a double outline (steel, then red) on every panel of the screen: the element paints the steel line, ::before the red line one pixel in, ::after the panel itself 2.5 px in; all three share the cut */
:where(.mm) :is(.mm-rows,.mm-stats,.mm-trainer,.mm-shop,.mm-team,.mm-tabs){--c:.7rem;--l1:#3d5280;--l2:#9e1b2b;--panel:linear-gradient(180deg,#0e1628,#0a101d);position:relative;isolation:isolate;
 clip-path:polygon(0 0,calc(100% - var(--c)) 0,100% var(--c),100% 100%,var(--c) 100%,0 calc(100% - var(--c)))}
.mm :is(.mm-rows,.mm-stats,.mm-trainer,.mm-shop,.mm-team,.mm-tabs)::before,.mm :is(.mm-rows,.mm-stats,.mm-trainer,.mm-shop,.mm-team,.mm-tabs)::after{content:"";position:absolute;z-index:-1;pointer-events:none}
.mm :is(.mm-rows,.mm-stats,.mm-trainer,.mm-shop,.mm-team,.mm-tabs)::before{inset:1px;background:var(--l2);clip-path:polygon(0 0,calc(100% - var(--c) + .6px) 0,100% calc(var(--c) - .6px),100% 100%,calc(var(--c) - .6px) 100%,0 calc(100% - var(--c) + .6px))}
.mm :is(.mm-rows,.mm-stats,.mm-trainer,.mm-shop,.mm-team,.mm-tabs)::after{inset:2.5px;background:var(--panel);clip-path:polygon(0 0,calc(100% - var(--c) + 1.5px) 0,100% calc(var(--c) - 1.5px),100% 100%,calc(var(--c) - 1.5px) 100%,0 calc(100% - var(--c) + 1.5px))}
.mm-clock{font-variant-numeric:tabular-nums;letter-spacing:.06em}
.mm-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:.3rem 1rem .8rem;scrollbar-width:thin;scrollbar-color:#2a3550 #0000}
.mm-title{display:flex;align-items:center;gap:.9rem;height:4.2rem;margin:.2rem .1rem .8rem;position:relative}
.mm-logo{flex:none;display:grid;place-items:center;width:4.2rem;height:4.2rem;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ff5b5b,#a40d1c 70%);box-shadow:inset 0 0 0 3px #1a0408,0 0 0 2px var(--mm-red),0 0 1.2rem #e5242e66;color:#fff}
.mm-logo-glyph{display:block;width:2.4rem;height:2.4rem;color:#f4f6ff}
.mm-title h2{flex:1;margin:0;padding:0 1.4rem;height:3rem;display:flex;align-items:center;font-size:2rem;letter-spacing:.06em;font-weight:800;text-transform:uppercase;background:linear-gradient(90deg,#141c31,#0d1424);clip-path:polygon(0 0,calc(100% - 1.4rem) 0,100% 100%,0 100%);box-shadow:inset 0 -3px 0 var(--mm-red)}
.mm-group{margin:0 0 .7rem}
.mm-group-title{display:flex;align-items:center;margin:0 0 .2rem;height:1.6rem;font-size:.82rem;letter-spacing:.14em;color:var(--mm-red2);font-weight:800;text-transform:uppercase}
.mm-group-title span{padding:0 .8rem 0 .2rem;background:linear-gradient(90deg,#0000,#0000);box-shadow:inset 0 -2px 0 var(--mm-red)}
.mm-group-title::after{content:"";flex:none;width:1.6rem;height:.9rem;margin-left:.5rem;background:repeating-linear-gradient(115deg,var(--mm-red) 0 2px,#0000 2px 5px)}
.mm-rows{display:flex;flex-direction:column;padding:2.5px 2.5px 2.5px 5.5px;background:var(--l1);--panel:linear-gradient(90deg,var(--mm-red) 0 3px,#0000 3px),linear-gradient(180deg,#0e1628,#0a101d);overflow:hidden}
.mm-row{display:grid;grid-template-columns:2.6rem minmax(0,1fr) auto 1.4rem;align-items:center;gap:.7rem;width:100%;height:var(--mm-row-h,3.35rem);padding:0 .8rem 0 1rem;border:0;border-radius:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;box-shadow:inset 0 -1px 0 var(--mm-line);box-sizing:border-box}
.mm-rows>.mm-row:last-child{box-shadow:none}
.mm-label{font-size:1.02rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-pill{display:inline-flex;align-items:center;gap:.35rem;height:1.8rem;padding:0 .8rem;border-radius:1rem;background:#131d33;box-shadow:inset 0 0 0 1px #2a3856;color:#dfe7fa;font-size:.88rem;font-weight:700;white-space:nowrap}
.mm-pill-glyph{display:block;width:1rem;height:1rem;color:#4aa8ff}
.mm-row .mm-chev{grid-column:4}
.mm-row .mm-pill{grid-column:3}
.mm-chev{display:grid;place-items:center;width:1.4rem;height:1.4rem;color:#8b97b3}
.mm-chev-glyph{display:block;width:1rem;height:1rem}
.mm-row:hover,.mm-shop:hover,.mm-team:hover{background:#14203a}
.mm-row.selected{background:#16233f}
.mm-row:focus-visible,.mm-shop:focus-visible,.mm-team:focus-visible,.mm-tab:focus-visible,.mm-dot:focus-visible{outline:2px solid var(--mm-red2);outline-offset:-3px}
.mm-row:active{background:#1b2c4d}
.mm-row.soon .mm-label{opacity:.75}
.mm-row.quit .mm-label{color:#ff8d8d}
/* icon tiles */
.mm-tile{display:grid;place-items:center;flex:none;width:2.6rem;height:2.6rem;border-radius:.65rem;box-sizing:border-box;box-shadow:inset 0 0 0 2px #0006,0 0 0 1px #0008}
.mm-tile.mm-mini{width:2.3rem;height:2.3rem;border-radius:50%}
.mm-glyph{display:block;width:1.6rem;height:1.6rem}
.mm-mini .mm-glyph{width:1.3rem;height:1.3rem}
.mm-gold{background:linear-gradient(145deg,#6e4b0e,#2b1b05);color:#ffc53d;box-shadow:inset 0 0 0 2px #b8821f,0 0 0 1px #000a}
.mm-blue{background:linear-gradient(145deg,#12467f,#0a2140);color:#4eb1ff;box-shadow:inset 0 0 0 2px #1f7ad0,0 0 0 1px #000a}
.mm-purple{background:linear-gradient(145deg,#4a2a86,#1c0f3d);color:#b88cff;box-shadow:inset 0 0 0 2px #7a49d8,0 0 0 1px #000a}
.mm-teal{background:linear-gradient(145deg,#0f6a66,#06302f);color:#3fe0d0;box-shadow:inset 0 0 0 2px #17b3a6,0 0 0 1px #000a}
.mm-green{background:linear-gradient(145deg,#1c6a3a,#0a2c18);color:#59e08a;box-shadow:inset 0 0 0 2px #26b05d,0 0 0 1px #000a}
.mm-blurple{background:linear-gradient(145deg,#4350c8,#1b2160);color:#aeb7ff;box-shadow:inset 0 0 0 2px #5865f2,0 0 0 1px #000a}
.mm-sky{background:linear-gradient(145deg,#165a96,#0a2744);color:#7cc8ff;box-shadow:inset 0 0 0 2px #2a8fe0,0 0 0 1px #000a}
.mm-orange{background:linear-gradient(145deg,#8a3a10,#35140a);color:#ff9340;box-shadow:inset 0 0 0 2px #e0661c,0 0 0 1px #000a}
.mm-grey{background:linear-gradient(145deg,#454c5c,#1a1e28);color:#d4dae8;box-shadow:inset 0 0 0 2px #7d879c,0 0 0 1px #000a}
.mm-red{background:linear-gradient(145deg,#8a1424,#2c0710);color:#ff6a70;box-shadow:inset 0 0 0 2px #d02a3c,0 0 0 1px #000a}
/* the PERFIL page */
.mm-trainer{display:grid;grid-template-columns:4.8rem minmax(0,1fr) auto;align-items:center;gap:.9rem;margin:.3rem 0 .8rem;padding:.7rem .9rem;background:var(--l1);--l1:#8e1a2a;--l2:#e5242e;--panel:linear-gradient(90deg,#3a0a12,#14070d 70%)}
.mm-avwrap{position:relative;width:4.6rem;height:4.6rem}
.mm-avatar{display:grid;place-items:center;width:4.6rem;height:4.6rem;border-radius:50%;overflow:hidden;background:#0c1220;box-shadow:inset 0 0 0 3px #1a0408,0 0 0 2px var(--mm-red2),0 0 0 4px #1a0408,0 0 0 5px #8e1a2a}
/* the pokeball medallion on the picture, ringed twice like it */
.mm-medal{position:absolute;right:-.45rem;bottom:-.35rem;display:grid;place-items:center;width:1.8rem;height:1.8rem;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ff5b5b,#a40d1c 70%);color:#fff;box-shadow:inset 0 0 0 2px #1a0408,0 0 0 2px var(--mm-red2),0 0 0 3px #1a0408}
.mm-medal-glyph{display:block;width:1.2rem;height:1.2rem}
.mm-avatar canvas{width:100%;height:100%;image-rendering:pixelated}
.mm-avatar .mm-glyph{width:2.2rem;height:2.2rem}
.mm-name{display:block;font-size:1.5rem;letter-spacing:.06em;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-id{display:block;margin-top:.2rem;color:var(--mm-mute);font-size:.85rem;letter-spacing:.08em}
.mm-badges{display:grid;gap:.4rem;justify-items:end}
.mm-badge-pill{display:inline-flex;align-items:center;gap:.4rem;height:1.8rem;padding:0 .8rem 0 .6rem;font-size:.85rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:linear-gradient(90deg,#8a1424,#3a0a12);clip-path:polygon(.6rem 0,100% 0,100% 100%,0 100%);color:#ffe0e0}
.mm-badge-glyph{display:block;width:.9rem;height:.9rem;color:#ff8a8a}
.mm-badge-bar{display:block;width:7rem;height:.6rem;border-radius:.4rem;background:#1b2338;overflow:hidden}
.mm-badge-bar i{display:block;height:100%;background:linear-gradient(90deg,#e5242e,#ff6a6a)}
.mm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 .8rem;padding:.7rem 0;background:var(--l1)}
.mm-stat{display:grid;justify-items:center;gap:.3rem;padding:0 .2rem;box-shadow:inset -1px 0 0 var(--mm-line);min-width:0}
.mm-stat:last-child{box-shadow:none}
.mm-stat-top{display:flex;align-items:center;gap:.4rem;min-width:0;max-width:100%}
.mm-stat-top strong{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm{container-type:inline-size}
#modal#modal[data-view="mainmenu"] .mm-stat small{font-size:clamp(7px,2.05cqw,10px)!important}      /* a global rule sets 12px on every small: the labels of the strip shrink with the window instead, on one line */
.mm-stat small{max-width:100%;color:var(--mm-mute);letter-spacing:.02em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-shop{display:grid;grid-template-columns:2.3rem minmax(0,1fr) auto;align-items:center;gap:.8rem;width:100%;height:3.4rem;margin:0 0 .7rem;padding:0 .9rem;border:0;color:inherit;font:inherit;cursor:pointer;box-sizing:border-box;--l1:#c2182a;--l2:#5a0f1a;--panel:linear-gradient(90deg,#300a11,#120710)}
.mm-shop-name{font-size:1.05rem;letter-spacing:.05em;text-align:left;text-transform:uppercase}
.mm-offers{display:inline-flex;align-items:center;gap:.4rem;height:1.9rem;padding:0 .8rem;font-size:.7rem;font-weight:800;letter-spacing:.08em;background:linear-gradient(90deg,#c2182a,#7a0f1c);clip-path:polygon(.6rem 0,100% 0,calc(100% - .6rem) 100%,0 100%);white-space:nowrap}
.mm-offers-glyph{display:block;width:1rem;height:1rem}
.mm-team{display:grid;grid-template-columns:5rem minmax(0,1fr) 1.4rem;align-items:center;gap:.8rem;width:100%;height:4rem;margin:0 0 .4rem;padding:0 .9rem 0 .5rem;border:0;color:inherit;font:inherit;text-align:left;cursor:pointer;box-sizing:border-box;overflow:hidden;--l1:#a1182a;--l2:#4a0d16;--panel:linear-gradient(90deg,#2b0a12,#0d0912)}
.mm-team-art{display:grid;place-items:center;height:100%;overflow:hidden}
.mm-team-art img{height:3.6rem;image-rendering:pixelated;filter:grayscale(1) sepia(1) saturate(7) hue-rotate(-30deg) brightness(.85);opacity:.85}
.mm-team-copy strong{display:block;font-size:.98rem;letter-spacing:.04em;text-transform:uppercase}
.mm-team-copy small{display:block;margin-top:.2rem;color:var(--mm-mute);font-size:.8rem}
.mm-team .mm-chev{color:#ff4b4b}
/* the bottom bar and the pages dots */
.mm-tabs{flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 .8rem .6rem;height:4.6rem;padding:2.5px;background:var(--l1);--l1:#8e1a2a;--l2:#3d5280;--panel:linear-gradient(180deg,#0e1628,#090e1a)}
.mm-tabs::after{box-shadow:inset 0 -2px 0 var(--mm-red)}
.mm-tab[data-tab="dex"] .mm-tab-glyph{color:#ff3f4a}
.mm-tab{appearance:none;display:grid;place-items:center;align-content:center;gap:.25rem;height:100%;padding:0;border:0;background:none;color:#aeb9d4;font:inherit;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;box-sizing:border-box}
.mm-tab-glyph{display:block;width:1.6rem;height:1.6rem}
.mm-tab:hover{background:#121c33}
.mm-tab.on{background:linear-gradient(180deg,#b4172a,#650d19);color:#fff;clip-path:polygon(.5rem 0,100% 0,calc(100% - .5rem) 100%,0 100%)}
.mm-tab.on:hover{background:linear-gradient(180deg,#c91c31,#730f1d)}
.mm-dots{flex:none;display:flex;justify-content:center;align-items:center;gap:.2rem;height:1.5rem}
.mm-dot{appearance:none;width:1.6rem;height:1rem;padding:0;border:0!important;box-shadow:none!important;background:linear-gradient(#3a4562,#3a4562) center/.4rem .4rem no-repeat;border-radius:.3rem;cursor:pointer}
.mm-dot.on{background:linear-gradient(var(--mm-red),var(--mm-red)) center/1.2rem .3rem no-repeat}
.mm-dot:hover{background-color:#1a2338}
/* The game's shared button skin (border-image of button.png, fill) is drawn on every <button> of a window with !important: the menu's own paint is restated here, scoped under the window, so the rows, banners, tabs and dots
   look like the mockup and not like the generic buttons. Only paint: no box, border width, padding or font changes in any state (hover geometry). */
#modal#modal[data-view="mainmenu"] .mm :is(.mm-row,.mm-shop,.mm-team,.mm-tab,.mm-dot){border:0!important;border-image:none!important;outline-offset:-3px;text-shadow:none!important}
#modal#modal[data-view="mainmenu"] .mm .mm-row{border-radius:0!important;background:none!important;box-shadow:inset 0 -1px 0 var(--mm-line)!important;color:var(--mm-ink)!important}
#modal#modal[data-view="mainmenu"] .mm .mm-rows>.mm-row:last-child{box-shadow:none!important}
#modal#modal[data-view="mainmenu"] .mm .mm-row:hover{background:#14203a!important}
#modal#modal[data-view="mainmenu"] .mm .mm-row.selected{background:#16233f!important}
#modal#modal[data-view="mainmenu"] .mm .mm-row:active{background:#1b2c4d!important}
#modal#modal[data-view="mainmenu"] .mm .mm-row.quit .mm-label{color:#ff8d8d!important}
#modal#modal[data-view="mainmenu"] .mm :is(.mm-shop,.mm-team){border-radius:0!important;background:var(--l1)!important;box-shadow:none!important;color:var(--mm-ink)!important}
#modal#modal[data-view="mainmenu"] .mm :is(.mm-shop,.mm-team):hover{--l1:#ff4b4b;--panel:linear-gradient(90deg,#3d0f1a,#1a0a14)}      /* hover only repaints the lines and the panel */
#modal#modal[data-view="mainmenu"] .mm .mm-tab{border-radius:0!important;background:none!important;box-shadow:none!important;color:#aeb9d4!important}
#modal#modal[data-view="mainmenu"] .mm .mm-tab:hover{background:#121c33!important}
#modal#modal[data-view="mainmenu"] .mm .mm-tab.on{background:linear-gradient(180deg,#b4172a,#650d19)!important;color:#fff!important}
#modal#modal[data-view="mainmenu"] .mm .mm-tab.on:hover{background:linear-gradient(180deg,#c91c31,#730f1d)!important}
#modal#modal[data-view="mainmenu"] .mm .mm-dot{border-radius:.3rem!important;box-shadow:none!important;background:linear-gradient(#3a4562,#3a4562) center/.4rem .4rem no-repeat!important}
#modal#modal[data-view="mainmenu"] .mm .mm-dot.on{background:linear-gradient(var(--mm-red),var(--mm-red)) center/1.2rem .3rem no-repeat!important}
#modal#modal[data-view="mainmenu"] .mm :is(.mm-row,.mm-shop,.mm-team,.mm-tab,.mm-dot):focus-visible{outline:2px solid var(--mm-red2)!important}
/* the mockup's lettering is a bold condensed grotesque: Bahnschrift (every Windows PC) at its condensed width, Arial Narrow / Segoe UI where it is missing */
#modal#modal[data-view="mainmenu"] .mm :is(.mm-label,.mm-name,.mm-title h2,.mm-group-title,.mm-tab,.mm-shop-name,.mm-team-copy strong,.mm-offers,.mm-badge-pill){font-family:Bahnschrift,"Arial Narrow","Segoe UI",Arial,sans-serif!important;font-stretch:85%}
/* a low window (a phone held sideways): the profile would leave no room for the list, so the whole sequence slides together and only the bottom bar stays */
@media (max-height:560px){
 #modal#modal[data-view="mainmenu"] .mm{display:block;overflow-y:auto;overflow-x:hidden}
 #modal#modal[data-view="mainmenu"] .mm-scroll{overflow:visible;height:auto}
 #modal#modal[data-view="mainmenu"] .mm-tabs{position:sticky;bottom:0;z-index:3}
}
/* the leave-the-game question */
.mm-confirm{margin:.8rem 0 0;padding:1rem;border-radius:.8rem;background:#12070c;box-shadow:inset 0 0 0 2px var(--mm-red)}
.mm-confirm h3{margin:0 0 .8rem;font-size:1rem}
.mm-confirm .modal-actions{display:flex;gap:.5rem;flex-wrap:wrap}
@media (prefers-reduced-motion:reduce){.mm *{transition:none!important;animation:none!important}}
@media (max-height:640px){.mm-status{height:1.4rem}.mm-row{height:var(--mm-row-h,3.1rem)}.mm-title{height:3.2rem;margin-bottom:.5rem}.mm-logo{width:3.2rem;height:3.2rem}.mm-tabs{height:3.6rem}}
