/* mobile16pm A5 (fx): iPhone 16 Pro Max phone layout only. Every rule must sit inside @media (max-width:999.98px) and start with body:not(.desktop-game) (desktop >=1000px must not change). Loaded last (index.html), so it overrides style.css / mobile.css / campaign.css. */
@media (max-width:999.98px){
/* ── 1. Boss 登场 / 变身 / 倒下演出框（presentation.mjs phoneCinematicFrame）：铺满屏，片子取原片 / DPR 的高度（1080p ≈ 360px）满屏宽 cover 裁，标题在上、跳过在下（避开灵动岛与底部横条） ── */
body:not(.desktop-game) #cinematic-dialog.cinematic-modal{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#020407;overflow:hidden}
body:not(.desktop-game) #cinematic-dialog.cinematic-modal[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
body:not(.desktop-game) #cinematic-dialog.cinematic-modal::backdrop{background:#020407}
body:not(.desktop-game) #cinematic-dialog.cinematic-modal::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(120% 60% at 50% 50%,#18263055,transparent 70%)}
body:not(.desktop-game) #cinematic-dialog video{position:relative;display:block;flex:none;width:var(--m16-cin-w,100vw);height:var(--m16-cin-h,360px);max-height:none;aspect-ratio:auto;object-fit:cover;object-position:50% 45%;background:#030609;box-shadow:0 0 0 1px #d0ad7633,0 18px 60px #000}
body:not(.desktop-game) #cinematic-dialog .cinematic-bar{display:contents}
body:not(.desktop-game) #cinematic-dialog .cinematic-bar strong{order:-1;position:relative;max-width:calc(100vw - 40px);padding:10px 0 12px;font:600 22px/1.3 "RuneSerif","Noto Serif SC",var(--serif,serif);letter-spacing:.14em;text-align:center;color:#f3e2b8;text-shadow:0 2px 14px #000;border-bottom:1px solid #d0ad7655}
body:not(.desktop-game) #cinematic-dialog .cinematic-bar button{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:calc(max(16px,env(safe-area-inset-bottom)) + 8px);min-width:112px;min-height:44px;padding:10px 18px;border:1px solid #d0ad7688;border-radius:22px;background:#0c141bcc;color:#f5deb0;font-size:15px;letter-spacing:.06em;white-space:nowrap}

/* ── 2. 手机技能切入（skillcut.mjs playPhoneSkillCut / playPhoneComboCut）：名牌、标签按手机字号；分格本身沿用 skillcut.css ── */
body:not(.desktop-game) .skc.skc-phone .skc-tag{font-size:16px;padding:4px 9px}
body:not(.desktop-game) .skc.skc-phone .skc-plate{font-size:15px;gap:5px;padding:3px 10px 3px 3px}
body:not(.desktop-game) .skc.skc-phone .skc-orb{width:22px;height:22px}
body:not(.desktop-game) .skc.skc-phone .skc-mplate{left:6px;right:6px;bottom:16px;justify-content:center}
body:not(.desktop-game) .skc.skc-phone .skc-mplate .skc-plate{font-size:13px;max-width:100%;overflow:hidden}
body:not(.desktop-game) .skc.skc-phone .skc-streak{height:44px}
body:not(.desktop-game) .skc.skc-phone .skc-streak2{height:6px}
body:not(.desktop-game) .skc.skc-phone .skc-streak3{height:30px}

/* ── 3. 「暂不支持手机操作，请在电脑上游玩」（m16-unsupported.mjs）：提示行、提示框、第七章地图卡、第 60 关结算 ── */
body:not(.desktop-game) .m16-unsup-icon{flex:none;width:20px;height:20px;color:#e8c98a}
body:not(.desktop-game) .m16-unsup-line{display:flex;align-items:flex-start;gap:10px;margin:0;padding:12px 14px;border:1px solid #d0ad7655;border-radius:8px;background:#0f181dcc;color:#e9dcc0;font-size:14px;line-height:1.5;text-align:left}
body:not(.desktop-game) .m16-unsup-line>span{display:flex;flex-direction:column;gap:2px;min-width:0}
body:not(.desktop-game) .m16-unsup-line b{font:600 15px/1.4 "RuneSerif","Noto Serif SC",var(--serif,serif);color:#f3e2b8;letter-spacing:.06em}
body:not(.desktop-game) dialog.m16-unsup{width:min(400px,calc(100vw - 32px));max-width:none;margin:auto;padding:0;border:1px solid #d0ad7688;border-radius:12px;background:linear-gradient(180deg,#172328,#0d1418);color:#eee0c3;box-shadow:0 24px 70px #000c}
body:not(.desktop-game) dialog.m16-unsup::backdrop{background:#020508cc}
body:not(.desktop-game) .m16-unsup-card{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 22px 22px;text-align:center}
body:not(.desktop-game) .m16-unsup-seal{display:grid;place-items:center;width:56px;height:56px;border:1px solid #d0ad7699;border-radius:50%;background:#0a1115}
body:not(.desktop-game) .m16-unsup-seal .m16-unsup-icon{width:28px;height:28px}
body:not(.desktop-game) dialog.m16-unsup h2{margin:4px 0 0;font:600 21px/1.35 "RuneSerif","Noto Serif SC",var(--serif,serif);letter-spacing:.1em;color:#f3e2b8}
body:not(.desktop-game) .m16-unsup-text{margin:0;font-size:16px;line-height:1.6;color:#eee0c3}
body:not(.desktop-game) .m16-unsup-hint{margin:0;font-size:14px;line-height:1.5;color:#b9c6bf}
body:not(.desktop-game) .m16-unsup-hint[hidden],body:not(.desktop-game) .m16-unsup-ok[hidden]{display:none}
body:not(.desktop-game) .m16-unsup-ok{min-width:160px;min-height:48px;margin-top:8px;font-size:16px}
/* 第七章地图卡：占满两列、锁定预览图（≤ 原像素 / DPR，srcset 688 / 1376）+ 标题 + 提示；可点（出提示框） */
body:not(.desktop-game) #map-grid .stage-card.m16-c7-card{grid-column:1/-1;display:block;width:100%;padding:0;border:1px solid #d0ad7688;border-radius:10px;background:#0f171b;text-align:left;overflow:hidden;cursor:pointer;opacity:1}
body:not(.desktop-game) #map-grid .m16-c7-card .m16-c7-art{position:relative;display:block;margin:0;padding:0;aspect-ratio:1376/768;overflow:hidden;background:#05080c}
body:not(.desktop-game) #map-grid .m16-c7-card .m16-c7-art img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;filter:saturate(.75) brightness(.78)}
body:not(.desktop-game) #map-grid .m16-c7-card .m16-c7-art::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,#0f171bf0 100%)}
body:not(.desktop-game) #map-grid .m16-c7-card .m16-c7-badge{position:absolute;z-index:1;top:10px;right:10px;display:flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid #d0ad7699;border-radius:14px;background:#081014d9;color:#f3e2b8;font-style:normal;font-size:13px;line-height:1.2}
body:not(.desktop-game) #map-grid .m16-c7-card .m16-c7-badge .m16-unsup-icon{width:16px;height:16px}
body:not(.desktop-game) #map-grid .m16-c7-card .m16-c7-badge span{display:inline;margin:0;padding:0;font-size:13px}
body:not(.desktop-game) #map-grid .m16-c7-card .m16-c7-text{display:flex;flex-direction:column;gap:4px;margin:0;padding:12px 16px 16px}
body:not(.desktop-game) #map-grid .m16-c7-card .m16-c7-title{display:block;font:600 19px/1.35 "RuneSerif","Noto Serif SC",var(--serif,serif);letter-spacing:.1em;color:#f3e2b8}
body:not(.desktop-game) #map-grid .m16-c7-card .m16-c7-note{display:block;margin:0;padding:0;font-size:14px;line-height:1.5;color:#d9cdb2}
/* 第 60 关（终潮）结算：电脑「前往下一章 · 雷霆天狱」的位置 */
body:not(.desktop-game) #end-dialog .m16-unsup-next{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:16px 0 16px}
body:not(.desktop-game) #end-dialog .m16-unsup-kicker{font-size:12px;letter-spacing:.3em;color:var(--gold,#d0ad76)}
}
