/* S5 介面改版（2026-10-18，Opus 設計）：共用視窗外框＋左側分類欄、背包紙娃娃／物品方格／詳情側欄。
   色彩：深藍夜空底、金色鑲邊（呼應 868 介面），稀有度色由 --rc 傳入。最後載入，覆蓋舊樣式。 */
:root{--ui-bg:#0d0e22;--ui-panel:#15163a;--ui-panel2:#1c1d48;--ui-line:#3b3768;--ui-gold:#d6b26a;--ui-gold2:#f4dea0;--ui-text:#ece6ff;--ui-muted:#a39dc4;--ui-good:#7fe0a0;--ui-bad:#ff8f8f;}

/* ---------- 共用視窗外框 ---------- */
#awPanel.aw-overlay{background:radial-gradient(ellipse at 50% 40%,#1a1846cc,#05051099 70%);backdrop-filter:blur(2px);}
.aw-window.aw-shell{display:grid;grid-template-columns:auto minmax(0,1fr);width:min(1200px,97vw);height:min(760px,95vh);max-height:95vh;padding:0;overflow:hidden;border:none;border-radius:10px;background:var(--ui-bg);
  box-shadow:0 0 0 1px #000,0 0 0 2px #8a7140,0 0 0 4px #2a2140,0 0 0 5px #d6b26a55,0 20px 70px #000c;color:var(--ui-text);}
.aw-rail{display:flex;flex-direction:column;gap:6px;padding:10px 8px;overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(180deg,#191a44,#0f1030);border-right:1px solid #8a714066;scrollbar-width:thin;}
.aw-rail-group{display:flex;flex-direction:column;gap:3px;padding-bottom:6px;border-bottom:1px solid #ffffff10;}
.aw-rail-group:last-child{border-bottom:0;}
.aw-rail-group em{font-style:normal;font-size:11px;letter-spacing:.2em;color:var(--ui-gold);opacity:.75;padding:4px 6px 2px;}
.aw-window .aw-rail-btn{display:flex;align-items:center;gap:8px;min-height:38px;width:100%;padding:4px 10px 4px 6px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--ui-muted);font-size:14px;text-align:left;white-space:nowrap;}
.aw-window .aw-rail-btn i{display:grid;place-items:center;flex:0 0 26px;height:26px;border-radius:50%;font-style:normal;font-size:13px;font-weight:700;color:#d9cfa8;background:radial-gradient(circle at 35% 30%,#3c3a7a,#1a1a40);box-shadow:inset 0 0 0 1px #8a714099;}
.aw-window .aw-rail-btn:hover:not(:disabled){color:var(--ui-text);background:#ffffff0d;border-color:transparent;}
.aw-window .aw-rail-btn.on{color:#fff6dc;background:linear-gradient(90deg,#6a52248c,#2a234a00);border-color:#d6b26a66;}
.aw-window .aw-rail-btn.on i{color:#2a1d05;background:radial-gradient(circle at 35% 30%,#ffe9a8,#c69a45);}
.aw-main{display:flex;flex-direction:column;min-width:0;min-height:0;}
.aw-window .aw-head{position:relative;top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px 10px 18px;background:linear-gradient(180deg,#2b2860,#1a1a44);border-bottom:1px solid #8a714088;box-shadow:inset 0 -1px 0 #000;}
.aw-window .aw-head h2{margin:0;font-size:19px;letter-spacing:.06em;color:var(--ui-gold2);text-shadow:0 1px 0 #000,0 0 12px #d6b26a44;}
.aw-window .aw-close{min-width:40px;min-height:40px;padding:0;border-radius:50%;font-size:18px;line-height:1;background:#0d0e22;border:1px solid #8a7140;color:var(--ui-gold2);}
.aw-window .aw-close:hover{background:#3a2a10;}
.aw-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 16px 16px;scrollbar-width:thin;scrollbar-color:#5a5490 transparent;}
.aw-body>.aw-status:empty{display:none;}
.aw-status{margin:0 0 8px;color:#ffd79a;}
/* 共用按鈕質感 */
.aw-shell .aw-body button{background:linear-gradient(180deg,#34316a,#24224f);border:1px solid #5b5596;color:var(--ui-text);border-radius:6px;}
.aw-shell .aw-body button:hover:not(:disabled){border-color:var(--ui-gold);}
.aw-shell .aw-body button.primary{background:linear-gradient(180deg,#d9b465,#9b7430);border-color:#f2d48b;color:#1c1404;font-weight:700;}
.aw-shell .aw-body button.warn{background:linear-gradient(180deg,#6a2b3a,#43192a);border-color:#b25a6c;}
.aw-shell .aw-body button.on{border-color:var(--ui-gold);box-shadow:inset 0 0 0 1px var(--ui-gold);}

/* ---------- 背包 ---------- */
.bag{display:grid;grid-template-columns:236px minmax(0,1fr) 0;gap:14px;align-items:start;transition:grid-template-columns .2s;}
.bag.has-focus{grid-template-columns:236px minmax(0,1fr) 300px;}
.bag-doll,.bag-inv,.bag-detail{min-width:0;}
.bag-doll{position:sticky;top:0;display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:10px;background:linear-gradient(180deg,#1d1d4a,#121232);box-shadow:inset 0 0 0 1px #8a714055;}
.bag-hero{display:flex;align-items:center;gap:10px;}
.bag-hero img{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#0b0b20;box-shadow:0 0 0 2px #d6b26a,0 0 12px #d6b26a55;}
.bag-hero b{display:block;font-size:16px;color:var(--ui-gold2);}
.bag-hero small{color:var(--ui-muted);}
/* 紙娃娃：頭盔在上、武器左、衣服中、手套右、項鍊戒指左右、鞋子在下 */
.doll{display:grid;grid-template-columns:repeat(3,62px);grid-template-areas:". helmet necklace" "weapon armor gloves" "ring boots .";gap:8px;justify-content:center;padding:6px 0;background:radial-gradient(ellipse at 50% 55%,#2a2a6a55,transparent 70%);}
.slot-helmet{grid-area:helmet}.slot-weapon{grid-area:weapon}.slot-armor{grid-area:armor}.slot-gloves{grid-area:gloves}.slot-boots{grid-area:boots}.slot-ring{grid-area:ring}.slot-necklace{grid-area:necklace}
.aw-shell .aw-body .bag-slot{position:relative;display:grid;place-items:center;width:62px;height:62px;min-height:62px;padding:0;border-radius:8px;background:radial-gradient(circle at 50% 40%,#25255a,#0e0e26);border:1px solid #3d3a72;}
.bag-slot span{position:absolute;bottom:2px;left:0;right:0;font-size:10px;color:#8e88b8;text-align:center;}
.bag-slot img{width:38px;height:38px;object-fit:contain;image-rendering:pixelated;margin-bottom:8px;filter:drop-shadow(0 2px 2px #000);}
.aw-shell .aw-body .bag-slot.has{border-color:var(--rc);box-shadow:inset 0 0 10px color-mix(in srgb,var(--rc) 45%,transparent),0 0 6px color-mix(in srgb,var(--rc) 40%,transparent);}
.aw-shell .aw-body .bag-slot.focus,.aw-shell .aw-body .bag-tile.focus{outline:2px solid var(--ui-gold2);outline-offset:1px;}
.bag-slot em,.bag-tile em{position:absolute;top:2px;left:4px;font-style:normal;font-size:11px;font-weight:700;color:#ffe9a6;text-shadow:0 1px 2px #000;}
.bag-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0;}
.bag-stats div{padding:6px 8px;border-radius:6px;background:#0c0c24;box-shadow:inset 0 0 0 1px #2e2b58;}
.bag-stats dt{font-size:11px;color:var(--ui-muted);}
.bag-stats dd{margin:0;font-size:16px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums;}
.bag-wallet{display:flex;justify-content:space-between;gap:8px;font-variant-numeric:tabular-nums;}
.bag-wallet span{display:flex;align-items:center;gap:6px;color:#f1e6c4;}
.bag-wallet i{width:14px;height:14px;border-radius:50%;}
.bag-wallet i.ash{background:radial-gradient(circle at 35% 30%,#d8d3e8,#5b5470);}
.bag-wallet i.seed{background:radial-gradient(circle at 35% 30%,#ffe79a,#b07a1a);}
.aw-shell .aw-body .bag-wide{width:100%;}
/* 篩選與容量 */
.bag-inv{display:flex;flex-direction:column;gap:8px;}
.bag-filter{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.aw-shell .aw-body .bag-chip{min-height:32px;padding:3px 11px;border-radius:999px;font-size:13px;background:#14143a;border-color:#3a3770;color:var(--ui-muted);display:inline-flex;align-items:center;gap:6px;}
.aw-shell .aw-body .bag-chip.on{background:linear-gradient(180deg,#4d3d1c,#2c230f);border-color:var(--ui-gold);color:#fff3cf;}
.bag-chip i{width:9px;height:9px;border-radius:50%;box-shadow:0 0 6px currentColor;}
.aw-window .bag-sel{display:inline-flex;gap:6px;min-height:0;font-size:13px;color:var(--ui-muted);}
.aw-window .bag-filter select,.aw-window .bag-filter input[type=search]{min-height:32px;padding:3px 8px;border-radius:6px;background:#0c0c24;border:1px solid #3a3770;color:var(--ui-text);font-size:13px;}
.aw-window .bag-filter input[type=search]{width:140px;margin-left:auto;}
.bag-cap{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--ui-muted);}
.bag-cap .bar{flex:0 0 140px;height:6px;border-radius:3px;background:#0b0b20;box-shadow:inset 0 0 0 1px #2e2b58;overflow:hidden;}
.bag-cap .bar i{display:block;height:100%;background:linear-gradient(90deg,#c69a45,#ffe2a0);}
/* 物品方格 */
.bag-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:7px;padding:10px;border-radius:10px;background:#0a0a1e;box-shadow:inset 0 0 0 1px #2a2752,inset 0 4px 16px #000a;min-height:220px;align-content:start;}
.aw-shell .aw-body .bag-tile{position:relative;display:grid;place-items:center;aspect-ratio:1;min-height:0;padding:0;border-radius:8px;border:1px solid var(--rc);background:radial-gradient(circle at 50% 38%,color-mix(in srgb,var(--rc) 28%,#1a1a40),#0c0c22 72%);box-shadow:inset 0 0 0 1px #00000088;transition:transform .08s,box-shadow .12s;}
.aw-shell .aw-body .bag-tile:hover{transform:translateY(-1px);box-shadow:0 0 10px color-mix(in srgb,var(--rc) 60%,transparent);}
.aw-shell .aw-body .bag-tile.r0{border-color:#5a5a7a;}
.aw-shell .aw-body .bag-tile.r3,.aw-shell .aw-body .bag-tile.r4{box-shadow:0 0 8px color-mix(in srgb,var(--rc) 55%,transparent),inset 0 0 12px color-mix(in srgb,var(--rc) 35%,transparent);}
.aw-shell .aw-body .bag-tile.r4::after{content:"";position:absolute;inset:-1px;border-radius:8px;background:linear-gradient(115deg,transparent 35%,#ffffff40 50%,transparent 65%);background-size:250% 100%;animation:bagShine 3s linear infinite;pointer-events:none;}
@keyframes bagShine{from{background-position:120% 0}to{background-position:-120% 0}}
.bag-tile img{width:66%;height:66%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 2px 2px #000);}
.bag-tile .lk,.bag-tile .uq{position:absolute;top:2px;right:3px;font-style:normal;font-size:10px;padding:0 3px;border-radius:3px;background:#000a;color:#ffd27a;}
.bag-tile .uq{top:auto;bottom:2px;right:3px;color:#ffb3e6;}
.bag-tile .up,.bag-tile .dn{position:absolute;bottom:1px;left:4px;font-size:11px;}
.bag-tile .up{color:var(--ui-good);text-shadow:0 0 4px #000;}.bag-tile .dn{color:var(--ui-bad);text-shadow:0 0 4px #000;}
.bag-tile u{position:absolute;top:2px;right:3px;text-decoration:none;font-size:9px;color:#ffd75e;letter-spacing:-1px;text-shadow:0 0 3px #000;}
.bag-tile .lk~u{top:14px;}
.bag-tile s{position:absolute;inset:auto 0 0 0;text-decoration:none;font-size:10px;text-align:center;background:#000a;color:#9fd7ff;border-radius:0 0 7px 7px;}
.bag-tile .ck{position:absolute;inset:0;display:grid;place-items:center;font-style:normal;font-size:26px;color:#fff;background:#d6b26a55;border-radius:7px;text-shadow:0 0 6px #000;}
.bag.multi .bag-grid{box-shadow:inset 0 0 0 2px #d6b26a77,inset 0 4px 16px #000a;}
.bag-empty{grid-column:1/-1;text-align:center;color:var(--ui-muted);padding:30px 0;}
.bag-actions{display:flex;flex-wrap:wrap;gap:6px;}
.aw-shell .aw-body .bag-actions button{min-height:38px;font-size:13px;}
.bag-hint{margin:0;font-size:12px;color:var(--ui-muted);}
/* 詳情側欄 */
.bag-detail{position:sticky;top:0;overflow:hidden;}
.bag:not(.has-focus) .bag-detail{display:none;}
.gd{position:relative;display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:10px;background:linear-gradient(180deg,#1f1d4c,#121230);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rc) 70%,transparent),0 0 18px color-mix(in srgb,var(--rc) 25%,transparent);}
.aw-shell .aw-body .bag-close{position:absolute;top:8px;right:8px;min-width:30px;min-height:30px;padding:0;border-radius:50%;font-size:13px;}
.gd-head{display:flex;gap:12px;align-items:center;padding-right:30px;}
.gd-icon{flex:0 0 58px;height:58px;display:grid;place-items:center;border-radius:10px;border:1px solid var(--rc);background:radial-gradient(circle,color-mix(in srgb,var(--rc) 30%,#1a1a40),#0b0b20 75%);}
.gd-icon img{width:44px;height:44px;object-fit:contain;image-rendering:pixelated;}
.gd h3{margin:0 0 2px;font-size:17px;color:var(--rc);text-shadow:0 0 10px color-mix(in srgb,var(--rc) 50%,transparent);}
.gd h3 em{font-style:normal;color:#ffe9a6;}
.gd small{color:var(--ui-muted);}
.gd-worn{color:var(--ui-good);font-weight:400;}
.gd-base{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;font-size:12px;color:var(--ui-muted);}
.gd-base span{padding:5px 4px;text-align:center;border-radius:5px;background:#0c0c24;}
.gd-base b{display:block;color:#fff;font-size:14px;}
.gd-affix{display:flex;flex-direction:column;gap:4px;}
.gd-affix div{display:flex;align-items:center;gap:8px;font-size:13px;color:#e9e4ff;}
.gd-affix i{flex:0 0 auto;font-style:normal;font-size:10px;font-weight:700;padding:1px 5px;border-radius:3px;color:#120d02;background:var(--tc);}
.gd-unique{margin:0;padding:8px 10px;border-radius:6px;font-size:13px;line-height:1.55;color:#ffd6f0;background:#3a173a66;box-shadow:inset 0 0 0 1px #d679b866;}
.gd-cmp{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums;}
.gd-cmp th{font-weight:400;color:var(--ui-muted);text-align:right;padding:3px 4px;}
.gd-cmp th:first-child,.gd-cmp td:first-child{text-align:left;color:var(--ui-muted);}
.gd-cmp td{text-align:right;padding:4px;border-top:1px solid #ffffff10;}
.gd-cmp td.pos{color:var(--ui-good);}.gd-cmp td.neg{color:var(--ui-bad);}
.gd-cmp td small{display:block;font-size:10px;opacity:.85;}
.gd-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
.aw-shell .aw-body .gd-actions button{min-height:40px;font-size:13px;}
.gd-more summary{cursor:pointer;color:var(--ui-muted);font-size:12px;}
.gd-more p{font-size:12px;margin:6px 0 0;}
.gd-page{max-width:460px;margin:0 auto;display:flex;flex-direction:column;gap:12px;}

/* ---------- 其他頁面的通用美化（卡片、表格、標題） ---------- */
.aw-shell .aw-body h3{color:var(--ui-gold2);font-size:16px;margin:14px 0 8px;}
.aw-shell .aw-body .aw-items article{background:linear-gradient(180deg,#1b1b44,#111130);border-color:#3a3770;border-radius:8px;}
.aw-shell .aw-body .aw-table th{color:var(--ui-gold2);font-weight:400;}
.aw-shell .aw-body .aw-alert{background:#3a201066;border-radius:6px;padding:8px 10px;}

/* ---------- 窄螢幕／手機橫向 ---------- */
@media (max-width:1100px){.bag.has-focus{grid-template-columns:220px minmax(0,1fr);}.bag.has-focus .bag-detail{position:fixed;right:max(12px,3vw);top:8vh;bottom:6vh;width:min(320px,42vw);overflow:auto;z-index:5;}}
@media (max-height:460px),(max-width:820px){
  .aw-window.aw-shell{width:100vw;height:100dvh;max-height:100dvh;border-radius:0;}
  .aw-rail{padding:6px 4px;gap:2px;}
  .aw-rail-group em{display:none;}
  .aw-window .aw-rail-btn{min-height:40px;padding:3px;justify-content:center;}
  .aw-window .aw-rail-btn span{display:none;}
  .aw-window .aw-rail-btn i{flex-basis:30px;height:30px;font-size:14px;}
  .aw-window .aw-head{padding:6px 10px;}
  .aw-window .aw-head h2{font-size:16px;}
  .aw-body{padding:8px 10px 10px;}
  .bag,.bag.has-focus{grid-template-columns:168px minmax(0,1fr);gap:8px;}
  .bag-doll{padding:8px;gap:6px;}
  .doll{grid-template-columns:repeat(3,46px);gap:5px;}
  .aw-shell .aw-body .bag-slot{width:46px;height:46px;min-height:46px;}
  .bag-slot img{width:28px;height:28px;margin-bottom:6px;}
  .bag-slot span{font-size:9px;}
  .bag-hero img{width:36px;height:36px;}
  .bag-stats dd{font-size:13px;}
  .bag-grid{grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:5px;padding:6px;}
  .bag.has-focus .bag-detail{position:fixed;inset:6px 6px 6px auto;width:min(300px,46vw);overflow:auto;z-index:5;}
  .aw-window .bag-filter input[type=search]{width:110px;}
}
/* 捲軸配色（Windows 預設白色捲軸太突兀） */
.aw-rail,.aw-body,.bag-detail{scrollbar-width:thin;scrollbar-color:#4a4580 transparent;}
.aw-rail::-webkit-scrollbar,.aw-body::-webkit-scrollbar{width:8px;}
.aw-rail::-webkit-scrollbar-thumb,.aw-body::-webkit-scrollbar-thumb{background:#4a4580;border-radius:4px;}
.aw-rail::-webkit-scrollbar-track,.aw-body::-webkit-scrollbar-track{background:transparent;}
/* 手機橫向：篩選列改單排橫向滑動，省垂直空間 */
@media (max-height:460px),(max-width:820px){
  .bag-filter{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;}
  .bag-filter::-webkit-scrollbar{display:none;}
  .aw-shell .aw-body .bag-chip{flex:0 0 auto;min-height:30px;min-width:0;padding:2px 10px;font-size:12px;}
  .aw-window .bag-sel{flex:0 0 auto;font-size:12px;}
  .aw-window .bag-filter select{min-height:30px;font-size:12px;}
  .aw-window .bag-filter input[type=search]{flex:0 0 96px;margin-left:0;min-height:30px;}
  .bag-cap{font-size:11px;}.bag-cap .bar{flex-basis:80px;}
  .bag-inv{gap:5px;}
  .aw-shell .aw-body .bag-actions button{min-height:34px;padding:4px 9px;font-size:12px;}
}
/* ---------- 角色名冊 ---------- */
.rs-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px;}
.rs-top p{flex:1 1 260px;margin:0;font-size:13px;color:var(--ui-muted);}
.rs-pill{display:flex;flex-direction:column;align-items:center;min-width:72px;padding:6px 10px;border-radius:8px;background:#0c0c24;box-shadow:inset 0 0 0 1px #8a714066;}
.rs-pill b{font-size:20px;color:var(--ui-gold2);}.rs-pill b small{font-size:12px;color:var(--ui-muted);}
.rs-pill span{font-size:11px;color:var(--ui-muted);}
.aw-shell .aw-body .aw-roster{gap:10px;}
.aw-shell .aw-body .rs-card{position:relative;display:grid;grid-template-columns:56px 1fr;grid-template-rows:auto auto auto;column-gap:10px;align-items:center;text-align:left;padding:8px 10px;min-height:76px;border-radius:10px;background:linear-gradient(135deg,#1f1e4e,#121231);border:1px solid #3a3770;opacity:1;}
.rs-card img{grid-row:1/4;width:56px;height:56px;border-radius:8px;object-fit:cover;background:#0b0b20;box-shadow:0 0 0 1px #5b5596;}
.rs-card b{font-size:15px;color:#fff;}
.rs-card span{font-size:12px;color:var(--ui-muted);}
.rs-card small{font-size:11px;color:var(--ui-gold);}
.aw-shell .aw-body .rs-card.active{border-color:var(--ui-gold);background:linear-gradient(135deg,#4a3a18,#1d1a3a 70%);box-shadow:0 0 12px #d6b26a44;}
.aw-shell .aw-body .rs-card.active small{color:#9ff0b8;}
.aw-shell .aw-body .rs-card.active::after{content:"出戰中";position:absolute;top:6px;right:8px;font-size:10px;padding:1px 6px;border-radius:3px;background:#d6b26a;color:#1c1404;}
.aw-shell .aw-body .rs-card.locked img{filter:grayscale(1) brightness(.55);}
.aw-shell .aw-body .rs-card.locked b{color:#9a94bb;}
.aw-shell .aw-body .rs-card.locked:not(:disabled) small{color:#ffd27a;}
.aw-shell .aw-body .rs-card:disabled{opacity:1;}
.aw-shell .aw-body .rs-card.locked:disabled{opacity:.6;}
/* ---------- 地圖 ---------- */
.aw-shell .aw-body .aw-maps{gap:10px;}
.aw-shell .aw-body .mp-card{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;min-height:112px;padding:10px 12px 14px;text-align:left;border-radius:10px;border:1px solid #3a3770;background:#0d0d24;isolation:isolate;}
.mp-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.42;z-index:-2;filter:saturate(1.1);transition:opacity .15s,transform .3s;}
.mp-card::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#0d0d2400 20%,#0d0d24ee 78%);}
.aw-shell .aw-body .mp-card:hover:not(:disabled) .mp-thumb{opacity:.6;transform:scale(1.04);}
.mp-card b{font-size:15px;color:#fff;text-shadow:0 1px 3px #000;}
.mp-card span{font-size:12px;color:#d9d3f2;}
.mp-card small{font-size:11px;color:var(--ui-muted);line-height:1.4;}
.mp-badge{position:absolute;top:8px;right:8px;font-style:normal;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;color:#1c1404;background:linear-gradient(180deg,#ffe9a8,#c69a45);box-shadow:0 0 8px #d6b26a88;}
.mp-bar{position:absolute;left:0;right:0;bottom:0;height:4px;background:#00000080;}
.mp-bar i{display:block;height:100%;background:linear-gradient(90deg,#4ab3ff,#9ff0ff);}
.mp-card.clear .mp-bar i{background:linear-gradient(90deg,#c69a45,#ffe2a0);}
.aw-shell .aw-body .mp-card.here{border-color:var(--ui-gold);box-shadow:0 0 14px #d6b26a55;}
.aw-shell .aw-body .mp-card.here::after{content:"目前所在";position:absolute;top:8px;left:8px;font-size:10px;padding:1px 6px;border-radius:3px;background:#000a;color:var(--ui-gold2);}
.aw-shell .aw-body .mp-card.lock{opacity:1;}
.mp-card.lock .mp-thumb{filter:grayscale(1);opacity:.18;}
.mp-card.lock b{color:#8f89b4;}

/* 追趕經驗、帳號解鎖角標、低等警告、傳送提醒（2026-10-20） */
.mp-catchup{display:flex;align-items:center;gap:10px;margin:0 0 6px;padding:8px 12px;border-radius:10px;background:linear-gradient(180deg,#1d1d4a,#121232);box-shadow:inset 0 0 0 1px #3a3770;}
.mp-catchup i{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;font-style:normal;font-weight:700;color:var(--ui-muted);background:#0d0e22;box-shadow:inset 0 0 0 1px #3a3770;}
.mp-catchup b{font-size:15px;color:var(--ui-text);white-space:nowrap;}
.mp-catchup span{font-size:12px;color:var(--ui-muted);}
.mp-catchup.on{background:linear-gradient(90deg,#3a2f12,#1b1838 70%);box-shadow:inset 0 0 0 1px #d6b26a88,0 0 14px #d6b26a22;}
.mp-catchup.on i{color:#2a1d05;background:radial-gradient(circle at 35% 30%,#ffe9a8,#c69a45);box-shadow:0 0 10px #d6b26a77;}
.mp-catchup.on b{color:var(--ui-gold2);}
.mp-badge.acct{background:linear-gradient(180deg,#9fd8ff,#4f8fd0);color:#08203a;}
.mp-card .mp-warn{display:inline-block;align-self:flex-start;margin-top:2px;padding:1px 7px;border-radius:4px;font-size:10.5px;color:#ffd0d6;background:#5a263299;box-shadow:inset 0 0 0 1px #d0707f88;}
.mp-travel{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;max-width:520px;margin:20px auto;padding:22px 20px 18px;border-radius:12px;overflow:hidden;text-align:center;background:#121232;box-shadow:inset 0 0 0 1px #d0707f88,0 10px 30px #0008;isolation:isolate;}
.mp-travel .mp-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.22;z-index:-1;}
.mp-travel>i{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;font-style:normal;font-size:20px;color:#ffe1e6;background:radial-gradient(circle at 35% 30%,#d0707f,#5a2632);box-shadow:0 0 14px #d0707f66;}
.mp-travel>b{font-size:18px;color:var(--ui-gold2);}
.mp-travel .aw-status{margin:0;font-size:14px;color:#ffd0d6;}
.mp-travel small{font-size:12px;color:var(--ui-muted);}
.mp-travel-act{display:flex;gap:10px;margin-top:6px;}
.aw-shell .aw-body .mp-travel-act button{min-height:40px;min-width:120px;}
@media (max-height:460px),(max-width:820px){.mp-catchup span{display:none;}.mp-travel{margin:8px auto;padding:14px;}}

/* 狀態訊息固定在內容頂端：捲到下面操作時也看得到錯誤或結果 */
.aw-body>.aw-status:not(:empty),.aw-body>.b3-status:not(:empty){position:sticky;top:-12px;z-index:6;margin:-4px 0 10px;padding:8px 12px;border-radius:8px;background:#2a1f10f0;box-shadow:inset 0 0 0 1px #d6b26a88,0 4px 12px #0008;color:#ffd79a;font-size:13px;}
.aw-body>.aw-status[role=alert]:not(:empty){background:#3a1520f0;box-shadow:inset 0 0 0 1px #d0707f,0 4px 12px #0008;color:#ffd0d6;}
