* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d1030; color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; user-select: none; -webkit-user-select: none; touch-action: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }
#app { position: fixed; inset: 0; max-width: 560px; margin: 0 auto; overflow: hidden; }
.screen { position: absolute; inset: 0; }
:root {
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px));
  --content-top: calc(var(--safe-top) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --stroke: #1b1633;
  --yellow: #ffc933; --yellow2: #ff9f1a; --purple: #6f4fd8; --purple2: #4a33a8; --panel: #2b2748; --panel2: #36315a;
}
.stroke { text-shadow: 0 2px 0 var(--stroke), 2px 0 0 var(--stroke), -2px 0 0 var(--stroke), 0 -2px 0 var(--stroke), 1px 1px 0 var(--stroke), -1px -1px 0 var(--stroke), 1px -1px 0 var(--stroke), -1px 1px 0 var(--stroke); }

/* ---------- 按钮 ---------- */
.btn { position: relative; border: 3px solid var(--stroke); border-radius: 12px; padding: 8px 16px; font-size: 16px; font-weight: 900; color: #fff; cursor: pointer;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.25), 0 3px 0 var(--stroke); transition: transform .06s; letter-spacing: 1px; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 1px 0 var(--stroke); }
.btn:disabled { filter: grayscale(.9) brightness(.8); }
.btn-yellow { background: linear-gradient(#ffe066, var(--yellow) 45%, var(--yellow2)); color: #3b2300; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.btn-blue { background: linear-gradient(#6fd0ff, #2f9be6 55%, #1f74c2); text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.btn-green { background: linear-gradient(#8ff08a, #3fc26a 55%, #22994c); text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.btn-red { background: linear-gradient(#ff8a8a, #e84a5f 55%, #b8243c); text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.btn-purple { background: linear-gradient(#a58bff, var(--purple) 55%, var(--purple2)); text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.btn-gray { background: linear-gradient(#9aa0b5, #6c7189 55%, #4d5169); }
.btn-xl { font-size: 26px; padding: 12px 40px; border-radius: 16px; }
.btn-sm { font-size: 13px; padding: 5px 10px; border-radius: 9px; border-width: 2px; }
.dot-red::after { content: '!'; position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: #ff3b4e; border: 2px solid #fff; color: #fff;
  font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; }

/* ---------- 启动页 ---------- */
.boot { background: linear-gradient(#3aa0ff, #7fd0ff 55%, #ffd89a); display: flex; flex-direction: column; align-items: center; }
.boot-sky { position: absolute; inset: 0; background:
  radial-gradient(circle at 20% 70%, rgba(255,255,255,.8) 0 40px, transparent 41px), radial-gradient(circle at 30% 72%, rgba(255,255,255,.8) 0 55px, transparent 56px),
  radial-gradient(circle at 80% 30%, rgba(255,255,255,.6) 0 35px, transparent 36px), radial-gradient(circle at 88% 32%, rgba(255,255,255,.6) 0 45px, transparent 46px); }
.boot-logo { position: relative; margin-top: calc(var(--content-top) + 60px); text-align: center; transform: rotate(-6deg); }
.boot-logo span { display: block; font-size: 64px; font-weight: 900; color: #ffd83a; letter-spacing: 4px;
  -webkit-text-stroke: 3px #1b1633; text-shadow: 0 6px 0 #1b1633, 0 10px 18px rgba(0,0,0,.35); font-style: italic; }
.boot-logo small { font-size: 16px; font-weight: 900; color: #fff; letter-spacing: 6px; text-shadow: 0 2px 0 #1b1633; }
#boot-plane { position: relative; width: 80%; max-width: 360px; margin-top: 10px; }
.boot-bottom { position: absolute; bottom: calc(var(--safe-bottom) + 16px); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 20px; }
#boot-status { font-weight: 900; text-shadow: 0 2px 0 var(--stroke); }
.boot-bar { width: 70%; height: 12px; background: rgba(0,0,0,.35); border: 2px solid var(--stroke); border-radius: 8px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffe066, #ff9f1a); transition: width .2s; }
.boot-agree { font-size: 13px; font-weight: 700; text-shadow: 0 1px 0 var(--stroke); display: flex; align-items: center; gap: 6px; }
.boot-agree input { width: 18px; height: 18px; accent-color: #3fc26a; }
.boot-tip { font-size: 11px; line-height: 1.5; text-align: center; opacity: .9; text-shadow: 0 1px 0 var(--stroke); }

/* ---------- 大厅 ---------- */
#lobby { background: radial-gradient(ellipse at 50% 35%, #2e63d6 0%, #1a2e8a 45%, #0e1446 80%); display: flex; flex-direction: column; }
.topbar { padding: calc(var(--content-top) + 8px) 10px 6px; display: flex; align-items: center; gap: 8px; }
.avatar { width: 52px; height: 52px; border-radius: 10px; border: 3px solid var(--stroke); background: linear-gradient(#ffcf6b, #f59a23); display: flex; align-items: center;
  justify-content: center; font-size: 30px; position: relative; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .lv { position: absolute; bottom: -2px; left: -2px; background: #7b4fe0; font-size: 11px; font-weight: 900; padding: 0 5px; border-radius: 6px; border: 2px solid var(--stroke); }
.pinfo { flex: 1; min-width: 0; }
.pinfo .name { font-weight: 900; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinfo .expbar { height: 8px; border-radius: 5px; background: rgba(0,0,0,.4); border: 2px solid var(--stroke); margin: 3px 0; overflow: hidden; }
.pinfo .expbar i { display: block; height: 100%; background: linear-gradient(90deg, #7ef0ff, #3ab7ff); }
.pinfo .power { font-size: 12px; font-weight: 900; color: #ffd24a; }
.res { display: flex; gap: 5px; }
.res .r { display: flex; align-items: center; background: rgba(0,0,0,.45); border-radius: 14px; padding: 2px 8px 2px 2px; font-size: 13px; font-weight: 900; border: 2px solid rgba(0,0,0,.4); }
.res .r b { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; margin-right: 2px; }
.res .r .plus { color: #7dff7d; margin-left: 3px; font-size: 14px; }
.lobby-body { flex: 1; position: relative; overflow: hidden; }
.page { position: absolute; inset: 0; overflow-y: auto; padding: 8px 12px 20px; }
.page::-webkit-scrollbar { display: none; }
.navbar { display: flex; gap: 4px; padding: 6px 6px calc(var(--safe-bottom) + 6px); background: linear-gradient(#2a2440, #17132b); border-top: 3px solid var(--stroke); }
.nav { flex: 1; height: 64px; border: 3px solid var(--stroke); border-radius: 10px; background: linear-gradient(#3b3560, #29234a); display: flex; flex-direction: column; align-items: center;
  justify-content: center; font-size: 26px; position: relative; cursor: pointer; }
.nav span { font-size: 12px; font-weight: 900; margin-top: 2px; }
.nav.on { flex: 1.5; background: linear-gradient(#6f5a2a, #3a2c10); border-color: #ffc933; box-shadow: 0 0 0 2px var(--stroke), inset 0 0 18px rgba(255,201,51,.35); }

/* 战役页 */
.campaign { display: flex; flex-direction: column; align-items: center; height: 100%; padding-top: 4px; }
.side-btns { position: absolute; left: 10px; top: 8px; display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.side-btns.right { left: auto; right: 10px; }
.sbtn { width: 50px; height: 50px; border-radius: 12px; border: 3px solid var(--stroke); background: linear-gradient(#ff6b7d, #d63650); display: flex; align-items: center;
  justify-content: center; font-size: 24px; position: relative; cursor: pointer; box-shadow: 0 3px 0 var(--stroke); }
.sbtn.blue { background: linear-gradient(#6fd0ff, #2f7fe6); }
.sbtn.green { background: linear-gradient(#8ff08a, #2faa5a); }
.sbtn.purple { background: linear-gradient(#b89bff, #6f4fd8); }
.sbtn small { position: absolute; bottom: -14px; font-size: 11px; font-weight: 900; white-space: nowrap; text-shadow: 0 1px 0 var(--stroke); }
.ch-title { font-size: 30px; font-weight: 900; margin-top: 6px; background: linear-gradient(90deg, transparent, rgba(0,0,0,.4) 20%, rgba(0,0,0,.4) 80%, transparent); padding: 2px 40px; }
.ch-best { color: #ffd24a; font-weight: 900; font-size: 16px; margin-top: 2px; }
.ch-view { position: relative; width: 100%; flex: 1; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.ch-view canvas { width: min(78vw, 320px); height: min(78vw, 320px); border-radius: 50%; }
.ch-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 34px; color: #ffd24a; cursor: pointer; padding: 10px; text-shadow: 0 3px 0 var(--stroke); }
.ch-arrow.l { left: 4px; } .ch-arrow.r { right: 4px; }
.ch-arrow.disabled { opacity: .25; }
.ch-lock { position: absolute; font-size: 18px; font-weight: 900; background: rgba(0,0,0,.6); padding: 8px 16px; border-radius: 10px; }
.ch-reward { margin: 6px 0; background: linear-gradient(#5ad0ff, #2c86d8); border: 3px solid var(--stroke); border-radius: 14px; padding: 4px 20px; font-weight: 900; font-size: 13px; }
.ch-power { font-size: 12px; font-weight: 700; opacity: .85; margin-bottom: 4px; }
.ch-power.warn { color: #ff8a8a; opacity: 1; }
.start-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.btn-start { width: 170px; height: 86px; font-size: 30px; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 18px; }
.btn-start small { font-size: 15px; margin-top: 4px; }
.btn-side { width: 90px; height: 64px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; padding: 0; }
.btn-side span { font-size: 13px; }

/* 通用面板 */
.panel { background: var(--panel); border: 3px solid var(--stroke); border-radius: 14px; padding: 10px; margin-bottom: 10px; box-shadow: 0 3px 0 var(--stroke); }
.panel-title { font-weight: 900; font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.page-title { font-size: 20px; font-weight: 900; margin: 2px 0 10px; display: flex; align-items: center; justify-content: space-between; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.muted { opacity: .7; font-size: 12px; }
.tag { display: inline-block; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 900; background: rgba(0,0,0,.35); }
.empty { text-align: center; opacity: .6; padding: 30px 0; font-weight: 700; }
.list-item { background: var(--panel2); border: 2px solid var(--stroke); border-radius: 12px; padding: 10px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.prog { height: 10px; background: rgba(0,0,0,.4); border-radius: 6px; overflow: hidden; border: 2px solid var(--stroke); }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, #8ff08a, #3fc26a); }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs .t { flex: 1; text-align: center; padding: 7px 0; border-radius: 10px; font-weight: 900; background: rgba(0,0,0,.35); border: 2px solid var(--stroke); cursor: pointer; }
.tabs .t.on { background: linear-gradient(#ffe066, #ff9f1a); color: #3b2300; }

/* 装备页 */
.equip-stage { position: relative; height: 390px; background: radial-gradient(circle at 50% 55%, #3fb0ff 0, #1c5fd0 45%, #103a8f 75%); border: 3px solid var(--stroke); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.equip-stage canvas { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); }
.eslot { position: absolute; width: 70px; height: 70px; border-radius: 12px; border: 3px solid rgba(255,255,255,.35); background: rgba(10,40,110,.6); display: flex; align-items: center;
  justify-content: center; font-size: 30px; cursor: pointer; }
.eslot.filled { border-color: var(--qc, #fff); background: linear-gradient(rgba(255,255,255,.15), rgba(0,0,0,.3)); box-shadow: 0 0 12px var(--qc, transparent); }
.eslot .elv { position: absolute; top: 2px; left: 4px; font-size: 10px; font-weight: 900; }
.eslot .ename { position: absolute; bottom: -1px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 900; background: rgba(0,0,0,.5); border-radius: 0 0 9px 9px; }
.estats { position: absolute; bottom: 58px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.estats span { background: rgba(0,0,0,.5); padding: 3px 12px; border-radius: 14px; font-weight: 900; font-size: 14px; }
.eswitch { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px; }
.egrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.eitem { aspect-ratio: 1; border-radius: 10px; border: 3px solid var(--qc); background: linear-gradient(color-mix(in srgb, var(--qc) 35%, #2b2748), #211d3a); display: flex;
  align-items: center; justify-content: center; font-size: 26px; position: relative; cursor: pointer; }
.eitem .elv { position: absolute; top: 1px; left: 3px; font-size: 10px; font-weight: 900; }
.eitem .worn { position: absolute; top: 1px; right: 3px; font-size: 10px; color: #7dff7d; font-weight: 900; }
.eitem .lock { position: absolute; bottom: 0; right: 2px; font-size: 11px; }
.eitem.sel { outline: 3px solid #fff; }

/* 科技页 */
.tech-core { height: 210px; display: flex; align-items: center; justify-content: center; position: relative; }
.tech-orb { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff 0, #9fe8ff 15%, #3a8dff 45%, #2a1a8a 80%);
  box-shadow: 0 0 40px #4ab8ff, inset 0 0 30px rgba(255,255,255,.4); animation: orb 3s ease-in-out infinite; display: flex; align-items: center; justify-content: center; font-size: 56px; }
@keyframes orb { 50% { transform: scale(1.06); box-shadow: 0 0 60px #7fd0ff, inset 0 0 30px rgba(255,255,255,.5); } }
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tnode { background: var(--panel2); border: 2px solid var(--stroke); border-radius: 10px; padding: 6px 2px; text-align: center; position: relative; }
.tnode .ic { font-size: 24px; }
.tnode .nm { font-size: 11px; font-weight: 900; }
.tnode .lv { font-size: 10px; color: #ffd24a; font-weight: 900; }
.tnode.off { opacity: .45; }
.tnode.flash { animation: tflash 1s; }
@keyframes tflash { 0%, 60% { box-shadow: 0 0 0 3px #ffd24a, 0 0 20px #ffd24a; transform: scale(1.1); } }

/* 商店 */
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sitem { background: linear-gradient(#4d3f8a, #2e2657); border: 3px solid var(--stroke); border-radius: 12px; padding: 8px 4px; text-align: center; position: relative; cursor: pointer; }
.sitem .ic { font-size: 34px; }
.sitem .nm { font-weight: 900; font-size: 13px; }
.sitem .pr { margin-top: 4px; background: linear-gradient(#ffe066, #ff9f1a); color: #3b2300; border-radius: 8px; font-weight: 900; font-size: 13px; padding: 2px 0; }
.sitem .badge { position: absolute; top: -6px; left: -4px; background: #ff3b4e; font-size: 10px; font-weight: 900; padding: 1px 5px; border-radius: 6px; border: 2px solid var(--stroke); }

/* 排行 */
.rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel2); margin-bottom: 6px; border: 2px solid var(--stroke); }
.rank-row .no { width: 34px; text-align: center; font-weight: 900; font-size: 18px; }
.rank-row.me { background: linear-gradient(#6f5a2a, #3a2c10); border-color: #ffc933; }

/* ---------- 弹窗 ---------- */
#modal-root .mask { position: fixed; inset: 0; background: rgba(5,5,20,.7); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadein .15s; }
@keyframes fadein { from { opacity: 0; } }
.modal { width: 100%; max-width: 420px; max-height: 86vh; display: flex; flex-direction: column; background: #3a3456; border: 3px solid var(--stroke); border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 0 var(--stroke), 0 10px 40px rgba(0,0,0,.5); animation: pop .18s cubic-bezier(.3,1.6,.6,1); }
@keyframes pop { from { transform: scale(.8); } }
.modal-head { position: relative; padding: 10px; text-align: center; font-size: 20px; font-weight: 900;
  background: repeating-linear-gradient(135deg, #7b5ce6 0 10px, #7054d8 10px 20px); border-bottom: 3px solid var(--stroke); }
.modal-close { position: absolute; right: 8px; top: 6px; width: 34px; height: 34px; border-radius: 8px; border: 3px solid var(--stroke); background: linear-gradient(#ff6b7d, #d63650);
  color: #fff; font-size: 20px; font-weight: 900; line-height: 1; cursor: pointer; }
.modal-body { padding: 12px; overflow-y: auto; }
.modal-foot { padding: 10px; display: flex; gap: 10px; justify-content: center; }
.input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--stroke); background: #d9d4c7; color: #3b2a10; font-size: 16px; font-weight: 900; text-align: center; outline: none; user-select: text; -webkit-user-select: text; }
.kv { display: flex; justify-content: space-between; align-items: center; background: #efe9da; color: #6b3f10; font-weight: 900; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.rewards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rw { width: 68px; height: 76px; border-radius: 10px; border: 3px solid var(--qc, var(--stroke)); background: linear-gradient(#4d3f8a, #2e2657); display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 28px; animation: pop .3s backwards; }
.rw span { font-size: 11px; font-weight: 900; }
.rw { position: relative; padding: 0 3px; box-sizing: border-box; }
/* 带名称的奖励：名称最多两行不溢出，数量放右下角角标 */
.rw .rw-name { max-width: 100%; font-size: 10px; line-height: 1.15; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.rw .rw-n { position: absolute; right: -4px; bottom: -6px; font-size: 11px; font-weight: 900; color: #fff; background: #1b1633; border: 2px solid #fff3; border-radius: 8px; padding: 0 5px; line-height: 16px; }

#toast-root { position: fixed; left: 0; right: 0; top: 40%; z-index: 99; display: flex; flex-direction: column; align-items: center; pointer-events: none; gap: 6px; }
.toast { background: rgba(10,10,30,.88); border: 2px solid rgba(255,255,255,.2); padding: 10px 18px; border-radius: 12px; font-weight: 900; max-width: 80%; text-align: center; animation: toast 2s forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-20px); } }

/* ---------- 战斗 ---------- */
.battle { background: #000; touch-action: none; }
#game { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
#hud { position: absolute; inset: 0; pointer-events: none; }
#hud .top { position: absolute; top: calc(var(--content-top) + 6px); left: 8px; right: 8px; display: flex; align-items: flex-start; gap: 8px; }
.hud-pause { pointer-events: auto; width: 42px; height: 42px; border-radius: 10px; border: 3px solid var(--stroke); background: linear-gradient(#5aa8ff, #2a6fe0); font-size: 18px; font-weight: 900;
  color: #fff; display: flex; align-items: center; justify-content: center; }
.hud-mid { flex: 1; display: flex; flex-direction: column; align-items: center; }
.hud-wave { background: rgba(10,10,30,.7); padding: 2px 18px; border-radius: 8px; font-weight: 900; font-size: 15px; transform: skewX(-8deg); }
.hud-lv { width: 100%; display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.hud-lv b { font-size: 16px; font-weight: 900; font-style: italic; }
.hud-exp { flex: 1; height: 14px; background: rgba(10,10,30,.75); border: 2px solid #111; border-radius: 3px; overflow: hidden; transform: skewX(-12deg); }
.hud-exp i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #aef6ff, #29d3e0); transition: width .35s ease-out; }
.hud-right { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.hud-right div { background: rgba(10,10,30,.7); padding: 2px 10px 2px 6px; border-radius: 8px; font-weight: 900; font-size: 14px; min-width: 84px; display: flex; gap: 6px; }
.hud-speed { align-self: flex-end; margin-top: 2px; background: rgba(10,10,30,.7); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 3px 12px; font-weight: 900; font-size: 14px; pointer-events: auto; }
.hud-speed.on { background: #ffb347; color: #3a1a00; border-color: #ffd28a; }
.hud-ult { pointer-events: auto; position: absolute; right: 14px; bottom: calc(var(--safe-bottom) + 24px); width: 70px; height: 70px; border-radius: 50%; border: 4px solid var(--stroke);
  background: conic-gradient(#ffd24a var(--p, 0%), rgba(20,20,40,.8) 0); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.hud-ult.ready { animation: ultready .8s infinite alternate; }
@keyframes ultready { to { box-shadow: 0 0 24px #ffd24a; transform: scale(1.06); } }
.hud-boss { position: absolute; top: calc(var(--content-top) + 92px); left: 30px; right: 30px; text-align: center; }
.hud-boss .bn { font-weight: 900; font-size: 14px; }
.hud-boss .bb { height: 12px; border: 2px solid #111; background: rgba(0,0,0,.6); border-radius: 6px; overflow: hidden; }
.hud-boss .bb i { display: block; height: 100%; background: linear-gradient(90deg, #ff5a6e, #ff2d46); transition: width .1s; }

#overlay { position: absolute; inset: 0; pointer-events: none; }
#overlay > * { pointer-events: auto; }
.ov { position: absolute; inset: 0; background: rgba(8,8,25,.72); display: flex; flex-direction: column; align-items: center; padding: calc(var(--content-top) + 20px) 10px calc(var(--safe-bottom) + 20px); animation: fadein .2s; }
.ov-title { margin: 6px auto 12px; padding: 6px 40px; font-size: 26px; font-weight: 900; background: #111; border: 3px solid #fff; box-shadow: -4px 0 0 #3af2ff, 4px 0 0 #ff3af2; letter-spacing: 4px; }
.ov-title.gold { border-color: #ffd24a; color: #fff; box-shadow: -4px 0 0 #ffd24a, 4px 0 0 #ffb52e; }
.skill-slots { display: flex; justify-content: space-between; width: 100%; max-width: 440px; gap: 6px; margin-bottom: 10px; }
.skill-slots .grp { display: flex; gap: 2px; background: rgba(0,0,0,.5); padding: 3px; border-radius: 6px; }
.skill-slots .s { width: 24px; height: 24px; border-radius: 4px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 16px; position: relative; }
.skill-slots .s.on { background: linear-gradient(#ffcf6b, #e38a1d); }
.skill-slots .s.evo { background: linear-gradient(#ff8af2, #9a3ae0); }
.skill-slots .s i { position: absolute; bottom: -3px; right: -2px; font-size: 9px; font-style: normal; font-weight: 900; }
.cards { display: flex; gap: 8px; justify-content: center; width: 100%; max-width: 460px; }
.card { flex: 1; max-width: 150px; min-height: 290px; background: #1e1b2e; border: 3px solid #111; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  animation: cardin .35s backwards; position: relative; }
.card:nth-child(2) { animation-delay: .07s; } .card:nth-child(3) { animation-delay: .14s; }
@keyframes cardin { from { transform: translateY(40px) scale(.8); opacity: 0; } }
.card:active { transform: scale(.97); }
.card .cn { background: #2b2838; margin: 6px 6px 0; border-radius: 4px; text-align: center; font-weight: 900; font-size: 15px; padding: 4px 0; }
.card .ci { height: 96px; margin: 6px; border-radius: 6px; background: linear-gradient(#ffd98a, #f3b54a); display: flex; align-items: center; justify-content: center; font-size: 50px; }
.card .dots { text-align: center; background: #2b2838; margin: 0 6px; font-size: 11px; letter-spacing: 2px; padding: 2px 0; }
.card .dots .f { color: #ffd24a; } .card .dots .e { color: #666; }
.card .cd { flex: 1; padding: 8px; font-size: 13px; font-weight: 700; line-height: 1.45; }
.card .ce { text-align: center; padding: 6px; font-size: 12px; font-weight: 900; }
.card .ce span { background: #2b2838; padding: 3px 10px; border-radius: 10px; }
.card .new { position: absolute; top: 0; right: 0; background: #e8394e; font-size: 12px; font-weight: 900; padding: 1px 8px; border-radius: 0 0 0 8px; }
.card.gold { border-color: #ffe27a; box-shadow: 0 0 18px #ffc933, inset 0 0 0 2px #ffb52e; }
.card.gold .ci { background: linear-gradient(#ffe27a, #ffb52e); }
.card.gold .cn { background: #4a3710; color: #ffe27a; }
.ov-tip { margin-top: 14px; font-weight: 900; font-size: 15px; }
.ov-tip em { color: #4ad8ff; font-style: normal; }
.ov-actions { margin-top: 14px; display: flex; gap: 10px; }
.chest-list { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 360px; }
.chest-row { background: #1e1b2e; border: 2px solid #ffd24a; border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; animation: cardin .35s backwards; }
.chest-row .ic { font-size: 30px; }
.supply { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; }
.supply .opt { background: #1e1b2e; border: 3px solid #111; border-radius: 12px; padding: 12px; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.supply .opt .ic { font-size: 40px; }
.supply .opt.disabled { opacity: .45; }
.result-box { background: #2b2748; border: 3px solid var(--stroke); border-radius: 16px; padding: 14px; width: 100%; max-width: 380px; text-align: center; }
.result-big { font-size: 40px; font-weight: 900; margin: 6px 0; }
.banner { position: absolute; left: 0; right: 0; top: 38%; text-align: center; pointer-events: none; animation: banner 2s forwards; }
.banner div { display: inline-block; max-width: 100%; box-sizing: border-box; white-space: nowrap; padding: 8px clamp(24px, 10vw, 60px); font-size: clamp(20px, 7vw, 30px); font-weight: 900; background: linear-gradient(90deg, transparent, rgba(0,0,0,.75) 20%, rgba(0,0,0,.75) 80%, transparent); }
.banner.warn div { color: #ff4a5e; background: linear-gradient(90deg, transparent, rgba(80,0,10,.85) 20%, rgba(80,0,10,.85) 80%, transparent); font-size: clamp(20px, 6.6vw, 28px); letter-spacing: 3px; }
@keyframes banner { 0% { opacity: 0; transform: scaleY(0); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.mode-row { display: flex; gap: 6px; margin-bottom: 8px; }
.eitem.glow, .eslot.filled.glow { animation: eglow 1.6s ease-in-out infinite; }
@keyframes eglow { 50% { box-shadow: 0 0 16px var(--qc), inset 0 0 12px var(--qc); } }
.side-btns { gap: 18px; }
.ch-arrow { top: auto; bottom: 0; transform: none; z-index: 3; }
.ch-arrow.l { left: 20%; } .ch-arrow.r { right: 20%; }
.side-btns .sbtn { width: 46px; height: 46px; font-size: 22px; }

.ad-cover { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; }
.ad-video { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ad-tip { position: absolute; top: calc(var(--content-top) + 12px); right: 12px; background: rgba(0,0,0,.6); padding: 6px 12px; border-radius: 16px; font-weight: 900; font-size: 14px; }
.ad-done { position: absolute; bottom: calc(var(--safe-bottom) + 40px); left: 50%; transform: translateX(-50%); font-size: 20px; padding: 12px 40px; }
.ad-more { position: absolute; bottom: calc(var(--safe-bottom) + 110px); left: 50%; transform: translateX(-50%); }

/* ---------- 触控尺寸优化：小按钮放大 ---------- */
.btn-sm { font-size: 15px; padding: 8px 14px; border-radius: 10px; border-width: 3px; min-height: 40px; }
.btn { min-height: 44px; }
.side-btns { gap: 20px; }
.side-btns .sbtn { width: 54px; height: 54px; font-size: 27px; border-radius: 14px; }
.sbtn small { font-size: 12.5px; bottom: -16px; }
.modal-close { width: 40px; height: 40px; font-size: 22px; top: 7px; }
.modal-head { font-size: 21px; padding: 12px 52px; }
.hud-pause { width: 50px; height: 50px; font-size: 20px; }
.hud-ult { width: 82px; height: 82px; font-size: 34px; }
.tabs .t { padding: 10px 0; font-size: 15px; }
.nav { height: 70px; font-size: 30px; }
.nav span { font-size: 13px; }
.res .r { font-size: 14px; padding: 3px 9px 3px 3px; }
.res .r b { width: 24px; height: 24px; font-size: 16px; }
.muted { font-size: 13px; }
.list-item { padding: 12px; }
.card .cd { font-size: 14px; }
.card .cn { font-size: 16px; }
.mode-row { width: 100%; max-width: 440px; padding: 0 8px; }
.mode-row .btn-sm { flex: 1; font-size: 15px; padding: 9px 4px; }
.kv { font-size: 15px; padding: 12px 14px; }
.rw { width: 74px; height: 82px; }
.eslot { width: 76px; height: 76px; }
.sitem .pr { font-size: 15px; padding: 5px 0; }
.ch-arrow { font-size: 42px; padding: 12px 16px; }

/* 一阶进化：两个方向不同颜色 */
.card.branch { border-color: var(--bc); box-shadow: 0 0 20px var(--bc), inset 0 0 0 2px var(--bc); }
.card.branch .ci { background: linear-gradient(color-mix(in srgb, var(--bc) 30%, #fff), var(--bc)); }
.card.branch .cn { background: color-mix(in srgb, var(--bc) 35%, #1e1b2e); color: #fff; }
.card.branch .ce span { background: var(--bc); color: #fff; }
.card.branch { animation: cardin .35s backwards, branchglow 1.4s ease-in-out infinite .4s; }
@keyframes branchglow { 50% { box-shadow: 0 0 34px var(--bc), inset 0 0 0 2px var(--bc); transform: translateY(-3px); } }

/* ---------- 新手引导 ---------- */
.guide-root { position: fixed; inset: 0; z-index: 300; }
.guide-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(5,5,20,.72), 0 0 0 3px #ffd24a, 0 0 22px #ffd24a; pointer-events: none; animation: holepulse 1.2s ease-in-out infinite; }
@keyframes holepulse { 50% { box-shadow: 0 0 0 9999px rgba(5,5,20,.72), 0 0 0 4px #fff3a0, 0 0 34px #ffd24a; } }
.guide-bubble { position: fixed; left: 16px; right: 16px; max-width: 420px; margin: 0 auto; background: #fff8e1; color: #3b2300; border: 3px solid var(--stroke); border-radius: 16px;
  padding: 14px; font-weight: 900; font-size: 16px; line-height: 1.6; box-shadow: 0 6px 0 var(--stroke); display: flex; flex-direction: column; gap: 10px; align-items: flex-end; animation: pop .25s; }
.guide-bubble .guide-text { align-self: stretch; }
.guide-hand { position: fixed; font-size: 40px; z-index: 301; pointer-events: none; animation: handtap 1s ease-in-out infinite; filter: drop-shadow(0 3px 0 rgba(0,0,0,.5)); }
@keyframes handtap { 50% { transform: translate(6px, 12px) scale(.9); } }
.guide-float { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.guide-hint { position: absolute; left: 50%; transform: translateX(-50%); background: rgba(10,10,30,.85); border: 2px solid #ffd24a; color: #fff; padding: 10px 18px; border-radius: 14px;
  font-weight: 900; font-size: 16px; text-align: center; max-width: 86%; white-space: pre-line; animation: fadein .3s; }
.guide-drag { position: absolute; left: 50%; top: 72%; font-size: 48px; animation: handdrag 2s ease-in-out infinite; }
@keyframes handdrag { 0%, 100% { transform: translateX(-120px); } 50% { transform: translateX(80px); } }
/* 未开放功能 */
.locked { filter: grayscale(.85) brightness(.75); position: relative; }
.lock-badge { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); background: #1b1633; color: #ffd24a; font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 2; }

/* ---------- 开箱动画 ---------- */
.skip-anim { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 900; }
.skip-anim input { width: 18px; height: 18px; accent-color: #3fc26a; }
.box-root { position: fixed; inset: 0; z-index: 250; background: radial-gradient(circle, #2a1d5a, #07061a 75%); display: flex; flex-direction: column; align-items: center; justify-content: center; animation: fadein .2s; }
.box-rays { position: absolute; width: 900px; height: 900px; left: 50%; top: 45%; transform: translate(-50%, -50%); opacity: .35;
  background: repeating-conic-gradient(var(--c) 0 8deg, transparent 8deg 24deg); border-radius: 50%; animation: rays 8s linear infinite;
  mask: radial-gradient(circle, #000 20%, transparent 60%); -webkit-mask: radial-gradient(circle, #000 20%, transparent 60%); }
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.box-chest { font-size: 120px; position: relative; animation: chestshake .12s ease-in-out infinite; filter: drop-shadow(0 0 30px #ffd24a); }
@keyframes chestshake { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.06); } }
.box-chest.burst { animation: chestburst .5s forwards; }
@keyframes chestburst { to { transform: scale(2.4); opacity: 0; filter: brightness(4) drop-shadow(0 0 80px #fff); } }
.box-cards { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 440px; padding: 0 12px; position: relative; }
.box-card { width: 76px; height: 104px; perspective: 600px; animation: cardin .35s backwards; }
.bc-inner { position: relative; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.box-card.flip .bc-inner { transform: rotateY(180deg); }
.bc-back, .bc-front { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; border: 3px solid var(--stroke); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bc-back { background: repeating-linear-gradient(45deg, #4a3a9a 0 8px, #3a2d80 8px 16px); font-size: 36px; font-weight: 900; color: #ffd24a; }
.bc-front { transform: rotateY(180deg); background: linear-gradient(color-mix(in srgb, var(--qc) 45%, #2b2748), #1e1b2e); border-color: var(--qc); box-shadow: 0 0 16px var(--qc); }
.bc-icon { font-size: 34px; }
.bc-name { font-size: 11px; font-weight: 900; text-align: center; padding: 0 2px; }
.bc-q { font-size: 11px; font-weight: 900; color: var(--qc); }
.box-card.q3.flip .bc-front, .box-card.q4.flip .bc-front { animation: legendcard 1s ease-in-out infinite; }
@keyframes legendcard { 50% { box-shadow: 0 0 34px var(--qc), 0 0 60px var(--qc); } }
.box-root.legend::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(255,210,74,.35), transparent 60%); animation: legendflash 1.2s ease-out; }
@keyframes legendflash { from { opacity: 1; } to { opacity: 0; } }
.box-foot { margin-top: 22px; text-align: center; position: relative; }
.box-skip { position: absolute; right: 16px; bottom: calc(var(--safe-bottom) + 24px); }

/* 开箱：按最高品质分档的特效 */
.box-root .box-chest { filter: drop-shadow(0 0 30px var(--c)); }
.box-root.tier0 .box-rays { opacity: .15; }
.box-root.tier2 .box-chest { animation-duration: .09s; }
.box-root.tier3 .box-rays { opacity: .6; animation-duration: 3s; }
.box-root.tier3 .box-chest, .box-root.tier4 .box-chest { animation-duration: .07s; filter: drop-shadow(0 0 50px var(--c)) brightness(1.3); }
.box-root.tier4 .box-rays { opacity: .75; animation-duration: 2s; }
.box-root.tier4.opened { animation: boxshake .5s ease-in-out 2; }
@keyframes boxshake { 0%, 100% { transform: none; } 20% { transform: translate(-8px, 4px); } 40% { transform: translate(7px, -5px); } 60% { transform: translate(-5px, -3px); } 80% { transform: translate(4px, 5px); } }
.box-root.tier3.legend::after { background: radial-gradient(circle, rgba(255,200,60,.55), transparent 65%); }
.box-root.tier4.legend::after { background: radial-gradient(circle, rgba(255,60,60,.6), transparent 65%); animation: legendflash .6s ease-out 2; }
.box-spark { position: fixed; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 10px currentColor; animation: spark .9s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.box-banner { position: absolute; top: 16%; left: 0; right: 0; text-align: center; font-size: 46px; font-weight: 900; letter-spacing: 6px; pointer-events: none;
  -webkit-text-stroke: 2px #1b1633; animation: bannerpop 2.2s ease-out forwards; }
.box-banner.b3 { color: #ffd24a; text-shadow: 0 0 20px #ffb52e, 0 4px 0 #1b1633; }
.box-banner.b4 { color: #ff5a5a; text-shadow: 0 0 24px #ff2d2d, 0 4px 0 #1b1633; }
@keyframes bannerpop { 0% { transform: scale(3); opacity: 0; } 15% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
/* 玩家升级动画 */
.lvup-root { position: fixed; inset: 0; z-index: 260; background: radial-gradient(circle, rgba(60,40,10,.92), rgba(5,5,20,.95) 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; animation: fadein .3s; }
.lvup-rays { position: absolute; width: 800px; height: 800px; left: 50%; top: 42%; transform: translate(-50%, -50%); background: repeating-conic-gradient(#ffd24a 0 6deg, transparent 6deg 20deg); opacity: .3; border-radius: 50%;
  animation: rays 6s linear infinite; -webkit-mask: radial-gradient(circle, #000 15%, transparent 60%); mask: radial-gradient(circle, #000 15%, transparent 60%); }
.lvup-title { position: relative; font-size: 44px; font-weight: 900; color: #ffd24a; letter-spacing: 8px; animation: bannerpop 1s ease-out forwards; animation-fill-mode: both; }
.lvup-title { animation: lvpop .6s cubic-bezier(.3,1.6,.6,1) both; }
@keyframes lvpop { from { transform: scale(2.5); opacity: 0; } }
.lvup-lv { position: relative; font-size: 34px; font-weight: 900; margin-top: 10px; animation: lvpop .6s .2s cubic-bezier(.3,1.6,.6,1) both; }
.lvup-old { opacity: .6; font-size: 26px; }
.lvup-open { position: relative; margin-top: 22px; background: rgba(0,0,0,.45); border: 2px solid #ffd24a; border-radius: 14px; padding: 12px 22px; text-align: center; font-weight: 900; animation: lvpop .6s .45s both; }
.lvup-item { font-size: 18px; color: #8fffa0; padding: 2px 0; }
.lock-badge { left: auto; right: -8px; top: -9px; bottom: auto; transform: none; font-size: 10px; padding: 1px 5px; border: 1px solid #ffd24a; }
.nav .lock-badge { right: 2px; top: 2px; }

/* ---------- 按钮 2.0：渐变 + 顶部高光 + 底部厚边 + 按下回弹 ---------- */
.btn { border-width: 2px; border-radius: 14px; box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.18), 0 4px 0 var(--stroke), 0 6px 12px rgba(0,0,0,.25);
  transition: transform .08s, box-shadow .08s, filter .15s; overflow: hidden; }
.btn::before { content: ''; position: absolute; left: 6%; right: 6%; top: 3px; height: 38%; border-radius: 10px 10px 40% 40%; background: linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,0)); pointer-events: none; }
.btn:active { transform: translateY(3px) scale(.98); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 0 var(--stroke); }
.btn:hover { filter: brightness(1.05); }
.btn-yellow { background: linear-gradient(180deg, #fff08a 0%, #ffcf3a 45%, #ff9f1a 100%); }
.btn-green { background: linear-gradient(180deg, #a6f59c 0%, #45c96e 50%, #1f9a4b 100%); }
.btn-blue { background: linear-gradient(180deg, #8fdcff 0%, #3aa6f0 50%, #1f6fc4 100%); }
.btn-purple { background: linear-gradient(180deg, #c3adff 0%, #7b5ce6 50%, #4f36b4 100%); }
.btn-red { background: linear-gradient(180deg, #ffa3a3 0%, #ec5068 50%, #b0203a 100%); }
.btn-gray { background: linear-gradient(180deg, #c3c7d6 0%, #7b8098 50%, #525670 100%); }
.btn-sm { border-radius: 11px; box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,0,0,.18), 0 3px 0 var(--stroke); }
.btn-sm::before { top: 2px; }
.btn:disabled { filter: grayscale(.9) brightness(.75); box-shadow: 0 2px 0 var(--stroke); }

/* ---------- 商城 ---------- */
.shop-vip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; margin-bottom: 12px; cursor: pointer;
  background: linear-gradient(110deg, #3a2a10, #7a5510 55%, #3a2a10); border: 2px solid #ffd24a; box-shadow: 0 4px 0 var(--stroke), inset 0 0 20px rgba(255,210,74,.25); }
.vip-badge { flex: none; padding: 6px 12px; border-radius: 12px; font-weight: 900; font-size: 18px; color: #3b2300; background: linear-gradient(#fff08a, #ffb52e); border: 2px solid var(--stroke); }
.shop-vip-go { color: #ffd24a; font-weight: 900; }
.vip-mini { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 900; color: #3b2300; background: linear-gradient(#fff08a, #ffb52e); border: 1px solid var(--stroke); text-shadow: none; cursor: pointer; vertical-align: middle; }
.first-pay { border-radius: 16px; padding: 12px; margin-bottom: 12px; background: linear-gradient(135deg, #ff7a59, #e8394e 60%, #b8235f); border: 2px solid var(--stroke); box-shadow: 0 4px 0 var(--stroke); }
.fp-title { font-size: 20px; font-weight: 900; }
.fp-sub { font-size: 13px; opacity: .9; margin: 2px 0 8px; }
.shop-sec { display: flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 900; margin: 14px 2px 8px; }
.shop-sec small { font-size: 12px; opacity: .7; font-weight: 700; }
.pack-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pack-card { position: relative; border-radius: 14px; padding: 22px 6px 8px; text-align: center; cursor: pointer; border: 2px solid var(--stroke);
  background: linear-gradient(180deg, #5a3aa8, #2e1f66); box-shadow: 0 4px 0 var(--stroke), inset 0 0 16px rgba(170,140,255,.25); display: flex; flex-direction: column; gap: 6px; }
.pack-card:nth-child(2) { background: linear-gradient(180deg, #2f6fd0, #1a3a80); }
.pack-card:nth-child(3) { background: linear-gradient(180deg, #d0762f, #7a3510); }
.pack-card.sold { filter: grayscale(.8) brightness(.7); }
.pack-worth { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 10px; background: #ff3b4e; border: 2px solid var(--stroke); }
.pack-name { font-size: 16px; font-weight: 900; }
.pack-items { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; font-size: 11px; font-weight: 800; }
.pack-items span { background: rgba(0,0,0,.35); border-radius: 6px; padding: 1px 4px; }
.pack-btn { margin-top: auto; padding: 6px 4px; font-size: 14px; min-height: 36px; }
.gem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gem-card { position: relative; border-radius: 16px; padding: 14px 6px 8px; text-align: center; cursor: pointer; overflow: hidden; border: 2px solid var(--stroke);
  background: radial-gradient(circle at 50% 30%, #5b8cff 0, #2d3f9e 55%, #1e2466 100%); box-shadow: 0 4px 0 var(--stroke), inset 0 0 18px rgba(120,180,255,.35); transition: transform .1s; }
.gem-card:active { transform: scale(.96); }
.gem-card:nth-child(n+4) { background: radial-gradient(circle at 50% 30%, #b87cff 0, #5a2d9e 55%, #2e1a66 100%); }
.gem-ribbon { position: absolute; top: 8px; right: -26px; transform: rotate(35deg); background: linear-gradient(90deg, #ff5a3d, #ff3b8e); font-size: 10px; font-weight: 900; padding: 2px 28px; box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.gem-ic { font-size: 40px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.gem-n { font-size: 20px; font-weight: 900; color: #bfe8ff; margin: 2px 0 8px; }
.gem-price { border-radius: 10px; padding: 5px 0; font-weight: 900; font-size: 15px; color: #3b2300; background: linear-gradient(#fff08a, #ffb52e); border: 2px solid var(--stroke); }

/* VIP 弹窗 */
.vip-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vip-lv.cur { border-color: #ffd24a; box-shadow: 0 0 0 2px #ffd24a, 0 3px 0 var(--stroke); }

/* 章节星级与阶段奖励 */
.ch-stars i { font-style: normal; color: #4a4670; font-size: 18px; margin: 0 1px; }
.ch-stars i.on { color: #ffd24a; text-shadow: 0 0 8px #ffb52e; }
.ch-rewards { display: flex; gap: 6px; justify-content: center; margin: 6px 0; flex-wrap: wrap; }
.ch-rewards.locked { filter: grayscale(1) brightness(.6); pointer-events: none; }
.chr { width: 50px; border-radius: 10px; padding: 3px 0 2px; text-align: center; cursor: pointer; background: rgba(0,0,0,.4); border: 2px solid rgba(255,255,255,.12); }
.chr-ic { font-size: 20px; line-height: 1.2; filter: grayscale(.8) brightness(.8); }
.chr-l { font-size: 10px; font-weight: 900; color: #cfd3ff; }
.chr.ready { border-color: #ffd24a; background: linear-gradient(#7a5510, #3a2808); animation: chrready 1s ease-in-out infinite; }
.chr.ready .chr-ic { filter: none; }
@keyframes chrready { 50% { transform: translateY(-3px); box-shadow: 0 0 12px #ffd24a; } }
.chr.done { opacity: .55; }
.chr.done .chr-ic { filter: none; color: #5dff7a; }

/* 任务中心 */
.task-tabs .t { position: relative; }
.task-tabs .t.dot-red::after { top: -6px; right: -4px; width: 16px; height: 16px; font-size: 10px; }
.signin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.signin-day { position: relative; border-radius: 12px; padding: 6px 2px; text-align: center; background: #2b2748; border: 2px solid var(--stroke); }
.signin-day.big { grid-column: span 2; background: linear-gradient(#5a3aa8, #2e1f66); }
.signin-day.today { background: linear-gradient(#fff08a, #ff9f1a); color: #3b2300; box-shadow: 0 0 14px #ffd24a; animation: chrready 1s ease-in-out infinite; }
.signin-day.done { opacity: .5; }
.sd-t { font-weight: 900; font-size: 12px; }
.sd-ok { position: absolute; top: 2px; right: 6px; color: #5dff7a; font-weight: 900; }
.buy-ok { text-align: center; }
.buy-ok-ic { font-size: 64px; animation: lvpop .6s cubic-bezier(.3,1.6,.6,1) both; }
.buy-ok-t { font-size: 20px; font-weight: 900; color: #ffd24a; margin: 4px 0 6px; }
/* 修正：签到网格不溢出、VIP 按钮不折行 */
.signin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.signin-day .rewards { flex-wrap: nowrap; }
.vip-lv .btn-sm { white-space: nowrap; flex: none; }
.vip-lv .panel-title { gap: 8px; }
/* 邀请返佣 */
.cm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.cm-cell { background: rgba(0,0,0,.25); border-radius: 10px; padding: 8px 2px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.cm-cell b { font-size: 15px; white-space: nowrap; }
.cm-cell span { font-size: 11px; }
.cm-list { margin-top: 8px; max-height: 180px; overflow-y: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 4px; }
/* 背包装备箱：钥匙 / 钻石开启 */
.box-row { align-items: center; }
.box-own { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: #cfe3ff; margin: 2px 0; }
.box-btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.box-btns .btn { white-space: nowrap; }
/* 战机机库 */
.hg-card { position: relative; display: flex; gap: 10px; align-items: center; padding: 10px; margin-bottom: 10px; border-radius: 14px; border: 3px solid var(--stroke);
  background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 35%, #2b2748), #221d3d); box-shadow: 0 3px 0 var(--stroke); overflow: hidden; }
.hg-card.sel { border-color: #3fc26a; box-shadow: 0 0 0 2px #3fc26a, 0 3px 0 var(--stroke); }
.hg-card.locked .hg-art canvas { filter: grayscale(.2) brightness(.8); }
.hg-card.premium { background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 45%, #3a2a08), #2a1d0a); border-color: #ffcf3d; }
.hg-card.premium .hg-art::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(255,207,61,.45), transparent 65%); animation: hgGlow 2s ease-in-out infinite; }
@keyframes hgGlow { 50% { opacity: .4; transform: scale(.9); } }
.hg-art { position: relative; flex: none; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.hg-art canvas { position: relative; animation: hgFloat 2.4s ease-in-out infinite; }
@keyframes hgFloat { 50% { transform: translateY(-4px); } }
.hg-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hg-name { font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.hg-star { color: #ffd24a; font-size: 13px; }
.hg-stats { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 800; color: #fff; }
.hg-act { display: flex; gap: 6px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.hg-lock { font-size: 13px; font-weight: 900; color: #ffd24a; display: flex; flex-direction: column; }
.hg-lock small { color: #aaa; font-weight: 700; }
.hg-buy { font-size: 15px; padding: 6px 16px; }
.hg-ribbon { position: absolute; top: 8px; right: -26px; transform: rotate(35deg); background: linear-gradient(90deg, #ffcf3d, #ff8a3d); color: #3a1d00; font-size: 11px; font-weight: 900; padding: 2px 30px; }
.plane-card { background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 50%, #3a2a08), #2a1d0a) !important; border-color: #ffcf3d !important; }
.plane-card canvas { display: block; margin: 0 auto; }
.lvup-plane canvas { display: block; margin: 0 auto; animation: hgFloat 2s ease-in-out infinite; }

/* ===== 战役页自适应：按可用高度缩放，中间内容不被两侧按钮遮挡 ===== */
.campaign { --sb: clamp(40px, 6.8vh, 54px); --sbgap: clamp(12px, 2.6vh, 20px); --side: calc(var(--sb) + 14px); }
.side-btns { gap: var(--sbgap) !important; }
.side-btns .sbtn { width: var(--sb) !important; height: var(--sb) !important; font-size: calc(var(--sb) * .5) !important; }
#lobby .page { --sb: clamp(40px, 6.8vh, 54px); --sbgap: clamp(12px, 2.6vh, 20px); }
.campaign > .ch-title, .campaign > .ch-best, .campaign > .ch-rewards, .campaign > .ch-power { max-width: calc(100% - 2 * (var(--sb) + 14px)); }
.ch-title { font-size: clamp(20px, 3.9vh, 30px); padding: 2px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-best { font-size: clamp(13px, 2.2vh, 16px); }
.ch-view { flex: 1 1 0; min-height: 120px; }
.ch-view canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: min(100%, 66vw, 320px); width: auto; aspect-ratio: 1; }
.ch-rewards { gap: 5px; margin: 4px 0; }
.chr { width: clamp(38px, 11vw, 50px); }
.ch-power { margin-bottom: 2px; }
.mode-row { margin-bottom: clamp(4px, 1vh, 8px); }
.start-row { gap: clamp(6px, 2vw, 10px); margin-bottom: clamp(4px, 1vh, 8px); }
.btn-start { width: clamp(132px, 42vw, 170px); height: clamp(64px, 11vh, 86px); font-size: clamp(24px, 4vh, 30px); }
.btn-side { width: clamp(70px, 21vw, 90px); height: clamp(52px, 8.5vh, 64px); }
/* 小红点改成醒目的“可领取”角标 */
.btn-side.dot-red::after { content: '可领取'; width: auto; height: auto; top: -10px; right: -6px; padding: 1px 6px; border-radius: 9px; font-size: 11px; line-height: 16px; z-index: 3; animation: dotPulse 1.2s ease-in-out infinite; }
@keyframes dotPulse { 50% { transform: scale(1.12); } }

/* ===== 每日宝箱卡片 ===== */
.chest-card { padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; background: rgba(0,0,0,.28); border: 2px solid rgba(255,255,255,.08); }
.chest-head { display: flex; align-items: center; gap: 10px; }
.chest-ic { font-size: 40px; flex: none; width: 52px; text-align: center; }
.chest-name { font-size: 17px; font-weight: 900; }
.chest-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.chest-chips span { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 8px; background: rgba(255,255,255,.1); color: #d8d4f5; white-space: nowrap; }
.chest-chips span.on { background: #2faa5a; color: #fff; }
.chest-tip { font-size: 12px; font-weight: 700; color: #ffd24a; margin-top: 6px; }
.chest-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.chest-btns .btn, .chest-btns .tag { flex: 1 1 0; min-width: 120px; white-space: nowrap; text-align: center; }
/* 阶段奖励始终一行：按可用宽度等分缩小 */
.campaign > .ch-rewards { flex-wrap: nowrap; width: 100%; }
.campaign > .ch-rewards .chr { flex: 1 1 0; min-width: 0; max-width: 50px; }
/* 按钮上的角标放在按钮内部，避免被裁切 */
.btn-side.dot-red::after { top: 3px; right: 3px; font-size: 10px; line-height: 14px; padding: 0 5px; }
.mode-row .btn.locked .lock-badge { top: 3px !important; right: 3px !important; }
.mode-row .btn.locked { overflow: visible; }
.mode-row .btn.locked .lock-badge { top: -9px !important; right: -4px !important; }
.start-row .btn-side.dot-red { overflow: visible; }
.btn-side.dot-red::after { top: -9px; right: -6px; font-size: 11px; line-height: 16px; padding: 0 6px; }
.inv-count { display: flex; gap: 8px; margin: 6px 0 8px; }
.inv-count > div { flex: 1; background: rgba(0,0,0,.25); border-radius: 10px; padding: 6px 0; text-align: center; display: flex; flex-direction: column; }
.inv-count b { font-size: 22px; }
.inv-count span { font-size: 11px; opacity: .8; }
/* 固定高度弹窗（任务）：标签栏固定，内容区滚动 */
.modal.modal-fixed { height: min(86vh, 760px); }
.modal.modal-fixed .modal-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.modal.modal-fixed .modal-body > div { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.modal.modal-fixed .task-tabs { flex: none; }
.modal.modal-fixed .tab-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-top: 2px; }
.modal.modal-fixed .tab-scroll::-webkit-scrollbar { width: 4px; }
.modal.modal-fixed .tab-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }
/* 科技页：缩小觉醒球，给天赋格子留更多空间 */
.tech-core { height: 120px; }
.tech-orb { width: 92px; height: 92px; font-size: 44px; }
.tech-hint { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 顶栏：VIP 角标挂在头像上，名字栏保留最小宽度 */
.av-wrap { position: relative; flex: none; }
.vip-av { position: absolute; top: -7px; right: -12px; z-index: 2; padding: 0 5px; border-radius: 7px; font-size: 11px; line-height: 16px; font-weight: 900; font-style: italic;
  color: #3b2300; background: linear-gradient(#fff08a, #ffb52e); border: 2px solid var(--stroke); white-space: nowrap; cursor: pointer; box-shadow: 0 2px 0 var(--stroke); }
.vip-av.hi { color: #fff; background: linear-gradient(#ff8ad8, #b44bff); }
.topbar .pinfo { min-width: 52px; padding-left: 6px; }
.topbar .res { flex: none; min-width: 0; }
@media (max-width: 380px) { .res { gap: 3px; } .res .r { font-size: 12px; padding: 2px 6px 2px 2px; } .res .r b { width: 20px; height: 20px; font-size: 14px; } }
/* 装备页底部按钮：一行三等分、不折行；属性栏不被遮挡 */
.equip-stage { height: 400px; }
.estats { bottom: 64px; }
.eswitch { left: 8px; right: 8px; gap: 6px; }
.eswitch .btn { flex: 1 1 0; min-width: 0; height: 48px; padding: 0 4px; font-size: clamp(12px, 3.6vw, 15px); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.eswitch .btn > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.eswitch .es-star { font-size: 10px; color: #ffe066; margin-top: 1px; }
.eswitch .btn.locked .lock-badge { top: -9px; right: -4px; }
.eswitch .btn.locked { overflow: visible; }
/* 手机宽度下资源条收紧，右侧“+”不被裁掉 */
@media (max-width: 430px) {
  .topbar { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .topbar .pinfo { min-width: 44px; padding-left: 8px; }
  .res { gap: 4px; }
  .res .r { font-size: 12.5px; padding: 2px 6px 2px 2px; border-radius: 12px; }
  .res .r b { width: 20px; height: 20px; font-size: 14px; margin-right: 1px; }
  .res .r .plus { margin-left: 2px; font-size: 13px; }
}
@media (max-width: 370px) { .res .r { font-size: 11.5px; padding: 2px 5px 2px 1px; } .res .r b { width: 18px; height: 18px; font-size: 13px; } }
/* 首充礼包 3 天 */
.fp-title small { font-size: 12px; margin-left: 8px; background: rgba(0,0,0,.25); padding: 1px 8px; border-radius: 8px; vertical-align: middle; }
.fp-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fp-day { background: rgba(0,0,0,.25); border: 2px solid rgba(255,255,255,.2); border-radius: 12px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fp-day.ready { border-color: #ffe066; box-shadow: 0 0 12px rgba(255,224,102,.6); animation: chrready 1.2s ease-in-out infinite; }
.fp-day.done { opacity: .6; }
.fp-dt { font-size: 13px; font-weight: 900; }
.fp-rw .rewards { gap: 3px; }
.fp-rw .rw { width: 46px; height: 52px; font-size: 20px; border-width: 2px; }
.fp-rw .rw span { font-size: 9px; }
.fp-st { font-size: 11px; font-weight: 900; opacity: .9; min-height: 26px; display: flex; align-items: center; }
.fp-btn { min-width: 70px; }
.fp-go { width: 100%; margin-top: 8px; }
/* 背包装备箱卡片 */
.box-odds { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.box-odds span { font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 8px; color: var(--qc); background: color-mix(in srgb, var(--qc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--qc) 55%, transparent); }
/* 战役页首充入口 */
.sbtn.fp-btn-side { background: linear-gradient(#ffe066, #ff8a3d 60%, #e8394e); }
.sbtn.fp-btn-side.unpaid { animation: fpSide 1.6s ease-in-out infinite; }
.sbtn.fp-btn-side small { color: #ffe066; }
@keyframes fpSide { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,210,74,.0), 0 3px 0 var(--stroke); transform: scale(1); } 50% { box-shadow: 0 0 16px 4px rgba(255,210,74,.75), 0 3px 0 var(--stroke); transform: scale(1.07); } }
.first-pay.fp-flash { animation: fpFlash 1.2s ease-out 2; }
@keyframes fpFlash { 50% { box-shadow: 0 0 0 4px #ffe066, 0 0 30px #ffd24a; } }
/* 右侧多了一个按钮：略微收紧尺寸，矮屏也不压到下方按钮 */
.campaign { --sb: clamp(38px, 6.3vh, 54px); --sbgap: clamp(11px, 2.4vh, 20px); }
#lobby .page { --sb: clamp(38px, 6.3vh, 54px); --sbgap: clamp(11px, 2.4vh, 20px); }
/* 普通 / 深渊 切换 */
.diff-switch { display: inline-flex; margin: 3px 0 1px; background: rgba(0,0,0,.4); border: 2px solid var(--stroke); border-radius: 14px; padding: 2px; gap: 2px; }
.diff-switch span { padding: 2px 14px; border-radius: 11px; font-size: 13px; font-weight: 900; color: #b8b3d9; cursor: pointer; }
.diff-switch span.on { background: linear-gradient(#ffe066, #ffb52e); color: #3b2300; }
.diff-switch span.abyss.on { background: linear-gradient(#ff6b6b, #b8243c); color: #fff; }
.diff-switch span.lock { opacity: .7; }
.campaign.abyss .ch-view canvas { box-shadow: 0 0 26px rgba(255,40,60,.55); }
.campaign.abyss .ch-title { color: #ffb3b3; }
.abyss-affix { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 900; color: #ffd0d0; background: rgba(90,0,20,.75); border: 1px solid #ff5a6a; padding: 2px 10px; border-radius: 10px; z-index: 2; }
/* 两侧按钮栏折叠 */
.side-btns.folded .sbtn:not(.keep) { display: none; }
.side-btns.right:not(:has(.keep)).folded .sbtn:first-child { display: flex; }
.fold-btn { position: relative; width: var(--sb, 50px); height: 26px; border-radius: 13px; background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; font-weight: 900; color: #fff; cursor: pointer; margin-top: calc(var(--sbgap, 16px) * -0.3); }
.fold-btn small { font-size: 10px; }
.fold-btn.dot-red::after { top: -6px; right: -6px; width: 14px; height: 14px; font-size: 9px; }
/* ===== 7 日狂欢 ===== */
.modal.modal-cv { height: min(88vh, 780px); }
.modal.modal-cv .modal-body { flex: 1; min-height: 0; overflow-y: auto; }
.cv-banner { display: flex; gap: 10px; align-items: stretch; padding: 10px; border-radius: 14px; background: linear-gradient(135deg, #ff7ad9, #9a3ae0 55%, #4b2bb8); border: 2px solid var(--stroke); box-shadow: 0 3px 0 var(--stroke); }
.cv-title { font-size: 17px; font-weight: 900; }
.cv-time { font-size: 12px; font-weight: 800; margin: 3px 0 6px; opacity: .9; }
.cv-pts { font-size: 13px; font-weight: 900; }
.cv-pts b { font-size: 22px; color: #ffe066; }
.cv-big { flex: none; width: 150px; border-radius: 12px; padding: 5px 4px; background: rgba(0,0,0,.28); border: 2px dashed rgba(255,224,102,.7); text-align: center; cursor: pointer; }
.cv-big.ready { border-style: solid; box-shadow: 0 0 14px #ffe066; animation: chrready 1.2s ease-in-out infinite; }
.cv-big.done { opacity: .6; }
.cv-big-t { font-size: 11px; font-weight: 900; color: #ffe066; margin-bottom: 3px; }
.cv-big .rewards { gap: 3px; }
.cv-big .rw { width: 42px; height: 48px; font-size: 18px; border-width: 2px; }
.cv-big .rw span { font-size: 8px; }
.cv-track { position: relative; height: 58px; margin: 12px 14px 4px; }
.cv-bar { position: absolute; left: 0; right: 0; top: 18px; height: 10px; border-radius: 6px; background: rgba(0,0,0,.45); border: 2px solid var(--stroke); overflow: hidden; }
.cv-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff8af2, #ffe066); transition: width .4s; }
.cv-node { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.cv-node-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: linear-gradient(#b89bff, #6f4fd8); border: 2px solid var(--stroke); }
.cv-node.big .cv-node-ic { width: 40px; height: 40px; font-size: 22px; margin-top: -3px; background: linear-gradient(#ffe066, #ff8a3d); }
.cv-node.ready .cv-node-ic { background: linear-gradient(#ffe066, #ffb52e); box-shadow: 0 0 12px #ffe066; animation: dotPulse 1s ease-in-out infinite; }
.cv-node.done .cv-node-ic { background: #3b3656; color: #5dff7a; }
.cv-node-n { font-size: 11px; font-weight: 900; margin-top: 2px; }
.cv-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 8px 0; }
.cv-day { position: relative; padding: 5px 0 4px; border-radius: 10px; text-align: center; background: rgba(0,0,0,.3); border: 2px solid transparent; cursor: pointer; display: flex; flex-direction: column; }
.cv-day b { font-size: 11px; }
.cv-day small { font-size: 9px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.cv-day.on { background: linear-gradient(#ffe066, #ffb52e); color: #3b2300; border-color: var(--stroke); }
.cv-day.lock { opacity: .5; }
.cv-day.dot-red::after { top: -6px; right: -4px; width: 14px; height: 14px; font-size: 9px; }
.cv-dayhead { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 6px; font-weight: 900; font-size: 15px; }
.cv-task { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 6px; border-radius: 12px; background: rgba(0,0,0,.25); border: 2px solid transparent; }
.cv-task.ready { border-color: #ffd24a; background: rgba(255,210,74,.1); }
.cv-task.done { opacity: .55; }
.cv-tname { font-size: 14px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.cv-tp { font-size: 11px; color: #ff9af0; background: rgba(255,122,217,.15); border-radius: 8px; padding: 0 6px; }
.cv-tbar { position: relative; height: 14px; margin-top: 5px; border-radius: 7px; background: rgba(0,0,0,.4); overflow: hidden; }
.cv-tbar i { display: block; height: 100%; background: linear-gradient(90deg, #7ef08a, #2faa5a); }
.cv-tbar span { position: absolute; inset: 0; font-size: 10px; font-weight: 900; line-height: 14px; text-align: center; }
.cv-rw .rewards { gap: 3px; flex-wrap: nowrap; }
.cv-rw .rw { width: 40px; height: 44px; font-size: 17px; border-width: 2px; }
.cv-rw .rw span, .cv-rw .rw .rw-name { font-size: 8px; }
.cv-st { font-size: 12px; font-weight: 900; color: #5dff7a; min-width: 44px; text-align: center; }
.cv-task .btn-sm { min-width: 58px; padding: 6px 8px; }
/* 章节奖励行：波次奖励 + 星级挑战入口，一行不折行 */
.campaign > .ch-rewards { display: flex; align-items: stretch; gap: 8px; justify-content: center; }
.ch-rw-waves { display: flex; gap: 5px; min-width: 0; }
.ch-rw-waves.locked { filter: grayscale(1) brightness(.6); pointer-events: none; }
.campaign > .ch-rewards .chr { flex: 0 1 50px; min-width: 0; width: auto; }
.chr .chr-l { white-space: nowrap; font-size: 10px; letter-spacing: -.3px; }
.chr.chr-star { position: relative; flex: none; width: 52px; border-color: #ffd24a; background: linear-gradient(#5a4210, #2e2106); }
.chr.chr-star .chr-ic { filter: none; }
.chr.chr-star .chr-l { color: #ffe066; }
.chr.dot-red::after { top: -7px; right: -7px; width: 16px; height: 16px; font-size: 10px; }
/* 星级挑战弹窗 */
.sc-head { padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #6b4a08, #2e2106); border: 2px solid #ffd24a; margin-bottom: 10px; }
.sc-total { font-size: 16px; font-weight: 900; }
.sc-total b { font-size: 26px; color: #ffe066; }
.sc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 12px; background: rgba(0,0,0,.25); border: 2px solid transparent; }
.sc-row.ready { border-color: #ffd24a; background: rgba(255,210,74,.1); }
.sc-row.done { opacity: .5; }
.sc-need { width: 48px; flex: none; text-align: center; font-size: 12px; font-weight: 900; display: flex; flex-direction: column; align-items: center; }
.sc-need b { font-size: 18px; color: #ffe066; }
.sc-row .rewards { justify-content: flex-start; gap: 4px; }
.sc-row .rw { width: 48px; height: 54px; font-size: 20px; border-width: 2px; }
.sc-row .btn-sm { min-width: 62px; }
.ch-power { white-space: nowrap; }
/* 星级挑战：奖励缩小、一行显示 */
.sc-row { gap: 6px; padding: 6px 8px; }
.sc-need { width: 38px; }
.sc-need b { font-size: 16px; }
.sc-row .grow { min-width: 0; }
.sc-row .rewards { flex-wrap: nowrap; gap: 3px; }
.sc-row .rw { width: 40px; height: 44px; font-size: 17px; flex: none; border-width: 2px; border-radius: 8px; }
.sc-row .rw span { font-size: 9px; }
.sc-row .rw .rw-name { font-size: 8px; -webkit-line-clamp: 1; }
.sc-row .rw .rw-n { font-size: 9px; line-height: 13px; padding: 0 3px; right: -3px; bottom: -4px; border-width: 1px; }
.sc-row .btn-sm { min-width: 52px; padding: 5px 6px; font-size: 12px; flex: none; }

/* ===== 滑动流畅度 ===== */
/* 全局只禁双击缩放；拖动战机的 touch-action: none 只留在战斗画面 */
html, body { touch-action: manipulation; }
#battle, .battle, .battle canvas { touch-action: none; }
/* 可滚动区域：只允许上下滑动，惯性滚动，滚到头不带动外层 / Telegram 窗口 */
.page, .modal-body, .tab-scroll, .cm-list { touch-action: pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; will-change: scroll-position; }
/* 滑动过程中暂停所有循环动画（发光 / 呼吸 / 跳动），停止后自动恢复 */
.is-scrolling *, .is-scrolling *::before, .is-scrolling *::after { animation-play-state: paused !important; }
/* 常驻动画只动 transform / opacity（不再逐帧重绘阴影），发光改成静态阴影 */
@keyframes chrready { 50% { transform: translateY(-3px); } }
.chr.ready, .fp-day.ready, .cv-big.ready { box-shadow: 0 0 12px rgba(255,210,74,.8); }
@keyframes eglow { 50% { opacity: .85; } }
@keyframes fpSide { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.sbtn.fp-btn-side.unpaid { box-shadow: 0 0 14px 3px rgba(255,210,74,.6), 0 3px 0 var(--stroke); }
@keyframes legendcard { 50% { opacity: .8; } }
@keyframes orb { 50% { transform: scale(1.06); } }
/* 折叠：每侧保留前 3 个；折叠按钮只显示箭头 */
.side-btns.folded .sbtn:not(.keep) { display: flex; }
.side-btns.folded .sbtn:nth-child(n+4) { display: none; }
.fold-btn { width: calc(var(--sb, 50px) * .7); height: 20px; align-self: center; border-radius: 10px; font-size: 10px; margin-top: calc(var(--sbgap, 16px) * -0.2); background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.3); }
.side-btns .fold-btn { align-self: center; }
/* 战役页三个模式按钮缩小，给“推荐战力”留出空间 */
.mode-row { margin-top: 8px; gap: 6px; }
.mode-row .btn-sm { padding: clamp(5px, 1vh, 8px) 4px; font-size: clamp(12px, 3.6vw, 14px); border-radius: 12px; }
.mode-row .btn.locked .lock-badge { top: -8px !important; font-size: 9px; padding: 0 5px; }
.ch-power { margin-bottom: 0; position: relative; z-index: 1; }
.task-all { width: 100%; margin: 0 0 8px; } .row .task-all { width: auto; margin: 0; }
/* 狂欢顶部横幅与积分轨道优化 */
.cv-banner { align-items: center; padding: 10px 10px 10px 14px; }
.cv-left { flex: 1; min-width: 0; }
.cv-time { font-size: 12px; margin: 0 0 4px; white-space: nowrap; }
.cv-pts-l { font-size: 12px; font-weight: 800; opacity: .9; }
.cv-pts { font-size: 14px; font-weight: 900; white-space: nowrap; }
.cv-pts b { font-size: 30px; color: #ffe066; line-height: 1.1; }
.cv-pts span { opacity: .85; }
.cv-big { width: auto; max-width: 62%; padding: 6px 8px 8px; }
.cv-big-t { font-size: 12px; white-space: nowrap; margin-bottom: 5px; }
.cv-big .rewards { flex-wrap: nowrap; gap: 5px; }
.cv-big .rw { width: 44px; height: 46px; font-size: 20px; flex: none; padding: 0; }
.cv-big .rw .rw-name { display: none; }
.cv-big .rw span:not(.rw-name) { font-size: 10px; }
.cv-big .rw .rw-n { font-size: 10px; line-height: 14px; padding: 0 4px; right: -4px; bottom: -5px; border-width: 1px; }
/* 轨道左右留出半个宝箱宽度，两端的宝箱和数字不被裁掉 */
.cv-track { height: 66px; margin: 12px 4px 4px; }
.cv-track-in { position: absolute; left: 22px; right: 22px; top: 0; bottom: 0; }
.cv-node-n { font-size: 12px; line-height: 16px; }
/* 奖励数量角标统一放右上角，不再压住底部的名称 */
.rw .rw-n, .sc-row .rw .rw-n, .cv-big .rw .rw-n { top: -7px !important; bottom: auto !important; right: -6px !important; }
.rw.rw-named { justify-content: center; gap: 1px; padding-top: 4px; }
.rw .rw-name { margin-top: 1px; }
.cv-rw .rw .rw-n, .fp-rw .rw .rw-n { font-size: 9px; line-height: 13px; padding: 0 3px; }
.cv-rw .rw .rw-name, .fp-rw .rw .rw-name { -webkit-line-clamp: 1; font-size: 8px; }
/* 补给食堂 */
.meal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 10px; border-radius: 12px; background: rgba(0,0,0,.28); }
.meal-now { font-size: 18px; font-weight: 900; }
.meal-next { font-size: 12px; font-weight: 800; color: #ffe066; text-align: right; }
.meal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.meal-card { position: relative; border-radius: 14px; padding: 10px 6px 10px; text-align: center; background: rgba(0,0,0,.25); border: 2px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.meal-card.open { border-color: #ffd24a; background: linear-gradient(#5a4210, #2e2106); box-shadow: 0 0 14px rgba(255,210,74,.5); }
.meal-card.done { border-color: #3fc26a; }
.meal-card.missed { opacity: .8; }
.meal-card.missed .meal-ic, .meal-card.soon .meal-ic { filter: grayscale(.6); }
.meal-ic { font-size: 34px; line-height: 1.1; }
.meal-name { font-size: 16px; font-weight: 900; }
.meal-time { font-size: 12px; opacity: .75; }
.meal-st { font-size: 16px; font-weight: 900; color: #ffe066; margin: 2px 0 4px; }
.meal-tag { font-size: 11px; font-weight: 900; padding: 3px 10px; border-radius: 10px; background: rgba(255,255,255,.08); color: #cfcae3; }
.meal-tag.ok { background: rgba(63,194,106,.25); color: #8fffa0; }
.meal-btn { width: 100%; font-size: 12px; padding: 6px 4px; white-space: nowrap; }
.meal-ok { position: absolute; top: 6px; right: 8px; color: #5dff7a; font-weight: 900; font-size: 16px; }
.meal-foot { margin-top: 10px; text-align: center; font-size: 11px; }
/* 战机机库 v2 */
.hg-card { display: block; padding: 10px 10px 10px; }
.hg-top { display: flex; gap: 10px; align-items: center; }
.hg-art { width: 88px; height: 88px; }
.hg-card.notown .hg-art canvas { filter: grayscale(.35) brightness(.9); }
.hg-card.notown { background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 18%, #2b2748), #221d3d); }
.hg-info { gap: 2px; }
.hg-name { font-size: 18px; flex-wrap: wrap; }
.hg-star { font-size: 11px; letter-spacing: -1px; color: #ffd24a; }
.hg-badge { font-size: 10px; font-weight: 900; padding: 1px 7px; border-radius: 8px; text-shadow: none; }
.hg-badge.on { background: #3fc26a; color: #fff; }
.hg-badge.lock { background: rgba(0,0,0,.4); color: #ffd24a; border: 1px solid #ffd24a; }
.hg-badge.buy { background: linear-gradient(90deg, #ffcf3d, #ff8a3d); color: #3a1d00; }
.hg-desc { font-size: 12px; opacity: .8; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hg-skill { font-size: 11px; font-weight: 800; color: #9fe8ff; }
.hg-stats { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; margin-top: 8px; }
.hg-stats span { background: rgba(0,0,0,.28); border-radius: 10px; padding: 4px 6px; font-size: 13px; font-weight: 900; display: flex; flex-direction: column; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-stats small { font-size: 10px; font-weight: 700; opacity: .65; }
.hg-act { display: flex; gap: 8px; margin-top: 8px; }
.hg-act .btn { flex: 1; font-size: 14px; padding: 8px 6px; white-space: nowrap; }
.hg-lvbar { position: relative; flex: 1; height: 30px; border-radius: 10px; background: rgba(0,0,0,.35); overflow: hidden; border: 1px solid rgba(255,210,74,.4); }
.hg-lvbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(255,210,74,.35), rgba(255,210,74,.6)); }
.hg-lvbar span { position: relative; display: block; line-height: 28px; text-align: center; font-size: 12px; font-weight: 900; }
.hg-ribbon { display: none; }
/* 商店每日免费补给 */
.sf-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 16px; border: 2px solid var(--stroke); box-shadow: 0 3px 0 var(--stroke);
  background: linear-gradient(135deg, #2f9e6a, #1d6b4a); }
.sf-card.ready { background: linear-gradient(135deg, #3fc26a, #1f8f55); }
.sf-ic { font-size: 36px; flex: none; }
.sf-card.ready .sf-ic { animation: chrready 1.2s ease-in-out infinite; }
.sf-t { font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.sf-n { font-size: 11px; background: rgba(0,0,0,.3); border-radius: 8px; padding: 1px 7px; }
.sf-sub { font-size: 11px; font-weight: 800; opacity: .9; margin-top: 2px; }
.sf-tip { font-size: 11px; color: #e7ffe9; opacity: .85; margin-top: 2px; }
.sf-btn { flex: none; min-width: 96px; white-space: nowrap; font-size: 13px; }
/* 坠毁复活弹窗（紧凑） */
.rv-box { max-width: 320px; padding: 14px 14px 12px; }
.rv-title { font-size: 26px; font-weight: 900; margin: 2px 0 8px; }
.rv-stats { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.rv-stats span { font-size: 12px; font-weight: 900; background: rgba(0,0,0,.35); border-radius: 10px; padding: 3px 9px; }
.rv-tip { font-size: 12px; color: #ffd24a; margin-bottom: 12px; }
.rv-main { width: 100%; font-size: 19px; padding: 10px 8px; margin-bottom: 8px; }
.rv-give { width: 100%; font-size: 13px; padding: 7px 8px; opacity: .9; }
/* 未完成战斗提示（中规中矩） */
.modal.modal-resume { max-width: 320px; }
.modal-resume .modal-head { font-size: 17px; padding: 9px 44px; }
.modal-resume .modal-close { width: 30px; height: 30px; font-size: 16px; top: 6px; }
.rs-body { text-align: center; }
.rs-name { font-size: 16px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 6px; }
.rs-mode { font-size: 11px; padding: 1px 7px; border-radius: 8px; background: rgba(255,255,255,.12); }
.rs-stats { display: flex; justify-content: center; gap: 6px; margin: 8px 0; }
.rs-stats span { font-size: 12px; font-weight: 800; background: rgba(0,0,0,.3); border-radius: 9px; padding: 2px 8px; }
.rs-tip { font-size: 14px; font-weight: 700; margin-top: 4px; }
.rs-warn { font-size: 11px; opacity: .65; margin-top: 4px; }
.rs-btn { min-width: 110px; font-size: 15px; }
/* 商城 VIP 条：改为明亮的金色 */
.shop-vip { background: linear-gradient(135deg, #ffe27a 0%, #ffb23a 55%, #f08a1c 100%) !important; border: 2px solid var(--stroke); box-shadow: 0 3px 0 var(--stroke), inset 0 2px 0 rgba(255,255,255,.5); color: #4a2800; }
.shop-vip .grow > div:first-child { color: #4a2800; text-shadow: none; font-size: 14px; }
.shop-vip .prog { background: rgba(74,40,0,.25); border-color: rgba(74,40,0,.6); }
.shop-vip .prog i { background: linear-gradient(90deg, #fff6c2, #ffffff) !important; }
.shop-vip .vip-badge { background: linear-gradient(#5a2d0c, #3a1c06); color: #ffe27a; border-color: #3a1c06; text-shadow: none; }
.shop-vip-go { color: #6b3a00; text-shadow: none; }
/* 战役页：空间不够时只压缩中间的章节图，标题 / 难度切换 / 星级 / 奖励 / 按钮都不被压扁 */
.campaign > * { flex-shrink: 0; }
.campaign > .ch-view { flex: 1 1 0; min-height: 90px; }
.ch-title { line-height: 1.25; overflow: visible; }
.diff-switch { margin: 4px 0 2px; }
/* 科技页觉醒按钮：紧凑尺寸 */
.tech-btn { min-width: 140px; padding: 8px 22px 7px; font-size: 20px; line-height: 1.1; border-radius: 14px; display: inline-flex; flex-direction: column; align-items: center; }
.tech-btn small { font-size: 12px; margin-top: 2px; }
.tech-hint { white-space: normal; overflow: visible; font-size: 11px; padding: 0 16px; line-height: 1.4; }
/* 请求处理中：顶部细进度条 */
body::before { content: ''; position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 1000; pointer-events: none; background: linear-gradient(90deg, #ffe066, #ff8a3d); opacity: 0; transition: opacity .2s; }
body.api-busy::before { opacity: 1; animation: apibusy 1.2s ease-in-out infinite; }
@keyframes apibusy { 0% { width: 0; left: 0; } 50% { width: 60%; left: 20%; } 100% { width: 0; left: 100%; } }
/* 装备推荐 / 可合成提示 */
.eitem { position: relative; }
.eitem.rec { box-shadow: 0 0 0 2px #5dff7a, 0 0 10px rgba(93,255,122,.5); }
.etag { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 900; padding: 0 5px; border-radius: 7px; line-height: 14px; white-space: nowrap; }
.etag.up { background: #1f8f55; color: #fff; }
.etag.up.best { background: #3fc26a; box-shadow: 0 0 6px #5dff7a; }
.etag.merge { background: #7b4fe0; color: #fff; }
.eslot.can-up { border-color: #5dff7a !important; box-shadow: 0 0 10px rgba(93,255,122,.6); }
.eslot .eup { position: absolute; top: -9px; right: -8px; font-size: 9px; font-weight: 900; padding: 1px 5px; border-radius: 8px; background: #3fc26a; color: #fff; white-space: nowrap; border: 1px solid #fff; animation: dotPulse 1.2s ease-in-out infinite; }
.equip-tip { display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; margin: 0 0 8px; border-radius: 12px; background: rgba(63,194,106,.15); border: 1px solid rgba(93,255,122,.4); font-size: 12px; font-weight: 800; color: #c9ffd4; }
.equip-auto { box-shadow: 0 0 10px rgba(93,255,122,.6), 0 3px 0 var(--stroke); }
.equip-merge-on { box-shadow: 0 0 10px rgba(255,210,74,.7), 0 3px 0 var(--stroke); }
.page-title > span.stroke { white-space: nowrap; }
.page-title .row .btn-sm { white-space: nowrap; font-size: 13px; padding: 7px 10px; }
/* 启动页：浅色天空背景上文字看不清 → 加深色底板 + 更强描边 */
.boot-bottom { left: 12px; right: 12px; padding: 14px 16px calc(var(--safe-bottom) + 4px); border-radius: 18px; background: linear-gradient(rgba(12,14,45,.30), rgba(12,14,45,.62) 35%); backdrop-filter: blur(2px); }
#boot-status { font-size: 15px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.65), 0 0 2px rgba(0,0,0,.9); }
#boot-status.err { color: #ffe066; }
.boot-agree { color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.7); }
.boot-tip { color: #e9e6ff; opacity: 1; text-shadow: 0 2px 4px rgba(0,0,0,.7); }
.boot-bar { box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.boot-logo small { text-shadow: 0 2px 0 #1b1633, 0 3px 8px rgba(0,0,0,.45); }
/* 广告看完后的“点击任意位置继续”提示 */
.ad-tapany { position: absolute; bottom: calc(var(--safe-bottom) + 12px); left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 800; color: #fff; opacity: .75; }
.ad-done { min-width: 60%; }
/* 维护模式全屏提示 */
.maint-root { position: fixed; inset: 0; z-index: 400; background: rgba(8,10,30,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.maint-box { max-width: 340px; width: 100%; text-align: center; background: #2b2748; border: 3px solid var(--stroke); border-radius: 18px; padding: 22px 18px; box-shadow: 0 6px 0 var(--stroke); }
.maint-ic { font-size: 54px; animation: hgFloat 2s ease-in-out infinite; }
.maint-t { font-size: 22px; font-weight: 900; margin: 6px 0 10px; color: #ffd24a; }
.maint-msg { font-size: 15px; font-weight: 700; line-height: 1.6; white-space: pre-line; }
.maint-sub { font-size: 12px; opacity: .7; margin: 10px 0 14px; }

/* ---------- 战令 ---------- */
.bp-top { padding: 12px; }
.bp-top-row { display: flex; align-items: center; gap: 12px; }
.bp-top-lv { width: 64px; height: 64px; flex: none; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fff2a8, #ffb21a 60%, #c7700a); border: 3px solid var(--stroke); color: #3b2300; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.bp-top-lv b { font-size: 24px; font-weight: 900; }
.bp-top-lv small { font-size: 10px; font-weight: 900; opacity: .8; }
.bp-top-meta { display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; font-size: 14px; margin-bottom: 6px; }
.bp-top-meta .muted { font-size: 12px; }
.bp-tip { font-size: 12px; margin-top: 8px; }
.bp-buy { width: 100%; margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.bp-buy b { background: rgba(0,0,0,.18); border-radius: 8px; padding: 1px 8px; }
.bp-owned { margin-top: 10px; text-align: center; font-weight: 900; color: #ffd24a; background: rgba(255,210,74,.12); border: 2px solid rgba(255,210,74,.45); border-radius: 10px; padding: 6px; }
.bp-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.bp-row { display: grid; grid-template-columns: 42px 1fr 1.35fr; gap: 6px; align-items: stretch; }
.bp-row:not(.reached):not(.bp-head) { opacity: .55; }
.bp-head { position: sticky; top: -12px; z-index: 2; background: #3a3456; padding: 6px 0; font-weight: 900; font-size: 13px; text-align: center; }
.bp-head .prem { color: #ffd24a; }
.bp-lv { align-self: center; justify-self: center; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px; background: #2a2446; border: 2px solid var(--stroke); color: #b9b3d6; }
.bp-row.reached .bp-lv { background: linear-gradient(#ffe066, #ff9f1a); color: #3b2300; border-color: #7a4a00; }
.bp-row.current .bp-lv { box-shadow: 0 0 0 3px rgba(255,224,102,.45), 0 0 12px rgba(255,224,102,.6); color: #fff; background: #5a4a9a; }
.bp-cell { position: relative; min-height: 70px; border-radius: 12px; padding: 7px 6px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.22); border: 2px solid rgba(255,255,255,.08); }
.bp-cell.prem { background: linear-gradient(135deg, rgba(255,210,74,.14), rgba(0,0,0,.22)); border-color: rgba(255,210,74,.35); }
.bp-cell .rewards { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0; }
.bp-cell .rw { width: 50px; height: 56px; border-width: 2px; border-radius: 9px; font-size: 20px; }
.bp-cell .rw span, .bp-cell .rw .rw-name { font-size: 9px; }
.bp-cell .rw .rw-n { font-size: 9px; line-height: 13px; padding: 0 3px; right: -3px; bottom: -4px; border-width: 1px; }
.bp-cell.locked .rewards { filter: grayscale(.75) brightness(.8); }
.bp-cell.claimed .rewards { opacity: .4; }
.bp-cell.ready { border-color: #ffe066; box-shadow: 0 0 10px rgba(255,224,102,.55) inset, 0 0 8px rgba(255,224,102,.35); }
.bp-mark { position: absolute; top: 3px; right: 5px; font-style: normal; font-size: 14px; font-weight: 900; color: #5dff7a; text-shadow: 0 1px 2px #000; }
.bp-cell.locked .bp-mark { color: #fff; font-size: 12px; }
.bp-tag { position: absolute; top: -8px; left: 6px; font-style: normal; font-size: 10px; font-weight: 900; white-space: nowrap;
  color: #3b2300; background: linear-gradient(#ffe066, #ff9f1a); border: 1px solid #7a4a00; border-radius: 8px; padding: 0 6px; line-height: 16px; animation: bp-pulse 1.2s ease-in-out infinite; }
@keyframes bp-pulse { 50% { transform: scale(1.08); } }

/* 装备阶 +1 / +2 角标 */
.eitem .estage, .eslot .estage { position: absolute; top: 1px; right: 3px; font-size: 11px; font-weight: 900; color: #fff; background: var(--qc, #b25be0); border-radius: 6px; padding: 0 4px; line-height: 15px; }

/* 一键强化（装备展示区战力行） */
.estats .eup-all { height: 26px; padding: 0 10px; font-size: 13px; border-radius: 14px; }
.estats .eup-all.on { animation: eup-glow 1.4s ease-in-out infinite; }
@keyframes eup-glow { 50% { box-shadow: 0 0 12px 3px rgba(125,255,125,.75); } }
.estats:has(.eup-all) { gap: 6px; padding: 0 6px; }
.estats:has(.eup-all) span { padding: 3px 8px; font-size: 13px; }

/* 技能卡进化提示 */
.card .cevo { margin: 6px 6px 0; font-size: 11px; font-weight: 800; line-height: 1.35; color: #ffd98a; background: rgba(255,200,80,.12); border: 1px dashed rgba(255,210,74,.5); border-radius: 8px; padding: 3px 5px; }
.card .cevo.ready { color: #8fffa0; background: rgba(90,255,120,.12); border-color: rgba(120,255,140,.6); }
