/* 三國天命 v10.1 — 線上登入畫面 / 斷線遮罩 */
.nt-box { width: min(380px, 92vw); display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; background: linear-gradient(180deg, rgba(24, 18, 14, .94), rgba(10, 8, 6, .96)); border: 1px solid #6b5631; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .7), inset 0 0 18px rgba(0, 0, 0, .6); color: #e7dcc3; }
.nt-t { font: 900 20px "Noto Serif TC", serif; color: #e6c670; text-align: center; letter-spacing: 2px; text-shadow: 0 2px 6px #000; }
.nt-box input { height: 40px; padding: 0 12px; background: #0c0a08; border: 1px solid #5b4a2c; border-radius: 4px; color: #f5ecd6; font-size: 15px; outline: none; }
.nt-box input:focus { border-color: #d9b46a; box-shadow: 0 0 0 2px rgba(217, 180, 106, .25); }
.nt-box .v4-btn { width: 100%; justify-content: center; }
.nt-box .v4-btn small { display: block; font-size: 11px; opacity: .8; font-weight: 400; }
.nt-srv { font-size: 12.5px; color: #b8a888; text-align: center; min-height: 16px; }
.nt-srv b.on { color: #4ade80; } .nt-srv b.bad, .nt-msg.bad { color: #f87171; }
.nt-motd { margin-top: 4px; color: #d6c8a8; font-size: 12px; }
.nt-msg { min-height: 18px; font-size: 13px; text-align: center; color: #d6c8a8; }
.nt-warn { font-size: 13px; color: #fca5a5; line-height: 1.6; margin: 0; }
#nt-block { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .72); backdrop-filter: blur(2px); }
#nt-block.on { display: flex; }
#nt-block p { margin: 0; font-size: 14px; line-height: 1.6; text-align: center; color: #e7dcc3; }
.nt-spin { width: 34px; height: 34px; margin: 4px auto 0; border: 3px solid rgba(230, 198, 112, .25); border-top-color: #e6c670; border-radius: 50%; animation: ntspin 0.9s linear infinite; }
@keyframes ntspin { to { transform: rotate(360deg); } }

/* v10.3 商店 / 商城 / 月卡 / 召喚 */
.p6-cur .yb { cursor: pointer; color: #fde68a; }
.sh10 { padding: 12px 16px; }
.sh10 > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.sh-list .p6-row .r-main span { display: block; font-size: 12px; color: var(--c-dim, #a39477); }
.sh-list .p6-row .r-act { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.sh-price { display: inline-flex; align-items: center; gap: 4px; min-width: 70px; justify-content: flex-end; color: #f0dfb4; font-size: 13px; }
.sh-price img { width: 18px; height: 18px; }
.sh-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.sh-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px; text-align: center; background: linear-gradient(180deg, rgba(40, 30, 18, .7), rgba(10, 8, 6, .8)); border: 1px solid #5b4a2c; border-radius: 4px; }
.sh-card img { width: 56px; height: 56px; object-fit: contain; }
.sh-card b { color: #f3e3bd; font-size: 13.5px; }
.sh-card span { color: #a39477; font-size: 11.5px; min-height: 16px; }
.sh-card .p6-btn { width: 100%; justify-content: center; }
.sh-month { display: flex; justify-content: center; padding: 10px 0; }
.sh-mc { width: min(420px, 100%); padding: 22px; text-align: center; border: 1px solid #a8864a; border-radius: 6px; background: radial-gradient(circle at 50% 0, rgba(253, 230, 138, .18), rgba(10, 8, 6, .9) 70%); box-shadow: 0 0 30px rgba(251, 191, 36, .15); }
.sh-mc .mc-t { font: 900 24px "Noto Serif TC", serif; color: #fbbf24; letter-spacing: 3px; }
.sh-mc .mc-p { margin: 6px 0 12px; color: #fde68a; font-size: 15px; }
.sh-mc ul { list-style: none; padding: 0; margin: 0 0 12px; color: #e7dcc3; line-height: 2; }
.sh-mc li b { color: #4ade80; }
.sh-mc .mc-s { margin-bottom: 12px; color: #d6c8a8; font-size: 13px; }
.sh-mc .p6-btn { width: 100%; justify-content: center; }
.sh-gacha { min-height: 240px; display: flex; align-items: center; justify-content: center; padding: 14px; border: 1px solid #3b3022; background: radial-gradient(circle, rgba(120, 60, 160, .18), rgba(0, 0, 0, .3) 70%); }
.sh-pulls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sh-pull { width: 92px; padding: 6px 4px; text-align: center; border: 1px solid var(--tc); border-radius: 4px; background: rgba(0, 0, 0, .45); box-shadow: 0 0 10px color-mix(in srgb, var(--tc) 40%, transparent); }
.sh-pull img { width: 70px; height: 80px; object-fit: contain; }
.sh-pull b { display: block; font-size: 12px; color: #f3e3bd; } .sh-pull i { font-style: normal; font-size: 11px; color: var(--tc); }
.sh-gact, .g6-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 12px; }
@media (max-width: 600px) { .sh-list .p6-row { flex-wrap: wrap; } .sh-list .p6-row .r-act { width: 100%; justify-content: flex-end; } .sh-grid { grid-template-columns: repeat(2, 1fr); } }

/* v10.3 舊面板轉新版全螢幕面板 */
.leg10 { padding: 12px 16px 20px; }
.leg10.p6-main.full { display: block; }
.leg10-in { width: 100%; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }   /* 沿用原本視窗的直向間距 */
.leg10-in > div:first-child { margin-top: 0 !important; }
#modal-quick-nav { display: none !important; }
@media (max-width: 600px) { .leg10 { padding: 8px; } }
/* v11.1：月卡圖示 */
.sh-mc .mc-ico { width: 84px; height: 84px; display: block; margin: 0 auto 6px; border-radius: 8px; box-shadow: 0 0 18px rgba(251, 191, 36, .35); }
/* ============ v11.1 裝備工坊 / 特別煉金 (forge_v11.js) ============ */
.f11-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr); gap: 12px; height: 100%; min-height: 0; padding: 10px; box-sizing: border-box; }
.f11-wrap.alch { grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); }
.f11-wrap > section { min-height: 0; display: flex; flex-direction: column; }
.f11-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.f11-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; text-align: left; cursor: pointer; color: #eadcc0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(40,28,14,.35)); border: 1px solid rgba(168,134,74,.35); border-left: 3px solid var(--rc); border-radius: 4px; font: inherit; }
.f11-row:hover { border-color: #c9a45c; }
.f11-row.sel { background: linear-gradient(90deg, rgba(120,86,30,.45), rgba(40,28,14,.35)); border-color: #fbbf24; box-shadow: 0 0 10px rgba(251,191,36,.2); }
.f11-ic { position: relative; width: 42px; height: 42px; flex: none; border: 1px solid var(--rc); border-radius: 4px; background: #0b0805; }
.f11-ic img { width: 100%; height: 100%; object-fit: contain; }
.f11-ic em, .f11-big em { position: absolute; right: 1px; bottom: 0; font: 900 11px Arial, sans-serif; font-style: normal; color: #fde68a; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.f11-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.f11-nm b { color: var(--rc); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; filter: brightness(1.15); }
.f11-nm small { color: #b8a483; font-size: 11.5px; }
.f11-rt { flex: none; text-align: right; font: 900 14px Arial, sans-serif; display: flex; flex-direction: column; align-items: flex-end; }
.f11-rt i { font: 700 10.5px "Noto Serif TC", serif; font-style: normal; color: #86efac; }
.f11-rt.ok { color: #86efac; } .f11-rt.mid { color: #fde68a; } .f11-rt.bad { color: #fca5a5; }
.f11-side { gap: 10px; overflow-y: auto; }
.f11-have { display: flex; flex-wrap: wrap; gap: 8px; }
.f11-have span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 4px; border: 1px solid rgba(168,134,74,.45); border-radius: 14px; background: rgba(0,0,0,.4); font-size: 12.5px; color: #e7d6b2; }
.f11-have span.bl { border-color: #d4a72c; color: #fde68a; }
.f11-have img { width: 22px; height: 22px; border-radius: 3px; }
.f11-det { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--rc); border-radius: 6px; background: radial-gradient(circle at 50% 0, rgba(253,230,138,.12), rgba(0,0,0,.5) 70%); text-align: center; }
.f11-big { position: relative; width: 84px; height: 84px; border: 2px solid var(--rc); border-radius: 6px; background: #0b0805; box-shadow: 0 0 18px rgba(251,191,36,.18); }
.f11-big img { width: 100%; height: 100%; object-fit: contain; }
.f11-big em { font-size: 15px; right: 4px; bottom: 2px; }
.f11-det h3 { margin: 0; font: 900 17px "Noto Serif TC", serif; color: var(--rc); filter: brightness(1.2); }
.f11-kv { display: grid; grid-template-columns: auto auto auto auto; gap: 3px 12px; font-size: 12.5px; color: #b8a483; }
.f11-kv b { color: #f5e6c4; text-align: left; } .f11-kv b.ok { color: #86efac; } .f11-kv b.bad { color: #fca5a5; }
.f11-warn { width: 100%; box-sizing: border-box; padding: 6px 10px; border-radius: 4px; font-size: 12.5px; color: #fecaca; background: rgba(127,29,29,.35); border: 1px solid rgba(239,68,68,.45); }
.f11-warn.safe { color: #bbf7d0; background: rgba(20,83,45,.35); border-color: rgba(74,222,128,.4); }
.f11-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.f11-go { display: flex !important; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px !important; height: auto !important; line-height: 1.25; }
.f11-go img { width: 34px; height: 34px; border-radius: 4px; }
.f11-go small { font-size: 11px; opacity: .85; } .f11-go span { font-size: 11px; color: #fde68a; }
.f11-go.bless { border-color: #e7b93c !important; background: linear-gradient(180deg, #6b4a12, #2e1d06) !important; color: #fff3c4 !important; }
.f11-go[disabled] { opacity: .45; filter: grayscale(.6); }
.f11-eq { width: 100%; }
.f11-rule { margin-top: auto; font-size: 11.5px; color: #9c8a6a; line-height: 1.5; padding-top: 6px; border-top: 1px dashed rgba(168,134,74,.3); }
.f11-cauldron { align-items: center; text-align: center; gap: 10px; padding: 16px; background: radial-gradient(circle at 50% 18%, rgba(168,85,247,.22), rgba(10,6,16,.9) 65%) !important; border-color: rgba(192,132,252,.5) !important; overflow-y: auto; }
.f11-pot { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(192,132,252,.35), transparent 70%); animation: f11glow 2.6s ease-in-out infinite; }
.f11-pot img { width: 82px; height: 82px; }
@keyframes f11glow { 50% { box-shadow: 0 0 34px rgba(192,132,252,.45); } }
.f11-cauldron h3 { margin: 0; font: 900 22px "Noto Serif TC", serif; color: #e9d5ff; letter-spacing: 3px; }
.f11-cauldron p { margin: 0; color: #c4b5fd; font-size: 13px; }
.f11-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 520px; }
.f11-odds .o { display: flex; flex-direction: column; padding: 8px 4px; border-radius: 6px; background: rgba(0,0,0,.45); border: 1px solid; }
.f11-odds .o b { font: 900 20px Arial, sans-serif; } .f11-odds .o span { font-size: 13px; font-weight: 700; } .f11-odds .o small { font-size: 10.5px; opacity: .75; }
.f11-odds .gold { color: #fde047; border-color: rgba(253,224,71,.5); } .f11-odds .purple { color: #d8b4fe; border-color: rgba(192,132,252,.5); } .f11-odds .red { color: #fca5a5; border-color: rgba(248,113,113,.5); }
.f11-cost { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 13px; color: #e9d5ff; }
.f11-cost span { display: inline-flex; align-items: center; gap: 5px; } .f11-cost img { width: 20px; height: 20px; } .f11-cost b.bad { color: #fca5a5; }
.f11-fire { min-width: 200px; font-size: 16px !important; padding: 10px 24px !important; height: auto !important; background: linear-gradient(180deg, #7e22ce, #3b0764) !important; border-color: #d8b4fe !important; color: #fff !important; }
.f11-new { padding: 6px 12px; border-radius: 4px; border: 1px solid var(--rc); color: #f5e6c4; font-size: 13px; background: rgba(0,0,0,.4); }
.f11-new b { color: var(--rc); }
.f11-hist { gap: 6px; overflow-y: auto; }
.f11-h { font-size: 12px; color: #e9d5ff; padding: 5px 8px; border-left: 2px solid #a855f7; background: rgba(88,28,135,.18); border-radius: 2px; }
@media (max-width: 760px) {
  .f11-wrap, .f11-wrap.alch { grid-template-columns: 1fr; height: auto; }
  .f11-scroll { max-height: 42vh; }
  .f11-odds { grid-template-columns: 1fr 1fr 1fr; }
}
.f11-go, .f11-go small, .f11-go span { text-shadow: 0 1px 2px #000, 0 0 3px #000; }
/* ============ v11.4 按鈕狀態：可操作 = 亮色、不可操作 = 灰色 ============ */
.p6-btn:not(:disabled):not(.gold), .v4-btn:not(:disabled):not(.gold):not(.red), .action-btn:not(:disabled), .dir-chip:not(:disabled) {
  color: #fbe9bf; border-color: #a8864a;
  background: linear-gradient(180deg, #5e4824 0%, #3d2d14 55%, #281d0b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 228, 160, .28), 0 0 0 1px rgba(0, 0, 0, .4), 0 2px 5px rgba(0, 0, 0, .6);
}
.p6-btn:not(:disabled):not(.gold):hover, .v4-btn:not(:disabled):not(.gold):not(.red):hover, .action-btn:not(:disabled):hover { filter: brightness(1.25); }
.p6-btn:not(:disabled) small, .v4-btn:not(:disabled) small { color: #e8d3a2; }
.p6-btn:disabled, .v4-btn:disabled, .action-btn:disabled, .dir-chip:disabled, .p6-btn.gold:disabled {
  color: #8d8d8d !important; border-color: #474747 !important; background: linear-gradient(180deg, #3b3b3b, #262626) !important;
  filter: grayscale(1) !important; opacity: .55 !important; cursor: not-allowed !important; box-shadow: none !important; text-shadow: none !important;
}
.p6-btn:disabled small, .v4-btn:disabled small { color: #7a7a7a !important; }
/* ============ v11.4 領地 / 錢莊交易所 / 懸賞 / 儲值 (realm_v11.js) ============ */
.r11 { padding: 10px 12px 18px; box-sizing: border-box; color: #eadcc0; }
.r11-cur { width: 16px; height: 16px; vertical-align: -3px; margin-right: 3px; object-fit: contain; }
.r11-dim { color: #8f8064; font-size: 12px; } .r11-dim.c, .c { text-align: center; padding: 8px; display: block; }
.r11-note { margin: 12px 0 0; font-size: 12px; color: #a8987a; line-height: 1.6; padding: 8px 10px; border: 1px dashed rgba(168,134,74,.35); border-radius: 4px; background: rgba(0,0,0,.25); }
.r11-load { padding: 40px 10px; }
.r11-siege { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 10px; border: 1px solid #6b5530; border-radius: 6px; background: linear-gradient(90deg, rgba(60,42,16,.65), rgba(10,8,6,.6)); }
.r11-siege.on { border-color: #ef4444; background: linear-gradient(90deg, rgba(110,20,20,.6), rgba(10,8,6,.6)); }
.r11-siege img { width: 38px; height: 38px; }
.r11-siege b { display: block; color: #fde68a; font-size: 15px; } .r11-siege.on b { color: #fca5a5; }
.r11-siege span { font-size: 12px; color: #d6c39a; }
.r11-me { margin-left: auto; font-size: 12.5px; color: #e7d6b2; text-align: right; } .r11-me i { font-style: normal; font-weight: 700; } .r11-me em { font-style: normal; color: #fbbf24; }
.r11-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.r11-sum div { text-align: center; padding: 6px; border: 1px solid var(--nc); border-radius: 4px; background: rgba(0,0,0,.35); }
.r11-sum b { display: block; font-size: 22px; color: var(--nc); } .r11-sum span { font-size: 12px; color: #cbb98f; }
.r11-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.r11-castle { padding: 10px; border: 1px solid #5b4a2c; border-top: 3px solid var(--nc); border-radius: 6px; background: linear-gradient(180deg, rgba(40,30,16,.75), rgba(8,6,4,.75)); display: flex; flex-direction: column; gap: 8px; }
.r11-ch { display: flex; align-items: center; gap: 8px; } .r11-ch img { width: 40px; height: 40px; }
.r11-ch b { display: block; font: 900 17px "Noto Serif TC", serif; color: #fde68a; } .r11-ch small { color: #b8a483; font-size: 12px; }
.r11-own { margin-left: auto; padding: 3px 12px; border-radius: 12px; border: 1px solid var(--nc); color: var(--nc); font-weight: 900; background: rgba(0,0,0,.45); }
.r11-kv { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 10px; font-size: 12.5px; color: #b8a483; } .r11-kv b { color: #f5e6c4; }
.r11-bars { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; font-size: 11.5px; color: #b8a483; }
.r11-bar { position: relative; height: 14px; border-radius: 7px; background: rgba(0,0,0,.6); border: 1px solid #3f3424; overflow: hidden; }
.r11-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; }
.r11-bar span { position: relative; display: block; text-align: center; font-size: 10.5px; line-height: 13px; color: #fff; text-shadow: 0 0 3px #000; }
.r11-dec { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.r11-chip { font-size: 11.5px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--nc); color: var(--nc); background: rgba(0,0,0,.4); }
.r11-manage { padding: 12px; border: 1px solid var(--nc); border-radius: 6px; background: rgba(0,0,0,.35); margin-bottom: 10px; }
.r11-manage h3 { margin: 0 0 8px; color: #fde68a; font: 900 18px "Noto Serif TC", serif; } .r11-manage h3 small { margin-left: 8px; font-size: 12px; color: #86efac; }
.r11-taxset { display: flex; align-items: center; gap: 8px; margin-top: 10px; } .r11-taxset select { padding: 6px 10px; background: #1a140c; color: #fde68a; border: 1px solid #a8864a; border-radius: 4px; font-size: 14px; }
.r11-table { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.r11-tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 6px; align-items: center; padding: 6px 8px; background: rgba(0,0,0,.35); border-radius: 3px; }
.r11-tr.h { background: rgba(120,90,40,.35); color: #fde68a; font-weight: 700; }
.up { color: #4ade80 !important; } .dn { color: #f87171 !important; }
.r11-taxwrap { display: grid; grid-template-columns: 200px 1fr; gap: 10px; }
.r11-taxside { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; text-align: center; border: 1px solid #5b4a2c; border-radius: 6px; background: rgba(0,0,0,.4); font-size: 12.5px; color: #d6c39a; }
.r11-taxside > img { width: 84px; height: 84px; } .r11-taxside > b { color: #fde68a; font-size: 14px; }
.r11-bank { width: 100%; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #5b4a2c; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.r11-taxcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.r11-taxcol { border: 1px solid #5b4a2c; border-top: 3px solid var(--nc); border-radius: 6px; background: linear-gradient(180deg, rgba(30,22,12,.85), rgba(6,5,4,.8)); padding: 8px 10px; font-size: 12.5px; }
.r11-tc-h { text-align: center; padding-bottom: 6px; border-bottom: 1px solid #3f3424; margin-bottom: 4px; }
.r11-tc-h small { display: block; color: #93c5fd; font-size: 11.5px; } .r11-tc-h b { display: block; font: 900 18px "Noto Serif TC", serif; color: #fde68a; } .r11-tc-h span { font-size: 12px; }
.r11-tc-r { display: flex; justify-content: space-between; gap: 6px; padding: 5px 0; border-bottom: 1px solid rgba(63,52,36,.6); color: #b8a483; }
.r11-tc-r b { color: #f5e6c4; text-align: right; }
.r11-war { display: flex; flex-direction: column; gap: 8px; }
.r11-wrow { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #5b4a2c; border-left: 4px solid var(--nc); border-radius: 5px; background: rgba(0,0,0,.4); }
.r11-wrow img { width: 40px; height: 40px; } .r11-wm { flex: 1; min-width: 0; } .r11-wm b { display: block; color: #fde68a; font-size: 15px; } .r11-wm span { font-size: 12px; color: #b8a483; } .r11-wm i { font-style: normal; font-weight: 700; }
.r11-wallet { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.r11-wallet > div { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #5b4a2c; border-radius: 6px; background: rgba(0,0,0,.4); font-size: 13px; }
.r11-wallet > div.bk { border-color: #d4a72c; background: rgba(80,60,20,.35); } .r11-wallet small { color: #a8987a; margin-right: 4px; } .r11-wallet b { color: #fde68a; margin-right: 8px; }
.r11-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.r11-stats > div { padding: 8px 10px; border: 1px solid #5b4a2c; border-radius: 6px; background: rgba(0,0,0,.4); }
.r11-stats small { display: block; color: #a8987a; font-size: 11.5px; } .r11-stats b { font-size: 18px; color: #fde68a; } .r11-stats span { margin-left: 4px; font-size: 12px; color: #b8a483; }
.r11-ex2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r11-ex2 > section { padding: 10px; }
.r11-chart { width: 100%; height: 160px; display: block; background: rgba(0,0,0,.35); border-radius: 4px; }
.r11-chart.empty { display: grid; place-items: center; color: #8f8064; font-size: 13px; }
.r11-trades { display: flex; flex-direction: column; gap: 2px; font-size: 12px; max-height: 200px; overflow-y: auto; }
.r11-trades > div { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 3px 6px; background: rgba(0,0,0,.3); }
.r11-book { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; }
.r11-bk { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 4px 8px; cursor: pointer; background: rgba(0,0,0,.3); }
.r11-bk.h { cursor: default; color: #a8987a; font-size: 11.5px; background: transparent; }
.r11-bk i { position: absolute; right: 0; top: 0; bottom: 0; opacity: .25; }
.r11-bk.ask i { background: #ef4444; } .r11-bk.bid i { background: #22c55e; }
.r11-bk.ask span:first-child { color: #f87171; } .r11-bk.bid span:first-child { color: #4ade80; }
.r11-bk span { position: relative; } .r11-bk:not(.h):hover { background: rgba(120,90,40,.35); }
.r11-mid { text-align: center; padding: 6px; color: #fde68a; border-top: 1px solid #3f3424; border-bottom: 1px solid #3f3424; }
.r11-form { display: flex; flex-direction: column; gap: 8px; } .r11-form h3 { margin: 0; font: 900 16px "Noto Serif TC", serif; }
.r11-form.buy h3 { color: #4ade80; } .r11-form.sell h3 { color: #f87171; }
.r11-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: #b8a483; }
.r11-form input, .r11-bop input { padding: 8px 10px; background: #120e08; color: #fde68a; border: 1px solid #6b5530; border-radius: 4px; font-size: 15px; width: 100%; box-sizing: border-box; }
.r11-total { font-size: 13px; color: #d6c39a; } .r11-total b { color: #fde68a; } .r11-avail { font-size: 12px; color: #a8987a; }
.r11-bankbox h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: #fde68a; }
.r11-bop { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; margin-top: 8px; }
.r11-bhead { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 10px; border: 1px solid #6b5530; border-radius: 6px; background: linear-gradient(90deg, rgba(60,42,16,.65), rgba(10,8,6,.6)); }
.r11-bhead img { width: 42px; height: 42px; } .r11-bhead b { display: block; font: 900 17px "Noto Serif TC", serif; color: #fde68a; } .r11-bhead span { font-size: 12.5px; color: #d6c39a; }
.r11-blist { display: flex; flex-direction: column; gap: 8px; }
.r11-bounty { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #5b4a2c; border-left: 4px solid #8a6a32; border-radius: 5px; background: rgba(0,0,0,.4); }
.r11-bounty.ready { border-left-color: #4ade80; box-shadow: 0 0 12px rgba(74,222,128,.15); } .r11-bounty.claimed { opacity: .6; }
.r11-bm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; } .r11-bm b { color: #fde68a; font-size: 14px; } .r11-bm small { color: #b8a483; font-size: 12px; }
.r11-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.r11-pack { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; text-align: center; border: 1px solid #5b4a2c; border-radius: 6px; background: rgba(0,0,0,.4); }
.r11-pack img { width: 56px; height: 56px; } .r11-pack b { font-size: 13px; color: #f5e6c4; } .r11-pack span { color: #fde68a; }
.r11-paygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.r11-paycard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border: 1px solid #a8864a; border-radius: 8px; background: radial-gradient(circle at 50% 0, rgba(253,230,138,.18), rgba(10,8,6,.9) 70%); }
.r11-paycard img { width: 58px; height: 58px; } .r11-paycard b { font-size: 17px; color: #fde68a; } .r11-paycard span { color: #e7d6b2; font-size: 13px; }
.sh-pulls-h { flex: 0 0 100%; width: 100%; order: -1; text-align: center; margin: 6px 0; color: #e7d6b2; font-size: 13px; } .sh-pulls-h b { color: #fde68a; font-size: 16px; }
.sh-pulls { counter-reset: pull; flex-wrap: wrap !important; overflow: visible !important; max-height: none !important; }
.sh-pull { position: relative; } .sh-pull::before { counter-increment: pull; content: counter(pull); position: absolute; left: 3px; top: 2px; z-index: 2; font: 900 11px Arial, sans-serif; color: #fff; background: rgba(0,0,0,.65); border-radius: 8px; padding: 0 5px; }
@media (max-width: 760px) {
  .r11-ex2, .r11-taxwrap { grid-template-columns: 1fr; }
  .r11-sum { grid-template-columns: repeat(4, 1fr); }
  .r11-kv { grid-template-columns: auto 1fr; }
  .r11-me { display: none; }
  .r11-tr { font-size: 11.5px; }
}
.sh-gacha { flex-wrap: wrap; align-content: center; }
.r11-sl { display: block; font-size: 12px; color: #d6c39a; } .r11-sl b { color: #fde68a; margin-right: 6px; } .r11-sl.on i { color: #fca5a5; font-style: normal; font-weight: 700; }
.r11-bank small { font-size: 11px; }
/* ============ v11.5 自動戰鬥設定 ============ */
.a11 { padding: 12px; color: #eadcc0; }
.a11-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 10px; border: 1px solid #6b5530; border-radius: 6px; background: linear-gradient(90deg, rgba(60,42,16,.65), rgba(10,8,6,.6)); }
.a11-head b { font: 900 17px "Noto Serif TC", serif; color: #fde68a; } .a11-head i { font-style: normal; color: #9a9a9a; } .a11-head i.on { color: #4ade80; } .a11-head button { margin-left: auto; }
.a11-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(91,74,44,.5); flex-wrap: wrap; }
.a11-l { flex: 1 1 220px; } .a11-l b { display: block; color: #fde68a; font-size: 14px; } .a11-l span { font-size: 12px; color: #a8987a; }
.a11-o { display: flex; flex-wrap: wrap; gap: 6px; }
/* v11.5 道具交易所 */
.r11-isearch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .r11-isearch input { flex: 1 1 160px; padding: 8px 10px; background: #120e08; color: #fde68a; border: 1px solid #6b5530; border-radius: 4px; font-size: 14px; }
.r11-ilist { display: flex; flex-direction: column; gap: 6px; }
.r11-irow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid #5b4a2c; border-left: 3px solid var(--ic, #8a6a32); border-radius: 4px; background: rgba(0,0,0,.4); }
.r11-irow.small { padding: 5px 8px; } .r11-irow img { width: 40px; height: 40px; object-fit: contain; background: #0b0805; border: 1px solid #3f3424; border-radius: 4px; }
.r11-im { flex: 1; min-width: 0; } .r11-im b { display: block; color: var(--ic, #f5e6c4); font-size: 13.5px; } .r11-im span { font-size: 11.5px; color: #a8987a; } .r11-im i { font-style: normal; font-weight: 700; }
.r11-ip { text-align: right; } .r11-ip b { color: #fde68a; } .r11-ip small { display: block; font-size: 11px; color: #a8987a; }
.r11-igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; max-height: 420px; overflow-y: auto; }
.r11-icell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; background: rgba(0,0,0,.45); border: 1px solid var(--ic, #4d4232); border-radius: 4px; color: #e7d6b2; cursor: pointer; font: inherit; }
.r11-icell.sel { border-color: #fbbf24; box-shadow: 0 0 10px rgba(251,191,36,.35); background: rgba(90,66,24,.5); }
.r11-icell img { width: 42px; height: 42px; object-fit: contain; } .r11-icell em { position: absolute; right: 4px; top: 3px; font: 900 11px Arial, sans-serif; font-style: normal; color: #fde68a; text-shadow: 0 0 3px #000; } .r11-icell span { font-size: 11px; text-align: center; line-height: 1.2; }
.r11-isel { padding: 6px 10px; border: 1px dashed #a8864a; border-radius: 4px; color: #e7d6b2; } .r11-isel b { color: #fde68a; }
/* v11.5 角色欄位 */
.nt-slots { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.nt-slot { display: flex; align-items: center; gap: 8px; padding: 7px 8px; background: rgba(0, 0, 0, .35); border: 1px solid #4a3c24; border-radius: 5px; }
.nt-slot.sel { border-color: #d9b46a; box-shadow: 0 0 0 1px rgba(217, 180, 106, .35) inset; }
.nt-slot.empty { opacity: .85; border-style: dashed; }
.nt-sl-i { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: #3a2d18; color: #e6c670; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.nt-sl-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nt-sl-b b { color: #f5e6c0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-sl-b small { color: #b7a888; font-size: 11px; }
.nt-slot .v4-btn { flex: 0 0 auto !important; width: auto !important; min-width: 52px !important; margin: 0 !important; padding: 6px 10px !important; height: auto !important; min-height: 0 !important; font-size: 13px !important; }
.nt-sl-b { min-width: 90px; }
/* v11.5.1 職業裝備標籤 */
.g11-cls { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 3px; font-size: 11px; font-weight: 400; line-height: 16px; vertical-align: middle; border: 1px solid; }
.g11-cls.ok { color: #86efac; border-color: #166534; background: rgba(22, 101, 52, .25); }
.g11-cls.no { color: #fca5a5; border-color: #7f1d1d; background: rgba(127, 29, 29, .25); }
/* v11.7 野外領地戰 */
#t11-hud { position: fixed; left: 50%; top: calc(var(--safe-t, 0px) + 74px); transform: translateX(-50%); z-index: 35; display: flex; gap: 10px; align-items: center; padding: 4px 14px; border-radius: 14px; border: 1px solid var(--tc, #a8864a); background: rgba(12, 8, 4, .82); color: #fde68a; font: 700 13px "Noto Serif TC", serif; letter-spacing: 1px; pointer-events: none; white-space: nowrap; max-width: 94vw; overflow: hidden; box-shadow: 0 0 12px color-mix(in srgb, var(--tc, #a8864a) 45%, transparent); }
#t11-hud b { color: var(--tc, #fde68a); }
#t11-hud span { color: #e7dcc3; font-weight: 400; font-size: 12px; }
#t11-hud em { font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 8px; background: rgba(34, 197, 94, .25); color: #86efac; }
#t11-hud em.foe { background: rgba(239, 68, 68, .25); color: #fca5a5; }
@media (max-width: 600px) { #t11-hud { font-size: 11px; gap: 6px; padding: 3px 10px; } #t11-hud span { font-size: 10px; } }
.t11-prov { margin: 10px 0 4px; }
.t11-prov h4 { margin: 0 0 4px; font: 700 14px "Noto Serif TC", serif; color: #e6c670; }
.t11-row { display: grid; grid-template-columns: 10px 1.4fr .8fr .9fr 1fr 1fr; gap: 6px; align-items: center; padding: 5px 8px; margin: 2px 0; border: 1px solid #3b3022; border-left: 3px solid var(--tc); border-radius: 4px; background: rgba(0, 0, 0, .3); font-size: 12.5px; color: #d6cbb2; }
.t11-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 6px var(--tc); }
.t11-row b { color: #f5e6c0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t11-row em { font-style: normal; color: #a39477; }
.t11-row .own { color: var(--tc); font-weight: 700; }
@media (max-width: 600px) { .t11-row { grid-template-columns: 8px 1.3fr .9fr .8fr; } .t11-row span:nth-of-type(n+2) { display: none; } }

/* v11.9 帳號共用倉庫 */
.r11 [data-keep=w11] .r11-irow, [data-keep=w11] .r11-irow { cursor: pointer; }
[data-keep=w11] .r11-irow.sel { background: rgba(120,90,30,.45); border-color: #d6b061; }
[data-keep=w11] .r11-bhead i { color: #fde68a; font-style: normal; }
/* v12 等級獎勵 */
.v12-lrs { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.v12-lr { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid #5b4a2c; border-radius: 4px; background: rgba(0,0,0,.4); }
.v12-lr > b { min-width: 52px; color: #e9cf8c; font-size: 15px; }
.v12-lr.can { border-color: #d6b061; background: rgba(120,90,30,.35); }
.v12-lr.done { opacity: .55; }
.v12-lr-g { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.v12-mo { display: inline-flex; align-items: center; gap: 6px; color: var(--tc); font-weight: 700; }
.v12-mo img { width: 34px; height: 34px; object-fit: contain; background: #0b0805; border: 1px solid var(--tc); border-radius: 4px; }
.v12-mo i { font-style: normal; font-size: 11px; padding: 1px 5px; border: 1px solid var(--tc); border-radius: 3px; }
.v12-pull { color: #fde68a; font-size: 13px; }
/* v12 神兵鍛造 / 特別煉金 */
.f11-odds:has(.o:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
.f11-odds:has(.o:only-child) { grid-template-columns: 1fr; max-width: 360px; }
.f11-odds .o[style*="--oc"] { border-color: var(--oc); }
.r11-igrid > .p6-empty { grid-column: 1 / -1; }
/* v12.1 倉庫彈窗 */
.w12-dlg { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.62); display: flex; align-items: center; justify-content: center; padding: 16px; }
.w12-box { width: min(420px, 100%); background: linear-gradient(180deg, #1d1710, #0e0b08); border: 1px solid #a8843f; border-radius: 8px; padding: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.7); color: #e7d6b2; }
.w12-h { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.w12-h img { width: 56px; height: 56px; object-fit: contain; background: #0b0805; border: 1px solid #5b4a2c; border-radius: 6px; }
.w12-h b { font-size: 16px; color: #fde68a; } .w12-h span { display: block; font-size: 13px; opacity: .8; margin-top: 4px; }
.w12-q { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.w12-q input { width: 96px; height: 38px; text-align: center; font-size: 18px; background: #0b0805; color: #fde68a; border: 1px solid #a8843f; border-radius: 4px; }
.w12-q .p6-btn { min-width: 42px; height: 38px; }
.w12-a { display: flex; gap: 10px; justify-content: flex-end; } .w12-a .big { flex: 1; }
.v12-sel { max-width: 180px; height: 34px; background: #0b0805; color: #fde68a; border: 1px solid #a8843f; border-radius: 4px; margin-right: 6px; }
/* v12.1 名將召喚結果：不再超出版面 / 與按鈕重疊 (原本垂直置中 + 可被壓縮，11 張卡片在手機上往上下溢出) */
.sh10 .sh-gacha { flex-shrink: 0; align-items: flex-start; align-content: flex-start; height: auto; min-height: 200px; overflow: visible; }
.sh10 .sh-pulls { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; width: 100%; }
.sh10 .sh-pull { width: auto; min-width: 0; }
.sh10 .sh-pull img { width: 100%; height: 76px; }
.sh10 .sh-gact { position: relative; z-index: 1; flex-shrink: 0; margin-top: 10px; }
@media (max-width: 520px) { .sh10 .sh-pulls { grid-template-columns: repeat(4, 1fr); gap: 6px; } .sh10 .sh-pull img { height: 62px; } .sh10 .sh-pull b { font-size: 11px; } }
/* v12.1 國家面板 */
.n12 { color: #e7d6b2; }
.n12-hero { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--nc); border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--nc) 22%, transparent), rgba(0,0,0,.35)); margin-bottom: 10px; }
.n12-hero img { width: 64px; height: 64px; object-fit: contain; } .n12-hero b { display: block; font-size: 22px; color: var(--nc); } .n12-hero span { display: block; font-size: 13px; margin-top: 3px; } .n12-hero .buff { color: #fde68a; }
.n12-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 10px; }
.n12-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid #5b4a2c; border-radius: 6px; background: rgba(0,0,0,.42); }
.n12-card .t { font-size: 12px; opacity: .8; } .n12-card b { font-size: 18px; color: #fde68a; } .n12-card .s { font-size: 12px; opacity: .85; min-height: 30px; } .n12-card .p6-btn { align-self: flex-start; margin-right: 6px; }
.n12-notice { padding: 8px 12px; border: 1px solid #d6b061; border-radius: 6px; background: rgba(120,90,30,.25); margin-bottom: 10px; } .n12-notice b { color: #fde68a; margin-right: 8px; }
.n12-rks, .n12-list, .n12-offs, .n12-decs, .n12-acts, .n12-rlist { display: flex; flex-direction: column; gap: 6px; }
.n12-rk, .n12-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid #5b4a2c; border-left: 4px solid var(--nc); border-radius: 4px; background: rgba(0,0,0,.4); font-size: 13px; }
.n12-rk.me { background: rgba(120,90,30,.3); } .n12-rk em { font: 900 16px Arial; color: #fde68a; min-width: 18px; } .n12-rk b, .n12-row b { color: var(--nc); min-width: 60px; }
.n12-row i { width: 10px; height: 10px; border-radius: 50%; background: var(--nc); } .n12-row em { font-style: normal; color: var(--nc); margin-left: auto; }
.n12-sums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; } .n12-sum { text-align: center; padding: 8px; border: 1px solid var(--nc); border-radius: 6px; background: rgba(0,0,0,.4); } .n12-sum b { display: block; font-size: 20px; color: var(--nc); } .n12-sum span { font-size: 12px; }
.n12-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid #5b4a2c; border-radius: 6px; background: rgba(0,0,0,.4); margin-bottom: 8px; } .n12-bar b { color: #fde68a; } .n12-bar .p6-btn { margin-left: auto; }
.n12-techs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.n12-tech { padding: 10px; border: 1px solid #5b4a2c; border-radius: 6px; background: rgba(0,0,0,.42); display: flex; flex-direction: column; gap: 5px; }
.n12-tech .h { display: flex; align-items: center; gap: 8px; } .n12-tech .h img { width: 34px; height: 34px; } .n12-tech .h b { color: #fde68a; } .n12-tech .h em { margin-left: auto; font-style: normal; font-size: 12px; color: #93c5fd; }
.n12-tech .fx { color: #fde68a; font-size: 12px; } .n12-tech .ds { font-size: 12px; opacity: .8; } .n12-tech .ft { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #93c5fd; }
.n12-war { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.n12-wcard { padding: 12px; border: 1px solid #7f1d1d; border-radius: 6px; background: linear-gradient(180deg, rgba(127,29,29,.3), rgba(0,0,0,.4)); display: flex; flex-direction: column; gap: 8px; } .n12-wcard b { color: #fca5a5; font-size: 16px; } .n12-wcard i { font-style: normal; color: #93c5fd; } .n12-wcard .a { display: flex; flex-wrap: wrap; gap: 6px; }
.n12-dec { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #5b4a2c; border-left: 4px solid var(--dc); border-radius: 4px; background: rgba(0,0,0,.4); } .n12-dec.on { background: rgba(120,90,30,.3); }
.n12-dec img { width: 44px; height: 44px; } .n12-dec .m { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 13px; } .n12-dec .m b { color: var(--dc); } .n12-dec .m small { opacity: .7; } .n12-dec .a { display: flex; gap: 6px; flex-wrap: wrap; }
.n12-ruler { padding: 12px 14px; border: 1px solid var(--nc); border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--nc) 25%, transparent), rgba(0,0,0,.4)); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 8px; }
.n12-ruler b { font-size: 20px; color: #fde68a; } .n12-ruler span { font-size: 16px; } .n12-ruler small { flex-basis: 100%; opacity: .8; }
.n12-me { padding: 8px 12px; border: 1px dashed #a8843f; border-radius: 6px; margin-bottom: 8px; font-size: 13px; } .n12-me b { color: #fde68a; }
.n12-off { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid #5b4a2c; border-radius: 4px; background: rgba(0,0,0,.4); }
.n12-off .l { display: flex; flex-direction: column; gap: 2px; font-size: 12px; } .n12-off .l b { color: #fde68a; font-size: 15px; } .n12-off .l small { opacity: .7; } .n12-off .l .fx { color: #86efac; }
.n12-off .h { display: flex; flex-wrap: wrap; gap: 4px; } .n12-off .h a { color: #fca5a5; cursor: pointer; margin-left: 4px; } .n12-off .dim { opacity: .5; font-size: 12px; }
.n12-off .ap { display: flex; gap: 4px; } .n12-off .ap input, .n12-act input { width: 120px; height: 32px; background: #0b0805; color: #fde68a; border: 1px solid #a8843f; border-radius: 4px; padding: 0 6px; }
.n12-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid #5b4a2c; border-radius: 4px; background: rgba(0,0,0,.4); font-size: 13px; } .n12-act b { color: #fde68a; min-width: 96px; } .n12-act input#n12-notice { flex: 1; min-width: 160px; width: auto; }
.n12-rhead, .n12-rrow { display: grid; grid-template-columns: 48px minmax(0, 1.4fr) minmax(0, 1fr) 60px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; align-items: center; padding: 7px 10px; font-size: 13px; }
.n12-rhead { color: #a8843f; border-bottom: 1px solid #5b4a2c; } .n12-rrow { border: 1px solid #3f3424; border-radius: 4px; background: rgba(0,0,0,.4); } .n12-rrow.me { background: rgba(120,90,30,.35); border-color: #d6b061; }
.n12-rrow b { color: #fde68a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .n12-rrow i { font-style: normal; } .n12-rrow em { font-style: normal; color: #fde68a; text-align: right; }
.n12-rally { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 8500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 32px); padding: 10px 14px; border: 1px solid #ef4444; border-radius: 6px; background: rgba(40,8,8,.94); color: #fde68a; box-shadow: 0 6px 24px rgba(0,0,0,.6); }
.n12-rally b { color: #fca5a5; } .n12-rally i { font-style: normal; color: #fff; }
@media (max-width: 560px) { .n12-off { grid-template-columns: 1fr; } .n12-rhead, .n12-rrow { grid-template-columns: 30px minmax(0, 1.4fr) minmax(0, 1fr) 40px minmax(0, 1fr) minmax(0, 1fr); font-size: 12px; } .n12-sums { grid-template-columns: repeat(2, 1fr); } }
/* v12.2：未學會的高級技能 */
.sk-cell.v12-lock img { filter: grayscale(1) brightness(.45) !important; }
.sk-cell.v12-lock::after { content: ''; width: 26px; height: 26px; background: url('../assets/img/ui9/lock_badge.webp') center / contain no-repeat; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 22px; text-shadow: 0 0 6px #000; pointer-events: none; }
.sk-cell.v12-lock b, .sk-cell.v12-lock em { display: none; }
.v12-lockbox { margin-top: 10px; padding: 12px; border: 1px dashed #7c6a48; border-radius: 6px; background: rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 8px; }
.v12-lockbox b { color: #fca5a5; font-size: 15px; } .v12-lockbox span { color: #cbbd9c; font-size: 13px; line-height: 1.5; } .v12-lockbox em { color: #8a7e66; font-style: normal; font-size: 13px; }
/* v12.2：自由配置快捷欄 */
body #quick-bar .q12 { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
body #quick-bar .q12-empty { display: flex !important; align-items: center; justify-content: center; border-style: dashed !important; opacity: .7; }
body #quick-bar .q12-empty .q12-plus { color: #8a7a5a; font-size: 20px; line-height: 1; }
body #quick-bar .q12-zero img { filter: grayscale(.8) brightness(.55); }
body #quick-bar .qb-slot .qb-k { position: absolute; left: 2px; top: 0; font-size: 8.5px; line-height: 11px; padding: 0 2px; background: rgba(0,0,0,.6); color: #f7d98a; border-radius: 2px; font-family: Arial, sans-serif; }
.q12-dlg { position: fixed; inset: 0; z-index: 9600; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.q12-box { width: min(560px, 100%); max-height: min(78vh, 620px); display: flex; flex-direction: column; background: linear-gradient(180deg, #221c14, #0d0b08); border: 1px solid #8a7348; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.7); color: #e8dcc0; margin-bottom: 70px; }
.q12-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 44px 10px 14px; border-bottom: 1px solid #3d3324; position: relative; }
.q12-h b { color: #f3dca0; font-size: 16px; } .q12-h span { color: #a99a7a; font-size: 13px; }
.q12-x { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #6d5d43; background: #1a1510; color: #e8dcc0; cursor: pointer; }
.q12-tabs { display: flex; gap: 6px; padding: 10px 14px 0; }
.q12-tabs button { flex: 1; padding: 8px; border: 1px solid #4a3e2c; background: #15110c; color: #b9aa88; border-radius: 4px; cursor: pointer; font-size: 14px; }
.q12-tabs button.on { background: linear-gradient(180deg, #5a4a2e, #2c2416); color: #f7e3a8; border-color: #b8944e; }
.q12-list { flex: 1; overflow-y: auto; padding: 10px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.q12-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid #3a3226; background: #0f0c09; border-radius: 6px; color: #d9cdb0; cursor: pointer; font-size: 12px; line-height: 1.3; text-align: center; }
.q12-opt img { width: 44px; height: 44px; border-radius: 4px; object-fit: contain; }
.q12-opt em { position: absolute; top: 4px; right: 4px; font-style: normal; font-size: 10px; color: #fde68a; background: rgba(0,0,0,.6); padding: 0 4px; border-radius: 3px; }
.q12-opt.on { border-color: #d9b46a; box-shadow: 0 0 8px rgba(217,180,106,.45); }
.q12-f { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding: 10px 14px 14px; border-top: 1px solid #3d3324; }
@media (max-width: 520px) { .q12-list { grid-template-columns: repeat(3, 1fr); } .q12-box { margin-bottom: 40px; } }
/* v12.2：戰寵 */
.pt12-stars { display: flex; gap: 3px; margin: 4px 0; } .pt12-stars i { font-style: normal; color: #3a3226; font-size: 14px; } .pt12-stars i.on { color: var(--c); text-shadow: 0 0 6px var(--c); }
.pt12-exp { position: relative; height: 16px; background: #0b0907; border: 1px solid #4a3e2c; border-radius: 3px; overflow: hidden; margin: 4px 0 8px; }
.pt12-exp div { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3b82f6, #93c5fd); }
.pt12-exp span { position: relative; display: block; text-align: center; font-size: 11px; line-height: 16px; color: #fff; text-shadow: 0 1px 2px #000; }
.pt12-bt { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid #5a4a2e; border-radius: 6px; background: rgba(20,16,10,.7); }
.pt12-bt b { color: #f3dca0; font-size: 14px; } .pt12-bt span { color: #cbbd9c; font-size: 12.5px; line-height: 1.5; } .pt12-bt .dim { color: #8a7e66; }
.pt12-ladder { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 8px; font-size: 12px; }
.pt12-ladder span { padding: 3px 7px; border: 1px solid #3a3226; border-radius: 4px; color: #7a6e58; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.pt12-ladder span small { font-size: 10px; } .pt12-ladder span.done { color: var(--c); border-color: #4a3e2c; opacity: .75; }
.pt12-ladder span.cur { color: var(--c); border-color: var(--c); box-shadow: 0 0 8px var(--c); } .pt12-ladder i { color: #5a4e3a; font-style: normal; }
/* v12.2：攻城 / 領地提示列淡出 */
#v11-siege, #t11-hud { transition: opacity .9s ease, transform .9s ease; }
#v11-siege.f12-hide, #t11-hud.f12-hide { opacity: 0 !important; pointer-events: none !important; }
/* v12.2：首領日程分頁 */
.b12-tabs { display: flex; gap: 6px; margin: 8px 0; } .b12-tabs button { flex: 1; padding: 8px; border: 1px solid #4a3e2c; background: #15110c; color: #b9aa88; border-radius: 4px; cursor: pointer; font-size: 13px; }
.b12-tabs button.on { background: linear-gradient(180deg, #5a4a2e, #2c2416); color: #f7e3a8; border-color: #b8944e; }
/* v12.2：變身合成 */
.sy12 { display: flex; flex-direction: column; gap: 10px; }
.sy12-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sy12-tabs button { flex: 1 1 80px; display: flex; flex-direction: column; align-items: center; padding: 7px 4px; border: 1px solid #3a3226; background: #100d09; color: var(--tc); border-radius: 4px; cursor: pointer; font-weight: 700; font-size: 13px; }
.sy12-tabs button small { font-weight: 400; color: #a39477; font-size: 11px; } .sy12-tabs button.on { border-color: var(--tc); box-shadow: 0 0 10px color-mix(in srgb, var(--tc) 45%, transparent) inset; background: #1d1810; }
.sy12-stage { position: relative; min-height: 210px !important; overflow: hidden; }
.sy12-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sy12-slots { display: grid; grid-template-columns: repeat(4, 92px); gap: 8px; }
.sy12-slot { width: 92px; height: 128px; border: 1px dashed var(--tc, #6d5d43); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--tc); background: rgba(0,0,0,.35); padding: 0; font-size: 12px; }
.sy12-slot.full { border: none; background: none; cursor: pointer; } .sy12-slot.q b { font-size: 40px; text-shadow: 0 0 14px var(--tc); }
.sy12-arrow { font-size: 26px; color: #d9b46a; }
.sy12-c { position: relative; } .sy12-c em { position: absolute; top: 3px; right: 3px; font-style: normal; font-size: 11px; font-weight: 900; color: #fff; background: rgba(0,0,0,.7); border-radius: 8px; padding: 0 6px; }
.sy12-c.fuse { animation: sy12fuse 1.1s ease-in forwards; }
@keyframes sy12fuse { 0% { transform: none; } 70% { transform: scale(.6) translateY(10px); filter: brightness(2); } 100% { transform: scale(.2); opacity: 0; filter: brightness(4); } }
.sy12-flash { position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,240,190,.85), transparent 60%); animation: sy12flash 1.1s ease-in forwards; pointer-events: none; }
@keyframes sy12flash { 0%, 60% { opacity: 0; } 85% { opacity: 1; } 100% { opacity: .2; } }
.sy12-res { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sy12-rh { text-align: center; } .sy12-rh b { display: block; font-size: 20px; color: #fde68a; } .sy12-res.fail .sy12-rh b { color: #fca5a5; } .sy12-rh span { color: #cbbd9c; font-size: 13px; }
.sy12-c.win { animation: sy12win .7s ease-out; box-shadow: 0 0 22px var(--tc); transform: scale(1.12); } .sy12-c.back { filter: grayscale(.4); }
@keyframes sy12win { 0% { transform: scale(.3) rotateY(90deg); opacity: 0; } 100% { transform: scale(1.12); opacity: 1; } }
.sy12-info { text-align: center; color: #cbbd9c; font-size: 13px; line-height: 1.6; }
.sy12-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.sy12-pick { padding: 0; border: none; background: none; cursor: pointer; } .sy12-pick .sh-pull { width: 100%; } .sy12-pick.dim { opacity: .4; }
@media (max-width: 520px) { .sy12-slots { grid-template-columns: repeat(4, 1fr); width: 100%; } .sy12-slot { width: auto; height: 110px; } .sy12-slots .sh-pull { width: auto; } .sy12-slots .sh-pull img { height: 60px; } .sy12-arrow { transform: rotate(90deg); } .sy12-grid { grid-template-columns: repeat(4, 1fr); } }
.pet12 .show-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.pet12 .show-list .pt12-ladder { flex-direction: row; }
.pet12 .show-list .mo-grid { flex: none; }
/* v12.2：國家面板 天堂W 風格 (比照公會版面) */
.n12 .nw-hero { position: relative; border-color: color-mix(in srgb, var(--nc, #a8864a) 60%, #3a3226); background: radial-gradient(ellipse at 8% 50%, color-mix(in srgb, var(--nc, #d9b46a) 28%, transparent), transparent 60%), linear-gradient(180deg, rgba(30,24,16,.85), rgba(8,7,5,.9)); }
.n12 .nw-hero.sm { align-items: center; } .n12 .nw-hero.sm > img { width: 56px; height: 56px; }
.n12 .nw-hero.war { --nc: #b91c1c; }
.nw-emb { position: relative; width: 92px; height: 92px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--nc) 35%, #000), #050403 70%); border: 2px solid #8a7348; box-shadow: 0 0 18px color-mix(in srgb, var(--nc) 45%, transparent), inset 0 0 12px #000; }
.nw-emb img { width: 64px !important; height: 64px !important; object-fit: contain; }
.nw-hero b { font-size: 22px; color: #f3dca0; letter-spacing: 3px; } .nw-hero b b, .nw-hero span b, .nw-hero small b { font-size: inherit; letter-spacing: 0; color: #fde68a; }
.nw-ruler { font-size: 15px !important; color: #f5ead0 !important; } .nw-ruler em { font-style: normal; color: #1a1206; background: linear-gradient(180deg, #f7e3a8, #b8944e); padding: 1px 8px; border-radius: 3px; margin-right: 8px; font-weight: 900; }
.nw-buff { color: #fbbf24 !important; }
.nw-rankbadge { flex-shrink: 0; width: 76px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid #b8944e; border-radius: 50%; background: radial-gradient(circle, #3a2c16, #0b0906); box-shadow: 0 0 14px rgba(217,180,106,.35); }
.nw-rankbadge small { font-size: 11px; color: #c9bc9f; } .nw-rankbadge b { font-size: 30px !important; line-height: 1; color: #fde68a; letter-spacing: 0 !important; }
.nw-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.nw-kpi { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--c-line2, #4a3e2c); background: linear-gradient(180deg, rgba(44,36,24,.92), rgba(12,10,8,.95)); box-shadow: inset 0 1px 0 rgba(255,230,180,.06), inset 0 0 10px rgba(0,0,0,.6); border-radius: 3px; min-width: 0; }
.nw-kpi img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 1px 2px #000); }
.nw-kpi > div { display: flex; flex-direction: column; min-width: 0; } .nw-kpi span { font-size: 11.5px; color: #a99a7a; } .nw-kpi b { font-size: 16px; color: #fde68a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nw-kpi small { font-size: 10.5px; color: #8a7e66; }
.nw-sum { border-color: color-mix(in srgb, var(--nc) 55%, #3a3226); } .nw-sum b { font-size: 22px; color: var(--nc); }
.nw-notice { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin-bottom: 10px; border: 1px solid #b8944e; background: linear-gradient(90deg, rgba(120,90,30,.35), rgba(10,8,6,.6)); }
.nw-notice img { width: 36px; height: 36px; } .nw-notice b { display: block; color: #fde68a; font-size: 14px; } .nw-notice span { color: #f5ead0; font-size: 13px; }
.nw-h { margin: 14px 0 8px; padding-left: 10px; border-left: 3px solid #b8944e; color: #f3dca0; font-size: 15px; letter-spacing: 2px; }
.nw-card .nw-big { font-size: 20px; font-weight: 900; color: #fde68a; text-align: center; margin: 2px 0 6px; letter-spacing: 1px; }
.nw-card .p6-btnrow, .nw-nat .p6-btnrow, .nw-city .p6-btnrow, .nw-tech .p6-btnrow, .nw-dec .p6-btnrow, .nw-off .p6-btnrow { justify-content: center; flex-wrap: wrap; }
.nw-nat.on, .nw-city.on, .nw-off.on, .nw-dec.on { box-shadow: inset 0 0 22px color-mix(in srgb, var(--nc, #d9b46a) 30%, transparent); }
.nw-natb, .nw-cityb, .nw-techb { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nw-natb img, .nw-cityb img, .nw-techb img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 3px #000); }
.nw-natb > div, .nw-cityb > div, .nw-techb > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nw-natb b { font-size: 18px; color: var(--nc); } .nw-natb small { color: #a99a7a; font-size: 11.5px; }
.nw-bar { height: 6px; background: #0b0907; border: 1px solid #3a3226; } .nw-bar i { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--nc) 50%, #000), var(--nc)); }
.nw-natk { display: flex; justify-content: space-around; font-size: 12px; color: #a99a7a; } .nw-natk b { color: #f5ead0; }
.nw-natr { text-align: center; min-height: 0 !important; margin-top: 6px !important; color: #fbbf24 !important; }
.nw-grid4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.nw-cityb span { font-size: 12px; color: #a99a7a; } .nw-cityb b { font-size: 16px; }
.nw-techb b { font-size: 18px; color: #fde68a; } .nw-techb b small { font-size: 12px; color: #8a7e66; }
.nw-pips { display: flex; flex-wrap: wrap; gap: 3px; } .nw-pips i { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid #6d5d43; background: #0b0907; } .nw-pips i.on { background: linear-gradient(135deg, #fff3c4, #d9b46a); border-color: #f3dca0; box-shadow: 0 0 4px #d9b46a; }
.nw-tech.max { box-shadow: inset 0 0 22px rgba(217,180,106,.22); }
.nw-cost { text-align: center; font-size: 12px; color: #a99a7a; margin: 4px 0 8px; } .nw-cost b { color: #fde68a; }
.nw-art { display: flex; justify-content: center; margin: 2px 0 8px; } .nw-art img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 6px #000); }
.nw-dec { border-top: 2px solid var(--dc, #b8944e); }
.nw-holders { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; min-height: 28px; margin-bottom: 6px; } .nw-holders a { color: #fca5a5; cursor: pointer; margin-left: 4px; } .nw-holders .dim { color: #6d6252; font-size: 12px; } .nw-holders small { color: #8a7e66; font-size: 11px; margin-left: 4px; }
.nw-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.nw-form input { flex: 1 1 110px; min-width: 0; height: 34px; padding: 0 8px; background: #0b0907; border: 1px solid #5b4a2c; color: #f5ead0; border-radius: 3px; font-size: 13px; }
.nw-form span { color: #a99a7a; font-size: 12px; }
@media (max-width: 900px) { .nw-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nw-emb { width: 70px; height: 70px; } .nw-emb img { width: 48px !important; height: 48px !important; } .nw-rankbadge { width: 58px; height: 58px; } .nw-rankbadge b { font-size: 22px !important; } .nw-hero b { font-size: 18px; } .nw-grid4 { grid-template-columns: 1fr 1fr; } }

.gd-hero > .nw-emb { flex: 0 0 92px; } @media (max-width: 560px) { .gd-hero > .nw-emb { flex-basis: 70px; } }
.nw-pips { flex-direction: row !important; }
.gd-hero > .nw-rankbadge { flex: 0 0 76px; } @media (max-width: 560px) { .gd-hero > .nw-rankbadge { flex-basis: 58px; } }
.pt12-btn { margin-top: 6px; align-self: center; min-width: 200px; } .pet12 .ss-act { flex-wrap: wrap; overflow: visible; }
/* v12.3：領地面板 天堂W 風格 */
.nw-kpis.rw4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rw-me { flex-direction: column; gap: 1px; } .rw-me small { font-size: 10.5px !important; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rw-me b { font-size: 20px !important; }
.n12 .nw-hero .r11-sl { display: block; font-size: 12.5px; color: #c9bc9f; } .n12 .nw-hero .r11-sl b { font-size: 13px !important; color: #f3dca0; letter-spacing: 1px; margin-right: 6px; } .n12 .nw-hero .r11-sl i { color: #fca5a5; font-style: normal; font-weight: 700; }
.rw-castle.live, .nw-city.live { box-shadow: inset 0 0 26px rgba(220,38,38,.35); }
.rw-live { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #ef4444, #7f1d1d); padding: 2px 8px; border-radius: 3px; animation: rwPulse 1.4s ease-in-out infinite; }
@keyframes rwPulse { 50% { opacity: .55; } }
.rw-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 12.5px; margin: 4px 0 8px; } .rw-kv span { color: #a99a7a; } .rw-kv b { color: #f5ead0; text-align: right; font-weight: 700; }
.rw-kv b img { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.rw-bars { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; font-size: 12px; color: #a99a7a; margin-bottom: 8px; }
.rw-bars .r11-bar { margin: 0; }
.rw-dec { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; min-height: 24px; margin-bottom: 8px; }
.rw-c { text-align: center; min-height: 0 !important; }
.rw-bankbox { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding: 8px 12px; border: 1px solid #8a7348; border-radius: 4px; background: rgba(0,0,0,.35); }
.rw-bankbox small { font-size: 11px; color: #a99a7a; } .rw-bankbox b { font-size: 15px !important; letter-spacing: 0 !important; } .rw-bankbox b img { width: 16px; height: 16px; vertical-align: -3px; margin-right: 3px; }
.rw-warn { border-color: #b91c1c; background: linear-gradient(90deg, rgba(127,29,29,.45), rgba(10,8,6,.6)); }
.rw-manage .nw-kpis { margin-bottom: 8px; } .rw-manage .nw-kpi { justify-content: center; text-align: center; } .rw-manage .nw-form { margin-bottom: 6px; }
.rw-mgrid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.tw-prov .tw-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid rgba(90,74,46,.4); }
.tw-prov .tw-row:last-child { border-bottom: none; } .tw-prov .tw-row.me { background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 18%, transparent), transparent); }
.tw-row img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 1px 2px #000); }
.tw-m { flex: 1; min-width: 0; } .tw-m b { font-size: 13px; color: #f5ead0; } .tw-m em { font-style: normal; font-size: 11px; color: #a99a7a; }
.tw-hp { position: relative; height: 13px; margin-top: 3px; background: #0b0907; border: 1px solid #3a3226; border-radius: 2px; overflow: hidden; }
.tw-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 45%, #000), var(--tc)); }
.tw-hp span { position: relative; display: block; font-size: 10px; line-height: 13px; text-align: center; color: #fff; text-shadow: 0 1px 2px #000; }
.tw-r { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; } .tw-r span { font-size: 12px; font-weight: 700; color: var(--tc); } .tw-r small { font-size: 10.5px; color: #8a7e66; }
.tw-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 560px) { .nw-kpis.rw4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rw-bankbox { align-items: flex-start; } .n12 .nw-hero.sm { flex-wrap: wrap; } .rw-grid, .tw-grid, .rw-mgrid { grid-template-columns: 1fr; } }
.gd-hero > .rw-bankbox { flex: 0 0 auto; }
/* v12.5 遊戲內確認 / 輸入視窗、交易所上架視窗 */
.u125-dlg { z-index: 9600; }
.u125-t { font-size: 17px; font-weight: 700; color: #fde68a; margin-bottom: 8px; }
.u125-m { font-size: 14px; line-height: 1.6; margin-bottom: 14px; max-height: 50vh; overflow: auto; word-break: break-word; }
.u125-in { width: 100%; box-sizing: border-box; height: 40px; margin-bottom: 14px; padding: 0 10px; font-size: 16px; background: #0b0805; color: #fde68a; border: 1px solid #a8843f; border-radius: 4px; }
.u125-ok.red { background: linear-gradient(180deg, #b91c1c, #7f1d1d); border-color: #f87171; color: #fff; }
.r12-il { font-size: 13px; opacity: .85; margin: 4px 0 6px; }
.r12-itot { text-align: center; margin: 4px 0 8px; font-size: 14px; } .r12-itot b { color: #fde68a; }
#r12-idlg .r11-avail { margin-bottom: 12px; font-size: 12px; }
.b125-ic { width: 20px; height: 20px; object-fit: contain; vertical-align: -4px; margin-right: 4px; }
.b125-row .a11-o .p6-btn { min-width: 44px; padding: 0 6px; }
/* v12.5 服務條款 */
.t125-dlg { position: fixed; inset: 0; z-index: 99000; background: rgba(0,0,0,.78); display: flex; align-items: center; justify-content: center; padding: 12px; }
.t125-box { width: min(680px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); display: flex; flex-direction: column; background: linear-gradient(180deg, #1d1710, #0e0b08); border: 1px solid #a8843f; border-radius: 8px; padding: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.8); color: #e7d6b2; box-sizing: border-box; }
.t125-t { font-size: 20px; font-weight: 900; color: #fde68a; text-align: center; letter-spacing: 4px; }
.t125-sub { font-size: 13px; text-align: center; opacity: .85; margin: 6px 0 10px; }
.t125-body { flex: 1 1 auto; min-height: 160px; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #0b0805; border: 1px solid #5b4a2c; border-radius: 6px; padding: 12px 14px; font-size: 14px; line-height: 1.75; }
.t125-body h4 { color: #fbbf24; font-size: 15px; margin: 14px 0 4px; } .t125-body p { margin: 0 0 6px; text-align: justify; }
.t125-head { text-align: center; padding-bottom: 8px; border-bottom: 1px solid #3b2f1c; } .t125-head b { display: block; font-size: 17px; color: #fde68a; } .t125-head span { font-size: 12px; opacity: .7; }
.t125-end { text-align: center; opacity: .55; margin-top: 12px !important; }
.t125-hint { font-size: 12px; text-align: center; color: #fbbf24; margin: 6px 0 0; } .t125-hint.done { visibility: hidden; }
.t125-ck { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 4px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.t125-ck input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: #d4a73c; }
.t125-msg { min-height: 18px; font-size: 13px; color: #fca5a5; text-align: center; }
.t125-a { display: flex; gap: 10px; margin-top: 6px; } .t125-a .big { flex: 1; } .t125-a button:disabled { opacity: .45; filter: grayscale(.6); }
.nt-tos { background: none; border: 0; color: #c9b27a; text-decoration: underline; font-size: 13px; margin-top: 8px; cursor: pointer; }
/* v12.6 鍛造 / 煉金：手機改為整頁捲動 (原本兩個區塊各自被壓縮成小捲動框，不好操作) */
@media (max-width: 760px) {
  .f11-wrap, .f11-wrap.alch { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; grid-auto-rows: max-content; align-content: start; padding: 10px 8px 24px; }
  .f11-wrap > section { min-height: auto; overflow: visible; flex-shrink: 0; }
  .f11-wrap .r11-igrid { max-height: none; overflow: visible; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .f11-wrap .r11-icell { min-height: 108px; padding: 10px 6px; font-size: 13px; justify-content: center; }
  .f11-wrap .r11-icell img { width: 52px; height: 52px; }
  .f11-wrap .r11-icell em { font-size: 13px; }
  .f11-wrap .f11-fire { min-height: 50px; font-size: 18px; width: 100%; max-width: 420px; }
  .f11-wrap .f11-cost { font-size: 15px; gap: 12px; }
  .f11-wrap .f11-odds .o { padding: 10px 4px; }
  .f11-wrap .f11-scroll { max-height: none; }
}
/* v12.6 道具交易：天命幣 / 元寶 */
.r12-cur .p6-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.r12-cur .p6-btn img { width: 16px; height: 16px; }
.r12-curtag { display: inline-block; margin-top: 2px; padding: 0 6px; border-radius: 8px; font-size: 11px; background: rgba(168,132,63,.25); color: #e7d6b2; }
.r12-curtag.yb { background: rgba(220,38,38,.25); color: #fca5a5; }
/* v12.6 元寶交易所：訂單簿 + 限價 / 市價 */
.r12-trade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; align-items: start; }
.r12-forms { display: flex; flex-direction: column; gap: 10px; }
.r12-forms .r11-form { margin: 0; }
.r12-ob { font-variant-numeric: tabular-nums; }
.r12-bk { position: relative; display: grid; grid-template-columns: 1.2fr 1fr .6fr 1fr; gap: 4px; padding: 5px 8px; font-size: 13px; cursor: pointer; border-radius: 3px; overflow: hidden; }
.r12-bk span { position: relative; text-align: right; } .r12-bk span:first-child { text-align: left; font-weight: 700; }
.r12-bk.h { cursor: default; font-size: 12px; opacity: .7; border-bottom: 1px solid rgba(168,132,63,.35); }
.r12-bk i { position: absolute; right: 0; top: 0; bottom: 0; }
.r12-bk.ask span:first-child { color: #f87171; } .r12-bk.ask i { background: rgba(248,113,113,.14); }
.r12-bk.bid span:first-child { color: #4ade80; } .r12-bk.bid i { background: rgba(74,222,128,.14); }
.r12-bk:not(.h):hover, .r12-bk:not(.h):active { background: rgba(253,230,138,.08); }
.r12-spread { display: flex; justify-content: space-between; align-items: center; padding: 8px; margin: 4px 0; border-top: 1px solid rgba(168,132,63,.3); border-bottom: 1px solid rgba(168,132,63,.3); font-size: 14px; }
.r12-spread b { color: #fde68a; font-size: 17px; } .r12-spread span { font-size: 12px; opacity: .75; }
.r12-obsum { display: flex; justify-content: space-between; font-size: 12px; margin: 6px 0 2px; } .r12-obsum .dn { color: #f87171; } .r12-obsum .up { color: #4ade80; }
.r12-type { display: flex; gap: 6px; margin-bottom: 8px; } .r12-type .p6-btn { flex: 1; }
.r12-mo { display: grid; grid-template-columns: 30px 1fr 1fr auto; gap: 6px; align-items: center; padding: 4px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.r12-mo .up { color: #4ade80; font-weight: 700; } .r12-mo .dn { color: #f87171; font-weight: 700; }
@media (max-width: 760px) { .r12-trade { grid-template-columns: 1fr; } .r12-bk { font-size: 14px; padding: 7px 8px; } }
/* v12.6 郵件 */
.m126 { display: flex; flex-direction: column; gap: 8px; padding: 10px; box-sizing: border-box; overflow-y: auto; }
.m126-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .m126-bar span { flex: 1; font-size: 13px; opacity: .85; }
.m126-wrap { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(0, 1.4fr); gap: 10px; min-height: 0; flex: 1; }
.m126-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: 62vh; padding: 8px; }
.m126-row { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 9px 10px; background: rgba(0,0,0,.4); border: 1px solid #4d4232; border-radius: 4px; color: #e7d6b2; cursor: pointer; font: inherit; }
.m126-row.sel { border-color: #fbbf24; background: rgba(90,66,24,.45); } .m126-row.unread b { color: #fde68a; }
.m126-k { flex: 0 0 auto; font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 9px; border: 1px solid var(--kc); color: var(--kc); }
.m126-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .m126-rt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .m126-rt span { font-size: 11.5px; opacity: .7; }
.m126-gift { font-style: normal; font-size: 11px; color: #1a1208; background: #fbbf24; border-radius: 3px; padding: 1px 5px; } .m126-done { font-style: normal; font-size: 11px; opacity: .55; }
.m126-dot { position: absolute; left: 3px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.m126-detail { display: flex; flex-direction: column; gap: 10px; padding: 12px; min-height: 240px; }
.m126-detail.empty { justify-content: center; }
.m126-dh { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid rgba(168,132,63,.35); padding-bottom: 8px; } .m126-dh img { width: 40px; height: 40px; }
.m126-dh b { display: block; font-size: 16px; color: #fde68a; } .m126-dh span { font-size: 12px; opacity: .75; }
.m126-body { font-size: 14px; line-height: 1.7; white-space: normal; word-break: break-word; }
.m126-atts { display: flex; flex-wrap: wrap; gap: 8px; }
.m126-att { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 82px; padding: 8px 4px; background: rgba(0,0,0,.45); border: 1px solid #a8843f; border-radius: 4px; font-size: 12px; text-align: center; }
.m126-att img { width: 38px; height: 38px; object-fit: contain; } .m126-att em { font-style: normal; font-weight: 700; color: #fde68a; font-size: 12.5px; }
.m126-att.big { width: 96px; } .m126-att.big img { width: 46px; height: 46px; }
.m126-back { display: none; margin-top: 8px; }
@media (max-width: 760px) {
  .m126-wrap { grid-template-columns: 1fr; }
  .m126.has-sel .m126-list { display: none; } .m126:not(.has-sel) .m126-detail { display: none; }
  .m126-back { display: inline-flex; } .m126-list { max-height: none; }
  .m126-row { padding: 12px 10px; } .m126-detail .p6-btn.big { min-height: 48px; flex: 1; }
}
/* v12.6 收藏 (天堂W 式) */
.c126 { padding: 10px; box-sizing: border-box; }
.c126-bar { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.c126-grps, .c126-sts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.c126-sts input { flex: 1; min-width: 140px; height: 34px; padding: 0 10px; background: #0b0805; color: #e7d6b2; border: 1px solid #5b4a2c; border-radius: 4px; }
.c126-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.c126-set { background: rgba(0,0,0,.42); border: 1px solid #4d4232; border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.c126-set.can { border-color: #d4a73c; box-shadow: 0 0 10px rgba(212,167,60,.25) inset; }
.c126-set.done { border-color: #4ade80; background: rgba(20,60,30,.25); }
.c126-sh { display: flex; align-items: center; gap: 8px; } .c126-sh b { flex: 1; font-size: 15px; color: #fde68a; }
.c126-prog { font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; }
.c126-done { font-size: 12px; color: #052e16; background: #4ade80; border-radius: 3px; padding: 1px 6px; font-weight: 700; }
.c126-fx { display: flex; flex-wrap: wrap; gap: 4px; } .c126-fx i { font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 9px; border: 1px solid #6b5a3a; color: #c9b58a; }
.c126-fx i.on { border-color: #4ade80; color: #86efac; }
.c126-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.c126-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px 6px; background: rgba(0,0,0,.5); border: 1px solid #3d3324; border-radius: 4px; color: #a39477; cursor: pointer; font: inherit; text-align: center; }
.c126-slot img { width: 44px; height: 44px; object-fit: contain; filter: grayscale(.85) brightness(.55); border-radius: 3px; }
.c126-slot b { font-size: 11.5px; line-height: 1.3; font-weight: 600; word-break: break-all; } .c126-slot span { font-size: 11px; opacity: .8; }
.c126-slot.ok { border-color: var(--sc); color: #e7d6b2; } .c126-slot.ok img { filter: none; }
.c126-slot.ok em { position: absolute; top: 2px; right: 2px; font-style: normal; font-size: 10px; background: #d4a73c; color: #1a1208; border-radius: 3px; padding: 0 4px; }
.c126-slot.got { border-color: var(--sc); background: rgba(90,66,24,.35); color: #fde68a; cursor: default; } .c126-slot.got img { filter: none; box-shadow: 0 0 8px var(--sc); }
.c126-slot:disabled { opacity: 1; }
.c126-eff { display: flex; flex-direction: column; gap: 10px; }
.c126-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .c126-sum > div { background: rgba(0,0,0,.4); border: 1px solid #5b4a2c; border-radius: 6px; padding: 10px; text-align: center; }
.c126-sum b { font-size: 26px; color: #fde68a; } .c126-sum span { display: block; font-size: 12px; opacity: .8; }
.c126-efs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.c126-ef { display: flex; justify-content: space-between; padding: 8px 10px; background: rgba(0,0,0,.35); border: 1px solid #3d3324; border-radius: 4px; font-size: 13px; opacity: .6; }
.c126-ef.on { opacity: 1; border-color: #4ade80; } .c126-ef b { color: #86efac; }
@media (max-width: 760px) { .c126-list { grid-template-columns: 1fr; } .c126-slots { grid-template-columns: repeat(3, 1fr); } .c126-slot { min-height: 96px; } }
/* v12.7 目標鎖定：取消鈕 + 狀態 */
#target-lock-hud { pointer-events: auto; }
#t127-x { position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #a8843f; background: #1d1710; color: #fde68a; font-size: 15px; line-height: 1; cursor: pointer; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,.6); touch-action: manipulation; }
#t127-x:hover { background: #3b2a14; }
#t127-st { position: absolute; left: 8px; bottom: -18px; font-size: 11px; color: #fde68a; text-shadow: 0 1px 2px #000; white-space: nowrap; }
#t127-st.atk { color: #fca5a5; }
/* v12.7 野外領地分頁滑動效能 */
.tw-grid .tw-prov { content-visibility: auto; contain-intrinsic-size: auto 260px; contain: layout paint; }
.tw-row img { filter: none; }
.p6-scroll { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* v12.7 天下勢力圖 */
.r127-wrap { margin-bottom: 12px; }
.r127-mapbox { position: relative; width: 100%; max-width: 760px; margin: 0 auto; border: 1px solid #a8843f; box-shadow: 0 0 0 3px rgba(0,0,0,.6), 0 6px 18px rgba(0,0,0,.6); background: #0a1218; }
.r127-mapbox canvas { display: block; width: 100%; height: auto; cursor: pointer; touch-action: manipulation; }
.r127-tip { text-align: center; font-size: 13px; margin: 8px 0; min-height: 36px; line-height: 1.5; } .r127-tip b { color: #fde68a; } .r127-tip i { font-style: normal; font-weight: 700; }
.r127-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.r127-sum > div { border-left: 4px solid var(--nc); background: rgba(0,0,0,.4); padding: 6px 8px; display: flex; flex-direction: column; }
.r127-sum b { font-size: 14px; } .r127-sum span { font-size: 11.5px; opacity: .85; }
@media (max-width: 560px) { .r127-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* v12.8 城庫 */
.r128-vault.wait{box-shadow:0 0 0 1px rgba(251,191,36,.55),0 0 18px rgba(251,191,36,.18)}
.r128-badge{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:9px;background:#b45309;color:#fff7ed;font-size:12px;font-style:normal;vertical-align:middle}
.r128-vault .nw-form{flex-wrap:wrap;gap:6px}
/* v12.8 每月簽到 / 戰令 */
.m128-head{display:flex;align-items:center;gap:12px;padding:10px 12px;margin:0 0 10px;border:1px solid rgba(214,170,80,.35);border-radius:10px;background:linear-gradient(180deg,rgba(60,38,18,.6),rgba(20,14,10,.6))}
.m128-head>img{width:54px;height:54px;flex:none}
.m128-head>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.m128-head b{color:#fde68a;font-size:16px}.m128-head span{color:#cbbfa6;font-size:12px;line-height:1.5}
.m128-week{margin:0 0 10px}.m128-week h5{margin:0 0 6px;color:#e7d3a3;font-size:13px;letter-spacing:2px}
.m128-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.m128-cell{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 3px 7px;border:1px solid rgba(160,130,80,.35);border-radius:8px;background:rgba(18,14,10,.65);text-align:center;min-width:0}
.m128-cell span{font-size:10.5px;color:#a8977a;white-space:nowrap}
.m128-cell img{width:40px;height:40px;object-fit:contain}
.m128-cell b{font-size:11px;color:#efe2c4;line-height:1.3;word-break:break-all;font-weight:600}
.m128-cell.sp{border-color:rgba(251,191,36,.55);background:linear-gradient(180deg,rgba(80,50,14,.55),rgba(20,14,10,.7))}
.m128-cell.sun{border-color:rgba(248,113,113,.6);background:linear-gradient(180deg,rgba(90,20,20,.55),rgba(20,10,10,.7))}
.m128-cell.got{opacity:.5}.m128-cell.got em{position:absolute;top:30%;left:50%;transform:translate(-50%,-50%) rotate(-14deg);padding:1px 6px;border:2px solid #f87171;border-radius:4px;color:#fca5a5;font-style:normal;font-size:12px;font-weight:700;background:rgba(0,0,0,.5)}
.m128-cell.ready{box-shadow:0 0 0 2px #fbbf24,0 0 14px rgba(251,191,36,.55);animation:m128p 1.4s ease-in-out infinite}
@keyframes m128p{50%{box-shadow:0 0 0 2px #fde68a,0 0 22px rgba(251,191,36,.8)}}
@media (max-width:560px){.m128-grid{gap:4px}.m128-cell img{width:30px;height:30px}.m128-cell b{font-size:10px}.m128-cell span{font-size:9.5px}.m128-head{flex-wrap:wrap}}
.m128-pass.lock .sh-mc{filter:saturate(.55)}.m128-lock{color:#fbbf24;font-size:15px}
.m128-wd{margin:0 0 4px}.m128-wd i{font-style:normal;text-align:center;font-size:11px;color:#bfae8c;letter-spacing:1px}.m128-wd i.sat{color:#fbbf24}.m128-wd i.sun{color:#f87171}
/* v12.10：手機橫向 —— 搖桿、任務追蹤、右側按鈕避開瀏海 / 動態島 (viewport-fit=cover 後 env() 生效) */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  body #joystick-zone { left: max(14px, calc(env(safe-area-inset-left, 0px) + 4px)) !important; }
  body #quest-tracker { left: max(6px, env(safe-area-inset-left, 0px)) !important; }
  body #action-cluster, body #action-cluster.ac-simple { right: max(8px, env(safe-area-inset-right, 0px)) !important; }
}
/* v12.10：手機橫向 —— 快捷欄放在搖桿與右側按鈕之間、自動縮放格子避免被聊天框 / 搖桿蓋住；聊天框移到快捷欄上方 */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  :root { --qs: clamp(28px, calc((100vw - 330px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)) / 8), 38px); }
  body #quick-bar { right: calc(200px * var(--ac7) + 12px + env(safe-area-inset-right, 0px)) !important; left: auto !important; max-width: calc(100vw - 120px - 200px * var(--ac7) - 12px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); gap: 2px !important; padding: 3px !important; }
  body #chat-panel { left: calc(118px + env(safe-area-inset-left, 0px)) !important; width: min(32vw, 260px) !important; bottom: calc(var(--safe-b) + var(--qs) + 20px) !important; }
  body #chat-panel.open { width: min(44vw, 380px) !important; }
}

/* ============================================================ v12.11 */
/* ---- 登入排隊畫面 */
#q1211 { display: none; position: fixed; inset: 0; z-index: 99990; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, rgba(40, 28, 14, .9), rgba(0, 0, 0, .96)); }
#q1211.on { display: flex; }
.q11-box { width: min(400px, 92vw); padding: 24px 22px; text-align: center; color: #e7d6b2; border: 1px solid #7a5f33; border-radius: 6px; background: linear-gradient(180deg, rgba(24, 18, 14, .96), rgba(10, 8, 6, .98)); box-shadow: 0 0 40px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 230, 180, .05); }
.q11-t { font: 900 20px "Noto Serif TC", serif; color: #e6c670; letter-spacing: 3px; }
.q11-pos { margin: 14px 0 10px; display: flex; align-items: baseline; justify-content: center; gap: 8px; } .q11-pos b { font: 900 54px Georgia, serif; color: #fde68a; text-shadow: 0 0 18px rgba(253, 230, 138, .5); line-height: 1; } .q11-pos small { font-size: 13px; color: #b8a888; }
.q11-bar { position: relative; height: 10px; border-radius: 5px; background: #1c1610; overflow: hidden; border: 1px solid #3b3022; box-shadow: inset 0 1px 3px rgba(0,0,0,.8); }
.q11-bar i { display: block; height: 100%; background: linear-gradient(90deg, #92400e, #f59e0b 70%, #fde68a); box-shadow: 0 0 10px rgba(251,191,36,.6); border-radius: 5px; will-change: width; }
.q11-bar em { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 0 40%, rgba(255,255,255,.22) 50%, transparent 60% 100%); background-size: 220% 100%; animation: q11shine 1.8s linear infinite; pointer-events: none; }
@keyframes q11shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.q11-pct { margin-top: 4px; font-size: 11px; color: #b8a888; text-align: right; font-variant-numeric: tabular-nums; }
.q11-pos b, #q11Eta { font-variant-numeric: tabular-nums; }
.q11-box p { margin: 10px 0 0; font-size: 14px; } .q11-box p b { color: #fde68a; } .q11-box .q11-h { font-size: 12px; color: #9c8d70; line-height: 1.6; } .q11-box .v4-btn { margin-top: 14px; width: 100%; justify-content: center; }

/* ---- 金變 / 青變 全服公告 */
#ann1211 { display: none; position: fixed; left: 0; right: 0; top: 17%; z-index: 9000; pointer-events: none; justify-content: center; }
#ann1211.on { display: flex; animation: a11in 5.2s ease both; }
#ann1211 .a11-in { display: flex; align-items: center; gap: 12px; max-width: 92vw; padding: 9px 22px; font: 900 15px "Noto Serif TC", serif; letter-spacing: 1px; color: #fff3c4; border-top: 1px solid var(--ac); border-bottom: 1px solid var(--ac); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ac) 34%, #000) 18%, color-mix(in srgb, var(--ac) 34%, #000) 82%, transparent); text-shadow: 0 1px 4px #000, 0 0 12px var(--ac); }
#ann1211 .a11-in i { width: 26px; height: 2px; background: var(--ac); box-shadow: 0 0 10px var(--ac); }
#ann1211.gold { --ac: #fbbf24; } #ann1211.cyan { --ac: #2dd4bf; }
@keyframes a11in { 0% { opacity: 0; transform: scaleX(.3); } 8% { opacity: 1; transform: scaleX(1.04); } 12% { transform: scaleX(1); } 88% { opacity: 1; } 100% { opacity: 0; } }

/* ---- 名將召喚：固定大小的召喚台 (單抽與 10+1 抽同高) + 翻牌 */
.sh10 .sh-gacha.g11-stage { position: relative; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: center; height: 372px; min-height: 372px; max-height: 372px; padding: 10px 12px 8px; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, rgba(90, 50, 140, .28), rgba(0, 0, 0, .55) 72%), #07060a; }
.g11-circle { position: absolute; left: 50%; top: 50%; width: 330px; height: 330px; margin: -165px 0 0 -165px; border-radius: 50%; pointer-events: none; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(196, 160, 255, .0) 0 9deg, rgba(196, 160, 255, .16) 9deg 10deg), radial-gradient(circle, transparent 52%, rgba(196, 160, 255, .35) 53%, transparent 55%, transparent 68%, rgba(253, 230, 138, .3) 69%, transparent 71%);
  transform: rotateX(62deg); animation: g11spin 22s linear infinite; }
.g11-stage.busy .g11-circle { opacity: .95; animation-duration: 5s; filter: drop-shadow(0 0 14px rgba(196, 160, 255, .8)); }
@keyframes g11spin { to { transform: rotateX(62deg) rotate(360deg); } }
.g11-intro { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #cdbf9f; font-size: 13px; line-height: 1.6; } .g11-intro b { font: 900 22px "Noto Serif TC", serif; color: #e6c670; letter-spacing: 4px; }
.g11-cards { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(6, 88px); grid-auto-rows: 138px; gap: 10px; justify-content: center; align-content: center; }
.g11-stage.single .g11-cards { grid-template-columns: 150px; grid-auto-rows: 236px; }
.g11-foot { position: relative; z-index: 2; flex: 0 0 30px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: #e7d6b2; } .g11-foot b { color: #fde68a; font-size: 15px; }
.g11-card { position: relative; perspective: 700px; cursor: pointer; animation: g11deal .42s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i) * 70ms + 250ms); }
.g11-card.dealt { animation: none; }
@keyframes g11deal { 0% { opacity: 0; transform: translateY(-70px) scale(.5) rotate(-12deg); } 100% { opacity: 1; transform: none; } }
.g11-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, .8, .3, 1.15); }
.g11-card.on .g11-in { transform: rotateY(180deg); }
.g11-back, .g11-front { position: absolute; inset: 0; border-radius: 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.g11-back { display: flex; align-items: center; justify-content: center; border: 1px solid #8a6a32; background: repeating-linear-gradient(45deg, rgba(230, 198, 112, .07) 0 6px, transparent 6px 12px), radial-gradient(circle at 50% 50%, #2a2140, #0c0a14 75%); box-shadow: inset 0 0 0 3px #0c0a14, inset 0 0 0 4px rgba(230, 198, 112, .45); }
.g11-back em { font: 900 20px "Noto Serif TC", serif; font-style: normal; color: #e6c670; writing-mode: vertical-rl; letter-spacing: 6px; text-shadow: 0 0 10px rgba(230, 198, 112, .7); }
.g11-stage.single .g11-back em { font-size: 34px; }
.g11-card.hi:not(.on) .g11-back { border-color: var(--tc); box-shadow: inset 0 0 0 3px #0c0a14, inset 0 0 0 4px var(--tc), 0 0 14px var(--tc), inset 0 0 26px color-mix(in srgb, var(--tc) 55%, transparent); animation: g11hint 1.1s ease-in-out infinite; }
@keyframes g11hint { 50% { filter: brightness(1.5); } }
.g11-card.charge { animation: g11shake .09s linear infinite; z-index: 3; } .g11-card.charge .g11-back { filter: brightness(1.9); }
@keyframes g11shake { 0% { transform: translate(-2px, 1px) scale(1.06); } 50% { transform: translate(2px, -1px) scale(1.06); } 100% { transform: translate(-1px, -2px) scale(1.06); } }
.g11-front { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 5px; border: 1px solid var(--tc); background: radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--tc) 30%, #0a0908), #0a0908 78%); box-shadow: inset 0 0 18px color-mix(in srgb, var(--tc) 35%, transparent); }
.g11-front img { position: absolute; left: 4%; top: 4%; width: 92%; height: 70%; object-fit: contain; filter: drop-shadow(0 4px 6px #000); }
.g11-front b { position: relative; font-size: 12px; color: #f3e3bd; text-shadow: 0 1px 3px #000; white-space: nowrap; } .g11-front i { position: relative; font-style: normal; font-size: 11px; font-weight: 900; color: var(--tc); }
.g11-stage.single .g11-front b { font-size: 16px; } .g11-stage.single .g11-front i { font-size: 13px; }
.g11-card.on.hi { filter: drop-shadow(0 0 10px var(--tc)); }
.g11-card.on.t-au .g11-front, .g11-card.on.t-cy .g11-front { animation: g11gold 1.8s ease-in-out infinite; }
@keyframes g11gold { 50% { box-shadow: inset 0 0 30px color-mix(in srgb, var(--tc) 70%, transparent), 0 0 18px var(--tc); } }
.g11-beam { position: absolute; left: 50%; bottom: 50%; width: 46px; height: 0; margin-left: -23px; pointer-events: none; opacity: 0; border-radius: 23px 23px 0 0; background: linear-gradient(0deg, var(--tc), color-mix(in srgb, var(--tc) 40%, transparent) 60%, transparent); mix-blend-mode: screen; z-index: 4; }
.g11-card.burst .g11-beam { animation: g11beam .9s ease-out both; }
@keyframes g11beam { 0% { opacity: 0; height: 0; width: 10px; margin-left: -5px; } 18% { opacity: 1; height: 420px; width: 70px; margin-left: -35px; } 100% { opacity: 0; height: 420px; width: 8px; margin-left: -4px; } }
#g11-flash { display: none; position: fixed; inset: 0; z-index: 9500; pointer-events: none; align-items: center; justify-content: center; overflow: hidden; }
#g11-flash.on { display: flex; }
#g11-flash.t-p { background: radial-gradient(circle, rgba(192, 132, 252, .55), transparent 65%); animation: g11fl .52s ease-out both; }
#g11-flash.t-au { background: radial-gradient(circle, rgba(255, 244, 200, .92), rgba(251, 191, 36, .5) 35%, rgba(0, 0, 0, .55) 75%); animation: g11fl2 1.9s ease-out both; }
#g11-flash.t-cy { background: radial-gradient(circle, rgba(204, 251, 241, .8), rgba(45, 212, 191, .4) 40%, transparent 75%); animation: g11fl .6s ease-out both; }
@keyframes g11fl { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@keyframes g11fl2 { 0% { opacity: 0; } 8% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.g11-rays { position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(from 0deg, rgba(255, 236, 170, .0) 0 7deg, rgba(255, 236, 170, .5) 7deg 9deg); animation: g11rays 6s linear infinite; mix-blend-mode: screen; }
@keyframes g11rays { to { transform: rotate(360deg); } }
.g11-ft { position: relative; text-align: center; animation: g11ft 1.9s cubic-bezier(.2, .9, .3, 1) both; } .g11-ft small { display: block; font: 900 18px "Noto Serif TC", serif; color: #7c4a03; letter-spacing: 8px; } .g11-ft b { display: block; font: 900 56px "Noto Serif TC", serif; color: #fff; letter-spacing: 6px; text-shadow: 0 0 24px #f59e0b, 0 4px 0 #92400e, 0 0 60px #fde68a; }
@keyframes g11ft { 0% { transform: scale(2.6); opacity: 0; } 14% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.08); } }
@media (max-width: 620px) {
  .sh10 .sh-gacha.g11-stage { height: 398px; min-height: 398px; max-height: 398px; padding: 8px 6px 6px; }
  .g11-cards { grid-template-columns: repeat(4, minmax(0, 76px)); grid-auto-rows: 108px; gap: 7px; }
  .g11-stage.single .g11-cards { grid-template-columns: 140px; grid-auto-rows: 220px; }
  .g11-circle { width: 280px; height: 280px; margin: -140px 0 0 -140px; } .g11-front b { font-size: 11px; } .g11-foot { font-size: 12px; } .g11-ft b { font-size: 38px; }
}
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .sh10 .sh-gacha.g11-stage { height: 208px; min-height: 208px; max-height: 208px; }
  .g11-cards { grid-template-columns: repeat(11, minmax(0, 60px)); grid-auto-rows: 92px; gap: 5px; } .g11-stage.single .g11-cards { grid-template-columns: 96px; grid-auto-rows: 150px; }
  .g11-back em { font-size: 14px; } .g11-front b { font-size: 10px; } .g11-front i { font-size: 9px; }
}

/* ---- 變身面板：四職業切換列 + 卡牌上的變身後特效 */
.mo-cls { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.mo-cls button { position: relative; padding: 5px 14px; font: 700 13px "Noto Serif TC", serif; color: #cdbf9f; border: 1px solid #4a3d28; background: #100d0a; border-radius: 3px; cursor: pointer; }
.mo-cls button.on { color: #1a1206; background: linear-gradient(180deg, #e9cf8c, #a8864a); border-color: #e9cf8c; }
.mo-cls button small { margin-left: 5px; font-size: 10px; opacity: .8; } .mo-cls-n { font-size: 12px; color: #fbbf24; }
.mo-fx { position: absolute; pointer-events: none; mix-blend-mode: screen; background-repeat: no-repeat; }
.mo-fx.aura { left: -8%; right: -8%; top: -4%; height: 86%; background-size: 400% 200%; animation: mofx .8s steps(1) infinite; opacity: .85; }
.mo-fx.foot { left: 8%; right: 8%; bottom: 14%; height: 26%; background-size: contain; background-position: center; animation: mofoot 2.4s ease-in-out infinite; }
.mo-fx.big.aura { left: 50%; right: auto; top: auto; bottom: 0; width: min(46vh, 340px); height: min(50vh, 370px); transform: translateX(-50%); opacity: .9; }
.mo-fx.big.foot { left: 50%; right: auto; bottom: 2px; width: 240px; height: 110px; transform: translateX(-50%); }
.mo-card.lock .mo-fx { opacity: .35; }
@keyframes mofx { 0% { background-position: 0 0; } 12.5% { background-position: 33.333% 0; } 25% { background-position: 66.666% 0; } 37.5% { background-position: 100% 0; } 50% { background-position: 0 100%; } 62.5% { background-position: 33.333% 100%; } 75% { background-position: 66.666% 100%; } 87.5% { background-position: 100% 100%; } }
@keyframes mofoot { 50% { opacity: .55; filter: brightness(1.4); } }

/* ---- 紅裝以上的圖示特效 (紅：赤焰脈動、紫：雷電掃光、神話金：金光旋轉) */
[style*="--rc:#f87171"] > img, [style*="--rc: #f87171"] > img { filter: drop-shadow(0 0 3px #ff3b2f) drop-shadow(0 0 7px rgba(255, 70, 30, .75)); animation: gr-red 1.5s ease-in-out infinite; }
[style*="--rc:#c084fc"] > img { filter: drop-shadow(0 0 3px #d8b4fe) drop-shadow(0 0 8px rgba(168, 85, 247, .85)); animation: gr-pur 2.6s linear infinite; }
[style*="--rc:#fbbf24"] > img { filter: drop-shadow(0 0 3px #fff3b0) drop-shadow(0 0 9px rgba(251, 191, 36, .9)); animation: gr-gold 2s ease-in-out infinite; }
@keyframes gr-red { 50% { filter: drop-shadow(0 0 5px #ff5a3c) drop-shadow(0 0 13px rgba(255, 90, 30, 1)) brightness(1.18); } }
@keyframes gr-pur { 0%, 86%, 100% { filter: drop-shadow(0 0 3px #d8b4fe) drop-shadow(0 0 8px rgba(168, 85, 247, .85)); } 90% { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 16px #e9d5ff) brightness(1.7); } 94% { filter: drop-shadow(0 0 3px #d8b4fe) drop-shadow(0 0 8px rgba(168, 85, 247, .85)) brightness(.9); } 96% { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 14px #e9d5ff) brightness(1.5); } }
@keyframes gr-gold { 50% { filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 16px #fbbf24) brightness(1.25); } }
.p6-cell[style*="--rc:#f87171"], .eq-slot[style*="--rc:#f87171"], .p6-cell[style*="--rc:#c084fc"], .eq-slot[style*="--rc:#c084fc"], .p6-cell[style*="--rc:#fbbf24"], .eq-slot[style*="--rc:#fbbf24"] { overflow: hidden; }
.p6-cell[style*="--rc:#f87171"]::after, .eq-slot[style*="--rc:#f87171"]::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -8%; height: 62%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse at 30% 100%, rgba(255, 110, 30, .85), transparent 55%), radial-gradient(ellipse at 70% 100%, rgba(255, 50, 20, .8), transparent 58%), radial-gradient(ellipse at 50% 100%, rgba(255, 200, 80, .6), transparent 40%); animation: gr-flame .5s ease-in-out infinite alternate; }
@keyframes gr-flame { 0% { transform: scaleY(.82) translateX(-3%); opacity: .7; } 100% { transform: scaleY(1.12) translateX(3%); opacity: 1; } }
.p6-cell[style*="--rc:#c084fc"]::after, .eq-slot[style*="--rc:#c084fc"]::after { content: ''; position: absolute; inset: -40%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 46%, rgba(233, 213, 255, .95) 49%, rgba(255, 255, 255, 1) 50%, rgba(192, 132, 252, .9) 51%, transparent 54%); animation: gr-bolt 2.6s linear infinite; }
@keyframes gr-bolt { 0%, 82% { transform: translateX(-70%); opacity: 0; } 86% { opacity: 1; } 96% { transform: translateX(70%); opacity: 1; } 100% { transform: translateX(70%); opacity: 0; } }
.p6-cell[style*="--rc:#fbbf24"]::after, .eq-slot[style*="--rc:#fbbf24"]::after { content: ''; position: absolute; inset: -30%; pointer-events: none; mix-blend-mode: screen; opacity: .6;
  background: repeating-conic-gradient(from 0deg, transparent 0 16deg, rgba(253, 230, 138, .55) 16deg 22deg); animation: g11rays 7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .g11-card, .g11-circle, .mo-fx, [style*="--rc:"] > img, [style*="--rc:"]::after { animation: none !important; } }

/* ---- v12.11 裝備製作 */
.f11-wrap.c11 { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); }
.c11-main, .c11-side { gap: 8px; overflow-y: auto; }
.c11-tiers { display: flex; gap: 6px; flex-wrap: wrap; } .c11-tiers button { flex: 1; min-width: 70px; padding: 6px 4px; font: 900 14px "Noto Serif TC", serif; color: var(--tc); border: 1px solid color-mix(in srgb, var(--tc) 45%, #000); background: #0c0a08; border-radius: 3px; cursor: pointer; }
.c11-tiers button small { display: block; font-size: 10px; font-weight: 400; opacity: .75; } .c11-tiers button.on { background: color-mix(in srgb, var(--tc) 22%, #0c0a08); box-shadow: 0 0 10px color-mix(in srgb, var(--tc) 55%, transparent); }
.c11-out { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid color-mix(in srgb, var(--rc) 55%, #000); background: radial-gradient(ellipse at 0 50%, color-mix(in srgb, var(--rc) 16%, transparent), transparent 70%); }
.c11-out .p6-cell { flex: 0 0 72px; width: 72px; cursor: default; } .c11-out b { display: block; font-size: 16px; } .c11-out span { display: block; font-size: 12.5px; color: #e7d6b2; margin-top: 3px; } .c11-out small { display: block; font-size: 11.5px; color: #9c8d70; margin-top: 3px; }
.c11-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.c11-mat { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 6px; border: 1px solid #3b3022; background: rgba(0, 0, 0, .4); }
.c11-mat img { grid-row: 1 / 3; width: 30px; height: 30px; object-fit: contain; } .c11-mat b { font-size: 12.5px; color: #f3e3bd; } .c11-mat span { font-size: 12px; color: #86efac; } .c11-mat.bad { border-color: #7f1d1d; } .c11-mat.bad span { color: #fca5a5; }
.c11-go { align-self: center; min-width: 200px; margin-top: 4px; }
.c11-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.c11-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 1px solid #3b3022; background: rgba(0, 0, 0, .45); color: #cdbf9f; font-size: 11.5px; cursor: pointer; } .c11-slot img { width: 32px; height: 32px; object-fit: contain; } .c11-slot.on { border-color: #e9cf8c; color: #fde68a; box-shadow: inset 0 0 12px rgba(233, 207, 140, .25); }
.c11-owns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; } .c11-own { display: flex; align-items: center; gap: 6px; padding: 4px 6px; font-size: 12px; color: #e7d6b2; background: rgba(0, 0, 0, .35); border: 1px solid #2e2820; } .c11-own img { width: 22px; height: 22px; object-fit: contain; } .c11-own span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .c11-own b { color: #fde68a; } .c11-own.zero { opacity: .45; }
@media (max-width: 760px) { .f11-wrap.c11 { grid-template-columns: 1fr; height: auto; } .c11-slots { grid-template-columns: repeat(6, 1fr); } }

/* ============================================================ v12.13 */
.ico-lock { width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: -0.25em; margin-right: 4px; filter: drop-shadow(0 1px 2px #000); }
.ico-dot { width: 9px; height: 9px; margin-left: 4px; vertical-align: 2px; }
.bk-ico.img { background: none !important; border: 0 !important; box-shadow: none !important; }
.bk-ico.img .ico-lock { width: 100%; height: 100%; margin: 0; }
.fs-dot { background: url('../assets/img/ui9/red_dot.webp') center / contain no-repeat !important; box-shadow: none !important; width: 11px; height: 11px; }
/* 主畫面：攻擊 / 防禦取代天命幣 */
.hud-ad { display: inline-flex; align-items: center; gap: 10px; }
.hud-ad span { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; }
.hud-ad img { width: 1.35em; height: 1.35em; object-fit: contain; filter: drop-shadow(0 1px 2px #000); }
/* v12.15：攻擊 / 防禦字級與「戰力」相同 (由 v1213.js 依戰力的實際字級同步) */
body .hud-ad span, body .hud-ad b { font-size: inherit !important; line-height: 1.2; }
body .hud-ad { font-size: 11px; gap: 8px; }
.hud-ad .ad-a b { color: #fca5a5; } .hud-ad .ad-d b { color: #93c5fd; }

/* v12.15：手機版面板標題列 — 標題過長時縮成「…」，關閉按鈕永遠留在畫面內、加大點擊範圍並離開螢幕邊緣 (避開 iPhone 圓角) */
.p6-top .p6-title { min-width: 0; overflow: hidden; }
.p6-top .p6-title b { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 900px), (max-height: 520px) {
  .p6.open .p6-top { display: flex !important; flex-wrap: nowrap; align-items: center; gap: 8px; padding-right: max(14px, calc(env(safe-area-inset-right) + 10px)) !important; }
  .p6.open .p6-top > * { flex-shrink: 0; }
  .p6.open .p6-top .p6-title { flex: 1 1 auto; flex-shrink: 1; min-width: 0; justify-content: center; }
  .p6.open .p6-top .p6-cur { flex-shrink: 1; min-width: 0; overflow: hidden; }
  .p6.open .p6-top .p6-x { margin-left: auto; }
  .p6-top .p6-x, .ps-head .p6-x { width: 44px !important; height: 44px !important; margin: 2px 0 2px 6px; position: relative; z-index: 5; touch-action: manipulation; }
  .p6-top .p6-x::after, .ps-head .p6-x::after { content: ''; position: absolute; inset: -10px; }   /* 隱形的擴大點擊範圍 */
  .ps-head { padding-right: max(14px, calc(env(safe-area-inset-right) + 10px)) !important; }
}
@media (max-width: 480px) {
  .p6-top .p6-cur span:nth-child(n+2) { display: none; }   /* 直向手機只留天命幣，讓標題與關閉鈕有空間 */
}
