:root{
  --bg:#07111f;--bg2:#101827;--panel:#101a2d;--panel2:#0b1527;--line:#263a58;--text:#eaf2ff;--muted:#9fb4d4;
  --accent:#2dd4bf;--accent2:#60a5fa;--danger:#fb7185;--ok:#86efac;--shadow:0 18px 55px rgba(0,0,0,.42);
  --safe:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:linear-gradient(180deg,var(--bg),color-mix(in srgb,var(--bg) 72%,var(--bg2)) 48%,var(--bg2));color:var(--text);font-family:"Microsoft JhengHei UI","Microsoft JhengHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,select,textarea{font:inherit}
select{color-scheme:dark}
select option{background:#101722;color:#edf2f7}
select option:checked{background:#245750;color:#fff6b3}
.heroNameSearch{margin-bottom:6px}
.heroCombobox{position:relative;width:100%}
.mapToolbar:has(.mapStageCombobox){position:relative;z-index:30}
.mapToolbar .mapStageCombobox input{padding-right:40px}
.mapToolbar:has(#mapCategorySelect){grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.mapTaxonomyLevels{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;width:100%}
.monsterMapFilter{display:grid;gap:8px;grid-column:1/-1}
.monsterMapFilter label{display:grid;gap:6px;min-width:0;font-size:12px;color:var(--muted)}
.monsterMapFilter select{width:100%;min-width:0}
@media(max-width:1100px){.mapToolbar:has(#mapCategorySelect){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mapToolbar:has(#mapCategorySelect){grid-template-columns:minmax(0,1fr)}}
.mapStageCombobox .heroChoices{font-size:14px;font-weight:400}
.kv:has(.heroCombobox){position:relative;z-index:2}
.kv:has(.heroCombobox):focus-within{z-index:3}
.kv:has(.heroChoices:not([hidden])){z-index:4}
.supportPlan .v:has(.heroNameSearch){grid-template-columns:minmax(0,1fr)}
.supportPlan .heroNameSearch{width:100%;min-width:0;margin:0}
.supportPlan .v:has(.heroNameSearch) select{width:100%;min-width:0}
.heroCombobox input{padding-right:40px}
.heroChoiceToggle{position:absolute;right:1px;top:1px;bottom:1px;width:36px;padding:0;border:0;background:transparent;box-shadow:none;color:#edf2f7}
.heroChoices{position:absolute;top:100%;left:0;right:0;z-index:100;max-height:260px;overflow:auto;background:#101722;border:1px solid #657c92;border-radius:6px}
.heroChoices button{display:block;width:100%;text-align:left;border:0;border-radius:0;background:transparent;padding:8px 12px;color:#edf2f7}
.heroChoices button:hover,.heroChoices button:focus,.heroChoices button[aria-selected="true"]{background:#245750;color:#fff6b3}
.mapDot.npc.trapLight{border:0;padding:0;background:transparent;box-shadow:none;width:32px;height:32px;overflow:visible;transform:translate(-50%,-50%)}
.mapDot.trapLight .trapSpark{display:block;font-size:30px;line-height:32px;color:#fff3ab;text-shadow:0 0 4px #fff,0 0 10px #ffd54f}
button{cursor:pointer}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.topbar{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);padding:calc(8px + env(safe-area-inset-top)) 12px 8px}
.topline{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;max-width:1480px;margin:0 auto}
.menuBtn,.chipBtn,.primary,.ghost{border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:14px;padding:10px 12px;font-weight:900}
.primary{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#06101f;border:0}
.brand{min-width:0}.brandTitle{font-weight:1000;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.maker{font-size:12px;color:#d6e8ff;font-weight:900;text-align:right;white-space:nowrap}
.status{display:none!important;font-size:12px;color:#cfe9ff;font-weight:900;white-space:nowrap}
.shellSettingsBtn{border:1px solid color-mix(in srgb,var(--accent2) 48%,var(--line));background:color-mix(in srgb,var(--panel2) 86%,var(--accent));color:#dbeafe;border-radius:999px;padding:9px 12px;font-size:12px;font-weight:1000;white-space:nowrap}
.shellSettingsBtn:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 20%,var(--panel2))}
.app{max-width:1480px;margin:0 auto}
.backdrop{position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:60;display:none}
.backdrop.open{display:block}
.drawer{position:fixed;z-index:70;top:0;bottom:0;left:0;width:min(90vw,390px);background:linear-gradient(180deg,var(--panel2),var(--bg2));border-right:1px solid var(--line);box-shadow:var(--shadow);transform:translateX(-105%);transition:.2s transform ease;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top)}
.drawer.open{transform:translateX(0)}
.drawerHead{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px solid var(--line)}
.drawerTitle{font-size:18px;font-weight:1000}.drawerBody{padding:12px;overflow:auto;-webkit-overflow-scrolling:touch}
.navGroup{border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--panel) 72%,transparent);padding:10px;margin-bottom:12px}
.navTitle{font-size:12px;color:var(--muted);font-weight:900;margin:2px 4px 8px}
.navBtn{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid transparent;background:transparent;color:#eaf2ff;border-radius:14px;padding:12px;font-weight:900;text-align:left}
.navBtn:hover{background:color-mix(in srgb,var(--accent2) 12%,transparent);border-color:color-mix(in srgb,var(--accent2) 32%,var(--line))}
.navBtn.active,.navBtn:active{background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 24%,transparent),color-mix(in srgb,var(--accent2) 20%,transparent));border-color:color-mix(in srgb,var(--accent2) 55%,var(--line))}
.formBox{display:none;margin-top:8px;border-top:1px solid rgba(148,163,184,.16);padding-top:10px}.formBox.active{display:block}
label{display:block;font-size:12px;color:var(--muted);font-weight:900;margin:10px 2px 6px}
input,select{width:100%;border:1px solid var(--line);background:color-mix(in srgb,var(--panel2) 88%,#000);color:var(--text);border-radius:12px;padding:11px;outline:none}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.results{display:flex;flex-direction:column;gap:8px;margin-top:10px;max-height:48vh;overflow:auto;-webkit-overflow-scrolling:touch}
.resultItem{border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:14px;padding:10px;text-align:left}
.resultItem:hover{border-color:var(--accent2);background:color-mix(in srgb,var(--panel2) 86%,var(--accent2))}
.rName{font-weight:1000;font-size:15px}.rSub{color:var(--muted);font-size:12px;line-height:1.4;margin-top:3px}
.content{padding:14px 12px calc(84px + var(--safe))}
.reader{max-width:980px;margin:0 auto}.card{background:linear-gradient(180deg,color-mix(in srgb,var(--panel) 96%,transparent),color-mix(in srgb,var(--panel2) 96%,transparent));border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:0 8px 32px rgba(0,0,0,.24);margin-bottom:14px}
.card:hover{border-color:color-mix(in srgb,var(--accent2) 44%,var(--line))}
.pageLoadingCard{display:flex;align-items:center;gap:14px;min-height:132px;border-color:color-mix(in srgb,var(--accent2) 46%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--panel) 92%,transparent),color-mix(in srgb,var(--panel2) 88%,var(--accent2) 12%))}
.pageLoadingCard h1{margin-bottom:6px}
.pageLoadingSpinner{width:34px;height:34px;flex:0 0 34px;border-radius:999px;border:3px solid color-mix(in srgb,var(--accent2) 25%,transparent);border-top-color:var(--accent);animation:szoSpin .85s linear infinite}
@keyframes szoSpin{to{transform:rotate(360deg)}}
h1{font-size:24px;line-height:1.22;margin:0 0 8px}h2{font-size:19px;margin:0 0 12px}h3{font-size:16px;margin:18px 0 10px;color:#dbeafe}
.muted{color:var(--muted);line-height:1.65}.notice{background:color-mix(in srgb,var(--accent) 14%,transparent);border:1px solid color-mix(in srgb,var(--accent) 34%,transparent);border-radius:16px;padding:12px;color:#d8fff9;margin:10px 0;line-height:1.55}
.empty{border:1px dashed #375172;border-radius:18px;padding:18px;color:var(--muted);line-height:1.7;background:rgba(15,23,42,.45)}
.pill{display:inline-flex;align-items:center;border:1px solid var(--line);background:#0b1528;color:#cfe9ff;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;margin:3px 4px 3px 0}
.quick{display:grid;grid-template-columns:1fr;gap:10px;margin-top:14px}.quick button{border:1px solid color-mix(in srgb,var(--accent2) 42%,var(--line));background:color-mix(in srgb,var(--panel2) 88%,var(--accent2));color:#fff;border-radius:16px;padding:14px;text-align:left;font-weight:1000}.quick small{display:block;color:var(--muted);font-weight:700;margin-top:4px}
.choiceMenuPage{max-width:1100px}
.choiceMenuList{display:grid;gap:10px;margin-top:14px}
.choiceMenuItem{width:100%;display:grid;gap:5px;text-align:left;border:1px solid color-mix(in srgb,var(--accent2) 38%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--panel2) 90%,var(--accent2)),color-mix(in srgb,var(--panel2) 94%,#000));color:var(--text);border-radius:14px;padding:15px 16px}
.choiceMenuItem:hover{border-color:var(--accent);background:linear-gradient(135deg,color-mix(in srgb,var(--panel2) 80%,var(--accent2)),color-mix(in srgb,var(--panel2) 90%,var(--accent)))}
.choiceMenuItem strong{font-size:17px;line-height:1.25}
.choiceMenuItem small{color:var(--muted);font-weight:800;line-height:1.45}
.kvGrid{display:grid;grid-template-columns:1fr;gap:8px}.kv{border:1px solid rgba(148,163,184,.22);background:color-mix(in srgb,var(--panel2) 88%,#000);border-radius:14px;padding:10px}.k{font-size:12px;color:color-mix(in srgb,var(--accent2) 72%,#eaf2ff);font-weight:900;margin-bottom:4px}.v{font-size:15px;word-break:break-word;line-height:1.45}
.tableWrap{overflow:auto;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--panel2) 88%,#000);-webkit-overflow-scrolling:touch}table{border-collapse:collapse;width:100%;min-width:520px}th,td{border-bottom:1px solid rgba(148,163,184,.18);padding:10px;text-align:left;font-size:14px}th{color:#bfdbfe;background:color-mix(in srgb,var(--panel) 82%,var(--accent2));position:sticky;top:0}tr:last-child td{border-bottom:0}
.reverseDetailCard{max-width:980px}
.reverseBackActions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.reverseBackActions .backBtn{margin:0}
.reverseDropList{display:grid;gap:10px;margin-top:14px}
.reverseDropCard{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;min-height:54px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel2) 88%,#000);color:var(--text);text-align:left}
.reverseDropCard:is(button){cursor:pointer}
.reverseDropCard:is(button):hover,.reverseDropCardLinked:hover{border-color:var(--accent);background:color-mix(in srgb,var(--panel2) 76%,var(--accent2))}
.reverseDropMain{display:flex;align-items:center;gap:12px;min-width:0}
.reverseDropName{font-weight:800;font-size:16px;color:var(--text);line-height:1.35;min-width:8em}
.reverseDropLoc{min-width:0;color:var(--muted);line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reverseDropRate{justify-self:end;color:#eef6ff;font-variant-numeric:tabular-nums;white-space:nowrap}
.reverseDropLink,.reverseDropAction{border:0;background:transparent;color:var(--text);font:inherit;cursor:pointer;padding:0}
.reverseDropLink:hover,.reverseDropAction:hover{text-decoration:underline}
.reverseDropAction{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(14,165,233,.12);color:#bfdbfe;font-weight:700;white-space:nowrap}
.collectReverseCompactList{display:grid;gap:10px}
.collectReverseCompactRow{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel2) 88%,#000)}
.collectReverseCompactMain{display:flex;align-items:center;gap:12px;min-width:0}
.collectReverseCompactName{font-weight:800;min-width:8em}
.collectReverseCompactLoc{min-width:0;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.collectReverseCompactRate{justify-self:end;color:#eef6ff;font-variant-numeric:tabular-nums;white-space:nowrap}
.collectNestedReverseBtn{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(14,165,233,.12);color:#bfdbfe;font-weight:800;white-space:nowrap;cursor:pointer}
.collectNestedReverseBtn:hover{border-color:var(--accent);text-decoration:underline}
.floatMenu{position:fixed;right:14px;bottom:calc(10px + var(--safe));z-index:45;border:0;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#04111f;border-radius:999px;padding:13px 16px;font-weight:1000;box-shadow:var(--shadow)}
.authModal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.72);padding:16px}.authBox{width:min(560px,100%);background:#111827;border:1px solid #475569;border-radius:18px;padding:18px}.authBox textarea{width:100%;min-height:120px;background:#0c1424;color:#fff;border:1px solid #3a4a68;border-radius:12px;padding:10px}.error{color:#fda4af;font-weight:900;margin-top:8px}
.loadLine{margin:4px 0;color:#bfdbfe}.loadOk{color:var(--ok)}.loadBad{color:#fda4af}
@media (min-width:980px){
  .menuBtn,.backdrop,.closeOnly{display:none!important}
  .app{display:grid;grid-template-columns:380px 1fr;gap:18px;padding:18px}
  .drawer{position:sticky;top:86px;height:calc(100vh - 104px);transform:none!important;width:auto;border:1px solid var(--line);border-radius:24px;box-shadow:none;padding-top:0;overflow:hidden}
  .content{padding:0 0 80px}.reader{max-width:1060px;margin:0}.kvGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:520px){
  .brandTitle{font-size:14px}
  .maker{font-size:11px}
  .topline{gap:8px;grid-template-columns:auto minmax(0,1fr) auto}
  .maker{display:none}
}
.monsterSearchPage .results{max-height:none}
.monsterModeSwitch{display:inline-flex;border:1px solid var(--line);padding:3px;gap:3px;margin:4px 0 12px;background:var(--panel2);border-radius:8px}.monsterModeSwitch button,.beastStarBtn{border:0;background:transparent;color:var(--muted);padding:8px 12px;font-weight:900;cursor:pointer}.monsterModeSwitch button.active,.beastStarBtn.active{background:#0f766e;color:#fff;border-radius:5px}.beastStarPicker{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}.beastStarBtn{border:1px solid var(--line);border-radius:6px}.beastTag{display:inline-flex;align-items:center;border:1px solid #2dd4bf;background:#0f2d31;color:#99f6e4;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;margin-top:6px}
.homeQuick button small,.cleanQuick button small{display:none}

/* v84 大標題 / 小標題層級 */
.bigTitle{
  font-size:13px;
  color:#e0f2fe;
  font-weight:1000;
  letter-spacing:.08em;
  padding:8px 10px;
  margin:6px 0 8px;
  border-left:4px solid var(--accent);
  background:rgba(45,212,191,.08);
  border-radius:12px;
}
.subTitle{
  font-size:12px;
  color:#9fb4d4;
  font-weight:900;
  padding:6px 8px;
  margin:8px 0 6px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:10px;
  background:rgba(15,23,42,.45);
}
.navBtn.sub{
  padding-left:20px;
  font-size:14px;
  opacity:.96;
}
.calcTabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:10px 0 14px;
}
.calcTab{
  border:1px solid var(--line);
  background:#0b1527;
  color:var(--text);
  border-radius:14px;
  padding:12px 10px;
  font-weight:1000;
}
.calcTab.active{
  background:linear-gradient(135deg,rgba(45,212,191,.28),rgba(96,165,250,.25));
  border-color:#60a5fa;
}


/* v86 menu + item page */
.navBtn.major{
  font-size:16px;
  padding:14px 12px;
  border-color:rgba(96,165,250,.35);
  background:rgba(14,28,48,.72);
}
.navBtn.major.active{
  background:linear-gradient(135deg,rgba(45,212,191,.24),rgba(96,165,250,.24));
}
.navBtn.sub{
  padding-left:22px;
  font-size:14px;
}
.pageTabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:10px 0 14px;
}
.pageTab{
  border:1px solid var(--line);
  background:#0b1527;
  color:var(--text);
  border-radius:14px;
  padding:12px 10px;
  font-weight:1000;
}
.pageTab.active{
  background:linear-gradient(135deg,rgba(45,212,191,.28),rgba(96,165,250,.25));
  border-color:#60a5fa;
}
.backBtn{
  display:inline-flex;
  margin-bottom:12px;
  border:1px solid var(--line);
  background:#0b1527;
  color:#dbeafe;
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
}

.collectPage{
  padding:18px;
}
.collectHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.collectHeader h1{
  margin:0;
}
.collectTools{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:0 0 10px;
}
.collectTools input{
  flex:1 1 320px;
  min-width:220px;
}
.collectTools select{
  flex:0 0 190px;
  min-width:150px;
}
.collectChecks{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin:0 0 12px;
}
.collectCheck{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:auto;
  border:1px solid rgba(96,165,250,.28);
  background:rgba(11,21,39,.78);
  color:#dbeafe;
  border-radius:999px;
  padding:8px 11px;
  margin:0;
  font-size:13px;
  font-weight:1000;
  cursor:pointer;
}
.collectCheck input{
  width:16px!important;
  min-width:16px;
  max-width:16px;
  height:16px!important;
  margin:0;
  padding:0;
  accent-color:var(--accent);
}
.collectCheck:has(input:checked){
  border-color:rgba(45,212,191,.58);
  background:rgba(45,212,191,.16);
  color:#d8fff9;
}
.collectLimit{
  margin:0 0 8px;
}
.collectList{
  display:grid;
  gap:10px;
}
.collectRow{
  border:1px solid rgba(96,165,250,.24);
  background:linear-gradient(180deg,rgba(11,21,39,.82),rgba(7,17,31,.92));
  border-radius:16px;
  padding:13px;
}
.collectRow:hover{
  border-color:rgba(45,212,191,.42);
}
.collectItemHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom:10px;
  margin-bottom:10px;
  border-bottom:1px solid rgba(148,163,184,.14);
}
.collectName{
  font-weight:1000;
  color:#eaf2ff;
  line-height:1.35;
  font-size:17px;
}
.collectCategory{
  color:#9fb4d4;
  font-size:12px;
  font-weight:900;
  margin-top:3px;
}
.collectScore{
  flex:0 0 auto;
  border:1px solid rgba(45,212,191,.28);
  background:rgba(45,212,191,.12);
  color:#d8fff9;
  border-radius:999px;
  padding:5px 9px;
  font-size:12px;
  font-weight:1000;
}
.collectGrid{
  display:grid;
  grid-template-columns:minmax(120px,.8fr) minmax(180px,1.2fr) minmax(260px,2fr);
  gap:10px;
  align-items:start;
}
.collectGrid.beastGrid{
  grid-template-columns:minmax(100px,.7fr) minmax(100px,.7fr) minmax(160px,1fr) minmax(260px,2fr);
}
.collectMeta{
  min-width:0;
}
.collectMeta.wide{
  min-width:0;
}
.collectMetaLabel{
  color:#93c5fd;
  font-size:12px;
  font-weight:1000;
  margin-bottom:6px;
}
.collectMetaValue{
  color:#eaf2ff;
  line-height:1.35;
}
.collectTag{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(96,165,250,.28);
  background:rgba(15,23,42,.72);
  color:#cfe9ff;
  border-radius:999px;
  padding:5px 9px;
  font-size:12px;
  font-weight:900;
  line-height:1.35;
  margin:2px 4px 2px 0;
}
.collectMapTag{
  cursor:pointer;
  font-family:inherit;
  text-decoration:none;
  border-color:rgba(45,212,191,.45);
  background:rgba(8,47,73,.72);
  color:#d6fff6;
}
.collectMapTag:hover,.collectMapTag:focus-visible{
  border-color:#2dd4bf;
  box-shadow:0 0 0 2px rgba(45,212,191,.18);
  color:#fff;
}
.collectNoteTag{
  border-color:rgba(148,163,184,.28);
  background:rgba(15,23,42,.7);
  color:#bfd0e8;
}
.collectTopBtn{
  position:fixed;
  right:calc(18px + env(safe-area-inset-right));
  bottom:calc(18px + env(safe-area-inset-bottom));
  z-index:1200;
  border:1px solid rgba(45,212,191,.5);
  background:linear-gradient(135deg,rgba(15,118,110,.95),rgba(37,99,235,.92));
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-weight:1000;
  box-shadow:0 12px 30px rgba(0,0,0,.32);
}
.collectTopBtn:hover,.collectTopBtn:focus-visible{
  filter:brightness(1.08);
  transform:translateY(-1px);
}
.collectDropList{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:7px;
}
.collectDropItem{
  border:1px solid rgba(96,165,250,.22);
  background:rgba(15,23,42,.58);
  border-radius:12px;
  padding:7px 9px;
  min-width:0;
}
.collectDropName{
  display:block;
  color:#dbeafe;
  font-size:13px;
  font-weight:1000;
  line-height:1.35;
  word-break:break-word;
}
.collectDropInfo{
  display:block;
  color:#bfe3ff;
  font-size:12px;
  font-weight:900;
  line-height:1.35;
  margin-top:2px;
}
.collectDropLoc{
  display:block;
  color:#9fb4d4;
  font-size:12px;
  font-weight:800;
  line-height:1.35;
  margin-top:2px;
  word-break:break-word;
}
.collectDropSummary{
  display:grid;
  gap:8px;
  align-content:start;
}
.collectDropSummaryCount{
  color:#eaf6ff;
  font-size:18px;
  font-weight:1000;
  line-height:1.2;
}
.collectDropSummaryPreview{
  color:#9fb4d4;
  font-size:13px;
  font-weight:800;
  line-height:1.45;
  word-break:break-word;
}
.collectReverseBtn{
  justify-self:start;
  border:1px solid rgba(34,211,238,.55);
  background:linear-gradient(135deg,rgba(20,184,166,.24),rgba(59,130,246,.18));
  color:#eaffff;
  border-radius:16px;
  padding:12px 14px;
  font:inherit;
  font-size:15px;
  font-weight:1000;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(8,145,178,.16);
  text-align:left;
}
.collectReverseBtn small{
  display:block;
  margin-top:4px;
  color:#b9d5ff;
  font-size:12px;
  font-weight:800;
}
.collectReverseBtn:hover{
  border-color:rgba(103,232,249,.9);
  transform:translateY(-1px);
}
.collectDropDetailPage{
  max-width:1180px;
}
.collectDropDetailMetaLine{
  margin:4px 0 14px;
  font-size:15px;
  font-weight:800;
}
.collectDropDetailList{
  display:grid;
  gap:10px;
}
.collectDropDetailTable table th:nth-child(3),
.collectDropDetailTable table td:nth-child(3){
  text-align:right;
  white-space:nowrap;
}
.collectDropDetailTable table th:nth-child(2),
.collectDropDetailTable table td:nth-child(2){
  color:#b9d5ff;
}
.collectNestedDrops{
  display:grid;
  gap:4px;
  color:#d7e7ff;
  font-size:14px;
  line-height:1.45;
}
.collectDropDetailPage .backBtn{
  background:#0b1527;
  border-color:rgba(96,165,250,.42);
  color:#dbeafe;
  cursor:pointer;
}
.collectBonusPage{
  max-width:1180px;
}
.collectBonusHero{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
  padding:16px;
  border:1px solid rgba(45,212,191,.34);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(45,212,191,.14),rgba(96,165,250,.10) 55%,rgba(251,191,36,.08));
}
.collectBonusHero h1{
  margin:0 0 8px;
}
.collectBonusHero p{
  margin:0;
  color:#cfe6ff;
  font-size:16px;
  font-weight:900;
}
.collectBonusHero p strong{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:5px 12px;
  border:1px solid rgba(251,191,36,.45);
  border-radius:999px;
  background:rgba(251,191,36,.14);
  color:#fde68a;
  font-size:20px;
  font-weight:1000;
}
.collectBonusLatest{
  flex:0 0 auto;
  min-width:170px;
  display:grid;
  align-content:center;
  gap:4px;
  padding:12px 14px;
  border:1px solid rgba(96,165,250,.34);
  border-radius:16px;
  background:rgba(7,17,31,.62);
}
.collectBonusLatest span{
  color:#7dd3fc;
  font-size:12px;
  font-weight:1000;
}
.collectBonusLatest strong{
  color:#eaf2ff;
  font-size:17px;
}
.collectBonusList{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.collectBonusCard{
  padding:14px;
  border:1px solid rgba(96,165,250,.26);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(11,21,39,.9),rgba(7,17,31,.94));
}
.collectBonusHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(148,163,184,.14);
}
.collectBonusName{
  color:#f3fbff;
  font-size:20px;
  font-weight:1000;
  line-height:1.25;
}
.collectBonusScore{
  flex:0 0 auto;
  border:1px solid rgba(251,191,36,.42);
  border-radius:999px;
  background:rgba(251,191,36,.12);
  color:#fde68a;
  padding:6px 10px;
  font-size:14px;
  font-weight:1000;
}
.collectBonusStats{
  display:grid;
  gap:8px;
  padding:0;
  margin:0;
  list-style:none;
}
.collectBonusStats li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(45,212,191,.18);
  border-radius:12px;
  background:rgba(15,23,42,.6);
}
.collectBonusStats span{
  color:#dbeafe;
  font-weight:900;
  line-height:1.35;
}
.collectBonusStats strong{
  color:#67e8f9;
  font-size:18px;
  font-weight:1000;
  white-space:nowrap;
}
@media(max-width:979px){
  .collectDropDetailPage{
    padding:14px;
    border-radius:18px;
    max-width:100%;
    overflow:hidden;
  }
  .collectDropDetailList{
    max-width:100%;
    overflow:hidden;
  }
  .collectDropDetailTable{
    overflow:visible;
    border-radius:14px;
    border:0;
    background:transparent;
    max-width:100%;
  }
  .collectDropDetailTable table,
  .collectDropDetailTable thead,
  .collectDropDetailTable tbody,
  .collectDropDetailTable tr,
  .collectDropDetailTable th,
  .collectDropDetailTable td{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  .collectDropDetailTable table{
    border-collapse:separate;
    border-spacing:0 10px;
    table-layout:auto!important;
  }
  .collectDropDetailTable thead{
    display:none!important;
  }
  .collectDropDetailTable thead tr,
  .collectDropDetailTable thead th{
    display:none!important;
  }
  .collectDropDetailTable tr{
    box-sizing:border-box!important;
    padding:12px;
    border:1px solid rgba(96,165,250,.34);
    border-left:4px solid rgba(34,211,238,.72);
    border-radius:14px;
    background:linear-gradient(135deg,rgba(15,47,76,.72),rgba(7,18,34,.82));
  }
  .collectDropDetailTable td{
    border:0!important;
    padding:3px 0!important;
    font-size:14px;
    line-height:1.45;
    word-break:break-word;
    white-space:normal;
    text-align:left!important;
  }
  .collectDropDetailTable td:nth-child(1){
    color:#f3fbff;
    font-size:16px;
    font-weight:1000;
  }
  .collectDropDetailTable td:nth-child(2)::before{
    content:'位置：';
    color:#7dd3fc;
    font-weight:1000;
  }
  .collectDropDetailTable td:nth-child(3){
    color:#dff7ff;
    font-weight:1000;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }
  .collectDropDetailTable td:nth-child(3)::before{
    content:'機率：';
    color:#7dd3fc;
  }
}
@media(max-width:760px){
  .collectBonusHero{
    flex-direction:column;
    padding:14px;
  }
  .collectBonusList{
    grid-template-columns:1fr;
  }
  .collectBonusHead{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
  .collectBonusName{
    font-size:18px;
  }
}
.beastSkillChecks{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.beastSkill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(96,165,250,.26);
  background:rgba(15,23,42,.62);
  border-radius:999px;
  padding:5px 9px;
  font-size:12px;
  font-weight:900;
  line-height:1.2;
}
.beastSkill.on{
  color:#d8fff9;
  border-color:rgba(45,212,191,.5);
  background:rgba(45,212,191,.13);
}
.beastSkill.off{
  color:#7f95b5;
  opacity:.72;
}
.beastCheckMark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:14px;
  height:14px;
  border:1px solid currentColor;
  border-radius:4px;
  font-size:11px;
  line-height:1;
}

@media (max-width:720px){
  .collectTools input,
  .collectTools select{
    flex-basis:100%;
    width:100%;
  }
  .collectHeader{
    align-items:flex-start;
  }
  .collectGrid,
  .collectGrid.beastGrid{
    grid-template-columns:1fr;
  }
  .collectItemHead{
    align-items:flex-start;
  }
}


/* v88 desktop layout fix */
@media (min-width:980px){
  body{overflow-x:hidden}
  .app{
    display:grid!important;
    grid-template-columns:360px minmax(0,1fr)!important;
    gap:18px!important;
    align-items:start!important;
    padding:18px!important;
  }
  .drawer{
    position:sticky!important;
    top:86px!important;
    height:calc(100vh - 104px)!important;
    transform:none!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    grid-column:1!important;
    align-self:start!important;
  }
  .content{
    grid-column:2!important;
    padding:0 0 80px!important;
    min-width:0!important;
    align-self:start!important;
  }
  .reader{
    max-width:1060px!important;
    margin:0!important;
  }
}


/* v88b 強制修正電腦版：左選單、右內容不能掉到下面 */
@media (min-width:980px){
  html,body{
    width:100%!important;
    overflow-x:hidden!important;
  }
  #mainShell{
    width:100%!important;
    max-width:none!important;
  }
  .app{
    width:100%!important;
    max-width:1480px!important;
    margin:0 auto!important;
    padding:18px!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:360px minmax(0,1fr)!important;
    grid-template-areas:"menu content"!important;
    gap:18px!important;
    align-items:start!important;
  }
  .drawer{
    grid-area:menu!important;
    position:sticky!important;
    top:86px!important;
    width:360px!important;
    min-width:360px!important;
    max-width:360px!important;
    height:calc(100vh - 104px)!important;
    transform:none!important;
    float:none!important;
    display:flex!important;
    align-self:start!important;
  }
  .content{
    grid-area:content!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    padding:0 0 80px!important;
    float:none!important;
    display:block!important;
    align-self:start!important;
  }
  .reader{
    width:100%!important;
    max-width:1060px!important;
    margin:0!important;
  }
}



/* v88c 電腦版左右排版修正：修正 HTML 結構後，再強制左右兩欄 */
@media (min-width:980px){
  .app{
    display:grid!important;
    grid-template-columns:360px minmax(0,1fr)!important;
    grid-template-areas:"menu content"!important;
  }
  .app > .drawer{
    grid-area:menu!important;
  }
  .app > .content{
    grid-area:content!important;
  }
}


/* v88i header emphasis + clean home */
/* v88k mobile jiang menu flow: main opens submenu only */
/* v88l monster skills from MAGIC.INI + defense info */
.brandTitle{font-size:22px!important;font-weight:1000!important;letter-spacing:.02em!important;color:#f8fbff!important}
.maker{font-size:15px!important;font-weight:1000!important;color:#f8fbff!important;text-align:right!important}
.topbar{padding:calc(12px + env(safe-area-inset-top)) 24px 12px!important}
@media (max-width:700px){
  .brandTitle{font-size:17px!important;line-height:1.2!important}
  .maker{font-size:12px!important}
  .topbar{padding:calc(10px + env(safe-area-inset-top)) 12px 10px!important}
}


/* v88o training mobile/readability */
.trainingList{display:grid;grid-template-columns:1fr;gap:10px;margin-top:10px}
@media (min-width:900px){.trainingList{grid-template-columns:repeat(2,minmax(0,1fr))}}
.trainCard{border:1px solid var(--line);background:#081225;border-radius:18px;padding:12px;min-width:0}
.trainCardHead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.trainName{font-size:16px;font-weight:1000;color:#fff;line-height:1.35}.trainSub{font-size:12px;color:var(--muted);line-height:1.55;margin-top:3px}
.trainBadge{white-space:nowrap;border:1px solid #355275;background:#0b1527;color:#bfdbfe;border-radius:999px;padding:5px 8px;font-size:12px;font-weight:900}
.trainNeedBox{border:1px solid rgba(148,163,184,.22);border-radius:14px;padding:9px;margin:8px 0;background:#0b1527;color:#eaf2ff;line-height:1.45}
.trainLevels{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.trainLevels label{margin:0 0 5px}.trainLevels input{min-height:44px;font-size:18px;text-align:center;padding:8px 10px}
.trainNote{font-size:12px;color:#dbeafe;line-height:1.55;border-left:3px solid var(--accent);padding-left:8px;margin-top:8px}
@media (max-width:700px){.trainingList{gap:8px}.trainCard{padding:10px;border-radius:16px}.trainName{font-size:15px}.trainBadge{font-size:11px;padding:4px 7px}.trainLevels input{font-size:18px;min-height:42px}.trainNeedBox{font-size:14px}.trainSub,.trainNote{font-size:11px}.tableWrap table{min-width:420px}}
@media (max-width:700px){.reverseDetailCard{padding:14px}.reverseDropCard{grid-template-columns:1fr;gap:8px;padding:12px}.reverseDropMain{align-items:flex-start;flex-direction:column;gap:8px}.reverseDropName{min-width:0;font-size:15px}.reverseDropLoc{white-space:normal}.reverseDropRate{justify-self:start;font-size:14px}.reverseDropAction{min-height:32px;padding:5px 10px}}
@media (max-width:700px){.collectReverseCompactRow{grid-template-columns:1fr;gap:8px}.collectReverseCompactMain{align-items:flex-start;flex-direction:column;gap:8px}.collectReverseCompactName{min-width:0}.collectReverseCompactLoc{white-space:normal}.collectReverseCompactRate{justify-self:start;font-size:14px}}


/* v88s equipment compound */
.eqFilterGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.eqPreviewGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.eqStatGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.eqYellow{color:#fde68a;font-weight:1000}.eqSmall{font-size:12px;color:var(--muted);line-height:1.5}.recipeTabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.recipeList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.recipeBtn{border:1px solid var(--line);background:#081225;color:#eaf2ff;border-radius:14px;padding:10px;text-align:left;font-weight:900}.recipeBtn.active{border-color:#60a5fa;background:linear-gradient(135deg,rgba(45,212,191,.24),rgba(96,165,250,.18))}.eqMatTable{width:100%;min-width:0}.eqMatTable th,.eqMatTable td{text-align:left;white-space:normal}.subMenuNote{font-size:12px;color:var(--muted);font-weight:900;margin:4px 6px 8px}
@media(max-width:760px){.eqFilterGrid,.eqPreviewGrid,.recipeList{grid-template-columns:1fr}.eqStatGrid{grid-template-columns:1fr}.recipeTabs{grid-template-columns:1fr}.eqCompactTitle{font-size:18px}.drawer .formBox .navBtn.sub{font-size:15px}}

/* =========================
   Extracted from index.html
   V200 modular framework
========================= */

/* V110 item advanced filters */
.itemAdvancedSearchPage .kvGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.itemFilterNote{font-size:12px;margin:0 0 10px}
@media (min-width:1180px){.itemAdvancedSearchPage .kvGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.itemAdvancedSearchPage .kvGrid{grid-template-columns:1fr}}

/* =========================
   Extracted from index.html
   V200 modular framework
========================= */

.soulQuick{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.soulQuick button{border:1px solid var(--line);background:#0b1527;color:var(--text);border-radius:999px;padding:8px 12px;font-weight:1000}.soulStats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.soulStat{border:1px solid rgba(148,163,184,.22);background:#081225;border-radius:14px;padding:10px}.soulStat .base{font-weight:1000;font-size:16px}.soulStat .bonus{color:#facc15;font-weight:1000;margin-left:4px}.soulMeta{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.soulMeta .pill{margin:0}@media(max-width:700px){.soulStats{grid-template-columns:1fr}.soulQuick button{flex:1 1 calc(33.333% - 8px)}}

/* =========================
   Extracted from index.html
   V200 modular framework
========================= */

.monsterCompact .monsterTopActions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:-8px 0 10px}.monsterCompact .monsterTopActions button{min-width:210px}.monsterCompact .monsterTopActions .mapJumpBtn{border:1px solid rgba(45,212,191,.72);background:linear-gradient(135deg,#0f766e,#2563eb);color:#f8fafc;box-shadow:0 10px 26px rgba(14,165,233,.2)}.monsterCompact .monsterTopActions .mapJumpBtn:hover{filter:brightness(1.08);transform:translateY(-1px)}.monsterCompact h1{margin-bottom:8px}.monsterCompact h3{margin:10px 0 7px}.monsterCompact .kv{padding:8px 10px;border-radius:12px}.monsterCompact .k{font-size:11px;margin-bottom:2px}.monsterCompact .v{font-size:14px;line-height:1.28}.monsterCompact .monsterGrid{display:grid;grid-template-columns:1fr;gap:8px}.monsterCompact .monsterPanel{border:1px solid rgba(96,165,250,.18);border-radius:16px;padding:10px;background:rgba(8,18,37,.38)}
@media(min-width:901px){.monsterCompact.card{max-width:1400px;padding:14px 18px}.monsterCompact .monsterDataGrid{grid-template-columns:repeat(5,minmax(0,1fr))}.monsterCompact .monsterStatGrid{grid-template-columns:repeat(4,minmax(0,1fr))}.monsterCompact .monsterDefenseGrid{grid-template-columns:repeat(4,minmax(0,1fr))}.monsterCompact .monsterSkillGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.monsterDropPage.card{max-width:1100px}.monsterDropTable table th:first-child,.monsterDropTable table td:first-child{text-align:left}}
@media(max-width:700px){.monsterCompact .monsterTopActions{justify-content:stretch}.monsterCompact .monsterTopActions button{width:100%}.monsterCompact .kvGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.monsterCompact .monsterSkillGrid{grid-template-columns:1fr}.monsterCompact .monsterDefenseGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.monsterCompact .v{font-size:13px}.monsterCompact .kv{padding:8px}}
@media(max-width:560px){
  .assetDetailHead{gap:10px;align-items:flex-start}
  .assetHero{width:68px;height:68px;border-radius:14px}
  .assetHero img{max-width:62px;max-height:62px}
  .monsterHero{width:88px;height:88px}
  .monsterHero img{max-width:82px;max-height:82px}
  .soulHero{width:78px;height:78px}
  .soulHero img{max-width:72px;max-height:72px}
}

/* =========================
   Extracted from index.html
   V200 modular framework
========================= */

/* v88be: 電腦版隱藏左側選單，改用左上角按鈕叫出 */
@media (min-width:980px){
  .topline{grid-template-columns:auto 1fr auto!important;}
  .menuBtn{display:inline-flex!important;align-items:center;justify-content:center;min-width:42px!important;height:42px!important;}
  .backdrop{display:none!important;}
  .backdrop.open{display:block!important;}
  .app{display:block!important;max-width:1480px!important;padding:18px!important;margin:0 auto!important;}
  .drawer{position:fixed!important;z-index:70!important;top:0!important;bottom:0!important;left:0!important;width:min(90vw,390px)!important;min-width:0!important;max-width:390px!important;height:auto!important;border-radius:0!important;border:0!important;border-right:1px solid var(--line)!important;box-shadow:var(--shadow)!important;transform:translateX(-105%)!important;transition:.2s transform ease!important;padding-top:env(safe-area-inset-top)!important;}
  .drawer.open{transform:translateX(0)!important;}
  .closeOnly{display:inline-flex!important;}
  .content{width:100%!important;padding:0 0 80px!important;}
  .reader{max-width:1280px!important;margin:0 auto!important;}
}
.supportPlanGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.supportPlan{border:1px solid var(--line);border-radius:18px;padding:12px;background:rgba(8,18,37,.55)}
.supportPlan h3{margin-top:0}
.supportSaveBar{display:flex;gap:8px;flex-wrap:wrap;align-items:end;margin:10px 0 12px}
.supportSaveBar select{width:auto;min-width:100px}.supportSaveBar button{border:1px solid #355275;background:#0e1a2f;color:#fff;border-radius:12px;padding:10px 12px;font-weight:900}
@media (max-width:760px){.supportPlanGrid{grid-template-columns:1fr}.supportSaveBar select,.supportSaveBar button{width:100%}}

/* =========================
   Extracted from index.html
   V200 modular framework
========================= */

/* V109：怪物 / 道具查詢右側最新清單 */
.latestQueryLayout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;align-items:start;margin-top:10px}
.latestMainPane{min-width:0}.latestSidePane{border:1px solid var(--line);background:#081225;border-radius:18px;padding:12px;position:sticky;top:92px;max-height:calc(100vh - 128px);overflow:auto;-webkit-overflow-scrolling:touch}.latestSideTitle{font-size:15px;font-weight:1000;color:#eaf2ff;margin-bottom:4px}.latestSideHint{font-size:12px;color:var(--muted);line-height:1.45;margin-bottom:10px}.latestList{display:flex;flex-direction:column;gap:8px}.latestList .resultItem{padding:9px;border-radius:13px}.latestList .rName{font-size:14px}.latestList .rSub{font-size:11px}.latestMainPane .results{max-height:48vh;overflow:auto}.latestSearchPage .kvGrid{margin-bottom:10px}
@media(max-width:900px){.latestQueryLayout{grid-template-columns:1fr}.latestSidePane{position:relative;top:auto;max-height:44vh}.latestMainPane .results{max-height:none}}
@media(max-width:640px){
  .topbar{padding-left:8px;padding-right:8px}
  .topline{grid-template-columns:auto minmax(0,1fr) auto;gap:8px}
  .menuBtn{min-width:46px;padding:10px 12px}
  .brandTitle{font-size:15px;line-height:1.25}
  .shellSettingsBtn{padding:8px 10px;font-size:11px;max-width:64px;overflow:hidden;text-overflow:clip}
  .content{padding:10px 8px calc(76px + var(--safe))}
  .card{padding:12px;border-radius:18px}
  h1{font-size:22px}
  input,select{min-height:46px;font-size:16px}
  .latestQueryLayout{gap:10px}
  .latestSidePane{max-height:34vh;padding:10px;border-radius:16px}
  .itemAdvancedSearchPage .latestSidePane{display:block;max-height:30vh;margin-top:4px}
  .itemAdvancedSearchPage .kvGrid{gap:6px;margin-bottom:6px}
  .itemAdvancedSearchPage .kv{padding:8px;border-radius:12px}
  .itemAdvancedSearchPage .k{font-size:11px;margin-bottom:3px}
  .itemAdvancedSearchPage .itemFilterNote{display:none}
  .itemAdvancedSearchPage h1{margin-bottom:6px}
  .latestMainPane .results{max-height:none}
  .resultItem{padding:11px}
  .rName{font-size:15px}
  .rSub{font-size:12px}
  #soulResult .tableWrap{overflow:visible;border-radius:12px}
  #soulResult .tableWrap table{min-width:0;table-layout:fixed}
  #soulResult .tableWrap th,#soulResult .tableWrap td{padding:7px 5px;font-size:12px;word-break:break-word;white-space:normal}
  #soulResult .tableWrap th:first-child,#soulResult .tableWrap td:first-child{width:24%}
  #soulResult .soulStats{gap:6px}
  #soulResult .soulStat{padding:8px}
  #soulResult .soulStat .base{font-size:14px}
}
/* V217 武魂快速數量按鈕保險：避免被上層元素或樣式吃掉點擊 */
.soulQuick, .quickBtns{position:relative;z-index:5;pointer-events:auto!important;}
.soulQuick button, .quickBtns button{position:relative;z-index:6;pointer-events:auto!important;cursor:pointer;}

/* V263 framework appearance settings */
.uiSettingsPanel{position:fixed;inset:0;z-index:120;background:rgba(2,6,14,.62);backdrop-filter:blur(3px);display:grid;place-items:center;padding:18px}
.uiSettingsPanel[hidden]{display:none}
.uiSettingsCard{width:min(860px,100%);max-height:calc(100dvh - 36px);display:flex;flex-direction:column;border:1px solid color-mix(in srgb,var(--accent) 34%,var(--line));border-radius:20px;background:linear-gradient(180deg,color-mix(in srgb,var(--panel) 96%,var(--accent) 4%),var(--panel2));box-shadow:0 24px 60px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.03) inset;overflow:hidden;animation:uiSheetIn .18s ease-out}
@keyframes uiSheetIn{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
.uiSettingsHead{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:16px 18px 12px;border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
.uiSettingsHead h2{margin:0 0 2px;font-size:20px;letter-spacing:.04em}
.uiSettingsHead p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.uiCloseBtn{flex:0 0 auto;width:38px;height:38px;border-radius:50%;padding:0;display:grid;place-items:center;font-size:16px;line-height:1;background:transparent;border:1px solid color-mix(in srgb,var(--line) 80%,transparent);color:var(--muted)}
.uiCloseBtn:hover{color:var(--text);border-color:var(--accent)}
.uiSettingsBody{overflow:auto;padding:16px 18px;display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:18px;align-items:start}
.uiSettingsControls h3{margin:0 0 10px;font-size:13px;letter-spacing:.12em;color:var(--muted);font-weight:700}
.uiSettingsControls h3:not(:first-child){margin-top:18px}
.uiThemeGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.uiThemeCard{display:flex;align-items:center;gap:10px;text-align:left;padding:9px;border-radius:14px;border:1px solid color-mix(in srgb,var(--line) 85%,transparent);background:color-mix(in srgb,var(--panel2) 80%,transparent);color:var(--text);cursor:pointer;transition:border-color .15s,transform .15s,background .15s}
.uiThemeCard:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--sw-a) 60%,var(--line))}
.uiThemeCard.active{border-color:var(--sw-a);background:color-mix(in srgb,var(--sw-a) 12%,var(--panel2));box-shadow:0 0 0 1px var(--sw-a) inset}
.uiSwatch{flex:0 0 auto;width:44px;height:44px;border-radius:11px;background:linear-gradient(160deg,var(--sw-panel),var(--sw-bg));border:1px solid var(--sw-line);display:grid;grid-template-columns:1fr;align-content:center;gap:4px;padding:7px;position:relative}
.uiSwatch i{display:block;height:6px;border-radius:3px;background:var(--sw-line)}
.uiSwatch i:first-child{background:var(--sw-a);width:80%}
.uiSwatch i:nth-child(2){background:var(--sw-b);width:55%}
.uiThemeCard.active .uiSwatch::after{content:"✓";position:absolute;right:-6px;top:-6px;width:18px;height:18px;border-radius:50%;background:var(--sw-a);color:#0b0f14;font-size:11px;font-weight:900;display:grid;place-items:center}
.uiThemeText{display:grid;gap:1px;min-width:0}
.uiThemeText b{font-size:15px;color:var(--text)}
.uiThemeText small{font-size:11.5px;color:var(--muted);line-height:1.35}
.uiQuickAccents{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.uiDot{width:30px;height:30px;padding:0;border-radius:50%;background:var(--dot);border:2px solid color-mix(in srgb,var(--dot) 60%,#000);cursor:pointer;transition:transform .12s}
.uiDot:hover{transform:scale(1.1)}
.uiDot.active{box-shadow:0 0 0 2px var(--panel2),0 0 0 4px var(--dot)}
.uiColorGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;opacity:.75}
.uiColorGrid.active{opacity:1}
.uiColorPicker{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid color-mix(in srgb,var(--line) 85%,transparent);border-radius:12px;padding:8px 10px 8px 12px;background:color-mix(in srgb,var(--panel2) 80%,transparent);color:var(--text);margin:0;font-size:14px}
.uiColorPicker input{width:52px;height:32px;padding:2px;border-radius:8px;cursor:pointer}
.uiSettingsPreview{position:sticky;top:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:linear-gradient(180deg,var(--bg),var(--bg2));font-size:12px}
.uiMiniTop{display:flex;align-items:center;gap:6px;padding:8px;background:color-mix(in srgb,var(--panel) 85%,#000);border-bottom:1px solid var(--line)}
.uiMiniLogo{font-family:"Noto Serif TC",serif;font-weight:900;color:var(--text);letter-spacing:.1em}
.uiMiniSearch{flex:1;height:14px;border-radius:7px;background:var(--panel2);border:1px solid var(--line)}
.uiMiniBtn{width:26px;height:14px;border-radius:7px;background:color-mix(in srgb,var(--accent) 35%,var(--panel2));border:1px solid var(--accent)}
.uiMiniMain{display:grid;grid-template-columns:52px 1fr;gap:8px;padding:8px}
.uiMiniNav{display:grid;gap:5px;align-content:start}
.uiMiniNav i{height:12px;border-radius:5px;background:var(--panel);border:1px solid var(--line)}
.uiMiniNav i.on{background:color-mix(in srgb,var(--accent) 30%,var(--panel));border-color:var(--accent)}
.uiMiniCard{display:grid;gap:6px;align-content:start;padding:9px;border-radius:10px;background:var(--panel);border:1px solid var(--line);color:var(--text)}
.uiMiniCard b{font-size:13px}
.uiMiniTag{justify-self:start;padding:0 7px;border-radius:999px;font-size:10.5px;color:var(--accent2);border:1px solid color-mix(in srgb,var(--accent2) 60%,transparent)}
.uiMiniLine{height:6px;border-radius:3px;background:color-mix(in srgb,var(--text) 18%,transparent)}
.uiMiniLine.short{width:60%}
.uiMiniAction{justify-self:end;padding:2px 10px;border-radius:7px;font-size:11px;font-weight:700;background:var(--accent);color:#0b0f14}
.uiSettingsFooter{display:flex;justify-content:space-between;gap:10px;padding:12px 18px;border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent);background:color-mix(in srgb,var(--panel2) 92%,#000)}
.uiDoneBtn{background:var(--accent);color:#0b0f14;border:1px solid var(--accent);font-weight:800;padding-inline:22px}
body[data-layout="wide"] .app{max-width:1680px}
body[data-layout="wide"] .topline{max-width:1680px}
body[data-layout="wide"] .reader{max-width:1260px!important}
body[data-layout="wide"] .latestQueryLayout{grid-template-columns:minmax(0,1fr) 360px}
body[data-theme="azure"],body[data-theme="violet"],body[data-theme="ember"],body[data-theme="ink"],body[data-theme="cinnabar"],body[data-theme="custom"]{background:linear-gradient(180deg,var(--bg),color-mix(in srgb,var(--bg) 72%,var(--bg2)) 48%,var(--bg2))}
body[data-card-style="flat"] .card,body[data-card-style="flat"] .kv,body[data-card-style="flat"] .resultItem{box-shadow:none;background:var(--panel2)}
body[data-density="compact"] .card{padding:12px;border-radius:18px}
body[data-density="compact"] .content{padding-top:10px}
body[data-density="compact"] .kv,body[data-density="compact"] .resultItem{padding:8px}
body[data-density="compact"] input,body[data-density="compact"] select{padding:9px}
body[data-density="compact"] .navBtn{padding:10px}
body[data-motion="reduced"] *,body[data-motion="reduced"] *::before,body[data-motion="reduced"] *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
@media(max-width:560px){.uiSettingsPanel{place-items:end center;padding:0}.uiSettingsCard{max-height:92dvh;border-radius:20px 20px 0 0;animation-name:uiSheetUp}.uiSettingsBody{grid-template-columns:1fr;gap:14px;padding:14px 16px}.uiSettingsHead{padding:14px 16px 10px}.uiSettingsFooter{padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px))}.uiThemeGrid{grid-template-columns:1fr 1fr;gap:8px}.uiThemeCard{padding:7px;gap:8px}.uiSwatch{width:38px;height:38px;padding:6px}.uiSettingsPreview{position:static}.uiColorGrid{grid-template-columns:1fr 1fr}}

/* V281 mobile header: keep the maker signature visible. */
@media(max-width:520px){
  .topline{
    grid-template-columns:auto minmax(0,1fr) auto!important;
    grid-template-areas:
      "menu brand settings"
      "maker maker maker";
  }
  .menuBtn{grid-area:menu}
  .brand{grid-area:brand}
  .shellSettingsBtn{grid-area:settings}
  .maker{
    grid-area:maker;
    display:block!important;
    min-width:0;
    text-align:left!important;
    font-size:11px!important;
    line-height:1.35;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    opacity:.92;
    padding-left:2px;
  }
}

/* V288 background artwork + persistent desktop side navigation. */
html,body{
  background:
    url("../assets/home_bg_desktop.png?v=2606054") center top / cover fixed no-repeat,
    #07111f!important;
}

.topbar{
  background:rgba(4,8,15,.78)!important;
}
.card,.drawer,.latestSidePane,.resultItem,.kv{
  backdrop-filter:blur(10px);
}
@media(min-width:980px){
  .menuBtn{
    display:none!important;
  }
  .app{
    max-width:none!important;
    margin:0!important;
    padding:18px 18px 18px 318px!important;
  }
  .drawer{
    position:fixed!important;
    z-index:40!important;
    top:96px!important;
    bottom:18px!important;
    left:18px!important;
    width:280px!important;
    max-width:280px!important;
    min-width:0!important;
    height:auto!important;
    transform:none!important;
    border:1px solid color-mix(in srgb,var(--accent2) 36%,var(--line))!important;
    border-radius:22px!important;
    box-shadow:0 18px 48px rgba(0,0,0,.36)!important;
    padding-top:0!important;
    overflow:hidden!important;
  }
  .drawerHead{
    padding:12px!important;
  }
  .drawerBody{
    padding:10px!important;
  }
  .content{
    width:100%!important;
    padding:0 0 80px!important;
  }
  .reader{
    max-width:1500px!important;
    margin:0 auto!important;
  }
}
/* V289 layout polish: cleaner header, flush side menu, compact support planner. */
@media(min-width:980px){
  .topbar{
    padding:10px 18px!important;
  }
  .topline{
    max-width:none!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    gap:14px!important;
  }
  .brandTitle{
    font-size:20px!important;
  }
  .shellSettingsBtn{
    min-width:128px;
    text-align:center;
    padding:9px 16px!important;
  }
  .maker{
    font-size:13px!important;
    opacity:.92;
  }
  .app{
    padding:18px 18px 18px 292px!important;
  }
  .drawer{
    left:0!important;
    top:64px!important;
    bottom:0!important;
    width:274px!important;
    max-width:274px!important;
    border-left:0!important;
    border-top:0!important;
    border-bottom:0!important;
    border-radius:0 22px 22px 0!important;
    background:linear-gradient(180deg,rgba(9,16,31,.92),rgba(13,18,34,.88))!important;
  }
  .drawerHead{
    padding:14px 14px 10px!important;
  }
  .navGroup{
    border-radius:16px;
  }
}
.supportPlan{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  padding:10px;
}
.supportPlan h3{
  grid-column:1 / -1;
  margin:0 0 2px!important;
}
.supportPlan .kv{
  margin:0!important;
  padding:8px;
}
.supportPlan .k{
  margin-bottom:5px;
}
.supportPlan .v{
  display:grid;
  grid-template-columns:minmax(0,1fr) 74px;
  gap:6px;
  align-items:center;
}
.supportPlan .v label{
  display:none;
}
.supportPlan select{
  min-height:38px;
  padding:8px 9px;
  border-radius:10px;
  font-size:14px;
}
.supportSaveBar{
  margin:8px 0 10px!important;
}
.supportSaveBar button,.supportSaveBar select{
  min-height:38px;
  padding:8px 10px!important;
}
section.card:has(.supportPlan){
  padding:12px;
}
section.card:has(.supportPlan) > h1{
  font-size:22px;
  margin-bottom:4px;
}
section.card:has(.supportPlan) > h2{
  font-size:16px;
  margin-bottom:8px;
}
section.card:has(.supportPlan) > .notice{
  padding:9px 11px;
  margin:8px 0 10px;
  font-size:13px;
}
@media(max-width:1180px){
  .supportPlan{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:640px){
  .supportPlan{
    grid-template-columns:1fr;
  }
  .supportPlan .v{
    grid-template-columns:minmax(0,1fr) 84px;
  }
}

/* V291 clean home and finalize desktop app shell. */
.homeBlank{
  min-height:calc(100vh - 112px);
  position:relative;
  padding:0;
  pointer-events:none;
}
.homeLogo{
  display:block;
  position:absolute;
  top:22px;
  left:24px;
  width:min(190px,32vw);
  height:auto;
  filter:drop-shadow(0 12px 18px rgba(0,0,0,.58));
}
@media(min-width:980px){
  .topline{
    grid-template-columns:minmax(0,1fr) auto auto!important;
  }
  .maker{
    order:2;
  }
  .shellSettingsBtn{
    order:3;
  }
  .drawer{
    left:0!important;
    top:60px!important;
    bottom:0!important;
    width:282px!important;
    max-width:282px!important;
    border-radius:0!important;
    border-left:0!important;
    border-bottom:0!important;
    border-top:1px solid color-mix(in srgb,var(--accent2) 25%,var(--line))!important;
  }
  .app{
    padding-left:300px!important;
  }
}
@media(max-width:979px){
  .homeBlank{
    min-height:calc(100vh - 104px);
  }
}

/* V293 detail polish: fixed desktop menu, compare highlights, cleaner borders. */
.supportBest{
  color:#fde047!important;
  font-weight:1000!important;
  background:linear-gradient(90deg,rgba(250,204,21,.18),rgba(45,212,191,.08))!important;
  text-shadow:0 0 10px rgba(250,204,21,.28);
}
.compareNameRow{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:10px;
  margin:10px 0 14px;
}
.compareNameCard{
  border:1px solid color-mix(in srgb,#fde047 45%,var(--line));
  border-radius:16px;
  padding:12px;
  background:linear-gradient(135deg,rgba(250,204,21,.16),rgba(8,18,37,.72));
}
.compareNameCard.alt{
  border-color:color-mix(in srgb,var(--accent) 55%,var(--line));
  background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 18%,transparent),rgba(8,18,37,.72));
}
.compareNameCard span,.compareNameCard small{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.compareNameCard b{
  display:block;
  margin:3px 0;
  color:#fff;
  font-size:20px;
}
.supportChoiceCard{
  border-color:color-mix(in srgb,var(--accent2) 38%,var(--line))!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--panel2) 92%,var(--accent2)),color-mix(in srgb,var(--panel) 88%,transparent))!important;
}
.mainComparePage{
  max-width:none;
}
.mainCompareGrid{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px;
}
.mainCompareGrid .comparePickCard{
  min-width:0;
}
.mainCompareGrid .comparePickCard .v{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.mainCompareGrid select{
  width:100%;
  min-width:0;
}
.mainCompareGrid label{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  font-weight:900;
}
.mainCompareAction{
  max-width:360px;
}
@media(max-width:1380px){
  .mainCompareGrid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:1080px){
  .mainCompareGrid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(min-width:980px){
  .closeOnly{
    display:none!important;
  }
  .drawer{
    border-right:1px solid color-mix(in srgb,var(--accent2) 42%,var(--line))!important;
    box-shadow:8px 0 34px rgba(0,0,0,.22)!important;
  }
  .drawerHead{
    justify-content:flex-start!important;
    border-bottom:1px solid color-mix(in srgb,var(--accent2) 30%,var(--line))!important;
    background:linear-gradient(135deg,rgba(96,165,250,.08),rgba(45,212,191,.04))!important;
  }
  .drawerHead .muted{
    display:none!important;
  }
  .navGroup{
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    padding:8px!important;
    margin:0!important;
  }
  .navBtn{
    border-color:color-mix(in srgb,var(--accent2) 26%,var(--line))!important;
    background:rgba(8,18,37,.56)!important;
    margin-bottom:7px;
    border-radius:13px!important;
  }
  .navBtn:hover{
    transform:translateX(2px);
  }
  .navBtn.sub{
    margin-left:10px;
    width:calc(100% - 10px);
    opacity:.95;
  }
}
@media(max-width:680px){
  .mainCompareGrid{
    grid-template-columns:1fr!important;
  }
  .mainCompareAction{
    max-width:none;
  }
  .compareNameRow{
    grid-template-columns:1fr;
  }
}

/* V294 mobile home art + clearer search result panels. */
.latestMainPane .results,
.monsterSearchPage .results,
.itemAdvancedSearchPage .results{
  margin-top:14px;
  padding:10px;
  border:1px solid color-mix(in srgb,var(--accent2) 34%,var(--line));
  border-radius:18px;
  background:
    linear-gradient(180deg,rgba(4,10,22,.76),rgba(8,18,37,.88)),
    color-mix(in srgb,var(--panel2) 88%,#000);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 14px 34px rgba(0,0,0,.18);
}
.latestMainPane .results:empty,
.monsterSearchPage .results:empty,
.itemAdvancedSearchPage .results:empty{
  display:none;
}
.resultItem{
  position:relative;
  border-color:color-mix(in srgb,var(--accent2) 32%,var(--line))!important;
  background:
    linear-gradient(135deg,rgba(96,165,250,.07),rgba(45,212,191,.035)),
    color-mix(in srgb,var(--panel2) 94%,#000)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.16);
}
.resultItem::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--accent2),var(--accent));
  opacity:.75;
}
.resultItem .rName,
.resultItem .rSub{
  padding-left:6px;
}
.resultItem.withAsset{
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-height:76px;
}
.resultItem.withAsset .rName,
.resultItem.withAsset .rSub{
  padding-left:0;
}
.resultText{
  min-width:0;
}
.assetThumb{
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(125,211,252,.24);
  border-radius:10px;
  background:rgba(3,7,18,.38);
  overflow:hidden;
}
.assetThumb img{
  max-width:52px;
  max-height:52px;
  width:auto;
  height:auto;
  object-fit:contain;
  image-rendering:auto;
}
.monsterThumb img{
  max-width:54px;
  max-height:54px;
}
.itemThumb img{
  width:52px;
  height:52px;
  max-width:52px;
  max-height:52px;
}
.assetDetailHead{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
  margin:4px 0 12px;
}
.assetDetailHead h1{
  margin:0;
  min-width:0;
}
.assetHero{
  flex:0 0 auto;
  width:86px;
  height:86px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(125,211,252,.28);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(15,23,42,.82),rgba(8,18,37,.72));
  overflow:hidden;
}
.assetHero img{
  max-width:78px;
  max-height:78px;
  object-fit:contain;
}
.monsterHero{
  width:132px;
  height:132px;
}
.monsterHero img{
  max-width:122px;
  max-height:122px;
}
.itemHero{
  width:150px;
  height:150px;
}
.itemHero img{
  width:138px;
  height:138px;
  max-width:138px;
  max-height:138px;
}
.assetPreviewPanel{
  display:grid;
  grid-template-columns:minmax(260px,32%) minmax(0,1fr);
  gap:14px;
  align-items:stretch;
  margin:10px 0 12px;
}
.assetArtPanel{
  border:1px solid color-mix(in srgb,var(--accent) 48%,var(--line));
  border-radius:18px;
  background:
    linear-gradient(135deg,rgba(45,212,191,.16),rgba(250,204,21,.07)),
    color-mix(in srgb,var(--panel2) 86%,#000);
  padding:14px;
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}
.assetArtPanel h1{
  margin:0;
  min-width:0;
  font-size:24px;
  line-height:1.2;
}
.monsterPreviewPanel .assetArtPanel:has(.beastTag){flex-wrap:wrap;justify-content:center;align-content:center;gap:10px}
.monsterPreviewPanel .assetArtPanel:has(.beastTag) h1{flex-basis:100%;text-align:center;overflow-wrap:anywhere}
.monsterPreviewPanel .assetArtPanel .beastTag{flex-shrink:0;white-space:nowrap}
.assetInfoPanel{
  min-width:0;
  display:grid;
  gap:10px;
  align-content:start;
}
.assetInfoPanel .kvGrid{
  margin:0;
}
.assetInfoPanel .kv{
  padding:9px 10px;
  border-radius:12px;
}
.assetInfoPanel .k{
  font-size:11px;
  margin-bottom:2px;
}
.assetInfoPanel .v{
  font-size:14px;
  line-height:1.25;
}
.monsterPreviewPanel .monsterTopActions{
  margin:0;
}
.monsterPreviewPanel .monsterPanel{
  padding:10px;
}
.monsterPreviewPanel .monsterPanel h3{
  margin:0 0 8px;
}
.monsterPreviewPanel .monsterDataGrid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.monsterPreviewPanel .monsterStatGrid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.monsterPreviewPanel .monsterHero{
  width:210px;
  height:210px;
  flex:0 0 210px;
  border-radius:18px;
}
.monsterPreviewPanel .monsterHero img{
  width:198px;
  height:198px;
  max-width:198px;
  max-height:198px;
}
.itemPreviewPanel .itemDataGrid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.itemDetailExtra{
  margin-top:10px;
}
.itemDetailExtra .itemFullRow{
  grid-column:1 / -1;
}
@media(max-width:900px){
  .assetPreviewPanel{
    grid-template-columns:1fr;
  }
  .assetArtPanel{
    padding:12px;
  }
  .assetArtPanel h1{
    font-size:20px;
  }
  .monsterPreviewPanel .monsterDataGrid,
  .monsterPreviewPanel .monsterStatGrid,
  .itemPreviewPanel .itemDataGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .monsterPreviewPanel .monsterHero{
    width:150px;
    height:150px;
    flex-basis:150px;
  }
  .monsterPreviewPanel .monsterHero img{
    width:140px;
    height:140px;
    max-width:140px;
    max-height:140px;
  }
  .itemHero{
    width:112px;
    height:112px;
  }
  .itemHero img{
    width:104px;
    height:104px;
    max-width:104px;
    max-height:104px;
  }
}
.soulHero{
  width:108px;
  height:108px;
}
.soulHero img{
  max-width:100px;
  max-height:100px;
}
.soulPreviewPanel{
  display:grid;
  grid-template-columns:minmax(260px,34%) minmax(0,1fr);
  gap:14px;
  align-items:stretch;
  margin-top:12px;
}
.soulPreviewPanel .soulNotice{
  display:flex;
  align-items:center;
  min-height:210px;
  margin:0;
}
.soulPreviewPanel .assetDetailHead{
  align-items:center;
  gap:18px;
}
.soulPreviewPanel .soulHero{
  width:174px;
  height:174px;
  flex:0 0 174px;
  border-radius:18px;
}
.soulPreviewPanel .soulHero img{
  width:162px;
  height:162px;
  max-width:162px;
  max-height:162px;
}
.soulPreviewStats{
  min-width:0;
}
.soulPreviewStats h3{
  margin:0 0 8px;
}
.soulPreviewStats .soulStats{
  margin-top:0;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.soulPreviewStats .soulStat{
  min-height:54px;
}
.soulMetaLine{
  display:block;
  margin-top:4px;
}
.soulHero img:not([src]),.soulHero img[src=""]{
  display:none;
}
.soulNotice .assetDetailHead{
  margin:0;
}
@media(max-width:760px){
  .soulPreviewPanel{
    grid-template-columns:1fr;
  }
  .soulPreviewPanel .soulNotice{
    min-height:0;
  }
  .soulPreviewPanel .soulHero{
    width:132px;
    height:132px;
    flex-basis:132px;
  }
  .soulPreviewPanel .soulHero img{
    width:122px;
    height:122px;
    max-width:122px;
    max-height:122px;
  }
}
.resultItem:hover{
  border-color:var(--accent2)!important;
  background:
    linear-gradient(135deg,rgba(96,165,250,.18),rgba(45,212,191,.09)),
    color-mix(in srgb,var(--panel2) 82%,var(--accent2))!important;
  transform:translateY(-1px);
}
.latestSidePane{
  background:
    linear-gradient(180deg,rgba(6,14,30,.86),rgba(8,18,37,.94)),
    color-mix(in srgb,var(--panel2) 90%,#000)!important;
}
.latestList{
  padding-top:2px;
}
@media(max-width:700px){
  html,body{
    background:
      url("../assets/home_bg_mobile.png?v=2606054") center top / cover fixed no-repeat,
      #07111f!important;
  }
  .homeBlank{
    min-height:calc(100vh - 104px);
  }
  .homeLogo{
    top:14px;
    left:14px;
    width:min(150px,40vw);
  }
  .latestMainPane .results,
  .monsterSearchPage .results,
  .itemAdvancedSearchPage .results{
    padding:8px;
    border-radius:16px;
    background:rgba(5,12,25,.88);
  }
  .resultItem{
    border-radius:13px;
    padding:11px 10px 11px 12px;
  }
  .resultItem.withAsset{
    grid-template-columns:40px minmax(0,1fr);
    min-height:58px;
    gap:9px;
  }
  .assetThumb{
    width:40px;
    height:40px;
  }
  .assetThumb img{
    max-width:36px;
    max-height:36px;
  }
  .latestSidePane{
    border-color:color-mix(in srgb,var(--accent2) 34%,var(--line))!important;
  }
}

/* V310 visitor counter at the bottom of the navigation menu. */
.drawerBody{
  display:flex;
  flex-direction:column;
  min-height:0;
}
.visitorCounter{
  margin-top:auto;
  padding:12px 8px 4px;
  text-align:center;
  color:var(--muted);
}
.visitorCounterTitle{
  margin-bottom:7px;
  font-size:12px;
  font-weight:1000;
  letter-spacing:.08em;
  color:color-mix(in srgb,var(--accent2) 74%,#fff);
}
.visitorCounter img{
  display:inline-block;
  max-width:100%;
  height:auto;
  border-radius:999px;
  filter:drop-shadow(0 8px 14px rgba(0,0,0,.28));
}

/* V299 shop sale information. */
.shopPage{
  max-width:1180px;
}
.shopHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.shopHeader h1{
  margin:0 0 5px;
}
.shopCount{
  flex:0 0 auto;
  border:1px solid color-mix(in srgb,var(--accent2) 38%,var(--line));
  border-radius:14px;
  padding:9px 12px;
  background:rgba(8,18,37,.78);
  color:#bfdbfe;
  font-weight:1000;
}
.shopTools{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  gap:10px;
  align-items:center;
  margin:0 0 12px;
}
.shopTools input{
  max-width:none;
}
.shopSearchBox{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.shopSearchBtn{
  min-height:46px;
  border-color:rgba(45,212,191,.38);
  color:#ccfbf1;
}
.shopSearchNote{
  grid-column:1;
  color:#fde68a;
  font-size:13px;
  font-weight:900;
  line-height:1.4;
}
.shopSuggestions{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  color:#bfdbfe;
  font-size:13px;
  font-weight:900;
}
.shopSuggestBtn{
  border:1px solid rgba(45,212,191,.36);
  background:linear-gradient(135deg,rgba(13,148,136,.2),rgba(96,165,250,.12));
  color:#eaf2ff;
  border-radius:999px;
  padding:7px 11px;
  font-weight:1000;
}
.shopSuggestBtn:hover{
  border-color:var(--accent);
  background:linear-gradient(135deg,rgba(13,148,136,.32),rgba(96,165,250,.2));
}
.shopModeTabs{
  display:inline-flex;
  gap:6px;
  border:1px solid color-mix(in srgb,var(--accent2) 32%,var(--line));
  border-radius:999px;
  padding:4px;
  background:rgba(8,18,37,.72);
}
.shopModeTabs button{
  border:0;
  border-radius:999px;
  background:transparent;
  color:#bfdbfe;
  padding:8px 13px;
  font-weight:1000;
}
.shopModeTabs button.active{
  background:linear-gradient(135deg,#f59e0b,#38bdf8);
  color:#06111f;
}
.shopLayout{
  display:grid;
  grid-template-columns:minmax(210px,260px) minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.shopPicker{
  display:grid;
  grid-template-columns:minmax(180px,300px) minmax(260px,1fr) auto;
  gap:12px;
  align-items:end;
  margin:0 0 14px;
  padding:12px;
  border:1px solid rgba(45,212,191,.24);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(8,18,37,.72),rgba(15,23,42,.44));
}
.shopSelectLabel{
  display:grid;
  gap:6px;
  color:#7dd3fc;
  font-size:12px;
  font-weight:1000;
  letter-spacing:0;
}
.shopSelectLabel select{
  width:100%;
  min-height:46px;
  background:#10111b;
  color:var(--text);
  border:1px solid rgba(245,158,11,.45);
  border-radius:12px;
  padding:10px 12px;
  font-size:16px;
  font-weight:900;
}
.shopPickerMode{
  display:flex;
  align-items:end;
  justify-content:flex-end;
  min-height:46px;
}
.shopSearchHint{
  grid-column:1 / -1;
  border:1px solid rgba(245,158,11,.28);
  border-radius:12px;
  background:rgba(245,158,11,.11);
  color:#fde68a;
  padding:9px 11px;
  font-weight:900;
}
.mapMonsterFooterActions{
  justify-content:flex-end;
}
.shopSideNav{
  position:sticky;
  top:82px;
  display:grid;
  gap:7px;
  border:1px solid color-mix(in srgb,var(--accent2) 32%,var(--line));
  border-radius:16px;
  background:rgba(5,12,25,.78);
  padding:10px;
}
.shopSideTitle{
  padding:4px 6px 8px;
  color:#bfdbfe;
  font-weight:1000;
  font-size:13px;
}
.shopSideBtn{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  border:1px solid transparent;
  background:transparent;
  color:#eaf2ff;
  border-radius:10px;
  padding:9px 10px;
  text-align:left;
  font-weight:950;
}
.shopSideBtn span{
  min-width:0;
}
.shopSideBtn small{
  color:#93c5fd;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.shopSideBtn:hover,
.shopSideBtn.active{
  border-color:var(--accent);
  background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 21%,transparent),color-mix(in srgb,var(--accent2) 15%,transparent));
}
.shopMainPane{
  min-width:0;
}
.shopBlocks{
  display:grid;
  gap:14px;
}
.shopBlock{
  border:1px solid color-mix(in srgb,var(--accent2) 30%,var(--line));
  border-radius:18px;
  background:rgba(5,12,25,.82);
  overflow:hidden;
}
.shopBlockHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid rgba(148,163,184,.18);
}
.shopBlockHead h2{
  margin:0;
  font-size:18px;
}
.shopBlockHead span{
  color:#bfdbfe;
  font-weight:900;
  white-space:nowrap;
}
.shopBlockHeadActions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.shopMapBtn{
  border-color:rgba(45,212,191,.38);
  color:#ccfbf1;
}
.shopItemList{
  display:grid;
  gap:8px;
  padding:12px;
}
.shopItemCard{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  border:1px solid rgba(45,212,191,.24);
  background:#0b1527;
  color:#eaf2ff;
  border-radius:14px;
  padding:8px 10px;
  text-align:left;
}
.shopItemCard:hover{
  border-color:var(--accent);
  background:#10223a;
}
.shopItemThumb{
  width:44px;
  height:44px;
  border:1px solid rgba(96,165,250,.26);
  border-radius:10px;
  background:#07111f;
  display:grid;
  place-items:center;
}
.shopItemThumb img{
  max-width:38px;
  max-height:38px;
  object-fit:contain;
  image-rendering:auto;
}
.emptyThumb:after{
  content:"";
  width:18px;
  height:18px;
  border:1px solid rgba(148,163,184,.3);
  border-radius:6px;
}
.shopItemText{
  min-width:0;
  display:block;
}
.shopItemText strong{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.shopItemText small{
  display:none;
}
.shopItemPrice{
  color:#facc15;
  font-weight:1000;
  font-size:17px;
  font-variant-numeric:tabular-nums;
}
.shopEmptySide{
  padding:12px;
}
.shopTableWrap{
  border:0;
  border-radius:0;
}
.shopTable{
  min-width:0;
  table-layout:fixed;
}
.shopTableWrap .shopTable{
  width:100%;
  min-width:0;
  max-width:100%;
}
.shopTable th,
.shopTable td{
  padding:9px 8px;
  font-size:13px;
}
.shopTable th:nth-child(1){
  width:46%;
}
.shopTable th:nth-child(2),
.shopTable th:nth-child(3){
  width:27%;
}
.shopTable th:nth-child(2),
.shopTable th:nth-child(3),
.shopTable td:nth-child(2),
.shopTable td:nth-child(3),
.shopTable .num{
  text-align:right;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.shopItemLink{
  display:block;
  width:100%;
  border:0;
  background:transparent;
  color:#fff;
  text-align:left;
  font-weight:1000;
  padding:0;
}
.shopItemLink small,
.shopDropTable small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.shopItemLink:hover{
  color:#67e8f9;
}
.shopItemDetail h2{
  margin:18px 0 10px;
  font-size:18px;
}
.shopDropTable{
  min-width:560px;
}
.shopDropTable tr[data-monster]{
  cursor:pointer;
}
@media(max-width:700px){
  .shopHeader{
    display:block;
  }
  .shopCount{
    display:inline-flex;
    margin-top:10px;
  }
  .shopTools input{
    max-width:none;
  }
  .shopTools{
    grid-template-columns:1fr;
  }
  .shopSearchNote{
    grid-column:auto;
  }
  .shopModeTabs{
    justify-self:start;
  }
  .shopLayout{
    grid-template-columns:1fr;
  }
  .shopPicker{
    grid-template-columns:1fr;
    padding:10px;
  }
  .shopPickerMode{
    justify-content:flex-start;
  }
  .shopPickerMode .shopModeTabs{
    width:100%;
  }
  .shopPickerMode .shopModeTabs button{
    flex:1 1 0;
  }
  .shopSideNav{
    position:static;
  }
  .shopBlockHead{
    align-items:flex-start;
    display:grid;
  }
  .shopBlockHead h2{
    font-size:16px;
  }
  .shopTable th,
  .shopTable td{
    padding:6px 3px;
    font-size:10px;
  }
  .shopTableWrap{
    overflow:hidden;
  }
  .shopTableWrap .shopTable{
    min-width:0!important;
  }
  .shopTable th{
    font-size:9px;
  }
  .shopTable th:nth-child(1){
    width:30%;
  }
  .shopTable th:nth-child(2),
  .shopTable th:nth-child(3){
    width:35%;
  }
  .shopTable td:nth-child(2),
  .shopTable td:nth-child(3),
  .shopTable .num{
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
    line-height:1.2;
  }
  .shopItemLink{
    font-size:10px;
    line-height:1.3;
    overflow-wrap:anywhere;
  }
  .shopItemLink small{
    font-size:10px;
  }
  .shopItemCard{
    grid-template-columns:42px minmax(0,1fr);
  }
  .shopItemThumb{
    width:38px;
    height:38px;
  }
  .shopItemThumb img{
    max-width:34px;
    max-height:34px;
  }
  .shopItemPrice{
    grid-column:2;
    justify-self:start;
    font-size:15px;
  }
}

/* V285 mobile item detail: compact one-page reading. */
@media(max-width:900px){
  .itemCompact.card{
    padding:10px;
    border-radius:16px;
    margin-bottom:8px;
    max-width:100%!important;
  }
  .itemCompact h1{
    font-size:20px;
    line-height:1.2;
    margin:8px 0 8px;
  }
  .itemCompact .backBtn{
    padding:7px 10px;
    border-radius:999px;
    font-size:13px;
    min-height:0;
  }
  .itemCompact .kvGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }
  .itemCompact.monsterCompact .monsterGrid{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  .itemCompact.monsterCompact .monsterPanel{
    padding:8px;
    border-radius:13px;
  }
  .itemCompact.monsterCompact .monsterPanel h3{
    margin:0 0 6px;
    font-size:14px;
  }
  .itemCompact .itemDataGrid,
  .itemCompact .itemAbilityGrid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
  }
  .itemCompact .kv{
    padding:7px 8px;
    border-radius:11px;
    min-width:0;
  }
  .itemCompact .k{
    font-size:10px;
    margin-bottom:2px;
    line-height:1.2;
  }
  .itemCompact .v{
    font-size:13px;
    line-height:1.28;
    word-break:break-word;
  }
  .itemCompact .kv{
    overflow:hidden;
  }
  .itemCompact .kv .v{
    max-height:4.1em;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
  .itemCompact .kv{
    min-height:52px;
    contain:layout;
  }
  .itemCompact .itemFullRow{
    grid-column:1 / -1;
  }
  .itemCompact .itemDataGrid .kv:first-child,
  .itemCompact .itemDataGrid .kv:last-child{
    grid-column:1 / -1;
  }
  .itemCompact .itemHelpRow .v{
    max-height:7.6em;
    line-height:1.35;
  }
  .itemCompact .quick{
    margin-top:8px;
  }
  .itemCompact .quick button{
    padding:10px 12px;
    border-radius:13px;
    min-height:0;
    text-align:center;
  }
}

/* V312 final override: keep artwork in the right content area on desktop. */
@media(min-width:980px){
  html,body{
    background:
      url("../assets/home_bg_desktop.png?v=2606054") calc(50% + 141px) top / cover fixed no-repeat,
      #07111f!important;
  }
  .topbar{
    min-height:64px!important;
    padding:10px 18px!important;
    background:rgba(4,8,15,.84)!important;
  }
  .topline{
    max-width:none!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    align-items:center!important;
    gap:16px!important;
  }
  .brandTitle{
    font-size:30px!important;
    line-height:1.08!important;
    letter-spacing:.03em!important;
    text-shadow:0 3px 16px rgba(0,0,0,.52)!important;
  }
  .app{
    padding:0 0 0 282px!important;
    margin:0!important;
    max-width:none!important;
  }
  .drawer{
    top:64px!important;
    left:0!important;
    bottom:0!important;
    width:282px!important;
    max-width:282px!important;
    border-radius:0!important;
    border-left:0!important;
    border-top:1px solid color-mix(in srgb,var(--accent2) 28%,var(--line))!important;
    border-right:1px solid color-mix(in srgb,var(--accent2) 42%,var(--line))!important;
    background:linear-gradient(180deg,rgba(8,16,31,.97),rgba(10,16,29,.96))!important;
    box-shadow:10px 0 28px rgba(0,0,0,.18)!important;
  }
  .content{
    min-height:calc(100vh - 64px)!important;
    padding:0!important;
  }
  .reader{
    max-width:none!important;
    margin:0!important;
  }
  .homeBlank{
    min-height:calc(100vh - 64px)!important;
  }
}


/* V314 homepage full-image fit + fixed full-height side menu.
   不再額外疊落款；保留 Codex / 原圖內建落款。
*/
.maker,
#siteMaker{
  display:none!important;
}

/* 首頁由 .homeBlank 自己顯示底圖，避免 body cover 裁切。 */
html,body{
  background:#07111f!important;
}

/* 進首頁時不要因內容高度造成底圖被捲走。 */
body.isHomeView{
  overflow:hidden;
}
body.isHomeView .content{
  padding:0!important;
}
body.isHomeView .reader{
  max-width:none!important;
  width:100%!important;
  margin:0!important;
}

/* 桌機首頁：橫式底圖完整顯示，不裁切。 */
.homeBlank{
  position:relative!important;
  pointer-events:none;
  min-height:calc(100dvh - 60px)!important;
  height:calc(100dvh - 60px)!important;
  width:100%!important;
  background-image:url("../assets/home_bg_desktop.png?v=2606054")!important;
  background-size:contain!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-color:#07111f!important;
  overflow:hidden!important;
}

/* 桌機版：左側功能選單固定從 header 下緣到畫面底部，整排滿高。 */
@media(min-width:980px){
  .topbar{
    height:60px!important;
    min-height:60px!important;
    padding:10px 18px!important;
  }
  .topline{
    grid-template-columns:minmax(0,1fr) auto!important;
  }
  .app{
    max-width:none!important;
    margin:0!important;
    padding-left:282px!important;
    padding-top:0!important;
    padding-right:0!important;
    padding-bottom:0!important;
  }
  .drawer{
    position:fixed!important;
    left:0!important;
    top:60px!important;
    bottom:0!important;
    width:282px!important;
    max-width:282px!important;
    height:calc(100dvh - 60px)!important;
    transform:none!important;
    border-radius:0!important;
    border-left:0!important;
    border-bottom:0!important;
    border-top:1px solid color-mix(in srgb,var(--accent2) 25%,var(--line))!important;
    overflow:hidden!important;
  }
  .drawerBody{
    height:100%!important;
    overflow:auto!important;
    padding-bottom:22px!important;
  }
  body.isHomeView .app{
    padding-left:282px!important;
  }
  body.isHomeView .content{
    min-height:calc(100dvh - 60px)!important;
  }
}

/* 手機版：使用直式底圖，盡量一頁內完整顯示。 */
@media(max-width:979px){
  .topbar{
    position:relative!important;
    height:auto!important;
    min-height:128px!important;
    padding:calc(18px + env(safe-area-inset-top)) 14px 16px!important;
  }
  .topline{
    grid-template-columns:auto minmax(0,1fr) auto!important;
    grid-template-areas:"menu brand settings"!important;
    gap:14px!important;
  }
  .menuBtn{
    grid-area:menu;
    width:44px;
    min-width:44px;
    height:44px;
    padding:0!important;
    display:grid;
    place-items:center;
  }
  .brand{
    grid-area:brand;
  }
  .brandTitle{
    font-size:22px!important;
    line-height:1.2!important;
  }
  .shellSettingsBtn{
    grid-area:settings;
    font-size:15px!important;
    padding:10px 14px!important;
  }
  .content{
    padding:14px 12px calc(84px + var(--safe))!important;
  }
  body.isHomeView .content{
    padding:0!important;
  }
  .homeBlank{
    min-height:calc(100dvh - 128px)!important;
    height:calc(100dvh - 128px)!important;
    background-image:url("../assets/home_bg_mobile.png?v=2606054")!important;
    background-size:contain!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
  }
}

/* 很矮的手機或 Safari 工具列干擾時，略縮 header 高度，避免底圖需要捲動。 */
@media(max-width:520px) and (max-height:760px){
  .topbar{
    min-height:112px!important;
    padding-top:calc(14px + env(safe-area-inset-top))!important;
    padding-bottom:12px!important;
  }
  .brandTitle{
    font-size:20px!important;
  }
  .homeBlank{
    min-height:calc(100dvh - 112px)!important;
    height:calc(100dvh - 112px)!important;
  }
}


/* V315 mobile header compact fix.
   手機版：
   1. 上方列縮矮
   2. 「網頁外觀」完整顯示
   3. 首頁底圖重新用較矮 header 計算高度
*/
@media(max-width:979px){
  .topbar{
    position:relative!important;
    min-height:74px!important;
    height:auto!important;
    padding:calc(8px + env(safe-area-inset-top)) 10px 8px!important;
    overflow:hidden!important;
  }

  .topline{
    width:100%!important;
    max-width:none!important;
    grid-template-columns:44px minmax(0,1fr) 108px!important;
    grid-template-areas:"menu brand settings"!important;
    gap:8px!important;
    align-items:center!important;
  }

  .menuBtn{
    grid-area:menu!important;
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    padding:0!important;
    border-radius:16px!important;
    display:grid!important;
    place-items:center!important;
    font-size:20px!important;
  }

  .brand{
    grid-area:brand!important;
    min-width:0!important;
    overflow:hidden!important;
  }

  .brandTitle{
    font-size:20px!important;
    line-height:1.15!important;
    letter-spacing:.03em!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .shellSettingsBtn{
    grid-area:settings!important;
    width:108px!important;
    max-width:108px!important;
    min-width:0!important;
    height:44px!important;
    padding:0 10px!important;
    border-radius:999px!important;
    font-size:15px!important;
    line-height:44px!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }

  body.isHomeView .content{
    padding:0!important;
  }

  .homeBlank{
    min-height:calc(100dvh - 74px)!important;
    height:calc(100dvh - 74px)!important;
    background-image:url("../assets/home_bg_mobile.png?v=2606054")!important;
    background-size:contain!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
  }
}

/* 較窄手機再壓一點，避免右上按鈕被 Safari 邊界吃掉。 */
@media(max-width:390px){
  .topbar{
    padding-left:8px!important;
    padding-right:8px!important;
  }
  .topline{
    grid-template-columns:42px minmax(0,1fr) 100px!important;
    gap:7px!important;
  }
  .menuBtn{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
  }
  .brandTitle{
    font-size:18px!important;
  }
  .shellSettingsBtn{
    width:100px!important;
    max-width:100px!important;
    height:42px!important;
    line-height:42px!important;
    font-size:14px!important;
    padding:0 8px!important;
  }
  .homeBlank{
    min-height:calc(100dvh - 70px)!important;
    height:calc(100dvh - 70px)!important;
  }
}

/* 覆蓋前一版很矮手機的 112px header 設定，這版不要再留那麼高。 */
@media(max-width:520px) and (max-height:760px){
  .topbar{
    min-height:68px!important;
    padding-top:calc(7px + env(safe-area-inset-top))!important;
    padding-bottom:7px!important;
  }
  .homeBlank{
    min-height:calc(100dvh - 68px)!important;
    height:calc(100dvh - 68px)!important;
  }
}




/* V326 visitor counter dynamic badge.
   保留目前喜歡的版型，但數字改回真的會計數的 visitor badge。
   left_text 使用零寬字元，左右顏色相同，所以視覺上只像藍色數字膠囊。
*/
.visitorCounter{
  margin:auto 12px 14px!important;
  padding:14px 10px 12px!important;
  border-top:1px solid rgba(148,163,184,.22)!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  text-align:center!important;
  flex-wrap:nowrap!important;
}

.visitorCounterTitle{
  display:inline-flex!important;
  width:auto!important;
  margin:0!important;
  color:#b9d4ff!important;
  font-size:13px!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  line-height:1.15!important;
  white-space:nowrap!important;
}

.visitorCounterBadge{
  display:inline-block!important;
  width:auto!important;
  min-width:34px!important;
  height:22px!important;
  margin:0!important;
  border:0!important;
  border-radius:999px!important;
  vertical-align:middle!important;
}

.visitorCounterNumber,
.visitorCounterValue,
.visitorBadgeCrop,
.visitorBadgePill{
  display:none!important;
}

@media(min-width:980px){
  .visitorCounter{
    margin-top:auto!important;
    margin-bottom:16px!important;
  }
}

@media(max-width:979px){
  .visitorCounter{
    margin:auto 10px calc(16px + env(safe-area-inset-bottom,0px))!important;
    padding:14px 8px 12px!important;
    gap:8px!important;
  }
  .visitorCounterTitle{
    font-size:14px!important;
  }
  .visitorCounterBadge{
    min-width:36px!important;
    height:24px!important;
  }
}


/* V327 visitor counter format fix.
   保留會計數的 visitor badge，但用固定小盒子承載，
   避免 badge 隱形左側把「網頁瀏覽人數」擠歪。
*/
.visitorCounter{
  margin:auto 12px 14px!important;
  padding:14px 10px 12px!important;
  border-top:1px solid rgba(148,163,184,.22)!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  text-align:center!important;
  flex-wrap:nowrap!important;
}

.visitorCounterTitle{
  display:inline-flex!important;
  width:auto!important;
  margin:0!important;
  color:#b9d4ff!important;
  font-size:13px!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  line-height:1.15!important;
  white-space:nowrap!important;
}

.visitorCounterBadgeBox{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:22px!important;
  flex:0 0 34px!important;
  overflow:hidden!important;
  border-radius:999px!important;
  background:#0b84dc!important;
}

.visitorCounterBadgeBox .visitorCounterBadge{
  display:block!important;
  width:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  height:22px!important;
  margin:0!important;
  border:0!important;
  object-fit:cover!important;
  object-position:right center!important;
  transform:translateX(-6px)!important;
}

.visitorCounterBadge,
.visitorCounter img.visitorCounterBadge{
  border-radius:0!important;
}

.visitorCounterNumber,
.visitorCounterValue,
.visitorBadgeCrop,
.visitorBadgePill,
.visitorCounter > img{
  display:none!important;
}

@media(min-width:980px){
  .visitorCounter{
    margin-top:auto!important;
    margin-bottom:16px!important;
  }
}

@media(max-width:979px){
  .visitorCounter{
    margin:auto 10px calc(16px + env(safe-area-inset-bottom,0px))!important;
    padding:14px 8px 12px!important;
    gap:7px!important;
  }
  .visitorCounterTitle{
    font-size:14px!important;
  }
  .visitorCounterBadgeBox{
    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;
    height:24px!important;
    flex-basis:36px!important;
  }
  .visitorCounterBadgeBox .visitorCounterBadge{
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    height:24px!important;
    transform:translateX(-6px)!important;
  }
}

/* V328 support/contact links in the fixed menu. */
.siteSupportTools{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:auto;
  padding:10px 8px 4px;
}
.siteSupportTools + .visitorCounter{
  margin-top:0!important;
}
/* V359 visitor counter readability. */
.visitorCounter{
  gap:12px!important;
}
.visitorCounterTitle{
  font-size:16px!important;
  letter-spacing:.03em!important;
}
.visitorCounterBadgeBox{
  width:auto!important;
  min-width:76px!important;
  max-width:none!important;
  height:42px!important;
  flex:0 0 auto!important;
  overflow:visible!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:3px 8px!important;
  border:1px solid rgba(74,222,128,.75)!important;
  border-radius:999px!important;
  background:radial-gradient(circle at 50% 35%,rgba(34,197,94,.18),rgba(2,8,6,.98) 68%)!important;
  box-shadow:inset 0 0 12px rgba(74,222,128,.22),0 0 12px rgba(34,197,94,.18)!important;
}
.visitorCounterBadgeBox .visitorCounterBadge{
  width:auto!important;
  min-width:76px!important;
  max-width:none!important;
  height:34px!important;
  object-fit:contain!important;
  transform:none!important;
  filter:drop-shadow(0 0 4px rgba(134,239,172,.45))!important;
}
@media(max-width:979px){
  .visitorCounterTitle{font-size:16px!important}
  .visitorCounterBadgeBox,
  .visitorCounterBadgeBox .visitorCounterBadge{min-width:78px!important}
  .visitorCounterBadgeBox{height:44px!important}
  .visitorCounterBadgeBox .visitorCounterBadge{height:36px!important}
}
.siteSupportBtn{
  border:1px solid color-mix(in srgb,var(--accent2) 38%,var(--line));
  background:linear-gradient(135deg,rgba(96,165,250,.12),rgba(45,212,191,.06));
  color:#eaf2ff;
  border-radius:12px;
  padding:9px 8px;
  font-size:13px;
  font-weight:1000;
  white-space:nowrap;
}
.siteSupportBtn:hover{
  border-color:var(--accent);
  background:linear-gradient(135deg,rgba(45,212,191,.2),rgba(96,165,250,.14));
}
.siteModal{
  position:fixed;
  inset:0;
  z-index:120;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.siteModal.open{
  display:flex;
}
.siteModalBackdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.62);
  backdrop-filter:blur(8px);
}
.siteModalBox{
  position:relative;
  width:min(760px,100%);
  border:1px solid color-mix(in srgb,var(--accent2) 42%,var(--line));
  border-radius:20px;
  background:linear-gradient(180deg,rgba(12,22,40,.98),rgba(8,14,28,.98));
  box-shadow:0 22px 70px rgba(0,0,0,.45);
  padding:20px;
  color:var(--text);
}
.siteModalClose{
  position:absolute;
  top:12px;
  right:12px;
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(8,18,37,.72);
  color:#eaf2ff;
  font-weight:1000;
}
.siteModalEyebrow{
  color:var(--accent);
  font-size:12px;
  font-weight:1000;
  letter-spacing:.08em;
  margin-bottom:6px;
}
.siteModalBox h2{
  margin:0 42px 10px 0;
}
.siteModalBox p{
  margin:0 0 14px;
  color:#cfe2ff;
  line-height:1.7;
}
.siteInfoList{
  display:grid;
  gap:8px;
  margin:12px 0 14px;
}
.siteInfoList div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:12px;
  background:rgba(5,12,25,.58);
  padding:10px 12px;
}
.siteInfoList span{
  color:var(--muted);
  font-weight:900;
}
.siteInfoList strong{
  color:#fff;
  word-break:break-all;
}
.siteModalActions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.siteActionLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  border:1px solid color-mix(in srgb,var(--accent2) 46%,var(--line));
  border-radius:999px;
  padding:9px 14px;
  color:#eaf2ff;
  background:rgba(8,18,37,.72);
  font-weight:1000;
  text-decoration:none;
}
.siteActionLink.primaryLike{
  border:0;
  color:#06101f;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
}
.siteInfoHint{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}
.donationGrid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(220px,280px) minmax(0,1fr);
  gap:12px;
  align-items:stretch;
  margin:14px 0;
}
.donationPanel{
  border:1px solid rgba(148,163,184,.24);
  border-radius:14px;
  background:rgba(5,12,25,.62);
  padding:14px;
}
.donationLabel{
  color:var(--accent);
  font-size:12px;
  font-weight:1000;
  margin-bottom:8px;
}
.donationTitle{
  color:#fff;
  font-size:18px;
  font-weight:1000;
  margin-bottom:12px;
}
.donationQrPanel{
  text-align:center;
}
.donationQr{
  display:block;
  width:min(100%,240px);
  max-height:340px;
  object-fit:contain;
  margin:0 auto 12px;
  border-radius:14px;
  background:#fff;
}
.donationCodeList{
  display:grid;
  gap:8px;
}
.donationCodeList div{
  display:grid;
  gap:3px;
  text-align:left;
  border:1px solid rgba(148,163,184,.18);
  border-radius:10px;
  background:rgba(15,23,42,.54);
  padding:8px 10px;
}
.donationCodeList span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.donationCodeList strong{
  color:#fff;
  font-size:16px;
  word-break:break-all;
}
@media(max-width:520px){
  .siteSupportTools{
    grid-template-columns:1fr;
  }
  .siteModalBox{
    padding:18px;
    max-height:calc(100vh - 28px);
    overflow:auto;
  }
  .donationGrid{
    grid-template-columns:1fr;
  }
  .donationQr{
    max-height:300px;
  }
  .siteModalActions > *{
    width:100%;
  }
}

/* V336 shell readability and fixed header final overrides. */
body{
  padding-top:68px!important;
}
.topbar{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  z-index:95!important;
  height:68px!important;
  min-height:68px!important;
  padding:12px 20px!important;
  background:color-mix(in srgb,var(--bg) 86%,rgba(0,0,0,.32))!important;
  border-bottom:1px solid color-mix(in srgb,var(--accent2) 34%,var(--line))!important;
}
.topline{
  height:44px!important;
  max-width:none!important;
}
.brandTitle{
  font-size:28px!important;
  line-height:1.08!important;
  letter-spacing:0!important;
}
.shellSettingsBtn{
  font-size:15px!important;
  min-height:42px!important;
  padding:9px 16px!important;
}
.drawer{
  background:
    linear-gradient(180deg,
      color-mix(in srgb,var(--bg) 68%,var(--panel) 32%),
      color-mix(in srgb,var(--bg2) 74%,var(--panel2) 26%))!important;
}
.drawerTitle{
  font-size:20px!important;
}
.navBtn.major{
  font-size:17px!important;
  min-height:50px!important;
}
.navBtn.sub{
  font-size:15px!important;
  min-height:44px!important;
}
.drawer .navBtn.sub{
  background:#263a40!important;
  border-color:#456068!important;
  color:#edf5f5;
  margin-bottom:6px;
  border-radius:8px!important;
  opacity:1;
  box-shadow:none;
  transition:background-color .15s ease,border-color .15s ease;
}
.drawer .navBtn.sub:hover{
  background:#324b52!important;
  border-color:#6c9199!important;
  transform:none;
}
.drawer .navBtn.sub.active,.drawer .navBtn.sub:active{
  background:#34565b!important;
  border-color:#86babf!important;
  box-shadow:inset 3px 0 #9cd6d6;
}
.drawer .navBtn.sub:focus-visible{
  outline:2px solid #b4e4e5;
  outline-offset:2px;
}
.navGroup{
  background:color-mix(in srgb,var(--panel) 66%,var(--bg) 34%)!important;
}
.formBox{
  background:color-mix(in srgb,var(--panel2) 58%,var(--bg) 42%)!important;
}
@media(min-width:980px){
  .drawer{
    top:68px!important;
    height:calc(100dvh - 68px)!important;
  }
  .app{
    padding-top:0!important;
  }
}
@media(max-width:979px){
  body{
    padding-top:76px!important;
  }
  .topbar{
    height:76px!important;
    min-height:76px!important;
    padding:calc(9px + env(safe-area-inset-top)) 10px 9px!important;
    overflow:visible!important;
  }
  .topline{
    grid-template-columns:46px minmax(0,1fr) 112px!important;
    grid-template-areas:"menu brand settings"!important;
    gap:8px!important;
  }
  .brandTitle{
    font-size:21px!important;
  }
  .menuBtn{
    width:46px!important;
    min-width:46px!important;
    height:46px!important;
  }
  .shellSettingsBtn{
    width:112px!important;
    max-width:112px!important;
    height:46px!important;
    line-height:46px!important;
    padding:0 10px!important;
  }
  .homeBlank{
    min-height:calc(100dvh - 76px)!important;
    height:calc(100dvh - 76px)!important;
  }
}
@media(max-width:390px){
  .brandTitle{
    font-size:19px!important;
  }
  .topline{
    grid-template-columns:44px minmax(0,1fr) 104px!important;
  }
  .shellSettingsBtn{
    width:104px!important;
    max-width:104px!important;
    font-size:14px!important;
  }
}

/* V338 faster home artwork: modern browsers use WebP, PNG remains fallback. */
.homeBlank{
  background-image:image-set(
    url("../assets/home_bg_desktop_fast.webp?v=2606081") type("image/webp"),
    url("../assets/home_bg_desktop.webp?v=2606054") type("image/webp"),
    url("../assets/home_bg_desktop.png?v=2606054") type("image/png")
  )!important;
}
@media(max-width:979px){
  .homeBlank{
    background-image:image-set(
      url("../assets/home_bg_mobile_fast.webp?v=2606081") type("image/webp"),
      url("../assets/home_bg_mobile.webp?v=2606054") type("image/webp"),
      url("../assets/home_bg_mobile.png?v=2606054") type("image/png")
    )!important;
  }
}

/* V349 ink header artwork and wuxia title treatment. */
body{
  padding-top:86px!important;
}
.topbar{
  height:86px!important;
  min-height:86px!important;
  padding:14px 24px!important;
  background:
    linear-gradient(90deg,rgba(2,8,18,.92) 0%,rgba(2,8,18,.70) 34%,rgba(2,8,18,.82) 100%),
    image-set(
      url("../assets/header_bg_desktop_fast.webp?v=2606081") type("image/webp"),
      url("../assets/header_bg_desktop.webp?v=2606061") type("image/webp"),
      url("../assets/header_bg_desktop.png?v=2606061") type("image/png")
    ) center center / cover no-repeat!important;
  border-bottom:1px solid rgba(110,171,245,.56)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.28)!important;
}
.topline{
  height:58px!important;
}
.brandTitle{
  font-family:"Ma Shan Zheng","DFKai-SB","KaiTi","Microsoft JhengHei UI","Microsoft JhengHei",serif!important;
  font-size:40px!important;
  line-height:1!important;
  font-weight:400!important;
  color:#fffdf3!important;
  letter-spacing:.045em!important;
  -webkit-text-stroke:.35px rgba(0,0,0,.68);
  text-shadow:
    0 2px 0 rgba(0,0,0,.82),
    0 0 8px rgba(0,0,0,.88),
    0 0 18px rgba(0,0,0,.72)!important;
  filter:none;
}
.menuBtn,
.shellSettingsBtn{
  background:rgba(7,18,35,.72)!important;
  border-color:rgba(136,180,246,.62)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.24)!important;
  backdrop-filter:blur(6px)!important;
}
@media(min-width:980px){
  .drawer{
    top:86px!important;
    height:calc(100dvh - 86px)!important;
  }
}
@media(max-width:979px){
  body{
    padding-top:92px!important;
  }
  .topbar{
    height:92px!important;
    min-height:92px!important;
    padding:calc(12px + env(safe-area-inset-top)) 12px 12px!important;
    background:
      linear-gradient(90deg,rgba(2,8,18,.93) 0%,rgba(2,8,18,.66) 48%,rgba(2,8,18,.86) 100%),
      image-set(
        url("../assets/header_bg_mobile_fast.webp?v=2606081") type("image/webp"),
        url("../assets/header_bg_mobile.webp?v=2606061") type("image/webp"),
        url("../assets/header_bg_mobile.png?v=2606061") type("image/png")
      ) center center / cover no-repeat!important;
  }
  .topline{
    height:56px!important;
  }
  .brandTitle{
    font-size:31px!important;
    letter-spacing:.02em!important;
  }
  .menuBtn,
  .shellSettingsBtn{
    height:50px!important;
  }
  .homeBlank{
    min-height:calc(100dvh - 92px)!important;
    height:calc(100dvh - 92px)!important;
  }
}
@media(max-width:390px){
  .brandTitle{
    font-size:29px!important;
    letter-spacing:0!important;
  }
}

/* V361 image title logo. */
.brand{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  flex:1 1 auto!important;
}
.brandTitle{
  display:block!important;
  width:clamp(260px,34vw,500px)!important;
  height:58px!important;
  max-width:100%!important;
  font-size:0!important;
  line-height:0!important;
  color:transparent!important;
  letter-spacing:0!important;
  -webkit-text-stroke:0 transparent!important;
  text-shadow:none!important;
  overflow:hidden!important;
  background-image:image-set(
    url("../assets/title_logo_desktop_white.webp?v=2606251") type("image/webp"),
    url("../assets/title_logo_desktop_white.png?v=2606251") type("image/png")
  )!important;
  background-repeat:no-repeat!important;
  background-position:left center!important;
  background-size:contain!important;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.92)) drop-shadow(0 0 10px rgba(255,247,214,.34))!important;
}
@media(max-width:979px){
  .brandTitle{
    width:clamp(160px,42vw,260px)!important;
    height:52px!important;
    background-image:image-set(
      url("../assets/title_logo_mobile_white.webp?v=2606251") type("image/webp"),
      url("../assets/title_logo_mobile_white.png?v=2606251") type("image/png")
    )!important;
    background-position:left center!important;
    background-size:contain!important;
  }
}
@media(max-width:390px){
  .brandTitle{
    width:clamp(145px,40vw,210px)!important;
    height:48px!important;
  }
}
/* Tool downloads */
.downloadsPage .downloadTableWrap{
  margin-top:14px;
  border:1px solid rgba(126,166,255,.35);
  background:rgba(7,18,36,.72);
  border-radius:10px;
  overflow:hidden;
}
.downloadsPage .downloadTable{
  width:100%;
  min-width:0;
  border-collapse:collapse;
  color:#dbe7ff;
  table-layout:fixed;
}
.downloadsPage .downloadCellValue{
  overflow-wrap:anywhere;
}
@media (min-width: 641px){
  .downloadsPage .downloadTable th:nth-child(1){width:25%;}
  .downloadsPage .downloadTable th:nth-child(2){width:80px;}
  .downloadsPage .downloadTable th:nth-child(3){width:96px;}
  .downloadsPage .downloadTable th:nth-child(4){width:140px;}
  .downloadsPage table.downloadTable th,
  .downloadsPage table.downloadTable td{padding:12px 10px;}
  .downloadsPage .downloadTable td:last-child{line-height:1.65;}
  .downloadsPage .downloadTable .downloadBtn{min-width:60px;min-height:36px;}
}
.downloadsPage .downloadNameValue{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.downloadsPage .downloadFileName{
  color:#9fb7e4;
  font-size:13px;
  line-height:1.35;
}
.downloadsPage .downloadTable th,
.downloadsPage .downloadTable td{
  padding:14px 16px;
  border-right:1px solid rgba(126,166,255,.22);
  border-bottom:1px solid rgba(126,166,255,.22);
  text-align:left;
  vertical-align:middle;
}
.downloadsPage .downloadTable th{
  background:rgba(44,77,134,.36);
  font-size:14px;
  font-weight:800;
}
.downloadsPage .downloadTable th:last-child,
.downloadsPage .downloadTable td:last-child{
  border-right:0;
}
.downloadsPage .downloadTable tbody tr:last-child td{
  border-bottom:0;
}
.downloadsPage .downloadBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:92px;
  min-height:40px;
  border-radius:8px;
  background:#2f6fed;
  color:white;
  font-weight:700;
  text-decoration:none;
}
@media (max-width: 640px){
  .downloadsPage .downloadTableWrap{
    border-radius:10px;
  }
  .downloadsPage .downloadTable,
  .downloadsPage .downloadTable thead,
  .downloadsPage .downloadTable tbody,
  .downloadsPage .downloadTable tr,
  .downloadsPage .downloadTable th,
  .downloadsPage .downloadTable td{
    display:block;
    width:100%;
  }
  .downloadsPage .downloadTable thead tr{
    display:none;
  }
  .downloadsPage .downloadTable td{
    border-right:0;
    display:grid;
    grid-template-columns:minmax(86px, 34%) minmax(0, 1fr);
    align-items:center;
    gap:12px;
    min-height:58px;
  }
  .downloadsPage .downloadTable td::before{
    content:attr(data-label);
    color:#9fb7e4;
    font-weight:800;
    line-height:1.35;
    white-space:nowrap;
  }
  .downloadsPage .downloadCellValue{
    min-width:0;
    justify-self:end;
    text-align:right;
  }
  .downloadsPage .downloadNameValue{
    align-items:flex-end;
  }
  .downloadsPage .downloadBtn{
    min-width:84px;
  }
}
@media (max-width: 380px){
  .downloadsPage .downloadTable td{
    grid-template-columns:1fr;
    align-items:start;
    gap:6px;
  }
  .downloadsPage .downloadCellValue{
    justify-self:start;
    text-align:left;
  }
  .downloadsPage .downloadNameValue{
    align-items:flex-start;
  }
}
.itemFilterActions{
  display:flex;
  justify-content:flex-end;
  margin:10px 0 0;
}
.monsterSearchPage .itemFilterActions{flex-wrap:wrap;gap:12px;align-items:center}
.monsterPointFilter{display:flex;align-items:center;gap:8px;margin-right:auto;cursor:pointer}
.monsterPointFilter input[type="checkbox"]{width:18px;height:18px;flex:0 0 18px;margin:0}
.itemFilterActions button{
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--text);
  border-radius:12px;
  padding:9px 12px;
  font-weight:900;
}
@media(max-width:700px){
  .itemFilterActions{
    justify-content:stretch;
  }
  .itemFilterActions button{
    width:100%;
  }
}

/* test map lookup */
.mapPage{max-width:1500px}
.mapToolbar{display:grid;grid-template-columns:minmax(240px,1fr) minmax(220px,360px) auto;gap:12px;margin:8px 0 14px;align-items:end}
.mapToolbar label{display:grid;gap:6px;color:#67e8f9;font-size:12px;font-weight:900}
.mapToolbar input,.mapToolbar select{width:100%;background:#10111b;color:var(--text);border:1px solid rgba(245,158,11,.45);border-radius:12px;padding:11px 12px;font-size:16px}
.mapSuggestions{display:flex;gap:8px;overflow:auto;padding:0 0 12px;margin:-4px 0 10px;-webkit-overflow-scrolling:touch}
.mapSuggestBtn{flex:0 0 auto;display:grid;gap:3px;min-width:150px;max-width:260px;text-align:left;border:1px solid rgba(45,212,191,.36);background:linear-gradient(135deg,rgba(13,148,136,.18),rgba(96,165,250,.12));color:var(--text);border-radius:13px;padding:9px 11px}
.mapSuggestBtn:hover{border-color:var(--accent);background:linear-gradient(135deg,rgba(13,148,136,.28),rgba(96,165,250,.2))}
.mapSuggestBtn span{font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mapSuggestBtn small{color:var(--muted);font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mapLayout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:14px;align-items:start}
.mapLeftPane{display:grid;grid-template-rows:minmax(150px,1fr) minmax(150px,1fr);gap:12px;max-height:calc(100vh - 220px);min-height:360px}
.mapSide{border:1px solid rgba(96,165,250,.22);background:rgba(8,18,37,.46);border-radius:16px;padding:12px;min-height:0;overflow:auto}
.mapSideHead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0 8px}
.mapSideHead h2{font-size:17px;margin:0;color:#eaf2ff}
.mapSide summary{cursor:pointer;list-style:none;position:sticky;top:-12px;z-index:5;background:#101b2c;padding:8px 0;margin-top:0}
.mapSide summary::-webkit-details-marker{display:none}
.mapSide summary::before{content:'\25B6';font-size:12px;color:#8ad9de;flex:none}
.mapSide[open] summary::before{content:'\25BC'}
.mapSide summary h2{flex:1}
.mapSide summary:focus-visible{outline:2px solid #8ad9de;outline-offset:3px}
.mapSide:not([open]){overflow:hidden;align-self:start}
.mapSide:not([open]) summary{margin-bottom:0}
.mapSide:not([open]) summary>div{display:none}
.mapLeftPane:has(.mapMonsterSide:not([open])){grid-template-rows:auto minmax(150px,1fr)}
.mapLeftPane:has(.mapNpcSide:not([open])){grid-template-rows:minmax(150px,1fr) auto}
.mapLeftPane:has(.mapMonsterSide:not([open])):has(.mapNpcSide:not([open])){grid-template-rows:auto auto;align-content:start;min-height:0}
.mapMiniBtn{padding:5px 8px;border-radius:999px;font-size:12px;margin-left:4px}
.mapChoiceList{display:grid;gap:6px;margin-bottom:16px}
.mapMarkerChoice{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:start;border:1px solid rgba(148,163,184,.16);background:#0b1527;border-radius:12px;padding:8px 9px;color:#dbeafe;font-weight:800;line-height:1.35}
.mapMarkerChoice input{width:18px;height:18px;margin-top:1px;accent-color:var(--accent)}
.mapEmptyLine{padding:8px}
.mapCanvasWrap{position:relative;height:clamp(420px,70vh,760px);min-height:0;border:1px solid rgba(245,158,11,.35);border-radius:16px;background:#020817;overflow:auto;cursor:grab;touch-action:none;user-select:none;overscroll-behavior:contain}
.mapCanvasWrap.dragging{cursor:grabbing}
.mapRegionHeading{position:sticky;top:0;z-index:3;margin:12px 0 4px;padding:10px 12px;border-left:4px solid var(--region-color,#9ca3af);border-bottom:1px solid #394354;background:#18202b;font-size:16px;line-height:1.5;color:var(--region-color,#e5e7eb)}
.mapRegionHeading[data-region="1"],.mapPingxiRegion[data-region="1"]{--region-color:#ffb86b}
.mapRegionHeading[data-region="2"],.mapPingxiRegion[data-region="2"]{--region-color:#80e2cf}
.mapRegionHeading[data-region="3"],.mapPingxiRegion[data-region="3"]{--region-color:#f2a9d3}
.mapRegionHeading[data-region="4"],.mapPingxiRegion[data-region="4"]{--region-color:#c7dc86}
.mapAreaLabel.mapPingxiRegion{height:32px;padding:0 10px;border-radius:4px;border:2px solid var(--region-color);background:rgba(18,22,27,.94);color:var(--region-color);font-size:17px;font-weight:800}
.mapZoomBar{position:sticky;top:0;left:0;right:0;z-index:20;display:flex;align-items:center;gap:10px;justify-content:flex-end;width:100%;min-width:100%;box-sizing:border-box;padding:10px 12px;background:linear-gradient(180deg,rgba(2,8,23,.92),rgba(2,8,23,.62));backdrop-filter:blur(8px)}
.mapZoomBar label{display:flex;align-items:center;gap:8px;color:#a7f3d0;font-size:12px;font-weight:1000}
.mapZoomBar input{width:180px;accent-color:#2dd4bf}
.mapZoomBar span{min-width:48px;text-align:right;color:#eaf2ff;font-weight:1000}
.mapZoomSurface{position:relative;margin:0 auto 14px}
.mapImageStage{position:relative;display:inline-block;width:max-content;min-width:0;transform-origin:top left}
.mapImageStage img{display:block;max-width:none;image-rendering:auto}
.mapOverlay{position:absolute;inset:0;pointer-events:none;width:100%;height:100%}
.mapAreaOverlay{position:absolute;inset:0;pointer-events:none;width:100%;height:100%;z-index:2}
.mapExitDirection{position:absolute;display:flex;align-items:center;gap:8px;color:#ffbf36;text-shadow:0 2px 3px #000}
.mapExitDirection b{font-size:52px;line-height:1;font-family:"Segoe UI Symbol",sans-serif}
.mapExitDirection span{background:#182028;border:1px solid #ffbf36;border-radius:4px;padding:6px 10px;font-size:18px;font-weight:700;white-space:nowrap}
.mapTransferOverlay{position:absolute;inset:0;pointer-events:none;z-index:3}
.mapTransferLabel{position:absolute;transform:translate(-50%,-50%);padding:5px 8px;border:1px solid #ffd166;border-radius:4px;background:rgba(20,25,30,.95);color:#ffdf8d;font-size:15px;font-weight:700;line-height:20px;white-space:nowrap;pointer-events:auto}
.mapAreaLabel{position:absolute;transform:translate(-50%,-50%);display:inline-grid;place-items:center;min-width:34px;height:24px;padding:0 8px;border-radius:999px;border:1px solid rgba(34,211,238,.75);background:rgba(6,17,31,.82);box-shadow:0 0 0 3px rgba(0,0,0,.28),0 8px 20px rgba(0,0,0,.35);color:#e0f2fe;font-size:13px;font-weight:1000;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.65)}
.mapDot{position:absolute;transform:translate(-50%,-85%);width:22px;height:22px;border-radius:999px;border:2px solid #fff;display:grid;place-items:center;font-size:10px;font-weight:1000;color:#06111f;box-shadow:0 0 0 2px rgba(0,0,0,.4);pointer-events:auto;overflow:hidden}
.mapDot.monster{background:#facc15}
.mapDot.npc{background:#fb7185}
.mapDot.withImage{width:34px;height:34px;border-radius:9px;background:#07111f}
.mapDot.withImage img{display:block;max-width:100%;max-height:100%;object-fit:contain;image-rendering:auto}
.mapDot.withImage img[src=""],.mapDot.withImage img:not([src]){display:none}
.mapDot.shopNpcDot{border-color:#fbbf24;box-shadow:0 0 0 3px rgba(0,0,0,.45),0 0 0 6px rgba(251,191,36,.22)}
.mapLoading{position:absolute;z-index:3;left:14px;top:14px;border:1px solid rgba(96,165,250,.42);background:rgba(3,7,18,.88);color:#eaf2ff;border-radius:999px;padding:8px 12px;font-weight:1000}
.mapClearSearchBtn{min-height:42px;white-space:nowrap}
.mapShopBackdrop{position:fixed;inset:0;z-index:120;background:rgba(2,6,23,.58);display:grid;place-items:center;padding:18px}
.mapShopPanel{width:min(760px,96vw);max-height:min(760px,88vh);display:grid;grid-template-rows:auto auto minmax(0,1fr);border:1px solid rgba(245,158,11,.45);border-radius:18px;background:#0b1020;box-shadow:0 24px 70px rgba(0,0,0,.52);overflow:hidden}
.mapShopHead{display:flex;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid rgba(148,163,184,.18)}
.mapShopHead h2{margin:0 0 5px;font-size:22px}
.mapShopMeta{color:#a8c7ee;font-weight:850}
.mapShopActions{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px 18px;border-bottom:1px solid rgba(148,163,184,.14)}
.mapShopModes{display:inline-flex;gap:6px;border:1px solid rgba(96,165,250,.28);border-radius:999px;padding:4px;background:#081225}
.mapShopModes button{border:0;border-radius:999px;background:transparent;color:#bfdbfe;padding:8px 14px;font-weight:1000}
.mapShopModes button.active{background:linear-gradient(135deg,#f59e0b,#38bdf8);color:#06111f}
.mapShopOpenPage{border-color:rgba(45,212,191,.38);color:#ccfbf1}
.mapShopItems{display:grid;gap:8px;padding:14px 18px;overflow:auto}
.mapShopItem{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid rgba(45,212,191,.22);background:#0b1527;color:#eaf2ff;border-radius:14px;padding:8px 10px;text-align:left}
.mapShopItem:hover{border-color:#2dd4bf;background:#10223a}
.mapShopThumb{width:42px;height:42px;border:1px solid rgba(96,165,250,.26);border-radius:10px;background:#07111f;display:grid;place-items:center}
.mapShopThumb img{max-width:36px;max-height:36px;object-fit:contain}
.mapShopText{min-width:0;display:grid;gap:3px}
.mapShopText strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mapShopText small{color:#a8c7ee;font-weight:800}
.mapShopPrice{color:#facc15;font-size:17px;font-weight:1000;font-variant-numeric:tabular-nums}
.mapMonsterPanel{border-color:rgba(45,212,191,.5)}
.mapMonsterTitle{display:flex;align-items:center;gap:12px;min-width:0}
.mapMonsterThumb{width:58px;height:58px;border:1px solid rgba(96,165,250,.32);border-radius:14px;background:#07111f;display:grid;place-items:center;overflow:hidden;flex:0 0 auto}
.mapMonsterThumb img{max-width:54px;max-height:54px;object-fit:contain;image-rendering:auto}
.mapMonsterTitle h2{margin:0 0 4px}
@media(max-width:900px){
  .mapToolbar,.mapLayout{grid-template-columns:1fr}
  .mapLeftPane{grid-template-rows:none;max-height:none}
  .mapSide{max-height:42vh}
  .mapCanvasWrap{height:clamp(320px,62vh,620px);min-height:0}
  .mapShopActions{display:grid}
  .mapShopItem{grid-template-columns:42px minmax(0,1fr)}
  .mapShopPrice{grid-column:2;justify-self:start}
}

.reverseMapLink{display:inline-flex;align-items:center;gap:8px;max-width:100%;border:1px solid rgba(45,212,191,.42);border-radius:999px;background:rgba(20,184,166,.1);color:#bdf8ff;text-align:left;padding:5px 10px;font:inherit;font-weight:800;text-decoration:none;cursor:pointer}
.reverseMapLink:hover{border-color:rgba(103,232,249,.82);background:rgba(14,165,233,.18);color:#ffffff}
.reverseMapHint{flex:0 0 auto;border-radius:999px;background:linear-gradient(135deg,#f59e0b,#67e8f9);color:#06101f;padding:2px 7px;font-size:11px;font-weight:1000}
.reverseDropMonsterName{border:0;background:transparent;color:var(--text);padding:0;text-align:left;font:inherit;font-weight:1000;cursor:pointer}
.reverseDropMonsterName:hover{color:#67e8f9}

.monsterCompact .monsterTopActions{
  align-items:center;
}
.monsterCompact .monsterTopActions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:48px;
  border-radius:999px;
  padding:10px 16px;
  font-weight:1000;
  line-height:1.15;
}
.monsterCompact .monsterTopActions button small{
  color:inherit;
  opacity:.82;
  font-size:12px;
  font-weight:800;
}
.monsterCompact .monsterTopActions .mapJumpBtn{
  border:1px solid rgba(45,212,191,.62);
  background:rgba(20,184,166,.14);
  color:#d7feff;
  box-shadow:none;
}
.monsterCompact .monsterTopActions .primary{
  border:1px solid rgba(245,158,11,.62);
  background:rgba(245,158,11,.13);
  color:#fff4c7;
  box-shadow:none;
}
.monsterCompact .monsterTopActions .mapJumpBtn:hover,
.monsterCompact .monsterTopActions .primary:hover{
  filter:none;
  transform:translateY(-1px);
}

.qaPage{display:grid;gap:16px}
.qaPage h1{margin-bottom:0}
.qaForm{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:end}
.qaForm input{width:100%;min-height:52px}
.qaExamples,.qaSuggestions,.qaMapChips,.qaActions,.qaRowActions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.qaExamples button,.qaChip{border:1px solid rgba(45,212,191,.42);border-radius:999px;background:rgba(20,184,166,.11);color:#d7feff;padding:8px 12px;font-weight:900;cursor:pointer}
.qaExamples button:hover,.qaChip:hover{border-color:#67e8f9;background:rgba(14,165,233,.18);color:#fff}
.qaResults{display:grid;gap:12px}
.qaLoading{border:1px dashed rgba(96,165,250,.45);border-radius:14px;color:#cfe3ff;padding:18px;background:rgba(8,18,37,.68);font-weight:900}
.qaAnswer{border:1px solid rgba(45,212,191,.36);border-radius:18px;background:rgba(8,18,37,.72);padding:16px;display:grid;gap:14px}
.qaAnswer h2{margin:0;font-size:24px}
.qaAnswerMeta,.qaModeHint{color:#a8c7ee;font-weight:850}
.qaTitleWithIcon{display:flex;gap:12px;align-items:center}
.qaTitleWithIcon img{width:52px;height:52px;object-fit:contain;border:1px solid rgba(96,165,250,.28);border-radius:12px;background:#06111f;padding:5px}
.qaList{display:grid;gap:9px}
.qaRow{display:grid;grid-template-columns:minmax(160px,1.1fr) minmax(180px,1.2fr) auto;gap:10px;align-items:center;border:1px solid rgba(45,212,191,.2);border-radius:14px;background:#0b1527;padding:11px 12px}
.qaRow strong{font-size:17px}
.qaRow span{color:#c6d9f6;font-weight:800}
.qaRow b{color:#facc15;font-size:17px;text-align:right;white-space:nowrap}
.qaRowActions{grid-column:1 / -1}
.qaShopRow span{display:flex;align-items:center;gap:10px}
.qaShopRow img{width:40px;height:40px;object-fit:contain;border:1px solid rgba(96,165,250,.25);border-radius:10px;background:#07111f;padding:4px}
@media(max-width:760px){
  .qaForm{grid-template-columns:1fr}
  .qaRow{grid-template-columns:1fr}
  .qaRow b{text-align:left}
}

.topline{
  grid-template-columns:auto minmax(180px,1fr) auto minmax(220px,360px) auto!important;
}
.topSearch{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:220px;
}
.topSearch input{
  min-height:40px;
  border-radius:999px;
  padding:9px 13px;
  background:rgba(8,18,37,.78);
}
.topSearch button{
  min-height:40px;
  border:1px solid rgba(45,212,191,.5);
  border-radius:999px;
  background:rgba(20,184,166,.13);
  color:#d7feff;
  padding:8px 12px;
  font-weight:1000;
  white-space:nowrap;
}
.topSearch button:hover{background:rgba(14,165,233,.18);border-color:#67e8f9}
@media(max-width:980px){
  .topline{
    grid-template-columns:auto minmax(0,1fr) auto!important;
  }
  .topSearch{
    grid-column:1 / -1;
    order:8;
    width:100%;
    min-width:0;
  }
  .topSearch input{min-width:0}
}

/* V472 mobile global search placement. */
@media(max-width:979px){
  body{
    padding-top:134px!important;
  }
  .topbar{
    height:134px!important;
    min-height:134px!important;
    padding:calc(9px + env(safe-area-inset-top)) 12px 12px!important;
    overflow:visible!important;
  }
  .topline{
    display:grid!important;
    grid-template-columns:52px minmax(0,1fr) minmax(108px,132px)!important;
    grid-template-areas:
      "menu brand settings"
      "search search search"!important;
    grid-template-rows:52px 48px!important;
    align-items:center!important;
    gap:10px 10px!important;
    height:auto!important;
    min-height:0!important;
  }
  .menuBtn{
    grid-area:menu!important;
    width:52px!important;
    min-width:52px!important;
    height:52px!important;
  }
  .brand{
    grid-area:brand!important;
  }
  .brandTitle{
    height:52px!important;
    max-height:52px!important;
  }
  .shellSettingsBtn{
    grid-area:settings!important;
    width:100%!important;
    max-width:none!important;
    height:52px!important;
    line-height:52px!important;
  }
  .topSearch{
    grid-area:search!important;
    grid-column:auto!important;
    order:initial!important;
    width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 74px!important;
    gap:8px!important;
    align-items:center!important;
  }
  .topSearch input{
    width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    height:48px!important;
    padding:9px 16px!important;
    font-size:16px!important;
    background:rgba(8,18,37,.82)!important;
  }
  .topSearch button{
    width:74px!important;
    min-width:74px!important;
    min-height:48px!important;
    height:48px!important;
    padding:0!important;
    font-size:16px!important;
  }
  .homeBlank{
    min-height:calc(100dvh - 134px)!important;
    height:calc(100dvh - 134px)!important;
  }
  .drawer{
    top:134px!important;
    height:calc(100dvh - 134px)!important;
  }
}

@media(max-width:390px){
  body{
    padding-top:126px!important;
  }
  .topbar{
    height:126px!important;
    min-height:126px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .topline{
    grid-template-columns:48px minmax(0,1fr) 112px!important;
    grid-template-rows:48px 46px!important;
    gap:8px!important;
  }
  .menuBtn,
  .brandTitle,
  .shellSettingsBtn{
    height:48px!important;
  }
  .menuBtn{
    width:48px!important;
    min-width:48px!important;
  }
  .shellSettingsBtn{
    line-height:48px!important;
    font-size:14px!important;
  }
  .topSearch{
    grid-template-columns:minmax(0,1fr) 68px!important;
    gap:7px!important;
  }
  .topSearch input,
  .topSearch button{
    min-height:46px!important;
    height:46px!important;
  }
  .topSearch button{
    width:68px!important;
    min-width:68px!important;
    font-size:15px!important;
  }
  .homeBlank{
    min-height:calc(100dvh - 126px)!important;
    height:calc(100dvh - 126px)!important;
  }
  .drawer{
    top:126px!important;
    height:calc(100dvh - 126px)!important;
  }
}

/* V473 mobile global search final position. */
@media(max-width:979px){
  body{
    padding-top:136px!important;
  }
  .topbar{
    height:136px!important;
    min-height:136px!important;
    padding:calc(9px + env(safe-area-inset-top)) 12px 12px!important;
    overflow:visible!important;
  }
  .topline{
    position:relative!important;
    display:grid!important;
    grid-template-columns:52px minmax(0,1fr) minmax(112px,132px)!important;
    grid-template-areas:"menu brand settings"!important;
    grid-template-rows:52px!important;
    height:112px!important;
    min-height:112px!important;
    align-items:start!important;
    gap:10px!important;
    overflow:visible!important;
  }
  .menuBtn{
    grid-area:menu!important;
    width:52px!important;
    min-width:52px!important;
    height:52px!important;
  }
  .brand{
    grid-area:brand!important;
    min-width:0!important;
    align-self:center!important;
  }
  .brandTitle{
    height:52px!important;
    max-height:52px!important;
    max-width:100%!important;
  }
  .shellSettingsBtn{
    grid-area:settings!important;
    width:100%!important;
    max-width:none!important;
    height:52px!important;
    line-height:52px!important;
    align-self:start!important;
  }
  .topSearch{
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    top:auto!important;
    grid-area:auto!important;
    grid-column:auto!important;
    order:initial!important;
    z-index:5!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
  }
  .topSearch input{
    display:block!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    height:48px!important;
    min-height:48px!important;
    padding:9px 16px!important;
    font-size:16px!important;
    background:rgba(8,18,37,.88)!important;
  }
  .topSearch button{
    flex:0 0 76px!important;
    width:76px!important;
    min-width:76px!important;
    height:48px!important;
    min-height:48px!important;
    padding:0!important;
    font-size:16px!important;
  }
  .homeBlank{
    min-height:calc(100dvh - 136px)!important;
    height:calc(100dvh - 136px)!important;
  }
  .drawer{
    top:136px!important;
    height:calc(100dvh - 136px)!important;
  }
}

@media(max-width:390px){
  body{
    padding-top:128px!important;
  }
  .topbar{
    height:128px!important;
    min-height:128px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .topline{
    grid-template-columns:48px minmax(0,1fr) 112px!important;
    grid-template-rows:48px!important;
    height:106px!important;
    min-height:106px!important;
    gap:8px!important;
  }
  .menuBtn,
  .brandTitle,
  .shellSettingsBtn{
    height:48px!important;
  }
  .menuBtn{
    width:48px!important;
    min-width:48px!important;
  }
  .shellSettingsBtn{
    line-height:48px!important;
    font-size:14px!important;
  }
  .topSearch{
    gap:7px!important;
  }
  .topSearch input,
  .topSearch button{
    height:46px!important;
    min-height:46px!important;
  }
  .topSearch button{
    flex-basis:68px!important;
    width:68px!important;
    min-width:68px!important;
    font-size:15px!important;
  }
  .homeBlank{
    min-height:calc(100dvh - 128px)!important;
    height:calc(100dvh - 128px)!important;
  }
  .drawer{
    top:128px!important;
    height:calc(100dvh - 128px)!important;
  }
}

.itemGroupedDetail{min-width:0;letter-spacing:0}
.itemIdentity{display:flex;align-items:center;gap:18px;padding:16px 0}
.itemIdentity .itemHero{width:88px;height:88px;flex:0 0 88px;border-radius:8px}
.itemIdentity .itemHero img{max-width:80px;max-height:80px;object-fit:contain}
.itemIdentity h1{font-size:24px;margin:0;overflow-wrap:anywhere}
.itemDetailSection{padding:16px 0;border-top:1px solid #526477}
.itemDetailSection h2{font-size:16px;margin:0 0 10px;color:var(--text,#e9f0fa)}
.itemSectionGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 18px}
.itemGroupedDetail .kv{background:transparent;border:0;border-bottom:1px solid #52647755;border-radius:0;padding:8px 0;min-width:0;min-height:0;overflow:visible}
.itemGroupedDetail .kv .k{font-size:12px;line-height:1.4;margin-bottom:3px}
.itemGroupedDetail .kv .v{font-size:15px;line-height:1.5;max-height:none;overflow:visible;overflow-wrap:anywhere}
.itemSection-help .itemSectionGrid,.itemSection-special .itemSectionGrid{grid-template-columns:1fr}
.itemSection-special{border-top:0;border-left:3px solid #e3bd55;padding:8px 12px;margin:8px 0 12px;background:#c49b2014}
.itemSection-special h2{color:#e3bd55;font-size:14px;margin-bottom:4px}
.itemSection-special .kv .v{font-size:16px;font-weight:700}
.itemSection-special .kv{border:0;padding:0}
.itemSection-special .itemRepeatedLabel{display:none}
.itemStatusDescription{margin-top:6px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.itemFilterCombo{position:relative;min-width:0}
.itemFilterCombo input{width:100%;padding-right:36px!important}
.itemFilterCombo>button{position:absolute;right:0;top:0;bottom:0;width:34px;border:0;background:transparent;color:inherit;padding:0}
.itemFilterCombo .itemFilterNative{position:absolute;left:0;top:0;width:1px!important;height:1px!important;min-height:0;opacity:0;pointer-events:none;padding:0;border:0}
.itemFilterChoices{position:fixed;z-index:10000;overflow:auto;overscroll-behavior:contain;background:#101923;color:#e6edf5;border:1px solid #7593aa;border-radius:6px;box-shadow:0 8px 24px #0008;box-sizing:border-box}
.itemFilterChoices button{display:block;width:100%;min-height:40px;text-align:left;padding:9px 12px;border:0;border-radius:0;background:transparent;color:inherit;white-space:normal;overflow-wrap:anywhere}
.itemFilterChoices button:hover,.itemFilterChoices button:focus-visible,.itemFilterChoices button[aria-selected="true"]{background:#235b57;color:#fff}
.itemFilterEmpty{padding:12px}
.equipmentCompareTools{padding:10px 0;border-bottom:1px solid #64748b;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.equipmentCompareTools>div{display:flex;flex-wrap:wrap;gap:6px}
.equipmentCompareTools button{padding:6px 10px}
.equipmentSaveFeedback{flex-basis:100%;font-size:13px;color:#8ce3c3;overflow-wrap:anywhere}
.equipmentSaveFeedback:empty{display:none}
.equipmentSavedSlots{flex-basis:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 16px;margin:0;font-size:13px}
.equipmentSavedSlots>div{display:flex;gap:8px;min-width:0}
.equipmentSavedSlots dt{font-weight:700;color:#8edcff}
.equipmentSavedSlots dd{margin:0;overflow-wrap:anywhere;min-width:0}
@media(max-width:600px){.equipmentSavedSlots{grid-template-columns:minmax(0,1fr)}}
.equipmentCompareDialog{width:min(1040px,calc(100vw - 24px));max-height:calc(100dvh - 32px);box-sizing:border-box;margin:auto;padding:16px;border:1px solid #71889e;border-radius:8px;background:#101923;color:#e6edf5;overflow:auto}
.equipmentCompareDialog::backdrop{background:#0009}
.equipmentCompareDialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.equipmentCompareDialog h2{font-size:20px;margin:0}
.equipmentCompareDialog header button,.equipmentSlotTitle button{width:32px;height:32px;padding:0}
.equipmentDifferenceToggle{display:flex;gap:8px;align-items:center;margin:12px 0}
.equipmentDifferenceToggle input{width:18px;height:18px}
.equipmentCompareScroll{overflow:auto;max-height:70dvh}
.equipmentCompareZoom{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 0 12px}
.equipmentCompareZoom button{min-height:44px;min-width:44px;padding:6px 10px;background:#213840;color:#edf5f5;border:1px solid #55717a;border-radius:6px;cursor:pointer}
.equipmentCompareZoom button:disabled{opacity:.4;cursor:default}
.equipmentCompareZoom input{width:110px;min-width:60px;flex:1;max-width:200px;accent-color:#65d3cc}
.equipmentCompareZoom [data-equipment-zoom-reset]{width:64px;font-variant-numeric:tabular-nums}
.equipmentCompareZoom :focus-visible{outline:2px solid #9cd6d6;outline-offset:2px}
.equipmentCompareDialog table{width:100%;min-width:680px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:14px}
.equipmentCompareDialog th,.equipmentCompareDialog td{padding:10px;border-bottom:1px solid #45596b;text-align:left;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}
.equipmentCompareDialog th:first-child{width:110px}
.equipmentCompareDialog thead th{position:sticky;top:0;background:#192735;z-index:1}
.equipmentSlotTitle{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.equipmentCompareDialog .assetThumb{width:48px;height:48px;object-fit:contain}
.equipmentDifference td{background:#24443855}
.equipmentCompareDialog .itemStatusDescription{margin:0}
.detailPreview{width:min(900px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line,#526477);border-radius:8px;background:var(--panel,#101827);color:var(--text,#e9f0fa)}
.detailPreview[open]{display:flex;flex-direction:column}
.detailPreview.floatingExpanded{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}
.detailPreviewBar{touch-action:none;cursor:move}
.floatingMap{width:min(1400px,calc(100vw - 24px));height:calc(100dvh - 24px)}
.floatingMapBody{flex:1}
.floatingMapBody .mapPage{margin:0}
.detailPreview:not(.floatingMap) button,.floatingMap>.detailPreviewBar button{background:var(--panel2,#172538);color:var(--text,#e9f0fa);border:1px solid #526477;border-radius:8px;padding:10px 12px;cursor:pointer;font:inherit}
.detailPreview button:focus-visible{outline:2px solid #56cee0;outline-offset:2px}
.detailPreview::backdrop{background:#0009}
.detailPreviewOpen{overflow:hidden}
.detailPreviewBar{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #52647766;flex-shrink:0}
.detailPreviewBar strong{flex:1}.detailPreview .detailPreviewBar button{width:40px;height:40px;padding:0;font-size:24px}
.detailPreviewBody{overflow:auto;overscroll-behavior:contain;padding:16px;min-height:0}
.detailPreviewBody h2{font-size:16px}.detailPreviewBody .itemIdentity h1{font-size:22px}
.detailPreviewActions{display:flex;gap:8px;flex-wrap:wrap;padding:12px;border-top:1px solid #52647766;flex-shrink:0}
.detailPreviewActions button{flex:1;min-width:130px}
.detailPreviewDrops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.detailPreviewDrops button{text-align:left;min-width:0;overflow-wrap:anywhere}.detailPreviewDrops small{display:block}
.detailPreviewDrops .searchedDrop{color:#ff8793;background:#6b1f2a44;border-color:#ff8793;box-shadow:inset 3px 0 #ff6578;font-weight:700}
@media(max-width:600px){.detailPreviewBody{padding:12px}.detailPreviewDrops{grid-template-columns:1fr}.detailPreview .itemSectionGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.detailPreview .itemSection-help .itemSectionGrid,.detailPreview .itemSection-special .itemSectionGrid{grid-template-columns:1fr}
.compoundTaxonomyPage .kvGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
.compoundTaxonomyPage .kvGrid>.kv{min-width:0}
.compoundTaxonomyPage .kvGrid input{width:100%;min-width:0}
.compoundTaxonomyPage .resultItem{display:flex;align-items:center;gap:10px}
@media(max-width:760px){.compoundTaxonomyPage .kvGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.compoundTaxonomyPage .kv:has(#eqQ){grid-column:1/-1}}
@media(max-width:440px){.compoundTaxonomyPage .kvGrid{grid-template-columns:minmax(0,1fr)}}
.itemRecipeFlows{margin-top:16px;border-top:1px solid var(--line,#526472);padding-top:12px}
.itemRecipeFlows h2{font-size:16px}.itemRecipeFlows h3{font-size:14px;margin:12px 0 6px}
.itemRecipeFlow{padding:10px 0;border-bottom:1px solid var(--line,#526472)}
.itemRecipeFlow summary{cursor:pointer;font-weight:600;padding:8px 0}
.itemRecipeFlow ol{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;align-items:start}
.itemRecipeFlow li{min-width:0}
.itemRecipeFailure{font-weight:600}
.itemRecipeConditions{display:flex;gap:12px 24px;flex-wrap:wrap;margin:8px 0;font-weight:600}
.itemContentRate{display:block;font-size:13px;margin-top:3px}
.itemRecipeFlow .tableWrap{border-radius:8px}
.itemRecipeFlow .tableWrap table{min-width:0;table-layout:fixed;width:100%}
.itemRecipeFlow td,.itemRecipeFlow th{overflow-wrap:anywhere}
.itemRecipeFlow td:last-child,.itemRecipeFlow th:last-child{width:80px;text-align:right}
.itemRecipeLink{border:0;background:none;color:var(--accent,#71d5ef);padding:4px 0;cursor:pointer;text-align:left;text-decoration:underline;overflow-wrap:anywhere;font:inherit}
.itemRecipeFlow .tableWrap .itemRecipeLink{border:0;border-radius:0;background:none;padding:2px 0;min-height:0;box-shadow:none}
.itemRecipeOutput{margin:14px 0 0}
.itemContents{margin:16px 0;border-top:1px solid var(--line,#526472);padding-top:12px}
.itemContents summary{cursor:pointer;padding:10px 0;font-weight:600}
.itemContentsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.itemContentsGrid .resultItem{display:flex;align-items:center;gap:10px;min-width:0;margin:0}
.itemContentsGrid .rName,.itemContentsGrid .rSub{display:block;overflow-wrap:anywhere}
@media(max-width:600px){.itemContentsGrid{grid-template-columns:minmax(0,1fr)}}
.itemAdvancedSearchPage .kvGrid>.kv{min-width:0}
.itemAdvancedSearchPage .kvGrid select,.itemAdvancedSearchPage .kvGrid input{min-width:0;max-width:100%;width:100%}
@media(max-width:700px){
 .itemAdvancedSearchPage .latestMainPane>.kvGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .itemAdvancedSearchPage .kvGrid>.kv:has(#itemQ),.itemAdvancedSearchPage .kvGrid>.kv:has(#itemCollection){grid-column:1/-1}
}
@media(max-width:700px){
 .itemSectionGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
 .itemIdentity h1{font-size:20px}
 .itemIdentity{gap:12px}
 .itemDetailSection{padding:12px 0}
 .itemSection-special{padding:8px 12px}
}


/* V662 map view tools: hide list, fit to frame, maximize */
.mapZoomBar{flex-wrap:wrap}
.mapViewTools{display:flex;flex-wrap:wrap;gap:6px;margin-right:auto}
.mapToolBtn{min-height:34px;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:900;white-space:nowrap}
.mapToolBtn[aria-pressed="true"]{border-color:#2dd4bf;color:#a7f3d0}
.mapLayout.mapListHidden{grid-template-columns:minmax(0,1fr)}
.mapLayout.mapListHidden>.mapLeftPane{display:none}
/* V662: bigger map in the normal page view — frame almost as tall as the window, narrower list column */
@media(min-width:761px){
  .mapPage{max-width:none}
  .mapLayout:not(.mapMaximized){grid-template-columns:minmax(220px,280px) minmax(0,1fr)}
  .mapLayout:not(.mapMaximized) .mapCanvasWrap{height:clamp(520px,calc(100dvh - 90px),1400px)}
  .mapLayout:not(.mapMaximized)>.mapLeftPane{max-height:clamp(520px,calc(100dvh - 90px),1400px)}
  .mapLayout.mapListHidden:not(.mapMaximized){grid-template-columns:minmax(0,1fr)}
}
.mapZoomBar{padding:6px 10px}
/* The unscaled stage (e.g. 2240px) used to stretch the scroll area past the scaled map, leaving blank space to drag into */
.mapZoomSurface{overflow:clip;overflow-clip-margin:24px}
.floatingMapBody [data-map-max]{display:none}
.mapLayout.mapMaximized{position:fixed;inset:0;z-index:10050;margin:0;padding:10px;gap:10px;background:#020817;grid-template-columns:minmax(260px,320px) minmax(0,1fr);align-items:stretch}
.mapLayout.mapMaximized.mapListHidden{grid-template-columns:minmax(0,1fr)}
.mapLayout.mapMaximized>.mapLeftPane{max-height:none;min-height:0;height:calc(100dvh - 20px)}
.mapLayout.mapMaximized .mapCanvasWrap{height:calc(100dvh - 20px)}
.mapLayout.mapMaximized>.notice{display:none}
body:has(.mapLayout.mapMaximized){overflow:hidden}
/* .card's backdrop-filter would make the fixed overlay relative to the card instead of the window */
.mapPage:has(.mapLayout.mapMaximized){backdrop-filter:none!important;-webkit-backdrop-filter:none!important;transform:none!important;filter:none!important}
body:has(.mapLayout.mapMaximized) .mapShopBackdrop{z-index:10060}
@media(max-width:760px){
  .mapZoomBar{justify-content:flex-start}
  .mapZoomBar input{width:120px}
  .mapLayout.mapMaximized{grid-template-columns:minmax(0,1fr);padding:6px}
  .mapLayout.mapMaximized:not(.mapListHidden)>.mapLeftPane{position:absolute;z-index:30;left:6px;top:62px;bottom:6px;width:min(300px,82vw);height:auto;background:#020817;box-shadow:12px 0 28px rgba(0,0,0,.5);border-radius:16px}
  .mapLayout.mapMaximized .mapCanvasWrap{height:calc(100dvh - 12px)}
}

/* V662 desktop: collapsible function menu */
.drawerCollapseBtn,.drawerExpandBtn{display:none}
@media(min-width:980px){
  .drawerCollapseBtn{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:4px 10px;font-size:18px;line-height:1}
  html.szoDrawerCollapsed .app{padding-left:46px!important}
  html.szoDrawerCollapsed .drawer{transform:translateX(-100%)!important;visibility:hidden}
  html.szoDrawerCollapsed .drawerExpandBtn{display:flex;align-items:center;justify-content:center;position:fixed;left:0;top:60px;bottom:0;width:40px;z-index:1100;padding:0;border:0;border-right:1px solid rgba(45,212,191,.35);border-radius:0;background:linear-gradient(180deg,rgba(8,16,31,.97),rgba(10,16,29,.96));color:#a7f3d0;font-weight:900;font-size:15px;letter-spacing:.2em;writing-mode:vertical-rl;cursor:pointer}
  html.szoDrawerCollapsed .drawerExpandBtn:hover{background:#10223a}
}
/* V663: 1:1 map tiles from R2 layered over the 1/8 map image */
.mapImageStage .mapTileLayer{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.mapImageStage .mapTileLayer img{position:absolute;display:block;max-width:none;opacity:0;transition:opacity .15s ease}
.mapImageStage .mapTileLayer img.ready{opacity:1}
/* V663: markers and labels stop growing past 200% so the 1:1 view stays readable (anchor point stays fixed) */
.mapImageStage .mapDot,.mapImageStage .mapAreaLabel,.mapImageStage .mapTransferLabel{transform-origin:0 0;scale:min(1,calc(2 / var(--mz,1)))}

@keyframes uiSheetUp{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.uiSettingsCard{animation:none}}
/* Shop server toggle + dialogue conditions */
.shopPickerMode{gap:8px;flex-wrap:wrap}
.shopServerTabs button.active{background:linear-gradient(135deg,#a78bfa,#38bdf8)}
.shopConds{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;align-items:center}
.shopCond{font-size:12.5px;font-weight:800;padding:2px 9px;border-radius:999px;border:1px solid color-mix(in srgb,var(--accent) 55%,var(--line));color:var(--text);background:color-mix(in srgb,var(--accent) 12%,transparent)}
.shopCond.server{border-color:#a78bfa;background:rgba(167,139,250,.16)}
.shopCondId{font-size:12px;color:var(--muted)}
.shopCondNote{margin-top:6px;font-size:13px;color:var(--muted);line-height:1.5}
@media(max-width:760px){.shopPickerMode .shopModeTabs{width:auto;flex:1 1 140px}}
/* Header search suggestions */
.globalSuggest{position:fixed;z-index:200;max-height:min(70vh,520px);overflow:auto;padding:6px;border:1px solid color-mix(in srgb,var(--accent) 40%,var(--line));border-radius:14px;background:var(--panel2,#0b1527);box-shadow:0 16px 40px rgba(0,0,0,.45)}
.globalSuggest .gsHead{font-size:11.5px;letter-spacing:.12em;color:var(--muted);padding:8px 10px 3px}
.globalSuggest .gsRow,.globalSuggest .gsAll{display:flex;box-sizing:border-box;align-items:baseline;justify-content:space-between;gap:10px;text-align:left;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:var(--text);font:inherit;cursor:pointer;min-height:0}
.globalSuggest .gsRow b{font-weight:800;min-width:0;overflow-wrap:anywhere}
.globalSuggest .gsRow small{color:var(--muted);font-size:12px;white-space:nowrap}
.globalSuggest .gsRow:hover,.globalSuggest .gsRow.active,.globalSuggest .gsAll:hover,.globalSuggest .gsAll.active{background:color-mix(in srgb,var(--accent) 18%,transparent)}
.globalSuggest .gsAll{justify-content:center;margin-top:4px;border-top:1px solid var(--line);border-radius:0 0 9px 9px;color:var(--accent);font-weight:800}
.qaNav{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}
.qaNavChip{display:inline-flex;gap:6px;align-items:center;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--panel2);color:var(--text);font-weight:800;cursor:pointer}
.qaNavChip b{font-size:12px;padding:0 7px;border-radius:999px;background:color-mix(in srgb,var(--accent) 30%,transparent)}
.qaCond{display:inline-block;margin-left:8px;font-size:12px;font-weight:600;color:var(--muted)}
.shopPreview h1{font-size:20px;margin:0 0 4px}
.shopPreview .shopPreviewServer{margin:4px 0 6px}
.shopPreview .shopBlock{margin:10px 0}
.shopPreview h3{font-size:14px;margin:12px 0 6px;color:var(--muted);letter-spacing:.08em}
/* 1:1 map zoom: monsters and NPCs drawn at their real in-game size (stage is 1/8 scale, zoomed x8) */
.mapImageStage.lifeSize .mapDot.withImage{width:0;height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;transform:none;scale:none}
.mapImageStage.lifeSize .mapDot.withImage img{position:absolute;left:0;top:0;width:auto;height:auto;max-width:none;max-height:none;transform-origin:50% 100%;transform:translate(-50%,-100%) scale(.125);image-rendering:auto}
.mapImageStage.lifeSize .mapDot.withImage:hover img,.mapImageStage.lifeSize .mapDot.withImage:focus-visible img{filter:drop-shadow(0 0 12px #fff)}
.mapImageStage.lifeSize .mapDot.shopNpcDot img{filter:drop-shadow(0 0 10px rgba(251,191,36,.9))}
/* NPC preview + dialogue */
.npcPreview .itemIdentity{display:flex;gap:14px;align-items:flex-end}
.npcPreviewSprite{display:grid;place-items:end center;min-width:64px;min-height:80px;padding:6px;border-radius:12px;background:color-mix(in srgb,var(--panel2) 80%,#000);border:1px solid var(--line)}
.npcPreviewSprite img{max-height:140px;width:auto}
.npcPreviewMeta{color:var(--muted);font-size:13px;margin-top:2px}
.npcTalk{display:grid;gap:10px}
.npcTalkNav{display:flex;gap:8px;flex-wrap:wrap}
.npcTalkNav:empty{display:none}
.npcTalkBubble{padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:color-mix(in srgb,var(--panel) 85%,transparent);max-width:46em}
.npcTalkBubble b{display:block;font-size:12.5px;color:var(--accent);margin-bottom:4px}
.npcTalkBubble p{margin:0;line-height:1.75}
.npcTalkBubble.you{justify-self:end;background:color-mix(in srgb,var(--accent) 12%,var(--panel))}
.npcTalkChoices{display:grid;gap:6px}
.npcTalkChoices button{text-align:left;padding:9px 12px;border-radius:10px;border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line));background:color-mix(in srgb,var(--accent) 8%,transparent);color:var(--text);font:inherit;cursor:pointer}
.npcTalkChoices button:hover{background:color-mix(in srgb,var(--accent) 18%,transparent)}
.npcTalkHint{margin:0;color:var(--muted);font-size:13px}
.mapShopActions{flex-wrap:wrap}
.mapShopServer button.active{background:linear-gradient(135deg,#a78bfa,#38bdf8);color:#06111f}
.npcTalkEffects{display:grid;gap:6px;padding:10px 12px;border-radius:12px;border:1px dashed color-mix(in srgb,var(--accent) 55%,var(--line));background:color-mix(in srgb,var(--accent) 6%,transparent);font-size:13.5px}
.npcTalkEffects>div,.npcTalkConds{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.npcTalkCond{font-size:12px;padding:1px 8px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}
.npcTalkAct{font-size:12.5px;font-weight:700;padding:1px 8px;border-radius:999px;background:rgba(52,211,153,.16);color:#6ee7b7}
.npcTalkAct.lose{background:rgba(248,113,113,.16);color:#fca5a5}
.npcTalkChoices button{display:grid;gap:5px}

.npcTalkBubble.hasFace{display:flex;gap:12px;align-items:flex-start}
.npcTalkFace{flex:0 0 auto;width:61px;height:73px;object-fit:cover;border-radius:8px;border:1px solid var(--line);image-rendering:auto;background:#111}
.npcTalkText{min-width:0}
@media (max-width:520px){.npcTalkFace{width:51px;height:61px}}

/* V689: 任務查詢 */
.questPage{display:grid;gap:14px;max-width:960px}
.questHero h1{margin:0 0 4px}
.questSearch{width:100%;margin-top:10px;padding:11px 14px;border-radius:12px;border:1px solid var(--line);background:var(--panel);color:inherit;font-size:15px}
.questTabs,.questGroups{display:flex;flex-wrap:wrap;gap:8px}
.questTabs button{padding:9px 16px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:inherit;font-weight:700;cursor:pointer}
.questTabs button.active{background:var(--accent);border-color:var(--accent);color:#06100c}
.questGroups button{padding:6px 11px;border-radius:10px;border:1px solid var(--line);background:transparent;color:inherit;cursor:pointer;font-size:13.5px}
.questGroups button b{margin-left:6px;font-size:11.5px;opacity:.6;font-weight:600}
.questGroups button.active{border-color:var(--accent);color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}
.questList{display:grid;gap:8px}
.questCard{border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel) 88%,transparent)}
.questCard>summary{cursor:pointer;padding:12px 14px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;list-style:none}
.questCard>summary::-webkit-details-marker{display:none}
.questCard>summary::before{content:'▸';opacity:.6;transition:transform .15s}
.questCard[open]>summary::before{transform:rotate(90deg)}
.questCard>summary small{flex-basis:100%;opacity:.6;padding-left:18px}
.questName{font-weight:800;font-size:15.5px}
.questTags{display:flex;flex-wrap:wrap;gap:5px}
.questTags em{font-style:normal;font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid var(--line);opacity:.85}
.questBody{padding:2px 16px 14px;display:grid;gap:12px;line-height:1.85}
.questStart{margin:0}
.questStart>span{display:inline-block;font-size:12px;padding:1px 8px;margin-right:8px;border-radius:6px;background:color-mix(in srgb,var(--accent) 18%,transparent);color:var(--accent);font-weight:700}
.questSteps{margin:0;padding-left:1.6em;display:grid;gap:6px}
.questNpc{all:unset;cursor:pointer;color:var(--accent);font-weight:700;border-bottom:1px dashed currentColor}
.questPlace{font-weight:700}
.questCoord{all:unset;cursor:pointer;display:inline-block;margin:0 4px;padding:0 7px;font-size:12px;line-height:1.7;border-radius:6px;border:1px solid var(--line);opacity:.85;white-space:nowrap}
.questCoord::before{content:'📍';margin-right:3px;font-size:11px}
.questCoord:hover,.questNpc:hover{opacity:1;filter:brightness(1.2)}
.questMeta{display:grid;gap:6px}
.questMeta>b{font-size:13px;opacity:.75}
.questItems{display:flex;flex-wrap:wrap;gap:6px}
.questItem{padding:4px 10px;border-radius:8px;border:1px solid var(--line);background:transparent;color:inherit;font-size:13px;cursor:pointer}
.questRewards{margin:0;padding-left:1.2em}
.questCount{margin:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.questPreview .questBody{padding:0}
.questPreview>.questTags{margin:4px 0 14px}
@media (max-width:600px){.questBody{padding:2px 12px 12px}.questTabs button{padding:8px 13px}}
.questBody button.questNpc,.questBody button.questCoord{all:unset!important;cursor:pointer!important;display:inline!important}
.questBody button.questNpc{color:var(--accent)!important;font-weight:700!important;border-bottom:1px dashed currentColor!important}
.questBody button.questCoord{display:inline-block!important;margin:0 4px!important;padding:0 7px!important;font-size:12px!important;line-height:1.7!important;border-radius:6px!important;border:1px solid var(--line)!important;white-space:nowrap!important}
.questBody button.questItem{min-height:0!important;width:auto!important;padding:4px 10px!important;font-size:13px!important}
/* V690: long sub text wraps below instead of squeezing the name */
.globalSuggest .gsRow{flex-wrap:wrap;row-gap:2px}
.globalSuggest .gsRow b{flex:0 0 auto;white-space:nowrap;overflow-wrap:normal}
.globalSuggest .gsRow small{flex:1 1 12em;min-width:0;white-space:normal;text-align:right;line-height:1.5}
@media (max-width:600px){.globalSuggest .gsRow small{flex-basis:100%;text-align:left}}
.questBody button.questItemLink{all:unset!important;cursor:pointer!important;color:#f0c674!important;font-weight:700!important;border-bottom:1px dotted currentColor!important}

/* V697: 搜尋結果 — 用途 / 取得途徑 grouped, one-line rows */
.qaItemBlock{display:grid;gap:12px}
.qaItemBlock+.qaItemBlock{border-top:1px dashed rgba(45,212,191,.25);padding-top:12px}
.qaItemBlock h4{margin:0;font-size:16px;color:#facc15}
.qaGroup{display:grid;gap:6px}
.qaGroup h3{margin:0;font-size:14px;color:var(--muted,#9fb3d1);display:flex;align-items:center;gap:8px;font-weight:800}
.qaGroup h3 b{font-size:11.5px;padding:1px 7px;border-radius:999px;background:rgba(45,212,191,.16);color:#7fe3d3}
.qaLines{display:grid;border:1px solid rgba(45,212,191,.18);border-radius:12px;overflow:hidden;background:#0b1527}
.qaLine{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:9px 12px;border-top:1px solid rgba(45,212,191,.1)}
.qaLines>.qaLine:first-child,.qaMore>.qaLine:first-of-type{border-top:0}
.qaLineMain{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;flex:1 1 auto;min-width:0}
.qaLineMain strong{font-size:15.5px}
.qaLineMain small{color:#8ea6c9;font-size:12.5px}
.qaLineGet{color:#c6d9f6;font-size:13px;flex:1 1 16em}
.qaLineActs{display:flex;gap:6px;margin-left:auto}
button.qaMini{padding:4px 10px!important;min-height:0!important;font-size:12.5px!important;border-radius:8px!important;border:1px solid rgba(45,212,191,.35)!important;background:transparent!important;color:#7fe3d3!important;width:auto!important}
button.qaLink{all:unset;cursor:pointer;font-weight:800;color:#e9f3ff;border-bottom:1px dashed rgba(127,227,211,.6)}
.qaLineGet button.qaLink{font-weight:700;color:#facc15;border-bottom-color:rgba(250,204,21,.5)}
.qaMore{border-top:1px solid rgba(45,212,191,.1)}
.qaMore>summary{cursor:pointer;padding:8px 12px;color:#7fe3d3;font-size:13px;font-weight:700}
.qaMore[open]>summary{border-bottom:1px solid rgba(45,212,191,.1)}
@media (max-width:600px){.qaAnswer h2{font-size:20px}.qaLine{padding:8px 10px}}
.itemUsedIn>summary{cursor:pointer;list-style:none}
.itemUsedIn>summary h2{display:inline}
.itemUsedIn>summary::before{content:'▸ ';opacity:.6}
.itemUsedIn[open]>summary::before{content:'▾ '}
.questQty{margin:0 3px;font-size:12px;color:#facc15;font-weight:700;white-space:nowrap}
.questSrv{font-style:normal;font-size:11px;padding:0 6px;margin:0 3px;border-radius:999px;border:1px solid currentColor;color:#7fe3d3}
.questSrv[data-srv="免服"]{color:#f0a5c8}
.questHandins{margin:0;padding-left:1.2em;display:grid;gap:3px}
.questHandins span{color:#facc15;font-weight:700}
.questHandins small{opacity:.7}
.npcTalkServer{display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;margin-right:auto}
.npcTalkServer button{all:unset;cursor:pointer;padding:5px 12px;font-size:13px;font-weight:700;opacity:.65}
.npcTalkServer button.active{background:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--accent);opacity:1}
.npcTalkServer.differs{border-color:color-mix(in srgb,#facc15 60%,var(--line))}
.questRewardNote{margin-left:8px;font-weight:600;font-size:12px;color:#facc15;opacity:1}
/* 主線任務 stand out */
.questCard.questMain{border-color:rgba(250,204,21,.55);background:linear-gradient(90deg,rgba(250,204,21,.10),transparent 55%),color-mix(in srgb,var(--panel) 88%,transparent);box-shadow:inset 4px 0 0 #facc15}
.questCard.questMain .questName{color:#fde68a}
.questTags em.questMainTag{background:#facc15;color:#1a1300;border-color:#facc15;font-weight:800;opacity:1}
.questTags em.questMainTag::before{content:'★ '}
.questGameXY{margin:0 2px 0 4px;font-size:12px;color:#9fb3d1;white-space:nowrap}
.questTargets{margin:4px 0 2px;font-size:13.5px;line-height:2}
.questTargets>span{display:inline-block;font-size:11.5px;padding:0 7px;margin-right:6px;border-radius:6px;background:rgba(127,227,211,.14);color:#7fe3d3;font-weight:700}
.questTargets i{font-style:normal;opacity:.5;margin:0 2px}
/* The pin's needle tip sits exactly on the spot: a 0×0 anchor at the point (scaled about itself
   when zoomed in), the 30px pin drawn above it and the label below. */
.mapPlacePin{position:absolute;width:0;height:0;pointer-events:none;z-index:5;transform-origin:0 0}
.mapPinBody{position:absolute;left:0;top:0;display:flex;flex-direction:column;align-items:center;transform:translate(-50%,-30px);animation:mapPinDrop .5s ease-out}
.mapPlacePin b{font-size:30px;height:30px;line-height:1;filter:drop-shadow(0 2px 3px rgba(0,0,0,.7))}
.mapPinBody>span{margin-top:4px;padding:2px 8px;border-radius:6px;background:rgba(20,25,30,.92);border:1px solid #ffd166;color:#ffdf8d;font-weight:800;font-size:14px;white-space:nowrap}
.mapImageStage .mapPlacePin{scale:min(1,calc(2 / var(--mz,1)))}
@keyframes mapPinDrop{from{transform:translate(-50%,-90px);opacity:0}to{transform:translate(-50%,-30px);opacity:1}}
.questSpots{margin:4px 0 2px;display:grid;gap:3px;font-size:13.5px}
.questSpots>span{justify-self:start;font-size:11.5px;padding:0 7px;border-radius:6px;background:rgba(250,204,21,.16);color:#facc15;font-weight:700}
.questSpot{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px}
.questSpotXY{color:#facc15;font-size:13px}
.questSpot small{color:#9fb3d1;font-size:12.5px}
.questBody button.questMonLink{all:unset!important;cursor:pointer!important;color:#ff9b9b!important;font-weight:700!important;border-bottom:1px dashed currentColor!important}
/* Quest text: places named in a step are links themselves (hover shows map and coordinates) */
.questBody button.questMapLink{all:unset!important;cursor:pointer!important;display:inline!important;color:#f5c86b!important;font-weight:700!important;border-bottom:1px dashed currentColor!important}
.questBody button.questMapLink:hover,.questBody button.questNpc:hover,.questBody button.questMonLink:hover{filter:brightness(1.25)}
.questClasses{margin-bottom:-4px}
.questClasses button.active{background:#ffd166!important;color:#1b1b1b!important;border-color:#ffd166!important}

/* 技能查詢 */
.skillList{display:grid;gap:10px}
.skillCard{border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel) 88%,transparent);padding:12px 14px;display:grid;gap:10px}
.skillCard header{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.skillCard h3{margin:0;font-size:17px;color:#ffdf8d}
.skillTier,.skillTag{font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid var(--line);opacity:.85}
.skillTag{border-color:#c77dff;color:#d9a8ff}
.skillCard header small{opacity:.6}
.skillFacts{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 14px;margin:0}
.skillFacts div{display:flex;gap:8px;align-items:baseline;min-width:0}
.skillFacts dt{flex:0 0 auto;font-size:12.5px;opacity:.65}
.skillFacts dd{margin:0;font-weight:600;min-width:0}
.skillHelp{margin:0;line-height:1.6;opacity:.92}
.skillLearn{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:8px 18px;padding-top:8px;border-top:1px dashed var(--line)}
.skillLearn b{font-size:12.5px;opacity:.7;font-weight:600}
.skillLearn ul{margin:4px 0 0;padding-left:18px;line-height:1.7}
.skillWho{opacity:1!important;font-size:inherit!important;color:#8fd3ff}
.skillPlaces{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.skillPlace{display:inline-flex;align-items:baseline;gap:5px;padding:4px 9px;border-radius:9px;border:1px solid var(--line);background:transparent;color:#7ee0b5;cursor:pointer;font-weight:700;font-size:13.5px}
.skillPlace span{color:var(--muted,#aab);font-weight:500;font-size:12px}
.skillPlace small{color:#ffd166;font-weight:600}
.skillPlace:hover,.skillItem:hover,.skillQuest:hover{filter:brightness(1.25)}
.skillItem,.skillQuest{all:unset;cursor:pointer;color:#f5c86b;font-weight:700;border-bottom:1px dashed currentColor}
.skillQuest{color:#7ee0b5}
.skillQty{margin-left:2px;color:#ffd166;font-weight:700}
.skillNote{margin:0;font-size:12.5px;opacity:.7}
@media (max-width:640px){.skillLearn{grid-template-columns:1fr}.skillFacts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.skillIcon{width:40px;height:40px;border-radius:6px;border:1px solid var(--line);background:#222;flex:0 0 auto}
.npcTalkAlt{margin-top:8px;border:1px dashed var(--line);border-radius:10px;padding:6px 10px}
.npcTalkAlt>summary{cursor:pointer;color:var(--muted);font-size:13px;padding:4px 0}
.npcTalkAlt[open]>summary{margin-bottom:6px}
.exList{display:grid;gap:12px}
.exNpc{border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel) 88%,transparent);padding:10px 14px;display:grid;gap:6px}
.exNpc>header{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.exNpc h3{margin:0;font-size:21px;font-weight:800;color:#f2f7ff;padding-left:10px;border-left:4px solid var(--accent);line-height:1.2}
.exNpc h4{margin:6px 0 0;font-size:13.5px;color:var(--muted);font-weight:700}
.exVer{font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid var(--line);opacity:.85}
.exPlaces{display:flex;flex-wrap:wrap;gap:5px}
.exPlace{padding:3px 8px;border-radius:8px;border:1px solid var(--line);background:transparent;color:#7ee0b5;cursor:pointer;font-weight:700;font-size:13px}
.exPlace small{opacity:.7;font-weight:400}
.exRows{list-style:none;margin:0;padding:0;display:grid}
.exRow{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;padding:6px 0;border-bottom:1px dashed color-mix(in srgb,var(--line) 70%,transparent);line-height:1.5}
.exRow:last-child{border-bottom:0}
.exGive,.exGet{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:2px 4px}
.exArrow{color:var(--accent);padding:0 2px}
.exItem{all:unset;cursor:pointer;color:#f5c86b;font-weight:700}
.exItem.plain{cursor:default;color:inherit}
.exGet .exItem{color:#7ee0b5}
.exQty{color:#ffd166;font-weight:700;font-size:13px}
.exPlus{opacity:.55;font-size:12px}
.exTag{font-size:12px;padding:1px 7px;border-radius:999px;border:1px solid var(--line);color:#8fd3ff}
.exTag.dim{color:var(--muted)}
.exHint{margin:0}
.exMore{justify-self:center}
.exTabs{flex-wrap:wrap}
.exTabs button{padding:6px 12px;font-size:13.5px}
.exMany>summary{cursor:pointer;list-style:none;display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px}
.exMany>summary::-webkit-details-marker{display:none}
.exMany>summary .exItem.plain{color:#f5c86b;font-weight:700}
.exMany[open]>summary .exTag{border-color:var(--accent)}
.exManyList{margin-top:4px;font-size:13px;line-height:1.7;opacity:.9}
.exChips{display:grid;gap:8px}
.exMaps button{border-style:dashed}
.exMaps button.active{border-style:solid}
.exSetNote{flex-basis:100%;font-size:12.5px;color:var(--muted)}
.exSetNote>summary{cursor:pointer;list-style:none}
.exSetNote>summary::-webkit-details-marker{display:none}
.exSetNote[open]>summary{display:none}
.exSetNote>div{line-height:1.7}
.exSetNote .exItem{font-weight:500;color:var(--muted)}
.exPickList{flex-basis:100%;font-size:13px;line-height:1.75}
.exPickList .exItem{color:#7ee0b5;font-weight:600}
.exChipRow{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:start}
.exChipLabel{font-size:12px;font-weight:700;color:var(--muted);padding:8px 8px 0 0;min-width:2.6em;border-right:1px solid var(--line)}
.exChipRow+.exChipRow{padding-top:8px;border-top:1px dashed var(--line)}
.exMaps button{border-style:dashed;color:#9fd0ff}
.exMaps button::before{content:"📍";margin-right:3px;font-size:.85em}
.exNpcChips button{font-weight:700}
/* 副降神試算 card layout (V755) */
.jsPage .jsTabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px}
.jsPage .jsTabs button,.jsPage .jsHeroList button,.jsPage .jsStars button,.jsPage .jsSlot button,.jsPage .jsActions button{font:inherit;color:var(--text,#dce7f5);background:#102a36;border:1px solid #357b83;border-radius:6px;padding:7px 11px;cursor:pointer}
.jsPage .jsTabs button[aria-selected=true],.jsPage .jsHeroList button.active,.jsPage .jsStars button.active{background:#137b77;color:#fff}
.jsPage button:disabled{opacity:.35;cursor:not-allowed}
.jsLayout{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:18px;align-items:start}
@media (max-width:820px){.jsLayout{grid-template-columns:1fr}}
.jsSide{display:grid;gap:8px}
.jsSideHead{font-size:14px;color:var(--muted)}.jsSideHead b{color:#7ee0b5;font-size:16px}
.jsSide input[type=search]{width:100%;min-width:0}
.jsHeroList{display:flex;flex-wrap:wrap;gap:6px;max-height:240px;overflow:auto;padding:4px;border:1px solid var(--line);border-radius:8px}
.jsHeroList button{padding:5px 9px;font-size:13.5px}
.jsLabel{font-size:12px;font-weight:700;color:var(--muted);margin-top:6px}
.jsStars{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.jsStars button{padding:5px 0}
.jsTotals{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:2px 14px}
.jsTotals div{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:4px 0}
.jsTotals b{color:#f2f7ff}.jsTotals b.zero{color:var(--muted);font-weight:400}
.jsCombos{display:grid;gap:6px}.jsCombos div{border-left:3px solid #dda84d;padding:4px 8px;background:var(--panel)}.jsCombos small{display:block;color:var(--muted)}
.jsCards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.jsCard{font:inherit;text-align:left;display:grid;gap:4px;align-content:start;min-height:150px;padding:12px;border-radius:10px;border:1px solid #2f6b4f;background:linear-gradient(180deg,#123526,#0d241b);color:var(--text,#dce7f5);cursor:pointer}
.jsCard.empty{background:transparent;border-style:dashed;border-color:var(--line);color:var(--muted)}
.jsCard.active{outline:2px solid #53ded3;outline-offset:1px}
.jsCardRole{font-size:12px;color:#9fd0ff}
.jsCardName{font-size:18px;font-weight:800}
.jsCardStar{justify-self:start;font-size:12px;padding:1px 8px;border-radius:999px;background:#dda84d;color:#1b1406;font-weight:800}
.jsCardStats{font-size:12.5px;color:#cfe;line-height:1.6}
.jsSlots{display:grid;gap:6px}
.jsSlot{display:grid;grid-template-columns:24px minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:6px 8px;border:1px solid var(--line);border-radius:8px}
.jsSlot b{color:#dda84d}.jsSlot span{font-size:13px;overflow-wrap:anywhere}
.jsSlot button{padding:4px 10px}
.jsActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.jsBelow{margin-top:16px;display:grid;gap:8px}
/* 副降神試算 portraits + 聯動 filter (V756) */
.jsSeries{display:flex;flex-wrap:wrap;gap:5px}
.jsPage .jsSeries button{font:inherit;font-size:12.5px;color:var(--text,#dce7f5);background:#1a2430;border:1px solid #4b5b6e;border-radius:999px;padding:4px 10px;cursor:pointer}
.jsPage .jsSeries button.active{background:#dda84d;border-color:#dda84d;color:#1b1406;font-weight:800}
.jsSeries small{margin-left:4px;opacity:.7;font-size:11px}
.jsHeroList{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:6px;max-height:340px}
.jsPage .jsHeroList button{display:grid;justify-items:center;align-content:start;gap:3px;padding:4px 3px 5px;font-size:12.5px;line-height:1.2}
.jsPage .jsHeroList button.clear{align-content:center;min-height:60px;color:var(--muted);background:transparent;border-style:dashed}
.jsHeroFace{width:46px;height:46px;border-radius:6px;object-fit:cover;object-position:50% 18%;background:#000;border:1px solid #2b4250}
.jsHeroFace.none{display:block}
.jsHeroList button span{overflow-wrap:anywhere;text-align:center}
.jsCardFace{position:relative;display:block;aspect-ratio:182/170;border-radius:8px;overflow:hidden;background:#05100c;border:2px solid #c9a24a;box-shadow:0 0 0 2px #3a2a10 inset}
.jsCardFace img{width:100%;height:100%;object-fit:cover;object-position:50% 12%;display:block}
.jsCard.empty .jsCardFace{border:2px dashed var(--line);box-shadow:none;background:transparent;display:grid;place-items:center}
.jsCardPlus{font-size:30px;color:var(--muted)}
.jsCardFace .jsCardStar{position:absolute;right:6px;bottom:6px}
.jsCard.active .jsCardFace{border-color:#53ded3}
.jsLayout{grid-template-areas:"pick main" "pick stat";grid-template-rows:auto 1fr}.jsSide{grid-area:pick}.jsMain{grid-area:main}.jsStat{grid-area:stat;display:grid;gap:8px;align-content:start}
@media (max-width:820px){.jsLayout{grid-template-areas:"pick" "main" "stat"}.jsCards{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.jsCard{min-height:0;padding:6px}.jsCardName{font-size:14px}.jsCardRole{font-size:10.5px}.jsCardStats{font-size:11px}.jsHeroList{max-height:260px}}
@media (min-width:821px){.jsStat .jsTotals{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}.jsStat .jsCombos{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}}
/* V760: desktop — picker on top, five cards in one row below, totals under them */
@media (min-width:821px){
.jsLayout{grid-template-columns:1fr;grid-template-areas:"pick" "main" "stat";grid-template-rows:auto}
.jsSide{grid-template-columns:minmax(0,1fr) 320px;column-gap:18px;align-items:start}
.jsSide>.jsSideHead,.jsSide>input,.jsSide>.jsSeries,.jsSide>.jsHeroList{grid-column:1}
.jsSide>.jsLabel{grid-column:2;grid-row:1;margin-top:0}
.jsSide>.jsStars{grid-column:2;grid-row:2/span 3}
.jsHeroList{max-height:250px}
.jsCards{grid-template-columns:repeat(5,minmax(0,1fr))}
.jsCard{min-height:0}
}
/* V761: balance the top picker — left: search + 降神, right: 分類 + 星等 */
@media (min-width:821px){
.jsSide{grid-template-columns:minmax(0,1fr) minmax(0,1fr);row-gap:8px}
.jsSide>.jsSideHead{grid-column:1;grid-row:1}
.jsSide>input{grid-column:1;grid-row:2}
.jsSide>.jsHeroList{grid-column:1;grid-row:3/span 3;max-height:260px;align-self:stretch}
.jsSide>.jsSeries{grid-column:2;grid-row:1/span 2;align-content:start}
.jsSide>.jsLabel{grid-column:2;grid-row:3;margin-top:4px}
.jsSide>.jsStars{grid-column:2;grid-row:4/span 2}
}
/* V762: every stat on each 降神 card */
.jsCardStats{display:grid;gap:1px;line-height:1.45}
.jsCardStats>span{display:flex;justify-content:space-between;gap:6px;border-bottom:1px dotted rgba(255,255,255,.08)}
.jsCardStats i{font-style:normal;color:#9fc9c0}
.jsCardStats b{font-weight:600;color:#eaf6f2}
.jsCardStats>span.zero b,.jsCardStats>span.zero i{color:var(--muted);font-weight:400;opacity:.6}

/* V763: 連結提示、存檔頭像、推薦／比較分頁、手機固定列 */
.jsPage .jsHeroList button.link{border-color:#dda84d;box-shadow:0 0 0 1px #dda84d inset}
.jsLinkHint{font-style:normal;font-size:10.5px;line-height:1.2;color:#1b1406;background:#dda84d;border-radius:4px;padding:1px 4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jsCardLinks{display:flex;flex-wrap:wrap;gap:3px}
.jsCardLinks i,.jsCmpLinks i,.jsRecFoot i{font-style:normal;font-size:11px;padding:1px 6px;border-radius:999px;background:rgba(221,168,77,.18);color:#f3cf86;border:1px solid rgba(221,168,77,.5);margin:1px 2px 1px 0;display:inline-block}
.jsNear{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px}
.jsPage .jsNear button{font:inherit;display:flex;gap:8px;align-items:center;text-align:left;background:#14222b;border:1px dashed #dda84d;border-radius:8px;padding:5px 8px;color:var(--text,#dce7f5);cursor:pointer}
.jsNear span{display:grid}.jsNear small{color:var(--muted);font-size:11.5px}
.jsPage .jsStarAll{font:inherit;font-size:13px;color:#f3cf86;background:transparent;border:1px solid rgba(221,168,77,.6);border-radius:6px;padding:6px 10px;cursor:pointer}
.jsMini{display:inline-flex;gap:3px;align-items:center}
.jsMini>span{position:relative;width:30px;height:30px;border-radius:5px;overflow:hidden;background:#000;border:1px solid #2b4250;display:inline-block}
.jsMini>span.none{background:transparent;border-style:dashed;border-color:var(--line)}
.jsMini img{width:100%;height:100%;object-fit:cover;object-position:50% 15%;display:block}
.jsMini em{position:absolute;right:0;bottom:0;font-style:normal;font-size:9.5px;font-weight:800;background:#dda84d;color:#1b1406;padding:0 2px;border-radius:3px 0 0 0;line-height:1.2}
.jsSlot{grid-template-columns:24px minmax(0,1fr) auto auto auto}
.jsSlot.cmp{border-color:#53ded3}
.jsDiff{border:1px solid #53ded3;border-radius:8px;padding:8px 10px}
.jsTotals b.up{color:#7ee0b5}.jsTotals b.down{color:#ff8f8f}
.jsCmpPick{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.jsPage .jsCmpPick button{font:inherit;display:flex;gap:8px;align-items:center;background:#102a36;border:1px solid #357b83;border-radius:8px;padding:6px 10px;color:var(--text,#dce7f5);cursor:pointer}
.jsPage .jsCmpPick button.active{background:#0f4f4a;border-color:#53ded3;box-shadow:0 0 0 1px #53ded3 inset}
.jsCmpPick b{color:#dda84d}
.jsCmpTable th{vertical-align:top}.jsCmpTable th .jsMini{display:flex;margin-top:4px}
.jsRecForm{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px 12px}
.jsRecForm label{display:grid;gap:4px;font-size:12.5px;color:var(--muted)}
.jsRecForm label:first-child{grid-column:span 2}
.jsPage .jsPrimary{background:#137b77;color:#fff;font-weight:700}
.jsRecTitle{margin:18px 0 6px;font-size:18px}.jsRecTitle small{display:block;font-size:12.5px;font-weight:400;color:var(--muted)}
.jsRecCard{border:1px solid #2f6b4f;border-radius:10px;padding:10px 12px;margin-top:10px;background:linear-gradient(180deg,#112f23,#0c1f18)}
.jsRecHead{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.jsRecHead b{font-size:16px}
.jsPage .jsRecHead button{margin-left:auto;font:inherit;font-size:13px;background:#137b77;color:#fff;border:0;border-radius:6px;padding:6px 10px;cursor:pointer}
.jsRecPicks{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:8px 0}
.jsRecPick{display:grid;gap:2px;text-align:center}.jsRecPick b{font-size:14px}.jsRecPick small{color:var(--muted);font-size:11px}
.jsRecPick .jsCardFace{aspect-ratio:1/1;border-width:1px}
.jsRecPick.main .jsCardFace{border-color:#53ded3}
.jsRecFoot{display:grid;gap:4px;font-size:13px;color:#cfe}
.jsRecTable{margin-top:14px}.jsRecTable summary{cursor:pointer;color:#9fd0ff}
.jsSticky{display:none}
@media (max-width:820px){
.jsSticky.show{display:flex;position:fixed;top:0;left:0;right:0;z-index:60;gap:6px;justify-content:center;padding:6px 8px;background:rgba(8,16,22,.95);border-bottom:1px solid #2f6b4f;box-shadow:0 4px 12px rgba(0,0,0,.4)}
.jsSticky button{display:grid;justify-items:center;gap:1px;background:transparent;border:0;padding:0;color:var(--muted);font:inherit;cursor:pointer}
.jsSticky img,.jsSticky span{width:40px;height:40px;border-radius:6px;object-fit:cover;object-position:50% 15%;border:2px solid #c9a24a;display:grid;place-items:center;background:#000}
.jsSticky span{border-style:dashed;border-color:var(--line);background:transparent}
.jsSticky button.active img,.jsSticky button.active span{border-color:#53ded3}
.jsSticky small{font-size:10px}
.jsSlot{grid-template-columns:20px minmax(0,1fr) auto auto;row-gap:6px}
.jsSlot>button[data-js-cmp]{grid-column:2/-1}
.jsMini>span{width:26px;height:26px}
.jsRecPicks{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.jsRecPick b{font-size:12px}
.jsRecForm label:first-child{grid-column:1/-1}
}
@media (min-width:821px){.jsSide>.jsStarAll{grid-column:2;grid-row:6;justify-self:start}}
/* V764: 降神 section nav, 主降神比較／20星總表 picker pages, live calculators */
.jsNav{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;margin:10px 0 12px;padding-bottom:2px}
.jsNav button{flex:0 0 auto;font:inherit;font-size:14px;font-weight:700;color:var(--text,#dce7f5);background:#14222b;border:1px solid #2f4b5a;border-radius:999px;padding:7px 14px;cursor:pointer;white-space:nowrap}
.jsNav button.active{background:#dda84d;border-color:#dda84d;color:#1b1406}
.jsPage .jsSubTabs{margin:0 0 14px}
.jsPage .jsSubTabs button{font-size:13px;padding:5px 12px}
.jsSection>.jsNav+h2{display:none}
.jsCardStats>span.best{background:rgba(221,168,77,.16);border-radius:3px}
.jsCardStats>span.best b{color:#f3cf86}
.jsHint{margin-top:8px;font-size:13px}
.jsStarHead{display:flex;gap:12px;align-items:center;margin-bottom:10px}
.jsStarHead .jsCardFace{width:96px;flex:0 0 96px}
.jsStarHead b{display:block;font-size:22px}.jsStarHead small{display:block;color:var(--muted)}
.jsStarTable td,.jsStarTable th{text-align:right;white-space:nowrap}.jsStarTable td:first-child,.jsStarTable th:first-child{text-align:left}
.jsStarTable tr.step td{border-top:1px solid rgba(221,168,77,.35)}
.jsStarTable tr.top td{color:#f3cf86;font-weight:700}
@media (min-width:821px){
.jsStarsLayout{grid-template-columns:minmax(260px,330px) minmax(0,1fr)!important;grid-template-areas:"pick main"!important}
.jsStarsLayout .jsSide{grid-template-columns:1fr!important}
.jsStarsLayout .jsSide>*{grid-column:1!important;grid-row:auto!important}
.jsStarsLayout .jsHeroList{max-height:560px}
}
.jsLive .jsLiveHide{display:none}
.jsLive [id$="Result"] .kvGrid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.jsLive [id$="Result"] .kv .v{font-size:20px;font-weight:800;color:#f2f7ff}
.jsLive [id$="Result"] .kv.hl{border:2px solid #dda84d;background:rgba(221,168,77,.12)}
.jsLive [id$="Result"] .kv.hl .v{color:#f3cf86;font-size:28px}
.jsStarTable th,.jsStarTable td{padding:6px 8px;font-size:13.5px}
@media (max-width:820px){.jsStarTable th,.jsStarTable td{padding:5px 6px;font-size:12.5px}}
/* V765: 經驗丹 three-way result */
.jsLive #expNeedResult .expGrid{grid-template-columns:minmax(150px,1fr) minmax(0,3fr)}
.jsLive #expNeedResult .expGrid .kv .v{overflow-wrap:anywhere}
.expPills{margin-top:12px;border:2px solid #dda84d;border-radius:12px;padding:12px;background:linear-gradient(180deg,rgba(221,168,77,.16),rgba(221,168,77,.05))}
.expPillsHead{font-weight:800;color:#f3cf86;margin-bottom:8px}
.expPillsRow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.expPill{display:grid;gap:2px;text-align:center;padding:10px 6px;border-radius:10px;background:rgba(0,0,0,.25);border:1px solid rgba(221,168,77,.45)}
.expPill span{font-weight:700;color:#f3cf86}
.expPill b{font-size:26px;line-height:1.15;color:#fff;overflow-wrap:anywhere}
.expPill small{color:var(--muted);font-size:11.5px}
@media (max-width:520px){.jsLive #expNeedResult .expGrid{grid-template-columns:1fr}.expPill b{font-size:20px}}
/* V767: compact phone header (two rows) that hides while scrolling down; small round top button */
.topbar{transition:transform .22s ease}
@media (max-width:820px){
  html body{padding-top:calc(104px + env(safe-area-inset-top))!important}
  html body .topbar{height:auto!important;min-height:0!important;padding:calc(6px + env(safe-area-inset-top)) 10px 8px!important}
  html body .topline{height:auto!important;grid-template-columns:40px minmax(0,1fr) auto!important;grid-template-areas:"menu brand settings" "search search search"!important;grid-template-rows:auto auto!important;min-height:0!important;max-height:none!important;align-content:start!important;row-gap:6px!important;column-gap:8px!important}
  html body .brandTitle{font-size:19px!important}
  html body .menuBtn{width:40px!important;min-width:40px!important;height:40px!important}
  html body .topSearch{height:38px}
  html body .topSearch input{min-height:38px!important;height:38px!important}
  html body .topSearch button{min-height:38px!important;height:38px!important;padding:0 14px!important}
  html body .shellSettingsBtn{width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;line-height:normal!important;padding:0!important;gap:5px!important;background:none!important;border:0!important;justify-content:flex-end}
  html body #openUiSettingsBtn{font-size:0!important;width:36px;height:36px;padding:0!important;border-radius:10px}
  html body #openUiSettingsBtn::before{content:"⚙";font-size:18px;line-height:36px}
  html body .languageControl button{height:36px!important;min-height:36px!important;padding:0 9px!important;font-size:14px!important}
  html body .szoChatLauncher{position:relative;width:36px!important;min-width:36px!important;height:36px!important;padding:0!important;font-size:0!important;justify-content:center;border-radius:10px}
  html body .szoChatLauncher span,html body .szoChatLauncher small{display:none!important}
  html body .szoChatLauncher::before{content:"💬";font-size:17px;line-height:36px}
  body.hdrHidden .topbar{transform:translateY(-110%)}
  .homeBlank{min-height:calc(100dvh - 104px)!important;height:calc(100dvh - 104px)!important}
  .globalTopBtn{font-size:0!important;width:46px;height:46px;padding:0!important;display:grid;place-items:center;border-radius:50%!important;opacity:.92}
  .globalTopBtn[hidden]{display:none!important}
  .globalTopBtn::before{content:"↑";font-size:22px;font-weight:900}
}
@media (min-width:821px){.globalTopBtn{padding:8px 14px!important;font-size:14px!important;opacity:.92}}
/* V767: entry pages as a card grid */
.choiceMenuPage{max-width:none}
html body .choiceMenuList{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
html body .choiceMenuItem{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:88px;padding:16px 16px 16px 18px;border-left:3px solid #dda84d!important;cursor:pointer;transition:transform .12s ease,border-color .12s ease}
html body .choiceMenuItem:hover{transform:translateY(-2px)}
.choiceSeal{width:52px;height:52px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(145deg,#b3261e,#7d1410);color:#fff3e6;font-size:28px;font-weight:900;font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;box-shadow:inset 0 0 0 2px rgba(255,240,220,.25),0 4px 10px rgba(0,0,0,.35);letter-spacing:0}
.choiceText{display:grid;gap:5px;min-width:0}
.choiceArrow{font-size:24px;color:var(--muted)}
@media (max-width:520px){html body .choiceMenuList{grid-template-columns:1fr}html body .choiceMenuItem{min-height:72px}}
/* V767: 武魂 聯動 chips */
.soulSeries{grid-column:1/-1;margin-bottom:4px}
.soulSeries button{font:inherit;font-size:13px;color:var(--text,#dce7f5);background:#1a2430;border:1px solid #4b5b6e;border-radius:999px;padding:5px 12px;cursor:pointer}
.soulSeries button.active{background:#dda84d;border-color:#dda84d;color:#1b1406;font-weight:800}
.soulSeries small{margin-left:4px;opacity:.7;font-size:11px}
/* V770: 武冠收錄 entry like the other entry pages */
html body .collectMenuPage .collectList{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin-top:14px}
html body .collectMenuPage .collectList .resultItem{min-height:88px;display:grid;align-content:center;gap:5px;padding:16px 18px;border-radius:14px;border-left:3px solid #dda84d!important;position:relative}
html body .collectMenuPage .collectList .resultItem::after{content:"›";position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:24px;color:var(--muted)}
html body .collectMenuPage .collectList .rName{font-size:17px}
@media (max-width:520px){html body .collectMenuPage .collectList{grid-template-columns:1fr}}
/* V771: 道具／怪物查詢 — one column; the newest list fills the results area until a search
   has results, then steps aside. Results flow with the page instead of a small scroll box. */
html body .latestQueryLayout{grid-template-columns:minmax(0,1fr)!important}
html body .latestMainPane .results{max-height:none!important;overflow:visible!important}
html body .latestMainPane .results:has(.resultItem){display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:8px;align-items:start}
html body .latestMainPane .results:has(.resultItem)>.muted{grid-column:1/-1}
html body .latestMainPane .results:has(.resultItem)>button:not(.resultItem){grid-column:1/-1;justify-self:center}
html body .latestSidePane{position:static!important;max-height:none!important;overflow:visible!important;top:auto!important;background:transparent!important;border:0!important;padding:4px 0 0!important}
html body .latestSidePane .latestList{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}
html body .latestSidePane .latestList .resultItem:nth-child(n+25){display:none}
html body .latestSideTitle{font-size:16px}
html body .latestQueryLayout:has(.latestMainPane .results .resultItem) .latestSidePane{display:none!important}
/* V774: map exits — arrow pointing off the map + destination name */
.mapTransferOverlay .mapExit{position:absolute;display:flex;align-items:center;gap:4px;padding:0;margin:0;border:0;background:none;cursor:pointer;pointer-events:auto;font:inherit;z-index:3}
.mapExit.toRight{transform:translate(-20px,-50%);transform-origin:20px 50%}
.mapExit.toLeft{flex-direction:row-reverse;transform:translate(calc(-100% + 20px),-50%);transform-origin:calc(100% - 20px) 50%}
.mapImageStage .mapExit{scale:min(1.15,calc(2.2 / var(--mz,1)))}
.mapExitArrow{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;filter:drop-shadow(0 2px 3px rgba(0,0,0,.75))}
.mapExitArrow svg{width:38px;height:38px;transform:rotate(var(--a));animation:mapExitNudge 1.6s ease-in-out infinite}
@keyframes mapExitNudge{0%,100%{translate:0 0}50%{translate:calc(cos(var(--a)) * 4px) calc(sin(var(--a)) * 4px)}}
.mapExitName{display:inline-block;padding:5px 12px 5px 11px;border-radius:999px;background:linear-gradient(180deg,rgba(28,22,10,.92),rgba(14,12,8,.92));border:1.5px solid #f2b33d;color:#ffe7a3;font-size:15px;font-weight:800;letter-spacing:.5px;white-space:nowrap;box-shadow:0 3px 10px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,231,163,.25);text-shadow:0 1px 2px #000}
.mapExit:hover .mapExitName,.mapExit:focus-visible .mapExitName{background:linear-gradient(180deg,#3a2c0e,#21180a);color:#fff3cf}
.mapExit:focus-visible{outline:none}
@media (prefers-reduced-motion:reduce){.mapExitArrow svg{animation:none}}
/* V775: in-map portals (dialog teleports) */
.mapExit.portal .mapExitArrow svg{transform:none;animation:mapPortalSpin 4s linear infinite}
@keyframes mapPortalSpin{to{rotate:360deg}}
.mapExit.portal .mapExitName{border-color:#b48cff;color:#eadcff;background:linear-gradient(180deg,rgba(32,18,52,.93),rgba(16,10,28,.93))}
@media (prefers-reduced-motion:reduce){.mapExit.portal .mapExitArrow svg{animation:none}}
/* V776: exits anchored at a zero-size point and scaled from that point, so they stay put at any zoom (incl. 1:1) */
html body .mapTransferOverlay .mapExit{width:0;height:0;display:block;transform:none!important;transform-origin:0 0!important}
html body .mapImageStage .mapExit{scale:min(1.15,calc(2.2 / var(--mz,1)))}
html body .mapExit .mapExitArrow{position:absolute;left:-20px;top:-20px}
html body .mapExit .mapExitName{position:absolute;top:0;transform:translateY(-50%)}
html body .mapExit.toRight .mapExitName{left:22px}
html body .mapExit.toLeft .mapExitName{right:22px}
/* V780: drop list with icons */
.detailPreviewDrops button{display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;align-items:center}
.dropIcon{width:36px;height:36px;display:grid;place-items:center;border-radius:7px;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.08)}
.dropIcon img{max-width:32px;max-height:32px;width:auto;height:auto;image-rendering:pixelated}
.dropIcon.none{opacity:.4}
.dropText{display:grid;min-width:0}
.dropSortNote{margin-left:8px;font-size:12px;font-weight:400;color:var(--muted)}
/* V780: quest card facts */
.questCard summary{flex-wrap:wrap}
.questFacts{flex-basis:100%;padding-left:18px;display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:4px;font-size:12.5px;font-weight:400;color:var(--muted)}
.questFacts .qfLv{color:#f3cf86;font-weight:700}
.questFacts .qfReward{color:#9fd8c8;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* V780: detail window values — one row per field, name left / value right, larger value */
html body .detailPreview .itemSectionGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
html body .detailPreview .itemSectionGrid>.kv{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:7px 2px;border:0;border-bottom:1px dotted rgba(255,255,255,.1);background:none;border-radius:0;min-height:0}
html body .detailPreview .itemSectionGrid>.kv .k{font-size:13.5px;color:#9fc9c0;margin:0;white-space:nowrap}
html body .detailPreview .itemSectionGrid>.kv .v{font-size:15px;font-weight:700;color:#eef6ff;text-align:right;overflow-wrap:anywhere}
html body .detailPreview .itemSection-help .itemSectionGrid>.kv,html body .detailPreview .itemSection-special .itemSectionGrid>.kv{display:block}
html body .detailPreview .itemSection-help .itemSectionGrid>.kv .v,html body .detailPreview .itemSection-special .itemSectionGrid>.kv .v{text-align:left;font-weight:400}
html body .detailPreview .itemDetailSection h2,html body .detailPreview .itemGroupedDetail>h2{margin-top:16px;padding-left:9px;border-left:3px solid #dda84d}
@media(max-width:600px){html body .detailPreview .itemSectionGrid{grid-template-columns:1fr}}
/* V780: skill compact list */
.skillViewToggle{display:inline-flex;margin:4px 0 10px;border:1px solid #2f4b5a;border-radius:999px;overflow:hidden}
.skillViewToggle button{font:inherit;font-size:13px;padding:6px 14px;background:#14222b;color:var(--text,#dce7f5);border:0;cursor:pointer}
.skillViewToggle button.active{background:#dda84d;color:#1b1406;font-weight:800}
.skillRows{display:grid;gap:4px}
.skillRow{border:1px solid #2b3d4b;border-radius:8px;background:rgba(10,20,28,.6)}
.skillRow[open]{border-color:#dda84d}
.skillRow>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:28px minmax(110px,1.2fr) minmax(60px,.7fr) 70px minmax(80px,1fr) 80px minmax(120px,1.6fr);gap:10px;align-items:center;padding:6px 10px;font-size:13.5px}
.skillRow>summary::-webkit-details-marker{display:none}
.skillRow .srName{font-size:14.5px}
.skillRow .srTier,.skillRow .srLv,.skillRow .srMp{color:var(--muted)}
.skillRow .srTool{color:#f3cf86}
.skillRow .srPlace{color:#9fd8c8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.skillRow>.skillCard{margin:0 8px 8px;border:0}
@media(max-width:820px){.skillRow>summary{grid-template-columns:28px minmax(0,1fr) auto;row-gap:2px}.skillRow .srTier{grid-column:3}.skillRow .srLv,.skillRow .srTool,.skillRow .srMp,.skillRow .srPlace{grid-column:2/-1;font-size:12px}.skillRow .srLv{grid-column:2}.skillRow .srLv:empty,.skillRow .srTool:empty,.skillRow .srMp:empty,.skillRow .srPlace:empty{display:none}}
/* V781: drop icons — the shared thumb is 56px; keep it inside the 36px slot */
html body .detailPreviewDrops button{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;padding:6px 10px!important;min-height:52px}
html body .dropIcon{width:38px;height:38px;overflow:hidden;position:static}
html body .dropIcon .assetThumb{width:38px!important;height:38px!important;border:0;border-radius:6px;background:transparent;position:static}
html body .dropIcon .assetThumb img{max-width:34px!important;max-height:34px!important;position:static}
html body .dropText{grid-column:2;line-height:1.35}
/* V783: headings with a sub-menu show whether it is open */
#navGroup .navBtn.major:has(+ .formBox)>span{display:inline-block;transition:transform .15s}
#navGroup .navBtn.major:has(+ .formBox.active)>span{transform:rotate(90deg)}
/* V784: home shortcuts */
.homePanel{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);width:min(920px,calc(100% - 32px));display:grid;gap:8px;padding:12px 14px;border-radius:14px;background:rgba(6,14,22,.72);border:1px solid rgba(221,168,77,.45);box-shadow:0 10px 30px rgba(0,0,0,.45);backdrop-filter:blur(6px);pointer-events:auto}
.homeRow{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.homeRowTitle{font-size:12.5px;color:#f3cf86;font-weight:800;margin-right:4px;min-width:56px}
.homeTool{font:inherit;font-size:14px;padding:7px 14px;border-radius:999px;background:rgba(20,34,43,.9);color:#eef6ff;border:1px solid #3c5a6a;cursor:pointer}
.homeTool:hover{border-color:#dda84d;color:#ffe7a3}
@media(max-width:820px){.homePanel{bottom:14px;padding:10px}.homeRowTitle{flex-basis:100%}.homeTool{font-size:13px;padding:6px 11px}}
.dropCell{display:flex;align-items:center;gap:10px}
.monsterDropTable .dropIcon{flex:0 0 38px;width:38px;height:38px;overflow:hidden;display:grid;place-items:center}
.monsterDropTable .dropIcon .assetThumb{width:38px!important;height:38px!important;border:0;background:transparent}
.monsterDropTable .dropIcon .assetThumb img{max-width:34px!important;max-height:34px!important}
/* V785: panel sits below the cover art instead of on top of it */
html body .homeBlank{padding-bottom:var(--homePanelH,0px)!important;background-origin:content-box!important;background-clip:content-box!important;box-sizing:border-box!important}
html body .homePanel{bottom:8px}
@media(max-width:820px){html body .homePanel{bottom:6px}}
/* V787: exchange item icons */
.exItem{display:inline-flex;align-items:center;gap:5px;vertical-align:middle}
.exIcon{display:inline-grid;place-items:center;width:24px;height:24px;flex:0 0 24px}
.exIcon:empty{display:none}
.exIcon img{max-width:24px;max-height:24px;image-rendering:pixelated}
.rKeys{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}
.rKeys em{font-style:normal;font-size:11.5px;padding:1px 7px;border-radius:999px;background:rgba(221,168,77,.14);color:#f3cf86;border:1px solid rgba(221,168,77,.35)}
/* V787: map legend */
.mapLegend{position:relative;display:inline-block}
.mapLegend>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center}
.mapLegend>summary::-webkit-details-marker{display:none}
.mapLegend[open]>summary{border-color:#dda84d;color:#ffe7a3}
.mapLegendBox{position:absolute;z-index:40;top:calc(100% + 6px);left:0;width:min(340px,86vw);display:grid;gap:8px;padding:12px;border-radius:12px;background:rgba(8,16,24,.97);border:1px solid #dda84d;box-shadow:0 10px 28px rgba(0,0,0,.55);font-size:13px;line-height:1.4}
.mapLegendBox>div{display:flex;align-items:center;gap:8px}
.mapLegendBox b{color:#ffe7a3;white-space:nowrap}
.mlIcon{flex:0 0 26px;width:26px;height:26px;display:grid;place-items:center}
.mlIcon svg{width:24px;height:24px}
.mapLegendBox .mlDot{position:static;transform:none;flex:0 0 22px}
.mlChip{flex:0 0 auto;font-size:12px;color:#f3cf86}
.mlFloor{flex:0 0 auto;font-size:12px;padding:1px 8px;border-radius:999px;border:1px solid #2fb3c7;color:#dff7ff;background:rgba(6,40,52,.9)}
/* V787: loading skeleton under the loading card */
.pageSkeleton{display:grid;gap:12px;margin-top:14px}
.pageSkeleton i{display:block;border-radius:10px;background:linear-gradient(90deg,rgba(148,163,184,.08) 0%,rgba(148,163,184,.18) 50%,rgba(148,163,184,.08) 100%);background-size:200% 100%;animation:skShimmer 1.3s ease-in-out infinite}
.skBar{height:16px}.skBar.w40{width:40%}.skBar.w70{width:70%}
.skGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.skCard{height:76px}
@keyframes skShimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media (prefers-reduced-motion:reduce){.pageSkeleton i{animation:none}}
/* V787: phone map controls a bit larger */
@media(max-width:820px){
 html body .mapToolBtn{min-height:40px;padding:8px 14px;font-size:14px}
 html body #mapZoomInput{height:28px;min-width:140px}
 html body #mapZoomInput::-webkit-slider-thumb{width:24px;height:24px}
 html body #mapZoomInput::-moz-range-thumb{width:24px;height:24px}
 html body .mapZoomBar label{font-size:14px}
}
.mapLegendBox{left:auto;right:0}
@media(max-width:820px){.mapLegendBox{position:fixed;left:12px;right:12px;top:auto;bottom:16px;width:auto}}
/* V790: item 取得方式 (all sources in one place) */
.itemSources{display:grid;gap:12px;margin-top:18px}
.itemSources>h2{margin:0}
.itemSrcChips{display:flex;flex-wrap:wrap;gap:6px}
.itemSrcChip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;border:1px solid rgba(45,212,191,.3);font-size:12.5px;color:#cfe3ff}
.itemSrcChip b{color:#7fe3d3;font-size:11.5px}
.itemSrcGroup h3 .qaMini{margin-left:auto}
.itemSrcGroup .qaLineGet{flex:0 0 auto;margin-left:auto;text-align:right;font-variant-numeric:tabular-nums;color:#facc15}
.itemSrcGroup .qaLineMain small button.qaLink{font-weight:600;color:#c6d9f6}
.itemSrcNone{margin:0}
.qaSkillIcon{width:24px;height:24px;border-radius:5px;align-self:center}
/* V790: header search rows with thumbnails */
.globalSuggest .gsRow.gsRowIco{flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:10px}
.globalSuggest .gsIco{flex:0 0 30px;width:30px;height:30px;display:grid;place-items:center;border-radius:8px;overflow:hidden}
.globalSuggest .gsImg{background:rgba(148,163,184,.1)}
.globalSuggest .gsImg img{max-width:30px;max-height:30px;object-fit:contain;image-rendering:auto}
.globalSuggest .gsGlyph{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}
.globalSuggest .gsGlyph svg{width:18px;height:18px}
.globalSuggest .gs-map{color:#7fe3d3;background:rgba(45,212,191,.12)}
.globalSuggest .gs-npc{color:#f3cf86;background:rgba(243,207,134,.12)}
.globalSuggest .gs-quest{color:#a5b4fc;background:rgba(165,180,252,.12)}
.globalSuggest .gs-skill{color:#f9a8d4;background:rgba(249,168,212,.12)}
.globalSuggest .gsText{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;flex:1 1 auto;min-width:0}
.detailPreview:not(.floatingMap) button.qaLink{all:unset;cursor:pointer;font-weight:800;color:#e9f3ff;border-bottom:1px dashed rgba(127,227,211,.6)}
.detailPreview:not(.floatingMap) .qaLineMain small button.qaLink{font-weight:600;color:#c6d9f6}
.detailPreview:not(.floatingMap) button.qaLink:focus-visible{outline:2px solid #56cee0;outline-offset:2px}
/* V792: 主線所需道具一覽 */
.questMats{margin:4px 0 14px;padding:12px 14px 14px;border:1px solid rgba(250,204,21,.45);border-left:4px solid #facc15;border-radius:12px;background:linear-gradient(180deg,rgba(250,204,21,.08),rgba(250,204,21,.02))}
.questMats h2{margin:0 0 10px;font-size:17px;color:#facc15;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.questMats h2 small{font-size:12.5px;font-weight:500;color:var(--muted,#9fb3d1)}
.questMatList{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
html body button.questMat{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:6px 10px;border:1px solid rgba(148,163,184,.28);border-radius:10px;background:rgba(11,21,39,.75);color:var(--text,#e9f0fa);text-align:left;cursor:pointer;font:inherit}
html body button.questMat:hover{border-color:#facc15}
.questMat img,.questMat i{flex:0 0 30px;width:30px;height:30px;object-fit:contain}
.questMat span{flex:1 1 auto;min-width:0;font-weight:700;overflow-wrap:anywhere}
.questMat b{flex:0 0 auto;color:#facc15;font-variant-numeric:tabular-nums;font-size:14px;white-space:nowrap}
@media(max-width:600px){.questMatList{grid-template-columns:repeat(2,minmax(0,1fr))}.questMat b{white-space:normal;text-align:right;font-size:13px}}
.questMats{min-width:0;max-width:100%;box-sizing:border-box}
.questMatList>.questMat{min-width:0;box-sizing:border-box}
.questPage .questMats{width:auto}
@media(max-width:600px){.questMat b{max-width:52%;overflow-wrap:anywhere}}
.questPage{grid-template-columns:minmax(0,1fr)}
.questList{min-width:0}.questCard{min-width:0;max-width:100%;box-sizing:border-box}.questCard summary{min-width:0}.questFacts{min-width:0;overflow-wrap:anywhere}
html body button.questMat.questMatLong{flex-wrap:wrap;row-gap:2px}
.questMatLong b{flex:1 0 100%!important;max-width:none!important;padding-left:38px;text-align:left!important;white-space:normal;font-size:13px}
.beastLvNote{margin-left:8px;padding:1px 8px;border-radius:999px;font-size:11.5px;font-weight:700;color:#0b1527;background:#facc15;vertical-align:middle}
.beastLv1{background:#7fe3d3}
/* V798: 封獸 Lv.1 / Lv.100 tabs */
.beastLvPanel h3{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.beastLvTabs{display:inline-flex;padding:3px;border-radius:999px;background:rgba(148,163,184,.14);gap:2px}
html body button.beastLvTab{all:unset;cursor:pointer;padding:3px 14px;border-radius:999px;font-size:13px;font-weight:800;color:#9fb3d1;min-height:24px;line-height:24px}
html body button.beastLvTab[aria-selected="true"]{background:#7fe3d3;color:#0b1527}
html body button.beastLvTab[data-beast-lv="100"][aria-selected="true"]{background:#facc15}
html body button.beastLvTab:focus-visible{outline:2px solid #56cee0;outline-offset:2px}
.beastLvSrc{margin:0 0 8px;font-size:12px;color:#facc15}
/* V800: 角色機體模擬（iframe） */
.machineWrap{display:grid;gap:6px}
.machineFrame{width:100%;height:calc(100vh - 150px);min-height:620px;border:1px solid rgba(148,163,184,.25);border-radius:12px;background:#0a1220;display:block}
.machineNote{margin:0;font-size:12.5px;color:#93a6c3;text-align:right}.machineNote a{color:#7fe3d3;margin-left:8px}
/* V801: 寶石試算鑲嵌盤（遊戲原圖） */
#gemPage .gemShapeFill{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px;font-size:13px;color:#9fb0c4}
#gemPage .gemShapeFill .gemRowHead{padding:4px 12px;border-radius:999px}
#gemPage .gemArt{position:relative;width:100%;aspect-ratio:623/322;container-type:inline-size;background:url(../assets/test-media/ui/gem/Gem_Base.png) 0 0/100% 100% no-repeat;border-radius:6px;box-shadow:0 10px 26px rgba(0,0,0,.4)}
#gemPage .gemArt .gemCell{position:absolute;aspect-ratio:auto;max-height:none;padding:0;border:0;border-radius:3px;background:0 0/100% 100% no-repeat;display:block;cursor:pointer}
#gemPage .gemArt .gemCell:not(:disabled):hover{filter:brightness(1.35);box-shadow:0 0 0 .25cqw #e8c66f}
#gemPage .gemArt .gemCell:disabled{opacity:1;cursor:not-allowed}
#gemPage .gemArt .gemCell img{position:absolute;inset:8%;width:84%;height:84%;object-fit:contain;filter:drop-shadow(0 0 .4cqw rgba(255,255,255,.35))}
#gemPage .gemArt .gemCell em{position:absolute;right:-6%;bottom:-8%;font:800 1.7cqw/1 sans-serif;font-style:normal;color:#fff;text-shadow:0 0 2px #000,0 0 2px #000}
#gemPage .gemArtTxt{position:absolute;display:flex;align-items:center;justify-content:center;white-space:nowrap;font-size:2.1cqw;color:#f1e7c8;text-shadow:0 1px 2px #000}
#gemPage .gemArtSum{position:absolute;overflow:auto;font-size:2.1cqw;color:#e8e8e8}
#gemPage .gemArtSum>div{display:flex;justify-content:space-between;padding:.3cqw .6cqw}#gemPage .gemArtSum b{color:#7fe08a}#gemPage .gemArtSum p{margin:.6cqw;color:#8a8a8a}
@media(max-width:640px){#gemPage .gemBoard{overflow-x:auto;padding-bottom:6px}#gemPage .gemArt{min-width:560px}}
/* V803: 降神區分頁在寶石／武魂／角色機體頁也同樣式 */
#reader .jsNav button{flex:0 0 auto;font:inherit;font-size:14px;font-weight:700;color:var(--text,#dce7f5);background:#14222b;border:1px solid #2f4b5a;border-radius:999px;padding:7px 14px;min-height:0;white-space:nowrap;box-shadow:none}
#reader .jsNav button.active{background:#dda84d;border-color:#dda84d;color:#1b1406}
#reader .machineWrap>.jsNav{margin:0 0 4px}
/* V804: 副降神試算 — 點降神格才跳出選降神／星等 */
.jsPickModal{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:16px;background:rgba(3,8,14,.66);backdrop-filter:blur(2px)}
.jsPickBox{width:min(1080px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:14px 16px 18px;border-radius:14px;background:#0f1c27;border:1px solid #2f4b5a;box-shadow:0 24px 60px rgba(0,0,0,.6)}
.jsPickTop{position:sticky;top:-14px;z-index:2;display:flex;align-items:center;gap:12px;margin:-14px -16px 12px;padding:12px 16px;background:#0f1c27;border-bottom:1px solid #2f4b5a}
.jsPickTop b{font-size:17px;color:#dda84d}.jsPickCur{color:var(--muted,#9fb0c4);font-size:14px}
.jsPickDone{margin-left:auto;font:inherit;font-weight:800;padding:7px 22px;border-radius:999px;border:1px solid #6fe0cb;background:#137b77;color:#fff;cursor:pointer}
.jsPickBox .jsSide{display:grid}.jsPickBox .jsSideHead{display:none}
.jsNearBox{margin:0 0 12px;padding:10px 12px;border:2px solid #dda84d;border-radius:12px;background:linear-gradient(120deg,rgba(221,168,77,.18),rgba(221,168,77,.05));box-shadow:0 0 0 1px rgba(0,0,0,.2),0 6px 18px rgba(221,168,77,.12)}
.jsNearHead{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:8px;font-size:16px;font-weight:800;color:#f3cf86}.jsNearHead small{font-size:12.5px;font-weight:500;color:var(--muted,#9fb0c4)}
.jsNearBox .jsNear button{border-style:solid!important;border-color:#dda84d!important;background:#1a2530!important}
.jsNearBox .jsNear button b{color:#f3cf86}
.jsCard{cursor:pointer}.jsCard.empty .jsCardName{color:#dda84d}
.jsPickBox .jsSide{grid-template-columns:1fr!important;gap:10px}
.jsPickBox .jsHeroList{max-height:min(46vh,420px)}
.jsPickBox .jsStars{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:5px}
@media(max-width:600px){.jsPickBox .jsStars{grid-template-columns:repeat(7,minmax(0,1fr))}.jsPickModal{padding:8px;align-items:start}.jsPickBox{max-height:calc(100vh - 16px)}}
.jsPickBox .jsSide>*{grid-column:1/-1!important;grid-row:auto!important}
/* V805: 副降神試算＝遊戲「副降神通」畫面 */
.jsSupportPage .jsCards,.jsSupportPage .jsNearBox,.jsSupportPage .jsStat{display:none}
.jsSupportPage .jsLayout{grid-template-columns:1fr!important;grid-template-areas:"main"!important}
.jsSticky{display:none!important}
.jsGame{position:relative;width:100%;aspect-ratio:623/322;container-type:inline-size;background:url(../assets/test-media/ui/god_panel.png) 0 0/100% 100% no-repeat;border-radius:6px;box-shadow:0 10px 26px rgba(0,0,0,.4);margin-bottom:10px}
.jsPage .jsGameFace{position:absolute;padding:0;border:0;background:transparent;border-radius:2px;cursor:pointer;overflow:hidden;min-height:0}
.jsGameFace img{position:absolute;inset:5.5%;width:89%;height:89%;object-fit:cover}
.jsGameFace.empty span{position:absolute;inset:0;display:grid;place-items:center;font-size:4cqw;color:rgba(255,255,255,.35)}
.jsGameFace em{position:absolute;right:7%;bottom:7%;font:800 1.6cqw/1 sans-serif;font-style:normal;color:#ffe08a;background:rgba(0,0,0,.65);padding:.3cqw .5cqw;border-radius:.4cqw}
.jsGameFace i{position:absolute;left:7%;top:7%;font:700 1.5cqw/1 sans-serif;font-style:normal;color:#fff;background:rgba(0,0,0,.55);padding:.25cqw .45cqw;border-radius:.4cqw}
.jsGameFace:hover{box-shadow:0 0 0 .3cqw #e8c66f}
.jsGameFace.on{box-shadow:0 0 1.2cqw .5cqw rgba(110,230,255,.9),inset 0 0 0 .3cqw rgba(110,230,255,.9)}
.jsGameTxt{position:absolute;display:flex;align-items:center;white-space:nowrap;font-size:2.15cqw;line-height:1;color:#f2f2f2;text-shadow:0 0 2px #000,0 1px 1px #000;padding-left:.4cqw;font-variant-numeric:tabular-nums}
.jsGameTxt.hp{color:#ff5a46}.jsGameTxt.or{color:#ffb84d}.jsGameTxt.gr{color:#5fd35f}.jsGameTxt.total{justify-content:center;color:#fff;font-size:2.25cqw}
.jsGameLinks{position:absolute;overflow:auto;display:flex;flex-direction:column;align-items:center;gap:.35cqw;font-size:2cqw;color:#f3e27a;text-shadow:0 1px 1px #000}
.jsGameLinks p{margin:.5cqw 0;color:#8a8a8a;font-size:1.8cqw}
.jsGameNear{position:absolute;overflow:auto;display:flex;flex-direction:column;gap:.5cqw;padding:.8cqw;border:1px solid rgba(221,168,77,.75);border-radius:.8cqw;background:rgba(8,10,14,.84);box-shadow:0 0 1.2cqw rgba(0,0,0,.6)}
.jsGameNearHead{font-size:2.1cqw;font-weight:800;color:#f3cf86;padding-bottom:.4cqw;border-bottom:1px solid rgba(221,168,77,.4)}
.jsGameNear p{margin:.4cqw 0;font-size:1.8cqw;color:#9fb0c4;line-height:1.4}
.jsPage .jsGameNear button{display:flex;align-items:center;gap:.8cqw;padding:.4cqw .6cqw;border-radius:.6cqw;border:1px solid rgba(221,168,77,.5);background:rgba(26,37,48,.92);text-align:left;font:inherit;font-size:1.8cqw;line-height:1.25;color:#e6edf7;cursor:pointer;min-height:0}
.jsPage .jsGameNear button:hover:not(:disabled){border-color:#f3cf86;background:rgba(221,168,77,.18)}
.jsGameNear img{width:4.4cqw;height:4.4cqw;object-fit:cover;border-radius:.4cqw;flex:0 0 auto}
.jsGameNear span{display:grid;min-width:0}.jsGameNear b{color:#f3cf86;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jsGameNear small{color:#9fb0c4;font-size:1.6cqw}
@media(max-width:640px){.jsPage .jsMain{overflow-x:auto;padding-bottom:6px}.jsGame{min-width:560px}}
.jsGameTxt.link{justify-content:center;color:#f3e27a;font-size:2cqw}.jsGameTxt.link.more{color:#c9b98a;cursor:help}.jsGameTxt.link.none{color:#8a8a8a;font-size:1.8cqw}
.jsGameTxt{overflow:hidden}
/* V807: 手機橫放（高度很矮）時，頂部標題列不固定，捲動就收起，不再擋住內容 */
@media (max-height:500px) and (orientation:landscape){
  html body .topbar{position:relative!important;top:auto!important;transform:none!important}
  .jsPickModal{padding:6px;align-items:start}
  .jsPickBox{max-height:calc(100dvh - 12px)}
  .jsSticky{top:0!important}
  .jsGame,.godPanel{max-width:calc((100dvh - 16px) * 1.935);margin-inline:auto}
}
.jsGameTxt.total input{width:8.5cqw;margin-left:.4cqw;padding:.1cqw .5cqw;font:inherit;color:#fff;background:rgba(0,0,0,.45);border:1px solid rgba(232,198,111,.55);border-radius:.4cqw;text-align:center;font-variant-numeric:tabular-nums;min-height:0;height:auto}
.jsGameTxt.total input::-webkit-inner-spin-button{display:none}
/* V809: 全降神總等級輸入框不撐高（手機版 input 有最小高度） */
html body .jsGame .jsGameTxt.total{align-items:center;gap:.3cqw;margin:0!important;padding:0!important}
html body .jsGame .jsGameTxt.total input{height:3.1cqw!important;min-height:0!important;max-height:3.1cqw!important;padding:0 .5cqw!important;margin:0 0 0 .4cqw!important;font-size:2.1cqw!important;line-height:1!important;box-sizing:border-box;appearance:textfield;-webkit-appearance:none;border-radius:.4cqw!important}
/* V810: 地圖「隱藏傳點名稱」：只留箭頭，滑鼠移上去或聚焦時才顯示名稱 */
html.mapExitLabelsHidden .mapExit .mapExitName{display:none}
html.mapExitLabelsHidden .mapExit:hover .mapExitName,html.mapExitLabelsHidden .mapExit:focus-visible .mapExitName{display:inline-block}
/* V811: 副降神試算結果 — 能力明細表 */
.sdWrap{overflow-x:auto;border:1px solid rgba(148,163,184,.25);border-radius:12px;margin:6px 0 14px}
.sdTable{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:14px;min-width:560px}
.sdTable th,.sdTable td{padding:7px 10px;border-bottom:1px solid rgba(148,163,184,.14);text-align:right;white-space:nowrap}
.sdTable tbody th{text-align:left;color:#cfe3ff;font-weight:600;position:sticky;left:0;background:#111c27;z-index:1}
.sdTable thead th{vertical-align:bottom;text-align:center;font-weight:600;background:#0f1922;position:sticky;top:0}
.sdTable thead th:first-child{position:sticky;left:0;z-index:2;text-align:left}
.sdTable thead b{display:block;font-size:13px;color:#e6edf7}.sdTable thead small{display:block;font-size:11px;color:#9fb0c4;font-weight:500}
.sdFace img{width:34px;height:34px;border-radius:8px;object-fit:cover;display:block;margin:0 auto 3px}
.sdTable td.sdTotal,.sdTable th.sdTotal{color:#f3cf86;font-weight:800;background:rgba(221,168,77,.08)}
.sdTable td.sdLink{color:#7fe3d3}.sdTable th.sdLink b{color:#7fe3d3}
.sdTable td.zero{color:#56667c}
.sdTable tbody tr:nth-child(even) td{background-color:rgba(255,255,255,.02)}
@media(max-width:600px){.sdTable{font-size:12.5px}.sdTable th,.sdTable td{padding:6px 7px}}
/* V813: 降神模擬：存檔比較移到最下方，五組存檔可一起比較 */
.jsPage .jsTopActions{margin-top:14px}
.jsSaveCmp{margin-top:22px;padding-top:14px;border-top:1px solid var(--line)}
.jsSaveCmp h3{margin:0 0 4px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.jsSaveCmp h3 small{font-size:12px;font-weight:400;color:var(--muted)}
.jsPage .jsSlot button.jsCmpToggle.on{background:#0f4f4a;border-color:#53ded3;color:#fff}
.jsCmpTable td small{display:block;font-size:11px;line-height:1.2}
.jsCmpTable td small.up{color:#6fe0a8}.jsCmpTable td small.down{color:#f08a8a}
.jsCmpTable th.jsCmpCur{color:#53ded3}
.jsCmpNote{margin-top:8px}
/* V815: 子分頁在非 .jsPage 的頁面（星等／靈氣）也用同一套樣式 */
.jsSubTabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.jsSubTabs button{font:inherit;font-size:13px;line-height:1.4;color:var(--text,#dce7f5);background:#102a36;border:1px solid #357b83;border-radius:6px;padding:5px 12px;cursor:pointer;box-shadow:none;min-height:0;width:auto}
.jsSubTabs button[aria-selected=true]{background:#137b77;color:#fff}
.jsSubTabs+h2{margin-top:6px}
/* V817: 子分頁排成一列，放不下時左右滑 */
.jsSubTabs,.jsPage .jsSubTabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.jsSubTabs::-webkit-scrollbar{display:none}
.jsSubTabs button{flex:0 0 auto;white-space:nowrap}
/* V818: 圖例關閉鈕 */
.mapLegendBox .mlClose{justify-self:stretch;margin-top:2px;padding:7px 10px;border-radius:8px;border:1px solid #dda84d;color:#ffe7a3;background:transparent;font:inherit;cursor:pointer}
@media(max-width:820px){.mapLegend[open]{display:block;flex:1 0 100%;width:100%}.mapLegendBox{position:static!important;width:auto!important;margin-top:6px;box-shadow:none}}
/* V820: 20星能力總表：點頭像換降神 */
.jsPage .jsStarPick{width:100%;text-align:left;font:inherit;color:inherit;background:#102a36;border:1px solid #357b83;border-radius:10px;padding:10px;cursor:pointer}
.jsPage .jsStarPick:hover{border-color:#53ded3}
.jsStarPick em{display:inline-block;margin-top:4px;font-style:normal;font-size:12px;color:#53ded3;border:1px solid #357b83;border-radius:999px;padding:2px 10px}
/* V830: 組合推薦方案的主降神選取卡 */
.jsRecForm .jsRecMainField{grid-column:span 2;display:grid;gap:4px;font-size:12.5px;color:var(--muted)}
.jsRecMainBtn{display:flex;align-items:center;gap:10px;width:100%;padding:6px 10px;border:1px solid var(--line,#2c3a4d);border-radius:10px;background:rgba(255,255,255,.03);color:inherit;text-align:left;cursor:pointer}
.jsRecMainBtn:hover{border-color:#d8b56a}
.jsRecMainBtn .jsHeroFace{width:40px;height:40px;flex:0 0 40px;border-radius:8px;object-fit:cover;background:rgba(255,255,255,.06)}
.jsRecMainBtn b{display:block;font-size:15px;color:var(--text,#e8eef7)}.jsRecMainBtn small{display:block;color:var(--muted);font-size:12px}
.jsRecMainBtn em{margin-left:auto;font-style:normal;font-size:12px;color:#d8b56a;white-space:nowrap}
/* V832: 地圖查詢手機版——清單勾選框不要被全站觸控高度撐成 46px，文字與勾選框置中對齊 */
.mapMarkerChoice{align-items:center}
.mapMarkerChoice input[type=checkbox]{min-height:0;min-width:0;width:20px;height:20px;margin:0}
@media (max-width:600px){.mapMarkerChoice{padding:7px 9px}.mapChoiceList{gap:6px}}
/* V832: 修練進度——分類收合與頂端固定的材料合計 */
.trainSticky{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;margin:12px 0;padding:10px 12px;border:1px solid #d8b56a;border-radius:10px;background:rgba(14,20,32,.96);backdrop-filter:blur(4px);font-size:13.5px}
.trainSticky b{color:#f0d9a4}.trainSticky span{color:var(--text,#e8eef7)}
.trainExpandAll{float:right;display:flex;gap:6px}.trainExpandAll button{padding:4px 10px;font-size:12px;border-radius:8px}
.trainGroup{margin:8px 0;border:1px solid var(--line,#2c3a4d);border-radius:12px;background:rgba(255,255,255,.02)}
.trainGroup>summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:12px 14px}
.trainGroup>summary::-webkit-details-marker{display:none}
.trainGroup>summary::before{content:'▸';color:#d8b56a;transition:transform .15s}.trainGroup[open]>summary::before{transform:rotate(90deg)}
.trainGroup>summary b{font-size:16px}.trainGroup>summary small{color:var(--muted)}
.trainGroupSum{flex-basis:100%;padding-left:18px;font-size:12.5px;color:var(--muted)}
.trainGroup>.trainingList{padding:0 10px 10px}
.trainSticky{display:block}.trainSticky details>summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.trainSticky details>summary::-webkit-details-marker{display:none}.trainSticky summary span{color:var(--muted);font-size:12.5px}
.trainStickyList{margin-top:8px;max-height:40vh;overflow:auto;line-height:1.7}
/* V834: 手機版首頁——封面圖保持一個螢幕高，常用功能面板放在圖下方（往下捲看到），不再壓縮封面 */
@media(max-width:820px){
  html body .homeBlank{height:auto!important;min-height:0!important;padding-bottom:0!important;background-size:0 0!important}
  html body .homeBlank::before{content:'';display:block;height:calc(100vh - 158px - env(safe-area-inset-top) - 16px);height:calc(100svh - 158px - env(safe-area-inset-top) - 16px);background-image:inherit;background-size:contain;background-position:center top;background-repeat:no-repeat}
  html body .homePanel{position:static;transform:none;width:auto;margin:6px 12px calc(28px + env(safe-area-inset-bottom))}
  /* 首頁原本鎖住捲動，手機版要能往下捲到功能面板 */
  html body.isHomeView{overflow:auto!important;overflow-x:hidden!important}
  html body.isHomeView .app,html body.isHomeView .content,html body.isHomeView .reader{overflow:visible!important;height:auto!important;max-height:none!important}
}
/* V838: 兌換頁上方精簡成「常用拆解」＋資料片下拉選單 */
.exTop{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch;margin:4px 0 10px}
.exTop>.exVerPick,.exTop>.exLimitBtn{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;align-self:stretch;font-size:13px}
.exTop>.exVerPick select{flex:1;min-width:0;max-width:none;width:0}
.exTop>.exLimitBtn{white-space:normal;line-height:1.4;padding:6px 10px}
@media(max-width:900px){.exTop{grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(44px,auto)}}
.exTopBtn{padding:8px 16px;border-radius:999px;border:1px solid var(--line);background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer}
.exTopBtn.active{background:#d8b56a;border-color:#d8b56a;color:#1b1406}
.exVerPick{display:flex;align-items:center;gap:8px;padding:2px 4px 2px 14px;border:1px solid var(--line);border-radius:999px;font-size:13px;color:var(--muted)}
.exVerPick.active{border-color:#d8b56a;color:#f0d9a4}
.exVerPick select{border:0;background:transparent;color:var(--text,#e8eef7);font:inherit;font-weight:700;padding:6px 8px;min-height:0;max-width:52vw}
.exVerPick select option{background:#101722;color:#edf2f7}
.exVerPick select option:checked{background:#245750;color:#fff6b3}
.heroSummonEvent{margin:16px 0 24px;border-block:1px solid var(--border,#43505e);padding:12px 0}
.heroSummonEvent summary{cursor:pointer;font-weight:700;color:var(--text,#edf2f7)}
.heroSummonScroll{overflow-x:auto}
.heroSummonEvent table{width:100%;border-collapse:collapse;min-width:480px}
.heroSummonEvent caption{text-align:left;padding:8px 0}
.heroSummonEvent th,.heroSummonEvent td{text-align:left;padding:10px;border-bottom:1px solid var(--border,#43505e);white-space:nowrap}
.exVerPick>span{white-space:nowrap}
@media(max-width:820px){.exPage .exNpcChips{gap:6px}.exPage .exNpcChips button{padding:5px 10px;font-size:13px;min-height:0}.exPage .exNpcChips button b{font-size:11px}.exTopBtn{padding:7px 14px}}
/* V842: 兌換頁分類收合 */
.exCat{margin:6px 0;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.02)}
.exCat>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;padding:10px 12px;font-weight:700}
.exCat>summary::-webkit-details-marker{display:none}
.exCat>summary::before{content:'▸';color:#d8b56a;transition:transform .15s}.exCat[open]>summary::before{transform:rotate(90deg)}
.exCat>summary b{margin-left:auto;font-size:12px;color:var(--muted);font-weight:600}
.exCat>.exRows{padding:0 10px 8px}
/* V844: 練功推薦 */
.qaTrainTabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 10px}.qaTrainTabs .qaChip.active{background:#d8b56a;border-color:#d8b56a;color:#1b1406}
.qaTrain{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:8px 0;background:rgba(255,255,255,.02)}
.qaTrainHead{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.qaTrainHead strong{font-size:16px}
.qaTrainRank{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#d8b56a;color:#1b1406;font-size:13px}
.qaTrainTag{font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 8px}
.qaTrainHead .qaChip{margin-left:auto}
.qaTrainStats{display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 0;font-size:13px;color:var(--muted)}.qaTrainStats b{color:#f0d9a4}
.qaTrainMobs{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:13.5px}.qaTrainMobs small{color:var(--muted)}
.qaTrainNote{font-size:12px;margin-top:8px}
/* V845: 任務的接任務 NPC 與位置 */
.questGiver{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 10px;padding:8px 10px;border:1px solid rgba(216,181,106,.45);border-radius:10px;background:rgba(216,181,106,.08)}
.questGiver>span{font-size:12px;font-weight:700;color:#1b1406;background:#d8b56a;border-radius:6px;padding:2px 8px}
.questGiver .questNpc,.questGiver .questPlace{font-size:15px}
/* V848: 練功推薦定點掛點 */
.qaTrainTag.warn{color:#f3b26b;border-color:rgba(243,178,107,.5)}
.qaTrainWhere{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:2px 0 6px;font-size:13px}.qaTrainWhere>span{color:var(--muted)}.qaTrainWhere i{color:var(--muted);font-style:normal}
/* V849: 練功推薦小地圖 */
.qaMiniMap{position:relative;overflow:hidden;width:100%;background-repeat:no-repeat;margin:6px 0 4px;border:1px solid var(--line);border-radius:10px;background-color:#0b1220}
.qaMiniMap img{position:absolute;max-width:none;height:auto;display:block}
.qaMiniMap svg{position:absolute;inset:0;width:100%;height:100%}
.qaMiniMap ellipse{fill:rgba(216,181,106,.16);stroke:#ffd76a;stroke-width:3;vector-effect:non-scaling-stroke}
.qaMiniMap line{stroke:#ffd76a;stroke-width:2;stroke-dasharray:6 5;vector-effect:non-scaling-stroke}
.qaMiniMap circle.on{fill:#ffcf4a;stroke:#3a2600;stroke-width:1.5;vector-effect:non-scaling-stroke}
.qaMiniMap circle.off{fill:rgba(255,255,255,.55);stroke:rgba(0,0,0,.6);stroke-width:1;vector-effect:non-scaling-stroke}
.qaMiniMap text{fill:#ffd76a;font:700 34px sans-serif;text-anchor:middle;paint-order:stroke;stroke:#1b1406;stroke-width:6px}
.qaSpotLbl{color:#ffd76a}
/* V850: 掛機路線 */
.qaMiniMap polyline{fill:none;stroke:#ffd76a;stroke-width:3;stroke-dasharray:7 5;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.qaMiniMap circle.pin{fill:#ff6b3d;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}
/* V854: 終末之塔怎麼上去 */
.qaTrainAccess{font-size:13px;color:var(--muted);margin:2px 0 4px}.qaTrainAccess>span{display:inline-block;margin-right:6px;padding:0 7px;border-radius:6px;background:rgba(216,181,106,.16);color:#f0d9a4;font-weight:700}
/* V856: 兌換頁活動限定 */
.exLimitBtn{align-self:end;border:1px solid #e0a84a;background:rgba(224,168,74,.14);color:#ffd98a;border-radius:999px;padding:8px 14px;font-weight:700;cursor:pointer}
.exLimitBtn.active{background:#e0a84a;color:#1b1406}
.exLimitNote{margin:8px 0 4px;font-size:13px;color:#f3c77a}
/* V858: 任務搜尋結果容器不影響原本版面 */
.questPage>[data-quest-results]{display:contents}
/* V872 白話任務步驟 */
.questSimple{line-height:1.75}
.questSimpleNpc{margin-left:6px}
.questSimpleNpc i{font-style:normal;opacity:.5;margin:0 2px}
.questOrig{margin:2px 0 0;font-size:12.5px;opacity:.75}
.questOrig>summary{cursor:pointer;display:inline-block;list-style:none;font-size:11.5px;padding:0 7px;border-radius:6px;background:rgba(148,163,184,.16);color:#cbd5e1}
.questOrig>summary::-webkit-details-marker{display:none}
.questOrig>summary::before{content:'▸ '}
.questOrig[open]>summary::before{content:'▾ '}
.questOrig>div{margin-top:3px;line-height:1.7}
.questMonAll{margin-left:6px;font-size:11.5px;padding:1px 8px;border-radius:6px;border:1px solid rgba(248,113,113,.45);background:rgba(248,113,113,.12);color:#fca5a5;cursor:pointer;vertical-align:1px}
.questMonAll::before{content:'📍 '}
.questMonAll:hover{background:rgba(248,113,113,.22)}
/* V878 內容物：收購／拆解 */
.itemContentCell{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);background:var(--panel2);border-radius:14px}
.itemContentsGrid .itemContentCell>.resultItem{border:0;background:none;box-shadow:none;padding-bottom:4px}
.itemTrade{padding:0 12px 10px 74px;font-size:12px;line-height:1.55;min-width:0}
.itemTrade>div{overflow-wrap:anywhere}
.itemTradeSell{color:#fcd34d}.itemTradeSell b{color:#fde68a}
.itemTradeDec{color:#93c5fd;margin-top:2px}.itemTradeDec b{color:#bfdbfe}
.itemTradeNone{color:#64748b;font-size:11.5px}
.itemTradeNpc,.itemTradeItem{border:0;background:none;padding:0;margin:0;min-height:0;font:inherit;color:inherit;cursor:pointer;border-bottom:1px dashed currentColor;border-radius:0;box-shadow:none}
.itemTradeItem{font-weight:700;color:#bfdbfe}
.itemTradeMore{display:inline}
.itemTradeMore>summary{display:inline;cursor:pointer;list-style:none;opacity:.75;font-size:11px;margin-left:4px}
.itemTradeMore>summary::-webkit-details-marker{display:none}
.itemTradeMore>summary::after{content:' ▸'}.itemTradeMore[open]>summary::after{content:' ▾'}
.itemTradeMore[open]{display:block}
.itemTradeMore .itemTradeNpc{display:inline-block;margin:2px 10px 0 0}
.itemTradeSrv{font-size:10.5px;margin-left:4px;padding:0 5px;border-radius:5px;background:rgba(148,163,184,.18);color:#cbd5e1}
.itemTradeSort{display:flex;align-items:center;gap:6px;margin:4px 0 8px;font-size:12.5px}
.itemTradeSort>span{opacity:.7}
.itemTradeSort button{padding:2px 10px;border-radius:7px;border:1px solid var(--line);background:var(--panel2);color:var(--text);min-height:0;cursor:pointer}
.itemTradeSort button.active{border-color:#f59e0b;background:rgba(245,158,11,.15);color:#fcd34d}
.itemContents .itemTrade button.itemTradeNpc,.itemContents .itemTrade button.itemTradeItem{border:0!important;border-bottom:1px dashed currentColor!important;background:none!important;padding:0!important;margin:0!important;min-height:0!important;height:auto!important;width:auto!important;border-radius:0!important;box-shadow:none!important;font:inherit!important;color:inherit;line-height:inherit!important;display:inline!important}
.itemContents .itemTrade button.itemTradeItem{font-weight:700!important;color:#bfdbfe}
.itemContents .itemTradeMore[open] button.itemTradeNpc{display:inline-block!important;margin:2px 10px 0 0!important}
.itemContents .itemTradeSort button{min-height:0;height:auto;width:auto}
.itemContents .itemContentCell>.resultItem{background:transparent!important;border:0!important;box-shadow:none!important}
/* V879 練功推薦：同張地圖其他點 */
.qaTrainAlts{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 4px;font-size:12.5px}
.qaTrainAlts>span{opacity:.75}
.qaTrainAlts .qaChip small{opacity:.75;margin-left:3px;font-size:11px}
.qaTrainPane[hidden]{display:none!important}
/* V880 全站搜尋：收購價、別名、NPC 兌換與任務、任務步驟標示 */
.qaSell{grid-column:1/-1;font-size:12.5px;color:#fcd34d;line-height:1.6;margin-top:2px}
.qaSell b{color:#fde68a}
.qaSell .qaLink{color:inherit}
.qaSellMore{display:inline;margin-left:4px}
.qaSellMore>summary{display:inline;cursor:pointer;opacity:.8;font-size:11.5px}
.qaSellMore[open]{display:block}
.qaAlias{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 12px;font-size:13.5px}
.qaNpcInfo{grid-column:1/-1;font-size:12.5px;line-height:1.7;margin-top:2px;color:var(--text)}
.qaNpcInfo>span{display:inline-block;margin-right:6px;padding:0 6px;border-radius:6px;background:rgba(148,163,184,.16);color:#cbd5e1;font-size:11.5px}
.qaNpcInfo small{margin-left:3px;opacity:.75;font-size:11px}
.questSteps>li.questStepHl{background:rgba(245,158,11,.14);outline:1px solid rgba(245,158,11,.55);border-radius:8px;padding:4px 8px}
.itemTradeCond,.qaSellCond{margin-left:4px;font-size:10.5px;padding:0 5px;border-radius:5px;background:rgba(148,163,184,.18);color:#cbd5e1;white-space:nowrap}
/* V881 改版紀錄 */
.updatesPage .upWeeks{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.updatesPage .upSearch input{width:100%;max-width:520px;margin:4px 0 8px}
.updatesPage .upTitle{margin:10px 0 6px}
.upSec{border-top:1px solid var(--line);padding:6px 0}
.upSec>summary{cursor:pointer;font-weight:700;padding:6px 0;font-size:15px}
.upSec>summary b{margin-left:6px;font-size:12px;padding:0 7px;border-radius:9px;background:rgba(148,163,184,.2)}
.upSec>summary small{margin-left:8px;font-weight:400;opacity:.65;font-size:12px}
.upList{list-style:none;margin:4px 0 8px;padding:0;display:flex;flex-direction:column;gap:6px}
.upList.chips{flex-direction:row;flex-wrap:wrap}
.upList>li{padding:6px 10px;border-radius:10px;background:var(--panel2);border:1px solid var(--line);min-width:0;overflow-wrap:anywhere;line-height:1.6}
.upList.chips>li{padding:3px 10px}
.upHead{display:flex;align-items:baseline;gap:8px;font-weight:700}
.upHead small{font-weight:400;opacity:.6;font-size:11.5px}
.upLink{border:0;background:none;padding:0;margin:0;min-height:0;font:inherit;color:var(--accent,#71d5ef);cursor:pointer;border-bottom:1px dashed currentColor;border-radius:0;box-shadow:none}
.upChanges,.upDrops{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;margin-top:2px}
.upChg .upField,.upLong .upField{opacity:.7;margin-right:5px}
.upChg.up b{color:#86efac}.upChg.down b{color:#fca5a5}
.upLong{flex-basis:100%;font-size:13px}
.upOld{opacity:.6;text-decoration:line-through;margin:2px 0}
.upNew{color:#e2e8f0}
.upDrop em{font-style:normal;font-size:11px;padding:0 5px;border-radius:5px;margin:0 3px;background:rgba(148,163,184,.2)}
.upDrop.add em{background:rgba(34,197,94,.22);color:#86efac}.upDrop.del em{background:rgba(239,68,68,.22);color:#fca5a5}
.upField{font-weight:600}
.updatesPage .upLinks{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 8px}
.updatesPage a.upOfficial{text-decoration:none;border-color:#f59e0b;color:#fcd34d;background:rgba(245,158,11,.12)}
.updatesPage .upVer{margin-left:6px;font-size:11px;opacity:.75;font-weight:500}
.updatesPage .upVerTitle{margin-left:10px;font-size:13px;font-weight:600;padding:1px 8px;border-radius:7px;background:rgba(148,163,184,.18);vertical-align:2px}
/* V886 每週更新歷程版面：標題列（官方公告列表）、週次列、每週區塊（官方公告、分類、搜尋） */
.updatesPage .upHeader{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.updatesPage .upHeader h1{margin-bottom:2px}
.updatesPage .upHeader p{margin:0}
.updatesPage .upOfficialAll{flex:none;font-size:13px;color:#fcd34d;text-decoration:none;border:1px solid rgba(245,158,11,.55);border-radius:8px;padding:4px 10px;margin-top:4px}
.updatesPage .upOfficialAll:hover{background:rgba(245,158,11,.12)}
.updatesPage .upWeekBar{display:flex;justify-content:space-between;align-items:center;gap:8px 14px;flex-wrap:wrap;margin:14px 0 12px;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.updatesPage .upWeekRecent{display:flex;gap:6px;flex-wrap:wrap}
.updatesPage .upWeek{display:flex;flex-direction:column;align-items:center;min-width:72px;padding:5px 10px;border-radius:10px;border:1px solid var(--line);background:var(--panel2);color:var(--text);cursor:pointer;line-height:1.25;min-height:0}
.updatesPage .upWeek b{font-size:15px}
.updatesPage .upWeek small{font-size:11px;opacity:.7}
.updatesPage .upWeek.active{border-color:var(--accent,#71d5ef);background:rgba(113,213,239,.14)}
.updatesPage .upWeekPick{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px}
.updatesPage .upWeekPick select{max-width:200px}
.updatesPage .upStep{padding:4px 10px;border-radius:8px;min-height:0;font-size:13px}
.updatesPage .upStep[disabled]{opacity:.35;cursor:default}
.updatesPage .upWeekBox{border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:rgba(15,23,42,.35)}
.updatesPage .upWeekHead{display:flex;justify-content:space-between;align-items:center;gap:8px 14px;flex-wrap:wrap;margin-bottom:8px}
.updatesPage .upWeekHead h2{margin:0}
.updatesPage .upOfficialBox{display:flex;gap:6px;flex-wrap:wrap}
.updatesPage .upOfficialLink{font-size:13px;color:#fcd34d;text-decoration:none;padding:4px 10px;border-radius:8px;background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.45)}
.updatesPage .upTools{display:flex;justify-content:space-between;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-bottom:4px}
.updatesPage .upTools .upCats{margin:0}
.updatesPage .upTools input{flex:1 1 220px;max-width:320px;margin:0}
.updatesPage .qaNavChip.active{border-color:var(--accent,#71d5ef);background:rgba(113,213,239,.16)}
@media(max-width:640px){.updatesPage .upWeekPick{width:100%}.updatesPage .upTools input{max-width:none}}
.updatesPage .upStep{border:1px solid var(--line)!important;background:var(--panel2)!important;color:var(--text)!important;box-shadow:none!important}
.updatesPage .upStep[disabled]{opacity:.4!important}
/* V887 官方更新公告按鈕加強 */
.updatesPage .upOfficialAll{display:flex;align-items:center;gap:10px;padding:9px 16px;border-radius:12px;border:1px solid #f59e0b;background:linear-gradient(135deg,#f59e0b,#d97706);color:#1c1204;text-decoration:none;box-shadow:0 4px 14px rgba(245,158,11,.28);font-size:14px;margin-top:0;transition:transform .12s,box-shadow .12s}
.updatesPage .upOfficialAll:hover{background:linear-gradient(135deg,#fbbf24,#f59e0b);transform:translateY(-1px);box-shadow:0 6px 18px rgba(245,158,11,.38)}
.updatesPage .upOfficialAll .upOfficialIcon{font-size:22px;line-height:1}
.updatesPage .upOfficialAll b{display:block;font-size:16px;font-weight:900;line-height:1.2}
.updatesPage .upOfficialAll small{display:block;font-size:11.5px;opacity:.8;font-weight:600}
@media(max-width:640px){.updatesPage .upOfficialAll{width:100%;justify-content:center}}
