/* 秘境深渊：入口面板 / 增益卡牌 / 运行 HUD / 商店 / 结算（类名前缀 ab-） */
.ab-body { display: flex; flex-direction: column; gap: 10px; }
.ab-body > * { flex: none; }
.ab-chip { --c: #b48cff; display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; font-size: 11px; line-height: 17px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #0c0818); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); clip-path: var(--notch); white-space: nowrap; }
.ab-sec { margin-top: 4px; }

/* ---------- 主视觉 ---------- */
.ab-hero { position: relative; display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; overflow: hidden;
  background: radial-gradient(60% 120% at 12% 50%, rgba(140,70,255,.35), transparent 70%), radial-gradient(50% 90% at 95% 0%, rgba(255,80,160,.14), transparent 70%), linear-gradient(160deg, #1c1034, #0b0716 70%);
  box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px rgba(180,140,255,.35), 0 10px 30px rgba(0,0,0,.4); clip-path: var(--notch4); }
.ab-hero::after { content: ''; position: absolute; inset: 0; background: var(--px-stars) 0 0 / 128px; opacity: .35; pointer-events: none; animation: abDrift 60s linear infinite; }
@keyframes abDrift { to { background-position: -512px 256px; } }
.ab-hero-txt { position: relative; z-index: 1; min-width: 0; }
.ab-kicker { font-size: 12px; letter-spacing: .3em; color: #c8a8ff; }
.ab-title { margin: 2px 0 6px; font-size: 34px; font-weight: normal; letter-spacing: .18em; background: linear-gradient(180deg, #ffffff, #d8b8ff 45%, #8a4aff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #07040f) drop-shadow(0 0 14px rgba(160,90,255,.6)); }
.ab-sub { font-size: 13px; line-height: 1.7; color: #d0c4f0; max-width: 560px; }
.ab-reset { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 10px; font-size: 12px; color: #ffd84a; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(255,216,74,.35); clip-path: var(--notch); }
.ab-hero-r { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
/* 旋涡 */
.ab-vortex { position: relative; width: 140px; height: 140px; z-index: 1; filter: drop-shadow(0 0 18px rgba(150,80,255,.7)); }
.ab-vortex.sm { width: 64px; height: 64px; flex: none; }
.ab-vortex i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: #c890ff; border-left-color: rgba(255,122,182,.8); animation: abSpin 3s linear infinite; }
.ab-vortex i:nth-child(2) { inset: 14%; border-top-color: #5ad1ff; border-right-color: rgba(180,140,255,.8); animation-duration: 2.1s; animation-direction: reverse; }
.ab-vortex i:nth-child(3) { inset: 28%; border-top-color: #ffffff; border-left-color: #b48cff; animation-duration: 1.4s; }
.ab-vortex b { position: absolute; inset: 38%; border-radius: 50%; background: radial-gradient(circle, #ffffff, #c890ff 40%, #3a0a6a 75%, transparent 76%); animation: abPulse 1.6s ease-in-out infinite; }
@keyframes abSpin { to { transform: rotate(360deg); } }
@keyframes abPulse { 50% { transform: scale(1.18); filter: brightness(1.3); } }

/* ---------- 词条 ---------- */
.ab-mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ab-mod { --c: #b48cff; position: relative; padding: 10px 12px 12px 62px; min-height: 76px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, #140e26), #0f0a1e 70%); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); clip-path: var(--notch); }
.ab-mod-k { font-size: 11px; letter-spacing: .2em; }
.ab-mod-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%); }
.ab-mod-ic img { image-rendering: pixelated; }
.ab-mod-n { font-size: 16px; color: var(--c); text-shadow: 0 1px 0 #000; }
.ab-mod-t { font-size: 12px; color: #d0c8ea; line-height: 1.5; }

/* ---------- 行动 ---------- */
.ab-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 6px 0; }
.btn.ab-go { min-width: 240px; font-size: 18px; padding: 12px 22px; animation: abGlow 2.2s ease-in-out infinite; }
@keyframes abGlow { 50% { filter: brightness(1.25) drop-shadow(0 0 10px rgba(180,140,255,.8)); } }
.ab-tips { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #a898d0; }
.ab-runcard { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: linear-gradient(135deg, rgba(120,60,220,.25), rgba(15,10,30,.9)); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px rgba(180,140,255,.5); clip-path: var(--notch); }
.ab-runboons { display: flex; flex-wrap: wrap; gap: 4px; }
.ab-bi { --rc: #c9d3e3; position: relative; display: inline-grid; place-items: center; padding: 2px; background: color-mix(in srgb, var(--rc) 16%, #0c0818); box-shadow: inset 0 0 0 1px var(--rc), 0 0 6px color-mix(in srgb, var(--rc) 45%, transparent); clip-path: var(--notch); font-style: normal; }
.ab-bi img { image-rendering: pixelated; display: block; }
.ab-bi em { position: absolute; right: 0; bottom: -1px; font-size: 9px; line-height: 10px; padding: 0 2px; color: #fff; background: rgba(0,0,0,.75); font-style: normal; }
.ab-last { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 13px; color: #ffd84a; background: rgba(255,216,74,.08); box-shadow: inset 0 0 0 1px rgba(255,216,74,.3); clip-path: var(--notch); }

/* ---------- 排行 ---------- */
.ab-top { display: flex; flex-direction: column; gap: 4px; }
.ab-row { --mc: #3a2d63; display: grid; grid-template-columns: 54px 34px 1fr 64px 56px; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 16%, #150f28), #120c22); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mc) 50%, #2a2050); clip-path: var(--notch); }
.ab-row:hover { filter: brightness(1.15); }
.ab-row.me { box-shadow: inset 0 0 0 2px #5ad1ff; background: linear-gradient(90deg, rgba(90,209,255,.18), #120c22); }
.ab-rk { display: inline-flex; align-items: center; gap: 2px; font-size: 16px; color: #9a90c0; }
.ab-row.top .ab-rk { color: var(--mc); }
.ab-av { width: 32px; height: 32px; image-rendering: pixelated; background: #221a3e; clip-path: var(--notch); display: block; }
.ab-nm { font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-fl { text-align: right; } .ab-fl b { font-size: 20px; color: #d8b8ff; } .ab-fl small { font-size: 11px; color: #9a90c0; margin-left: 2px; }
.ab-tm { text-align: right; font-size: 13px; color: #8ad8ff; font-variant-numeric: tabular-nums; }

/* ---------- 奖励 / 图鉴 ---------- */
.ab-mile { display: flex; flex-direction: column; gap: 6px; }
.ab-mi { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; background: #150f28; box-shadow: inset 0 0 0 1px #2c2152; clip-path: var(--notch); }
.ab-mi.got { opacity: .65; }
.ab-mi-f b { font-size: 24px; color: #ffd84a; } .ab-mi-f small { color: #9a90c0; margin-left: 2px; }
.ab-mi-r, .ab-rws { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-rw { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; font-size: 12px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); clip-path: var(--notch); }
.ab-rw img { image-rendering: pixelated; }
.ab-rank { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.ab-rr { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; background: linear-gradient(135deg, rgba(255,216,74,.1), #130d24); box-shadow: inset 0 0 0 1px rgba(255,216,74,.25); clip-path: var(--notch); font-size: 12px; }
.ab-rr b { color: #ffd84a; font-size: 14px; }
.ab-formula { font-size: 13px; line-height: 1.7; }
.ab-school { --sc: #b48cff; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 0 2px var(--ink), inset 3px 0 0 var(--sc); }
.ab-school-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ab-school-h b { font-size: 17px; color: var(--sc); } .ab-school-h .dim { font-size: 12px; }
.ab-school-h img { image-rendering: pixelated; }
.ab-sets { display: flex; flex-direction: column; gap: 3px; }
.ab-set { font-size: 12px; line-height: 1.6; color: #d8d0f0; } .ab-set b { color: var(--sc); } .ab-set-n { display: inline-block; min-width: 34px; padding: 0 4px; margin-right: 4px; text-align: center; font-size: 11px; color: #0c0818; background: var(--sc); clip-path: var(--notch); }
.ab-boons { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-mini { --rc: #c9d3e3; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; font-size: 12px; color: var(--rc); background: color-mix(in srgb, var(--rc) 10%, #120c22); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 50%, transparent); clip-path: var(--notch); cursor: help; }
.ab-mini img { image-rendering: pixelated; }
.ab-tip h4 { margin: 0 0 4px; } .ab-tip-tags { display: flex; gap: 4px; align-items: center; margin-bottom: 4px; }

/* ---------- 增益三选一 ---------- */
.ab-pick { position: fixed; inset: 0; z-index: 72; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; animation: fade .3s; }
.ab-pick.out { animation: fadeOut .38s forwards; pointer-events: none; }
.ab-pick-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 45%, rgba(110,50,200,.45), rgba(6,3,14,.9) 70%), rgba(4,2,10,.55); }
.ab-pick.boss .ab-pick-bg { background: radial-gradient(70% 60% at 50% 45%, rgba(220,120,40,.4), rgba(10,4,4,.92) 70%); }
.ab-pick.cursed .ab-pick-bg { background: radial-gradient(70% 60% at 50% 45%, rgba(200,30,90,.45), rgba(10,2,8,.92) 70%); }
.ab-pick-bg::after { content: ''; position: absolute; inset: 0; background: var(--px-stars) 0 0 / 128px; opacity: .4; animation: abDrift 80s linear infinite; }
.ab-pick-head { text-align: center; }
.ab-pick-k { font-size: 12px; letter-spacing: .5em; color: #c8a8ff; }
.ab-pick-head h2 { margin: 2px 0; font-size: 34px; font-weight: normal; letter-spacing: .25em; background: linear-gradient(180deg, #fff, #e0c8ff 50%, #9a5aff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #07040f) drop-shadow(0 0 16px rgba(160,90,255,.7)); animation: abTitle .5s ease-out; }
@keyframes abTitle { from { transform: scale(1.4); opacity: 0; letter-spacing: .6em; } }
.ab-cards { display: flex; gap: 18px; justify-content: center; align-items: stretch; flex-wrap: nowrap; perspective: 900px; max-width: 100%; }
.ab-card { --rc: #c9d3e3; --rg: #8a94a8; --sc: #b48cff; --i: 0; position: relative; width: 230px; min-height: 340px; cursor: pointer; padding: 3px;
  background: linear-gradient(160deg, var(--rc), color-mix(in srgb, var(--rc) 40%, #1a1030) 40%, var(--rg)); clip-path: var(--notch4);
  animation: abCardIn .6s cubic-bezier(.2,1.4,.4,1) backwards; animation-delay: calc(var(--i) * .12s + .1s); transition: transform .18s, filter .18s; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--rc) 50%, transparent)); }
@keyframes abCardIn { from { transform: rotateY(90deg) translateY(40px) scale(.8); opacity: 0; } }
.ab-card:hover { transform: translateY(-8px) scale(1.03); filter: drop-shadow(0 0 22px var(--rc)) brightness(1.08); }
.ab-card.chosen { animation: abChosen .52s ease-out forwards; }
@keyframes abChosen { 40% { transform: scale(1.12); filter: drop-shadow(0 0 40px var(--rc)) brightness(1.5); } to { transform: scale(1.05) translateY(-20px); filter: drop-shadow(0 0 60px var(--rc)) brightness(2); opacity: 0; } }
.ab-card.fade { animation: abFade .4s forwards; }
@keyframes abFade { to { transform: translateY(30px) scale(.9); opacity: 0; } }
.ab-card-in { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 14px 14px; overflow: hidden;
  background: radial-gradient(90% 50% at 50% 26%, color-mix(in srgb, var(--sc) 30%, transparent), transparent 70%), linear-gradient(180deg, #1c1236, #0d0819); clip-path: var(--notch4); }
.ab-card-in::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%) -200% 0 / 200% 100% no-repeat; animation: abShine 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .4s + .8s); pointer-events: none; }
@keyframes abShine { 0%, 60% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.ab-card.r-legend .ab-card-in::after, .ab-card.r-epic .ab-card-in::after { content: ''; position: absolute; inset: 0; background: var(--px-stars) 0 0 / 96px; opacity: .45; pointer-events: none; animation: abDrift 40s linear infinite; }
.ab-ribbon { position: absolute; left: 0; top: 0; padding: 3px 12px 3px 8px; font-size: 12px; color: #0c0818; background: var(--sc); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); letter-spacing: .1em; }
.ab-rar { position: absolute; right: 8px; top: 5px; font-size: 12px; color: var(--rc); text-shadow: 0 0 8px var(--rc); letter-spacing: .1em; }
.ab-emblem { position: relative; width: 104px; height: 104px; display: grid; place-items: center; margin: 4px 0 2px; }
.ab-emblem img { position: relative; z-index: 1; width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 10px var(--rc)); animation: abBob 2.4s ease-in-out infinite; }
@keyframes abBob { 50% { transform: translateY(-4px); } }
.ab-rays { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 55%, transparent) 0 8deg, transparent 8deg 30deg); mask: radial-gradient(circle, #000 25%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); animation: abSpin 9s linear infinite; }
.ab-cname { font-size: 21px; color: #fff; text-shadow: 0 2px 0 #07040f, 0 0 12px var(--rc); letter-spacing: .08em; text-align: center; }
.ab-clv { font-size: 12px; color: #ffd84a; } .ab-clv b { color: #fff; }
.ab-new { padding: 0 8px; color: #0c0818; background: linear-gradient(90deg, #7dff8a, #5ad1ff); clip-path: var(--notch); }
.ab-card.curse .ab-new { background: linear-gradient(90deg, #ff4f8b, #b06aff); color: #fff; }
.ab-cdesc { flex: 1; font-size: 13px; line-height: 1.65; color: #e6defa; text-align: center; padding: 4px 2px; }
.ab-prog { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; font-size: 11px; padding: 5px 6px; width: 100%; background: rgba(0,0,0,.35); clip-path: var(--notch); }
.ab-pips { display: inline-flex; gap: 2px; } .ab-pips i { width: 8px; height: 8px; background: #2c2152; box-shadow: inset 0 0 0 1px #4a3a7a; transform: rotate(45deg); }
.ab-pips i.on { background: var(--sc); box-shadow: 0 0 5px var(--sc); } .ab-pips i.new { background: #fff; box-shadow: 0 0 6px #fff; animation: abPulse 1s infinite; }
.ab-act { color: #ffd84a; text-shadow: 0 0 6px rgba(255,216,74,.7); }
.ab-curse-rw { font-size: 11px; color: #ff9ac0; text-align: center; padding: 4px 6px; background: rgba(255,79,139,.12); clip-path: var(--notch); }
.ab-flav { font-size: 11px; color: #8a80b0; font-style: italic; text-align: center; }
.ab-key { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); z-index: 2; min-width: 22px; padding: 0 6px; font-size: 12px; line-height: 20px; text-align: center; color: #0c0818; background: var(--rc); clip-path: var(--notch); }
.ab-key:empty { display: none; }
.ab-card.curse { --sc: #ff4f8b; animation-name: abCardIn, abCurse; animation-duration: .6s, 2s; animation-iteration-count: 1, infinite; animation-delay: calc(var(--i) * .12s + .1s), 1s; }
@keyframes abCurse { 50% { filter: drop-shadow(0 0 22px #ff2a6a) hue-rotate(-10deg); } }
.ab-foot { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ab-foot-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; color: #c8a8ff; } .ab-foot-mid span { display: inline-flex; align-items: center; gap: 4px; } .ab-foot-mid img { image-rendering: pixelated; }

/* ---------- 运行 HUD ---------- */
.ab-hud { position: absolute; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%); display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; max-width: min(560px, 46vw); pointer-events: auto; z-index: 4; }
.ab-hud-top { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; background: linear-gradient(180deg, rgba(40,22,74,.92), rgba(14,9,28,.92)); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px rgba(180,140,255,.55), 0 0 18px rgba(140,70,255,.35); clip-path: var(--notch); white-space: nowrap; }
.ab-hud-fl small { font-size: 11px; color: #a898d0; } .ab-hud-fl b { font-size: 20px; margin: 0 2px; color: #fff; text-shadow: 0 0 8px #b48cff; }
.ab-hud-k { --c: #c9d3e3; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--c); } .ab-hud-k img { image-rendering: pixelated; }
.ab-hud-t { font-size: 13px; color: #8ad8ff; font-variant-numeric: tabular-nums; }
.ab-hud-s { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: #c8a8ff; } .ab-hud-s img { image-rendering: pixelated; }
.ab-hud-x { font: inherit; font-size: 12px; padding: 2px 8px; color: #ffd0d8; background: rgba(255,90,106,.18); border: 0; box-shadow: inset 0 0 0 1px rgba(255,90,106,.6); clip-path: var(--notch); cursor: pointer; }
.ab-hud-x:hover { background: rgba(255,90,106,.35); }
.ab-hud-boons { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; max-width: 100%; }
.ab-hud-boons:empty { display: none; }
.ab-hud-sch { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.ab-hud-chip { --c: #b48cff; display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; font-size: 11px; line-height: 16px; color: var(--c); background: rgba(10,6,22,.8); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); clip-path: var(--notch); }
.ab-hud-chip b { color: #fff; font-weight: normal; } .ab-hud-chip.on { background: color-mix(in srgb, var(--c) 25%, #0a0616); box-shadow: inset 0 0 0 1px var(--c), 0 0 8px var(--c); }

/* ---------- 商店 / 结算 ---------- */
.modal .box.ab-shopbox { width: min(560px, 94vw); }
.ab-shop-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .ab-shop-h h3 { margin: 0 !important; padding: 0 !important; } .ab-shop-h img { image-rendering: pixelated; }
.ab-shard { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 16px; color: #c8a8ff; background: rgba(180,140,255,.12); clip-path: var(--notch); }
.ab-shop { display: flex; flex-direction: column; gap: 6px; }
.ab-offer { --rc: #c9d3e3; display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 14%, #150f28), #120c22); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 45%, transparent); clip-path: var(--notch); }
.ab-offer.sold { opacity: .45; }
.ab-offer-ic { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(0,0,0,.3); clip-path: var(--notch); } .ab-offer-ic img { image-rendering: pixelated; }
.ab-offer .dim { font-size: 12px; line-height: 1.5; }
.modal .box.ab-resbox { width: min(560px, 94vw); }
.ab-res-h { display: flex; align-items: center; gap: 12px; } .ab-res-h h3 { margin: 0 0 4px !important; }
.ab-result { --c: #7dff8a; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ab-res-k { font-size: 14px; letter-spacing: .4em; color: var(--c); text-shadow: 0 0 10px var(--c); }
.ab-res-big { display: flex; align-items: baseline; gap: 6px; } .ab-res-big b { font-size: 64px; line-height: 1; background: linear-gradient(180deg, #fff, #d8b8ff 50%, #8a4aff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #07040f) drop-shadow(0 0 16px rgba(160,90,255,.6)); animation: abTitle .6s ease-out; } .ab-res-big small { color: #a898d0; }
.ab-newbest { color: #ffd84a; letter-spacing: .3em; text-shadow: 0 0 10px #ffb84a; animation: abPulse 1.2s infinite; }
.ab-res-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.ab-res-sets { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.ab-res-rw { width: 100%; text-align: left; }

/* ---------- 手机 ---------- */
@media (max-width: 760px), (pointer: coarse) {
  .ab-hero { grid-template-columns: 80px 1fr; padding: 12px; gap: 10px; }
  .ab-hero .ab-vortex { width: 76px; height: 76px; }
  .ab-hero-r { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .ab-title { font-size: 24px; } .ab-sub { font-size: 12px; }
  .ab-mods { gap: 6px; } .ab-mod { padding: 6px 8px 8px 44px; min-height: 0; } .ab-mod-ic { left: 4px; transform: translateY(-50%) scale(.8); } .ab-mod-n { font-size: 14px; } .ab-mod-t { font-size: 11px; }
  .ab-row { grid-template-columns: 40px 28px 1fr 52px 46px; gap: 6px; padding: 5px 8px; } .ab-av { width: 28px; height: 28px; }
  .ab-pick { justify-content: flex-start; gap: 10px; padding: calc(10px + var(--safe-t)) 10px calc(10px + var(--safe-b)); overflow-y: auto; }
  .ab-pick-head h2 { font-size: 24px; }
  .ab-cards { gap: 8px; }
  .ab-card { width: min(31vw, 210px); min-height: 0; }
  .ab-card-in { padding: 24px 8px 10px; gap: 4px; }
  .ab-emblem { width: 64px; height: 64px; } .ab-emblem img { width: 44px; height: 44px; }
  .ab-cname { font-size: 15px; } .ab-cdesc { font-size: 11px; line-height: 1.5; } .ab-flav { display: none; }
  .ab-prog { font-size: 10px; gap: 3px; }
  .ab-hud { max-width: 40vw; gap: 2px; }
  .ab-hud-top { gap: 5px; padding: 2px 4px 2px 6px; } .ab-hud-fl b { font-size: 16px; } .ab-hud-k { display: none; } .ab-hud-t, .ab-hud-s { font-size: 11px; }
  .ab-hud-sch { display: none; }
  .ab-res-stats { grid-template-columns: repeat(2, 1fr); } .ab-res-big b { font-size: 48px; }
}
@media (max-width: 520px) {
  .ab-mods { grid-template-columns: 1fr; }
  .ab-cards { flex-direction: column; align-items: center; }
  .ab-card { width: 92vw; }
  .ab-card-in { display: grid; grid-template-columns: 64px 1fr; grid-auto-flow: row; text-align: left; align-items: center; padding: 22px 10px 10px; }
  .ab-emblem { grid-row: span 3; }
  .ab-cdesc, .ab-prog, .ab-curse-rw { grid-column: 1 / -1; text-align: left; }
  .ab-cname, .ab-clv { justify-self: start; text-align: left; }
  .ab-hud { left: 8px; transform: none; top: 52%; bottom: auto; flex-direction: column; align-items: flex-start; max-width: 62vw; }
  .ab-hud-boons { justify-content: flex-start; }
}
