/* mobile16pm A3 (manage): 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. */
/* 管理类窗口（手机）：编队、选择战友、图鉴 / 召唤、召唤结果、角色详情、敌人详情。正文 ≥12px，可点的 ≥44px，图不超过原图像素（DPR 3），
   整页窗口（编队、图鉴 / 召唤）铺满屏幕并让出刘海 / 灵动岛与底部横条（safe-area）。 */
@media (max-width:999.98px){
  /* ---------- 共用：整页窗口（.m16-sheet） ---------- */
  body:not(.desktop-game) dialog.modal.m16-sheet{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;
    padding:calc(env(safe-area-inset-top,0px) + 14px) 16px calc(env(safe-area-inset-bottom,0px) + 16px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
    background:radial-gradient(ellipse 120% 40% at 50% 0%,#24304a 0%,#121b24 55%,#0b1116 100%) fixed,#0b1116;box-shadow:none}
  body:not(.desktop-game) dialog.modal.m16-sheet>.modal-close{position:fixed;z-index:6;top:calc(env(safe-area-inset-top,0px) + 8px);right:12px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #d0ad7677;border-radius:50%;background:#0d1418e6;color:#f1d79c;font-size:24px;line-height:1}
  body:not(.desktop-game) dialog.modal.m16-sheet>h2{margin:2px 56px 10px 0;font:600 22px/1.35 var(--serif);letter-spacing:2px;color:#f1d79c}
  body:not(.desktop-game) .m16-stars{display:block;font-size:12px;line-height:1.2;letter-spacing:-1px;color:#f3c351;white-space:nowrap;text-shadow:0 1px 2px #000}
  body:not(.desktop-game) :is(#team-dialog,#collection-dialog,#summon-result-dialog,#hero-dialog,#enemy-dialog) .collection-portrait{background-repeat:no-repeat}

  /* ---------- 编队（T1/T2） ---------- */
  body:not(.desktop-game) #team-dialog.m16-sheet>p{margin:0 0 4px;font-size:12.5px;line-height:1.65;color:#a9b8b1}
  body:not(.desktop-game) #team-slots.m16t-on{display:block;margin:12px 0 0}
  body:not(.desktop-game) #team-slots.m16t-on>label,body:not(.desktop-game) #team-slots.m16t-on>.hp-team-row{display:none}
  body:not(.desktop-game) .m16t-altar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:16px 8px 10px;border:1px solid #d0ad7655;border-radius:10px;
    background:radial-gradient(ellipse 70% 60% at 50% 115%,#d0ad7633,transparent 70%),linear-gradient(180deg,#1a2a44,#101822 80%);box-shadow:inset 0 0 24px #000a}
  body:not(.desktop-game) .m16t-slot{position:relative;display:flex;min-width:0;flex-direction:column;align-items:center;gap:3px;padding:0;color:#eee2c7}
  body:not(.desktop-game) .m16t-art{position:relative;display:block;width:100%;aspect-ratio:3/4;height:auto;border:2px solid color-mix(in srgb,var(--element) 70%,#000);border-radius:6px;box-shadow:0 3px 8px #0009}
  body:not(.desktop-game) .m16t-lv{position:absolute;left:0;right:0;bottom:0;padding:1px 0;background:linear-gradient(0deg,#000c,#0000);font:600 12px/1.3 var(--sans,Arial,sans-serif);font-style:normal;color:#f6e7c2;text-align:center;letter-spacing:-.3px}
  body:not(.desktop-game) .m16t-slot .m16t-tag{min-width:100%;padding:1px 2px;border-radius:3px;background:#0b111699;font-size:12px;line-height:1.35;color:#c9b88c;text-align:center;white-space:nowrap}
  body:not(.desktop-game) .m16t-slot>b{max-width:100%;overflow:hidden;font:500 12px/1.35 var(--serif);color:#efe2c4;text-overflow:ellipsis;white-space:nowrap}
  body:not(.desktop-game) .m16t-slot.is-on .m16t-art{border-color:#f6d68a;box-shadow:0 0 0 2px #f6d68a88,0 0 14px #f6d68a99}
  body:not(.desktop-game) .m16t-slot.is-on .m16t-tag{background:#d0ad76;color:#1b1408;font-weight:700}
  body:not(.desktop-game) .m16t-slot.is-leader::before{content:'';position:absolute;z-index:2;top:-13px;left:50%;width:28px;height:19px;transform:translateX(-50%);background:url('./assets/ui-display/pages/_kit/icon-crown-188.webp') center/contain no-repeat;filter:drop-shadow(0 1px 2px #000)}
  body:not(.desktop-game) .m16t-slot.is-friend .m16t-tag{color:#9cc1ff}
  body:not(.desktop-game) .m16t-slot.is-friend .m16t-art{border-style:dashed}
  body:not(.desktop-game) .m16t-slot.is-friend::after{content:'›';position:absolute;top:2px;right:3px;z-index:2;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#0b1a2ccc;color:#cfe3ff;font-size:14px;line-height:1}
  body:not(.desktop-game) .m16t-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
  body:not(.desktop-game) .m16t-stats span{padding:8px 10px;border:1px solid #d0ad7640;border-radius:8px;background:#141e25;color:#a9b8b1;font-size:12px;line-height:1.3}
  body:not(.desktop-game) .m16t-stats b{display:block;margin-top:3px;font:700 19px/1.2 Georgia,serif;color:#f3e3bd;font-variant-numeric:tabular-nums}
  body:not(.desktop-game) .m16t-stats .is-hp b{color:#f2a6a0}
  body:not(.desktop-game) .m16t-stats .is-rec b{color:#a8dca0}
  body:not(.desktop-game) .m16t-lead{display:grid;gap:8px}
  body:not(.desktop-game) .m16t-skill,body:not(.desktop-game) .m16t-sk{margin:0;padding:9px 12px;border:1px solid #d0ad7638;border-left:3px solid #d0ad76;border-radius:6px;background:#121b21;font-size:13px;line-height:1.6;color:#dfd5bf}
  body:not(.desktop-game) .m16t-skill small,body:not(.desktop-game) .m16t-sk small{display:block;margin-bottom:2px;font-size:12px;font-weight:700;letter-spacing:.5px;color:#e9c98a}
  body:not(.desktop-game) .m16t-skill.is-friend{border-left-color:#7fb2ff}
  body:not(.desktop-game) .m16t-skill.is-friend small{color:#9cc1ff}
  body:not(.desktop-game) .m16t-detail{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px 12px;margin:14px 0 0;padding:12px;border:1px solid color-mix(in srgb,var(--element) 45%,#d0ad7633);border-radius:10px;background:linear-gradient(160deg,color-mix(in srgb,var(--element) 14%,#16212a),#11191f 70%)}
  body:not(.desktop-game) .m16t-dart{width:84px;height:112px;border:2px solid color-mix(in srgb,var(--element) 70%,#000);border-radius:6px}
  body:not(.desktop-game) .m16t-dhead{min-width:0}
  body:not(.desktop-game) .m16t-dhead small{font-size:12px;color:#c9b88c}
  body:not(.desktop-game) .m16t-dhead h3{margin:1px 0 2px;font:600 18px/1.3 var(--serif);color:var(--element)}
  body:not(.desktop-game) .m16t-meta{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;margin:0;font-size:12.5px!important;line-height:1.5!important;color:#b7c4bd!important}
  body:not(.desktop-game) .m16t-meta .m16-stars{display:inline}
  body:not(.desktop-game) .m16t-nums{display:flex;gap:12px;margin:6px 0 0!important;font-size:12px!important;line-height:1.3!important;color:#9fb0aa!important}
  body:not(.desktop-game) .m16t-nums b{display:block;font:700 15px/1.25 Georgia,serif;color:#f3e3bd}
  body:not(.desktop-game) .m16t-detail .m16t-sk{grid-column:1/-1}
  body:not(.desktop-game) .m16t-hint{margin:14px 0 8px!important;font-size:12.5px!important;line-height:1.5!important;color:#c9b88c!important}
  body:not(.desktop-game) .m16t-hint.is-warn{color:#ffb39a!important;font-weight:600} /* mobile16pm verify (Codex #6): why a greyed hero can't take this seat */
  body:not(.desktop-game) .m16t-els{display:flex;gap:6px;margin:0 0 10px}
  body:not(.desktop-game) .m16t-els button{flex:1 1 0;min-width:44px;height:44px;padding:0;border:1px solid #d0ad7655;border-radius:22px;background:#141e25;font:600 15px/1 var(--serif);color:var(--element,#e9c98a)}
  body:not(.desktop-game) .m16t-els button[data-m16-el="all"]{flex:1.6 1 0;font-size:13px;color:#e9c98a}
  body:not(.desktop-game) .m16t-els button.is-on{border-color:var(--element,#f1d79c);background:color-mix(in srgb,var(--element,#d0ad76) 26%,#141e25);box-shadow:0 0 0 1px var(--element,#f1d79c) inset}
  body:not(.desktop-game) .m16t-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 6px}
  body:not(.desktop-game) .m16t-hero{position:relative;display:flex;min-width:0;flex-direction:column;align-items:center;gap:2px;padding:0;color:#eee2c7}
  body:not(.desktop-game) .m16t-hero>b{max-width:100%;overflow:hidden;font:500 12px/1.35 var(--serif);text-overflow:ellipsis;white-space:nowrap}
  body:not(.desktop-game) .m16t-hero.is-here .m16t-art{border-color:#f6d68a;box-shadow:0 0 0 2px #f6d68a99}
  body:not(.desktop-game) .m16t-hero.is-blocked{opacity:.42}
  body:not(.desktop-game) .m16t-in{position:absolute;top:0;right:0;padding:0 4px;border-radius:0 3px 0 4px;background:#3e7d4ce6;font:600 12px/1.4 var(--sans,Arial,sans-serif);font-style:normal;color:#e9ffe9}
  body:not(.desktop-game) .m16t-empty{grid-column:1/-1;margin:8px 0;font-size:13px;color:#a9b8b1}
  body:not(.desktop-game) #team-dialog.m16-sheet #team-preview{margin-top:14px;padding-top:12px;border-top:1px solid #d0ad7633}
  body:not(.desktop-game) .m16t-races{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px!important}
  body:not(.desktop-game) .m16t-races span{padding:3px 9px;border:1px solid color-mix(in srgb,var(--element) 45%,transparent);border-radius:12px;background:#111a20;font-size:12px;line-height:1.5;color:var(--element)}
  body:not(.desktop-game) #team-dialog.m16-sheet .hp-warn{font-size:13px}
  body:not(.desktop-game) #team-dialog .sy-compact .sy-summary{font-size:13px;min-height:48px}
  body:not(.desktop-game) #team-dialog .sy-mini{gap:6px}
  body:not(.desktop-game) #team-dialog .sy-mini li{grid-template-columns:7.6em minmax(0,1fr);font-size:13px;line-height:1.55}
  body:not(.desktop-game) #team-dialog .sy-mini-combo small{font-size:12px}
  body:not(.desktop-game) #team-dialog.m16-sheet{padding-bottom:0}
  body:not(.desktop-game) #team-dialog.m16-sheet #save-team{position:sticky;bottom:calc(env(safe-area-inset-bottom,0px) + 10px);z-index:4;min-height:52px;margin:16px 0 calc(env(safe-area-inset-bottom,0px) + 10px);font-size:15px;box-shadow:0 calc(env(safe-area-inset-bottom,0px) + 16px) 0 18px #0b1116,0 -10px 16px 2px #0b1116}
  /* 开局 5 人用 heroes.png 雪碧图（每格 397px 宽）：大框里最多 132 CSS px 宽（DPR 3 不放大） */
  body:not(.desktop-game) #hero-dialog:not(.pg-details) .hero-detail-art:not([style*="--hero-art"]),
  body:not(.desktop-game) .m16c-dart:not([style*="--hero-art"]),
  body:not(.desktop-game) .m16r-grid.is-one .m16r-card .collection-portrait:not([style*="--hero-art"]){width:132px;margin-left:auto;margin-right:auto}

  /* ---------- 图鉴 / 召唤（C1/C2） ---------- */
  body:not(.desktop-game) .m16c-tabs{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0 0 10px;border:1px solid #d0ad7666;border-radius:24px;overflow:hidden;background:#0f171d}
  body:not(.desktop-game) .m16c-tabs button{min-height:46px;font:600 15px/1 var(--serif);letter-spacing:2px;color:#b9ab86}
  body:not(.desktop-game) .m16c-tabs button.is-on{background:linear-gradient(100deg,#baa06d,#dec695);color:#20241f}
  body:not(.desktop-game) #collection-dialog.m16c #collection-balance{margin:0 0 4px;font-size:13px;line-height:1.5;color:#d9c79c;text-align:center}
  body:not(.desktop-game) #collection-dialog.m16c .summon-actions+p{display:none}
  body:not(.desktop-game) #collection-dialog.m16c[data-m16-page="summon"] #collection-grid,
  body:not(.desktop-game) #collection-dialog.m16c[data-m16-page="collection"] :is(#m16-altar,.summon-actions,#summon-rates){display:none}
  /* 圣殿：背景 2528px 显示 ≤566 CSS px 宽；神龛 791px 显示 116px；水晶 422px 显示 54px；保底徽章 573px 显示 92px（DPR 3 都不放大） */
  body:not(.desktop-game) .m16c-altar{position:relative;height:372px;margin:6px -16px 0;overflow:hidden;background:#070b14 url('./assets/ui-display/pages/summon/backdrop-2528.webp') 50% 70%/auto 100% no-repeat}
  body:not(.desktop-game) .m16c-altar::after{content:'';position:absolute;inset:auto 0 0;height:70px;background:linear-gradient(0deg,#0b1116,#0b111600);pointer-events:none}
  body:not(.desktop-game) .m16c-stage{position:absolute;inset:18px 14px 0;display:flex;justify-content:space-between;align-items:flex-start}
  body:not(.desktop-game) .m16c-shrine{position:relative;display:flex;flex-direction:column;align-items:center;width:116px;padding:0;color:#f3e3bd}
  body:not(.desktop-game) .m16c-shrine-art{position:absolute;left:18%;right:18%;top:16%;height:139px;border-radius:40px 40px 0 0}
  body:not(.desktop-game) .m16c-arch{position:relative;display:block;width:116px;height:203px;filter:drop-shadow(0 6px 10px #000c)}
  body:not(.desktop-game) .m16c-shrine.is-left .m16c-arch{filter:drop-shadow(0 6px 10px #000c) drop-shadow(0 0 10px #ff4d5f55)}
  body:not(.desktop-game) .m16c-shrine.is-right .m16c-arch{filter:drop-shadow(0 6px 10px #000c) drop-shadow(0 0 10px #b06cff55)}
  body:not(.desktop-game) .m16c-shrine-name{display:flex;flex-direction:column;align-items:center;margin-top:4px;padding:3px 10px;border:1px solid #d0ad7677;border-radius:4px;background:#0d1418d9}
  body:not(.desktop-game) .m16c-shrine-name b{font:600 13px/1.3 var(--serif);color:#f1d79c}
  body:not(.desktop-game) .m16c-crystal{position:absolute;left:50%;top:44px;width:54px;height:154px;transform:translateX(-50%);filter:drop-shadow(0 0 18px #ffdc8a99);animation:m16c-float 4.6s ease-in-out infinite}
  @keyframes m16c-float{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(-9px)}}
  body:not(.desktop-game) .m16c-seal{position:absolute;z-index:2;left:50%;bottom:16px;display:grid;place-items:center;width:92px;height:92px;transform:translateX(-50%)}
  body:not(.desktop-game) .m16c-seal img{position:absolute;inset:0;width:92px;height:92px;filter:drop-shadow(0 4px 8px #000c)}
  body:not(.desktop-game) .m16c-seal b{position:relative;margin-top:-10px;font:700 30px/1 Georgia,serif;color:#fff1cc;text-shadow:0 2px 3px #000}
  body:not(.desktop-game) .m16c-seal small{position:absolute;top:57px;font-size:12px;color:#f3e3bd}
  body:not(.desktop-game) .m16c-ribbon{position:absolute;bottom:-10px;left:50%;transform:translateX(-50%);padding:2px 10px;border:1px solid #9cc1ffaa;border-radius:3px;background:linear-gradient(180deg,#24508f,#173a6a);font-size:12px;line-height:1.4;color:#eaf2ff;white-space:nowrap}
  body:not(.desktop-game) #collection-dialog.m16c .summon-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 6px}
  body:not(.desktop-game) #collection-dialog.m16c .summon-actions .primary-button{display:flex;flex-direction:column;gap:2px;min-height:62px;padding:8px 6px;border-radius:8px;font:600 15px/1.2 var(--serif);letter-spacing:1px}
  body:not(.desktop-game) #collection-dialog.m16c #summon-button{background:linear-gradient(180deg,#5c8fd6,#2d5ea6);border-color:#a9c8f3;color:#f4f8ff}
  body:not(.desktop-game) #collection-dialog.m16c .summon-actions .primary-button small{font:500 13px/1.2 var(--sans,Arial,sans-serif);letter-spacing:0;opacity:.9}
  body:not(.desktop-game) #collection-dialog.m16c .summon-actions .primary-button em{font-size:12px;font-style:normal;color:#ffd2c8}
  body:not(.desktop-game) #collection-dialog.m16c .summon-actions .primary-button:disabled{opacity:.55;filter:saturate(.5)}
  body:not(.desktop-game) .m16c-rates{margin:12px 0 0;padding:12px;border:1px solid #d0ad7644;border-radius:10px;background:#111a20}
  body:not(.desktop-game) .m16c-rates h3{margin:0 0 8px;font:600 15px/1.3 var(--serif);letter-spacing:1px;color:#e9c98a}
  body:not(.desktop-game) .m16c-rate{display:grid;grid-template-columns:40px minmax(0,1fr) 44px;align-items:center;gap:10px;min-height:30px}
  body:not(.desktop-game) .m16c-rk{font:700 14px/1 Georgia,serif;color:var(--rk)}
  body:not(.desktop-game) .m16c-bar{height:8px;border-radius:4px;background:#0a1014;box-shadow:inset 0 0 0 1px #ffffff12;overflow:hidden}
  body:not(.desktop-game) .m16c-bar i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,color-mix(in srgb,var(--rk) 55%,#000),var(--rk))}
  body:not(.desktop-game) .m16c-rate b{font:700 15px/1 Georgia,serif;color:#f3e3bd;text-align:right}
  body:not(.desktop-game) .m16c-rate.r6{--rk:#f3c351}body:not(.desktop-game) .m16c-rate.r5{--rk:#b98cf0}body:not(.desktop-game) .m16c-rate.r4{--rk:#6fb0f0}body:not(.desktop-game) .m16c-rate.r3{--rk:#c99a6a}
  body:not(.desktop-game) .m16c-rules{margin:10px 0 0;padding:0 0 0 18px;font-size:13px;line-height:1.6;color:#b9c7c0}
  body:not(.desktop-game) .m16c-rules li+li{margin-top:4px}
  body:not(.desktop-game) #summon-rates .summon-ticket{margin:12px 0 0;padding:12px;border:1px solid #f3c35188;border-radius:10px;background:linear-gradient(160deg,#3a2c16,#141c21 70%)}
  body:not(.desktop-game) #summon-rates .summon-ticket p{margin:0 0 8px;font-size:13px;color:#f1dfae}
  body:not(.desktop-game) .summon-ticket-list{display:flex;flex-wrap:wrap;gap:8px}
  body:not(.desktop-game) .m16c-ticket{display:flex;align-items:center;gap:8px;min-height:48px;padding:4px 12px 4px 4px;border:1px solid #c9a25a;border-radius:8px;background:#ffffff0d;font-size:13px;color:#f3e3bd}
  body:not(.desktop-game) .m16c-ticket i{width:30px;height:40px;border-radius:4px}
  body:not(.desktop-game) .m16c-odds{margin:12px 0 0;border:1px solid #d0ad7633;border-radius:10px;background:#0f171c}
  body:not(.desktop-game) #collection-dialog .m16c-odds summary{display:flex;align-items:center;min-height:46px;padding:0 14px;font-size:14px;color:#e9c98a;cursor:pointer}
  body:not(.desktop-game) .m16c-odds-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0 10px 12px}
  body:not(.desktop-game) .m16c-odd{display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:4px;border-radius:6px;background:#141e25}
  body:not(.desktop-game) .m16c-odd i{grid-row:1/3;width:30px;height:40px;border-radius:4px}
  body:not(.desktop-game) .m16c-odd b{overflow:hidden;font:500 13px/1.3 var(--serif);color:#eee2c7;text-overflow:ellipsis;white-space:nowrap}
  body:not(.desktop-game) .m16c-odd small{font-size:12px;color:#d6b97c}
  /* 图鉴 */
  body:not(.desktop-game) #collection-dialog.m16c #collection-grid{display:block;margin:4px 0 0}
  body:not(.desktop-game) .m16c-filter{display:grid;gap:8px;margin:2px 0 12px}
  body:not(.desktop-game) .m16c-filter .m16t-els{margin:0}
  body:not(.desktop-game) .m16c-own{display:flex;align-items:center;gap:6px}
  body:not(.desktop-game) .m16c-own button{min-width:64px;min-height:44px;padding:0 12px;border:1px solid #d0ad7655;border-radius:22px;background:#141e25;font-size:13px;color:#d9c79c}
  body:not(.desktop-game) .m16c-own button.is-on{background:#d0ad76;color:#1b1408;font-weight:700}
  body:not(.desktop-game) .m16c-count{margin-left:auto;font-size:12px;color:#a9b8b1;white-space:nowrap}
  body:not(.desktop-game) .m16c-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px}
  body:not(.desktop-game) .m16c-card{position:relative;display:flex;min-width:0;flex-direction:column;align-items:center;gap:2px;padding:0;color:#eee2c7}
  body:not(.desktop-game) .m16c-art{position:relative;display:block;width:100%;aspect-ratio:3/4;border:2px solid color-mix(in srgb,var(--element) 65%,#000);border-radius:6px;box-shadow:0 3px 8px #0009}
  body:not(.desktop-game) .m16c-card>b{max-width:100%;overflow:hidden;font:500 13px/1.35 var(--serif);text-overflow:ellipsis;white-space:nowrap}
  body:not(.desktop-game) .m16c-lv,body:not(.desktop-game) .m16c-lock{position:absolute;left:0;right:0;bottom:0;padding:1px 0;background:linear-gradient(0deg,#000c,#0000);font:600 12px/1.35 var(--sans,Arial,sans-serif);font-style:normal;color:#f6e7c2;text-align:center}
  body:not(.desktop-game) .m16c-card.is-locked .m16c-art{filter:grayscale(.9) brightness(.62)}
  body:not(.desktop-game) .m16c-card.is-locked>b{color:#98a39d}
  body:not(.desktop-game) .m16c-card.is-divine .m16c-art,body:not(.desktop-game) .m16c-detail.is-divine .m16c-dart{border-color:#f3c351;box-shadow:0 0 0 1px #f3c35188,0 0 12px #f0b43c55}
  body:not(.desktop-game) .m16c-card.is-divine::after{display:none}
  body:not(.desktop-game) .m16c-detail{position:relative;padding:12px;border:1px solid #c9a86a66;border-radius:10px;background:linear-gradient(170deg,#efe0bd 0%,#e3cfa3 100%);color:#3b2c18;box-shadow:inset 0 0 30px #8a6a3a55,0 8px 20px #0008}
  body:not(.desktop-game) .m16c-detail::after{display:none}
  body:not(.desktop-game) .m16c-back{display:inline-flex;align-items:center;min-height:44px;margin:-4px 0 6px -4px;padding:0 12px;border:1px solid #8a6a3a88;border-radius:22px;background:#fff6;font-size:14px;color:#5a3f1c}
  body:not(.desktop-game) .m16c-dtop{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px}
  body:not(.desktop-game) .m16c-dart{width:150px;height:200px;border:3px solid #9a7a44;border-radius:75px 75px 8px 8px;box-shadow:0 4px 10px #5a3f1c88}
  body:not(.desktop-game) .m16c-dinfo{min-width:0}
  body:not(.desktop-game) .m16c-dinfo h3{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:2px 0 2px;font:700 21px/1.3 var(--serif);color:#3b2c18}
  body:not(.desktop-game) .m16c-detail .m16-stars{text-shadow:none;color:#b8860b}
  body:not(.desktop-game) .m16c-detail p{margin:0;color:#4a3920!important;font-size:13px!important;line-height:1.55!important}
  body:not(.desktop-game) .m16c-dmeta{margin-top:4px!important}
  body:not(.desktop-game) .m16c-dnums{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;gap:10px;margin-top:8px!important;font-size:12px!important}
  body:not(.desktop-game) .m16c-dnums b{display:block;font:700 16px/1.2 Georgia,serif;color:#2a1d0c}
  body:not(.desktop-game) .m16c-dlv{margin-top:8px!important;font-weight:600}
  body:not(.desktop-game) .m16c-dget{margin-top:10px!important;padding:8px 10px;border-left:3px solid #9a7a44;background:#fff5}
  body:not(.desktop-game) .m16c-dsk{margin:12px 0 0;padding:10px 12px;border:1px solid #9a7a4466;border-radius:8px;background:#fff7e655}
  body:not(.desktop-game) .m16c-dsk small{display:block;margin-bottom:3px;font-size:12.5px;font-weight:700;color:#7a4f12}
  body:not(.desktop-game) .m16c-dsk p{font-size:13.5px!important}
  body:not(.desktop-game) .m16c-train{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
  body:not(.desktop-game) .m16c-train button{min-height:48px;padding:6px 8px;border:1px solid #7a5a2a;border-radius:8px;background:linear-gradient(180deg,#5a4426,#3b2c18);font-size:13.5px;line-height:1.3;color:#f6e7c2;margin:0}
  body:not(.desktop-game) .m16c-train .m16c-go{grid-column:1/-1;background:linear-gradient(100deg,#baa06d,#dec695);color:#20241f;font-weight:700}
  body:not(.desktop-game) .m16c-train button:disabled{opacity:.45}

  /* ---------- 召唤结果（C2） ---------- */
  body:not(.desktop-game) #summon-result-dialog.m16r{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 20px);padding:20px 12px calc(14px + env(safe-area-inset-bottom,0px) * 0);border-radius:12px;
    background:radial-gradient(ellipse 90% 50% at 50% 0%,#3a3020 0%,#141c22 60%,#0e151a 100%);border-color:#d0ad7688}
  body:not(.desktop-game) #summon-result-dialog.m16r>.modal-close{top:6px;right:6px;display:grid;place-items:center;width:44px;height:44px;font-size:24px}
  body:not(.desktop-game) #summon-result-dialog.m16r h2{margin:4px 44px 8px;font:600 20px/1.4 var(--serif);text-align:center;color:#f1d79c}
  body:not(.desktop-game) .m16r-sum{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:0 0 12px!important}
  body:not(.desktop-game) .m16r-sum span{padding:3px 10px;border:1px solid #d0ad7655;border-radius:12px;background:#0f171ccc;font-size:12.5px;line-height:1.5;color:#d9c79c}
  body:not(.desktop-game) .m16r-sum b{color:#fff1cc}
  body:not(.desktop-game) #summon-result-dialog.m16r .summon-results{display:block;margin:0}
  body:not(.desktop-game) .m16r-grid{display:grid;gap:10px 6px;perspective:800px}
  body:not(.desktop-game) .m16r-grid.is-ten{grid-template-columns:repeat(5,minmax(0,1fr))}
  body:not(.desktop-game) .m16r-grid.is-one{grid-template-columns:200px;justify-content:center}
  body:not(.desktop-game) .m16r-card{position:relative;display:flex;min-width:0;flex-direction:column;align-items:center;gap:2px;padding:4px 3px 6px;border:1px solid var(--rk,#bdba9544);border-radius:8px;background:linear-gradient(170deg,color-mix(in srgb,var(--rk,#888) 22%,#182126),#141c21 75%);text-align:center;animation:m16r-in .5s cubic-bezier(.2,.8,.2,1) calc(var(--i,0) * 90ms) both}
  body:not(.desktop-game) .m16r-card.star-3{--rk:#c99a6a}body:not(.desktop-game) .m16r-card.star-4{--rk:#6fb0f0}body:not(.desktop-game) .m16r-card.star-5{--rk:#b98cf0}body:not(.desktop-game) .m16r-card.star-6{--rk:#f3c351;box-shadow:0 0 14px #f3c35166}
  body:not(.desktop-game) .m16r-card .collection-portrait{position:relative;width:100%;height:auto;aspect-ratio:3/4;border-radius:5px}
  body:not(.desktop-game) .m16r-grid.is-one .m16r-card .collection-portrait{border-radius:8px}
  body:not(.desktop-game) .m16r-card>b{display:flex;align-items:center;justify-content:center;gap:3px;max-width:100%;margin:3px 0 0;overflow:hidden;font:600 12px/1.3 var(--serif);color:#f3e3bd;white-space:nowrap}
  body:not(.desktop-game) .m16r-grid.is-one .m16r-card>b{font-size:17px}
  body:not(.desktop-game) .m16r-card>small{margin:0;font-size:12px;line-height:1.3;color:#c5d2c6}
  body:not(.desktop-game) .m16r-card.is-new>small{color:#ffe1a0}
  body:not(.desktop-game) .m16r-new{position:absolute;top:3px;left:3px;padding:0 5px;border-radius:3px;background:#c4332f;font:700 12px/1.4 var(--sans,Arial,sans-serif);font-style:normal;color:#fff}
  body:not(.desktop-game) .m16r-god{position:absolute;top:3px;right:3px;padding:0 5px;border-radius:3px;background:linear-gradient(180deg,#f6d27a,#c9902a);font:700 12px/1.4 var(--sans,Arial,sans-serif);font-style:normal;color:#3a2606}
  body:not(.desktop-game) :is(#summon-result-dialog,#collection-dialog) .ou-badge{font-size:12px;line-height:1.35}
  body:not(.desktop-game) .m16r-grid.is-ten .m16-stars{font-size:12px;letter-spacing:-2.5px}
  body:not(.desktop-game) #summon-result-dialog.m16r>.primary-button{position:sticky;bottom:0;min-height:52px;margin-top:14px;font-size:15px}
  body:not(.desktop-game) :is(#summon-result-dialog.m16r,#enemy-dialog:not(.pg-details))>.modal-close{border:1px solid #d0ad7666;border-radius:50%;background:#0d1418cc;color:#f1d79c}
  body:not(.desktop-game) #hero-dialog:not(.pg-details) .codex-picker button,body:not(.desktop-game) #hero-dialog:not(.pg-details) .codex-picker button.selected{background:none;box-shadow:none}
  @keyframes m16r-in{from{opacity:0;transform:translateY(14px) rotateY(75deg)}to{opacity:1;transform:none}}

  /* ---------- 角色详情（C3） ---------- */
  body:not(.desktop-game) #hero-dialog:not(.pg-details){width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px);padding:16px 16px 18px;border-radius:12px}
  body:not(.desktop-game) #hero-dialog:not(.pg-details)>.modal-close{z-index:3;top:6px;right:6px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#0d1418cc;font-size:24px}
  /* 立绘：拱形框 186×248（源图 ≥760px，DPR 3 不放大），框后面按属性色打光 */
  body:not(.desktop-game) #hero-dialog:not(.pg-details) .hero-detail-art{position:relative;width:186px;height:248px;margin:6px auto 14px;border:3px solid #c9a86a;border-radius:93px 93px 10px 10px;box-shadow:0 0 0 1px #000,0 0 40px color-mix(in srgb,var(--element) 55%,transparent),0 10px 24px #000b}
  body:not(.desktop-game) .m16h-rar{position:absolute;left:0;right:0;bottom:6px;font-size:16px;letter-spacing:1px;color:#f3c351;text-align:center;text-shadow:0 1px 3px #000,0 0 6px #000}
  body:not(.desktop-game) #hero-dialog:not(.pg-details) .eyebrow{justify-content:center;font-size:12px;letter-spacing:1.5px}
  body:not(.desktop-game) #hero-dialog:not(.pg-details) h2{margin:4px 0 8px;font-size:24px;text-align:center}
  body:not(.desktop-game) #hero-dialog:not(.pg-details) .skill-description{margin:10px 0;padding:12px}
  body:not(.desktop-game) #hero-dialog:not(.pg-details) .skill-description h3{font-size:15px}
  body:not(.desktop-game) #hero-dialog:not(.pg-details) .skill-description p,body:not(.desktop-game) #hero-dialog:not(.pg-details) .leader-description{font-size:13.5px;line-height:1.65}
  body:not(.desktop-game) #hero-dialog:not(.pg-details) .hero-stat-grid{margin:12px 0}
  body:not(.desktop-game) #hero-dialog:not(.pg-details) .skill-meta{margin-bottom:14px;font-size:12.5px}
  body:not(.desktop-game) #hero-dialog:not(.pg-details) #use-skill{min-height:50px;font-size:14px}
  body:not(.desktop-game) #hero-dialog:not(.pg-details) .codex-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:16px}
  body:not(.desktop-game) #hero-dialog:not(.pg-details) .codex-picker button{display:flex;flex-direction:column;align-items:center;gap:3px;width:auto;height:auto;min-height:72px;padding:0;border:0;border-radius:0;font:12px/1.3 var(--serif)}
  body:not(.desktop-game) .m16h-face{display:block;width:50px;height:50px;border:2px solid color-mix(in srgb,var(--element) 70%,#000);border-radius:50%}
  body:not(.desktop-game) #hero-dialog .codex-picker button.selected .m16h-face{border-color:#f6d68a;box-shadow:0 0 0 2px #f6d68a88,0 0 12px #f6d68a99}
  body:not(.desktop-game) .m16h-tag{font-size:12px;color:var(--element)}

  /* ---------- 敌人详情（C4） ---------- */
  body:not(.desktop-game) #enemy-dialog:not(.pg-details){width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px);padding:18px 16px;border-radius:12px}
  body:not(.desktop-game) #enemy-dialog:not(.pg-details)>.modal-close{top:6px;right:6px;display:grid;place-items:center;width:44px;height:44px;font-size:24px}
  body:not(.desktop-game) #enemy-dialog:not(.pg-details) h2{margin:2px 44px 10px 0;font-size:22px}
  body:not(.desktop-game) .m16e-top{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px;align-items:start}
  body:not(.desktop-game) .m16e-art{display:grid;place-items:center;height:200px;margin:0;overflow:hidden;border:2px solid #9a7a44;border-radius:90px 90px 8px 8px;background:radial-gradient(ellipse at 50% 70%,color-mix(in srgb,var(--element) 40%,#1a1420),#0b0d14 75%)}
  body:not(.desktop-game) .m16e-art img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
  body:not(.desktop-game) .m16e-art.is-down img{filter:grayscale(1) brightness(.6)}
  body:not(.desktop-game) .m16e-facts{min-width:0}
  body:not(.desktop-game) #enemy-dialog .m16e-facts p{margin:0 0 6px;font-size:13px;line-height:1.45;color:#c8d3cc}
  body:not(.desktop-game) #enemy-dialog .m16e-el{display:flex;align-items:center;gap:6px;color:var(--element)!important;font-weight:700}
  body:not(.desktop-game) .m16e-el i{display:grid;place-items:center;width:24px;height:24px;border:1px solid currentColor;border-radius:50%;font:600 13px/1 var(--serif);font-style:normal}
  body:not(.desktop-game) .m16e-el.m16-en i{display:none}
  body:not(.desktop-game) .m16e-bar{height:7px;margin:0 0 4px;border-radius:4px;background:#0006;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff14}
  body:not(.desktop-game) .m16e-bar i{display:block;height:100%;background:linear-gradient(90deg,#9c3b33,#e0705f)}
  body:not(.desktop-game) .m16e-cd{display:flex;align-items:center;gap:10px;margin:8px 0 6px}
  body:not(.desktop-game) .m16e-cd b{display:grid;place-items:center;width:46px;height:46px;border:2px solid #c9a86a;border-radius:50%;background:radial-gradient(circle at 40% 35%,#6a5434,#2b2116);font:700 22px/1 Georgia,serif;color:#fff1cc;box-shadow:0 0 10px #c9a86a55}
  body:not(.desktop-game) .m16e-cd small{font-size:13px;color:#d9c79c}
  body:not(.desktop-game) .m16e-cd.is-lethal b{border-color:#ff8a76;box-shadow:0 0 12px #ff5a4699}
  body:not(.desktop-game) #enemy-dialog .m16e-dmg b{display:block;font:700 18px/1.25 Georgia,serif;color:#f2a6a0}
  body:not(.desktop-game) #enemy-dialog:not(.pg-details) .enemy-rule{margin:12px 0 0;padding:10px 12px;border:1px solid #d0ad7633;border-radius:8px;background:#121a20}
  body:not(.desktop-game) #enemy-dialog:not(.pg-details) .enemy-rule h3{margin:0 0 4px;font-size:15px}
  body:not(.desktop-game) #enemy-dialog:not(.pg-details) .enemy-rule p{margin:0 0 4px;font-size:13px;line-height:1.6}
  body:not(.desktop-game) #enemy-dialog:not(.pg-details) .enemy-rule small{font-size:12.5px}
  body:not(.desktop-game) #enemy-dialog:not(.pg-details) .enemy-queue{margin:12px 0 0;font-size:12.5px;line-height:1.6}
}
@media (max-width:999.98px) and (prefers-reduced-motion:reduce){
  body:not(.desktop-game) .m16c-crystal,body:not(.desktop-game) .m16r-card{animation:none}
}
