/* ============ 基础 ============ */
:root { --ol: #4b3326; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #1b1d30; }
body {
  font-family: "ZCOOL KuaiLe", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ol); font-weight: 700; font-synthesis: none; letter-spacing: .3px;
  -webkit-user-select: none; user-select: none; touch-action: none; overscroll-behavior: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea { font: inherit; -webkit-user-select: text; user-select: text; }
.hidden { display: none !important; }

#app { position: absolute; left: 0; top: 0; width: 400px; height: 760px; transform-origin: 0 0; overflow: hidden; background: #2f3247; }
#game { position: absolute; left: 0; top: 0; display: block; }
#hud { position: absolute; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }

/* 描边字 */
.ol { color: #fff; text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 -2px 0 var(--ol), 0 2px 0 var(--ol), -2px 0 0 var(--ol), 2px 0 0 var(--ol), 0 3px 0 var(--ol); }
.ol1 { color: #fff; text-shadow: -1.5px -1.5px 0 var(--ol), 1.5px -1.5px 0 var(--ol), -1.5px 1.5px 0 var(--ol), 1.5px 1.5px 0 var(--ol), 0 2px 0 var(--ol); }

/* ============ HUD 顶部 ============ */
.topbar { position: absolute; left: 10px; right: 10px; top: 8px; }
.pbar { height: 22px; border: 3px solid var(--ol); border-radius: 12px; background: rgba(43,45,66,.45); overflow: hidden; position: relative; }
.pfill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(#8ff5bd, #2fbf71); transition: width .12s linear; }
.pbar span { position: absolute; inset: 0; text-align: center; font-size: 13px; line-height: 16px; font-weight: 900; }

.tl { position: absolute; left: 8px; top: 38px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tlrow { display: flex; gap: 6px; }
.ibtn { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 3px solid var(--ol); box-shadow: 0 3px 0 var(--ol); font-size: 20px; line-height: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ibtn canvas { display: block; }
.ibtn small { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); font-size: 10px; white-space: nowrap; font-weight: 900; }
.ibtn:active, .sbtn:active, .pill:active, .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ol); }
.gm { height: 26px; padding: 0 10px; border-radius: 13px; border: 3px solid var(--ol); background: #ff4d6d; color: #fff; font-size: 12px; font-weight: 900; box-shadow: 0 3px 0 var(--ol); margin-top: 6px; }
.gm.off { background: #9a9cb0; }

.center { position: absolute; top: 36px; left: 50%; width: 200px; margin-left: -100px; display: flex; flex-direction: column; align-items: center; pointer-events: none !important; }
.center > * { pointer-events: auto; }
.dots { display: flex; align-items: center; height: 24px; }
.dots .d { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--ol); transition: transform .2s; }
.dots .d.done { background: #ffcf3f; }
.dots .d.cur { background: #ff6b6b; transform: scale(1.3); }
.dots .ln { width: 8px; height: 5px; background: var(--ol); }
.dots .ln.done { background: #ffcf3f; }
.dots .bossdot { font-size: 15px; filter: grayscale(1) brightness(.8); opacity: .7; }
.dots .bossdot.on { filter: none; opacity: 1; animation: bob 0.8s ease-in-out infinite; }
.stitle { font-size: 21px; font-weight: 900; margin-top: 1px; white-space: nowrap; }
.row { display: flex; gap: 8px; margin-top: 4px; }
.pill { display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 10px 0 6px; border-radius: 14px; border: 3px solid var(--ol); background: #fff; font-weight: 900; font-size: 12px; box-shadow: 0 3px 0 var(--ol); white-space: nowrap; }
.pill.on { background: #3dd6a3; color: #fff; }
.timer { margin-top: 6px; font-size: 26px; font-weight: 900; }
.timer.warn { color: #ff6b6b; animation: pulse .5s ease-in-out infinite; }

.tr { position: absolute; right: 8px; top: 38px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.res { position: relative; display: flex; align-items: center; min-width: 108px; height: 30px; background: linear-gradient(rgba(58,38,28,.88), rgba(88,62,46,.88)); border: 2.5px solid var(--ol); border-radius: 16px; padding: 0 12px 0 34px; color: #fff; font-size: 18px; margin-left: 14px; box-shadow: inset 0 2px 0 rgba(255,255,255,.12); }
.res .ric { position: absolute; left: -16px; top: 50%; transform: translateY(-52%); filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); pointer-events: none; }
.res.dia .ric { left: -12px; }
.res span { flex: 1; text-align: right; text-shadow: -1.5px -1.5px 0 var(--ol), 1.5px -1.5px 0 var(--ol), -1.5px 1.5px 0 var(--ol), 1.5px 1.5px 0 var(--ol), 0 2px 0 var(--ol); }
.res.bump { animation: bump .25s; }
.ibtn.task { margin-top: 2px; }
.badge { position: absolute; right: -2px; top: -2px; width: 14px; height: 14px; border-radius: 50%; background: #ff4d4d; border: 2px solid #fff; }

/* ============ 两侧按钮 ============ */
.side { position: absolute; display: flex; flex-direction: column; gap: 4px; }
.side.left { left: 6px; top: 130px; }
.side.right { right: 6px; top: 176px; }
.sbtn { width: 58px; height: 54px; border-radius: 14px; background: linear-gradient(#fffaf0, #ffe6bf); border: 3px solid var(--ol); box-shadow: 0 3px 0 var(--ol); font-size: 22px; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.sbtn canvas { display: block; margin-top: -8px; }
.sbtn small { position: absolute; left: 0; right: 0; bottom: 1px; text-align: center; font-size: 13px; color: #fff; white-space: nowrap; text-shadow: -1.5px -1.5px 0 var(--ol), 1.5px -1.5px 0 var(--ol), -1.5px 1.5px 0 var(--ol), 1.5px 1.5px 0 var(--ol), 0 2px 0 var(--ol); }
.sbtn.pink { background: #ff9ecb; }
.sbtn.red { background: #ffb4a8; }
.sbtn.boost { background: #ffe58a; }
.sbtn.on { background: #3dd6a3; }
.sbtn.on small { color: #fffbe0; }
.sbtn.locked { filter: grayscale(.9); opacity: .65; }
.sbtn.glow { animation: glow 1s ease-in-out infinite; }

/* ============ 底部升级卡片 ============ */
.ups { position: absolute; left: 6px; right: 6px; bottom: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.up { border: 3px solid var(--ol); border-radius: 16px; padding: 4px 4px 6px; text-align: center; box-shadow: 0 4px 0 var(--ol); touch-action: none; cursor: pointer; position: relative; }
.up:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ol); }
.up.atk { background: linear-gradient(#ffa3a3, #ff6b6b); }
.up.spd { background: linear-gradient(#9fd8ff, #4cabf5); }
.up.coin { background: linear-gradient(#ffe892, #ffc93c); }
.up .uic { position: absolute; left: -8px; top: -12px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.2)); }
.up .nm { font-size: 14px; }
.up .lv { position: absolute; right: 6px; top: 20px; font-size: 10px; font-weight: 900; }
.up .val { font-size: 25px; font-weight: 900; line-height: 1.25; margin-top: 8px; }
.up .cost { margin: 4px auto 0; display: flex; align-items: center; justify-content: center; gap: 2px; background: rgba(43,45,66,.85); color: #fff; border-radius: 12px; height: 24px; font-size: 14px; font-weight: 900; width: 92%; }
.up .cost .cic { margin-left: -4px; }
.up.no .cost { color: #ff9a9a; }

/* ============ 弹窗 ============ */
#modal { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.mask { position: absolute; inset: 0; z-index: 1; background: rgba(20,22,40,.6); display: flex; align-items: center; justify-content: center; pointer-events: auto; animation: fade .15s; }
.panel { width: 380px; max-height: calc(100% - 40px); background: #fff8ec; border: 3px solid var(--ol); border-radius: 22px; box-shadow: 0 6px 0 var(--ol); display: flex; flex-direction: column; overflow: hidden; position: relative; animation: popin .2s ease-out; }
.panel.small { width: 320px; }
.panel .hd { background: var(--hc, #ffcf3f); padding: 10px 50px 10px 16px; font-size: 20px; font-weight: 900; border-bottom: 3px solid var(--ol); }
.panel .x { position: absolute; right: 8px; top: 7px; width: 34px; height: 34px; border-radius: 50%; background: #ff6b6b; border: 3px solid var(--ol); color: #fff; font-weight: 900; font-size: 15px; box-shadow: 0 2px 0 var(--ol); }
.panel .ft { padding: 8px 12px 12px; border-top: 3px dashed #e3d5bd; background: #fff3df; }
.panel .ft .row2 { margin-top: 8px; }
.panel .bd { overflow-y: auto; padding: 12px; flex: 1; touch-action: pan-y; -webkit-overflow-scrolling: touch; }

/* 通用按钮 */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40px; padding: 4px 14px; border-radius: 14px; border: 3px solid var(--ol); background: #ffcf3f; box-shadow: 0 3px 0 var(--ol); font-weight: 900; font-size: 15px; color: var(--ol); line-height: 1.15; white-space: nowrap; }
.btn small { font-size: 11px; }
.btn.sm { min-height: 32px; padding: 2px 10px; font-size: 13px; border-radius: 11px; }
.btn.big { min-height: 52px; font-size: 20px; padding: 6px 40px; }
.btn.wide { width: 100%; margin-top: 8px; }
.btn.gray { background: #c9cbd6; color: #6b6e80; }
.btn.pink { background: #ff8fc0; }
.btn.green { background: #4fe0a8; }
.btn.blue { background: #7cc8ff; }
.btn.red { background: #ff6b6b; color: #fff; }
.btn.purple { background: #a77bff; color: #fff; }
.btn.gold { background: linear-gradient(#ffe58a, #ffbe2e); }
.btn.orange { background: #ffa94d; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 8px; }
.note { font-size: 11px; color: #7a7d90; margin-top: 10px; line-height: 1.5; font-weight: 600; }
.hint { font-size: 11px; text-align: center; color: #6b6e80; margin: 5px 0; }
.sec-t { font-size: 14px; font-weight: 900; margin: 14px 0 6px; }

/* 提示条 */
#toasts { position: absolute; left: 0; right: 0; top: 160px; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 90; }
.toast { background: rgba(43,45,66,.92); color: #fff; padding: 8px 16px; border-radius: 16px; font-size: 14px; font-weight: 800; max-width: 340px; text-align: center; animation: popin .2s; transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translateY(-10px); }
.banner { position: absolute; top: 38%; left: 0; right: 0; text-align: center; font-size: 38px; font-weight: 900; pointer-events: none; z-index: 40; animation: bannerin 1.3s ease-out forwards; }

/* 模拟广告 */
.adov { position: absolute; inset: 0; background: rgba(0,0,0,.85); z-index: 95; display: flex; align-items: center; justify-content: center; }
.adbox { color: #fff; text-align: center; }
.adt { font-size: 18px; font-weight: 900; }
.adl { font-size: 13px; opacity: .8; margin-top: 6px; }
.adc { font-size: 64px; font-weight: 900; margin-top: 16px; }

/* ============ 登录 ============ */
#login { position: absolute; inset: 0; z-index: 100; background: linear-gradient(#7fd0ff, #c6ecff 55%, #9fd56b 55.2%, #86c45a); display: flex; flex-direction: column; align-items: center; padding-top: 90px; }
.lg-title { font-size: 46px; font-weight: 900; letter-spacing: 2px; transform: rotate(-3deg); color: #ffcf3f; }
.lg-sub { font-size: 14px; color: var(--ol); margin-top: 8px; background: rgba(255,255,255,.7); padding: 4px 12px; border-radius: 12px; }
#login canvas { margin: 20px 0 10px; }
#login input[type=text] { width: 260px; height: 46px; border: 3px solid var(--ol); border-radius: 14px; padding: 0 14px; font-size: 17px; font-weight: 800; text-align: center; outline: none; background: #fff; }
.lg-agree { display: flex; align-items: center; gap: 4px; font-size: 12px; margin: 12px 0; color: var(--ol); background: rgba(255,255,255,.75); padding: 4px 10px; border-radius: 10px; }
.lg-agree a { color: #2a6fdb; text-decoration: underline; cursor: pointer; }
.lg-agree input { width: 16px; height: 16px; }
.lg-note { margin-top: 14px; font-size: 11px; color: #3c4a2a; background: rgba(255,255,255,.75); padding: 6px 12px; border-radius: 10px; width: 290px; text-align: center; line-height: 1.5; }

/* ============ 武器 ============ */
.g0 { --gc: #b08968; --gb: #f1e2cf; }
.g1 { --gc: #f08c3a; --gb: #ffe2c6; }
.g2 { --gc: #3a9bf0; --gb: #d3eaff; }
.g3 { --gc: #2fbf71; --gb: #cdf3dd; }
.g4 { --gc: #e0a800; --gb: #fff1b8; }
.g5 { --gc: #ff5a5f; --gb: #ffd6d7; }
.g6 { --gc: #9b5de5; --gb: #eadbff; }
.g7 { --gc: #00b8c8; --gb: linear-gradient(135deg, #c9fbff, #f1d9ff, #ffe0f4); }
.wc { background: var(--gb); border: 3px solid var(--ol); border-radius: 12px; position: relative; box-shadow: inset 0 -4px 0 rgba(0,0,0,.08), 0 3px 0 var(--ol); touch-action: none; cursor: grab; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gk { position: absolute; left: 5px; top: 1px; font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif; font-weight: 900; font-synthesis: weight; font-size: 15px; font-style: italic; color: var(--gc); text-shadow: -1.5px -1.5px 0 var(--ol), 1.5px -1.5px 0 var(--ol), -1.5px 1.5px 0 var(--ol), 1.5px 1.5px 0 var(--ol); z-index: 1; }
.wt { font-size: 11px; font-weight: 900; color: var(--ol); }
.wc.sel { outline: 4px solid #ff4d6d; outline-offset: 1px; }
.wc.can { animation: wiggle .5s ease-in-out infinite; }
.wc.dragging { opacity: .35; }
.ghost { position: absolute !important; z-index: 99; pointer-events: none; opacity: .9; transform: scale(1.08) rotate(-4deg); }
.drop-hi { outline: 4px dashed #3dd6a3; outline-offset: 1px; }

.eqrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ecard { height: 138px; padding-top: 12px; }
.ecard .stat { display: flex; align-items: center; gap: 4px; width: 88%; margin-top: 3px; background: rgba(43,45,66,.82); border-radius: 8px; height: 20px; padding: 0 6px; color: #fff; font-size: 12px; font-weight: 900; }
.ecard .stat i { font-style: normal; font-size: 11px; }
.ecard .stat span { flex: 1; text-align: right; }
.ecard.empty { background: #ece6da; border: 3px dashed #a9a39a; box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: default; }
.ecard .emp { font-size: 11px; color: #8a8478; margin-top: 4px; }
.ux { position: absolute; right: -6px; top: -6px; width: 24px; height: 24px; border-radius: 7px; background: #ff4d6d; border: 2px solid var(--ol); color: #fff; font-size: 12px; font-weight: 900; z-index: 2; }
.inv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; background: #efe5d3; padding: 8px; border-radius: 14px; border: 3px solid #d9ccb5; }
.slot { height: 56px; border-radius: 12px; }
.slot.empty { background: rgba(0,0,0,.06); }
.slot .wt { position: absolute; right: 5px; bottom: 2px; }
.slot canvas { margin-top: -6px; }
.wfoot { display: grid; grid-template-columns: 1fr 1fr 104px; gap: 8px; align-items: center; }
.wfoot .btn { min-height: 54px; }
.wfoot .btn span { font-size: 17px; }
.wside { display: flex; flex-direction: column; gap: 6px; }
.res.sm { min-width: 0; height: 28px; font-size: 14px; margin-left: 10px; padding-left: 22px; }
.res.sm .ric { left: -10px; }

.codex { display: grid; grid-template-columns: 44px repeat(4, 1fr); gap: 5px; align-items: stretch; }
.codex .cg { display: grid; place-items: center; font-weight: 900; font-size: 16px; }
.codex .cx { border-radius: 10px; padding: 2px 2px 4px; text-align: center; font-size: 10px; line-height: 1.25; }
.codex .cx.unseen { filter: grayscale(1) brightness(.6); opacity: .55; }
.codex .ch { font-size: 12px; font-weight: 900; text-align: center; }

/* ============ 皮肤 ============ */
.newskin { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #3a2f6b, #6b3fa0); border: 3px solid var(--ol); border-radius: 16px; padding: 6px 10px; color: #fff; margin-bottom: 10px; }
.ns-m { flex: 1; }
.ns-t { font-size: 20px; font-weight: 900; color: #ffe066; }
.ns-c { font-size: 11px; opacity: .85; margin-top: 2px; }
.bonus { display: flex; gap: 6px; align-items: center; }
.bon { flex: 1; background: rgba(43,45,66,.85); color: #fff; border-radius: 10px; padding: 3px 6px; text-align: center; }
.bon small { display: block; font-size: 10px; opacity: .8; white-space: nowrap; }
.bon b { font-size: 14px; }
.chars { display: flex; gap: 6px; justify-content: center; margin: 6px 0; }
.char { display: flex; align-items: center; gap: 2px; padding: 0 10px 0 2px; border: 3px solid var(--ol); border-radius: 14px; background: #fff; font-size: 12px; font-weight: 900; height: 46px; }
.char.on { background: #ffcf3f; }
.tabs { display: flex; gap: 4px; margin-top: 6px; }
.tab { flex: 1; height: 36px; border: 3px solid var(--ol); border-bottom: 0; border-radius: 12px 12px 0 0; background: #b8a88f; color: #fff; font-weight: 900; font-size: 14px; }
.tab.on { background: #ffcf3f; color: var(--ol); }
.tab.tech { background: linear-gradient(#3a4a7a, #23263a); color: #7ff3ff; }
.tab.tech.on { background: linear-gradient(#2ef2ff, #3a8bff); color: #fff; }
.tab { font-size: 13px; }
.skgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #f3d9b1; border: 3px solid var(--ol); border-radius: 0 0 14px 14px; padding: 8px; }
.skc { background: #fffaf0; border: 3px solid var(--ol); border-radius: 12px; display: flex; flex-direction: column; align-items: center; padding: 2px 2px 4px; position: relative; cursor: pointer; box-shadow: 0 2px 0 var(--ol); }
.skc.lock canvas { filter: brightness(.45) saturate(.5); }
.skc.lock { background: #8c7f6c; }
.skc.eq { background: #fff1b8; outline: 3px solid #3dd6a3; }
.sn { font-size: 11px; font-weight: 900; }
.sb { font-size: 9px; color: #6b6e80; text-align: center; line-height: 1.2; min-height: 11px; }
.skc.lock .sn, .skc.lock .sb { color: #f1e6d2; }
.lk { position: absolute; top: 24px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; }
.ck { position: absolute; right: 2px; bottom: 2px; width: 20px; height: 20px; border-radius: 50%; background: #3dd6a3; color: #fff; font-size: 12px; display: grid; place-items: center; border: 2px solid var(--ol); }
.sdet { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed #ddd2bd; font-size: 13px; }
.sdet span { flex: 1; }
.sdet small { color: #6b6e80; }

/* ============ 转生 ============ */
.angel { display: flex; justify-content: center; margin: -4px 0 4px; }
.rb-row { display: flex; align-items: center; gap: 10px; background: linear-gradient(#c9a7ff, #9b6bff); border: 3px solid var(--ol); border-radius: 16px; padding: 8px 10px; color: #fff; margin-bottom: 8px; }
.rb-row > div { flex: 1; }
.rb-row small { display: block; font-size: 12px; }
.rb-row b { font-size: 22px; }
.rb-row.hot { background: linear-gradient(#e08bff, #b24bf0); }
.rp-have { text-align: right; font-size: 13px; margin: 2px 4px 8px; }
.perm { display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--ol); border-radius: 16px; padding: 8px 10px; margin-bottom: 8px; }
.perm .pi { width: 48px; text-align: center; font-size: 26px; line-height: 1; }
.perm .pi small { display: block; font-size: 11px; font-weight: 900; margin-top: 2px; }
.perm .pm { flex: 1; font-size: 14px; }
.perm .pm b { font-size: 22px; color: #9b5de5; }

/* ============ 商店 ============ */
.sec { margin-bottom: 14px; }
.sec-h { font-size: 18px; font-weight: 900; background: #ff6b6b; border: 3px solid var(--ol); border-radius: 12px; padding: 4px 12px; margin-bottom: 8px; display: inline-block; }
.wk-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 6px; }
.cd { background: rgba(43,45,66,.85); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.wtabs { display: flex; gap: 6px; margin-bottom: 6px; }
.wtab { flex: 1; height: 34px; border: 3px solid var(--ol); border-radius: 12px; background: #fff; font-weight: 900; }
.wtab.on { background: #ffcf3f; }
.wtab.lock { background: #57506e; color: #c9c3dd; }
.wk-list { display: flex; flex-direction: column; gap: 8px; }
.wk-card { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #b26bff, #7b3fe0); border: 3px solid var(--ol); border-radius: 16px; padding: 8px; position: relative; color: #fff; }
.wk-card.g7 { background: linear-gradient(135deg, #ffcf3f, #ff8f3f); }
.tag { position: absolute; left: -4px; top: -10px; background: #ff3b5c; color: #fff; font-size: 11px; font-weight: 900; padding: 1px 8px; border-radius: 8px; border: 2px solid var(--ol); }
.wk-w { width: 84px; height: 58px; flex: none; }
.wk-w .wt { position: absolute; right: 4px; bottom: 1px; }
.plus { font-size: 22px; font-weight: 900; }
.wk-rp { flex: 1; font-size: 22px; }
.wk-rp b { font-size: 18px; }
.wk-r { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lim { font-size: 11px; background: rgba(0,0,0,.3); padding: 0 8px; border-radius: 8px; }
.vip { background: linear-gradient(135deg, #2b2d42, #4a3f7a); color: #fff; border: 3px solid var(--ol); border-radius: 16px; padding: 10px 12px; }
.vip-t { font-size: 20px; font-weight: 900; color: #ffd84d; }
.vip ul { margin: 6px 0 0 18px; font-size: 13px; line-height: 1.7; }
.vip-s { font-size: 12px; color: #8ff5bd; margin-top: 4px; }
.pet, .free, .pack { display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--ol); border-radius: 16px; padding: 8px 10px; margin-bottom: 8px; }
.pe, .pk-ic { font-size: 34px; width: 46px; text-align: center; flex: none; }
.pm { flex: 1; min-width: 0; }
.pm b { display: block; font-size: 15px; }
.pm small { display: block; font-size: 11px; color: #6b6e80; line-height: 1.4; white-space: normal; }
.pack.noAdsForced { background: #d6efff; }
.pack.noAdsAll { background: #fff0c2; }
.pack.autoPack { background: #d6efff; }
.pack.permPack { background: #e2d6ff; }
.pk-gift { font-size: 12px; color: #2a6fdb; margin-top: 2px; }
.owned { font-size: 12px; font-weight: 900; color: #2fbf71; white-space: nowrap; }
.skgrid.shop { grid-template-columns: repeat(2, 1fr); border-radius: 14px; background: #3a2f6b; }
.sks { background: #fffaf0; border: 3px solid var(--ol); border-radius: 14px; display: flex; flex-direction: column; align-items: center; padding: 6px; gap: 2px; position: relative; }
.sks small { font-size: 10px; color: #6b6e80; }

/* ============ 通行证 ============ */
.ph { display: flex; align-items: center; gap: 8px; }
.plv { width: 50px; height: 50px; border-radius: 50%; background: #9b6bff; border: 3px solid var(--ol); display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 14px; flex: none; }
.pbar2 { flex: 1; height: 20px; border: 3px solid var(--ol); border-radius: 10px; background: #4a3f7a; position: relative; overflow: hidden; }
.pbar2 i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#e2c2ff, #b26bff); }
.pbar2 span { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 14px; }
.season { font-size: 12px; text-align: center; color: #6b6e80; margin: 4px 0 6px; }
.track { display: flex; gap: 6px; overflow-x: auto; padding: 10px 4px 8px; touch-action: pan-x; background: #e9dcff; border-radius: 14px; border: 3px solid var(--ol); }
.tcol { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; width: 70px; }
.rwc { width: 66px; height: 66px; border-radius: 12px; background: #4a3f7a; border: 3px solid var(--ol); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; position: relative; }
.rwc.can { background: #ffcf3f; color: var(--ol); animation: glow 1s ease-in-out infinite; cursor: pointer; }
.rwc.done { opacity: .55; }
.rwc.locked { filter: grayscale(.6) brightness(.7); }
.rwi-ic { font-size: 24px; line-height: 1; }
.rwn { font-size: 12px; font-weight: 900; }
.rwc .ck { right: -4px; bottom: -4px; }
.rwc .lk2 { position: absolute; right: -4px; top: -6px; font-size: 14px; }
.tnode { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--ol); display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.tcol.reach .tnode { background: #b26bff; color: #fff; }
.star { font-size: 12px; margin-bottom: -6px; z-index: 1; }
.prem-wrap { display: flex; flex-direction: column; align-items: center; }
.dt-h { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; font-size: 17px; }
.task { display: flex; align-items: center; gap: 8px; background: #fffdf6; border: 3px solid #e9c46a; border-radius: 16px; padding: 8px; margin-bottom: 8px; }
.task.cl { border-color: #c9cbd6; }
.tx { width: 48px; height: 48px; border-radius: 12px; background: #eee4ff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.tx b { font-size: 12px; color: #9b5de5; }
.tm { flex: 1; min-width: 0; }
.tm b { font-size: 15px; display: block; }
.tm small { font-size: 11px; color: #6b6e80; }
.tbar { height: 16px; border-radius: 8px; background: #e4dcf4; position: relative; overflow: hidden; margin-top: 3px; border: 2px solid var(--ol); }
.tbar i { position: absolute; left: 0; top: 0; bottom: 0; background: #b26bff; }
.tbar span { position: absolute; inset: 0; text-align: center; font-size: 10px; line-height: 12px; font-weight: 900; }

/* ============ 挑战 / 结果 ============ */
.chal, .res-box { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ct { font-size: 30px; font-weight: 900; margin-top: 4px; }
.cbar { width: 100%; background: #fff; border-top: 3px solid var(--ol); border-bottom: 3px solid var(--ol); padding: 10px; font-size: 16px; color: #c0392b; margin: 10px 0; }
.crw { font-size: 14px; color: #6b6e80; }
.rw { display: flex; gap: 12px; justify-content: center; margin: 6px 0 10px; flex-wrap: wrap; }
.rwi { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 3px solid var(--ol); border-radius: 12px; padding: 4px 12px; font-size: 20px; margin-top: 4px; }
.rwi b { font-size: 18px; }
.cinfo { font-size: 12px; color: #6b6e80; margin: 6px 0 12px; }
.res-box .emo { font-size: 56px; line-height: 1.1; }
.rt { font-size: 22px; font-weight: 900; margin-top: 4px; }
.rs { font-size: 13px; color: #6b6e80; margin-top: 4px; }
.cmsg { font-size: 15px; line-height: 1.6; white-space: pre-line; text-align: center; padding: 6px 0; }

/* ============ 设置 ============ */
.acct { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 10px; }
.acct b { flex: 1; }
.sqrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sq { background: #fff; border: 3px solid var(--ol); border-radius: 16px; height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; box-shadow: 0 3px 0 var(--ol); position: relative; }
.sqi { font-size: 30px; }
.sq.off { background: #ddd; }
.sq.off::after { content: '✕'; position: absolute; color: #ff4d4d; font-size: 50px; top: 6px; opacity: .8; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 10px; }
.links a { font-size: 13px; text-decoration: underline; cursor: pointer; color: var(--ol); }
textarea.code { width: 100%; height: 120px; border: 3px solid var(--ol); border-radius: 12px; padding: 8px; font-size: 11px; font-family: ui-monospace, Menlo, monospace; resize: none; word-break: break-all; }
.doc { font-size: 13px; line-height: 1.7; font-weight: 500; }

/* ============ 开挂面板 ============ */
.sw-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed #ddd2bd; }
.sw-row > div { flex: 1; }
.sw-row b { font-size: 15px; display: block; }
.sw-row small { font-size: 11px; color: #6b6e80; }
.sw-row.master { background: #ffe1e6; border-radius: 12px; padding: 10px; border: 3px solid var(--ol); }
.sw-row.dim { opacity: .45; }
.sw { width: 54px; height: 30px; border-radius: 15px; background: #c9cbd6; border: 3px solid var(--ol); position: relative; flex: none; }
.sw i { position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ol); transition: left .15s; }
.sw.on { background: #3dd6a3; }
.sw.on i { left: 26px; }
.seg { display: flex; flex-wrap: wrap; gap: 5px; }
.seg button { min-width: 42px; height: 32px; padding: 0 8px; border: 3px solid var(--ol); border-radius: 10px; background: #fff; font-weight: 900; font-size: 13px; }
.seg button.on { background: #ffcf3f; }

/* ============ 排行榜 ============ */
.rank-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--ol); border-radius: 14px; padding: 8px 10px; }
.rank-row .no { font-size: 26px; }
.rank-row .rn { flex: 1; }
.rank-row .rn small { display: block; font-size: 11px; color: #6b6e80; }

/* ============ 动画 ============ */
@keyframes fade { from { opacity: 0; } }
@keyframes popin { from { transform: scale(.85); opacity: 0; } }
@keyframes bump { 50% { transform: scale(1.12); } }
@keyframes bob { 50% { transform: translateY(-3px); } }
@keyframes pulse { 50% { transform: scale(1.12); } }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(255,207,63,.8), 0 3px 0 var(--ol); } }
@keyframes wiggle { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes bannerin { 0% { transform: scale(.4); opacity: 0; } 15% { transform: scale(1.15); opacity: 1; } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }

/* ============ 枪皮肤 ============ */
.gsgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.gsc { position: relative; background: #fffaf0; border: 3px solid var(--ol); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 3px 0 var(--ol); }
.gsc.tech { background: linear-gradient(160deg, #2b2f4a, #1b1d30); color: #e8f6ff; }
.gsc.tech small { color: #9fd8ff; }
.gsc.eq { outline: 3px solid #3dd6a3; }
.gsc small { font-size: 10px; color: #6b6e80; text-align: center; }
.gsv { width: 120px; height: 48px; border-radius: 10px; background: radial-gradient(circle at 50% 60%, rgba(127,232,255,.25), rgba(0,0,0,0) 70%); }

/* ============ 钓鱼 ============ */
.pond { position: relative; display: flex; justify-content: center; }
.bobber { position: absolute; left: calc(50% - 170px + 165px); top: 56px; width: 10px; height: 14px; border-radius: 5px 5px 6px 6px; background: linear-gradient(#ff4d4d 50%, #fff 50%); border: 2px solid var(--ol); }
.bobber.bite { animation: bite .35s ease-in-out infinite; }
.pond-msg { position: absolute; top: 14px; right: 24px; font-size: 18px; }
.catch { position: absolute; top: 10px; right: 14px; background: rgba(255,255,255,.9); border: 3px solid var(--rc); border-radius: 12px; padding: 2px 8px; text-align: center; }
.catch small { display: block; font-size: 10px; color: #6b6e80; }
.catch b { font-size: 13px; color: var(--ol); }
.bait-row { display: flex; justify-content: space-between; align-items: center; margin: 8px 2px 0; font-size: 15px; }
.bait-row small { font-size: 12px; color: #6b6e80; }
.fishgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fc { position: relative; background: #fffaf0; border: 3px solid var(--rc); border-radius: 12px; display: flex; flex-direction: column; align-items: center; padding: 12px 2px 4px; text-align: center; }
.fc b { font-size: 12px; }
.fc small { font-size: 9px; color: #6b6e80; line-height: 1.25; }
.fc .fn { color: var(--ol); font-size: 10px; }
.fr { position: absolute; top: -2px; left: -2px; background: var(--rc); color: #fff; font-size: 9px; padding: 0 5px; border-radius: 9px 0 8px 0; }
@keyframes bite { 50% { transform: translateY(5px); } }

/* ============ 插屏广告（模拟）============ */
.ad-card { position: relative; width: 300px; background: #fff; border: 3px solid var(--ol); border-radius: 18px; padding: 14px 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: popin .2s; }
.ad-tag { position: absolute; top: 8px; left: 8px; z-index: 1; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 8px; }
.ad-t { font-size: 18px; color: var(--ol); }
.ad-s { font-size: 12px; color: #6b6e80; text-align: center; }
