/* 万界星核 · 各功能面板的专属样式（基础组件见 main.css） */

/* ---------- 通用装饰件 ---------- */
.pbanner .pb-txt { min-width: 0; flex: 1 1 180px; }
.pbanner .pb-r { flex: 0 1 auto; }
.pstat { --sc: #b48cff; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; min-width: 96px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 16%, rgba(20,14,40,.7)), rgba(10,7,22,.7)); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px color-mix(in srgb, var(--sc) 45%, #2a2050), inset 0 3px 0 rgba(255,255,255,.04); clip-path: var(--notch); }
.pstat img { width: 24px; height: 24px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
.pstat b { display: block; font-weight: normal; font-size: 16px; line-height: 1.1; color: #fff; text-shadow: 0 2px 0 var(--ink); }
.pstat small { display: block; font-size: 11px; color: var(--muted); }
.rtag { --rc: #b48cff; display: inline-flex; align-items: center; padding: 1px 6px; margin-left: 6px; font-size: 11px; line-height: 14px; letter-spacing: .06em; color: var(--rc); vertical-align: middle;
  background: color-mix(in srgb, var(--rc) 16%, rgba(7,4,15,.8)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 70%, transparent), 0 0 8px color-mix(in srgb, var(--rc) 25%, transparent); text-shadow: 0 1px 0 #000; }
.kbd { vertical-align: middle; }
.card > .row.center > .cell, .card.shop-card .cell { margin: 0 auto; }
.win-body > .card + .card, .win-body > .col > .card + .card, .grow.col > .card + .card { margin-top: 0; }
.chip.green { color: var(--green); box-shadow: inset 0 0 0 1px rgba(125,255,138,.45); }
.chip.cyan { color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(90,209,255,.45); }
.chip.gold { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255,216,74,.5); }
.chip.pink { color: var(--pink); box-shadow: inset 0 0 0 1px rgba(255,122,182,.5); }
.chip.violet { color: var(--violet); box-shadow: inset 0 0 0 1px rgba(180,140,255,.5); }
.chip.dim { color: var(--muted); }
.list-head { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 2px 4px; font-size: 12px; letter-spacing: .12em; color: var(--gold); text-shadow: 0 1px 0 #000; }
.list-head::before { content: ''; width: 10px; height: 10px; background: var(--px-dia) center / 10px no-repeat; flex: none; }
.list-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,216,74,.4), transparent); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--min, 170px), 1fr)); gap: 10px; }

/* ---------- 角色 ---------- */
.hero-side { --rc: #7dff8a; --cc: #ff9a4a; width: 230px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; padding-top: 14px;
  background: radial-gradient(120% 50% at 50% 0%, color-mix(in srgb, var(--rc) 16%, transparent), transparent 70%), linear-gradient(180deg, rgba(46,36,88,.55), rgba(16,11,32,.7)); }
