/* mobile16pm A2 (map): 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. */
/* 手机地图三页（game.mjs openMap / openPhoneChapter / openPhonePrep → mobile-pages.mjs phoneWorldMarkup / phoneChapterMarkup / phonePrepMarkup）：
   #map-dialog 铺满屏、自己滚动；顶栏吸顶（让开灵动岛），出战准备的「出 战」吸底（让开底部横条）。字 ≥ 12 px，可点的 ≥ 44 px。 */
@media (max-width:999.98px){
body:not(.desktop-game) #map-dialog{--m16-gold:#e2c58e;--m16-gold-hi:#f3e2b8;--m16-text:#ece3cf;--m16-muted:#b4bdb7;--m16-card:#141e23;--m16-line:#4a585b99;
  position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;
  background:radial-gradient(120% 50% at 50% 0%,#1a2a31 0%,#0b1216 60%),#0b1216;color:var(--m16-text);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;box-shadow:none}
body:not(.desktop-game) #map-dialog::backdrop{background:#04090d}
body:not(.desktop-game) #map-dialog>.modal-close,body:not(.desktop-game) #map-dialog>.eyebrow,body:not(.desktop-game) #map-dialog>h2,body:not(.desktop-game) #map-dialog>label,body:not(.desktop-game) #map-dialog>p{display:none}
body:not(.desktop-game) #map-dialog #map-grid{display:block;margin:0;padding:0 16px calc(28px + env(safe-area-inset-bottom));min-height:100%}
body:not(.desktop-game) #map-dialog[data-m16="prep"] #map-grid{padding-bottom:0}
body:not(.desktop-game) #map-dialog button{font:inherit;color:inherit}

/* 顶栏 */
body:not(.desktop-game) #map-dialog .m16-bar{position:sticky;top:0;z-index:6;display:flex;align-items:center;gap:6px;margin:0 -16px;padding:env(safe-area-inset-top) 6px 0;min-height:calc(56px + env(safe-area-inset-top));background:#0a1216eb;border-bottom:1px solid #d0ad7640;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
body:not(.desktop-game) #map-dialog .m16-bar-pad{flex:none;width:44px}
body:not(.desktop-game) #map-dialog .m16-back{flex:none;display:flex;align-items:center;gap:2px;min-width:44px;max-width:38vw;min-height:44px;padding:0 8px 0 4px;color:var(--m16-gold);cursor:pointer}
body:not(.desktop-game) #map-dialog .m16-back span{font-size:28px;line-height:1;margin-top:-3px}
body:not(.desktop-game) #map-dialog .m16-back small{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:not(.desktop-game) #map-dialog .m16-bar-title{flex:1;min-width:0;text-align:center}
body:not(.desktop-game) #map-dialog .m16-bar-title h2{outline:none;margin:0;font:600 18px/1.3 "RuneSerif","Noto Serif SC",var(--serif,serif);letter-spacing:.12em;color:var(--m16-gold-hi);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:not(.desktop-game) #map-dialog .m16-bar-title small{display:block;font-size:12px;line-height:1.4;color:var(--m16-muted);letter-spacing:.06em}
body:not(.desktop-game) #map-dialog .m16-close{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;font-size:28px;font-weight:200;line-height:1;color:#d6d2c3;cursor:pointer}
html.i18n-en body:not(.desktop-game) #map-dialog .m16-bar-title h2{letter-spacing:.03em}

/* 世界之塔：合成图（裁两侧云海，1290 px 宽 = 430 × 3，不放大）+ 浮岛印记 + 楼层牌 */
body:not(.desktop-game) #map-dialog .m16-tower{position:relative;margin:0 -16px;aspect-ratio:1290/991;overflow:hidden;background:#1a2632}
body:not(.desktop-game) #map-dialog .m16-tower-art{display:block;width:100%;height:100%;object-fit:cover}
body:not(.desktop-game) #map-dialog .m16-tower-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#0a121640 0%,transparent 20%,transparent 78%,#0b1216 100%)}
body:not(.desktop-game) #map-dialog .m16-isle,body:not(.desktop-game) #map-dialog .m16-floor{position:absolute;z-index:1;transform:translate(-50%,-50%);cursor:pointer;-webkit-tap-highlight-color:transparent}
body:not(.desktop-game) #map-dialog .m16-isle{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:44px;min-height:44px;padding:0}
body:not(.desktop-game) #map-dialog .m16-isle i{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--m16-gold);border-radius:50%;background:radial-gradient(circle at 40% 35%,#24343d,#0b1419);box-shadow:0 0 0 2px #0b141999,0 2px 10px #000a;font:700 16px/1 "RuneSerif","Noto Serif SC",serif;font-style:normal;color:var(--m16-gold-hi)}
body:not(.desktop-game) #map-dialog .m16-isle span{display:flex;align-items:baseline;gap:4px;padding:1px 7px;border-radius:9px;background:#081015c4;font-size:12px;line-height:1.35;color:#f4ead2;white-space:nowrap;text-shadow:0 1px 2px #000}
body:not(.desktop-game) #map-dialog .m16-isle small{font-size:12px;color:var(--m16-gold)}
body:not(.desktop-game) #map-dialog .m16-isle.is-cleared i{border-color:#9fcf98;color:#d9f0d2}
body:not(.desktop-game) #map-dialog .m16-isle.is-current i{box-shadow:0 0 0 2px #f1d89666,0 0 14px #f1d896aa}
body:not(.desktop-game) #map-dialog .m16-isle.is-locked{filter:grayscale(.9);opacity:.75}
body:not(.desktop-game) #map-dialog .m16-floor{display:flex;align-items:center;gap:6px;min-height:44px;padding:4px 12px 4px 6px;border:1px solid #d0ad7699;border-radius:22px;background:#0a1219d6;box-shadow:0 3px 12px #000a;white-space:nowrap}
body:not(.desktop-game) #map-dialog .m16-floor b{display:grid;place-items:center;min-width:30px;height:30px;padding:0 4px;border-radius:15px;background:#d0ad7626;font:700 15px/1 "RuneSerif","Noto Serif SC",serif;color:var(--m16-gold-hi)}
body:not(.desktop-game) #map-dialog .m16-floor span{display:flex;flex-direction:column;font:600 13px/1.25 "RuneSerif","Noto Serif SC",serif;color:#f4ead2;letter-spacing:.04em}
body:not(.desktop-game) #map-dialog .m16-floor small{font:400 12px/1.2 system-ui,sans-serif;color:var(--m16-gold);letter-spacing:0}
body:not(.desktop-game) #map-dialog .m16-floor-name{font-style:normal}
html.i18n-en body:not(.desktop-game) #map-dialog .m16-floor-name{display:none}
html.i18n-en body:not(.desktop-game) #map-dialog .m16-floor{padding-right:10px}
html.i18n-en body:not(.desktop-game) #map-dialog .m16-isle span{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis}
html.i18n-en body:not(.desktop-game) #map-dialog .m16-isle small{margin-left:4px}
html.i18n-en body:not(.desktop-game) #map-dialog .m16-rules .ri-row-name i{width:auto;min-width:24px;padding:0 6px;border-radius:12px;font-size:12px}
body:not(.desktop-game) #map-dialog .m16-floor.is-cleared{border-color:#9fcf9888}
body:not(.desktop-game) #map-dialog .m16-floor.is-current{border-color:#f1d896;box-shadow:0 0 0 1px #f1d89666,0 0 14px #f1d89666}
body:not(.desktop-game) #map-dialog .m16-floor.is-locked{filter:grayscale(.9);opacity:.8}

/* 四枚难度印记（电脑出战准备同款四颗宝石） */
body:not(.desktop-game) #map-dialog .m16-seals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0 4px}
body:not(.desktop-game) #map-dialog .m16-seal{display:flex;flex-direction:column;align-items:center;gap:5px;min-height:68px;padding:6px 0;border:1px solid transparent;border-radius:10px;cursor:pointer}
body:not(.desktop-game) #map-dialog .m16-seal b{font:600 14px/1.2 "RuneSerif","Noto Serif SC",serif;letter-spacing:.12em;color:#cfc6b0}
body:not(.desktop-game) #map-dialog .m16-gem{position:relative;width:38px;height:38px;border-radius:50%;background:radial-gradient(circle at 36% 30%,#fff6 0 12%,transparent 30%),radial-gradient(circle at 50% 55%,var(--g1),var(--g2) 70%);box-shadow:0 0 0 2px #2a2016,0 0 0 3px #b0905c88,inset 0 -4px 6px #0007}
body:not(.desktop-game) #map-dialog .m16-seal.is-normal{--g1:#ffcf6a;--g2:#b8641a}
body:not(.desktop-game) #map-dialog .m16-seal.is-hard{--g1:#ff6d7d;--g2:#7a0f22}
body:not(.desktop-game) #map-dialog .m16-seal.is-hell{--g1:#b88cff;--g2:#3b1468}
body:not(.desktop-game) #map-dialog .m16-seal.is-asura{--g1:#ff5a4a;--g2:#4d0610}
body:not(.desktop-game) #map-dialog .m16-seal.is-on{border-color:#d0ad7666;background:#d0ad7614}
body:not(.desktop-game) #map-dialog .m16-seal.is-on b{color:var(--m16-gold-hi)}
body:not(.desktop-game) #map-dialog .m16-seal.is-on .m16-gem{box-shadow:0 0 0 2px #2a2016,0 0 0 3px #f1d896,0 0 16px var(--g1),inset 0 -4px 6px #0007}
body:not(.desktop-game) #map-dialog .m16-seal.is-shut .m16-gem{filter:grayscale(.85) brightness(.7)}
body:not(.desktop-game) #map-dialog .m16-seal.is-shut .m16-gem::after{content:"🔒";position:absolute;right:-6px;bottom:-4px;font-size:13px;line-height:1}
body:not(.desktop-game) #map-dialog .m16-seal.is-shut b{color:#8f978f}
body:not(.desktop-game) #map-dialog .m16-seal-note{margin:2px 0 6px;font-size:12px;line-height:1.6;color:var(--m16-muted);text-align:center}
body:not(.desktop-game) #map-dialog .m16-seal-note.is-shut{color:#f2bfa6;font-size:13px}

/* 当前远征 */
body:not(.desktop-game) #map-dialog .m16-exp{display:grid;gap:8px;margin:10px 0 0;padding:14px;border:1px solid #d0ad7655;border-radius:10px;background:linear-gradient(180deg,#1b282d,#121b1f)}
body:not(.desktop-game) #map-dialog .m16-kicker{display:block;font-size:12px;letter-spacing:.06em;color:var(--m16-gold)}
body:not(.desktop-game) #map-dialog .m16-exp-go{display:flex;align-items:center;gap:8px;width:100%;min-height:52px;padding:10px 14px;border:1px solid #d0ad7699;border-radius:8px;background:#22323a;color:var(--m16-gold-hi);text-align:left;font-size:15px;cursor:pointer}
body:not(.desktop-game) #map-dialog .m16-exp-go b{flex:1;min-width:0;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body:not(.desktop-game) #map-dialog .m16-exp-label{flex:none;font-size:13px;color:var(--m16-gold);white-space:nowrap}
body:not(.desktop-game) #map-dialog .m16-boss{flex:none;padding:2px 7px;border-radius:4px;background:#7a2a22;color:#ffd9c9;font-size:12px;font-style:normal;line-height:1.4;letter-spacing:.06em}
body:not(.desktop-game) #map-dialog .m16-meter{display:grid;gap:6px}
body:not(.desktop-game) #map-dialog .m16-meter small{font-size:12px;color:var(--m16-muted)}
body:not(.desktop-game) #map-dialog .m16-meter-bar{display:block;height:6px;border-radius:3px;background:#0d1417;box-shadow:inset 0 0 0 1px #4a585b88;overflow:hidden}
body:not(.desktop-game) #map-dialog .m16-meter-bar i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#9c7c45,#f1d896)}
body:not(.desktop-game) #map-dialog .m16-next{margin:0;font-size:13px;line-height:1.6;color:#d8cfb8}
body:not(.desktop-game) #map-dialog .m16-exp .bh-hint{margin-top:0}

/* 小标题 */
body:not(.desktop-game) #map-dialog .m16-h{display:flex;align-items:center;gap:8px;margin:22px 0 10px;font:600 16px/1.3 "RuneSerif","Noto Serif SC",serif;letter-spacing:.1em;color:var(--m16-gold-hi);scroll-margin-top:calc(64px + env(safe-area-inset-top))}
body:not(.desktop-game) #map-dialog .m16-h small{margin-left:auto;font:400 12px/1.4 system-ui,sans-serif;letter-spacing:0;color:var(--m16-muted)}
body:not(.desktop-game) #map-dialog .m16-glyph{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--m16-gold);border-radius:50%;font:700 14px/1 "RuneSerif","Noto Serif SC",serif;font-style:normal;color:var(--m16-gold-hi);background:#0b1419}
body:not(.desktop-game) #map-dialog .m16-note{margin:-4px 0 10px;font-size:12px;line-height:1.6;color:var(--m16-muted)}

/* 章节列表 */
body:not(.desktop-game) #map-dialog .m16-chapters,body:not(.desktop-game) #map-dialog .m16-stages,body:not(.desktop-game) #map-dialog .m16-layers,body:not(.desktop-game) #map-dialog .m16-foes,body:not(.desktop-game) #map-dialog .m16-tools{display:grid;gap:10px;margin:0;padding:0;list-style:none}
body:not(.desktop-game) #map-dialog .m16-ch{display:grid;grid-template-columns:120px minmax(0,1fr) 16px;align-items:center;gap:12px;width:100%;min-height:84px;padding:8px 10px 8px 8px;border:1px solid var(--m16-line);border-radius:10px;background:var(--m16-card);text-align:left;cursor:pointer}
body:not(.desktop-game) #map-dialog .m16-ch-art{display:block;width:120px;height:67px;border-radius:6px;object-fit:cover;background:#0b1216}
body:not(.desktop-game) #map-dialog .m16-ch-text{display:grid;gap:4px;min-width:0}
body:not(.desktop-game) #map-dialog .m16-ch-text small{font-size:12px;color:var(--m16-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:not(.desktop-game) #map-dialog .m16-ch-text b{font:600 18px/1.25 "RuneSerif","Noto Serif SC",serif;letter-spacing:.08em;color:var(--m16-gold-hi)}
body:not(.desktop-game) #map-dialog .m16-ch-text em{font-style:normal;font-size:12px;color:#d8cfb8}
body:not(.desktop-game) #map-dialog .m16-chev{font-size:22px;font-style:normal;line-height:1;color:#8d958f}
body:not(.desktop-game) #map-dialog .m16-ch.is-cleared{border-color:#8fbf8f66}
body:not(.desktop-game) #map-dialog .m16-ch.is-cleared em{color:#b7dcae}
body:not(.desktop-game) #map-dialog .m16-ch.is-current{border-color:#f1d896;box-shadow:0 0 0 1px #f1d89655}
body:not(.desktop-game) #map-dialog .m16-ch.is-locked .m16-ch-art{filter:grayscale(.9) brightness(.7)}
body:not(.desktop-game) #map-dialog .m16-ch.is-locked b{color:#aab0aa}
body:not(.desktop-game) #map-dialog .m16-ch.is-locked em{color:#f2bfa6}
body:not(.desktop-game) #map-dialog .m16-chapters+.m16-c7-card{margin-top:10px}

/* 章节 / 关卡横幅（1290 px 宽副本，不放大） */
body:not(.desktop-game) #map-dialog .m16-banner{position:relative;margin:0 -16px;aspect-ratio:1290/720;overflow:hidden;background:#101a1f}
body:not(.desktop-game) #map-dialog .m16-banner.is-stage{aspect-ratio:1290/726}
body:not(.desktop-game) #map-dialog .m16-banner-art{display:block;width:100%;height:100%;object-fit:cover}
body:not(.desktop-game) #map-dialog .m16-banner.is-locked .m16-banner-art{filter:grayscale(.8) brightness(.65)}
body:not(.desktop-game) #map-dialog .m16-banner-text{position:absolute;left:0;right:0;bottom:0;padding:44px 16px 12px;background:linear-gradient(180deg,transparent,#0b1216e6 62%,#0b1216);text-shadow:0 2px 6px #000}
body:not(.desktop-game) #map-dialog .m16-banner-text small{display:block;font-size:12px;letter-spacing:.14em;color:var(--m16-gold)}
body:not(.desktop-game) #map-dialog .m16-banner-text h3{margin:2px 0;font:700 26px/1.25 "RuneSerif","Noto Serif SC",serif;letter-spacing:.12em;color:#fff4d6}
body:not(.desktop-game) #map-dialog .m16-banner-text p{margin:0;font-size:13px;line-height:1.5;color:#e2dac6}
html.i18n-en body:not(.desktop-game) #map-dialog .m16-banner-text h3{font-size:23px;letter-spacing:.03em}
body:not(.desktop-game) #map-dialog .m16-story{margin:10px 0 0;font-size:13px;line-height:1.7;color:#cfc8b6}

/* 本章特殊规则（rule-intro.mjs ruleLinesMarkup）：字 ≥ 12 px，? 按钮 44 px */
body:not(.desktop-game) #map-dialog .m16-rules{margin:12px 0 0}
body:not(.desktop-game) #map-dialog .m16-rules .ri-lines{gap:8px;margin:0}
body:not(.desktop-game) #map-dialog .m16-rules .ri-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;column-gap:8px;row-gap:4px;padding:8px 6px 8px 12px;font-size:13px;line-height:1.45}
body:not(.desktop-game) #map-dialog .m16-rules .ri-row-name{grid-column:1;grid-row:1}
body:not(.desktop-game) #map-dialog .m16-rules .ri-row-text{grid-column:1;grid-row:2}
body:not(.desktop-game) #map-dialog .m16-rules .ri-mores{grid-column:1;grid-row:3}
body:not(.desktop-game) #map-dialog .m16-rules .ri-row-q{grid-column:2;grid-row:1/span 3}
body:not(.desktop-game) #map-dialog .m16-rules .ri-row-name{font-size:14px}
body:not(.desktop-game) #map-dialog .m16-rules .ri-row-name i{width:24px;height:24px;font-size:13px}
body:not(.desktop-game) #map-dialog .m16-rules .ri-row-text small{font-size:12px;line-height:1.5}
body:not(.desktop-game) #map-dialog .m16-rules .ri-row-q{width:44px;height:44px;font-size:17px}
body:not(.desktop-game) #map-dialog .m16-rules .ri-mores{flex-wrap:wrap}
body:not(.desktop-game) #map-dialog .m16-rules .ri-more{min-height:44px;padding:4px 12px 4px 6px;font-size:13px}

/* 关卡路线 */
body:not(.desktop-game) #map-dialog .m16-route{scroll-margin-top:calc(64px + env(safe-area-inset-top))}
body:not(.desktop-game) #map-dialog .m16-route .m16-stages{gap:8px}
body:not(.desktop-game) #map-dialog .m16-route:not(:has(.m16-h)){margin-top:18px}
body:not(.desktop-game) #map-dialog .m16-stage{display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:8px 10px;border:1px solid var(--m16-line);border-radius:10px;background:var(--m16-card);text-align:left;cursor:pointer}
body:not(.desktop-game) #map-dialog .m16-stage-no{flex:none;display:grid;place-items:center;width:42px;height:42px;border:1px solid #d0ad7688;border-radius:50%;background:#0b1419;font:700 16px/1 "RuneSerif","Noto Serif SC",serif;color:var(--m16-gold-hi)}
body:not(.desktop-game) #map-dialog .m16-stage-art{flex:none;display:block;width:96px;height:54px;border-radius:6px;object-fit:cover;background:#0b1216}
body:not(.desktop-game) #map-dialog .m16-stage-text{flex:1;display:grid;gap:3px;min-width:0}
body:not(.desktop-game) #map-dialog .m16-stage-text b{font-size:15px;font-weight:600;line-height:1.35;color:var(--m16-text)}
body:not(.desktop-game) #map-dialog .m16-stage-text small{font-size:12px;line-height:1.4;color:var(--m16-gold)}
body:not(.desktop-game) #map-dialog .m16-stage.is-boss{border-color:#d0ad7688}
body:not(.desktop-game) #map-dialog .m16-stage.is-current{border-color:#f1d896;background:#1f2e34;box-shadow:0 0 0 1px #f1d89655}
body:not(.desktop-game) #map-dialog .m16-stage.is-locked{opacity:.66}
body:not(.desktop-game) #map-dialog .m16-stage.is-locked .m16-stage-art{filter:grayscale(1)}
body:not(.desktop-game) #map-dialog .m16-stage.is-locked small{color:#c9b9a8}

/* 出战准备：逐层敌情 */
body:not(.desktop-game) #map-dialog .m16-layer{padding:10px 12px;border:1px solid var(--m16-line);border-radius:10px;background:var(--m16-card)}
body:not(.desktop-game) #map-dialog .m16-layer.is-boss{border-color:#d0ad7699;background:linear-gradient(180deg,#22252a,#141c20)}
body:not(.desktop-game) #map-dialog .m16-layer header{display:flex;align-items:center;gap:8px;min-height:32px}
body:not(.desktop-game) #map-dialog .m16-layer-no{display:grid;place-items:center;min-width:30px;height:30px;padding:0 4px;border:1px solid #d0ad7688;border-radius:15px;font:700 14px/1 "RuneSerif","Noto Serif SC",serif;color:var(--m16-gold-hi)}
body:not(.desktop-game) #map-dialog .m16-layer header span{font:600 15px/1.3 "RuneSerif","Noto Serif SC",serif;letter-spacing:.06em;color:var(--m16-text)}
body:not(.desktop-game) #map-dialog .m16-layer header small{flex:1;font-size:12px;color:var(--m16-muted)}
body:not(.desktop-game) #map-dialog .m16-foes{gap:0;margin-top:6px}
body:not(.desktop-game) #map-dialog .m16-foe{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;padding:10px 0 4px;border-top:1px solid #ffffff12}
body:not(.desktop-game) #map-dialog .m16-foe-art{display:block;width:58px;height:58px;border-radius:50%;object-fit:cover;object-position:50% 30%;border:2px solid color-mix(in srgb,var(--element,#d0ad76) 70%,transparent);background:#0b1216}
body:not(.desktop-game) #map-dialog .m16-el{position:absolute;left:40px;top:50px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#0b1419;border:1px solid var(--element,#d0ad76);font:700 12px/1 "RuneSerif","Noto Serif SC",serif;font-style:normal;color:var(--element,#d0ad76)}
body:not(.desktop-game) #map-dialog .m16-foe-text{display:grid;gap:4px;min-width:0}
body:not(.desktop-game) #map-dialog .m16-foe-text>b{font-size:15px;line-height:1.35;color:var(--m16-text)}
body:not(.desktop-game) #map-dialog .m16-foe-stats{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:13px;color:#d8cfb8;font-variant-numeric:tabular-nums}
body:not(.desktop-game) #map-dialog .m16-foe-stats .uk-icon,body:not(.desktop-game) #map-dialog .m16-stats .uk-icon{width:16px;height:16px}
body:not(.desktop-game) #map-dialog .m16-sep{margin:0 4px;color:#7d8784}
body:not(.desktop-game) #map-dialog .m16-chips{display:flex;flex-wrap:wrap;gap:6px}
body:not(.desktop-game) #map-dialog .m16-chip{min-height:44px;padding:6px 12px;border:1px solid #d0ad7677;border-radius:22px;background:#0f171b;font-size:13px;line-height:1.2;color:var(--m16-gold-hi);cursor:pointer}
body:not(.desktop-game) #map-dialog .m16-chip.is-p2{border-color:#b49ae688;color:#dccbff}
body:not(.desktop-game) #map-dialog .m16-chip[aria-pressed="true"]{background:#d0ad7633;border-color:#f1d896}
body:not(.desktop-game) #map-dialog .m16-plain{display:inline-flex;align-items:center;min-height:32px;font-size:13px;color:var(--m16-muted)}
body:not(.desktop-game) #map-dialog .m16-tip{margin:8px 0 2px;padding:10px 12px;border-radius:8px;border:1px solid #d0ad7655;background:#0b1216;font-size:13px;line-height:1.6;color:#efe5cd}
body:not(.desktop-game) #map-dialog .m16-tip[hidden]{display:none}
body:not(.desktop-game) #map-dialog .bh-hint{margin-top:12px}

/* 出战队伍与三围 */
body:not(.desktop-game) #map-dialog .m16-link{margin-left:auto;min-height:44px;padding:0 4px 0 12px;font:400 13px/1 system-ui,sans-serif;letter-spacing:0;color:var(--m16-gold);cursor:pointer}
body:not(.desktop-game) #map-dialog .m16-party{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
body:not(.desktop-game) #map-dialog .m16-hero{position:relative;display:block;aspect-ratio:3/4;border:1px solid color-mix(in srgb,var(--element,#d0ad76) 60%,transparent);border-radius:6px;overflow:hidden;background:#1b2427}
body:not(.desktop-game) #map-dialog .m16-hero-art{position:absolute;inset:0;background-image:var(--hero-art,url('./assets/heroes.png'));background-size:var(--hero-size,500% auto);background-position:calc(var(--portrait,0)*25%) 18%;background-repeat:no-repeat}
body:not(.desktop-game) #map-dialog .m16-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,#0c1113ee 100%)}
body:not(.desktop-game) #map-dialog .m16-hero-role{position:absolute;z-index:1;left:0;top:0;padding:1px 5px;border-radius:0 0 6px 0;background:#0c1113cc;font-size:12px;font-weight:600;line-height:1.4;color:var(--m16-gold-hi)}
body:not(.desktop-game) #map-dialog .m16-hero-lv{position:absolute;z-index:1;right:3px;bottom:20px;font-size:12px;line-height:1;color:#e8dfc8;text-shadow:0 1px 2px #000}
body:not(.desktop-game) #map-dialog .m16-hero-name{position:absolute;z-index:1;left:2px;right:2px;bottom:3px;font-size:12px;line-height:1.2;text-align:center;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px #000}
body:not(.desktop-game) #map-dialog .m16-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
body:not(.desktop-game) #map-dialog .uk-icon{display:inline-block;flex:none;width:16px;height:16px;background:center/contain no-repeat;vertical-align:-3px;font-style:normal}
body:not(.desktop-game) #map-dialog .uk-icon--hp{background-image:url("./assets/pages/_kit/icon-heart.webp")}
body:not(.desktop-game) #map-dialog .uk-icon--recovery{background-image:url("./assets/pages/_kit/icon-leaf.webp")}
body:not(.desktop-game) #map-dialog .uk-icon--time{background-image:url("./assets/pages/_kit/icon-hourglass.webp")}
body:not(.desktop-game) #map-dialog .m16-stats span{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;column-gap:5px;row-gap:2px;padding:8px 4px;border:1px solid var(--m16-line);border-radius:8px;background:var(--m16-card);font-size:12px;color:var(--m16-muted)}
body:not(.desktop-game) #map-dialog .m16-stats em{font-style:normal}
body:not(.desktop-game) #map-dialog .m16-stats b{grid-column:1/-1;text-align:center;font-size:16px;color:var(--m16-text);font-variant-numeric:tabular-nums}
body:not(.desktop-game) #map-dialog .m16-tools li{padding:10px 12px;border:1px solid var(--m16-line);border-radius:10px;background:var(--m16-card)}
body:not(.desktop-game) #map-dialog .m16-tools li.is-ok{border-color:#8fbf8f66}
body:not(.desktop-game) #map-dialog .m16-tools b{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--m16-gold-hi)}
body:not(.desktop-game) #map-dialog .m16-tools b small{font-size:12px;font-weight:400;color:#b7dcae}
body:not(.desktop-game) #map-dialog .m16-tools li.is-plan b small{color:var(--m16-muted)}
body:not(.desktop-game) #map-dialog .m16-tools p{margin:4px 0 0;font-size:13px;line-height:1.6;color:#d8cfb8}

/* 出 战（吸底，让开底部横条） */
body:not(.desktop-game) #map-dialog .m16-depart{position:sticky;bottom:0;z-index:5;margin:18px -16px 0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#0b121600,#0b1216f2 22%,#0b1216)}
body:not(.desktop-game) #map-dialog .m16-go{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;min-height:62px;padding:8px 14px;border:1px solid #f0d99c;border-radius:12px;background:linear-gradient(180deg,#f0d38c,#b98a3e);color:#1c1408;box-shadow:0 6px 22px #000a,inset 0 1px 0 #fff6;cursor:pointer}
body:not(.desktop-game) #map-dialog .m16-go b{font:700 21px/1.2 "RuneSerif","Noto Serif SC",serif;letter-spacing:.4em;text-indent:.4em}
body:not(.desktop-game) #map-dialog .m16-go small{font-size:12px;line-height:1.3;color:#3a2a10}
body:not(.desktop-game) #map-dialog .m16-go:disabled{opacity:1;border-color:#6b7378;background:#2a3236;color:#aab0aa;box-shadow:none}
body:not(.desktop-game) #map-dialog .m16-go:disabled small{color:#f2bfa6}
html.i18n-en body:not(.desktop-game) #map-dialog .m16-go b{letter-spacing:.12em;text-indent:.12em}
}
