/* The new main menu's skin (js/main-menu.js, cliente/MENU_NUEVO.md). Static: no animation per frame; the reference
   canvas 1672 x 941 scaled by --mm-scale (set on a resize only), the background covering the screen. */
/* Rajdhani (OFL 1.1, landing/assets/fonts/rajdhani/OFL.txt): the owner chose it, closest to the approved reference */
@font-face{font-family:"Rajdhani";src:url("../../landing/assets/fonts/rajdhani/rajdhani-medium.woff2") format("woff2");font-weight:500;font-display:swap}
/* The native directory owns the whole canvas, including touch. Gameplay controls
   and the installation hint must not cover its rows or its bottom buttons. */
html.mm-server-list .halo-touch,html.mm-server-list .halo-touch-layer,html.mm-server-list #halo-install-hint,
html.mm-server-list .game-toolbar{display:none!important;pointer-events:none!important}
@font-face{font-family:"Rajdhani";src:url("../../landing/assets/fonts/rajdhani/rajdhani-semibold.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Rajdhani";src:url("../../landing/assets/fonts/rajdhani/rajdhani-bold.woff2") format("woff2");font-weight:700;font-display:swap}
.mm-root{position:absolute;inset:0;z-index:40;overflow:hidden;background:transparent var(--mm-bg) center/cover no-repeat;
  font-family:"Rajdhani","Halo UI Sans",system-ui,sans-serif;contain:strict}
.mm-root[hidden]{display:none}
/* the page's host (js/main-menu-host.js): the whole screen, over the site and the game, while the engine is at its main menu */
.mm-host{position:fixed;inset:0;z-index:60}
.mm-host[hidden]{display:none}
/* AMIGOS / DISCORD anchored to the screen's right edge (main-menu.js fit: --mm-right); AMIGOS off for now */
.mm-right{translate:var(--mm-right,0px) 0}
.mm-left{translate:var(--mm-left,0px) 0}
.mm-root.mm-root .mm-off,.mm-root.mm-root button.mm-off:disabled{opacity:.4}
.mm-root.mm-root button.mm-off{cursor:default}
/* the page under the menu does not scroll while it shows, nor keeps the scrollbar's gutter (landing/public.css
   html{scrollbar-gutter:stable}: 15 px off the menu's right side, measured) */
html.mm-open,html.mm-open body{overflow:hidden;scrollbar-gutter:auto}
.mm-canvas{position:absolute;left:50%;top:50%;width:1672px;height:941px;transform:translate(-50%,-50%) scale(var(--mm-scale,1));transform-origin:center}
.mm-part{position:absolute;background:center/100% 100% no-repeat;pointer-events:none}
.mm-sliced{box-sizing:border-box;border-style:solid;border-color:transparent;background:none}
.mm-panel{transition:transform .12s ease-out}
.mm-items{position:relative;z-index:50;list-style:none;margin:0;padding:0}
.mm-item{position:absolute;left:100px;width:486px;height:54px;padding:0 0 0 38px;box-sizing:border-box;margin:0;border:0;background:none;
  text-align:left;color:#b9d3f2;font-weight:500;font-size:28px;line-height:54px;font-family:inherit;letter-spacing:3px;cursor:pointer;z-index:50;outline:none}
.mm-item.mm-focus{color:#f2f8ff;font-weight:700;letter-spacing:2.4px}
.mm-item:focus-visible{text-decoration:underline}
/* the site's own button looks (landing/styles.css button:hover, halo.css body.halo-ui button:hover) stay out of the skin:
   the pointer over a row only moves the selected panel (the owner's asset), as the keyboard does */
.mm-root.mm-root button:is(.mm-item,.mm-social),.mm-root.mm-root button:is(.mm-item,.mm-social):is(:hover,:focus,:focus-visible,:active){background:none;border:0;box-shadow:none;outline:none}
.mm-root.mm-root button.mm-item:is(:hover,:focus,:active){color:#b9d3f2}
.mm-root.mm-root button.mm-item.mm-focus:is(:hover,:focus,:active){color:#f2f8ff}
.mm-root.mm-root button.mm-social:is(:hover,:focus,:active){color:#cfe3ff}
.mm-about{position:absolute;left:115px;top:747px;width:470px;margin:0;color:#4fb6ff;font-weight:400;font-size:17px;line-height:24px;font-family:"Rajdhani","Halo UI Sans",system-ui,sans-serif;font-weight:500;font-size:19px;letter-spacing:.4px;z-index:50}
.mm-social{position:absolute;margin:0;padding:0 0 0 46px;box-sizing:border-box;border:0;background:none;color:#a9c7ea;cursor:pointer;
  font-weight:600;font-size:14px;line-height:44px;font-family:inherit;letter-spacing:1.6px;text-align:center;z-index:50}
.mm-keys{position:absolute;left:65px;top:860px;height:27px;z-index:50;color:#a9c7ea;font-weight:600;font-size:14px;line-height:27px;font-family:inherit;letter-spacing:1.4px}
.mm-key{position:absolute;top:0;height:27px;text-align:center;font-size:13px;color:#cfe3ff}
.mm-key-enter{left:0;width:63px}.mm-key-select{position:absolute;left:78px;white-space:nowrap}
.mm-key-esc{left:216px;width:49px}.mm-key-back{position:absolute;left:280px;white-space:nowrap}
/* The new index (owner's reference, 2026-10-20): the engine in a frame on the left, the menu inside it, the site chat
   as the right column with an arrow that hides it, and then the engine takes that width (js/main-menu-host.js adds
   html.mm-page on campaign.html?menu=1). The page does not scroll; nothing animates. The engine's frame: the owner's,
   menu/marco-motor.css (generated by cliente/tools/build_frame_asset.py), loaded after this file. */
html.mm-page,html.mm-page body{height:100%;overflow:hidden;scrollbar-gutter:auto}
/* the site's space background on both pages (the game's page painted its body plain: measured rgb(5, 9, 11), no image) */
html.mm-page body{background:#020b14 url("../../landing/assets/reference-20261008/mortalunion-space-background.png") center top/cover fixed no-repeat}
html.mm-page{--mm-gap:clamp(8px,1.2vw,22px);--mm-chat-w:clamp(290px,24vw,440px);--mm-frame:1}
@media (max-width:900px),(max-height:520px){html.mm-page{--mm-frame:.6}}
html.mm-page .public-shell{max-width:none;width:100%;height:100%;margin:0;padding:var(--mm-gap);box-sizing:border-box;display:block}
html.mm-page .public-shell>.topbar,html.mm-page .public-shell>.footer,html.mm-page .public-shell>.skip{display:none}
html.mm-page #main{height:100%;margin:0;padding:0}
html.mm-page .landing-layout{position:relative;display:grid;grid-template-columns:minmax(0,1fr) var(--mm-chat-w);gap:var(--mm-gap);width:100%;height:100%;max-width:none;margin:0;padding:0}
html.mm-page.mm-chat-hidden .landing-layout{grid-template-columns:minmax(0,1fr)}
html.mm-page .game-frame-stack{position:relative;min-width:0;min-height:0;height:100%;margin:0;box-sizing:border-box;background:#000 padding-box}
html.mm-page .game-frame-stack>.landing-hero{position:absolute;inset:0;width:auto;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:#000;aspect-ratio:auto}
html.mm-page .game-frame-stack .public-game,html.mm-page .game-frame-stack .public-game .viewport{width:100%;height:100%;margin:0;padding:0;aspect-ratio:auto}
/* the engine's whole picture, its shape kept: a chosen resolution (resolution.js, 1920x1080...) or a frame resized after the
start is another shape than the frame; cover cut the engine's own screens (CAMPAÑA: "ISIONES"); contain as landing/public.css */
html.mm-page .game-frame-stack .public-game canvas{width:100%;height:100%;object-fit:contain}
/* the game's tools at the bottom right: the HUD's shield and health are at the top right, nothing of it at the bottom right */
html.mm-page .game-frame-stack>.game-toolbar{position:absolute;top:auto;bottom:8px;right:8px;z-index:4;width:auto;opacity:.7}
html.mm-page .game-frame-stack>.game-toolbar:hover,html.mm-page .game-frame-stack>.game-toolbar:focus-within{opacity:1}
html.mm-page.mm-open .game-frame-stack>.game-toolbar{display:none}
html.mm-page .mm-host{position:absolute;inset:0;z-index:5}
html.mm-page .landing-player{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;margin:0;padding:0;overflow:hidden}
html.mm-page .landing-player>:not(.site-chat){display:none}
/* the rooms' controls (status, Copiar enlace, Finalizar partida, Reintentar) above the chat: a room needs them */
html.mm-page.mm-room .landing-player>.community-public,html.mm-page .landing-player>.community-public:has(>button:not([hidden]),>p[role=status]:not(:empty)){
  display:block;order:-1;flex:0 0 auto;max-height:40%;overflow:auto;margin:0 0 var(--mm-gap)}
/* the rooms' panel in the chat's look (the owner's sheet: chat-sitio/marco.webp, its fill; buttons in the chat's cyan) */
html.mm-page .landing-player>.community-public{box-sizing:border-box;border:15px solid transparent;border-image:url("../chat-sitio/marco.webp") 30/15px stretch;
  background:rgb(0,17,33) padding-box;padding:4px 6px;color:#e3f3ff;font-size:13px;border-radius:0;box-shadow:none}
html.mm-page .landing-player>.community-public :is(section,div){background:none;border:0;box-shadow:none;padding:0;margin:0}
html.mm-page .landing-player>.community-public p{margin:2px 0 6px;color:#8fb6cc;font-size:12px}
html.mm-page .landing-player>.community-public button{min-height:30px;margin:0 6px 6px 0;padding:0 12px;border:1px solid #2f9ae0;border-radius:2px;
  background:#03111f;color:#8fdcff;font:600 13px/28px "Rajdhani",system-ui,sans-serif;letter-spacing:.04em;box-shadow:0 0 6px #1f8fe050}
html.mm-page .landing-player>.community-public button:is(:hover,:focus-visible){border-color:#8cdeff;background:#062544;color:#fff}
/* a room's engine (its iframe) fills the engine's frame, as the rotation's engine does (community-engine.css: 16:9 under the landing) */
html.mm-page .game-frame-stack>.landing-hero.community-engine-active{position:absolute;inset:0;height:auto}
html.mm-page .landing-hero.community-engine-active>.community-engine-stage{position:absolute;inset:0;width:auto;margin:0;padding:0}
html.mm-page .community-engine-stage>iframe.community-lab-engine{width:100%;height:100%;aspect-ratio:auto}
html.mm-page.mm-chat-hidden .landing-player{display:none}
html.mm-page .landing-player>.sc-panel{flex:1 1 auto;min-height:0;margin:0}
/* minimized, the chat keeps its header's height (it does not fill the column) */
html.mm-page .landing-player>.sc-panel.sc-minimized{flex:0 0 auto}
html.mm-page .landing-player .sc-body{flex:1 1 auto}
html.mm-page .landing-player .sc-logs{flex:1 1 auto;display:flex;flex-direction:column}
html.mm-page .landing-player .sc-log{flex:1 1 auto;height:auto;min-height:0}
/* the arrow: between the engine and the chat; with the chat hidden, at the right edge (› hides, ‹ shows) */
.mm-chat-toggle{position:absolute;top:50%;right:calc(var(--mm-chat-w) + var(--mm-gap) / 2);z-index:6;width:12px;height:44px;margin:-22px -6px 0 0;padding:0;
  border:1px solid #2f9ae0;border-radius:2px;background:#03111f;box-shadow:0 0 6px #1f8fe080;color:#8fdcff;font:700 14px/40px "Rajdhani",system-ui,sans-serif;cursor:pointer}
html.mm-page.mm-chat-hidden .mm-chat-toggle{right:calc(var(--mm-gap) * -1 + 2px);margin-right:0}
html.mm-page .landing-layout>button.mm-chat-toggle{min-width:0;min-height:0}
html.mm-page .landing-layout>button.mm-chat-toggle:is(:hover,:focus-visible){border-color:#8cdeff;background:#062544;color:#fff;outline:none;box-shadow:0 0 8px #1f8fe080}
@media (max-width:700px){html.mm-page{--mm-chat-w:min(300px,46vw)}}
/* a portrait screen (a phone held upright): the game on top at 16:9 across the width, the chat under it filling the rest;
   the arrow at the bottom, turned (hides the chat down, shows it up). Measured: side by side at 360 px the game was 147 px */
@media (max-aspect-ratio:1/1){
  html.mm-page .landing-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  html.mm-page.mm-chat-hidden .landing-layout{grid-template-rows:auto}
  html.mm-page .game-frame-stack{height:auto;aspect-ratio:16/9}
  html.mm-page .mm-chat-toggle,html.mm-page.mm-chat-hidden .mm-chat-toggle{top:auto;bottom:calc(var(--mm-gap) / 2);right:50%;margin:0 -6px -16px 0;transform:rotate(90deg)}
}

/* Native customization occupies the full engine frame; the chat returns afterwards. */
html.mm-page.mm-customize .landing-layout{grid-template-columns:minmax(0,1fr)}
html.mm-page.mm-customize .landing-player,html.mm-customize .mm-chat-toggle{display:none!important}
