/* Mobile menu frames own safe-area/header/content/footer geometry. Native Gameplay is unchanged. */
@media(max-width:1000px){
body.mobile-overhaul{--mo-safe-top:env(safe-area-inset-top,0px);--mo-safe-right:env(safe-area-inset-right,0px);--mo-safe-bottom:env(safe-area-inset-bottom,0px);--mo-safe-left:env(safe-area-inset-left,0px)}
body.mobile-overhaul :is(#main-menu-release.safehouse,#mission-select70,#armory73){box-sizing:border-box;position:fixed;inset:0 0 auto;height:var(--mo-viewport-height,100dvh);width:100%;padding:var(--mo-safe-top) var(--mo-safe-right) var(--mo-safe-bottom) var(--mo-safe-left);overflow:hidden;background:var(--a73-bg);font-family:var(--a73-font);font-synthesis:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.mobile-overhaul :is(#main-menu-release.safehouse,#mission-select70,#armory73) *{box-sizing:border-box}
body.mobile-overhaul :is(#main-menu-release.safehouse,#mission-select70) button{min-height:48px;min-width:44px;font-family:var(--a73-font);border-radius:0}
/* Safehouse: the protected frame stays put while only its content scrolls. */
body.mobile-overhaul #main-menu-release.safehouse .menu{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch;justify-items:stretch;align-content:stretch;gap:0;width:100%;max-width:none!important;min-width:0;min-height:0;height:100%;margin:0;padding:0;background:var(--a73-bg);overflow:hidden}
body.mobile-overhaul #main-menu-release.safehouse :is(.header,.preparation,footer){display:none!important}
body.mobile-overhaul #main-menu-release.safehouse .mo-safehouse-header{grid-column:1;grid-row:1;align-self:stretch;position:static;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;height:auto;min-height:64px;width:auto;margin:0;padding:8px 18px;border-bottom:1px solid #788580;background:var(--a73-bg)}
body.mobile-overhaul #main-menu-release.safehouse .mo-title{display:block;margin:0;padding:0;font-size:22px;font-weight:400;line-height:1.2;color:var(--a73-text)}
body.mobile-overhaul #main-menu-release.safehouse .mo-safehouse-header .safehouse-utilities{position:relative!important;inset:auto;order:0;flex:1 1 100%}
body.mobile-overhaul #main-menu-release.safehouse .mo-safehouse-header:has(#safehouse-profile-actions:not([hidden])){z-index:3}
body.mobile-overhaul #main-menu-release.safehouse #account-cloud-entry{font-size:10px;padding:8px;min-height:44px}
body.mobile-overhaul #main-menu-release.safehouse .mo-safehouse-work{grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;align-content:start;gap:18px;min-width:0;min-height:0;padding:12px 18px 18px;overflow:auto;overscroll-behavior:contain;scroll-padding-block:12px}
body.mobile-overhaul #main-menu-release.safehouse .mo-safehouse-work>*{grid-area:auto!important;min-width:0;width:auto!important}
body.mobile-overhaul #main-menu-release.safehouse .mo-identity{order:0;min-width:0;height:auto!important;border:1px solid var(--a73-line);background:var(--a73-panel)}
body.mobile-overhaul #main-menu-release.safehouse .safehouse-scene{position:relative!important;inset:auto!important;width:100%!important;height:168px!important;min-height:0;max-height:none;margin:0!important;overflow:hidden;pointer-events:auto;touch-action:pan-y}
body.mobile-overhaul #main-menu-release.safehouse .safehouse-scene canvas{display:block;position:static;width:100%;height:100%;object-fit:cover;transform:none}
body.mobile-overhaul #main-menu-release.safehouse .safehouse-hit-plane{display:none!important}
body.mobile-overhaul #main-menu-release.safehouse .context{position:static!important;inset:auto!important;display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px!important;background:none!important;min-height:0!important;width:auto!important;border:0!important;transform:none!important}
body.mobile-overhaul #main-menu-release.safehouse .context>div{min-width:0;width:100%;border:0!important;padding:0!important}
body.mobile-overhaul #main-menu-release.safehouse .context :is(.portrait,.operative-portrait,.selected-portrait,.weapon,.safehouse-weapon){display:none!important}
body.mobile-overhaul #main-menu-release.safehouse #mm-selected-name{font-size:22px!important;line-height:1.2;flex:1}
body.mobile-overhaul #main-menu-release.safehouse #safehouse-nickname{display:none!important}
body.mobile-overhaul #main-menu-release.safehouse .safehouse-detail{position:static!important;width:100%;display:block!important;margin:0;padding:0!important}
body.mobile-overhaul #main-menu-release.safehouse #safehouse-role{font-size:11px!important;color:var(--a73-amber);line-height:1.5}
body.mobile-overhaul #main-menu-release.safehouse #safehouse-description{display:block!important;font-size:11px!important;line-height:1.5;margin:6px 0 0;color:var(--a73-muted)}
body.mobile-overhaul #main-menu-release.safehouse #safehouse-skills{position:static!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px;padding:0 12px 12px;margin:0;width:auto;height:auto!important;min-height:0!important}
body.mobile-overhaul #main-menu-release.safehouse #safehouse-skills .safehouse-skill{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid var(--a73-line)!important;background:var(--a73-panel)!important;color:var(--a73-text);height:64px!important;width:100%!important;padding:8px;font-size:10px!important}
body.mobile-overhaul #main-menu-release.safehouse #safehouse-skills img{display:block;width:36px;height:28px;object-fit:contain;image-rendering:pixelated;border:0!important;padding:0!important}
body.mobile-overhaul #main-menu-release.safehouse .roster-section{order:1;position:static!important;display:none!important;min-width:0;padding:0;background:none;border:0}
body.mobile-overhaul #main-menu-release.safehouse .roster-heading{font-size:11px;margin-bottom:8px}
body.mobile-overhaul #main-menu-release.safehouse #mm-roster{display:grid!important;grid-auto-flow:column;grid-auto-columns:112px;grid-template-columns:none!important;gap:8px;width:100%;max-height:none!important;overflow-x:auto!important;overflow-y:hidden!important;mask-image:none;padding:0 0 8px;scroll-snap-type:x proximity}
body.mobile-overhaul #main-menu-release.safehouse #mm-roster .card{position:relative;display:block!important;flex:none;min-width:0;min-height:0;width:auto!important;height:auto!important;background:var(--a73-panel);border:1px solid var(--a73-line)}
body.mobile-overhaul #main-menu-release.safehouse #mm-roster .selector{display:block!important;width:100%;padding:0!important;min-width:0!important;height:auto!important;background:var(--a73-panel);color:var(--a73-text);text-align:left}
body.mobile-overhaul #main-menu-release.safehouse #mm-roster .portrait{display:block;aspect-ratio:auto;height:76px!important;width:100%!important;overflow:hidden}
body.mobile-overhaul #main-menu-release.safehouse #mm-roster .portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 25%}
body.mobile-overhaul #main-menu-release.safehouse #mm-roster .caption{display:block;padding:8px;font-size:10px!important;white-space:normal;line-height:1.4}
body.mobile-overhaul #main-menu-release.safehouse #mm-roster .card-name{font-size:10px!important;white-space:normal}
body.mobile-overhaul #main-menu-release.safehouse #mm-roster .card-nickname{display:none}
body.mobile-overhaul #main-menu-release.safehouse #mm-roster .info{position:absolute;right:0;top:0;min-width:44px!important;min-height:44px!important;background:#0b151be0}
body.mobile-overhaul #main-menu-release.safehouse .safehouse-utilities{order:2;position:static!important;display:flex!important;flex-wrap:wrap;gap:8px;max-width:none;margin:0!important;height:auto;min-height:0;padding:8px;width:auto!important}
body.mobile-overhaul #main-menu-release.safehouse .safehouse-utilities>button{padding:8px;font-size:11px;height:44px;min-height:44px}
body.mobile-overhaul #main-menu-release.safehouse #daily-quests-v1{order:3;width:100%;margin:0}
body.mobile-overhaul #main-menu-release.safehouse .mo-command{grid-column:1;grid-row:3;position:static;z-index:auto;margin:0;padding:8px 18px;background:var(--a73-panel);border-top:1px solid #788580}
body.mobile-overhaul #main-menu-release.safehouse .mo-command .actions{position:static!important;display:grid!important;grid-template-columns:1fr 1.4fr;gap:12px;padding:0!important;margin:0!important;width:100%}
body.mobile-overhaul #main-menu-release.safehouse .actions button{width:100%;height:48px!important;padding:8px!important;font-size:13px!important}
body.mobile-overhaul #main-menu-release.safehouse #mm-readiness-message{position:static;margin:6px 0 0;font-size:11px;max-height:6em;overflow:auto}
body.mobile-overhaul #main-menu-release.safehouse #mm-readiness-message:empty{display:none}
body.mobile-overhaul #main-menu-release.safehouse #mm-status{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden;clip-path:inset(50%)}
/* Operation: header/body/actions are explicit rows. Only content panels scroll. */
body.mobile-overhaul #mission-select70.operation-map-v1{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:0;min-width:0;max-width:none;align-content:stretch}
body.mobile-overhaul #mission-select70.operation-map-v1>*{width:auto;min-width:0;max-width:100%;margin:0}
body.mobile-overhaul #mission-select70 .operation-header-v1{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:64px;height:auto;padding:8px 18px;border-bottom:1px solid #788580}
body.mobile-overhaul .operation-brand-v1{display:flex;align-items:center;gap:12px;min-width:0}
body.mobile-overhaul #operation-title-v1{font-size:22px;line-height:1.2}
body.mobile-overhaul .operation-district-v1{display:none}
body.mobile-overhaul .mo-map-button{margin-left:auto;padding:8px;font-size:10px}
body.mobile-overhaul .operation-operative-v1{order:3;display:flex;min-width:0;width:100%;padding:6px 8px;border:1px solid var(--a73-line);font-size:12px;gap:8px}
body.mobile-overhaul .operation-operative-v1 img{width:30px;height:30px}
body.mobile-overhaul .operation-operative-v1 b{font-size:12px;overflow-wrap:anywhere}
body.mobile-overhaul .operation-operative-v1 small{display:none}
body.mobile-overhaul .mo-operation-body{display:flex;flex-direction:column;gap:12px;padding:12px 18px;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:12px}
body.mobile-overhaul .mo-mission-rail,body.mobile-overhaul .mo-mission-list{display:contents}
body.mobile-overhaul .mo-mission-card{order:3;position:static;transform:none;display:block;width:100%;min-width:0;max-width:100%;text-align:left;padding:12px;background:var(--a73-panel);color:var(--a73-text);border:1px solid var(--a73-line);font-size:12px;white-space:normal;overflow-wrap:anywhere}
body.mobile-overhaul .mo-mission-card small{display:block;font-size:10px;color:var(--a73-muted);margin-top:6px}
body.mobile-overhaul .mo-mission-card[aria-pressed=true]{order:0;border-color:var(--a73-amber)}
body.mobile-overhaul .mo-mission-info{order:4;font-size:11px;margin:0}
body.mobile-overhaul .operation-brief-v1{order:1;position:static!important;display:block!important;grid-area:auto!important;width:auto!important;min-width:0;margin:0;padding:0!important;background:var(--a73-panel);border:1px solid var(--a73-line)}
body.mobile-overhaul .operation-brief-v1>div+div{border-left:0;padding-left:0}
body.mobile-overhaul .operation-summary-v1{display:block;min-height:140px;max-height:none;padding:12px;position:relative;overflow:hidden;background:var(--a73-bg)}
body.mobile-overhaul .operation-target-v1{position:absolute;right:0;top:0;width:35%;height:100%;opacity:.9}
body.mobile-overhaul .operation-target-v1 img{height:100%;width:100%;object-fit:contain}
body.mobile-overhaul .operation-title-block-v1{position:relative;z-index:1;max-width:70%;min-width:0}
body.mobile-overhaul #operation-name-v1{font-size:27px!important;line-height:1.2;overflow-wrap:anywhere}
body.mobile-overhaul #operation-availability-v1{font-size:10px;color:var(--a73-amber)}
body.mobile-overhaul :is(.operation-objective-v1,.operation-options-v1){padding:12px!important;min-width:0}
body.mobile-overhaul .operation-objective-v1 small{font-size:10px;margin:0}
body.mobile-overhaul #operation-objective-v1{font-size:17px;line-height:1.4;margin:8px 0!important}
body.mobile-overhaul #operation-intel-v1{display:none}
body.mobile-overhaul .operation-options-v1{display:flex;flex-wrap:wrap;gap:12px}
body.mobile-overhaul .operation-options-v1 fieldset{min-width:0;max-width:100%}
body.mobile-overhaul .operation-options-v1 button{font-size:11px;padding:8px}
body.mobile-overhaul .operation-credit-v1{font-size:13px}
body.mobile-overhaul #mission-select70>.operation-deploy-area-v1{position:static;z-index:auto;padding:8px 18px;background:var(--a73-panel);border-top:1px solid #788580;display:block}
body.mobile-overhaul #operation-deploy-v1{width:100%;height:48px;min-height:48px;font-size:15px}
body.mobile-overhaul #mission-message70:empty{display:none}
body.mobile-overhaul .operation-community-card-v1{order:5;position:static!important;inset:auto!important;display:flex;flex-direction:column;align-items:stretch;gap:8px;width:auto!important;max-width:100%;padding:12px;margin:0;border:1px solid var(--a73-line);background:var(--a73-panel)}
body.mobile-overhaul .operation-community-card-v1>*{grid-area:auto!important;min-width:0;max-width:100%;margin:0}
body.mobile-overhaul .operation-community-heading-v1{display:block}
body.mobile-overhaul .operation-community-heading-v1>small{display:block;font-size:11px}
body.mobile-overhaul #operation-event-name-v1{font-size:20px;line-height:1.3;margin:0;overflow-wrap:anywhere}
body.mobile-overhaul #operation-event-v1{font-size:10px;white-space:normal}
body.mobile-overhaul .operation-progress-button-v1{display:block;width:100%;padding:8px;white-space:normal;min-width:0}
body.mobile-overhaul .operation-progress-label-v1{font-size:11px;gap:8px;flex-wrap:wrap}
body.mobile-overhaul .operation-stage-line-v1{gap:8px;flex-wrap:wrap}
body.mobile-overhaul .operation-stage-line-v1 b{font-size:18px}
body.mobile-overhaul .operation-stage-line-v1 small{font-size:10px}
body.mobile-overhaul .operation-cache-v1{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;padding:8px;min-width:0}
body.mobile-overhaul .operation-cache-art-v1{width:40px;height:40px;flex:none}
body.mobile-overhaul .operation-cache-v1>span:nth-child(2){flex:1;min-width:80px}
body.mobile-overhaul .operation-cache-v1 b{font-size:12px;white-space:normal;overflow-wrap:anywhere}
body.mobile-overhaul .operation-cache-v1 small,body.mobile-overhaul .operation-cache-v1>span:nth-child(2)>span{font-size:10px;white-space:normal}
body.mobile-overhaul .operation-cache-arrow-v1{display:block;padding:0;font-size:16px;flex:none}
body.mobile-overhaul #operation-reward-state-v1{font-size:10px;line-height:1.5;white-space:normal}
body.mobile-overhaul .operation-footer-v1{display:none}
body.mobile-overhaul .mo-read-intel{position:static;margin-top:8px;min-height:48px;font-size:11px;width:auto;padding:8px 12px}
/* Armory: actual native purchase node and price share one normal-flow footer. */
body.mobile-overhaul #armory73 .armory-shell73{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-height:0;gap:0;padding:0;max-width:none;overflow:hidden}
body.mobile-overhaul #armory73 .armory-header73{height:auto;min-height:56px;display:flex;flex-wrap:wrap;gap:8px 12px;padding:8px 18px;margin:0}
body.mobile-overhaul #armory73 .armory-header73>*{max-width:100%;min-width:0}
body.mobile-overhaul #armory73 .armory-header73 h1{font-size:22px}
body.mobile-overhaul #armory73 .square-back73{display:none}
body.mobile-overhaul #armory73 :is(.operative73,.supply-depot-entry73){min-height:44px;min-width:44px}
body.mobile-overhaul #armory73 .wallet73{gap:12px;font-size:12px;order:0;width:auto;margin-left:auto;flex-wrap:wrap}
/* Small landscape phones (≤720 px wide): the header holds Credit, Scrap and Intel on one row by tightening spacing;
   the operative name wraps only between words. */
@media(orientation:landscape) and (max-width:720px){body.mobile-overhaul #armory73 .armory-header73{column-gap:8px}body.mobile-overhaul #armory73 .wallet73{gap:0}body.mobile-overhaul #armory73 .wallet73>span{padding:0 8px;gap:6px}body.mobile-overhaul #armory73 .wallet73>span:first-child{padding-left:0}body.mobile-overhaul #armory73 .wallet73 .resource-icon73{width:20px;height:20px}body.mobile-overhaul #armory73 .supply-depot-entry73>span{font-size:10px}body.mobile-overhaul #armory73 .operative73 #armory-name73{font-size:10px;overflow-wrap:normal}}
body.mobile-overhaul #armory73 .wallet73 small{display:none}
body.mobile-overhaul #armory73 .wallet73 b{overflow-wrap:anywhere;min-width:0}
body.mobile-overhaul #armory73 .resource-icon73{width:24px;height:24px}
body.mobile-overhaul #armory73 .operative73{font-size:12px;margin:0;padding:0 8px;border-left:0}
body.mobile-overhaul #armory73 .operative73 b{font-size:12px;overflow-wrap:anywhere}
body.mobile-overhaul #armory73 .operative73 small{display:none}
body.mobile-overhaul #armory73 .supply-depot-entry73{font-size:10px}
body.mobile-overhaul #armory73 .mo-armory-content{min-height:0;min-width:0;overflow:auto;padding:12px 18px 18px;overscroll-behavior:contain;scroll-padding:12px}
body.mobile-overhaul #armory73 main.weapon-focus73{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;flex:none;min-height:0;height:auto;overflow:visible;margin:0}
body.mobile-overhaul #armory73 :is(.weapon-panel73,.parts-panel73){padding:12px;gap:12px;overflow:visible;min-width:0;min-height:0;flex:none}
body.mobile-overhaul #armory73 .pc-weapon-scroll{display:flex;flex-direction:column;flex:none;min-height:0;height:auto;overflow:visible;gap:12px}
body.mobile-overhaul #armory73 .weapon-heading73{flex:none}
body.mobile-overhaul #armory73 .weapon-heading73 h2{font-size:28px}
body.mobile-overhaul #armory73 .weapon-art73{position:relative;flex:0 0 150px;height:150px;min-height:150px;max-height:none;padding:0}
body.mobile-overhaul #armory73 .weapon-art73>img{position:static;inset:auto;display:block;width:100%;height:100%;max-height:none;object-fit:contain;transform:none}
body.mobile-overhaul #armory73 .gun-stats73{flex:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px 0}
body.mobile-overhaul #armory73 .gun-stats73 dt{font-size:9px;line-height:1.5;margin-bottom:8px}
body.mobile-overhaul #armory73 .gun-stats73 dd{font-size:19px;line-height:1.4}
body.mobile-overhaul #armory73 .gun-stats73 dd small{font-size:8px}
body.mobile-overhaul #armory73 .weapon-footer73{flex:none;gap:12px;flex-wrap:wrap;min-height:0;padding-top:8px}
body.mobile-overhaul #armory73 .weapon-footer73>div{min-width:0}
body.mobile-overhaul #armory73 #refit73{min-height:44px;font-size:11px;padding:8px}
body.mobile-overhaul #armory73 .parts-panel73>h2{flex:none;padding:0 0 8px;font-size:16px}
body.mobile-overhaul #armory73 .parts-panel73>h2:after{content:none}
body.mobile-overhaul #armory73 #parts-list73{display:block;flex:none;min-height:0;padding:0;overflow:visible}
body.mobile-overhaul #armory73 .part-row73[hidden]{display:none!important}
body.mobile-overhaul #armory73 .part-row73{display:flex;flex-direction:column;flex:none;gap:12px;padding:12px 0;min-height:0;height:auto;border:0}
body.mobile-overhaul #armory73 .passive-name-d73{min-height:44px;font-size:11px;white-space:normal;text-align:left}
body.mobile-overhaul #armory73 .part-top73 h3{font-size:20px;line-height:1.3}
body.mobile-overhaul #armory73 .part-top73 b{font-size:12px}
body.mobile-overhaul #armory73 .part-bottom73{display:block}
body.mobile-overhaul #armory73 .part-bottom73 p{font-size:13px;line-height:1.5}
body.mobile-overhaul #armory73 .part-bottom73 p small{font-size:11px}
body.mobile-overhaul #armory73 .mo-armory-footer{position:static;display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:12px;min-width:0;padding:8px 18px;margin:0;border-top:1px solid #788580;background:var(--a73-panel)}
body.mobile-overhaul #armory73 .mo-armory-back{position:static;width:100%;height:48px;min-height:48px;padding:8px;font-size:13px}
body.mobile-overhaul #armory73 .mo-purchase-slot{min-width:0}
body.mobile-overhaul #armory73 .part-purchase73{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(96px,128px);align-items:center;gap:8px;min-width:0;width:100%;max-width:none;padding:0;margin:0;background:none;border:0}
body.mobile-overhaul #armory73 .part-purchase73 button{height:48px;min-height:48px;font-size:13px;padding:8px;min-width:0;width:100%}
body.mobile-overhaul #armory73 .part-purchase73 small{font-size:10px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;margin:0;text-align:right}
body.mobile-overhaul #armory73 .mo-part-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body.mobile-overhaul #armory73 .mo-part-tabs button{padding:8px;min-height:48px;font-size:11px}
body.mobile-overhaul #armory73 .mo-part-tabs [aria-pressed=true]{border-color:var(--a73-amber);color:var(--a73-amber)}
body.mobile-overhaul #armory73 .armory-notice73{font-size:11px;line-height:1.5;position:static;min-height:0;margin:12px 0 0}
body.mobile-overhaul #armory73 .armory-notice73:empty{display:none}
}
@media(max-width:1000px) and (orientation:landscape){
body.mobile-overhaul #main-menu-release.safehouse .mo-safehouse-work{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:12px}
body.mobile-overhaul #main-menu-release.safehouse .mo-identity{grid-column:1!important;grid-row:1 / span 3!important}
body.mobile-overhaul #main-menu-release.safehouse .mo-safehouse-work>.roster-section{grid-column:2!important}
body.mobile-overhaul #main-menu-release.safehouse .safehouse-scene{height:112px!important}
body.mobile-overhaul #main-menu-release.safehouse #safehouse-skills .safehouse-skill{height:56px!important;font-size:9px!important;padding:6px}
body.mobile-overhaul #main-menu-release.safehouse #safehouse-skills img{height:24px;width:30px}
body.mobile-overhaul #mission-select70 .operation-header-v1{flex-wrap:nowrap;min-height:56px}
body.mobile-overhaul .operation-operative-v1{order:0;width:auto;max-width:190px;margin-left:auto}
body.mobile-overhaul .mo-map-button{margin-left:0}
body.mobile-overhaul .mo-operation-body{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1.4fr);height:auto;gap:12px;overflow:hidden}
body.mobile-overhaul .mo-mission-rail{display:block;overflow:auto;min-width:0;min-height:0;scroll-padding:4px}
body.mobile-overhaul .mo-mission-list{display:grid;gap:8px;min-width:0}
body.mobile-overhaul .mo-mission-card{padding:12px;font-size:11px}
body.mobile-overhaul .operation-community-card-v1{margin-top:12px}
body.mobile-overhaul .operation-brief-v1{overflow:auto;min-height:0}
body.mobile-overhaul .operation-summary-v1{min-height:96px}
body.mobile-overhaul #operation-name-v1{font-size:22px!important}
body.mobile-overhaul #operation-objective-v1{font-size:14px}
body.mobile-overhaul .operation-options-v1{padding:8px 12px!important}
body.mobile-overhaul .operation-options-v1 fieldset{display:none}
body.mobile-overhaul .operation-credit-v1{margin:0!important}
body.mobile-overhaul #armory73 .armory-header73{flex-wrap:nowrap;min-height:56px}
body.mobile-overhaul #armory73 .mo-armory-content{display:flex;flex-direction:column;padding-bottom:12px;overflow:hidden}
body.mobile-overhaul #armory73 main.weapon-focus73{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);flex:1;min-height:0;overflow:hidden}
body.mobile-overhaul #armory73 :is(.weapon-panel73,.parts-panel73){overflow:auto;overscroll-behavior:contain;scroll-padding:12px}
body.mobile-overhaul #armory73 .weapon-art73{flex-basis:104px;height:104px;min-height:104px}
body.mobile-overhaul #armory73 .weapon-heading73 h2{font-size:24px}
body.mobile-overhaul #armory73 .gun-stats73 dd{font-size:17px}
body.mobile-overhaul #armory73 .mo-armory-footer{grid-template-columns:120px minmax(0,1fr)}
body.mobile-overhaul #armory73 .part-purchase73{grid-template-columns:minmax(0,1fr) 160px}
}

/* Existing Boss Part, Briefing, Summary and Gameplay presentation. */
@media(max-width:1000px){
body.mobile-overhaul #armory-confirm73{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:18px}
body.mobile-overhaul #armory-confirm73 button{min-height:48px;font-size:13px}
body.mobile-overhaul #boss-mod-detail-v1{position:fixed;inset:calc(var(--mo-safe-top) + 12px) calc(var(--mo-safe-right) + 12px) calc(var(--mo-safe-bottom) + 12px) calc(var(--mo-safe-left) + 12px);margin:auto;width:calc(100vw - var(--mo-safe-left) - var(--mo-safe-right) - 24px);max-width:900px;height:calc(var(--mo-viewport-height,100dvh) - var(--mo-safe-top) - var(--mo-safe-bottom) - 24px);max-height:none;padding:18px;display:none;overflow:hidden;gap:12px}
body.mobile-overhaul #boss-mod-detail-v1[open]{display:flex;flex-direction:column}
body.mobile-overhaul #boss-mod-detail-v1 .boss-part-scroll-v2{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 0 12px}
body.mobile-overhaul #boss-mod-detail-v1 .boss-mod-detail-header-v1{flex:none;min-height:48px}
body.mobile-overhaul #boss-mod-detail-v1 button{min-height:48px;min-width:44px;font-size:12px}
body.mobile-overhaul #boss-mod-detail-v1 .boss-mod-actions-v1{flex:none;display:flex;gap:12px}
body.mobile-overhaul #boss-mod-detail-v1 .boss-mod-actions-v1 button{flex:1;padding:12px}
body.mobile-overhaul #boss-mod-detail-v1 .boss-mod-hero-v1{min-height:0;padding:18px 0;gap:18px}
body.mobile-overhaul #boss-mod-detail-v1 .boss-mod-detail-art-v1{max-width:120px;max-height:120px;object-fit:contain;image-rendering:pixelated}
body.mobile-overhaul #boss-mod-detail-v1 :is(p,small,#boss-mod-state-v1){font-size:12px;line-height:1.5}
body.mobile-overhaul #boss-mod-detail-v1 h2{font-size:24px;line-height:1.2}
body.mobile-overhaul #boss-mod-detail-v1 .boss-part-row-v2{min-height:80px;font-size:12px;padding:12px}
body.mobile-overhaul #boss-mod-detail-v1 .boss-part-row-v2 input{min-width:28px;min-height:28px}
body.mobile-overhaul #boss-mod-detail-v1 .boss-mod-effect-v1{padding:18px 0}
body.mobile-overhaul #boss-mod-detail-v1 summary{min-height:48px;padding:12px 0}
body.mobile-overhaul #boss-mod-detail-v1 .boss-part-costs-v2{gap:12px}
body.mobile-overhaul #boss-mod-detail-v1 .boss-mod-slot-border-v1{pointer-events:none}
}
#deployment-meter-v1[data-waiting=true]{opacity:.5}
#mobile-reward-status{font:12px/1.5 var(--a73-font);color:var(--a73-amber)}
@media(max-width:1000px){
body.mobile-overhaul #operation-briefing-v1{inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:18px;overflow:hidden;background:var(--a73-bg)}
body.mobile-overhaul #operation-briefing-v1 .briefing-shell-v1{height:100%;min-height:0;display:flex;flex-direction:column;gap:18px;padding:0}
body.mobile-overhaul #operation-briefing-v1 .briefing-header-v1{height:auto;min-height:40px;flex:none;padding:0 0 12px}
body.mobile-overhaul #operation-briefing-v1 h1{font-size:24px;line-height:1.1}
body.mobile-overhaul #operation-briefing-v1 .briefing-body-v1{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;min-height:0;flex:1;overflow:auto}
body.mobile-overhaul #operation-briefing-v1 .briefing-art-v1{min-height:220px;height:240px;overflow:hidden}
body.mobile-overhaul #operation-briefing-v1 .briefing-target-v1{inset:12px;max-height:210px}
body.mobile-overhaul #operation-briefing-v1 .briefing-target-v1 img{object-fit:contain;width:100%;height:100%;image-rendering:pixelated}
body.mobile-overhaul #operation-briefing-v1 .briefing-mission-v1{padding:18px;z-index:2}
body.mobile-overhaul #operation-briefing-v1 h2{font-size:22px;line-height:1.2}
body.mobile-overhaul #operation-briefing-v1 .briefing-objective-v1{padding:18px}
body.mobile-overhaul #operation-briefing-v1 #briefing-objective-v1{font-size:22px}
body.mobile-overhaul #operation-briefing-v1 :is(p,small){font-size:12px;line-height:1.5}
body.mobile-overhaul #operation-briefing-v1 :is(.briefing-type-v1,#briefing-intel-v1,.briefing-marker-v1){display:none}
body.mobile-overhaul #operation-briefing-v1 #deployment-loading-v1{flex:none;grid-template-columns:minmax(0,1fr) 54px;gap:12px;padding:12px 0 max(0px,env(safe-area-inset-bottom))}
body.mobile-overhaul #operation-briefing-v1 .deployment-caption-v1{grid-column:1/-1;font-size:14px;gap:12px}
body.mobile-overhaul #operation-briefing-v1 #deployment-task-v1{font-size:12px;white-space:normal;text-overflow:clip;overflow:visible;margin-top:8px}
body.mobile-overhaul #operation-briefing-v1 .deployment-actions-v1{grid-column:1/-1;display:flex;gap:12px}
body.mobile-overhaul #operation-briefing-v1 .deployment-actions-v1 button{min-height:48px;min-width:96px;font-size:13px;flex:1}
body.mobile-overhaul #operation-briefing-v1 #deployment-error-v1{font-size:12px;line-height:1.5}
body.mobile-overhaul #result{padding:0!important;width:100%;max-width:none;min-width:0}
body.mobile-overhaul .report73{padding:18px 18px 100px!important;max-width:none!important;width:100%!important;margin:0;min-width:0;background:var(--a73-bg)}
body.mobile-overhaul .report-header73{height:auto!important;min-height:48px;padding:0 0 18px;margin-bottom:18px}
body.mobile-overhaul .report-header73 h1{font-size:24px!important;line-height:1.1}
body.mobile-overhaul .report-body73{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none;grid-auto-rows:max-content;gap:18px!important;min-width:0}
body.mobile-overhaul .report-operative73{display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:12px;min-height:0!important;padding:12px!important;min-width:0}
body.mobile-overhaul .report-operative73 h2{font-size:17px!important;margin:0}
body.mobile-overhaul #report-portrait73{width:64px!important;height:64px!important;object-fit:cover;grid-row:span 2}
body.mobile-overhaul #debrief-name{height:48px!important;font-size:13px!important;width:100%;min-width:0}
body.mobile-overhaul .report-score73{padding:18px!important;min-width:0;grid-template-rows:repeat(4,max-content);overflow:hidden}
body.mobile-overhaul .report-score73 h2{font-size:17px!important}
body.mobile-overhaul .report-total73{font-size:56px!important;line-height:1.2!important;padding:12px 0!important;display:block;overflow-wrap:anywhere}
body.mobile-overhaul .report-breakdown73{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 0!important}
body.mobile-overhaul .report-breakdown73 small{font-size:8px!important;white-space:normal}
body.mobile-overhaul .report-breakdown73 b{font-size:19px!important;overflow-wrap:anywhere}
body.mobile-overhaul .report-stats73{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 8px;padding:18px 0 0!important}
body.mobile-overhaul .report-stats73 dt{font-size:8px!important}
body.mobile-overhaul .report-stats73 dd{font-size:17px!important;line-height:1.4}
body.mobile-overhaul .report-rewards73{padding:18px!important;min-width:0}
body.mobile-overhaul .report-rewards73>h2{font-size:18px!important}
body.mobile-overhaul .report-rewards73>div{gap:18px!important;display:flex;flex-wrap:wrap}
body.mobile-overhaul .report-rewards73>div b{font-size:24px!important}
body.mobile-overhaul .report-rewards73 .resource-icon73{width:28px;height:28px}
body.mobile-overhaul .report-rewards73 .boss-mod-reward-art-v1{width:90px;min-width:0;height:70px}
body.mobile-overhaul .report-rewards73 .boss-mod-reward-art-v1 img{max-width:90px;max-height:70px;object-fit:contain}
body.mobile-overhaul .report-rewards73 .boss-mod-reward-v1{padding:12px 0;gap:12px}
body.mobile-overhaul .report-rewards73 .boss-mod-reward-copy-v1{min-width:0}
body.mobile-overhaul .report-rewards73 .boss-mod-reward-copy-v1 h3{font-size:18px}
body.mobile-overhaul .report-rewards73 .boss-mod-reward-copy-v1 p{font-size:11px;line-height:1.5}
body.mobile-overhaul .report-footer73{position:fixed;bottom:0;left:0;right:0;z-index:20;background:var(--a73-panel);display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;padding:12px 18px max(12px,env(safe-area-inset-bottom))!important;border-top:1px solid #788580}
body.mobile-overhaul .report-footer73 button{min-height:48px!important;font-size:11px!important;padding:8px!important;min-width:0}
body.mobile-overhaul #save-scorecard{position:static;grid-column:1/-1;min-height:44px!important}
body.mobile-overhaul .report-storage73{position:static;font-size:11px;line-height:1.5;display:block;margin-top:18px}
body.mobile-overhaul.debriefing #overlay{position:fixed;inset:0;overflow:auto;padding:0;background:var(--a73-bg);display:block!important}
body.mobile-overhaul.debriefing #overlay>.overlay-card,body.mobile-overhaul.debriefing #overlay>div{width:100%;max-width:none;padding:0;min-height:0}
}
@media(max-width:1000px) and (orientation:landscape){
body.mobile-overhaul #operation-briefing-v1{padding:12px 18px}
body.mobile-overhaul #operation-briefing-v1 .briefing-shell-v1{gap:12px}
body.mobile-overhaul #operation-briefing-v1 .briefing-body-v1{grid-template-columns:48% minmax(0,1fr);overflow:hidden;gap:18px}
body.mobile-overhaul #operation-briefing-v1 .briefing-art-v1{height:100%;min-height:0}
body.mobile-overhaul #operation-briefing-v1 .briefing-objective-v1{padding:12px;overflow:auto}
body.mobile-overhaul #operation-briefing-v1 #briefing-objective-v1{font-size:18px}
body.mobile-overhaul #operation-briefing-v1 .briefing-completion-v1{padding-top:8px}
body.mobile-overhaul #operation-briefing-v1 #deployment-loading-v1{grid-template-columns:minmax(0,1fr) auto;gap:8px}
body.mobile-overhaul #operation-briefing-v1 .deployment-caption-v1{grid-column:1;font-size:12px;grid-row:1}
body.mobile-overhaul #operation-briefing-v1 #deployment-meter-v1{grid-column:1;grid-row:2}
body.mobile-overhaul #operation-briefing-v1 #deployment-percent-v1{display:none}
body.mobile-overhaul #operation-briefing-v1 .deployment-actions-v1{grid-column:2;grid-row:1 / span 2}
body.mobile-overhaul #operation-briefing-v1 .deployment-spinner-v1{display:none}
body.mobile-overhaul .report73{height:100dvh;overflow:hidden;padding-bottom:132px!important}
body.mobile-overhaul .report-header73{min-height:32px;margin-bottom:12px;padding-bottom:8px}
body.mobile-overhaul .report-header73 h1{font-size:22px!important}
body.mobile-overhaul .report-body73{grid-template-columns:1fr 1fr!important;max-height:calc(100dvh - 196px);overflow:auto;align-items:start}
body.mobile-overhaul .report-operative73{grid-column:1;grid-row:2}
body.mobile-overhaul .report-score73{grid-column:1;grid-row:1;padding:12px!important}
body.mobile-overhaul .report-rewards73{grid-column:2;grid-row:1 / span 2;padding:12px!important}
body.mobile-overhaul .report-total73{font-size:40px!important}
body.mobile-overhaul .report-breakdown73 b{font-size:17px!important}
}

@media(max-width:1000px){body.mobile-overhaul #operation-briefing-v1 .briefing-mission-v1{position:absolute;left:0;bottom:0;top:auto;width:100%;background:linear-gradient(transparent,var(--a73-bg))}body.mobile-overhaul #operation-briefing-v1 .briefing-mission-v1 h2{font-size:20px;line-height:1.2;max-width:100%}body.mobile-overhaul #operation-briefing-v1 #briefing-operation-v1{display:none}body.mobile-overhaul .report73{padding-bottom:100px!important}body.mobile-overhaul .report-rewards73 #save-scorecard{display:block;min-height:48px;width:100%;font-size:12px;margin-top:18px}body.mobile-overhaul .report-body73{max-height:none}body.mobile-overhaul .report-footer73{grid-template-rows:auto}}
@media(max-width:1000px) and (orientation:landscape){body.mobile-overhaul .report-body73{max-height:calc(100dvh - 156px)}}
@media(pointer:coarse){
body.playing #mobile-controls [data-pixel-glyph]{background-image:none!important}
body.playing #mobile-controls .mobile-pixel-ring{display:block!important;position:absolute;inset:0;pointer-events:none;background-repeat:no-repeat;mask-image:radial-gradient(circle closest-side,transparent 86%,#000 87%);-webkit-mask-image:radial-gradient(circle closest-side,transparent 86%,#000 87%)}
body.playing #mobile-controls .mobile-pixel-glyph{display:block!important;position:absolute;left:24%;top:24%;width:52%;height:52%;pointer-events:none}
body.playing #mobile-controls .mobile-pixel-glyph .touch-icon{display:block!important;width:100%!important;height:100%!important;fill:var(--a73-text);shape-rendering:crispEdges}
body.playing .pc-action-art{image-rendering:pixelated}
}
#pc-rotate{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}
#pc-rotate button{min-height:48px}
#mobile-rotate-continue[hidden]{display:none}

@media(max-width:1000px){body.mobile-overhaul .mo-intel-dialog{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:18px;font-size:13px;line-height:1.5}body.mobile-overhaul .mo-intel-dialog button{min-height:48px;width:100%;margin-top:18px}body.mobile-overhaul .operation-objective-v1{position:relative}}

.mo-map-dialog,.mo-intel-dialog{width:min(900px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;padding:18px}.mo-map-dialog .operation-map-field-v1{position:relative;inset:auto;width:100%;height:450px;min-height:300px;margin:12px 0 0}.mo-map-dialog>button,.mo-intel-dialog>button{min-height:48px}.mo-intel-dialog{font:13px/1.5 var(--a73-font)}
@media(max-width:1000px){
body.mobile-overhaul :is(.mo-map-dialog,.mo-intel-dialog,#armory-confirm73,#safehouse-skill-dialog,.operation-dialog-v1){max-width:calc(100vw - var(--mo-safe-left) - var(--mo-safe-right) - 24px);max-height:calc(var(--mo-viewport-height,100dvh) - var(--mo-safe-top) - var(--mo-safe-bottom) - 24px);overflow:auto}
body.mobile-overhaul #operation-briefing-v1{padding-top:max(18px,env(safe-area-inset-top));padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right));padding-bottom:max(12px,env(safe-area-inset-bottom))}
body.mobile-overhaul .report73{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important;padding-top:max(18px,env(safe-area-inset-top))!important}
}

/* Owner 2026-11-24: phones change operative by swiping the Safehouse picture (or its arrows); the OPERATIVES strip is
   hidden and the text is one short line (name, role, first summary line; no nickname). mobile-ui-overhaul.js wires it. */
body.mobile-overhaul #main-menu-release.safehouse #safehouse-description .summary-more{display:none}
body.mobile-overhaul #main-menu-release.safehouse .mo-op-step{position:absolute;top:50%;z-index:2;width:44px;height:44px;margin:-22px 0 0;padding:0;display:grid;place-items:center;border:1px solid var(--a73-line);border-radius:var(--a73-corner,0px);border-color:rgba(232,224,204,.55);background:rgba(11,21,27,.8);color:var(--a73-text);cursor:pointer}
body.mobile-overhaul #main-menu-release.safehouse .mo-op-step img{width:18px;height:18px;display:block;filter:brightness(0) invert(.92)}
body.mobile-overhaul #main-menu-release.safehouse .mo-op-step[data-step="-1"]{left:6px}
body.mobile-overhaul #main-menu-release.safehouse .mo-op-step[data-step="1"]{right:6px}
body.mobile-overhaul #main-menu-release.safehouse .mo-op-step:focus-visible{outline:3px solid var(--a73-text);outline-offset:2px}
body.mobile-overhaul #main-menu-release.safehouse .mo-op-dots{position:absolute;left:0;right:0;bottom:6px;z-index:2;display:flex;justify-content:center;gap:6px;pointer-events:none}
body.mobile-overhaul #main-menu-release.safehouse .mo-op-dots i{width:6px;height:6px;background:rgba(232,224,204,.45)}
body.mobile-overhaul #main-menu-release.safehouse .mo-op-dots i[data-on]{background:var(--a73-amber)}
body.mobile-overhaul #main-menu-release.safehouse :is(.mo-op-step,.mo-op-dots)[hidden]{display:none}

/* Owner 2026-11-24, phones (both orientations): DEPLOY is always on screen, pinned to the bottom of the scrolling
   mission panel, and the CO-OP · COMING SOON placeholder is gone. PC layout unchanged. */
body.mobile-overhaul #mission-select70 #operation-coop-v1{display:none}
body.mobile-overhaul #mission-select70 .operation-panel-v2{padding-bottom:0}
body.mobile-overhaul #mission-select70 .operation-deploy-area-v1{position:sticky;bottom:0;z-index:3;margin-top:auto;padding:10px 0 calc(16px + env(safe-area-inset-bottom));background:var(--a73-bg,#0b151b);box-shadow:0 -12px 16px rgba(11,21,27,.92)}
body.mobile-overhaul #mission-select70 #operation-deploy-v1{min-height:52px}
/* Leaderboard on phones (owner 2026-11-25): a 44 px trophy icon first in the SETTINGS / SOUND group at the top right (moved
   there by mobile-ui-overhaul.js); the word stays its accessible name, like SETTINGS. The top bar is then PROFILE (fills)
   and the icon group, at every phone width. PC keeps the labelled button. */
html body.mobile-overhaul #main-menu-release.safehouse nav.safehouse-utilities{grid-template-columns:minmax(0,1fr) max-content;width:100%!important;row-gap:0}
html body.mobile-overhaul #main-menu-release.safehouse nav.safehouse-utilities #mm-profile{grid-column:1;width:100%;max-width:none}
html body.mobile-overhaul #main-menu-release.safehouse .safehouse-preferences{grid-column:2;grid-template-columns:repeat(3,44px);width:auto;min-width:0;padding:0 0 0 8px}
html body.mobile-overhaul #main-menu-release.safehouse .safehouse-preferences #mm-leaderboard{order:-1;grid-column:auto;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;gap:0;font-size:0;border:0;box-shadow:none;background:transparent;color:var(--ron-accent)}
html body.mobile-overhaul #main-menu-release.safehouse .safehouse-preferences #mm-leaderboard svg{width:24px;height:24px}
html body.mobile-overhaul #main-menu-release.safehouse .safehouse-preferences #mm-leaderboard small{display:none}

/* Owner 2026-12-01: operatives in development as carousel previews on phones. Their card replaces the selected
   operative's context and skills while shown; a tap on it (or on the room) opens the dossier. */
body.mobile-overhaul #main-menu-release.safehouse[data-preview] :is(.context,#safehouse-skills){display:none!important}
body.mobile-overhaul #main-menu-release.safehouse .mo-preview-card{display:grid;gap:6px;width:100%;margin:0;padding:12px;border:0;background:none;color:var(--a73-text);text-align:left;font:12px/1.5 var(--a73-font);cursor:pointer}
body.mobile-overhaul #main-menu-release.safehouse .mo-preview-card[hidden]{display:none!important}
body.mobile-overhaul #main-menu-release.safehouse .mo-preview-name{font-size:24px;line-height:1.1}
body.mobile-overhaul #main-menu-release.safehouse .mo-preview-title{color:var(--a73-amber)}
body.mobile-overhaul #main-menu-release.safehouse .mo-preview-state{color:var(--a73-muted);font-size:11px}
body.mobile-overhaul #main-menu-release.safehouse .mo-preview-open{justify-self:stretch;margin-top:4px;padding:12px;border:1px solid var(--a73-line);color:var(--a73-amber);text-align:center;min-height:44px;box-sizing:border-box}
body.mobile-overhaul #main-menu-release.safehouse .mo-preview-card:focus-visible{outline:3px solid var(--a73-text);outline-offset:-3px}
body.mobile-overhaul #main-menu-release.safehouse .mo-op-dots i[data-preview]{background:transparent;box-shadow:inset 0 0 0 1px rgba(232,224,204,.55)}
body.mobile-overhaul #main-menu-release.safehouse .mo-op-dots i[data-preview][data-on]{background:var(--a73-amber);box-shadow:none}
@media(orientation:landscape){body.mobile-overhaul #main-menu-release.safehouse .mo-preview-state{display:none}body.mobile-overhaul #main-menu-release.safehouse .mo-preview-card{gap:4px;padding:10px 12px}body.mobile-overhaul #main-menu-release.safehouse .mo-preview-open{justify-self:start;margin:0;padding:4px 0;border:0;min-height:0;text-align:left;text-decoration:underline}}
body.mobile-overhaul #main-menu-release.safehouse .mo-preview-card[data-kind=recruit] .mo-preview-state{color:var(--a73-amber)}
