* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #111; color: #eee;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; user-select: none; -webkit-user-select: none; }
#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }

#hurt { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity .1s;
  box-shadow: inset 0 0 120px 30px rgba(220, 30, 30, .8); }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; }
#xpbar { position: absolute; top: 0; left: 0; right: 0; height: 8px; background: rgba(0,0,0,.6); }
#xpfill { height: 100%; width: 0; background: linear-gradient(90deg, #ff8a2a, #ffc400); }
#topinfo { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 22px;
  font-size: 15px; font-weight: 700; text-shadow: 0 1px 3px #000; }
#timer { font-size: 20px; letter-spacing: 1px; }
#hpwrap { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); width: min(320px, 70vw); height: 16px;
  background: rgba(0,0,0,.65); border: 1px solid #555; }
#hpfill { height: 100%; width: 100%; background: linear-gradient(90deg, #2ecc71, #7be495); transition: width .1s; }
#hptext { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 14px; text-shadow: 0 1px 2px #000; }
#bossbar { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); width: min(460px, 86vw); text-align: center; }
#bossname { font-size: 13px; color: #ff6b6b; font-weight: 700; margin-bottom: 3px; text-shadow: 0 1px 2px #000; }
#bosshp { height: 10px; background: rgba(0,0,0,.7); border: 1px solid #a33; }
#bossfill { height: 100%; background: #e03030; }
#banner { position: absolute; top: 34%; left: 0; right: 0; text-align: center; font-size: 22px; font-weight: 800;
  letter-spacing: 3px; color: #ffc400; text-shadow: 0 2px 8px #000; background: linear-gradient(90deg, transparent, rgba(0,0,0,.55), transparent);
  padding: 10px 0; animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(1.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#debug { position: absolute; left: 8px; bottom: 8px; font-size: 11px; color: #888; }

#ultbtn { pointer-events: auto; position: absolute; right: 28px; bottom: 34px; width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid #666; background: rgba(0,0,0,.6); color: #aaa; overflow: hidden; font-weight: 800; font-size: 17px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; touch-action: none; }
#ultbtn span, #ultbtn small { position: relative; z-index: 1; }
#ultbtn small { font-size: 10px; font-weight: 400; opacity: .7; }
#ultfill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(255,196,0,.35); }
#ultbtn.ready { border-color: #ffc400; color: #fff; box-shadow: 0 0 18px #ffc400; animation: pulse 1s infinite; }
#ultbtn.active { border-color: #ff8a2a; color: #fff; }
#ultbtn.active #ultfill { background: rgba(255,138,42,.55); }
@keyframes pulse { 50% { box-shadow: 0 0 4px #ffc400; } }
#pausebtn { pointer-events: auto; position: absolute; right: 12px; top: 14px; width: 38px; height: 38px; border: 1px solid #555;
  background: rgba(0,0,0,.5); color: #ddd; font-weight: 800; }

#joy { position: fixed; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); transform: translate(-50%, -50%); pointer-events: none; }
#joyknob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.55); transform: translate(-50%, -50%); }

/* 覆盖层 */
.overlay { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; background: rgba(10,11,14,.82); backdrop-filter: blur(3px); padding: 20px; text-align: center; }
.overlay h1 { font-size: clamp(32px, 8vw, 54px); letter-spacing: 6px; font-weight: 900; }
.overlay h2 { font-size: 26px; letter-spacing: 4px; }
.tag { font-size: 11px; letter-spacing: 3px; color: #ffc400; border: 1px solid #ffc400; padding: 3px 10px; }
.sub { color: #999; font-size: 13px; margin-top: -8px; }
.opcard { border-left: 4px solid #e8433a; background: rgba(255,255,255,.06); padding: 12px 18px; text-align: left; max-width: 360px; }
.opname { font-size: 20px; font-weight: 800; }
.opname span { font-size: 12px; color: #888; font-weight: 400; }
.opdesc { font-size: 13px; color: #bbb; margin-top: 4px; }
.hint { font-size: 12px; color: #888; line-height: 1.8; }
button.big { background: #ffc400; color: #111; border: none; font-size: 18px; font-weight: 900; letter-spacing: 4px;
  padding: 14px 46px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
button.big:active { transform: scale(.97); }
button.ghost { background: transparent; color: #aaa; border: 1px solid #555; padding: 10px 30px; font-size: 15px; }
#cards { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; max-width: 820px; }
.card { width: 230px; min-height: 140px; text-align: left; padding: 16px; background: #1e2026; color: #eee;
  border: 1px solid #3a3d45; border-top: 4px solid #ffc400; transition: transform .1s, border-color .1s; }
.card:hover { transform: translateY(-4px); border-color: #ffc400; }
.cname { font-size: 19px; font-weight: 800; }
.clv { font-size: 12px; color: #ffc400; margin: 4px 0 10px; }
.cdesc { font-size: 14px; color: #bbb; line-height: 1.5; }
#overstats { font-size: 16px; line-height: 2; color: #ccc; }
#overstats b { color: #fff; font-size: 20px; }
#overtitle.win { color: #ffc400; }
#overtitle.lose { color: #ff6b6b; }

@media (max-width: 600px) {
  .card { width: 100%; min-height: 0; padding: 12px 14px; }
  #cards { flex-direction: column; gap: 10px; }
  #ultbtn { right: 20px; bottom: 28px; width: 76px; height: 76px; }
}

/* ===== v2：货币、养成、切换 ===== */
.c-lmd, .c-oru { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.c-lmd::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(#ffe066, #c99a0e); box-shadow: 0 0 0 1px #8a6a00; }
.c-lmd { color: #ffd23f; }
.c-oru::before { content: ''; width: 12px; height: 12px; background: linear-gradient(135deg, #ff9aae, #d6264a); transform: rotate(45deg) scale(.85); }
.c-oru { color: #ff7a93; }
.wallet { display: flex; gap: 18px; font-size: 16px; }
#runcur { position: absolute; top: 16px; left: 12px; font-size: 14px; display: flex; gap: 10px; text-shadow: 0 1px 2px #000; }
#shieldfill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: rgba(80, 180, 255, .55); }
#skillinfo { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 13px; color: #ffe08a; text-shadow: 0 1px 3px #000; }
#switchbtn { pointer-events: auto; position: absolute; right: 124px; bottom: 40px; width: 70px; height: 70px; border-radius: 50%;
  border: 3px solid #ddd; background: rgba(0,0,0,.6); color: #fff; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 11px; touch-action: none; }
#switchbtn b { font-size: 14px; position: relative; z-index: 1; }
#switchbtn span, #switchbtn small { position: relative; z-index: 1; }
#switchbtn small { opacity: .6; font-size: 9px; }
#switchbtn i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(0,0,0,.65); }
#switchbtn.disabled { border-color: #555; color: #888; }
#ultbtn #ultname { font-size: 14px; }

#leadsel { display: flex; flex-direction: column; gap: 8px; width: min(380px, 92vw); }
button.opcard { color: #eee; border: 1px solid #333; border-left: 4px solid #e8433a; cursor: pointer; font-family: inherit; max-width: none; width: 100%; }
button.opcard.on { background: rgba(255,196,0,.12); border-color: #ffc400; }
.mbtns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
button.big.alt { background: #e8e8e8; }
button.tiny { background: none; border: none; color: #555; font-size: 11px; text-decoration: underline; }

#meta { position: fixed; inset: 0; background: #14161a; display: flex; flex-direction: column; z-index: 5; }
.mtop { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #2c2f36; }
.mtl { font-size: 20px; font-weight: 900; letter-spacing: 3px; flex: 1; }
#mclose { background: #ffc400; border: none; padding: 8px 20px; font-weight: 800; }
#mtabs { display: flex; gap: 4px; padding: 10px 16px 0; }
.mtab { background: #22252b; color: #aaa; border: none; padding: 10px 22px; font-size: 15px; font-weight: 700; }
.mtab.on { background: #2e3239; color: #fff; box-shadow: inset 0 -3px 0 #ffc400; }
.mtab.locked { color: #666; }
#mbody { flex: 1; overflow-y: auto; padding: 14px 16px 40px; -webkit-overflow-scrolling: touch; }
.mhead { border-left: 5px solid #e8433a; background: #1d2025; padding: 12px 16px; margin-bottom: 14px; }
.mname { font-size: 22px; font-weight: 900; }
.mname span { font-size: 12px; color: #999; margin-left: 10px; font-weight: 400; }
.mtrait { font-size: 13px; color: #bbb; margin-top: 4px; }
.mstat { font-size: 13px; color: #ffc400; margin-top: 6px; }
.msec { margin-bottom: 18px; background: #1b1d22; border: 1px solid #2a2d33; }
.mtitle { background: #262930; padding: 8px 12px; font-weight: 800; font-size: 15px; }
.mtitle span { font-size: 12px; color: #888; font-weight: 400; margin-left: 10px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid #25282e; font-size: 13px; }
.mc1 { width: 104px; flex-shrink: 0; font-weight: 700; }
.mc2 { width: 52px; flex-shrink: 0; color: #888; font-size: 12px; }
.mdesc { flex: 1; color: #ccc; line-height: 1.5; }
.mact { flex-shrink: 0; }
.mbtn { min-width: 96px; padding: 7px 10px; background: #ffc400; color: #111; border: none; font-weight: 800; font-size: 13px; display: inline-flex; gap: 6px; justify-content: center; }
.mbtn:disabled { background: #33363d; color: #777; cursor: default; }
.mbtn:disabled .c-lmd, .mbtn:disabled .c-oru { color: #888; }
.mbtn.done { background: #23402d; color: #7be495; }
.mbtn .c-lmd { color: #6b4e00; }
.mbtn .c-oru { color: #9a1030; }
.mmod { display: flex; align-items: center; gap: 10px; padding: 10px 12px 4px; border-top: 1px solid #2f323a; font-size: 14px; }
.mmod b { color: #ff7a6b; }
.mmod .mbtn { margin-left: auto; min-width: 70px; }
#metatoast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: #ffc400; color: #111; padding: 12px 22px; font-weight: 800; }

.card { position: relative; }
.card.op-exu { border-top-color: #e8433a; }
.card.op-nc { border-top-color: #9fd3ff; }
.card.skill { background: #24222a; }
.ctag { position: absolute; right: 10px; top: 10px; font-size: 11px; color: #999; }
.reward { margin-top: 12px; padding: 12px 20px; background: rgba(255,255,255,.05); line-height: 1.9; font-size: 15px; text-align: left; }
.rtotal { border-top: 1px solid #444; margin-top: 6px; padding-top: 6px; font-weight: 800; }

@media (max-width: 600px) {
  #switchbtn { right: 108px; bottom: 34px; width: 62px; height: 62px; }
  .mrow { flex-wrap: wrap; }
  .mc2 { width: auto; }
  .mdesc { flex-basis: 100%; order: 3; }
  .mact { margin-left: auto; }
}

/* ===== v3：卡牌稀有度 ===== */
.testtag { font-size: 11px; color: #111; background: #7be495; padding: 2px 8px; align-self: center; font-weight: 800; }
.card { border-top-color: var(--rc, #ffc400) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 35%, transparent); }
.card:hover { border-color: var(--rc, #ffc400); }
.card .cname { color: var(--rc); }
.crar { display: inline-block; font-size: 11px; font-weight: 800; color: #111; background: var(--rc); padding: 1px 8px; margin-bottom: 6px; }
.card.r-SR { background: linear-gradient(160deg, #2a2236, #1e2026 60%); }
.card.r-SSR { background: linear-gradient(160deg, #3a2c12, #1e2026 60%); animation: ssr 1.6s ease-in-out infinite; }
@keyframes ssr { 50% { box-shadow: 0 0 22px rgba(255,176,32,.55), inset 0 0 0 1px rgba(255,176,32,.6); } }

/* ===== 资料图鉴 ===== */
#codex { position: fixed; inset: 0; background: #14161a; display: flex; flex-direction: column; z-index: 5; }
#cclose { background: #ffc400; border: none; padding: 8px 20px; font-weight: 800; }
#ctabs { display: flex; gap: 4px; padding: 10px 16px 0; overflow-x: auto; }
#cbody { flex: 1; overflow-y: auto; padding: 14px 16px 40px; -webkit-overflow-scrolling: touch; }
.cbody { padding: 0; }
.ctwrap { overflow-x: auto; }
.ctable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ctable th { background: #22252b; color: #aaa; font-weight: 700; text-align: left; padding: 7px 10px; white-space: nowrap; }
.ctable td { padding: 7px 10px; border-top: 1px solid #25282e; color: #ccc; line-height: 1.5; vertical-align: top; }
.ctable td:first-child { color: #fff; font-weight: 700; white-space: nowrap; }
.ctable small { color: #888; font-weight: 400; }
.rtag { display: inline-block; font-size: 11px; font-weight: 800; color: #111; background: var(--rc); padding: 1px 7px; white-space: nowrap; }
.ctable th .rtag { font-size: 11px; }

/* ===== v4：第三人称 ===== */
#jumpbtn { display: none; pointer-events: auto; position: absolute; right: 34px; bottom: 136px; width: 66px; height: 66px; border-radius: 50%;
  border: 3px solid #ddd; background: rgba(0,0,0,.45); color: #fff; font-weight: 800; font-size: 14px; touch-action: none; }
body.touch #jumpbtn { display: block; }
#lockhint { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); font-size: 13px; color: #fff;
  background: rgba(0,0,0,.55); padding: 6px 14px; white-space: nowrap; }
#topinfo, #runcur, #skillinfo, #debug { text-shadow: 0 1px 3px #000, 0 0 6px rgba(0,0,0,.6); }
#debug { color: #333; text-shadow: none; }

/* ===== v5：覆盖层与设置 ===== */
#ov { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
#settings { z-index: 8; }
#setbody { display: flex; flex-direction: column; gap: 6px; width: min(420px, 92vw); }
.srow { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); padding: 10px 14px; font-size: 15px; cursor: pointer; }
.srow span { flex: 1; text-align: left; }
.srow b { width: 52px; text-align: right; color: #ffc400; font-size: 14px; }
.srow input[type=range] { width: 150px; accent-color: #ffc400; }
.srow input[type=checkbox] { width: 20px; height: 20px; accent-color: #ffc400; }
#pausebtn { z-index: 2; }
body.touch #cardhint { display: none; }
#settings { background: rgba(10,11,14,.96); }
button.opcard.locked { opacity: .55; border-left-color: #555 !important; }
button.opcard.partner { background: rgba(127,200,255,.07); }
#leadsel { max-height: 46vh; overflow-y: auto; }
#leadsel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: min(760px, 94vw); max-height: none; overflow: visible; }
#leadsel .opcard { padding: 9px 14px; }
#leadsel .opdesc { font-size: 12px; }
@media (max-width: 600px) {
  #leadsel { grid-template-columns: 1fr; max-height: 40vh; overflow-y: auto; }
  .overlay h1 { font-size: 30px; }
}
#mtabs { overflow-x: auto; flex-shrink: 0; }
.mtab { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 600px) { .mtab { padding: 9px 12px; font-size: 14px; } }
#switchbtn span { font-size: 9px; line-height: 1.1; max-width: 62px; text-align: center; }

/* ===== v3：首次清屏、进化/契约卡、模式选择、合约词条、战绩图 ===== */
#ultbtn.first { border-color: #fff27a; box-shadow: 0 0 28px #ffe066, 0 0 60px rgba(255,224,102,.5); animation: pulse .5s infinite; }
#ultbtn.first #ultcd { opacity: 1; font-weight: 800; color: #fff27a; }
.card.r-EVO { background: linear-gradient(160deg, #4a3a0c, #1e2026 65%); animation: ssr 1.2s ease-in-out infinite; }
.card.r-EVO .crar::before { content: '★ '; }
.card.r-PACT { background: linear-gradient(160deg, #2a1240, #14101c 70%); }
.card.r-PACT .cdesc { color: #d9c2ff; }
#modesel { display: flex; gap: 8px; margin-top: 6px; }
#modesel button { padding: 7px 18px; border-radius: 18px; border: 1px solid #555; background: rgba(255,255,255,.06); color: #ccc; cursor: pointer; font-family: inherit; }
#modesel button.on { background: #ffc400; color: #111; border-color: #ffc400; font-weight: 700; }
#modesel button.off { opacity: .45; cursor: not-allowed; }
#tagsel { width: min(760px, 94vw); display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
#tagsel .tag { padding: 6px 10px; border-radius: 6px; border: 1px solid #5a3030; background: rgba(120,30,30,.2); color: #ddd; cursor: pointer; font-family: inherit; font-size: 12px; text-align: left; }
#tagsel .tag b { color: #ff7a5c; margin-right: 4px; }
#tagsel .tag.on { background: rgba(232,67,58,.55); border-color: #ff5a3c; color: #fff; }
#tagsel .cclv { width: 100%; text-align: center; font-size: 13px; color: #ffb4a0; margin-top: 2px; }
#over .chline { color: #7fe08a; font-size: 14px; margin-top: 6px; }
#sharebtn { margin: 6px 0 2px; }
#share img { max-width: min(420px, 90vw); max-height: 70vh; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
a.btnlink { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.big { background: #ffc400; color: #111; font-size: 18px; font-weight: 900; letter-spacing: 4px; padding: 14px 34px; border-radius: 4px; }
#menu, #over, #share { justify-content: safe center; overflow-y: auto; padding-top: 16px; padding-bottom: 16px; }
#tagsel .tag { letter-spacing: 0; line-height: 1.35; }
#modesel button { letter-spacing: 1px; }

/* ===== 干员档案 + 时装 ===== */
#dossier { position: fixed; inset: 0; background: #14161a; display: flex; flex-direction: column; z-index: 5; }
#dtabs { display: flex; gap: 4px; padding: 10px 16px 0; overflow-x: auto; flex-shrink: 0; }
#dbody { flex: 1; overflow-y: auto; padding: 14px 16px 40px; -webkit-overflow-scrolling: touch; }
.dwrap { display: flex; gap: 24px; max-width: 1000px; margin: 0 auto; }
.dleft { flex: 0 0 320px; text-align: center; }
.dleft canvas { width: 320px; height: 400px; background: radial-gradient(circle at 50% 40%, #2a2e36, #16181c 70%); border: 1px solid #2c2f36; }
.dskinname { margin-top: 8px; color: #ccc; font-weight: 700; letter-spacing: 2px; }
.dright { flex: 1; min-width: 0; }
.dname { font-size: 34px; font-weight: 900; letter-spacing: 3px; }
.dname small { font-size: 14px; color: #888; letter-spacing: 0; }
.dbranch { color: #9aa0a8; margin: 2px 0 10px; }
.dbio { color: #ddd; line-height: 1.7; margin: 0 0 12px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 14px; }
.dtable th { color: #9aa0a8; font-weight: 600; text-align: left; padding: 6px 8px; width: 56px; background: #1b1d22; }
.dtable td { padding: 6px 8px; color: #eee; border-bottom: 1px solid #25282e; }
.dstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.dstats div { background: #1b1d22; border: 1px solid #2a2d33; padding: 10px; text-align: center; }
.dstats b { display: block; font-size: 22px; color: #ffc400; }
.dstats span { font-size: 12px; color: #9aa0a8; }
.dskins { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.dskin { background: #1b1d22; border: 1px solid #2c2f36; padding: 6px; color: #ddd; font-family: inherit; font-size: 12px; cursor: pointer; }
.dskin canvas { display: block; width: 96px; height: 120px; }
.dskin.on { border-color: #ffc400; box-shadow: 0 0 0 1px #ffc400; }
.dskin.lock { color: #666; cursor: default; }
@media (max-width: 700px) {
  .dwrap { flex-direction: column; gap: 12px; }
  .dleft { flex: none; }
  .dleft canvas { width: 240px; height: 300px; }
  .dstats { grid-template-columns: repeat(2, 1fr); }
}
#dclose { background: #ffc400; border: none; padding: 8px 20px; font-weight: 800; margin-left: auto; }

/* ===== 结算页：下一个目标 / 差一点 ===== */
.nearline { margin-top: 6px; font-size: 15px; color: #ffd27a; }
.nearline b { color: #fff; }
.first2x { color: #7fe08a; font-size: 13px; }
.nextgoal { margin: 12px auto 4px; padding: 12px 16px; max-width: 420px; text-align: left; background: rgba(255,196,0,.08); border: 1px solid rgba(255,196,0,.45); border-left: 4px solid #ffc400; }
.nextgoal .ngt { font-size: 12px; color: #ffc400; letter-spacing: 2px; }
.nextgoal .ngn { font-size: 18px; font-weight: 800; margin: 2px 0; }
.nextgoal .ngd { font-size: 13px; color: #bbb; }
.nextgoal .ngs { font-size: 14px; margin-top: 6px; }
.nextgoal .ok { color: #7fe08a; }
.nextgoal button { margin-top: 8px; }
.mearly { margin: 0 0 12px; padding: 8px 12px; background: rgba(127,224,138,.12); border-left: 4px solid #7fe08a; color: #bff0c5; font-weight: 700; }
#share .antenna { color: #ffd27a; font-size: 14px; cursor: pointer; margin-top: 10px; } #share .antenna input { vertical-align: middle; }

/* =====================================================================
   明日方舟机能风 UI（终端 / 工业标识风格）：黑灰底、细线框、黄色强调、
   英文小标签、四角括线、警示斜纹、窄体数字。放在最后，覆盖前面的样式。
   ===================================================================== */
:root {
  --ak-bg: #0d0e10; --ak-panel: rgba(16,17,20,.94); --ak-panel2: #17191d;
  --ak-line: #34373d; --ak-line2: #4a4e55; --ak-text: #ececec; --ak-dim: #8d9199;
  --ak-y: #ffd400; --ak-y2: #ffb800; --ak-red: #ff4a3d; --ak-cyan: #3fd2ff;
  --ak-num: "Bahnschrift", "DIN Alternate", "Roboto Condensed", "Arial Narrow", "Microsoft YaHei", sans-serif;
  --ak-cn: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --ak-stripe: repeating-linear-gradient(-45deg, var(--ak-y) 0 8px, #111 8px 16px);
}
html, body { font-family: var(--ak-cn); background: var(--ak-bg); }
button { letter-spacing: 1px; }

/* —— 通用：英文小标签（data-en） —— */
[data-en]::after { content: attr(data-en); display: block; font-family: var(--ak-num); font-size: 10px; font-weight: 600;
  letter-spacing: 3px; opacity: .6; margin-top: 3px; }
.overlay h2[data-en]::after { font-size: 11px; letter-spacing: 6px; color: var(--ak-y); opacity: .9; margin-top: 6px; }

/* —— 覆盖层底板：暗色 + 细网格 + 扫描线 —— */
.overlay { background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 100% 4px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse at 50% 30%, rgba(30,32,38,.9), rgba(8,9,11,.96) 70%);
  backdrop-filter: blur(4px); }
.overlay h2 { font-weight: 900; letter-spacing: 6px; }

/* —— 按钮：主按钮 = 黄底黑字、切角；次按钮 = 白底；幽灵按钮 = 细线框 —— */
button.big, a.big { position: relative; border-radius: 0; background: var(--ak-y); color: #111; font-size: 18px; font-weight: 900;
  letter-spacing: 6px; padding: 12px 44px 10px 34px; min-width: 190px; text-align: left;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); transition: filter .12s, transform .12s; }
button.big::before, a.big::before { content: ''; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -9px;
  background: #111; transform: rotate(45deg) scale(.7); }
button.big:hover, a.big:hover { filter: brightness(1.08); transform: translateX(2px); }
button.big.alt, a.big.alt { background: #e6e6e6; }
button.ghost { position: relative; border-radius: 0; background: rgba(20,21,24,.7); color: var(--ak-text); border: 1px solid var(--ak-line2);
  padding: 9px 24px 7px; font-size: 14px; font-weight: 700; letter-spacing: 3px; min-width: 120px;
  box-shadow: inset 3px 0 0 var(--ak-y); transition: background .12s, border-color .12s; }
button.ghost:hover { background: rgba(255,212,0,.08); border-color: var(--ak-y); }
button.ghost[data-en]::after { font-size: 9px; letter-spacing: 3px; color: var(--ak-dim); opacity: 1; }
.mbtns { gap: 12px; }

/* —— 主菜单 —— */
#menu { gap: 14px; }
#menu .sysbar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 16px; font-family: var(--ak-num); font-size: 11px; letter-spacing: 3px; color: var(--ak-dim);
  border-bottom: 1px solid var(--ak-line); background: rgba(0,0,0,.35); }
#menu .sysbar .ri { color: var(--ak-y); font-weight: 700; }
#menu .sysbar .blink { color: #6be27d; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
#menu .corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--ak-line2); pointer-events: none; }
#menu .corner.tl { left: 14px; top: 40px; border-right: 0; border-bottom: 0; }
#menu .corner.tr { right: 14px; top: 40px; border-left: 0; border-bottom: 0; }
#menu .corner.bl { left: 14px; bottom: 14px; border-right: 0; border-top: 0; }
#menu .corner.br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
#menu .watermark { position: absolute; right: 3vw; bottom: 4vh; font-family: var(--ak-num); font-weight: 800; font-size: 13vw;
  line-height: .85; letter-spacing: -.02em; color: rgba(255,255,255,.028); text-align: right; pointer-events: none; }
#menu .tag { margin-top: 28px; border: none; background: #111; color: var(--ak-y); font-family: var(--ak-num); font-weight: 700;
  letter-spacing: 4px; padding: 4px 12px; box-shadow: inset 3px 0 0 var(--ak-y); }
#menu h1 { font-weight: 900; letter-spacing: 10px; line-height: 1.1; }
#menu h1 small { display: block; font-family: var(--ak-num); font-size: 13px; letter-spacing: 8px; color: var(--ak-dim); font-weight: 600; margin-top: 8px; }
#menu .hazard { width: min(420px, 80vw); height: 6px; background: var(--ak-stripe); opacity: .9; }
#menu .sub { margin-top: 0; letter-spacing: 3px; }
.wallet { font-family: var(--ak-num); }
#leadsel { gap: 8px; }
button.opcard, .opcard { border-radius: 0; background: rgba(20,21,24,.85); border: 1px solid var(--ak-line); border-left: 4px solid #e8433a;
  position: relative; transition: border-color .12s, background .12s; }
button.opcard.on { background: linear-gradient(90deg, rgba(255,212,0,.14), rgba(255,212,0,.02)); border-color: var(--ak-y); }
button.opcard.on::after { content: 'SELECTED'; position: absolute; right: 8px; top: 6px; font-family: var(--ak-num); font-size: 9px;
  letter-spacing: 2px; color: #111; background: var(--ak-y); padding: 1px 5px; }
.opname { letter-spacing: 2px; }
#modesel button { border-radius: 0; padding: 7px 18px 5px; background: rgba(20,21,24,.8); border: 1px solid var(--ak-line2); color: #bbb; font-weight: 700; }
#modesel button.on { background: var(--ak-y); border-color: var(--ak-y); color: #111; }
#modesel button[data-en]::after { font-size: 9px; letter-spacing: 2px; }
#tagsel .tag { border-radius: 0; border: 1px solid #4a2a2a; background: rgba(60,16,16,.35); box-shadow: inset 3px 0 0 #7a2a2a; }
#tagsel .tag.on { background: rgba(255,74,61,.35); border-color: var(--ak-red); box-shadow: inset 3px 0 0 var(--ak-red); }
.hint { color: var(--ak-dim); }

/* —— HUD：顶栏、经验条、血条、横幅、大招 —— */
#xpbar { height: 5px; background: rgba(0,0,0,.7); border-bottom: 1px solid rgba(255,255,255,.08); }
#xpfill { background: var(--ak-y); box-shadow: 0 0 8px rgba(255,212,0,.6); }
#xpbar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(0,0,0,.6) 39px 40px); }
#topinfo { top: 12px; gap: 0; font-family: var(--ak-num); font-weight: 700; }
#topinfo > span { padding: 3px 14px; background: rgba(10,11,13,.72); border-top: 1px solid var(--ak-line2); border-bottom: 1px solid var(--ak-line2); }
#topinfo > span:first-child { border-left: 3px solid var(--ak-y); }
#topinfo > span:last-child { border-right: 1px solid var(--ak-line2); }
#timer { font-size: 20px; color: #fff; letter-spacing: 2px; }
#hpwrap { top: 50px; height: 14px; border: 1px solid var(--ak-line2); background: rgba(10,11,13,.8); }
#hpwrap::before { content: 'HP'; position: absolute; left: -26px; top: -1px; font-family: var(--ak-num); font-size: 12px; font-weight: 800; color: var(--ak-y); }
#hpfill { background: linear-gradient(90deg, #2fd36b, #8ef0a9); }
#hpwrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(0,0,0,.35) 9px 10px); }
#hptext { font-family: var(--ak-num); font-weight: 700; line-height: 12px; z-index: 1; }
#bossname { font-family: var(--ak-num); letter-spacing: 3px; color: var(--ak-red); }
#bossname::before { content: 'WARNING // '; color: var(--ak-y); }
#bosshp { border-color: #7a2a2a; height: 8px; }
#bossfill { background: linear-gradient(90deg, #b3241b, var(--ak-red)); }
#banner { left: 50%; right: auto; transform: translateX(-50%); min-width: min(560px, 90vw); padding: 9px 28px 9px 34px; font-size: 20px;
  color: #fff; letter-spacing: 4px; text-shadow: none; background: rgba(10,11,13,.86); border-top: 1px solid var(--ak-line2); border-bottom: 1px solid var(--ak-line2);
  box-shadow: inset 6px 0 0 var(--ak-y); animation: bannerIn .22s ease-out; }
#banner::before { content: ''; position: absolute; left: 0; right: 0; top: -6px; height: 3px; background: var(--ak-stripe); opacity: .85; }
@keyframes bannerIn { from { opacity: 0; transform: translateX(-50%) scaleY(.2); } to { opacity: 1; transform: translateX(-50%) scaleY(1); } }
#skillinfo { font-family: var(--ak-cn); }
#ultbtn { border-radius: 0; width: 92px; height: 92px; border: 2px solid var(--ak-line2); background: rgba(10,11,13,.75);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); font-size: 15px; letter-spacing: 1px; }
#ultbtn::before { content: 'SKILL'; position: absolute; left: 6px; top: 4px; font-family: var(--ak-num); font-size: 9px; letter-spacing: 2px; color: var(--ak-dim); z-index: 1; }
#ultfill { background: rgba(255,212,0,.28); }
#ultbtn.ready { border-color: var(--ak-y); color: #fff; box-shadow: none; animation: none; background: rgba(255,212,0,.12); }
#ultbtn.ready::after { content: ''; position: absolute; inset: 3px; border: 1px solid var(--ak-y); animation: pulse2 1s infinite; }
@keyframes pulse2 { 50% { opacity: .2; } }
#ultbtn.first { border-color: #fff27a; box-shadow: none; }
#switchbtn { border-radius: 0 !important; }
#pausebtn { border-radius: 0; border: 1px solid var(--ak-line2); background: rgba(10,11,13,.75); font-size: 12px; }

/* —— 升级选卡：切角卡片 + 稀有度英文标签 —— */
#levelup h2 { margin-bottom: 4px; }
#cards { gap: 16px; }
.card { border-radius: 0; background: var(--ak-panel2); border: 1px solid var(--ak-line); border-top: 0 !important; padding: 18px 16px 14px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.card::before { content: ''; position: absolute; left: 0; top: 0; right: 16px; height: 4px; background: var(--rc, var(--ak-y)); }
.card::after { position: absolute; right: 22px; top: 8px; font-family: var(--ak-num); font-size: 9px; letter-spacing: 2px; color: var(--rc); opacity: .85; }
.card.r-N::after { content: 'STANDARD'; } .card.r-R::after { content: 'RARE'; } .card.r-SR::after { content: 'ELITE'; }
.card.r-SSR::after { content: 'LEGEND'; } .card.r-EVO::after { content: 'EVOLVE'; } .card.r-PACT::after { content: 'ORIGINIUM PACT'; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--rc); }
.card .crar { font-family: var(--ak-num); letter-spacing: 2px; }
.card .ctag { border-radius: 0 !important; }

/* —— 结算 —— */
#over .reporttag { font-family: var(--ak-num); font-size: 12px; letter-spacing: 6px; color: #111; background: var(--ak-y); padding: 3px 14px; }
#overtitle { font-size: 34px; letter-spacing: 10px; }
#overstats .rbox, #overstats > div:not(.nearline):not(.chline):not(.nextgoal) { border-radius: 0; }
.nextgoal { border-radius: 0; background: rgba(20,21,24,.9); border: 1px solid var(--ak-line2); border-left: 4px solid var(--ak-y); }
.nextgoal .ngt { font-family: var(--ak-num); }

/* —— 养成 / 图鉴 / 档案：顶栏 + 页签 —— */
#meta, #codex, #dossier { background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 48px 48px, var(--ak-bg); }
.mtop { border-bottom: 1px solid var(--ak-line); background: rgba(0,0,0,.4); position: relative; }
.mtop::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 160px; height: 3px; background: var(--ak-stripe); }
.mtl { letter-spacing: 6px; font-weight: 900; }
.mtl::after { display: block; font-family: var(--ak-num); font-size: 10px; letter-spacing: 4px; color: var(--ak-y); font-weight: 600; margin-top: 2px; }
#meta .mtl::after { content: 'OPERATOR UPGRADE'; } #codex .mtl::after { content: 'ARCHIVES // PRTS'; } #dossier .mtl::after { content: 'PERSONNEL FILE'; }
#mclose, #cclose, #dclose { border-radius: 0 !important; background: var(--ak-y) !important; color: #111 !important; font-weight: 900 !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); letter-spacing: 3px; }
.mtab { border-radius: 0 !important; background: rgba(20,21,24,.85) !important; border: 1px solid var(--ak-line) !important; border-bottom: 0 !important;
  color: #aaa !important; font-weight: 700; letter-spacing: 2px; }
.mtab.on { background: var(--ak-text) !important; color: #111 !important; box-shadow: inset 0 3px 0 var(--ak-y); }
.msec { border-radius: 0 !important; border: 1px solid var(--ak-line) !important; background: rgba(18,19,22,.9) !important; }
.msec .mtitle, .mtitle { letter-spacing: 3px; }
.dleft canvas { border-radius: 0; border: 1px solid var(--ak-line2); background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(circle at 50% 40%, #2a2e36, #121316 70%); }
.dname { letter-spacing: 6px; }
.dstats div { border-radius: 0; border-top: 2px solid var(--ak-y); }
.dstats b { font-family: var(--ak-num); color: var(--ak-y); }
.dskin { border-radius: 0; }
.dtable th { font-family: var(--ak-cn); letter-spacing: 2px; }

/* —— 分享 / 设置 —— */
#share img { border-radius: 0; box-shadow: 0 0 0 1px var(--ak-line2), 0 10px 40px rgba(0,0,0,.7); }
#settings .setrow, .setrow { border-radius: 0; }

@media (max-width: 700px) {
  #menu .watermark { font-size: 24vw; }
  #menu .sysbar span:nth-child(2) { display: none; }
  button.big, a.big { min-width: 150px; padding: 11px 32px 9px 28px; font-size: 16px; letter-spacing: 4px; }
  #banner { font-size: 16px; letter-spacing: 2px; }
  #ultbtn { width: 80px; height: 80px; }
}
.dtable th { white-space: nowrap; width: 68px; }
.mtitle span { letter-spacing: 1px; }
#over { gap: 10px; }
#over .nextgoal { margin: 6px auto 2px; padding: 10px 14px; }
#over .nextgoal .ngs { margin-top: 4px; }
#over .nextgoal button { margin-top: 6px; }
#menu { gap: 12px; }
#leadsel .opcard { padding: 10px 16px; }
#jumpbtn { border-radius: 0 !important; border: 2px solid var(--ak-line2) !important; background: rgba(10,11,13,.75) !important;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); font-weight: 800; letter-spacing: 2px; }
@media (max-width: 700px) { #menu h1 small { font-size: 10px; letter-spacing: 4px; } #menu h1 { letter-spacing: 6px; } }

/* 局外潜能给的刷新按钮 */
#reroll { margin-top: 16px; padding: 8px 22px; background: transparent; color: var(--ak-y, #ffd400); border: 1px solid var(--ak-y, #ffd400); font-weight: 700; letter-spacing: 1px; cursor: pointer; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
#reroll:hover { background: rgba(255, 212, 0, 0.15); }
#cards { max-width: 1100px; }

/* 技能发动横幅（明日方舟式）：斜切黑条从右侧滑入，左侧是干员代表色的竖条 */
#cutin { position: fixed; left: 0; right: 0; top: 30%; height: 0; pointer-events: none; z-index: 30; }
#cutin .ci-bar { position: absolute; right: -60%; top: 0; height: 74px; width: 60%; display: flex; align-items: center; gap: 18px; padding-left: 34px;
  background: linear-gradient(90deg, rgba(10,10,12,0) 0, rgba(10,10,12,0.92) 12%, rgba(10,10,12,0.92) 100%);
  border-top: 2px solid var(--oc); border-bottom: 2px solid var(--ak-y, #ffd400); clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); opacity: 0; }
#cutin .ci-bar::before { content: ''; position: absolute; left: 7%; top: 0; bottom: 0; width: 8px; background: var(--oc); transform: skewX(-20deg); }
#cutin .ci-tag { margin-left: 8%; font: 700 13px var(--ak-num, sans-serif); color: #111; background: var(--ak-y, #ffd400); padding: 2px 8px; letter-spacing: 2px; }
#cutin .ci-op { color: #bbb; font-size: 16px; letter-spacing: 2px; }
#cutin .ci-sk { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: 4px; text-shadow: 0 0 12px var(--oc); }
#cutin.show .ci-bar { animation: cutin 1.25s cubic-bezier(.2,.9,.2,1) forwards; }
@keyframes cutin { 0% { right: -60%; opacity: 0; } 14% { right: 0; opacity: 1; } 78% { right: 0; opacity: 1; } 100% { right: 4%; opacity: 0; } }
@media (max-width: 700px) { #cutin .ci-bar { width: 92%; height: 56px; } #cutin .ci-sk { font-size: 22px; } @keyframes cutin { 0% { right: -92%; opacity: 0; } 14% { right: 0; opacity: 1; } 78% { right: 0; opacity: 1; } 100% { right: 4%; opacity: 0; } } }
#cutin .ci-icon { width: 58px; height: 58px; margin-left: 8%; border: 2px solid var(--ak-y, #ffd400); background: #111; position: relative; z-index: 1; }
#cutin .ci-icon + .ci-tag { margin-left: 0; }

/* ================= 明日方舟风格 HUD ================= */
#hpwrap, #lv, #skillinfo { display: none !important; }
body:not(.touch) #ultbtn, body:not(.touch) #switchbtn { display: none !important; }

/* 左上：干员卡 */
#opcard { position: absolute; left: 16px; top: 16px; display: flex; align-items: stretch; gap: 0; pointer-events: none; --oc: #ffd400;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
#opcard .oc-ava { position: relative; width: 84px; height: 84px; background: linear-gradient(160deg, #2b2e35, #121317); border: 2px solid var(--oc);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 82% 100%, 0 100%); overflow: hidden; }
#opcard .oc-ava::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.03) 6px 7px); }
#ocava { width: 100%; height: 100%; display: block; }
#oclv { position: absolute; left: 0; bottom: 0; min-width: 30px; padding: 1px 5px; background: var(--ak-y, #ffd400); color: #111; font: 800 15px var(--ak-num, sans-serif); text-align: center; z-index: 1; }
#oclv::before { content: 'LV'; font-size: 8px; margin-right: 2px; vertical-align: 2px; }
#opcard .oc-main { width: 250px; padding: 6px 10px 6px 12px; background: linear-gradient(90deg, rgba(14,15,19,.88), rgba(14,15,19,.55));
  border-top: 2px solid var(--oc); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); display: flex; flex-direction: column; gap: 4px; }
.oc-name { display: flex; align-items: baseline; gap: 8px; }
.oc-name b { color: #fff; font-size: 18px; letter-spacing: 2px; }
.oc-name i { font-style: normal; font-size: 11px; color: #aaa; letter-spacing: 1px; }
.oc-bar { position: relative; height: 12px; background: rgba(255,255,255,.08); overflow: hidden; }
.oc-bar.xp { height: 5px; }
#ochp { height: 100%; background: linear-gradient(90deg, #3ec46d, #8ff0a8); transition: width .15s; }
#ocsh { position: absolute; left: 0; top: 0; height: 100%; background: rgba(120,190,255,.55); }
#ocxp { height: 100%; background: var(--ak-y, #ffd400); }
#ochpt { position: absolute; right: 4px; top: -1px; font: 700 11px var(--ak-num, sans-serif); color: #fff; text-shadow: 0 1px 2px #000; }
#ocbuffs { display: flex; flex-wrap: wrap; gap: 4px; min-height: 16px; }
#ocbuffs .bf { font-size: 10px; color: #ddd; background: rgba(255,255,255,.1); padding: 1px 5px; border-left: 3px solid #888; }
#ocbuffs .bf i { font-style: normal; margin-left: 4px; color: #fff; font-family: var(--ak-num, sans-serif); }
#ocbuffs .bf.y { border-color: #ffd400; } #ocbuffs .bf.b { border-color: #5fb4ff; } #ocbuffs .bf.g { border-color: #4fd88a; }
#ocbuffs .bf.r { border-color: #ff6a3d; } #ocbuffs .bf.p { border-color: #a35cff; } #ocbuffs .bf.x { opacity: .5; }

/* 左下：技能栏 */
#skillbar { position: absolute; left: 16px; bottom: 18px; display: flex; align-items: flex-end; gap: 8px; pointer-events: none; }
#skillbar .sk { position: relative; width: 56px; height: 56px; background: #15161a; border: 2px solid #4a4d55; overflow: visible; }
#skillbar .sk.empty { border-style: dashed; border-color: rgba(255,255,255,.15); background: rgba(0,0,0,.25); }
#skillbar .sk .ic { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; }
#skillbar .sk .ic img { width: 100%; height: 100%; object-fit: cover; }
#skillbar .glyph { font-size: 22px; color: #fff; }
#skillbar .sk .mask { position: absolute; inset: 0; background: conic-gradient(rgba(0,0,0,.72) calc(var(--f) * 360deg), transparent 0); }
#skillbar .sk em { position: absolute; inset: 0; display: grid; place-items: center; font: 800 18px var(--ak-num, sans-serif); font-style: normal; color: #fff; text-shadow: 0 1px 3px #000; }
#skillbar .sk u { position: absolute; right: -2px; bottom: -2px; min-width: 16px; text-decoration: none; text-align: center; background: var(--ak-y, #ffd400); color: #111; font: 800 11px var(--ak-num, sans-serif); }
#skillbar .sk kbd { position: absolute; left: -2px; top: -2px; background: #111; color: #ffd400; font: 700 10px var(--ak-num, sans-serif); padding: 0 4px; border: 1px solid #ffd400; }
#skillbar .sk label { position: absolute; left: 50%; top: -17px; transform: translateX(-50%); white-space: nowrap; font-size: 10px; color: #ccc; text-shadow: 0 1px 2px #000; }
#skillbar .sk:not(.cd):not(.empty) { border-color: #fff; }
#skillbar .sk.on { border-color: #ffd400; box-shadow: 0 0 10px rgba(255,212,0,.6); }
#skillbar .sk.ult { width: 76px; height: 76px; margin-left: 10px; border-radius: 50%; border-width: 3px; }
#skillbar .sk.ult .ic, #skillbar .sk.ult .mask { border-radius: 50%; }
#skillbar .sk.ult.ready { border-color: #ffd400; box-shadow: 0 0 16px #ffd400; animation: pulse 1s infinite; }
#skillbar .sk.ult em { font-size: 24px; }
#skillbar .sk.sw { width: 48px; height: 48px; border-radius: 50%; }
#skillbar .sk.sw .ic, #skillbar .sk.sw .mask { border-radius: 50%; }
body.touch #skillbar .sk.ult, body.touch #skillbar .sk.sw { display: none; }
body.touch #skillbar { bottom: auto; top: 118px; transform: scale(.75); transform-origin: left top; }
@media (max-width: 700px) { #opcard { transform: scale(.78); transform-origin: left top; left: 8px; top: 10px; } }

/* 暂停：战况面板 */
#pause { justify-content: center; }
#pause .pz { width: min(1180px, 96vw); max-height: 94vh; display: flex; flex-direction: column; background: rgba(16,17,21,.96); border: 1px solid #3a3c43;
  border-top: 3px solid var(--ak-y, #ffd400); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); text-align: left; }
.pz-sys { display: flex; justify-content: space-between; padding: 6px 18px; font: 700 11px var(--ak-num, sans-serif); letter-spacing: 2px; color: #777; background: repeating-linear-gradient(135deg, #17181c 0 10px, #1b1c21 10px 20px); }
.pz-sys span:last-child { color: var(--ak-y, #ffd400); }
#pzbody { overflow: auto; padding: 14px 18px; }
.pz-head { display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--oc) 30%, #16171b), #16171b 60%); border-left: 6px solid var(--oc); }
#pzava { width: 96px; height: 96px; background: #0d0e11; border: 2px solid var(--oc); }
.pz-id { flex: 1; min-width: 200px; }
.pz-tag { font-size: 11px; color: #bbb; letter-spacing: 1px; }
.pz-id h3 { margin: 2px 0 6px; font-size: 30px; color: #fff; letter-spacing: 3px; }
.pz-id h3 span { font: 800 16px var(--ak-num, sans-serif); color: #111; background: var(--ak-y, #ffd400); padding: 1px 6px; margin-left: 10px; vertical-align: 5px; letter-spacing: 0; }
.pz-bar { position: relative; height: 10px; background: rgba(255,255,255,.08); margin-top: 5px; max-width: 360px; }
.pz-bar div { height: 100%; } .pz-bar.hp div { background: #3ec46d; } .pz-bar.xp div { background: var(--ak-y, #ffd400); }
.pz-bar i { position: absolute; right: -78px; top: -3px; font: 11px var(--ak-num, sans-serif); color: #aaa; font-style: normal; }
.pz-nums { display: flex; gap: 8px; flex-wrap: wrap; }
.pz-num { min-width: 78px; padding: 6px 10px; background: #0f1013; border-bottom: 2px solid #333; text-align: center; }
.pz-num b { display: block; font: 800 24px var(--ak-num, sans-serif); color: #fff; }
.pz-num small { font-size: 10px; color: #888; letter-spacing: 2px; }
.pz-cols { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 860px) { .pz-cols { grid-template-columns: 1fr; } .pz-bar i { display: none; } }
.pz-cols section { background: #15161a; border: 1px solid #2a2c32; padding: 0 12px 12px; min-height: 200px; }
.pz-cols header { margin: 0 -12px 10px; padding: 7px 12px; font-size: 16px; font-weight: 800; color: #111; letter-spacing: 3px; display: flex; justify-content: space-between; align-items: baseline;
  background: var(--ak-y, #ffd400); clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.pz-cols .c2 header { background: #5fb4ff; } .pz-cols .c3 header { background: #e6e6e6; }
.pz-cols header small { font-size: 10px; font-weight: 400; letter-spacing: 1px; margin-right: 14px; }
.pz-cols h5 { margin: 12px 0 6px; font-size: 11px; color: #888; letter-spacing: 3px; border-bottom: 1px solid #2a2c32; padding-bottom: 3px; }
.pz-skill { display: flex; gap: 10px; padding: 8px; margin-bottom: 6px; background: #1b1c21; border-left: 3px solid #5fb4ff; }
.pz-skill.ult { border-color: var(--ak-y, #ffd400); } .pz-skill.evo { border-color: #ffe066; }
.pz-skill .ic, .pz-card .ic { flex: none; width: 44px; height: 44px; background: #0d0e11; display: grid; place-items: center; overflow: hidden; }
.pz-skill .ic img, .pz-card .ic img { width: 100%; height: 100%; object-fit: cover; }
.pz-skill .glyph, .pz-card .glyph { color: #fff; font-size: 20px; }
.pz-skill h4 { margin: 0 0 3px; font-size: 14px; color: #fff; }
.pz-skill h4 small { margin-left: 8px; font-size: 10px; color: #999; font-weight: 400; }
.pz-skill p { margin: 0; font-size: 11px; line-height: 1.5; color: #bbb; }
.pz-src { display: grid; grid-template-columns: 1fr auto 44px; gap: 2px 8px; align-items: baseline; margin-bottom: 6px; font-size: 12px; color: #ccc; }
.pz-src b { font-family: var(--ak-num, sans-serif); color: #fff; } .pz-src i { font-style: normal; color: #888; text-align: right; }
.pz-src .bar { grid-column: 1 / -1; height: 4px; background: #24262c; } .pz-src .bar div { height: 100%; background: var(--ak-y, #ffd400); }
.pz-cardlist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pz-card { display: flex; align-items: center; gap: 8px; background: #1b1c21; padding: 5px; font-size: 12px; color: #ddd; }
.pz-card .ic { width: 32px; height: 32px; } .pz-card span { flex: 1; } .pz-card b { font-family: var(--ak-num, sans-serif); color: var(--ak-y, #ffd400); }
.pz-card.pact { border-left: 3px solid #a35cff; }
.pz-row { display: flex; justify-content: space-between; padding: 4px 6px; font-size: 12px; color: #bbb; }
.pz-row:nth-of-type(odd) { background: #1a1b20; }
.pz-row b { font-family: var(--ak-num, sans-serif); color: #fff; } .pz-row.hi b { color: var(--ak-y, #ffd400); }
.pz-empty { font-size: 12px; color: #666; padding: 10px 0; }
.pz-btns { display: flex; justify-content: flex-end; gap: 10px; padding: 10px 18px; border-top: 1px solid #2a2c32; }
.pz-btns button { margin: 0; }
.pz-btns .danger { border-color: #ff5b5b; color: #ff8a8a; }
.pz-keys { padding: 0 18px 10px; font-size: 11px; color: #666; text-align: right; }

/* =====================================================================
   绝区零风格主题（ZZZ）：黑底 + 亮黄 + 白色粗描边、粗斜体大字、半调网点、
   贴纸标签、斜切面板、圆角药丸按钮。放在最后，覆盖前面的样式。
   ===================================================================== */
:root {
  --z-y: #ffd500; --z-y2: #ffe94d; --z-pk: #ff3d7f; --z-cy: #22e0d0; --z-ink: #0b0b0f; --z-pan: #17181d; --z-pan2: #22242b;
  --z-font: "Arial Black", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --z-dots: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.4px) 0 0 / 7px 7px;
  --z-tape: repeating-linear-gradient(-45deg, var(--z-y) 0 14px, var(--z-ink) 14px 28px);
}
body { font-family: var(--z-font); }
.overlay h1, .overlay h2, .cname, .opname, #timer, #kills, .pz-num b, .pz-id h3 { font-style: italic; }

/* —— 按钮：药丸形、粗描边、按下弹一下 —— */
button.big, button.ghost, #modesel button, #reroll, .pz-btns button, .mbtns button {
  border-radius: 999px !important; clip-path: none !important; font-style: italic; font-weight: 900; letter-spacing: 2px;
  transition: transform .12s cubic-bezier(.3,1.6,.5,1), box-shadow .12s;
}
button.big { background: var(--z-y) !important; color: var(--z-ink) !important; border: 3px solid var(--z-ink) !important;
  box-shadow: 0 0 0 3px #fff, 5px 6px 0 3px var(--z-ink) !important; padding: 13px 40px !important; font-size: 19px !important; }
button.big:hover { transform: translate(-1px,-2px) rotate(-1deg); box-shadow: 0 0 0 3px #fff, 7px 9px 0 3px var(--z-ink) !important; }
button.big:active { transform: translate(3px,4px); box-shadow: 0 0 0 3px #fff, 1px 1px 0 3px var(--z-ink) !important; }
button.big.alt { background: #fff !important; }
button.ghost { background: var(--z-ink) !important; color: #fff !important; border: 2.5px solid #fff !important; padding: 9px 26px !important; }
button.ghost:hover { background: #fff !important; color: var(--z-ink) !important; }
button.ghost.danger { border-color: var(--z-pk) !important; color: var(--z-pk) !important; }
[data-en]::after { font-style: italic; opacity: .55; }

/* —— 全屏面板的底：黑 + 网点 + 角落黄黑胶带 —— */
.overlay { background: var(--z-dots), radial-gradient(ellipse at 70% 20%, #24262e 0%, #0d0e12 70%) !important; }
.overlay::before { content: ''; position: absolute; left: -40px; top: 26px; width: 360px; height: 26px; background: var(--z-tape); transform: rotate(-8deg); opacity: .9; pointer-events: none; }
#levelup.overlay, #pause.overlay, #over.overlay { background: var(--z-dots), rgba(8,8,11,.82) !important; backdrop-filter: blur(3px); }

/* —— 主菜单：左边大幅干员展示，右边菜单列 —— */
#menu { flex-direction: row; justify-content: flex-end; align-items: stretch; padding: 0; overflow: hidden; }
#menu .menucol { position: relative; z-index: 2; width: min(560px, 100vw); display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  gap: 10px; padding: 28px 26px; background: linear-gradient(100deg, transparent 0, rgba(11,11,15,.88) 14%); overflow-y: auto; }
#menu h1 { font-size: clamp(34px, 5.4vw, 62px) !important; color: #fff; -webkit-text-stroke: 2px var(--z-ink); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--z-y), 8px 8px 0 var(--z-ink); transform: rotate(-3deg); letter-spacing: 2px !important; line-height: 1.05; text-align: center; }
#menu h1 small { display: block; font-size: 13px; letter-spacing: 4px; color: var(--z-y); -webkit-text-stroke: 0; text-shadow: none; margin-top: 8px; }
#menu .tag { background: var(--z-pk); color: #fff; padding: 3px 12px; border-radius: 4px; transform: rotate(-4deg); font-style: italic; font-size: 11px; letter-spacing: 2px; }
#menu .watermark, #menu .corner, #menu .hazard { display: none; }
#hero { position: absolute; inset: 0 auto 0 0; width: 62vw; z-index: 1; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(115deg, var(--hc, #e8433a) 0 38%, transparent 38.2%),
  linear-gradient(115deg, transparent 0 41%, var(--z-y) 41% 42.5%, transparent 42.7%), var(--z-dots); opacity: .95; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(rgba(0,0,0,.22) 2px, transparent 2.4px) 0 0 / 11px 11px;
  mask-image: linear-gradient(115deg, #000 0 38%, transparent 38.2%); -webkit-mask-image: linear-gradient(115deg, #000 0 38%, transparent 38.2%); }
.hero-ghost { position: absolute; left: -2vw; top: 8vh; font: italic 900 22vh/0.85 var(--z-font); color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.18);
  white-space: nowrap; transform: rotate(-8deg); pointer-events: none; }
#herogl, #hero2d { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.hero-plate { position: absolute; left: 4vw; bottom: 6vh; display: flex; flex-direction: column; gap: 6px; transform: rotate(-4deg); }
.hero-plate b { font: italic 900 clamp(34px, 6vw, 72px)/1 var(--z-font); color: #fff; -webkit-text-stroke: 3px var(--z-ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--z-ink); }
.hero-plate span { align-self: flex-start; background: var(--z-ink); color: var(--z-y); padding: 4px 12px; border-radius: 6px; border: 2px solid #fff; font: italic 900 13px var(--z-font); letter-spacing: 2px; }
@media (max-width: 860px) {
  #hero { width: 100vw; height: 46vh; inset: 0 0 auto 0; }
  #menu { flex-direction: column; justify-content: flex-end; }
  #menu .menucol { width: 100vw; margin-top: 40vh; background: linear-gradient(180deg, transparent 0, rgba(11,11,15,.94) 8%); padding-top: 22px; }
  .hero-ghost { font-size: 14vh; }
}

/* 干员选择：绝区零「代理人」卡片 */
#leadsel { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; width: 100% !important; gap: 10px !important; }
button.opcard { position: relative; border: 3px solid var(--z-ink) !important; border-radius: 14px !important; background: var(--z-pan) !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,.22); padding: 10px 12px !important; overflow: hidden; transition: transform .12s, box-shadow .12s; }
button.opcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--oc, #888); }
button.opcard:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 0 0 2px #fff; }
button.opcard.on { background: var(--z-y) !important; box-shadow: 0 0 0 3px #fff, 4px 5px 0 3px var(--z-ink); transform: rotate(-1.2deg); }
button.opcard.on .opname, button.opcard.on .opdesc, button.opcard.on .opname span { color: var(--z-ink) !important; }
button.opcard.partner { box-shadow: 0 0 0 2px var(--z-cy); }
.opname { font-size: 16px; font-weight: 900; color: #fff; } .opname span { display: block; font-size: 10px; font-style: normal; color: #aaa; font-weight: 400; }
.opdesc { font-size: 10px !important; color: #999; margin-top: 4px; }
#modesel button { border: 2.5px solid #fff !important; background: var(--z-ink) !important; color: #fff !important; padding: 8px 20px !important; }
#modesel button.on { background: var(--z-cy) !important; color: var(--z-ink) !important; }
.wallet span { background: var(--z-ink); border: 2px solid #fff; border-radius: 999px; padding: 3px 12px; font-style: italic; }

/* —— 升级选卡：绝区零式「贴纸卡」 —— */
#levelup h2 { font: italic 900 clamp(26px, 4vw, 40px) var(--z-font) !important; color: #fff; -webkit-text-stroke: 2px var(--z-ink); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--z-y); transform: rotate(-2deg); }
#cards { max-width: 1120px !important; gap: 20px !important; perspective: 800px; }
.card { width: 236px !important; min-height: 300px !important; border-radius: 18px !important; border: 4px solid var(--z-ink) !important; padding: 0 !important;
  background: var(--z-pan) !important; box-shadow: 0 0 0 3px #fff, 6px 8px 0 3px var(--z-ink) !important; overflow: hidden; display: flex; flex-direction: column;
  animation: zcard .35s cubic-bezier(.2,1.5,.4,1) both; transition: transform .14s; }
.card:nth-child(2) { animation-delay: .06s; } .card:nth-child(3) { animation-delay: .12s; } .card:nth-child(4) { animation-delay: .18s; }
@keyframes zcard { from { transform: translateY(40px) rotate(6deg) scale(.8); opacity: 0; } }
.card:hover { transform: translateY(-8px) rotate(-1.5deg) scale(1.03) !important; box-shadow: 0 0 0 3px var(--rc), 8px 12px 0 3px var(--z-ink) !important; }
.card::before { content: ''; display: block; height: 108px; flex: none;
  background: radial-gradient(rgba(0,0,0,.25) 2px, transparent 2.4px) 0 0 / 9px 9px, linear-gradient(135deg, var(--rc) 0%, color-mix(in srgb, var(--rc) 55%, #000) 100%); }
.card .cic { position: absolute; left: 50%; top: 54px; transform: translate(-50%,-50%) rotate(-4deg); width: 76px; height: 76px; border-radius: 16px; border: 3px solid var(--z-ink);
  box-shadow: 0 0 0 3px #fff; background: var(--z-ink); overflow: hidden; display: grid; place-items: center; }
.card .cic img { width: 100%; height: 100%; object-fit: cover; }
.card .cic b { font: italic 900 38px var(--z-font); color: #fff; }
.card .crar { position: absolute; right: 10px; top: 10px; background: var(--z-ink); color: var(--rc); border: 2px solid #fff; border-radius: 6px; padding: 1px 8px;
  font: italic 900 13px var(--z-font); transform: rotate(5deg); }
.card .ctag { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--z-ink); border-radius: 6px; padding: 1px 8px; font: 900 10px var(--z-font); transform: rotate(-4deg); }
.card .cname { padding: 14px 16px 2px; font: italic 900 20px var(--z-font) !important; color: #fff !important; }
.card .clv { padding: 0 16px; font: italic 900 12px var(--z-font); color: var(--rc) !important; }
.card .cdesc { padding: 8px 16px 16px; font-size: 12.5px; line-height: 1.55; color: #cfd2d8; }
.card.r-SSR, .card.r-EVO { box-shadow: 0 0 0 3px var(--z-y), 6px 8px 0 3px var(--z-ink), 0 0 30px rgba(255,213,0,.45) !important; }
.card.r-PACT { box-shadow: 0 0 0 3px var(--z-pk), 6px 8px 0 3px var(--z-ink), 0 0 30px rgba(255,61,127,.4) !important; }
#reroll { background: var(--z-ink) !important; color: var(--z-y) !important; border: 2.5px solid var(--z-y) !important; }

/* —— 局内 HUD —— */
#opcard { filter: none; }
#opcard .oc-ava { width: 92px; height: 92px; border: 3px solid #fff; border-radius: 14px; clip-path: none; box-shadow: 0 0 0 3px var(--z-ink), 4px 5px 0 3px var(--z-ink);
  background: radial-gradient(rgba(0,0,0,.25) 1.6px, transparent 2px) 0 0 / 7px 7px, linear-gradient(135deg, var(--oc), color-mix(in srgb, var(--oc) 40%, #000)); transform: rotate(-3deg); }
#opcard .oc-ava::after { display: none; }
#oclv { left: auto; right: -8px; bottom: -8px; border-radius: 8px; border: 2px solid var(--z-ink); background: var(--z-y); font-style: italic; transform: rotate(6deg); }
#opcard .oc-main { margin-left: 10px; width: 270px; border-top: none; clip-path: none; background: none; padding: 4px 0; }
.oc-name b { font-size: 22px; font-style: italic; -webkit-text-stroke: 1px var(--z-ink); text-shadow: 2px 2px 0 var(--z-ink); }
.oc-name i { background: var(--z-ink); color: var(--z-y); padding: 1px 6px; border-radius: 4px; font-style: italic; }
.oc-bar { height: 16px; border-radius: 999px; border: 2.5px solid var(--z-ink); box-shadow: 0 0 0 2px #fff; background: #2a2c33; transform: skewX(-12deg); }
#ochp { background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(0,0,0,.25) 18px 20px), linear-gradient(180deg, #b6ff4a, #43d16a); border-radius: 999px; }
#ochpt { font: italic 900 12px var(--z-font); top: -1px; transform: skewX(12deg); -webkit-text-stroke: .5px #000; }
.oc-bar.xp { height: 8px; border-width: 2px; box-shadow: 0 0 0 1.5px #fff; }
#ocxp { background: var(--z-y); }
#ocbuffs .bf { border: 2px solid var(--z-ink); border-left-width: 2px; border-radius: 6px; background: #fff; color: var(--z-ink); font-weight: 900; font-style: italic; }
#ocbuffs .bf i { color: var(--z-ink); }
#ocbuffs .bf.y { background: var(--z-y); } #ocbuffs .bf.b { background: #8fd0ff; } #ocbuffs .bf.g { background: #b6ff4a; } #ocbuffs .bf.r { background: #ff8a5c; } #ocbuffs .bf.p { background: #d7a2ff; }

#skillbar { gap: 12px; }
#skillbar .sk { border-radius: 16px; border: 3px solid var(--z-ink) !important; box-shadow: 0 0 0 2.5px #fff, 3px 4px 0 2.5px var(--z-ink); background: var(--z-pan); transform: rotate(-3deg); }
#skillbar .sk .ic, #skillbar .sk .mask { border-radius: 13px; }
#skillbar .sk.empty { box-shadow: 0 0 0 2px rgba(255,255,255,.25); border-style: solid !important; }
#skillbar .sk.on { box-shadow: 0 0 0 3px var(--z-y), 3px 4px 0 3px var(--z-ink), 0 0 18px var(--z-y); }
#skillbar .sk em { font: italic 900 20px var(--z-font); -webkit-text-stroke: 1.5px var(--z-ink); paint-order: stroke fill; }
#skillbar .sk u { border-radius: 6px; border: 2px solid var(--z-ink); font-style: italic; right: -8px; bottom: -8px; }
#skillbar .sk kbd { border-radius: 6px; background: #fff; color: var(--z-ink); border: 2px solid var(--z-ink); font: italic 900 12px var(--z-font); left: -10px; top: -10px; transform: rotate(-8deg); }
#skillbar .sk label { font: italic 900 11px var(--z-font); color: #fff; -webkit-text-stroke: .6px #000; top: -20px; }
#skillbar .sk.ult { width: 84px; height: 84px; border-radius: 50%; transform: none; box-shadow: 0 0 0 3px #fff, 0 0 0 7px var(--z-ink); }
#skillbar .sk.ult.ready { box-shadow: 0 0 0 3px var(--z-y), 0 0 0 7px var(--z-ink), 0 0 26px var(--z-y); }
#skillbar .sk.sw { border-radius: 50%; transform: none; }

#topinfo { gap: 10px !important; }
#timer { background: var(--z-ink); color: #fff; padding: 2px 16px; border-radius: 999px; border: 2.5px solid #fff; font: italic 900 22px var(--z-font) !important; transform: skewX(-8deg); }
#kills { background: var(--z-y); color: var(--z-ink); padding: 2px 12px; border-radius: 999px; border: 2.5px solid var(--z-ink); font: italic 900 14px var(--z-font) !important; transform: rotate(-3deg); }
#xpbar { height: 7px !important; background: rgba(0,0,0,.5) !important; } #xpfill { background: linear-gradient(90deg, var(--z-y), #fff59a) !important; }
#banner { font: italic 900 26px var(--z-font) !important; color: #fff; -webkit-text-stroke: 2px var(--z-ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--z-y);
  background: none !important; border: none !important; }
#bossbar #bosshp { border: 3px solid var(--z-ink); border-radius: 999px; box-shadow: 0 0 0 2px #fff; transform: skewX(-12deg); overflow: hidden; }
#bossfill { background: repeating-linear-gradient(90deg, transparent 0 24px, rgba(0,0,0,.25) 24px 26px), linear-gradient(180deg, #ff7a9c, var(--z-pk)) !important; }
#bossname { font: italic 900 16px var(--z-font); color: #fff; -webkit-text-stroke: 1px #000; }
#pausebtn { border-radius: 12px !important; border: 2.5px solid #fff !important; background: var(--z-ink) !important; color: var(--z-y) !important; }

/* —— 大招特写：整条斜切色带 + 网点 + 超大斜体技能名 —— */
#cutin { top: 26%; }
#cutin .ci-bar { height: 118px; width: 100vw; right: -100vw; clip-path: none; border: none; padding-left: 0; gap: 0; transform: skewY(-6deg);
  background: var(--z-dots), linear-gradient(90deg, var(--z-ink) 0 14%, var(--oc) 14% 15.5%, var(--z-ink) 15.5%); border-top: 4px solid #fff; border-bottom: 4px solid var(--z-y); }
#cutin .ci-bar::before { left: 0; right: 0; width: auto; top: auto; bottom: -14px; height: 10px; background: var(--z-tape); transform: none; }
#cutin .ci-icon { width: 84px; height: 84px; margin-left: 6vw; border: 3px solid #fff; border-radius: 16px; box-shadow: 4px 5px 0 var(--z-ink); transform: rotate(-6deg) skewY(6deg); }
#cutin .ci-tag { margin-left: 3vw; border-radius: 6px; font-style: italic; transform: skewY(6deg); }
#cutin .ci-op { margin-left: 14px; font: italic 900 18px var(--z-font); color: var(--oc); transform: skewY(6deg); }
#cutin .ci-sk { margin-left: 16px; font: italic 900 clamp(34px, 6vw, 64px) var(--z-font); color: #fff; -webkit-text-stroke: 2px var(--z-ink); paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--oc); letter-spacing: 3px; transform: skewY(6deg); }
@keyframes cutin { 0% { right: -100vw; opacity: 1; } 12% { right: 0; } 80% { right: 0; opacity: 1; } 100% { right: 30vw; opacity: 0; } }

/* —— 暂停 / 结算 / 养成面板 —— */
#pause .pz { border-radius: 22px; border: 4px solid var(--z-ink) !important; border-top: 4px solid var(--z-ink) !important; clip-path: none; box-shadow: 0 0 0 3px #fff, 10px 12px 0 3px var(--z-ink); background: var(--z-pan) !important; }
.pz-sys { background: var(--z-tape) !important; color: var(--z-ink) !important; border-radius: 18px 18px 0 0; }
.pz-sys span { background: var(--z-ink); color: var(--z-y) !important; padding: 0 10px; border-radius: 4px; }
.pz-head { border-left: none !important; border-radius: 16px; background: var(--z-dots), linear-gradient(110deg, var(--oc) 0 30%, var(--z-pan2) 30.3%) !important; }
#pzava { border-radius: 14px; border: 3px solid #fff !important; box-shadow: 4px 5px 0 var(--z-ink); transform: rotate(-3deg); }
.pz-id h3 { -webkit-text-stroke: 1.5px var(--z-ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--z-ink); }
.pz-num { border-radius: 12px; border: 2.5px solid var(--z-ink) !important; background: #fff !important; transform: rotate(-2deg); }
.pz-num b { color: var(--z-ink) !important; } .pz-num small { color: #555 !important; }
.pz-cols section { border-radius: 16px; border: 3px solid var(--z-ink) !important; background: var(--z-pan2) !important; box-shadow: 0 0 0 2px rgba(255,255,255,.18); overflow: hidden; }
.pz-cols header { clip-path: none !important; border-bottom: 3px solid var(--z-ink); font-style: italic; }
.pz-skill, .pz-card { border-radius: 10px; } .pz-skill .ic, .pz-card .ic { border-radius: 10px; border: 2px solid var(--z-ink); }
#over h2 { font: italic 900 44px var(--z-font) !important; -webkit-text-stroke: 2px var(--z-ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--z-y); transform: rotate(-3deg); }
#over .reporttag { background: var(--z-pk); color: #fff; border-radius: 6px; padding: 3px 12px; font-style: italic; transform: rotate(-3deg); }
#meta, #codex, #dossier { background: var(--z-dots), #101115 !important; }
.mtop { background: var(--z-ink) !important; border-bottom: 4px solid var(--z-y) !important; }
.mtl { font: italic 900 24px var(--z-font) !important; color: #fff; text-shadow: 3px 3px 0 var(--z-y); }
#mtabs button, #ctabs button, #dtabs button { border-radius: 999px !important; border: 2.5px solid #fff !important; background: var(--z-ink) !important; color: #fff !important; font-style: italic; font-weight: 900; }
#mtabs button.on, #ctabs button.on, #dtabs button.on { background: var(--z-y) !important; color: var(--z-ink) !important; }
.mnote { color: #888; font-size: 12px; padding: 6px 0; }
#kills { color: var(--z-ink) !important; background: var(--z-y) !important; }
.wallet .testtag { background: var(--z-pk) !important; color: #fff !important; }
.testtag.hidden { display: none !important; }
#menu .sysbar { font-size: 10px; } #menu .tag { position: relative; z-index: 3; }
.card::before { position: relative !important; left: auto !important; top: auto !important; right: auto !important; width: 100%; }
.card::after { display: none !important; }
.card .cname, .card .clv, .card .cdesc { position: relative; z-index: 1; }

/* —— 手机触屏按钮：绝区零式圆形大按钮 —— */
body.touch #ultbtn, body.touch #jumpbtn, body.touch #switchbtn { clip-path: none !important; border-radius: 50% !important; border: 3px solid var(--z-ink) !important;
  box-shadow: 0 0 0 3px #fff, 3px 4px 0 3px var(--z-ink) !important; font-style: italic; font-weight: 900; }
body.touch #ultbtn { background: var(--z-pan) !important; color: #fff !important; }
body.touch #ultbtn.ready { background: var(--z-y) !important; color: var(--z-ink) !important; box-shadow: 0 0 0 3px #fff, 3px 4px 0 3px var(--z-ink), 0 0 22px var(--z-y) !important; }
body.touch #jumpbtn { background: #fff !important; color: var(--z-ink) !important; }
body.touch #switchbtn { background: var(--z-cy) !important; color: var(--z-ink) !important; }

@media (max-width: 860px) {
  #menu .menucol { justify-content: flex-start; margin-top: 34vh; padding-bottom: 40px; }
  #hero { height: 40vh; }
  .hero-plate { bottom: 2vh; }
  #menu h1 { font-size: 34px !important; }
  /* 选卡：手机上横向排列的紧凑卡 */
  #cards { flex-direction: column; flex-wrap: nowrap; gap: 12px !important; width: 94vw; }
  .card { width: 100% !important; min-height: 0 !important; flex-direction: column; padding: 0 0 0 96px !important; animation-name: zcardm; }
  @keyframes zcardm { from { transform: translateX(60px); opacity: 0; } }
  .card::before { position: absolute !important; left: 0 !important; top: 0 !important; bottom: 0; width: 86px !important; height: auto !important; }
  .card .cic { left: 43px; top: 50%; width: 58px; height: 58px; }
  .card .crar { top: 6px; right: 8px; } .card .ctag { left: auto; right: 64px; top: 6px; }
  .card .cname { padding: 10px 12px 0; font-size: 17px !important; } .card .clv { padding: 0 12px; } .card .cdesc { padding: 4px 12px 10px; font-size: 12px; }
  /* 局内：计时器挪到小地图下面，免得和干员卡重叠 */
  #topinfo { left: auto !important; right: 10px !important; top: 150px !important; transform: none !important; flex-direction: column; align-items: flex-end; }
  #timer { font-size: 17px !important; } #kills { font-size: 12px !important; }
  #opcard .oc-main { width: 200px; }
}
#menu .menucol > * { flex-shrink: 0; }
@media (max-width: 860px) { #leadsel { grid-template-columns: 1fr 1fr !important; max-height: none !important; overflow: visible !important; } }
@media (max-width: 860px) { #menu .sysbar { display: none; } }

/* —— 罗德岛基建 —— */
.mtab.base { background: var(--z-y, #ffd500); color: #111; font-weight: 900; }
.mtab.base.on { outline: 2px solid #fff; }
.mhead.base { border-color: #ffd500; }
.bico { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; background: #ffd500; color: #111; font-weight: 900; border-radius: 4px; font-size: 12px; transform: skew(-8deg); }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 10px; height: 10px; background: #3a3d44; transform: skew(-12deg); }
.pips i.on { background: #ffd500; box-shadow: 0 0 6px rgba(255,213,0,.6); }

/* —— 卡牌体系：标签 / 放逐 / 锁定 / 套装 —— */
.ctags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.tg { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 3px; background: color-mix(in srgb, var(--tc) 22%, #111); color: var(--tc); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); transform: skew(-8deg); display: inline-block; }
.tg.f { border-style: dashed; }
.tgn { font-size: 10px; color: #ffd500; margin: 0 4px 0 1px; font-style: italic; }
.card .cops { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.card .cop { flex: 1; font-size: 11px; font-weight: 800; padding: 4px 0; border-radius: 999px; border: 1px solid #555; background: #1a1b20; color: #bbb; cursor: pointer; }
.card .cop:hover:not(:disabled) { border-color: #ffd500; color: #ffd500; }
.card .cop:disabled { opacity: .35; cursor: default; }
.card .cop.on { background: #ffd500; color: #111; border-color: #ffd500; }
.card { padding-bottom: 40px !important; cursor: pointer; }
.card.locked { box-shadow: 0 0 0 3px #ffd500, 0 0 24px rgba(255,213,0,.35) !important; }
.card.weapon .crar::after { content: ' · 武器'; }
.card.weapon { --rc: #ff9a3c !important; }
#setbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 10px; min-height: 22px; }
#setbar .sb { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 3px; background: #15161a; color: #999; border: 1px solid #333; transform: skew(-8deg); }
#setbar .sb b { color: #fff; margin-left: 3px; }
#setbar .sb.on { color: var(--tc); border-color: var(--tc); box-shadow: 0 0 10px color-mix(in srgb, var(--tc) 40%, transparent); }
#setbar .sb em { font-style: normal; margin-left: 5px; background: var(--tc); color: #111; padding: 0 4px; border-radius: 2px; }
.pz-sets { display: grid; gap: 4px; margin-bottom: 10px; }
.pz-set { display: grid; grid-template-columns: 64px 34px 1fr; gap: 6px; align-items: center; font-size: 12px; padding: 4px 6px; background: #17181c; border-left: 3px solid #333; color: #888; }
.pz-set b { color: #ccc; } .pz-set i { font-style: normal; color: #aaa; }
.pz-set.on { border-left-color: var(--tc); color: #ddd; } .pz-set.on b { color: var(--tc); }
.mbuild { margin-left: 10px; font-size: 12px; font-weight: 900; color: #111; background: #ffd500; padding: 2px 8px; border-radius: 3px; transform: skew(-8deg); display: inline-block; }
.mbuild em { font-style: normal; font-weight: 700; margin-left: 6px; opacity: .7; }
@media (max-width: 760px) { .card .cop { font-size: 10px; padding: 3px 0; } .tg { font-size: 10px; } }
#skillbar .wbar { display: grid; grid-template-columns: repeat(3, 30px); gap: 4px; margin-left: 6px; align-self: flex-end; }
#skillbar .wp { position: relative; width: 30px; height: 30px; background: #15161a; border: 2px solid #5a4630; }
#skillbar .wp.cls { border-color: #c98a3c; } #skillbar .wp.own { border-color: #ffd500; box-shadow: 0 0 8px rgba(255,213,0,.45); }
#skillbar .wp .ic { position: absolute; inset: 0; overflow: hidden; } #skillbar .wp .ic img { width: 100%; height: 100%; }
#skillbar .wp .mask { position: absolute; inset: 0; background: conic-gradient(rgba(0,0,0,.65) calc(var(--f) * 360deg), transparent 0); }
#skillbar .wp u { position: absolute; right: -3px; bottom: -4px; font: italic 900 10px sans-serif; text-decoration: none; background: #ffd500; color: #111; padding: 0 3px; }
.pz-sets { grid-column: 1 / -1; }
.pz-set span { line-height: 1.35; }
.pips { margin-right: 14px; } .pips i { width: 8px; height: 9px; }
/* —— 地图选择 —— */
#mapsel { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 4px; }
#mapsel .mapbtn { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 14px; border-radius: 10px; border: 2px solid #444; background: #15161a; color: #ccc; cursor: pointer; transform: skew(-6deg); min-width: 150px; }
#mapsel .mapbtn b { font-size: 14px; font-weight: 900; } #mapsel .mapbtn small { font-size: 9px; letter-spacing: 2px; opacity: .6; }
#mapsel .mapbtn.on { border-color: #ffd500; color: #111; background: #ffd500; }
#mapsel .mapdesc { width: 100%; text-align: center; font-size: 12px; color: #9a9ea6; line-height: 1.5; }
/* —— 超频阶段 —— */
body.overclock #hud::after { content: 'OVERCLOCK · 超频'; position: absolute; top: 64px; left: 50%; transform: translateX(-50%) skew(-10deg); font: italic 900 13px sans-serif; letter-spacing: 3px; color: #111; background: linear-gradient(90deg, #ff3d7f, #ffd500); padding: 3px 14px; animation: ocpulse 1s ease-in-out infinite; pointer-events: none; }
body.overclock #hud { box-shadow: inset 0 0 60px rgba(255, 61, 127, .25); }
@keyframes ocpulse { 50% { filter: brightness(1.4); } }
/* —— 新手指引卡 —— */
#tip { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%) skew(-4deg); width: min(440px, 88vw); background: #121318; border: 2px solid #ffd500; box-shadow: 6px 6px 0 rgba(255,213,0,.35); padding: 10px 14px 12px; color: #ddd; z-index: 40; pointer-events: auto; animation: tipin .25s ease-out; }
#tip .tip-k { font: italic 900 10px sans-serif; letter-spacing: 3px; color: #ffd500; margin-bottom: 4px; }
#tip b { display: block; font-size: 16px; font-weight: 900; color: #fff; margin-bottom: 4px; }
#tip p { margin: 0; font-size: 13px; line-height: 1.55; color: #c9ccd2; }
#tip .tip-x { position: absolute; right: 10px; top: 8px; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; border: 1px solid #ffd500; background: transparent; color: #ffd500; cursor: pointer; }
@keyframes tipin { from { opacity: 0; transform: translateX(-50%) translateY(16px) skew(-4deg); } }
body.touch #tip { bottom: auto; top: 150px; }

/* ================= v6：界面整理（统一成明日方舟风格的扁平面板，去掉层层叠加的旧样式） ================= */
:root { --u-bg: rgba(14,15,19,.82); --u-line: rgba(255,255,255,.14); --u-y: #ffd400; --u-txt: #e8e9ec; --u-dim: #9aa0aa; }
/* 顶部：经验条贯穿 + 中间计时 */
#xpbar { height: 6px !important; background: rgba(0,0,0,.65) !important; z-index: 3; }
#xpfill { background: linear-gradient(90deg, #ffb800, #ffe45c) !important; box-shadow: 0 0 8px rgba(255,212,0,.6); }
#topinfo { top: 14px !important; gap: 0 !important; align-items: baseline; }
#topinfo > span { background: none !important; border: none !important; padding: 0 10px !important; font-family: var(--ak-num, sans-serif); }
#topinfo #timer { font-size: 30px; font-weight: 800; letter-spacing: 1px; color: #fff; }
#topinfo #kills { font-size: 13px; color: var(--u-dim); }
#runcur { display: none !important; }
/* 左上：干员卡（去掉倾斜和厚描边）+ 当前构筑 */
#opcard { left: 14px !important; top: 14px !important; filter: none !important; }
#opcard .oc-ava { width: 64px !important; height: 64px !important; border: 2px solid var(--oc) !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; clip-path: none !important; }
#opcard .oc-main { width: 230px !important; margin-left: 0 !important; padding: 4px 10px !important; background: var(--u-bg) !important; border-left: none; }
#opcard .oc-name b { font-size: 15px; } #opcard .oc-name i { font-size: 11px; color: var(--u-dim); }
#buildbar { position: absolute; left: 14px; top: 86px; pointer-events: none; }
#buildbar .brow, #lvbuild .brow { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; max-width: 300px; }
#buildbar .bs, #lvbuild .bs { position: relative; width: 34px; height: 34px; background: rgba(14,15,19,.75); border: 1px solid var(--u-line); }
#buildbar .brow.p .bs { width: 26px; height: 26px; }
#buildbar .bs.empty, #lvbuild .bs.empty { border-style: dashed; background: rgba(0,0,0,.25); }
#buildbar .bs .ic, #lvbuild .bs .ic { position: absolute; inset: 1px; overflow: hidden; display: grid; place-items: center; font-size: 10px; color: #fff; }
#buildbar .bs .ic img, #lvbuild .bs .ic img { width: 100%; height: 100%; object-fit: cover; }
#buildbar .bs u, #lvbuild .bs u { position: absolute; right: -3px; bottom: -3px; min-width: 13px; padding: 0 2px; text-decoration: none; text-align: center; background: var(--u-y); color: #111; font: 800 10px/13px var(--ak-num, sans-serif); }
#buildbar .brow.w .bs:not(.empty) { border-color: #ff9b3d; }
/* 底部中间：技能 / 大招 / 切换（同一排，扁平方块） */
#skillbar { left: 50% !important; bottom: 18px !important; transform: translateX(-50%) !important; gap: 10px !important; align-items: flex-end !important; }
#skillbar .sk { transform: none !important; border-radius: 0 !important; border: 2px solid var(--u-line) !important; box-shadow: none !important; background: var(--u-bg) !important; width: 50px !important; height: 50px !important; }
#skillbar .sk .ic, #skillbar .sk .mask { border-radius: 0 !important; }
#skillbar .sk.ult { width: 72px !important; height: 72px !important; border-radius: 50% !important; border-width: 3px !important; margin: 0 6px !important; }
#skillbar .sk.ult .ic, #skillbar .sk.ult .mask { border-radius: 50% !important; }
#skillbar .sk.ult.ready { border-color: var(--u-y) !important; box-shadow: 0 0 18px rgba(255,212,0,.7) !important; }
#skillbar .sk.sw { width: 44px !important; height: 44px !important; border-radius: 50% !important; }
#skillbar .sk.sw .ic, #skillbar .sk.sw .mask { border-radius: 50% !important; }
#skillbar .sk label { font-size: 11px !important; top: -18px !important; color: var(--u-txt) !important; }
#skillbar .wbar { display: none !important; }
#debug { display: none !important; }
/* 新手提示：顶部中间一条，不挡战场 */
#tip { top: 64px !important; bottom: auto !important; transform: translateX(-50%) !important; width: min(520px, 90vw) !important; padding: 8px 34px 8px 14px !important; background: var(--u-bg) !important;
  border: none !important; border-left: 3px solid var(--u-y) !important; box-shadow: none !important; animation: tipin .2s ease-out; }
#tip b { font-size: 14px !important; display: inline !important; margin-right: 8px; color: var(--u-y) !important; }
#tip p { display: inline; font-size: 13px !important; }
#tip .tip-x { right: 6px !important; top: 50% !important; transform: translateY(-50%); border: none !important; font-size: 16px !important; padding: 0 6px !important; color: var(--u-dim) !important; }
/* 升级选卡：标题一行、卡片统一、底部是构筑和按钮 */
#levelup { background: rgba(8,9,12,.78) !important; backdrop-filter: blur(3px); justify-content: center; gap: 18px; }
#levelup::before, #levelup::after { display: none !important; }
.lv6-head { display: flex; align-items: baseline; gap: 12px; }
.lv6-head h2 { margin: 0 !important; font-size: 30px !important; color: #fff !important; letter-spacing: 6px; transform: none !important; text-shadow: none !important; }
.lv6-head h2::after, .lv6-head h2::before { display: none !important; }
#lvtitle { font: 800 22px var(--ak-num, sans-serif); color: var(--u-y); }
.lv6-head .hint { font-size: 13px; color: var(--u-dim); }
#cards { gap: 16px !important; max-width: 980px !important; }
#cards .card { width: 270px !important; min-height: 250px !important; padding: 0 !important; display: flex; flex-direction: column; border-radius: 0 !important; transform: none !important; clip-path: none !important;
  background: linear-gradient(180deg, #23252c, #17181c) !important; border: 1px solid var(--u-line) !important; border-top: 3px solid var(--rc) !important; box-shadow: 0 8px 22px rgba(0,0,0,.45) !important; cursor: pointer; transition: transform .12s, border-color .12s; }
#cards .card:hover { transform: translateY(-6px) !important; border-color: var(--rc) !important; }
#cards .card::before, #cards .card::after { display: none !important; }
#cards .card > :not(.c6-kind):not(.c6-head):not(.cdesc):not(.ctags) { display: none !important; }
#cards .c6-kind { display: flex; justify-content: space-between; padding: 8px 14px 0; font-size: 12px; font-weight: 800; color: var(--kc); letter-spacing: 1px; }
#cards .c6-kind span { color: var(--rc); font-weight: 700; }
#cards .c6-head { display: flex; gap: 12px; align-items: center; padding: 10px 14px 6px; }
#cards .card .cic { position: static !important; transform: none !important; width: 64px !important; height: 64px !important; flex: none; border-radius: 0 !important; border: 1px solid var(--u-line) !important; box-shadow: none !important; background: #0f1013 !important; overflow: hidden; display: grid; place-items: center; }
#cards .card .cname { font-size: 19px !important; font-weight: 900 !important; color: #fff !important; padding: 0 !important; transform: none !important; }
#cards .card .clv { padding: 0 !important; margin-top: 4px; font: 700 12px var(--ak-num, sans-serif) !important; color: var(--u-dim) !important; display: flex; align-items: center; gap: 8px; }
#cards .card .clv .new { color: var(--u-y); font-size: 13px; }
#cards .pips { display: inline-flex; gap: 3px; } #cards .pips i { width: 10px; height: 4px; background: rgba(255,255,255,.15); }
#cards .pips i.h { background: var(--rc); } #cards .pips i.n { background: #fff; animation: pulse 1s infinite; }
#cards .card .cdesc { flex: 1; padding: 6px 14px 10px !important; font-size: 14px !important; line-height: 1.6 !important; color: #d2d5db !important; }
#cards .card .ctags { display: flex !important; flex-wrap: wrap; gap: 4px; padding: 8px 14px 12px; border-top: 1px solid rgba(255,255,255,.06); }
#cards .card .ctags .tgn { display: none; }
#cards .sethint { font-style: normal; font-size: 11px; font-weight: 800; color: #111; background: var(--tc); padding: 1px 6px; }
#cards.banish .card { border-top-color: #ff4d4d !important; filter: saturate(.6); }
#cards.banish .card:hover { filter: none; box-shadow: 0 0 0 2px #ff4d4d !important; }
.lv6-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; width: min(980px, 94vw); }
.lv6-build small { font-size: 11px; color: var(--u-dim); letter-spacing: 2px; }
#lvbuild .brow { max-width: 640px; } #lvbuild .bs { width: 38px; height: 38px; } #lvbuild .brow.p .bs { width: 30px; height: 30px; }
.lv6-ops { display: flex; gap: 10px; }
.lv6-ops button { all: unset; cursor: pointer; padding: 9px 16px; background: var(--u-bg); border: 1px solid var(--u-line); color: var(--u-txt); font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.lv6-ops button b { color: var(--u-y); font-family: var(--ak-num, sans-serif); }
.lv6-ops button kbd { font: 700 10px var(--ak-num, sans-serif); color: var(--u-dim); border: 1px solid var(--u-line); padding: 0 4px; }
.lv6-ops button:hover:not(:disabled) { border-color: var(--u-y); }
.lv6-ops button:disabled { opacity: .35; cursor: default; }
#banbtn.on { border-color: #ff4d4d; color: #ff8080; }
#reroll { margin: 0 !important; clip-path: none !important; }
@media (max-width: 900px) { #cards .card { width: 30vw !important; min-height: 220px !important; } .lv6-foot { flex-direction: column; align-items: stretch; } }
body.touch #skillbar { top: auto !important; bottom: 18px !important; transform: translateX(-50%) scale(.85) !important; transform-origin: bottom center; }
#levelup .lv6-ops #reroll { all: unset !important; cursor: pointer !important; padding: 9px 16px !important; background: var(--u-bg) !important; border: 1px solid var(--u-line) !important; color: var(--u-txt) !important; font-size: 14px !important; font-weight: 700 !important; display: flex !important; gap: 8px; align-items: center; clip-path: none !important; box-shadow: none !important; transform: none !important; }
#levelup .lv6-ops #reroll:disabled { opacity: .35 !important; }
#cards .card { min-height: 210px !important; }

/* ===== v7 多级菜单 ===== */
.mpanel { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(520px, 92vw); margin-top: 10px; }
.mpanel.hidden { display: none !important; }
.leadpick { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-left: 5px solid var(--oc, #e8433a); transition: background .15s; }
.leadpick:hover { background: rgba(255,255,255,.1); }
.leadpick span { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.leadpick small { font-size: 11px; letter-spacing: 3px; color: #8a8f99; }
.leadpick b { font-size: 22px; font-weight: 900; color: #fff; }
.leadpick em { font-style: normal; font-size: 12px; color: #aab; }
.leadpick u { text-decoration: none; color: #ffc400; font-weight: 800; font-size: 14px; }
#gobtn.mm { width: 100%; padding: 18px 0 !important; font-size: 24px !important; }
.mmgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
button.mm2 { all: unset; cursor: pointer; box-sizing: border-box; padding: 14px 10px; text-align: center; font-weight: 900; font-size: 17px; letter-spacing: 3px; color: #eee; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); transition: background .15s, border-color .15s; }
button.mm2:hover { background: rgba(255,196,0,.14); border-color: #ffc400; }
button.mm2.wide { width: 100%; text-align: left; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
button.mm2 small { font-size: 12px; font-weight: 400; letter-spacing: 0; color: #9aa; }
.mphead { width: 100%; display: flex; align-items: center; gap: 12px; }
.mphead b { font-size: 20px; font-weight: 900; letter-spacing: 4px; color: #fff; }
button.mback { all: unset; cursor: pointer; padding: 6px 12px; color: #ffc400; font-weight: 800; border: 1px solid rgba(255,196,0,.5); }
button.mback:hover { background: rgba(255,196,0,.15); }
.mtabs2 { display: flex; width: 100%; border-bottom: 2px solid rgba(255,255,255,.12); }
.mtabs2 button { all: unset; cursor: pointer; flex: 1; text-align: center; padding: 10px 0; font-weight: 800; letter-spacing: 3px; color: #8a8f99; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.mtabs2 button.on { color: #fff; border-bottom-color: #ffc400; }
.ptab { width: 100%; max-height: 46vh; overflow-y: auto; }
.ptab.hidden { display: none !important; }
#mprep #leadsel { width: 100% !important; }
#mprep #modesel { display: flex; gap: 10px; justify-content: center; margin: 6px 0 10px; }
#mprep #mapsel { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
#prepsum { color: #ffc400 !important; }
#mprep #start { width: 100%; }
#settings #settabs { width: min(420px, 92vw); margin-bottom: 8px; }
#settings #setbody.hidden, #setmisc.hidden { display: none !important; }
#setmisc { display: flex; flex-direction: column; gap: 6px; width: min(420px, 92vw); }
#setmisc .srow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.05); font-size: 13px; color: #ccd; line-height: 1.7; }
#setmisc button.danger { color: #ff6a6a; }

body.nojump #jumpbtn { display: none !important; }