.hs-stage { position: relative; width: 176px; height: 176px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--rc) 30%, #3a2d70), #1a1236 55%, #0d0920 76%);
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px #ffd84a, inset 0 0 0 5px #6a4a10, inset 0 0 0 6px var(--ink), 0 0 24px color-mix(in srgb, var(--rc) 25%, transparent); clip-path: var(--notch4); }
.hs-rays { position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 22%, transparent) 0 8deg, transparent 8deg 24deg); animation: spin 26s linear infinite; opacity: .55; }
.hs-ped { position: absolute; left: 30px; right: 30px; bottom: 16px; height: 12px; background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 70%); }
.hs-img { position: relative; z-index: 1; width: 160px; height: 160px; image-rendering: pixelated; margin-top: -8px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
@keyframes spin { to { transform: rotate(360deg); } }
.hs-name { font-size: 22px; letter-spacing: .08em; text-shadow: 0 2px 0 var(--ink), 0 0 12px color-mix(in srgb, var(--rc) 50%, transparent); }
.hs-cls { display: flex; align-items: center; gap: 6px; color: var(--cc); text-shadow: 0 1px 0 #000; }
.hs-cls img { width: 18px; height: 18px; image-rendering: pixelated; }
.hs-stars { color: var(--gold); letter-spacing: 1px; text-shadow: 0 0 6px rgba(255,216,74,.6); } .hs-stars i { font-style: normal; color: #3a2d63; text-shadow: none; }
.hs-lv { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0 2px; } .hs-lv small { color: var(--muted); font-size: 11px; }
.power-plate { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; justify-content: center;
  background: linear-gradient(90deg, transparent, rgba(255,216,74,.14), transparent), linear-gradient(180deg, rgba(10,7,22,.4), rgba(10,7,22,.7)); box-shadow: inset 0 1px 0 rgba(255,216,74,.4), inset 0 -1px 0 rgba(255,216,74,.4); }
.power-plate img { width: 22px; height: 22px; image-rendering: pixelated; animation: floaty 2.6s ease-in-out infinite; }
.power-plate small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .3em; }
.power-plate b { display: block; font-weight: normal; font-size: 24px; line-height: 1; background: linear-gradient(180deg, #fff6c8 0 45%, #ffd84a 45% 75%, #e09a20 75%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 var(--ink)); }
.hs-bio { font-size: 12px; line-height: 1.7; color: var(--dim); }
.hs-passive { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 12px; color: #d8c8ff; background: rgba(180,140,255,.12); box-shadow: inset 0 0 0 1px rgba(180,140,255,.4); }
.hs-passive img { width: 16px; height: 16px; image-rendering: pixelated; }
.equip-slots { display: flex; flex-wrap: wrap; gap: 12px; }
.eslot { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--dim); }
.eslot.on { color: var(--muted); }
.eslot .cell.empty-slot { opacity: .7; } .eslot .cell.empty-slot img { opacity: .55; }
.eslot.spare .cell.empty-slot { opacity: 1; animation: spareBlink 1.8s ease-in-out infinite; }
@keyframes spareBlink { 50% { box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px #7dff8a, inset 0 0 12px rgba(125,255,138,.3), 0 0 10px rgba(125,255,138,.4); } }
.stat-grid.icons > div > span { display: inline-flex; align-items: center; gap: 6px; }
.stat-grid.icons img { width: 16px; height: 16px; image-rendering: pixelated; opacity: .9; }
.skill-card { --rc: #5ad1ff; display: flex; gap: 14px; align-items: center; }
.skill-card .sk-ic { position: relative; flex: none; }
.skill-card .sk-ic .kbd { position: absolute; right: -6px; bottom: -6px; z-index: 2; color: #fff; }
.skill-card .sk-nm { font-size: 16px; margin-bottom: 2px; text-shadow: 0 2px 0 var(--ink); }
.skill-card.locked { opacity: .55; filter: saturate(.5); }
.skill-card.ult .cell { animation: rglow 1.6s ease-in-out infinite; }
.tp-count { display: flex; flex-direction: column; align-items: center; padding: 4px 14px; background: rgba(7,4,15,.6); box-shadow: inset 0 0 0 1px rgba(255,216,74,.5); }
.tp-count small { font-size: 11px; color: var(--muted); } .tp-count b { font-weight: normal; font-size: 24px; line-height: 1; color: var(--gold); text-shadow: 0 0 10px rgba(255,216,74,.6); }
.talent-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.talent-br { --bc: #b48cff; flex: 1 1 210px; min-width: 200px; display: flex; flex-direction: column; gap: 6px; --tick: var(--bc);
  background: radial-gradient(100% 40% at 50% 0%, color-mix(in srgb, var(--bc) 16%, transparent), transparent), linear-gradient(180deg, rgba(46,36,88,.5), rgba(16,11,32,.65)); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px color-mix(in srgb, var(--bc) 45%, #2a2050); }
.talent-br h3 { margin-bottom: 4px; }
.tnode { position: relative; cursor: default; }
.tnode:not(:last-child)::after { content: ''; position: absolute; left: 28px; bottom: -8px; width: 2px; height: 8px; background: color-mix(in srgb, var(--bc) 40%, #2a2050); }
.tnode .tn-rank { flex: none; width: 36px; height: 36px; display: grid; place-content: center; text-align: center; line-height: 1; background: #0a0716; box-shadow: inset 0 0 0 2px #3a2d63; }
.tnode .tn-rank b { font-weight: normal; font-size: 15px; } .tnode .tn-rank small { font-size: 9px; color: var(--dim); }
.tnode.got .tn-rank { background: color-mix(in srgb, var(--bc) 25%, #0a0716); box-shadow: inset 0 0 0 2px var(--bc), 0 0 10px color-mix(in srgb, var(--bc) 40%, transparent); }
.tnode.max .tn-rank b { color: var(--gold); }
.tnode.lock { opacity: .45; }
.tier-row { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tier-card { --cc: #ff9a4a; width: 190px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: .6; }
.tier-card.on { opacity: 1; }
.tier-num { width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; color: #3a2d63; background: radial-gradient(circle at 50% 40%, #2a2050, #120c24); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px #3a2d63; clip-path: var(--notch4); }
.tier-card.on .tier-num { color: var(--cc); text-shadow: 0 0 12px var(--cc); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--cc) 35%, #2a2050), #120c24); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--cc), inset 0 0 0 5px var(--ink); }
.tier-nm { font-size: 18px; text-shadow: 0 2px 0 var(--ink); }
.tier-arrow { width: 26px; height: 14px; background: linear-gradient(90deg, #3a2d63 0 60%, transparent 60%) center / 100% 4px no-repeat, conic-gradient(from 45deg at 100% 50%, transparent 0 0) ; position: relative; }
.tier-arrow::after { content: '▶'; position: absolute; right: -4px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #3a2d63; }
.tier-arrow.on { background: linear-gradient(90deg, var(--gold) 0 60%, transparent 60%) center / 100% 4px no-repeat; } .tier-arrow.on::after { color: var(--gold); }
.skin-grid, .roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.roster-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
.skin-card, .hero-card { --rc: #c9d3e3; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; transition: transform .15s, filter .15s; --tick: var(--rc);
  box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px color-mix(in srgb, var(--rc) 55%, #2a2050), inset 0 3px 0 rgba(255,255,255,.04); }
.skin-card:hover, .hero-card:hover { transform: translateY(-3px); filter: brightness(1.1); }
.skin-card.locked, .hero-card.locked { opacity: .5; filter: saturate(.3); }
.skin-card.locked:hover, .hero-card.locked:hover { opacity: .7; }
.sc-stage, .hc-stage { position: relative; width: 100%; display: grid; place-items: center; padding: 6px 0 2px;
  background: radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 65%); }
.sc-stage img { width: 112px; height: 112px; image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.hc-stage img { width: 80px; height: 80px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.35)); transition: transform .2s; }
.hero-card:hover .hc-stage img { transform: translateY(-3px) scale(1.04); }
.hero-card.locked .hc-stage img { filter: grayscale(1) brightness(.7); }
.hc-stage .rtag { position: absolute; top: 4px; left: 0; margin: 0; }
.sc-nm, .hc-nm { font-size: 15px; color: var(--rc); text-shadow: 0 2px 0 var(--ink); }
.hero-card .hc-nm { color: var(--text); }
.hc-stars { font-size: 12px; color: var(--gold); letter-spacing: 1px; text-shadow: 0 0 6px rgba(255,216,74,.5); }
.hero-card .dim img { width: 12px; height: 12px; image-rendering: pixelated; vertical-align: -1px; }
.roster-prog { width: 160px; } .roster-prog .bar { height: 12px; }
.title-row { --tc: #ffd84a; }
.title-row .title-nm { font-size: 15px; text-shadow: 0 0 10px color-mix(in srgb, var(--tc) 50%, transparent), 0 1px 0 #000; }
.title-row.on { box-shadow: inset 0 0 0 2px var(--tc), 0 0 14px color-mix(in srgb, var(--tc) 25%, transparent); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 12px 8px; padding: 4px; }
.menu-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; font-size: 12px; text-shadow: 0 1px 0 #000; }
.menu-tile .mbtn { width: 52px; height: 52px; }
.menu-tile:active .mbtn { transform: scale(.94); }

@media (max-width: 760px), (pointer: coarse) {
  .hero-side { width: 100%; }
  .hs-stage { width: 150px; height: 150px; } .hs-img { width: 136px; height: 136px; }
  .tier-arrow { display: none; }
  .tier-card { width: 100%; }
  .skin-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .roster-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .pbanner { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .pbanner .pb-ic { width: 44px; height: 44px; }
  .pbanner .pb-t { font-size: 17px; }
  .pbanner .pb-r { margin-left: 0; width: 100%; justify-content: flex-start; }
}
/* 分栏布局中的子项不被压缩 */
.win-body.split > .col > *, .win-body.split > .list > *, .win-body > .col > * { flex-shrink: 0; }

/* ---------- 背包 ---------- */
.bag-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.bag-sum .bag-hint { margin-left: auto; font-size: 12px; }
.bag-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px 8px; padding: 8px 6px 6px; background: radial-gradient(ellipse at 50% 0%, rgba(180,140,255,.06), transparent 70%); }
.cell.worn { box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--rc, #3a2d63), inset 0 0 0 5px rgba(7,4,15,.7), inset 0 0 12px rgba(125,255,138,.25), 0 2px 0 rgba(0,0,0,.35); }
.worn-tag { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); z-index: 2; padding: 0 4px; font-size: 9px; line-height: 12px; white-space: nowrap; color: #0a2a10; background: linear-gradient(180deg, #b8ffc0, #5ad07a); box-shadow: 0 0 0 1px var(--ink); }
.item-head { --rc: #b48cff; display: flex; gap: 14px; align-items: flex-start; padding: 12px; margin-bottom: 4px; background: radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--rc) 18%, transparent), transparent 70%), rgba(7,4,15,.35); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 40%, transparent); }
.item-head .ih-cell { flex: none; padding: 6px; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 30%, transparent), transparent 70%); }
.item-head .ih-cell .cell { width: 64px; height: 64px; } .item-head .ih-cell .cell img { width: 46px; height: 46px; }
.item-head h4 { margin: 0 0 4px; font-size: 18px; font-weight: normal; text-shadow: 0 2px 0 var(--ink); }
.item-head .grow > div { line-height: 1.65; }
.modal-acts { margin-top: 14px; padding-top: 12px; justify-content: flex-end; box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }

/* ---------- 宠物 ---------- */
.pet-row { --rc: #c9d3e3; }
.pr-ic, .npc-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--rc) 30%, #2a2050), #120c24 72%); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px color-mix(in srgb, var(--rc) 60%, #3a2d63); }
.pr-ic img, .npc-ic img { width: 40px; height: 40px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.pet-row:hover .pr-ic img { animation: hop .5s ease-out; }
@keyframes hop { 40% { transform: translateY(-4px); } }
.pet-detail { --rc: #7dff8a; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: radial-gradient(60% 100% at 0% 50%, color-mix(in srgb, var(--rc) 14%, transparent), transparent 70%), linear-gradient(180deg, rgba(46,36,88,.5), rgba(16,11,32,.65)); }
.ps-stage { position: relative; flex: none; width: 168px; height: 168px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--rc) 30%, #3a2d70), #1a1236 55%, #0d0920 76%); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px color-mix(in srgb, var(--rc) 70%, #ffd84a), inset 0 0 0 5px var(--ink); clip-path: var(--notch4); }
.ps-img { position: relative; z-index: 1; width: 144px; height: 144px; image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)) drop-shadow(0 0 10px color-mix(in srgb, var(--rc) 50%, transparent)); animation: floaty 3s ease-in-out infinite; }
.ps-stage .hs-rays { background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 20%, transparent) 0 8deg, transparent 8deg 24deg); }
.pd-nm { font-size: 22px; text-shadow: 0 2px 0 var(--ink); }
.pet-acts { padding: 10px 12px; background: rgba(7,4,15,.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.fuse-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 6px 0 14px; flex-wrap: wrap; }
.fuse-slot { --rc: #3a2d63; width: 156px; min-height: 164px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; --tick: var(--rc);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 65%), linear-gradient(180deg, rgba(46,36,88,.45), rgba(16,11,32,.65)); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px color-mix(in srgb, var(--rc) 60%, #2a2050); }
.fuse-slot img { width: 96px; height: 96px; image-rendering: pixelated; animation: floaty 3s ease-in-out infinite; }
.fuse-slot .fs-q { width: 96px; height: 96px; display: grid; place-items: center; font-size: 40px; color: #3a2d63; background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 2px rgba(255,255,255,.06); }
.fuse-slot .fs-q.star { color: var(--violet); text-shadow: 0 0 16px var(--violet); background: none; box-shadow: none; animation: floaty 2.4s ease-in-out infinite; }
.fuse-slot.out.ready { --rc: #b48cff; animation: hlBreath 2s ease-in-out infinite; }
.fuse-op { font-size: 30px; color: var(--violet); text-shadow: 0 0 12px rgba(180,140,255,.7), 0 2px 0 var(--ink); }
.codex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.codex-card { --rc: #c9d3e3; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; text-align: center; --tick: color-mix(in srgb, var(--rc) 70%, #3a2d63); transition: transform .15s, filter .15s; }
.codex-card:hover { transform: translateY(-2px); filter: brightness(1.15); }
.cc-stage { width: 60px; height: 60px; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 22%, transparent), transparent 68%); }
.cc-stage img { width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.cc-nm { font-size: 11px; color: var(--rc); text-shadow: 0 1px 0 #000; }
.cc-own { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 11px; color: var(--green); }
.codex-card.unseen { opacity: .4; } .codex-card.unseen img { filter: brightness(0) drop-shadow(0 0 1px rgba(180,140,255,.5)); } .codex-card.unseen .cc-nm { color: var(--dim); }

/* ---------- 任务 ---------- */
.quest-card { --kc: #ffd84a; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; --tick: var(--kc);
  background: linear-gradient(90deg, color-mix(in srgb, var(--kc) 10%, transparent), transparent 40%), linear-gradient(180deg, rgba(46,36,88,.5), rgba(16,11,32,.62)); }
.quest-card::after { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--kc); box-shadow: 0 0 8px var(--kc); }
.quest-card.done { --tick: #ffd84a; }
.quest-card.claimed { opacity: .6; }
.qc-ic { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--kc) 30%, #2a2050), #120c24 72%); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px color-mix(in srgb, var(--kc) 60%, #3a2d63); clip-path: var(--notch); }
.qc-ic img { width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
.quest-card.done .qc-ic img { animation: floaty 2s ease-in-out infinite; }
.qc-kind { color: var(--kc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kc) 60%, transparent); }
.qc-title { font-size: 16px; text-shadow: 0 2px 0 var(--ink); }
.qc-stars { color: var(--gold); text-shadow: 0 0 6px rgba(255,216,74,.5); letter-spacing: 1px; }
.qc-desc { line-height: 1.6; color: #d8d0f0; }
.qc-bar { height: 10px; }
.qc-rw { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.qc-rw img { width: 16px; height: 16px; image-rendering: pixelated; }
.daily-prog { width: 180px; display: flex; flex-direction: column; gap: 4px; }
.daily-prog .bar { height: 10px; }
.goal-banner .pb-s { font-size: 15px; color: #fff3c0; }
.core-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
.core-slot { --cc: #b48cff; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--dim); text-align: center; }
.core-slot .cs-ic { width: 52px; height: 52px; display: grid; place-items: center; background: radial-gradient(circle, rgba(58,45,99,.4), transparent 70%); }
.core-slot .cs-ic img { width: 40px; height: 40px; image-rendering: pixelated; opacity: .45; }
.core-slot.got { color: var(--cc); text-shadow: 0 1px 0 #000; }
.core-slot.got .cs-ic { background: radial-gradient(circle, color-mix(in srgb, var(--cc) 35%, transparent), transparent 70%); }
.core-slot.got .cs-ic img { opacity: 1; filter: drop-shadow(0 0 8px var(--cc)); animation: floaty 3s ease-in-out infinite; }

/* ---------- 人际 / 成就 / 图鉴 ---------- */
.npc-row { --rc: #9aa3b5; }
.npc-row.unmet .npc-ic img { filter: brightness(0) drop-shadow(0 0 1px rgba(180,140,255,.6)); }
.npc-row.unmet { color: var(--dim); }
.npc-detail { --rc: #b48cff; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; background: radial-gradient(60% 100% at 0% 50%, color-mix(in srgb, var(--rc) 14%, transparent), transparent 70%), linear-gradient(180deg, rgba(46,36,88,.5), rgba(16,11,32,.65)); }
.npc-stage .ps-img { animation: none; }
.npc-info > div:not(.sec):not(h3) { padding: 4px 0; line-height: 1.6; box-shadow: inset 0 -1px 0 rgba(255,255,255,.04); }
.web-legend { gap: 14px; font-size: 12px; margin-bottom: 8px; }
.web-card { padding: 6px; background: var(--px-stars) 0 0 / 128px 128px, radial-gradient(circle at 50% 50%, rgba(180,140,255,.14), transparent 60%), rgba(7,4,15,.45); }
.web-card svg image { transition: transform .2s; transform-box: fill-box; transform-origin: center; }
.web-card svg image:hover { transform: scale(1.15); }
.contract-row .qc-ic, .ach-row .qc-ic { width: 44px; height: 44px; }
.faction-card { --fc: #b48cff; display: flex; gap: 14px; align-items: center; margin-bottom: 8px; --tick: var(--fc); background: linear-gradient(90deg, color-mix(in srgb, var(--fc) 14%, transparent), transparent 45%), linear-gradient(180deg, rgba(46,36,88,.5), rgba(16,11,32,.62)); }
.fc-flag { flex: none; width: 56px; height: 56px; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--fc) 30%, transparent), transparent 70%); }
.fc-flag img { width: 40px; height: 40px; image-rendering: pixelated; animation: flagWave 3s ease-in-out infinite; transform-origin: 30% 90%; }
@keyframes flagWave { 50% { transform: rotate(-4deg) skewX(-3deg); } }
.faction-card .bar { height: 10px; }
.news-row img { width: 24px; height: 24px; image-rendering: pixelated; }
.ach-row.ready { background: linear-gradient(90deg, rgba(255,216,74,.16), rgba(255,216,74,.02) 70%); box-shadow: inset 0 0 0 2px rgba(255,216,74,.6), 0 0 14px rgba(255,216,74,.18); animation: hlGold 2.4s ease-in-out infinite; }
@keyframes hlGold { 50% { box-shadow: inset 0 0 0 2px #ffe680, 0 0 20px rgba(255,216,74,.32); } }
.ach-row.ready .qc-ic img { animation: floaty 1.8s ease-in-out infinite; }
.ach-row.done { opacity: .6; }
.boss-card { --rc: #b48cff; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; --tick: var(--rc); overflow: hidden;
  background: radial-gradient(80% 60% at 50% 35%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%), linear-gradient(180deg, rgba(46,36,88,.5), rgba(10,7,22,.7)); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px color-mix(in srgb, var(--rc) 55%, #2a2050); transition: transform .15s; }
.boss-card:hover { transform: translateY(-3px); }
.bc-stage img { width: 96px; height: 96px; image-rendering: pixelated; filter: drop-shadow(0 0 10px var(--rc)) drop-shadow(0 3px 0 rgba(0,0,0,.4)); animation: floaty 3.6s ease-in-out infinite; }
.bc-nm { font-size: 14px; text-shadow: 0 2px 0 var(--ink); }
.boss-card.unseen { opacity: .55; } .boss-card.unseen .bc-stage img { filter: brightness(.12) drop-shadow(0 0 2px color-mix(in srgb, var(--rc) 60%, transparent)); animation: none; }
.tab:has(> .badge) { padding-right: 24px; }
.tab > .badge { top: 50%; right: 4px; transform: translateY(-50%); animation: none; }

/* ---------- 工坊 / 家园 / 建造 / 钓鱼 ---------- */
.slot-pick { margin: 0 0 10px; gap: 6px; }
.cp-flow { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 6px 0 4px; }
.cp-node { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 90px; font-size: 13px; }
.cp-node small { font-size: 11px; color: var(--muted); }
.cp-node.out .cell { animation: rglow 1.6s ease-in-out infinite; }
.cp-plus, .cp-arrow { font-style: normal; font-size: 24px; color: var(--violet); text-shadow: 0 0 10px rgba(180,140,255,.7), 0 2px 0 var(--ink); }
.cp-arrow { color: var(--gold); text-shadow: 0 0 10px rgba(255,216,74,.7), 0 2px 0 var(--ink); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.enh-big { flex: none; display: flex; align-items: center; gap: 8px; align-self: center; padding: 8px 14px; background: rgba(7,4,15,.5); box-shadow: inset 0 0 0 1px rgba(255,216,74,.35); }
.enh-big b { font-weight: normal; font-size: 26px; text-shadow: 0 2px 0 var(--ink); } .enh-big b.gold { text-shadow: 0 0 12px rgba(255,216,74,.7), 0 2px 0 var(--ink); }
.enh-big i { font-style: normal; color: var(--muted); }
.enh-rate { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.enh-rate .bar { flex: 1; height: 12px; } .enh-rate .bar > b { line-height: 12px; font-size: 11px; }
.affix-row .affix-dia { width: 12px; height: 12px; flex: none; background: var(--px-dia-c) center / 12px no-repeat; }
.recipe-row { opacity: .62; }
.recipe-row.ok { opacity: 1; box-shadow: inset 0 0 0 1px rgba(125,255,138,.3), inset 0 -2px 0 rgba(0,0,0,.18); }
.recipe-row.ok::before { opacity: .7; transform: none; background: var(--green); }
.recipe-row .chip img { width: 14px; height: 14px; }
.build-bar { position: fixed; left: 50%; top: calc(110px + var(--safe-t)); transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 8px; padding: 8px 12px; white-space: nowrap;
  background: var(--px-stars) 0 0 / 128px 128px, linear-gradient(180deg, rgba(40,30,74,.95), rgba(16,11,32,.95)); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px #ffd84a, inset 0 0 0 3px var(--ink), 0 8px 24px rgba(0,0,0,.5); animation: dlgIn .3s cubic-bezier(.2,1.3,.4,1); }
.build-bar img { width: 20px; height: 20px; image-rendering: pixelated; }
.fish-game h3 img, .modal .box h3 > img { width: 22px; height: 22px; image-rendering: pixelated; flex: none; }
.modal .box h3:has(> img)::before { display: none; }
.fish-status { font-size: 18px; text-align: center; min-height: 28px; text-shadow: 0 2px 0 var(--ink); }
.fish-status .cell { margin: 6px auto; }
.fish-track { background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.04) 22px 24px), linear-gradient(180deg, #0a3a5a, #062038 60%, #04152a); }
.fish-track::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(90deg, rgba(168,240,255,.35) 0 6px, transparent 6px 14px); animation: waves 2s linear infinite; }
@keyframes waves { to { background-position: 14px 0; } }

/* ---------- 商城 ---------- */
.cur-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cur-pill { --cc: #ffd84a; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; font-size: 13px; background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 14%, rgba(30,22,58,.9)), rgba(10,7,22,.85)); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px color-mix(in srgb, var(--cc) 40%, #2a2050); clip-path: var(--notch); }
.cur-pill img { width: 20px; height: 20px; image-rendering: pixelated; }
.cur-pill b { font-weight: normal; color: #fff; text-shadow: 0 1px 0 #000; } .cur-pill small { font-size: 11px; color: var(--muted); }
.vip-card { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; --tick: #ffd84a; background: linear-gradient(90deg, rgba(255,216,74,.14), rgba(180,140,255,.08) 60%, transparent), linear-gradient(180deg, rgba(46,36,88,.5), rgba(16,11,32,.62)); }
.vip-card > img { width: 40px; height: 40px; image-rendering: pixelated; animation: floaty 3s ease-in-out infinite; }
.vip-badge { flex: none; width: 64px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; clip-path: var(--notch4);
  background: radial-gradient(circle at 50% 30%, #ffe680, #c8901a 70%); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px #fff2a0, inset 0 -6px 0 2px rgba(0,0,0,.2); color: #3a2400; }
.vip-badge small { font-size: 12px; letter-spacing: .2em; } .vip-badge b { font-weight: normal; font-size: 28px; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.pack-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 26px; --tick: #5ad1ff; transition: transform .15s, filter .15s;
  background: radial-gradient(70% 50% at 50% 30%, rgba(90,209,255,.18), transparent 70%), linear-gradient(180deg, rgba(46,36,88,.55), rgba(16,11,32,.7)); }
.pack-card:hover { transform: translateY(-3px); filter: brightness(1.1); }
.pack-card.first { --tick: #ffd84a; }
.pack-tag { position: absolute; top: 6px; right: 6px; color: var(--pink); }
.pack-first { position: absolute; top: 6px; left: 6px; color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255,216,74,.6); animation: hlGold 2s ease-in-out infinite; }
.pack-gem { width: 84px; height: 84px; display: grid; place-items: center; background: radial-gradient(circle, rgba(90,209,255,.32), transparent 66%); }
.pack-gem img { width: 72px; height: 72px; image-rendering: pixelated; filter: drop-shadow(0 0 10px rgba(90,209,255,.8)); animation: floaty 2.8s ease-in-out infinite; }
.pack-card:nth-child(2n) .pack-gem img { animation-delay: -1.2s; }
.pack-gem.sm { width: 56px; height: 56px; } .pack-gem.sm img { width: 44px; height: 44px; }
.pack-n { font-size: 22px; color: var(--cyan); text-shadow: 0 0 10px rgba(90,209,255,.6), 0 2px 0 var(--ink); } .pack-n small { font-size: 13px; color: var(--muted); text-shadow: none; }
.pay-sum { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 12px; background: rgba(7,4,15,.4); box-shadow: inset 0 0 0 1px rgba(90,209,255,.3); }
.pay-sum b.gold { font-weight: normal; font-size: 22px; }
.pay-opt { color: #fff; }
.sign-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 4px 0; }
.sign-day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; font-size: 11px; text-align: center; color: var(--muted); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(7,4,15,.4)); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px #2e2452; }
.sign-day small { font-size: 10px; color: var(--dim); }
.sign-day img { width: 32px; height: 32px; image-rendering: pixelated; filter: grayscale(.5) brightness(.8); }
.sign-day.big { box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px rgba(255,216,74,.45); }
.sign-day.got { color: var(--text); background: linear-gradient(180deg, rgba(125,255,138,.16), rgba(7,4,15,.4)); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px var(--green); }
.sign-day.got img { filter: none; animation: floaty 2.6s ease-in-out infinite; }
.sign-day.got::after { content: '✓'; color: var(--green); font-size: 12px; }
.shop-card { --rc: #b48cff; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; --tick: var(--rc); transition: transform .15s, filter .15s;
  background: radial-gradient(70% 45% at 50% 28%, color-mix(in srgb, var(--rc) 18%, transparent), transparent 70%), linear-gradient(180deg, rgba(46,36,88,.5), rgba(16,11,32,.65)); }
.shop-card:hover { transform: translateY(-3px); filter: brightness(1.12); }
.shop-card .shop-nm { font-size: 13px; color: var(--rc); text-shadow: 0 1px 0 #000; min-height: 18px; }
.shop-card .btn { min-width: 84px; }
.shop-card.soldout { opacity: .45; filter: grayscale(.6); }
.exch-row .input { width: 110px !important; }
.exch-row .cp-arrow { font-size: 18px; }
.market-row { --rc: #b48cff; }
.npc-banner .pb-ic { width: 64px; height: 64px; animation: none; }
@media (max-width: 760px), (pointer: coarse) {
  .sign-row { grid-template-columns: repeat(4, 1fr); }
  .vip-card { flex-wrap: wrap; }
}

/* ---------- 邮件 / 好友 / 聊天 / 排行 / 挑战 ---------- */
.loading-dots { padding: 30px 0; text-align: center; color: var(--muted); }
.loading-dots::after { content: '…'; display: inline-block; animation: blink 1s steps(2) infinite; }
.mail-top { margin-bottom: 6px; padding: 6px 8px; background: rgba(7,4,15,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.mail-row img { width: 28px; height: 28px; image-rendering: pixelated; }
.mail-row.unread { background: linear-gradient(90deg, rgba(90,209,255,.12), rgba(255,255,255,.015) 70%); }
.mail-row.unread::before { opacity: 1; transform: none; background: var(--cyan); }
.mail-row.has img { animation: floaty 2s ease-in-out infinite; }
.letter { background: repeating-linear-gradient(180deg, transparent 0 27px, rgba(255,255,255,.035) 27px 28px), linear-gradient(180deg, rgba(56,44,100,.5), rgba(16,11,32,.7)); }
.letter-head { display: flex; align-items: center; gap: 12px; }
.letter-head img { width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
.letter-t { font-size: 18px; color: var(--gold); text-shadow: 0 2px 0 var(--ink); }
.letter-body { white-space: pre-wrap; line-height: 1.8; padding: 2px 4px 6px; color: #e6e0ff; }
img.avatar { image-rendering: pixelated; background: #120c24; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px #3a2d63; }
.friend-row.online img.avatar { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--green), 0 0 10px rgba(125,255,138,.35); }
.friend-row > .row.wrap { gap: 4px; }
.chat-full { padding: 8px 10px; background: var(--px-stars) 0 0 / 128px 128px, linear-gradient(180deg, rgba(10,7,22,.6), rgba(10,7,22,.4)); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px #2e2452; font-size: 13px; }
.rank-row { --mc: #9a90c0; }
.rank-row .rank-no { flex: none; width: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; font-size: 15px; text-shadow: 0 2px 0 var(--ink); }
.rank-row .rank-no img { width: 24px; height: 24px; image-rendering: pixelated; }
.rank-row.top { background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 18%, transparent), rgba(255,255,255,.015) 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mc) 55%, transparent); }
.rank-row.top .rank-no { font-size: 18px; color: var(--mc); }
.rank-row.me { box-shadow: inset 0 0 0 2px var(--violet), 0 0 12px rgba(180,140,255,.2); }
.rank-row .gold { font-size: 15px; text-shadow: 0 1px 0 #000; }
.profile-head { gap: 12px; align-items: center; }
img.avatar.big { width: 72px; height: 72px; }
.ps-stage.mini { width: 88px; height: 88px; } .ps-stage.mini img { width: 80px; height: 80px; image-rendering: pixelated; position: relative; z-index: 1; }
.mode-hero { --bc: #b48cff; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 30%, color-mix(in srgb, var(--bc) 22%, transparent), transparent 70%), var(--px-stars) 0 0 / 128px 128px, linear-gradient(180deg, rgba(46,36,88,.55), rgba(16,11,32,.7)); }
.mode-hero .mh-ic { position: relative; width: 140px; height: 140px; display: grid; place-items: center; }
.mode-hero .mh-ic::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(color-mix(in srgb, var(--bc) 22%, transparent) 0 10deg, transparent 10deg 30deg); animation: spin 30s linear infinite; mask-image: radial-gradient(circle, #000 30%, transparent 70%); }
.mode-hero .mh-ic img { position: relative; width: 96px; height: 96px; image-rendering: pixelated; filter: drop-shadow(0 0 14px var(--bc)) drop-shadow(0 4px 0 rgba(0,0,0,.4)); animation: floaty 3s ease-in-out infinite; }
.mode-hero.raid .mh-ic img { width: 128px; height: 128px; }
.mode-hero .mh-ic.spin img { animation: hourglass 4s ease-in-out infinite; }
@keyframes hourglass { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
.mode-hero .mh-t { font-size: 22px; letter-spacing: .08em; text-shadow: 0 2px 0 var(--ink), 0 0 14px color-mix(in srgb, var(--bc) 60%, transparent); }
.mode-hero .muted { max-width: 560px; line-height: 1.7; }
.mode-hero .bar { width: min(520px, 100%); }
.opp-row .pr-ic { width: 52px; height: 52px; } .opp-row .pr-ic img { width: 48px; height: 48px; }

/* ---------- 设置 / GM / 地图 ---------- */
.slider-row label { display: flex !important; align-items: center; gap: 6px; }
.slider-row label img { width: 16px; height: 16px; image-rendering: pixelated; }
.slider-row .sl-val { margin-left: auto; font-weight: normal; color: var(--gold); min-width: 28px; text-align: right; }
.toggle-row { margin-top: 6px; }
.mode-now { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .mode-now .rtag { margin-left: 0; font-size: 13px; padding: 2px 8px; }
.acc-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: radial-gradient(60% 100% at 0% 50%, rgba(180,140,255,.16), transparent 70%), linear-gradient(180deg, rgba(46,36,88,.5), rgba(16,11,32,.65)); }
.acc-frame { position: relative; flex: none; padding: 6px; background: radial-gradient(circle, rgba(255,216,74,.18), transparent 70%); }
.acc-frame::after { content: ''; position: absolute; inset: -4px; pointer-events: none; background: var(--orn-g-tl) left top / 18px no-repeat, var(--orn-g-tr) right top / 18px no-repeat, var(--orn-g-bl) left bottom / 18px no-repeat, var(--orn-g-br) right bottom / 18px no-repeat; }
img.acc-av { display: block; width: 96px; height: 96px; }
.acc-nm { font-size: 22px; text-shadow: 0 2px 0 var(--ink); }
.acc-card .muted img { width: 14px; height: 14px; image-rendering: pixelated; vertical-align: -2px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 16px; }
.help-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 6px; background: linear-gradient(90deg, rgba(255,255,255,.035), transparent); box-shadow: inset 0 -1px 0 rgba(255,255,255,.05); }
.help-row > span:first-child { color: var(--gold); }
.help-k { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; text-align: right; }
.help-k .kbd { font-size: 12px; padding: 1px 6px; color: #fff; }
.lore-card { background: var(--px-stars) 0 0 / 128px 128px, radial-gradient(60% 80% at 100% 0%, rgba(255,216,74,.1), transparent 70%), linear-gradient(180deg, rgba(46,36,88,.5), rgba(16,11,32,.65)); }
.gm-quick .btn { min-width: 120px; }
.gm-op { --tick: #ff7ab6; }
.gm-op-t { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; }
.gm-op-t code { font-family: Menlo, Consolas, monospace; font-size: 11px; padding: 1px 6px; color: var(--pink); background: rgba(255,122,182,.1); box-shadow: inset 0 0 0 1px rgba(255,122,182,.3); }
.world-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.world-card { --cc: #b48cff; min-height: 160px; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; gap: 2px; --tick: var(--cc); transition: transform .18s, filter .18s;
  box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 2px color-mix(in srgb, var(--cc) 50%, #2a2050), inset 0 0 30px rgba(0,0,0,.35); }
.world-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7,4,15,.15), rgba(7,4,15,.0) 40%, rgba(7,4,15,.55)); }
.world-card > * { position: relative; z-index: 1; }
.world-card:hover { transform: translateY(-3px); filter: brightness(1.15); }
.world-card.locked { cursor: not-allowed; filter: grayscale(.6) brightness(.6); } .world-card.locked:hover { transform: none; filter: grayscale(.6) brightness(.7); }
.world-card .wc-boss { position: absolute; right: -8px; bottom: -8px; z-index: 0; width: 104px; height: 104px; image-rendering: pixelated; opacity: .9; filter: drop-shadow(0 0 10px var(--cc)); transition: transform .3s; }
.world-card:hover .wc-boss { transform: scale(1.08) translateY(-4px); }
.world-card.cleared .wc-boss { opacity: .4; filter: grayscale(.4); }
.world-card.locked .wc-boss { filter: brightness(0); opacity: .7; }
.wc-idx { position: absolute; top: 6px; right: 8px; font-size: 28px; color: rgba(255,255,255,.12); text-shadow: none; }
.wc-nm { font-size: 18px; text-shadow: 0 2px 0 #000, 0 0 10px color-mix(in srgb, var(--cc) 60%, transparent); }
.wc-town { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #e0d8ff; text-shadow: 0 1px 0 #000; }
.wc-town img { width: 12px; height: 12px; image-rendering: pixelated; }
.wc-meta { display: flex; gap: 10px; margin-top: 6px; font-size: 12px; text-shadow: 0 1px 0 #000; }
.wc-stages { display: flex; gap: 3px; margin: 4px 0; }
.wc-stages i { width: 14px; height: 6px; background: rgba(7,4,15,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.wc-stages i.on { background: var(--cc); box-shadow: 0 0 6px var(--cc); }
.wc-core { margin-top: auto; font-size: 12px; text-shadow: 0 1px 0 #000; max-width: 70%; }
.wc-here { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2; }
.world-card.here { animation: hlBreath 2.4s ease-in-out infinite; }
.wc-here { top: 8px; right: 8px; left: auto; transform: none; }
.world-card.here .wc-idx { display: none; }

/* ---------- 对话 / 特效结算 ---------- */
.dlg .opts .btn img { width: 16px; height: 16px; }
.gift-heart { position: absolute; left: 3px; top: 1px; z-index: 2; font-size: 12px; color: var(--pink); text-shadow: 0 0 6px rgba(255,122,182,.8), 1px 1px 0 #000; }
.cell.gift-loved { box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--pink), inset 0 0 12px rgba(255,122,182,.35), 0 0 10px rgba(255,122,182,.45); }
.fx-pedestal { --tc: #ffd84a; position: relative; display: grid; place-items: center; padding: 10px 30px 22px; }
.fx-pedestal::before { content: ''; position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; transform: translate(-50%, -54%); background: radial-gradient(circle, color-mix(in srgb, var(--tc) 35%, transparent), transparent 62%); pointer-events: none; }
.fx-pedestal::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 180px; height: 22px; transform: translateX(-50%); background: radial-gradient(ellipse, color-mix(in srgb, var(--tc) 45%, rgba(0,0,0,.5)), transparent 70%); }
.fx-pedestal > img { position: relative; z-index: 1; }
.fx-pedestal.core > img { animation: cardIn 1s cubic-bezier(.2,1.6,.4,1), floaty 3s ease-in-out 1s infinite !important; }
.fx-sub { font-size: 15px; letter-spacing: .2em; color: #e0d8ff; text-shadow: 0 2px 0 #000; }
.core-dots { display: flex; gap: 6px; }
.core-dots i { --tc: #ffd84a; width: 12px; height: 12px; transform: rotate(45deg); background: rgba(58,45,99,.6); box-shadow: 0 0 0 1px var(--ink); }
.core-dots i.on { background: var(--tc); box-shadow: 0 0 0 1px var(--ink), 0 0 10px var(--tc); }
.death-count { font-size: 22px; letter-spacing: .2em; color: #ffd0d0; text-shadow: 0 0 14px rgba(255,58,74,.8), 0 2px 0 #000; animation: pulseT 1s infinite; }
.result-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.result-stats .pstat { min-width: 120px; }
.banner.lvup h1 { color: #ffd84a; text-shadow: 0 4px 0 var(--ink), 0 0 30px rgba(255,216,74,.8); background: linear-gradient(180deg, #fff6c8 0 40%, #ffd84a 40% 70%, #e09a20 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 0 var(--ink)) drop-shadow(0 0 24px rgba(255,216,74,.7)); }
.banner.lvup p b { font-weight: normal; color: #fff6c8; }
.banner.lvup::before, .banner.lvup::after { background: var(--px-dia) center / 14px no-repeat, linear-gradient(90deg, transparent, #ffd84a 25%, #fff2a0 50%, #ffd84a 75%, transparent) center / 100% 2px no-repeat; }
@media (max-width: 760px), (pointer: coarse) {
  .pgrid, .world-grid { grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 170px), 44%), 1fr)); }
  .world-card { min-height: 140px; }
  .opp-row .chip.gold { display: none; }
  .pack-card { padding-top: 24px; } .pack-gem { width: 64px; height: 64px; } .pack-gem img { width: 56px; height: 56px; }
  .help-grid { grid-template-columns: 1fr; }
  .equip-slots { gap: 8px; }
  .fuse-slot { width: 128px; min-height: 140px; } .fuse-slot img, .fuse-slot .fs-q { width: 72px; height: 72px; }
  .result-stats .pstat { min-width: 44%; }
}
.banner.lvup h1 { text-shadow: none; }
/* 可滚动列表里的 NEW 角标不被裁切 */
.list:has(.new-tag), .codex-grid:has(.new-tag), .roster-grid, .skin-grid { padding-top: 6px; padding-right: 6px; }

/* 改名冷却提示 */
.rename-cd { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 4px; padding: 3px 10px 3px 8px; font-size: 12px; box-shadow: inset 3px 0 0 currentColor, inset 0 0 0 1px rgba(255,255,255,.06); background: linear-gradient(90deg, rgba(255,255,255,.06), transparent); }
.rename-cd.wait { color: #ffb84a; } .rename-cd.ready { color: var(--green); }
.rename-cd::before { content: ''; width: 10px; height: 10px; background: var(--px-dia) center / 10px no-repeat; }

/* 修改密码：两种方式 */
.pw-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 3px; margin-bottom: 12px; background: rgba(5,3,12,.6); box-shadow: inset 0 0 0 2px #2a2050; }
.pw-seg > div { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; cursor: pointer; color: var(--muted); font-size: 13px; letter-spacing: .08em; transition: color .2s, background .2s; }
.pw-seg > div img { width: 16px; height: 16px; image-rendering: pixelated; opacity: .6; transition: opacity .2s; }
.pw-seg > div:hover { color: var(--text); }
.pw-seg > div.on { color: #fff; text-shadow: 0 1px 0 #000; background: linear-gradient(180deg, #8c6cf0 0 2px, #6a4ed0 2px 50%, #5038a8 50%); box-shadow: inset 0 0 0 2px var(--ink), 0 0 12px rgba(150,110,255,.3); clip-path: var(--notch); animation: badgePop .25s; }
.pw-seg > div.on img { opacity: 1; }
.pw-body { animation: tabIn .28s cubic-bezier(.2,1,.4,1); }
.pw-mail { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding: 7px 10px; font-size: 13px; color: var(--muted); background: linear-gradient(90deg, rgba(90,209,255,.12), transparent); box-shadow: inset 3px 0 0 var(--cyan); }
.pw-mail img { width: 18px; height: 18px; image-rendering: pixelated; }
.pw-mail b { font-weight: normal; color: #fff; word-break: break-all; }
.pw-code { font-size: 18px; letter-spacing: .4em; }
.pw-code::placeholder { font-size: 13px; letter-spacing: .08em; }
.pw-code.flash { animation: codeFlash 1.2s ease-out; }
.pw-send { flex: none; min-width: 110px; }
.pw-tip { font-size: 12px; margin-top: 8px; line-height: 1.6; }
