:root {
  --plum: #252a2b;
  --plum2: #3f474a;
  --ink: #33383a;
  --mute: #6f808a;
  --pink: #3d9bff;
  --pink2: #7abfff;
  --pinkSoft: #d6eaff;
  --cream: #f6f9ff;
  --gold: #c99a4e;
  --line: rgba(63, 71, 74, 0.1);
  --serif: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --sans: 'Montserrat', 'Noto Sans SC', 'Segoe UI', system-ui, sans-serif;
  --script: 'Dancing Script', cursive;
  --teamA: #ff3d8b;
  --teamB: #4f6bed;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #e6eff6; color: var(--ink); font-family: var(--sans); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
kbd {
  display: inline-block; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .08em;
  padding: 2px 6px; border-radius: 5px; border: 1.5px solid currentColor; line-height: 1.2;
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 900; }
.script { font-family: var(--script); font-weight: 700; font-style: normal; color: var(--pink); text-transform: none; letter-spacing: 0; }

#world { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }

/* ================= LOBBY ================= */
.screen { position: fixed; inset: 0; }
#lobby, #hub {
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  background: linear-gradient(120deg, rgba(240, 246, 255, .78), rgba(228, 242, 255, .55) 60%, rgba(240, 246, 255, .7));
  padding: 16px;
}
.lobby-frame {
  height: 100%; display: flex; flex-direction: column; gap: 14px;
  border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 26px;
  padding: clamp(18px, 2.4vw, 36px) clamp(18px, 2.8vw, 44px) 18px;
  background: rgba(250, 252, 255, .35);
  box-shadow: inset 0 0 0 1px rgba(201, 154, 78, .12), 0 30px 80px -40px rgba(63, 71, 74, .4);
  overflow-y: auto; overflow-x: hidden;
}

.lobby-head { position: relative; }
.chips { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.chip {
  background: linear-gradient(180deg, #d8b06a, #b98a3d); color: #fff;
  font-weight: 800; letter-spacing: .22em; font-size: 12px; padding: 6px 16px; border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.mapname { letter-spacing: .32em; font-size: 12px; font-weight: 700; color: var(--ink); }
.title {
  margin: 6px 0 4px; font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(44px, 7vw, 116px); line-height: .95; letter-spacing: -.01em;
  display: flex; flex-wrap: wrap; gap: 0 .28em;
}
.title .t1 { color: var(--plum); }
.title .t2 {
  background: linear-gradient(180deg, #7abfff 0%, #3d9bff 55%, #2a87e0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 10px rgba(61, 155, 255, .25));
}
.subtitle { letter-spacing: .28em; font-size: 12px; font-weight: 700; color: var(--ink); }
.subtitle .vs { font-family: var(--serif); font-style: italic; color: var(--pink); letter-spacing: 0; font-size: 14px; margin: 0 .3em; }
.subtitle .dot { margin: 0 .8em; color: var(--mute); }

.badge {
  position: absolute; right: 0; top: 0;
  display: flex; align-items: center; gap: 14px; padding: 12px 24px 12px 14px;
  background: rgba(255, 255, 255, .85); border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(63, 71, 74, .35); transition: transform .15s;
}
.badge:hover { transform: translateY(-1px); }
.emblem {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-weight: 900; color: #fff; font-size: 22px;
  background: radial-gradient(circle at 35% 30%, var(--pink2), var(--team, var(--pink)));
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--team, var(--pink));
}
.badge-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.badge-text small { font-size: 10px; letter-spacing: .32em; color: var(--mute); font-weight: 700; }
.badge-text b { font-family: var(--serif); font-style: italic; font-size: 24px; font-weight: 900; color: var(--team, var(--pink)); line-height: 1.05; }

.lobby-grid {
  flex: 1 0 auto;
  display: grid; grid-template-columns: minmax(340px, 540px) 1fr; gap: clamp(18px, 3vw, 56px);
}

.sec-h {
  font-size: 12px; font-weight: 800; letter-spacing: .3em; margin: 6px 0 10px;
  display: flex; align-items: baseline; gap: 10px;
}
.sec-h i { font-family: var(--serif); color: var(--pink); font-weight: 700; letter-spacing: 0; font-size: 14px; }
.sec-h .script { margin-left: auto; font-size: 20px; }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.cat {
  text-align: left; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .7);
  border: 1.5px solid rgba(255, 255, 255, .9); transition: all .15s;
}
.cat b { display: block; font-family: var(--serif); font-style: italic; font-size: 24px; font-weight: 900; color: var(--plum); line-height: 1; }
.cat small { font-size: 9px; letter-spacing: .22em; font-weight: 700; color: var(--mute); }
.cat:hover { background: #fff; }
.cat.on { background: linear-gradient(180deg, #6ab2ff, #3d9bff); border-color: #3d9bff; box-shadow: 0 10px 24px -10px rgba(61, 155, 255, .7); }
.cat.on b, .cat.on small { color: #fff; }

.wlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.wcard {
  position: relative; display: flex; align-items: center; gap: 22px; padding: 6px 18px 6px 12px; text-align: left;
  border-radius: 14px; background: rgba(255, 255, 255, .6); border: 1.5px solid rgba(255, 255, 255, .9);
  transition: all .15s; min-height: 64px;
}
.wcard img { width: 150px; height: 50px; object-fit: contain; filter: grayscale(1) brightness(.85) opacity(.65); transition: filter .2s; }
.wcard .wn { font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 24px; color: var(--plum2); opacity: .75; line-height: 1.05; }
.wcard .wc { font-size: 10px; letter-spacing: .2em; font-weight: 600; color: var(--mute); }
.wcard:hover { background: #fff; }
.wcard.on { background: #fff; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(61, 155, 255, .15), 0 12px 30px -16px rgba(61, 155, 255, .6); }
.wcard.on img { filter: none; }
.wcard.on .wn { opacity: 1; color: var(--plum); }
.wcard .heart { margin-left: auto; font-size: 18px; color: rgba(111, 128, 138, .35); padding: 6px; }
.wcard .heart.fav { color: var(--pink); }

.sprays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.scard {
  text-align: left; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .6);
  border: 1.5px solid rgba(255, 255, 255, .9); transition: all .15s;
}
.scard img { width: 100%; height: 26px; object-fit: contain; filter: grayscale(1) opacity(.6); }
.scard.on img { filter: none; }
.scard .sn { font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 16px; color: var(--plum); margin: 4px 0; white-space: nowrap; }
.scard .mini { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 2px 6px; font-size: 8.5px; letter-spacing: .18em; font-weight: 700; color: var(--mute); }
.scard .mini i { display: block; height: 3px; border-radius: 2px; background: rgba(63, 71, 74, .08); position: relative; overflow: hidden; }
.scard .mini i::after { content: ''; position: absolute; inset: 0; width: var(--v); background: linear-gradient(90deg, #9dcdff, var(--pink)); }
.scard .sfoot { font-size: 10px; color: var(--mute); margin-top: 6px; }
.scard:hover { background: #fff; }
.scard.on { background: #fff; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(61, 155, 255, .15); }

.melee {
  display: flex; gap: 18px; align-items: center; padding: 12px 16px; border-radius: 14px;
  border: 1.5px dashed rgba(61, 155, 255, .35); background: rgba(255, 255, 255, .5);
}
.melee img { width: 90px; height: 30px; object-fit: contain; }
.melee b { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--plum); display: block; }
.melee p { margin: 2px 0 0; font-size: 12.5px; color: var(--mute); line-height: 1.4; }
.melee kbd { color: var(--plum); }

.detail { display: flex; flex-direction: column; min-width: 0; }
.preview {
  position: relative; flex: 0 0 auto; height: clamp(240px, 38vh, 440px); border-radius: 22px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #45555a 0%, #31393a 55%, #1f2425 100%);
  box-shadow: 0 30px 60px -30px rgba(37, 42, 43, .7), inset 0 0 0 1px rgba(255, 255, 255, .06);
  cursor: grab;
}
.preview:active { cursor: grabbing; }
.preview::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .25)); pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, .04);
}
#previewCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.watermark {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--serif); font-style: italic; font-weight: 900; font-size: clamp(60px, 11vw, 180px);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .06); white-space: nowrap;
}
.drag-hint { position: absolute; right: 26px; bottom: 18px; font-size: 10px; letter-spacing: .32em; font-weight: 700; color: rgba(214, 234, 255, .55); z-index: 2; }

.info { padding: 18px 2px 0; }
.cat-label { font-size: 12px; letter-spacing: .32em; font-weight: 800; color: var(--gold); }
.name-row { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.name-row h2 { margin: 4px 0; font-family: var(--serif); font-style: italic; font-weight: 900; font-size: clamp(38px, 4.6vw, 70px); color: var(--plum); line-height: 1; }
.name-row span { font-size: 13px; letter-spacing: .22em; font-weight: 700; }
.blurb { margin: 4px 0 18px; font-size: 16px; color: var(--ink); opacity: .85; }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 56px; max-width: 880px; }
.bar { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .26em; font-weight: 800; }
.segs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.segs i { height: 7px; border-radius: 2px; background: rgba(63, 71, 74, .08); transition: background .3s; }
.segs i.on { background: linear-gradient(90deg, #9dcdff, var(--pink)); }
.nums { display: flex; gap: clamp(18px, 3vw, 44px); margin-top: 22px; flex-wrap: wrap; }
.nums div { display: flex; align-items: baseline; gap: 10px; }
.nums b { font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 28px; color: var(--plum); }
.nums small { font-size: 11px; letter-spacing: .24em; font-weight: 700; color: var(--mute); }

.lobby-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.tip { margin: 0 0 8px; font-size: 15px; }
.tip .script { font-size: 24px; margin-right: 4px; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 10.5px; letter-spacing: .18em; font-weight: 700; color: var(--mute); }
.keys span { display: inline-flex; align-items: center; gap: 6px; }
.keys kbd { color: var(--plum); }
.foot-right { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn { padding: 14px 22px; border-radius: 999px; font-weight: 800; letter-spacing: .2em; font-size: 12px; transition: transform .12s, box-shadow .15s, background .15s; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: rgba(255, 255, 255, .8); color: var(--plum); box-shadow: 0 8px 20px -12px rgba(63, 71, 74, .35); }
.btn.ghost:hover { background: #fff; }
.btn.deploy {
  display: inline-flex; align-items: center; gap: 18px; padding: 14px 22px 14px 38px;
  background: linear-gradient(180deg, #74bcff, #3d9bff 60%, #2a8ce8); color: #fff;
  font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 34px; letter-spacing: .02em;
  box-shadow: 0 16px 36px -14px rgba(61, 155, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn.deploy:hover { box-shadow: 0 18px 44px -12px rgba(61, 155, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn.deploy kbd { font-style: normal; color: #fff; border-color: rgba(255, 255, 255, .8); font-size: 10px; }
.btn.deploy.small { font-size: 22px; padding: 12px 30px; }

/* 矮屏（1366×768、1600×900 等）紧凑排版 */
@media (max-height: 1000px) and (min-width: 1101px) {
  .lobby-frame { gap: 8px; padding-top: 18px; padding-bottom: 14px; }
  .title { font-size: clamp(40px, 5.2vw, 84px); margin: 2px 0; }
  .sec-h { margin: 2px 0 6px; }
  .cats { margin-bottom: 6px; }
  .cat { padding: 6px 12px; }
  .cat b { font-size: 20px; }
  .wlist { gap: 6px; margin-bottom: 8px; }
  .wcard { min-height: 50px; padding: 3px 14px 3px 10px; }
  .wcard img { width: 120px; height: 40px; }
  .wcard .wn { font-size: 20px; }
  .sprays { margin-bottom: 8px; }
  .scard { padding: 7px 10px; }
  .scard .sfoot { margin-top: 3px; }
  .melee { padding: 8px 14px; }
  .preview { height: clamp(200px, 31vh, 360px); }
  .info { padding-top: 10px; }
  .name-row h2 { font-size: clamp(34px, 3.6vw, 56px); }
  .blurb { margin-bottom: 10px; font-size: 15px; }
  .bars { gap: 7px 48px; }
  .nums { margin-top: 12px; }
  .nums b { font-size: 24px; }
  .tip { margin-bottom: 4px; font-size: 14px; }
  .btn.deploy { font-size: 30px; padding: 10px 20px 10px 32px; }
}
@media (max-height: 800px) and (min-width: 1101px) {
  .melee p { display: none; }
  .scard .mini { display: none; }
  .preview { height: 27vh; }
}

@media (max-width: 1100px) {
  .lobby-grid { grid-template-columns: 1fr; }
  .badge { position: static; margin-top: 12px; }
  .lobby-frame { overflow-y: auto; }
}
@media (max-width: 640px) {
  #lobby { padding: 8px; }
  .sprays { grid-template-columns: 1fr; }
  .wcard img { width: 100px; }
  .bars { grid-template-columns: 1fr; }
  .btn.deploy { font-size: 26px; }
}

/* ================= HUD ================= */
#hud { position: fixed; inset: 0; pointer-events: none; font-family: var(--sans); color: #fff; user-select: none; }
#vignette { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(220, 20, 80, .55) 100%); transition: opacity .1s; }
#stunFx { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, rgba(255, 190, 220, .2), rgba(255, 150, 200, .85)); }
#scope { position: absolute; inset: 0; display: none; overflow: hidden; }
/* 镜片：外圈用超大阴影遮黑；内圈暗角 + 一点镀膜反光；--sx/--sy 甩枪偏移，--zs 开镜缩放 */
#scope .lens { position: absolute; left: 50%; top: 50%; width: 76vh; height: 76vh; border-radius: 50%;
  transform: translate(calc(-50% + var(--sx, 0px)), calc(-50% + var(--sy, 0px))) scale(var(--zs, 1));
  box-shadow: 0 0 0 200vmax #06030a, inset 0 0 0 3px rgba(0, 0, 0, .9), inset 0 0 0 7px rgba(63, 176, 255, .12), inset 0 0 70px 22px rgba(0, 0, 0, .78);
  background: radial-gradient(circle at 32% 26%, rgba(140, 210, 255, .10), transparent 42%), radial-gradient(circle, transparent 62%, rgba(0, 10, 25, .25) 100%); }
#scope .reticle { position: absolute; inset: 0; width: 100%; height: 100%; }
#scope .reticle .posts path { stroke: #05020a; stroke-width: 3.2; fill: none; }
#scope .reticle .hair path { stroke: #05020a; stroke-width: .55; fill: none; }
#scope .reticle .dots circle { fill: #05020a; }
#scope .reticle .center { fill: #ff3b6b; filter: drop-shadow(0 0 1.5px rgba(255, 59, 107, .9)); }
/* 4 倍镜（ACOG）：镜片更大、遮罩更浅；发光倒三角 + 弹道下坠刻度，没有狙击镜的十字和密位点 */
#scope .reticle .acog { display: none; }
#scope[data-kind=acog] .lens { width: 90vh; height: 90vh; box-shadow: 0 0 0 200vmax #0a0610, inset 0 0 0 4px rgba(0, 0, 0, .85), inset 0 0 0 9px rgba(255, 140, 60, .1), inset 0 0 60px 16px rgba(0, 0, 0, .6); }
#scope[data-kind=acog] .reticle .posts, #scope[data-kind=acog] .reticle .hair, #scope[data-kind=acog] .reticle .dots, #scope[data-kind=acog] .reticle .center { display: none; }
#scope[data-kind=acog] .reticle .acog { display: inline; }
#scope .reticle .acog .chev { fill: #ff5a2a; filter: drop-shadow(0 0 1.6px rgba(255, 110, 40, .95)); }
#scope .reticle .acog .drop { stroke: #05020a; stroke-width: .5; fill: none; }
#scope .reticle .acog .side { stroke: #05020a; stroke-width: 1.4; fill: none; }

.scorebar { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; }
.scorebar .team { display: flex; align-items: center; gap: 10px; background: rgba(10, 14, 28, .74); padding: 8px 14px; border-radius: 12px; }
.scorebar .team b { font-family: var(--serif); font-style: italic; font-size: 28px; font-weight: 900; min-width: 36px; text-align: center; }
.scorebar .team small { font-size: 10px; letter-spacing: .24em; font-weight: 800; opacity: .85; }
.scorebar .prog { width: 120px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.scorebar .prog i { display: block; height: 100%; width: 0; transition: width .3s; }
.scorebar .a b { color: var(--teamA); } .scorebar .a .prog i { background: var(--teamA); }
.scorebar .b b { color: #8ea2ff; } .scorebar .b .prog i { background: var(--teamB); margin-left: auto; }
.scorebar .b .prog { display: flex; justify-content: flex-end; }
.clock { font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 26px; padding: 6px 16px; border-radius: 12px; background: rgba(255, 255, 255, .9); color: var(--plum); }

/* 击杀信息：右上角大号条目 */
#feed { position: absolute; top: 84px; right: 24px; display: flex; flex-direction: column; gap: 7px; align-items: flex-end; pointer-events: none; }
#feed .kf {
  display: flex; align-items: center; gap: 12px; padding: 9px 16px 9px 14px; min-height: 42px;
  background: linear-gradient(90deg, rgba(10, 14, 28, .55), rgba(10, 14, 28, .85)); border-radius: 10px;
  border-left: 4px solid var(--c, #fff); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .55);
  font-size: 17px; font-weight: 800; letter-spacing: .01em; color: #fff; animation: feedIn .22s ease-out; transition: opacity .3s, transform .3s;
}
#feed .kf.out { opacity: 0; transform: translateX(16px); }
#feed .kf.mine { background: linear-gradient(90deg, rgba(63, 176, 255, .34), rgba(8, 22, 44, .9)); border: 2px solid #3fb0ff; border-left-width: 5px; box-shadow: 0 0 16px rgba(63, 176, 255, .35); }
#feed .kf.died { background: linear-gradient(90deg, rgba(120, 10, 20, .45), rgba(40, 8, 14, .9)); border: 2px solid #ff3b3b; border-left-width: 5px; }
#feed .kf-n.you { filter: none; }
#feed .kf-n { text-shadow: 0 1px 2px rgba(0, 0, 0, .6); filter: brightness(1.25); white-space: nowrap; }
#feed .kf-w { display: flex; align-items: center; gap: 6px; color: #fff; opacity: .92; }
#feed .kf-w i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
#feed .ic { display: block; height: 18px; width: auto; }
#feed .ic.gun, #feed .ic.knife { width: 44px; }
#feed .ic.hs { width: 20px; height: 20px; color: #ffd75a; }
#feed .ic.sk { width: 20px; height: 20px; color: #ff6a6a; }
@keyframes feedIn { from { transform: translateX(20px); opacity: 0; } }

/* 准心：颜色 / 线长 / 粗细 / 透明度 / 描边都是变量（src/crosshair.js 写入），对局 #xh 和设置预览共用 */
.xh { position: absolute; left: 50%; top: 50%; --gap: 10px; --xc: #fff; --xl: 8px; --xw: 2px; --xa: 1; --xs: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 3px rgba(0, 0, 0, .5); }
.xh i, .xh b { position: absolute; background: var(--xc); box-shadow: var(--xs); opacity: var(--xa); }
.xh i:nth-child(1) { width: var(--xw); height: var(--xl); left: calc(var(--xw) / -2); top: calc(-1 * var(--xl) - var(--gap)); }
.xh i:nth-child(2) { width: var(--xw); height: var(--xl); left: calc(var(--xw) / -2); top: var(--gap); }
.xh i:nth-child(3) { width: var(--xl); height: var(--xw); top: calc(var(--xw) / -2); left: calc(-1 * var(--xl) - var(--gap)); }
.xh i:nth-child(4) { width: var(--xl); height: var(--xw); top: calc(var(--xw) / -2); left: var(--gap); }
.xh b { display: none; width: calc(var(--xw) + 1px); height: calc(var(--xw) + 1px); left: calc((var(--xw) + 1px) / -2); top: calc((var(--xw) + 1px) / -2); border-radius: 50%; }
.xh.s-crossdot b, .xh.s-dot b, .xh.s-circle b { display: block; }
.xh.s-dot b { width: calc(var(--xw) * 2 + 1px); height: calc(var(--xw) * 2 + 1px); left: calc((var(--xw) * 2 + 1px) / -2); top: calc((var(--xw) * 2 + 1px) / -2); }
.xh.s-dot i, .xh.s-circle i { display: none; }
.xh.s-tee i:nth-child(1) { display: none; }
.xh.s-circle::before { content: ''; position: absolute; width: calc(var(--gap) * 2 + var(--xl)); height: calc(var(--gap) * 2 + var(--xl)); left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: var(--xw) solid var(--xc); border-radius: 50%; box-shadow: var(--xs); opacity: var(--xa); }
#dmgdir { position: absolute; left: 50%; top: 50%; }
#dmgdir span { position: absolute; left: -40px; top: -130px; width: 80px; height: 22px; transform-origin: 40px 130px; border-radius: 50% 50% 0 0; border-top: 5px solid rgba(255, 50, 110, .9); filter: blur(.5px); }
#callout { position: absolute; left: 50%; top: calc(50% + 46px); transform: translateX(-50%); text-align: center; }
#callout div { font-family: var(--bkfont); font-weight: 900; font-size: 22px; letter-spacing: .04em; text-shadow: 0 0 14px rgba(63, 176, 255, .7), 0 2px 6px rgba(0, 0, 0, .5); animation: pop .25s ease-out; }
#callout div small { display: block; font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .26em; font-weight: 800; color: #9fd8ff; }
@keyframes pop { from { transform: scale(1.4); opacity: 0; } }

.hp { position: absolute; left: 26px; bottom: 26px; display: grid; grid-template-columns: auto 220px auto; align-items: center; gap: 4px 14px; background: rgba(10, 14, 28, .74); padding: 12px 18px; border-radius: 14px; }
.hp-name { grid-column: 1 / -1; font-size: 10px; letter-spacing: .3em; font-weight: 800; color: var(--pinkSoft); }
.hp-bar { grid-column: 1 / 3; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.hp-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff9dc5, #ff3d8b); transition: width .15s; }
.hp b { font-family: var(--serif); font-style: italic; font-size: 30px; font-weight: 900; }
.ammo { position: absolute; right: 26px; bottom: 26px; text-align: right; background: rgba(10, 14, 28, .74); padding: 12px 20px; border-radius: 14px; min-width: 220px; }
.ammo-name { font-size: 10px; letter-spacing: .3em; font-weight: 800; color: var(--pinkSoft); }
.ammo-count b { font-family: var(--serif); font-style: italic; font-size: 52px; font-weight: 900; line-height: 1; }
.ammo-count span { font-size: 16px; opacity: .7; margin-left: 6px; font-weight: 600; }
.ammo-count b.low { color: #ff6b9c; }
.ammo-sub { font-size: 11px; letter-spacing: .14em; font-weight: 600; opacity: .85; margin-top: 4px; }
.reload-bar { height: 3px; margin-top: 8px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.reload-bar i { display: block; height: 100%; width: 0; background: var(--pink); }

/* 计分板（按住 Tab） */
#board { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(20, 6, 16, .35), rgba(20, 6, 16, .7)); pointer-events: none; z-index: 30; }
.sb { width: min(1340px, 96vw); max-height: 92vh; overflow: hidden; color: #fff; font-family: var(--sans);
  background: linear-gradient(180deg, rgba(48, 16, 38, .94), rgba(28, 8, 22, .96)); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); animation: sbIn .16s ease-out; }
@keyframes sbIn { from { transform: scale(.97); opacity: 0; } }
.sb-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 22px 34px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ca, #ff3d8b) 26%, transparent), transparent 35%, transparent 65%, color-mix(in srgb, var(--cb, #4f6bed) 26%, transparent)); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sb.ffa .sb-top { background: linear-gradient(90deg, rgba(63, 176, 255, .22), transparent 60%); }
.sb-team { display: flex; align-items: center; gap: 18px; }
.sb-team.r { justify-content: flex-end; }
.sb-team span { font-size: 15px; font-weight: 800; letter-spacing: .18em; color: var(--tc); filter: brightness(1.3); }
.sb-team b { font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 64px; line-height: 1; color: #fff; text-shadow: 0 0 24px var(--tc); }
.sb-center { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 170px; }
.sb-center small { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: rgba(255, 255, 255, .6); }
.sb-center .sb-state { color: #ffd75a; font-size: 12px; }
.sb-clock { font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 40px; line-height: 1; padding: 6px 22px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: var(--plum); }
.sb-mode { display: flex; flex-direction: column; gap: 4px; }
.sb-mode.r { align-items: flex-end; }
.sb-mode small { font-size: 11px; font-weight: 700; letter-spacing: .24em; color: rgba(255, 255, 255, .6); }
.sb-mode b { font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 34px; }
.sb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 20px; }
.sb-cols.one { grid-template-columns: 1fr; }
.sb-col { border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .04); border-top: 4px solid var(--tc); }
.sb-colhead { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 18px 8px; }
.sb-colhead b { font-size: 15px; font-weight: 800; letter-spacing: .16em; color: var(--tc); filter: brightness(1.3); }
.sb-colhead span { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .55); letter-spacing: .1em; }
.sb-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 46px 46px 54px 112px; align-items: center; gap: 10px; padding: 0 14px; height: 50px; font-size: 17px; border-top: 1px solid rgba(255, 255, 255, .06); }
.sb-cols.one .sb-row { grid-template-columns: 56px minmax(0, 1fr) 100px 100px 100px 200px; }
.sb-row .n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); }
.sb-row .n.k { color: #fff; font-weight: 900; font-size: 19px; }
.sb-th { height: 34px; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: rgba(255, 255, 255, .5); border-top: 0; }
.sb-th span:nth-child(n+3) { text-align: right; }
.sb-th span:last-child, .sb-wpn { text-align: right; }
.sb-rank { font-weight: 800; color: rgba(255, 255, 255, .55); }
.sb-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-name b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-name em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .14em; padding: 3px 7px; border-radius: 6px; background: var(--pink); color: #fff; }
.sb-lv { font-style: normal; flex: none; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 7px; color: #ffd75a; background: rgba(0, 0, 0, .45); border: 1.5px solid var(--c); }
.sb-skull { display: flex; color: #ff6a6a; }
.sb-skull .ic { width: 18px; height: 18px; }
.sb-wpn { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-row.me { background: linear-gradient(90deg, rgba(63, 176, 255, .35), rgba(63, 176, 255, .08)); box-shadow: inset 4px 0 0 #3fb0ff; }
.sb-row.dead > :not(.sb-name) , .sb-row.dead .sb-name b { opacity: .45; }
.medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 900; color: #2b0f22; }
.medal.m1 { background: linear-gradient(135deg, #fff1a8, #e0a92a); } .medal.m2 { background: linear-gradient(135deg, #ffffff, #a9b0c0); } .medal.m3 { background: linear-gradient(135deg, #ffd2a8, #b8733a); }
.sb-foot { display: flex; align-items: center; gap: 28px; padding: 16px 34px; background: rgba(0, 0, 0, .28); border-top: 1px solid rgba(255, 255, 255, .08); }
.sb-mine { font-size: 12px; font-weight: 800; letter-spacing: .22em; color: #ffd75a; }
.sb-stat { display: flex; flex-direction: column; align-items: center; }
.sb-stat b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sb-stat small { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: rgba(255, 255, 255, .55); }
.sb-hint { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: rgba(255, 255, 255, .5); }
.sb-range { width: min(900px, 95vw); }
@media (max-width: 900px) { .sb-cols { grid-template-columns: 1fr; } .sb-row { grid-template-columns: 34px minmax(0, 1fr) 46px 46px 50px 0; } .sb-wpn, .sb-th span:last-child { display: none; } }

/* 阵亡卡片：击杀者（阵营色 --tc）+ 武器 / 爆头 / 距离 / 对方血量 + 复活进度条 */
#death { position: absolute; left: 50%; top: 9%; transform: translateX(-50%); text-align: center; font-family: var(--bkfont); --tc: #3fb0ff; }
#death .dc { min-width: 360px; padding: 14px 22px 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(14, 18, 34, .82), rgba(8, 10, 22, .9));
  border: 2px solid rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 18px 50px -14px rgba(0, 0, 0, .8), inset 0 2px 0 rgba(255, 255, 255, .06); animation: dcIn .3s ease-out; }
#death .dc-top { display: flex; align-items: center; justify-content: center; gap: 8px; color: #ff5a6e; font-size: 13px; font-weight: 900; letter-spacing: .28em; }
#death .dc-top .dc-sk { width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 3 5.8 3 10.5c0 2.8 1.3 4.7 3 5.8V20c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-3.7c1.7-1.1 3-3 3-5.8C21 5.8 17.5 2 12 2zM8.5 14a2.2 2.2 0 1 1 0-4.4 2.2 2.2 0 0 1 0 4.4zm7 0a2.2 2.2 0 1 1 0-4.4 2.2 2.2 0 0 1 0 4.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 3 5.8 3 10.5c0 2.8 1.3 4.7 3 5.8V20c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-3.7c1.7-1.1 3-3 3-5.8C21 5.8 17.5 2 12 2zM8.5 14a2.2 2.2 0 1 1 0-4.4 2.2 2.2 0 0 1 0 4.4zm7 0a2.2 2.2 0 1 1 0-4.4 2.2 2.2 0 0 1 0 4.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
#death .dc-killer { margin: 10px 0 8px; padding: 8px 14px; border-radius: 12px; border-left: 4px solid var(--tc); background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 22%, transparent), transparent); text-align: left;
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: end; }
#death .dc-killer small { grid-column: 1 / 3; font-size: 11px; letter-spacing: .26em; font-weight: 800; color: rgba(255, 255, 255, .6); }
#death .dc-killer h2 { margin: 2px 0 0; font-family: var(--bkfont); font-style: normal; font-weight: 900; font-size: 34px; line-height: 1.05; color: #fff; text-shadow: 0 0 18px color-mix(in srgb, var(--tc) 60%, transparent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }
#death .dc-killer em { font-style: normal; font-size: 13px; font-weight: 900; color: #9fd8ff; padding-bottom: 5px; }
#death .dc-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13.5px; font-weight: 800; color: rgba(255, 255, 255, .85); }
#death .dc-info span { display: inline-flex; align-items: center; gap: 6px; }
#death .dc-info .hi { height: 16px; width: auto; color: #9fd8ff; }
#death .dc-info .hi.gun, #death .dc-info .hi.blade { width: 38px; height: 15px; }
#death .dc-info .hs, #death .dc-info .hs .hi { color: #ffc93c; }
#death .dc-info .khp .hi { color: #5df0a0; }   /* 不能叫 .hp：和左下角血条的全局 .hp 撞名 */
#death .dc-bar { height: 4px; margin: 12px 0 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
#death .dc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3fb0ff, #9fd8ff); transform-origin: left; transform: scaleX(0); }
#death p { margin: 0; font-size: 13px; letter-spacing: .2em; font-weight: 800; color: rgba(255, 255, 255, .75); }
@keyframes dcIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
#clickToPlay { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); padding: 10px 22px; border-radius: 999px; background: rgba(10, 14, 28, .75); font-size: 12px; letter-spacing: .3em; font-weight: 800; }

/* ================= OVERLAYS ================= */
.overlay { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(43, 15, 34, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 10; padding: 16px; }
.card { background: rgba(255, 248, 251, .97); border-radius: 26px; padding: 34px 40px; text-align: center; min-width: min(420px, 92vw); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); max-height: 92vh; overflow: auto; }
.card.wide { width: min(720px, 94vw); }
.card h2 { margin: 4px 0 8px; font-size: 48px; color: var(--plum); }
.card h2.big { font-size: 84px; }
.card p { color: var(--mute); margin: 0 0 20px; }
.card .row { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.kicker { font-size: 11px; letter-spacing: .34em; font-weight: 800; color: var(--gold); }
.end-score { display: flex; justify-content: center; gap: 26px; align-items: baseline; font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 46px; }
.end-score small { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .26em; display: block; color: var(--mute); }
.end-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.end-stats div { background: #fff; border-radius: 14px; padding: 12px 6px; }
.end-stats b { display: block; font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--plum); }
.end-stats small { font-size: 10px; letter-spacing: .22em; font-weight: 700; color: var(--mute); }
#lbBody table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; margin-top: 8px; }
#lbBody th { font-size: 10px; letter-spacing: .22em; color: var(--mute); padding: 6px 8px; }
#lbBody td { padding: 8px; border-top: 1px solid var(--line); }
#lbBody .empty { color: var(--mute); padding: 24px 0; text-align: center; }
@media (max-width: 640px) { .end-stats { grid-template-columns: repeat(2, 1fr); } .card h2.big { font-size: 56px; } }

/* ================= 命中 / 击杀反馈 ================= */
#hitm { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
#hitm i { position: absolute; left: -1.5px; top: -6px; width: 3px; height: 12px; border-radius: 2px; background: #fff; box-shadow: 0 0 4px rgba(0,0,0,.65); transform-origin: 1.5px 6px; }
#hitm i:nth-child(1) { transform: rotate(45deg) translateY(-15px); }
#hitm i:nth-child(2) { transform: rotate(135deg) translateY(-15px); }
#hitm i:nth-child(3) { transform: rotate(225deg) translateY(-15px); }
#hitm i:nth-child(4) { transform: rotate(315deg) translateY(-15px); }
#hitm span { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--pink); opacity: 0; }
#hitm.hit { animation: hm .22s ease-out; }
#hitm.head { animation: hm .3s ease-out; }
#hitm.head i { background: #ffd34d; height: 14px; }
#hitm.kill { animation: hmk .5s ease-out; }
#hitm.kill i { background: #ff3d6e; height: 16px; width: 4px; }
#hitm.kill span { animation: ring .45s ease-out; }
@keyframes hm { 0% { opacity: 1; transform: scale(1.5); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes hmk { 0% { opacity: 1; transform: scale(1.9) rotate(-10deg); } 25% { opacity: 1; transform: scale(1.05) rotate(0); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
@keyframes ring { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }

#dmgNums, #enemyBars { position: absolute; inset: 0; overflow: hidden; }
.dnum { position: absolute; left: 0; top: 0; font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 22px; color: #fff;
  text-shadow: 0 2px 0 rgba(120,20,60,.9), 0 0 10px rgba(0,0,0,.35); will-change: transform; }
.dnum.head { color: #ffd34d; font-size: 30px; }
.dnum.head::after { content: ' ✦'; font-size: 18px; }
.dnum.kill { color: #ff5c9a; font-size: 32px; }

.ebar { position: absolute; left: 0; top: 0; width: 76px; text-align: center; will-change: transform; }
.ebar small { display: block; font-size: 9px; font-weight: 800; letter-spacing: .12em; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); margin-bottom: 2px; white-space: nowrap; }
.ebar i { position: relative; display: block; height: 6px; border-radius: 3px; background: rgba(10,14,28,.65); overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.ebar u { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; transition: none; }
.ebar b { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff7a7a, #e8283f); z-index: 1; }

#killFlash { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 140px 30px rgba(63,176,255,.5); }
#killFlash.on { animation: kf .5s ease-out; }
#killFlash.head { box-shadow: inset 0 0 140px 30px rgba(255,211,77,.7); }
@keyframes kf { 0% { opacity: 1; } 100% { opacity: 0; } }

/* 击杀确认徽章：图标 + 多杀进度（1–5 格）+ 标题 + 被击杀者；--kc 随第几杀变亮（蓝 → 青 → 金 → 橙 → 红），爆头用金色 */
#killBanner { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); font-family: var(--bkfont); }
#killBanner .kc { --kc: #3fb0ff; display: flex; flex-direction: column; align-items: center; gap: 4px; animation: kcIn .34s cubic-bezier(.2, 1.6, .4, 1); transition: opacity .3s, transform .3s; }
#killBanner .kc.out { opacity: 0; transform: translateY(8px) scale(.94); }
#killBanner .kc.t2 { --kc: #4fe3ff; } #killBanner .kc.t3 { --kc: #ffc93c; } #killBanner .kc.t4 { --kc: #ff8a3c; } #killBanner .kc.t5 { --kc: #ff3b5c; }
#killBanner .kc.k-head { --kc2: #ffc93c; }
#killBanner .kc-badge { position: relative; width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--kc2, var(--kc)) 55%, #0a0e1c), #0a0e1c 72%);
  box-shadow: 0 0 0 2px var(--kc2, var(--kc)), 0 0 26px color-mix(in srgb, var(--kc2, var(--kc)) 70%, transparent), inset 0 0 18px rgba(0, 0, 0, .5); }
#killBanner .kc-badge .hi { width: 50px; height: 50px; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--kc2, var(--kc)) 80%, transparent)); }
#killBanner .kc-badge::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--kc2, var(--kc)); opacity: 0; animation: kcRing .55s ease-out; }
#killBanner .kc-pips { display: flex; gap: 4px; margin-top: 2px; }
#killBanner .kc-pips i { width: 14px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
#killBanner .kc-pips i.on { background: var(--kc); box-shadow: 0 0 8px var(--kc); }
#killBanner .kc-title { font-size: 26px; font-weight: 900; letter-spacing: .08em; color: #fff; text-shadow: 0 0 16px color-mix(in srgb, var(--kc2, var(--kc)) 85%, transparent), 0 2px 0 rgba(0, 0, 0, .5); }
#killBanner .kc-name { display: flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 99px; background: rgba(10, 14, 28, .72); font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .85); }
#killBanner .kc-name em { font-style: normal; color: #ffd34d; font-weight: 900; }
@keyframes kcIn { from { transform: scale(.55); opacity: 0; } }
@keyframes kcRing { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.35); } }

#streak { display: none; }   /* 连杀标题已合并进击杀确认徽章 */

.scard.focus { box-shadow: 0 0 0 3px rgba(255, 61, 139, .35), 0 12px 30px -16px rgba(255, 61, 139, .7); }
.scard img { height: 34px; }
.scard img { height: 40px; }
@media (max-height: 1000px) and (min-width: 1101px) {
  .scard { padding: 6px 10px; }
  .scard img { height: 30px; }
  .scard .mini { display: none; }
  .scard .sn { margin: 2px 0; }
}


/* ======================================================================
   主大厅
   ====================================================================== */
#hub { padding: 14px; }
.hub-frame {
  height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 12px;
  border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 26px; padding: 16px 22px 14px;
  background: rgba(250, 252, 255, .35);
  box-shadow: inset 0 0 0 1px rgba(201, 154, 78, .12), 0 30px 80px -40px rgba(63, 71, 74, .4);
  min-height: 0;
}
.hub-top { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; }
.brand { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 30px; line-height: 1; }
.brand .t1 { color: var(--plum); }
.brand .t2 { background: linear-gradient(180deg, #7abfff, #3d9bff 60%, #2a87e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { flex-basis: 100%; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .06em; color: var(--mute); margin-top: 4px; }
.tabs { display: flex; gap: 4px; justify-content: center; background: rgba(255, 255, 255, .55); padding: 5px; border-radius: 999px; justify-self: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
.tabs button { padding: 10px 20px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .2em; color: var(--plum2); transition: background .15s, color .15s; }
.tabs button:hover { background: rgba(255, 255, 255, .8); }
.tabs button.on { background: linear-gradient(180deg, #6ab2ff, #3d9bff); color: #fff; box-shadow: 0 8px 20px -10px rgba(61, 155, 255, .8); }
.who { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .75); padding: 6px 8px 6px 6px; border-radius: 999px; }
.lv-badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 18px; color: #fff; background: radial-gradient(circle at 35% 30%, #9dcdff, #2d85ff); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold); flex: none; }
.who-tx { display: grid; gap: 2px; min-width: 130px; }
.who-tx b { font-size: 13px; color: var(--plum); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-tx small { font-size: 9.5px; letter-spacing: .12em; color: var(--mute); font-weight: 700; }
.xpbar { height: 6px; border-radius: 3px; background: rgba(63, 71, 74, .1); overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd34d, #7abfff); border-radius: 3px; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.xpbar.big { height: 10px; border-radius: 5px; flex: 1; }
.coins { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--plum); padding: 6px 12px; background: #fff6de; border-radius: 999px; }
.coin, .coins i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff2b0, #e3a52c); box-shadow: inset 0 0 0 2px rgba(180, 120, 20, .35); vertical-align: -2px; margin-right: 4px; flex: none; }
.top-actions { display: flex; gap: 6px; }
.pill { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-weight: 800; font-size: 12px; color: var(--plum); }
.pill:hover { background: #fff; }

.hub-body { display: grid; grid-template-columns: 1fr minmax(420px, 560px); gap: 18px; min-height: 0; }
.stage-wrap { position: relative; border-radius: 24px; overflow: hidden; min-height: 0; cursor: grab;
  background: radial-gradient(ellipse at 50% 30%, rgba(69, 85, 90, .9), rgba(37, 42, 43, .94) 70%);
  box-shadow: 0 30px 60px -30px rgba(37, 42, 43, .7), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.stage-wrap:active { cursor: grabbing; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-wrap .watermark { font-size: clamp(50px, 8vw, 140px); }

.panel { overflow-y: auto; overflow-x: hidden; padding: 4px 6px 12px 2px; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(61, 155, 255, .4) transparent; }
.panel.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.panel .sec-h { margin-top: 12px; }
.panel .sec-h.dim, .seg.dim { opacity: .35; pointer-events: none; }
.hint { font-size: 12.5px; color: var(--mute); margin: 6px 0 0; line-height: 1.5; }

.modes { display: grid; gap: 8px; }
.mode-card { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .62); border: 1.5px solid rgba(255, 255, 255, .9); transition: all .15s; }
.mode-card:hover { background: #fff; }
.mode-card.on { background: #fff; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(61, 155, 255, .15), 0 14px 30px -18px rgba(61, 155, 255, .7); }
.mode-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(160deg, #8cc7ff, #3d9bff); flex: none; }
.mode-card:not(.on) .mode-ic { background: linear-gradient(160deg, #c2d1d9, #9aaeb8); }
.mode-tx b { display: block; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--plum); line-height: 1.1; }
.mode-tx small { display: block; font-size: 12.5px; color: var(--mute); margin: 3px 0 7px; line-height: 1.4; }
.chips-row { display: flex; flex-wrap: wrap; gap: 5px; }
.chips-row em { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .14em; padding: 3px 8px; border-radius: 999px; background: rgba(61, 155, 255, .1); color: var(--pink); }

.seg { display: inline-flex; background: rgba(255, 255, 255, .6); padding: 4px; border-radius: 999px; gap: 4px; }
.seg button { padding: 8px 18px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .1em; color: var(--plum2); }
.seg button.on { background: var(--plum); color: #fff; }
.slots { margin-left: auto; display: inline-flex; gap: 4px; }
.slots button { min-width: 30px; padding: 5px 9px; border-radius: 8px; font-weight: 800; font-size: 11px; background: rgba(255, 255, 255, .7); color: var(--plum2); letter-spacing: .08em; }
.slots button.on { background: var(--pink); color: #fff; }
.slots.big { margin-left: 0; }
.slots.big button { padding: 8px 14px; }

.lo-list { display: grid; gap: 6px; }
.lo-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 12px; padding: 6px 14px 6px 8px; border-radius: 14px; background: rgba(255, 255, 255, .62); text-align: left; border: 1.5px solid rgba(255, 255, 255, .9); }
.lo-row:hover { background: #fff; border-color: rgba(61, 155, 255, .4); }
.lo-row img { width: 120px; height: 40px; object-fit: contain; }
.lo-row small { display: block; font-size: 9.5px; letter-spacing: .2em; font-weight: 800; color: var(--gold); }
.lo-row b { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--plum); }
.lo-row em { font-style: normal; font-size: 11px; color: var(--mute); margin-left: 8px; }
.lo-row i { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--pink); }
.char-row { grid-template-columns: 56px 1fr auto; }
.char-row img { width: 56px; height: 60px; object-fit: cover; border-radius: 10px; background: linear-gradient(#45555a, #252a2b); }
.map-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .5); }
.map-row small { font-size: 10px; letter-spacing: .24em; font-weight: 800; color: var(--mute); }
.map-row b { font-family: var(--serif); font-style: italic; color: var(--plum); }

.char-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.char-card { position: relative; padding: 6px 6px 8px; border-radius: 14px; background: rgba(255, 255, 255, .62); border: 1.5px solid rgba(255, 255, 255, .9); text-align: center; transition: all .15s; overflow: hidden; }
.char-card img { width: 100%; aspect-ratio: 11 / 12; object-fit: cover; border-radius: 10px; background: linear-gradient(180deg, #47626a, #252a2b); border-bottom: 3px solid var(--tc); }
.char-card b { display: block; font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--plum); margin-top: 5px; line-height: 1.15; }
.char-card:hover { background: #fff; }
.char-card.on { border-color: var(--pink); background: #fff; box-shadow: 0 0 0 3px rgba(61, 155, 255, .15); }
.char-card.locked img { filter: grayscale(1) brightness(.6); }
.char-card .lock { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #fff; background: rgba(37, 42, 43, .8); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.char-card .tick { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.char-detail { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .6); }
.char-detail .kick { font-size: 10.5px; letter-spacing: .26em; font-weight: 800; }
.char-detail h2 { margin: 2px 0 6px; font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--plum); }
.char-detail p { margin: 0; color: var(--ink); line-height: 1.5; }
.row-l { display: flex; gap: 10px; margin-top: 14px; }
.btn[disabled] { opacity: .7; cursor: default; }

.wcard { width: 100%; text-align: left; }
.wcard > span:not(.heart):not(.lock) { display: block; }
.wcard .wn, .wcard .wc { display: block; }
.locked { opacity: .62; }
.wcard .lock, .scard .lock { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #fff; background: rgba(37, 42, 43, .78); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.scard .lock { display: inline-block; margin-top: 4px; }
.detail-box { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .6); }
.detail-box .name-row h2 { font-size: 34px; }
.detail-box .bars { grid-template-columns: 1fr; gap: 7px; }
.detail-box .nums { margin-top: 12px; gap: 18px; }
.detail-box .nums b { font-size: 22px; }
.skin-link { margin-top: 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--pink); padding: 8px 12px; border-radius: 999px; background: rgba(61, 155, 255, .08); }

.wchips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wchip { padding: 6px 4px 6px; border-radius: 12px; background: rgba(255, 255, 255, .6); border: 1.5px solid rgba(255, 255, 255, .9); }
.wchip img { width: 100%; height: 34px; object-fit: contain; }
.wchip small { display: block; font-size: 10px; font-weight: 700; color: var(--plum2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wchip.on { border-color: var(--pink); background: #fff; }
.skin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.skin-card { padding: 12px 6px 10px; border-radius: 14px; background: rgba(255, 255, 255, .62); border: 1.5px solid rgba(255, 255, 255, .9); display: grid; justify-items: center; gap: 4px; text-align: center; }
.skin-card .sw { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 6px 14px -6px rgba(0, 0, 0, .4); }
.skin-card b { font-size: 11.5px; color: var(--plum); line-height: 1.2; }
.skin-card small { font-size: 10.5px; font-weight: 800; color: var(--mute); display: flex; align-items: center; }
.skin-card.eq small { color: var(--pink); }
.skin-card.on { border-color: var(--pink); background: #fff; box-shadow: 0 0 0 3px rgba(61, 155, 255, .15); }
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .7); }
.shop-bar small { display: block; font-size: 10px; letter-spacing: .2em; font-weight: 800; color: var(--gold); }
.shop-bar b { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--plum); }
.shop-bar .btn { display: inline-flex; align-items: center; gap: 4px; }
.shop-big { display: block; width: 100%; max-width: 480px; margin: 10px auto 0; opacity: .9; }

.form { display: grid; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .6); }
.form label { display: grid; gap: 6px; font-size: 10.5px; letter-spacing: .2em; font-weight: 800; color: var(--mute); }
.form output { font-size: 12px; color: var(--plum); letter-spacing: 0; }
.form input:not([type=range]) { font: 600 15px var(--sans); padding: 10px 12px; border-radius: 10px; border: 1.5px solid rgba(63, 71, 74, .15); background: #fff; color: var(--plum); }
.form input[type=range] { accent-color: var(--pink); width: 100%; }
.end-stats.six { grid-template-columns: repeat(3, 1fr); }
table.hist { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 4px; }
table.hist th { text-align: left; font-size: 9.5px; letter-spacing: .18em; color: var(--mute); padding: 6px; }
table.hist td { padding: 7px 6px; border-top: 1px solid var(--line); }
.r-win { color: #1f9e6e; font-weight: 800; } .r-lose { color: #386cd7; font-weight: 800; } .r-draw { color: var(--mute); font-weight: 800; }
.btn.danger { color: #386cd7; }

.hub-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.hub-foot .foot-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.summary { text-align: right; }
.summary b { display: block; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--plum); }
.summary small { font-size: 10px; letter-spacing: .24em; font-weight: 800; color: var(--gold); }

#toast { position: fixed; left: 50%; bottom: 120px; transform: translate(-50%, 20px); padding: 12px 22px; border-radius: 999px; background: var(--plum); color: #fff; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 30; box-shadow: 0 16px 40px -12px rgba(37, 42, 43, .6); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 结算奖励 */
.end-rewards { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #fcf6ff, #fff3dc); text-align: left; }
.rw-row { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 10px; }
.rw-row b { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--plum); }
.rw-row span { font-size: 11px; letter-spacing: .2em; font-weight: 800; color: var(--mute); margin-right: 18px; }
.rw-row .coin-t { color: #c98b1b; display: inline-flex; align-items: center; }
.rw-lv { display: flex; align-items: center; gap: 12px; }
.rw-lv small { font-size: 11px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.rw-up { margin-top: 10px; font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 22px; color: var(--pink); animation: pop .4s ease-out; }
.rw-unlock { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rw-unlock small { font-size: 10px; letter-spacing: .22em; font-weight: 800; color: var(--gold); margin-right: 4px; }
.rw-unlock em { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--plum); }

/* HUD：模式相关 */
.range-tag { display: none; position: absolute; top: 82px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .26em; font-weight: 800; color: #fff; background: rgba(37, 42, 43, .55); padding: 6px 14px; border-radius: 999px; }
#hud[data-mode=range] .range-tag { display: block; }
#hud[data-mode=range] .scorebar .prog { display: none; }
#board .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }

/* 中文：收窄字距 */
html[data-lang=zh] .tabs button, html[data-lang=zh] .sec-h, html[data-lang=zh] .chips-row em, html[data-lang=zh] .seg button,
html[data-lang=zh] .cat small, html[data-lang=zh] .bar, html[data-lang=zh] .nums small, html[data-lang=zh] .keys,
html[data-lang=zh] .lo-row small, html[data-lang=zh] .summary small, html[data-lang=zh] .kicker, html[data-lang=zh] .scorebar small { letter-spacing: .06em; }

@media (max-width: 1200px) {
  .hub-top { grid-template-columns: 1fr auto; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; }
  .who { display: none; }
}
@media (max-width: 1000px) {
  .hub-body { grid-template-columns: 1fr; grid-template-rows: 300px auto; }
  .hub-frame { overflow-y: auto; }
  .char-grid, .skin-grid, .wchips { grid-template-columns: repeat(3, 1fr); }
}
@media (max-height: 820px) and (min-width: 1001px) {
  .hub-foot .keys { display: none; }
}

/* ======================================================================
   大厅 v4：严格按参考图（设计稿 1755×897）排版，JS 用 zoom 整体缩放到屏幕
   ====================================================================== */
:root {
  --pk: #3fb0ff; --pk2: #7ccfff; --pkD: #1f80c4; --pkX: #3a556a;
  --pn: rgba(40, 31, 50, .9); --pn2: rgba(56, 45, 70, .92); --edge: rgba(255, 255, 255, .09); --edgeD: #17101e;
  --gold: #ffc93c; --bkfont: 'Noto Sans SC', 'Montserrat', system-ui, sans-serif; --logo: 'Bungee', 'Montserrat', sans-serif;
}
#hub { padding: 0; overflow: hidden; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; font-family: var(--bkfont); }
#hub #stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hub .hub-frame { position: absolute; left: 0; top: 0; width: 1755px; height: 897px; display: grid; grid-template-rows: 82px minmax(0, 1fr) 194px; gap: 0;
  border: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.px { display: block; width: 100%; height: 100%; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
#hub b { text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }

/* 深色方块面板 / 粉色方块按钮 */
.pnl, #hub .tabs, #hub .home-menu .hm-item:not(.quick), #hub .card, #hub .rotation, #hub .foot-right, #hub .ic-btn, #hub .coins, #hub .gems,
#hub .st-arrow, #hub .st-pill, #hub .st-focus, #hub .fr-ic, #hub .season-go, #hub .match-set, #hub .foot-left {
  background: var(--pn); border: 2px solid var(--edge); border-radius: 10px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .07), inset 0 -3px 0 rgba(0, 0, 0, .3), 0 4px 0 rgba(10, 5, 15, .45);
}
#hub .tabs button.on, #hub .hm-item.quick, #hub .deploy-big, #hub .fr-join, #hub .dl-claim {
  background: linear-gradient(180deg, #7ccfff 0%, var(--pk) 45%, #2d9ef0 100%); color: #fff; border: 3px solid #d0ecff; border-radius: 10px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -5px 0 var(--pkD), 0 0 0 2px var(--pkX), 0 5px 0 2px #3b434a, 0 0 22px rgba(63, 176, 255, .75);
}
#hub button { transition: transform .08s, filter .12s; }
#hub button:hover { filter: brightness(1.08); }
#hub button:active { transform: translateY(2px); }

/* ---- 顶部（0..82） */
#hub .hub-top { display: flex; align-items: center; height: 82px; margin: 0; padding: 0 22px 0 30px; gap: 0;
  background: linear-gradient(180deg, rgba(36, 27, 46, .96), rgba(28, 20, 36, .94)); border-bottom: 3px solid rgba(0, 0, 0, .4); box-shadow: 0 3px 0 rgba(255, 255, 255, .05) inset; }
#hub .brand { display: flex; align-items: center; gap: 12px; width: 270px; flex: none; }
#hub .brand-logo { display: block; height: 58px; width: auto; pointer-events: none; }   /* bibiu.io 字标（assets/brand/logo.svg） */
#hub .tabs { display: flex; gap: 8px; margin-left: 20px; padding: 5px; height: 60px; align-items: center; justify-self: auto; border-radius: 12px; background: rgba(21, 15, 28, .75); }
#hub .tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 110px; height: 48px; padding: 0; color: #fff; font-size: 20px; font-weight: 900; letter-spacing: .04em;
  background: var(--pn2); border: 2px solid var(--edge); border-radius: 9px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .07), inset 0 -3px 0 rgba(0, 0, 0, .3); position: relative; white-space: nowrap; }
#hub .tabs button .px { width: 30px; height: 30px; }
#hub .tabs .dot { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: #3b5eff; border: 2px solid #fff; }
#hub .top-icons { display: flex; gap: 8px; margin-left: auto; padding: 0 16px 0 0; border: 0; }
#hub .ic-btn { position: relative; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; color: #fff; }
#hub .ic-btn i { display: block; width: 26px; height: 26px; }
#hub .ping { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #3b5eff; border: 2px solid #fff; }
#hub .who { display: flex; align-items: center; gap: 10px; width: 230px; margin-right: 14px; background: none; padding: 0; text-align: left; color: #fff; box-shadow: none; border: 0; }
#hub .avatar { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; object-position: 50% 15%; background: linear-gradient(180deg, #8fd3ff, #5fb8ff); border: 2px solid rgba(255, 255, 255, .5); box-shadow: 0 3px 0 rgba(0, 0, 0, .4); flex: none; }
#hub .who-tx { display: grid; gap: 2px; min-width: 0; flex: 1; }
#hub .who-tx b { font-size: 16px; font-weight: 900; color: #fff; max-width: none; }
#hub .who-lv { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 900; }
#hub .who-lv i { font-style: normal; }
#hub .who-lv small { font-size: 12px; color: rgba(255, 255, 255, .8); font-weight: 700; }
#hub .xpbar { height: 7px; border-radius: 4px; background: rgba(0, 0, 0, .5); overflow: hidden; border: 0; }
#hub .xpbar i { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6dc4ff, var(--pk)); box-shadow: 0 0 6px var(--pk); }
#hub .wallet { display: flex; gap: 10px; }
#hub .coins, #hub .gems { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 6px 0 8px; color: #fff; font-weight: 900; font-size: 20px; }
#hub .coins { width: 127px; } #hub .gems { width: 101px; }
#hub .coins span, #hub .gems span { flex: 1; color: #fff; }
#hub .coins .px, #hub .gems i { width: 26px; height: 26px; display: block; }
#hub .coins b, #hub .gems b { width: 26px; height: 26px; border-radius: 5px; display: grid; place-items: center; font-size: 20px; line-height: 1; padding: 3px; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #7ccfff, var(--pk)); border: 2px solid #d0ecff; box-shadow: 0 2px 0 var(--pkX); text-shadow: none; }

/* ---- 主体（82..703）：左 296 / 中 自适应 / 右 490 */
#hub .hub-body { display: grid; grid-template-columns: minmax(0, 1fr) 540px; gap: 18px; padding: 0 22px; min-height: 0; }
#hub[data-tab=home] .hub-body { grid-template-columns: 296px minmax(0, 1fr) 490px; gap: 0; }
#hub .home-menu { display: none; }
#hub[data-tab=home] .home-menu { display: flex; flex-direction: column; gap: 10px; padding-top: 40px; }
#hub[data-tab=home] .hub-body.focus { grid-template-columns: 0 minmax(0, 1fr) 0; }
#hub .hub-body.focus .home-menu, #hub .hub-body.focus .panel { visibility: hidden; overflow: hidden; }
.hm-item { position: relative; display: flex; align-items: center; gap: 16px; height: 82px; padding: 0 16px; text-align: left; color: #fff; flex: none; }
#hub .hm-item.quick { height: 100px; width: 284px; margin: 0 0 8px 3px; padding: 0 18px; gap: 18px; }
.hm-ic { width: 58px; height: 58px; display: grid; place-items: center; flex: none; }
.hm-item.quick .hm-ic { width: 66px; height: 66px; }
.hm-ic .px { filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .45)); }
.hm-tx { display: flex; flex-direction: column; gap: 3px; }
.hm-tx b { font-size: 23px; font-weight: 900; letter-spacing: .04em; }
.hm-tx small { font-size: 15px; color: rgba(255, 255, 255, .78); font-weight: 700; }
.hm-item.quick .hm-tx b { font-size: 28px; }
.hm-item.quick .hm-tx small { font-size: 16px; color: #fff; }
.hm-badge { position: absolute; top: 9px; right: 10px; font-style: normal; font-size: 16px; font-weight: 900; padding: 1px 10px; border-radius: 7px; color: #fff;
  background: linear-gradient(180deg, #7ccfff, var(--pk)); border: 2px solid #d0ecff; box-shadow: 0 2px 0 var(--pkX); }
.hm-soon { display: none; }

/* ---- 中间：角色展示（透明，看到 3D 小镇） */
#hub .stage-wrap { position: relative; background: none; box-shadow: none; border-radius: 0; overflow: visible; cursor: grab; min-height: 0; }
#hub .stage-wrap .watermark { display: none; }
#hub .drag-hint { color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
#hub[data-tab=home] .stage-wrap .drag-hint { display: none; }
.stage-ui { position: absolute; inset: 0; pointer-events: none; z-index: 3; display: none; }
#hub[data-tab=home] .stage-ui { display: block; }
.stage-ui > * { pointer-events: auto; }
#hub .st-pill { position: absolute; left: calc(50% - 171px); top: 530px; width: 262px; height: 53px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 10px; color: #fff; white-space: nowrap; }
#hub .st-pill .ic { display: block; width: 30px; height: 30px; }
#hub .st-pill b { font-size: 20px; font-weight: 900; }
#hub .st-pill .pen { font-style: normal; display: block; width: 30px; height: 30px; padding: 4px; border-radius: 6px; font-size: 16px;
  background: linear-gradient(180deg, #7ccfff, var(--pk)); border: 2px solid #d0ecff; box-shadow: 0 2px 0 var(--pkX); }
#hub .st-arrow { position: absolute; top: 531px; width: 50px; height: 50px; color: #fff; padding: 10px; }
#hub .st-arrow i, #hub .st-focus i { display: block; width: 100%; height: 100%; }
#hub .st-arrow.l { left: calc(50% - 270px); } #hub .st-arrow.r { left: calc(50% + 122px); }
#hub .st-dots { position: absolute; left: calc(50% - 40px); top: 598px; transform: translateX(-50%); display: flex; gap: 8px; }
#hub .st-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
#hub .st-dots i.on { width: 22px; border-radius: 5px; background: linear-gradient(90deg, #fff 0 40%, var(--pk) 40%); }
#hub .st-focus { position: absolute; right: 48px; top: 530px; width: 55px; height: 55px; display: grid; place-items: center; color: #fff; }
#hub .st-focus i { width: 30px; height: 30px; }

/* ---- 右栏（x 1243..1733）：赛季 145 / 圆点 / 任务 167 / 好友 197 */
#hub[data-tab=home] .panel { display: flex; flex-direction: column; gap: 0; padding: 21px 0 0; overflow: visible; background: none; border: 0; box-shadow: none; }
#hub[data-tab=home] .panel > * { width: 490px; min-width: 0; flex: none; }
#hub:not([data-tab=home]) .panel { background: rgba(247, 250, 255, .96); color: var(--ink); border: 3px solid var(--edgeD); border-radius: 14px; padding: 12px 18px 16px; margin: 16px 0 10px;
  box-shadow: inset 0 3px 0 #fff, 0 5px 0 rgba(12, 6, 18, .45); }
.season { position: relative; display: flex; align-items: center; height: 145px; padding: 0 22px; text-align: left; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #b3dfff, #8fd3ff) center / cover; border: 3px solid #d0ecff; border-radius: 12px;
  box-shadow: 0 0 0 2px var(--pkX), 0 5px 0 2px rgba(12, 6, 18, .5), 0 0 22px rgba(63, 176, 255, .55); }
.season::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 18, 70, .78), rgba(40, 18, 70, .35) 55%, rgba(40, 18, 70, 0) 80%); }
.season-tx { position: relative; display: flex; flex-direction: column; gap: 12px; margin-top: -6px; }
.season-tx b { font-size: 42px; font-weight: 900; font-style: italic; color: var(--pk); -webkit-text-stroke: 2px #fff; paint-order: stroke fill; text-shadow: 0 4px 0 #3b434a; letter-spacing: .01em; line-height: 1; }
.season-tx small { font-size: 16px; font-weight: 800; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
#hub .season-go { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 42px; height: 46px; padding: 9px; }
.season-dots { display: flex; justify-content: center; gap: 8px; height: 10px; margin: 7px 0 13px; }
.season-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .75); }
.season-dots i.on { width: 22px; border-radius: 5px; background: linear-gradient(90deg, #fff 0 40%, var(--pk) 40%); }
#hub .card { text-align: left; padding: 0 16px; }
#hub .card.daily { height: 167px; margin-bottom: 13px; }
#hub .card.friends { height: 197px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 48px; margin: 0; border: 0; }
.card-h b { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; white-space: nowrap; }
.card-h b .px { width: 26px; height: 26px; }
.card-h b em { font-style: normal; color: #fff; }
.card-h small { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .85); white-space: nowrap; cursor: default; }
.dl-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 135px 40px 64px; align-items: center; gap: 12px; height: 38px; font-size: 15px; font-weight: 800; text-align: left; }
.dl-ck { width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; padding: 3px; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .45); }
.dl-row.done .dl-ck { background: var(--pk); border-color: #d0ecff; }
.dl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-row.claimed .dl-name { color: rgba(255, 255, 255, .55); text-decoration: line-through; }
.dl-bar { height: 9px; background: rgba(0, 0, 0, .45); border-radius: 5px; overflow: hidden; }
.dl-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #6dc4ff, var(--pk)); box-shadow: 0 0 6px var(--pk); }
.dl-n { text-align: right; font-variant-numeric: tabular-nums; font-size: 16px; }
.dl-xp { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-weight: 900; font-size: 16px; }
.dl-xp i { font-style: normal; font-size: 11px; font-weight: 900; padding: 1px 4px; border-radius: 5px; background: var(--pk); border: 2px solid #d0ecff; }
.dl-xp.got { width: 24px; height: 24px; padding: 4px; justify-self: end; border-radius: 5px; background: #4fc23a; border: 2px solid #c8f5b8; }
#hub .dl-claim { justify-self: end; padding: 2px 10px; border-radius: 7px; font-size: 14px; font-weight: 900; border-width: 2px; animation: claimPulse 1.4s ease-in-out infinite; }
@keyframes claimPulse { 50% { transform: scale(1.06); } }
.fr-row { display: grid; grid-template-columns: 42px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 49px; border-top: 1px solid rgba(255, 255, 255, .07); }
.card-h + .fr-row { border-top: 0; }
.fr-av { position: relative; width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(#8fd3ff, #5fb8ff); border: 2px solid rgba(255, 255, 255, .5); }
.fr-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; border-radius: 6px; }
.fr-av i { position: absolute; right: -4px; bottom: -4px; width: 11px; height: 11px; border-radius: 50%; background: #4ade4a; border: 2px solid #1f1828; }
.fr-row b { font-size: 17px; font-weight: 900; white-space: nowrap; }
.fr-row small { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hub .fr-join { padding: 3px 14px; border-radius: 8px; font-size: 16px; font-weight: 900; border-width: 2px; }
#hub .fr-ic { width: 40px; height: 36px; padding: 5px 8px; }

/* ---- 底部（703..862）：模式轮换 1218 + 出战面板 */
#hub .hub-foot { display: grid; grid-template-columns: minmax(1218px, 1fr) 495px; gap: 10px; height: 159px; padding: 0 10px 0 22px; margin: 0; min-height: 0; align-items: stretch; }
#hub:not([data-tab=home]) .hub-foot { grid-template-columns: minmax(0, 1fr) 495px; }
#hub .rotation { display: none; }
#hub[data-tab=home] .rotation { display: flex; align-items: center; gap: 0; padding: 0 16px 0 26px; min-width: 0; }
#hub[data-tab=home] .foot-left { display: none; }
#hub .foot-left { display: flex; flex-direction: column; justify-content: center; padding: 10px 18px; }
#hub .foot-left .tip { color: #fff; margin: 0 0 6px; }
#hub .foot-left .keys { color: rgba(255, 255, 255, .75); }
#hub .foot-left .keys kbd { color: #fff; }
#hub .summary { display: none; }
.rot-head { display: flex; flex-direction: column; gap: 6px; width: 170px; flex: none; }
.rot-head em { align-self: flex-start; font-style: normal; font-size: 15px; font-weight: 900; padding: 1px 9px; border-radius: 6px; background: linear-gradient(180deg, #7ccfff, var(--pk)); border: 2px solid #d0ecff; box-shadow: 0 2px 0 var(--pkX); }
.rot-head b { font-size: 28px; font-weight: 900; margin-top: 8px; }
.rot-head small { font-size: 16px; color: rgba(255, 255, 255, .85); font-weight: 700; }
.rot-more { font-style: normal; width: 12px; margin: 0 0 0 0; color: rgba(255, 255, 255, .5); font-size: 22px; flex: none; }
.rot-list { flex: 1; display: grid; grid-template-columns: repeat(4, 238px); gap: 14px; justify-content: end; min-width: 0; }
.rot-card { position: relative; height: 135px; border-radius: 10px; overflow: hidden; text-align: left; color: #fff; background: linear-gradient(140deg, #8cd0ff, #8fd3ff) center / cover;
  border: 2px solid rgba(255, 255, 255, .25); box-shadow: 0 4px 0 rgba(10, 5, 15, .5); }
.rot-card.on { border: 3px solid #d0ecff; box-shadow: 0 0 0 3px var(--pk), 0 0 24px rgba(63, 176, 255, .9), 0 4px 0 rgba(10, 5, 15, .5); }
.rot-art { position: absolute; right: 0; top: 4px; width: 120px; opacity: .6; }
.rot-art svg { width: 100%; height: auto; display: block; }
.rot-tx { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 10px; display: flex; flex-direction: column; gap: 3px; background: linear-gradient(180deg, transparent, rgba(22, 13, 34, .85)); }
.rot-tx b { font-size: 21px; font-weight: 900; }
.rot-tx small { font-size: 16px; font-weight: 700; color: #fff; }
.rot-card > em { display: none; }
#hub .foot-right { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; padding: 0 10px; margin: 0; }
#hub .deploy-big { position: relative; display: flex; align-items: center; justify-content: center; gap: 26px; width: 350px; height: 125px; min-width: 0; padding: 0 24px; transform: none; text-align: left; border-radius: 14px; border-width: 3px; }
#hub .deploy-big > * { transform: none; }
.play-ic { width: 0; height: 0; border-left: 46px solid #fff; border-top: 30px solid transparent; border-bottom: 30px solid transparent; filter: drop-shadow(0 4px 0 rgba(57, 87, 110, .5)); }
.dtx { display: flex; flex-direction: column; align-items: center; gap: 6px; }
#hub .dtx b { font-size: 48px; font-weight: 900; letter-spacing: .08em; line-height: 1; text-shadow: 0 4px 0 #16649e; font-style: normal; }
.dtx small { font-size: 18px; font-weight: 800; color: #fff; white-space: nowrap; text-shadow: 0 2px 0 rgba(57, 87, 110, .6); }
#hub .match-set { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 104px; height: 125px; color: #fff; }
.match-set i { display: block; width: 42px; height: 42px; }
.match-set small { font-size: 18px; font-weight: 900; }

/* ======================================================================
   大厅 v5：直接使用 UI 图标表裁出来的原图（assets/ui/*.png）
   ====================================================================== */

/* 顶部导航：CSS 绘制的独立圆角按钮，宽度随文字（兼容英文） */
#hub .hub-top { min-width: 0; }
#hub .tabs { flex: 0 1 auto; min-width: 0; height: 62px; gap: 6px; margin: 0 12px 0 14px; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
#hub .tabs button { position: relative; flex: 0 1 auto; min-width: 0; width: auto; height: 52px; padding: 0 15px 0 11px; gap: 7px; justify-content: center;
  font-size: 21px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; color: #fff; border-radius: 11px;
  background: linear-gradient(180deg, #3d3346 0%, #2c2433 100%); border: 2px solid #18111f;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), inset 0 -3px 0 rgba(0, 0, 0, .3), 0 3px 0 rgba(8, 4, 12, .55); }
#hub .tabs button span { overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
#hub .tabs button .tic { display: block; width: 32px; height: 30px; flex: none; }
#hub .tabs button .tic img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
#hub .tabs button.on { background: linear-gradient(180deg, #8ad5ff 0%, #4ab5ff 50%, #2c9eee 100%); border: 2px solid #c6e9ff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 #1f80c4, 0 0 0 2px #315c7a, 0 3px 0 2px #3b434a, 0 0 18px rgba(63, 176, 255, .7); }
#hub .tabs button.on .tic img { filter: drop-shadow(0 2px 0 rgba(49, 92, 122, .6)); }
#hub .tabs .dot { top: -5px; right: -5px; }
html[data-lang=en] #hub .tabs button { font-size: 16px; letter-spacing: .01em; padding: 0 11px 0 9px; gap: 6px; }
html[data-lang=en] #hub .tabs button .tic { width: 25px; height: 24px; }

/* 右上：铃铛 / 信封 / 齿轮 直接用图标表按钮 */
#hub .ic-btn[data-soon=notice], #hub .ic-btn[data-soon=mail], #hub #btnSettings { width: 47px; height: 44px; border: 0; border-radius: 0; box-shadow: none; background: center / 100% 100% no-repeat; }
#hub .ic-btn[data-soon=notice] { background-image: url(assets/ui/btn_bell.png); }
#hub .ic-btn[data-soon=mail] { background-image: url(assets/ui/btn_mail.png); }
#hub #btnSettings { background-image: url(assets/ui/btn_gear.png); }
#hub .ic-btn[data-soon=notice] i, #hub .ic-btn[data-soon=mail] i, #hub #btnSettings i, #hub .ic-btn[data-soon=notice] .ping { display: none; }

/* 金币 / 钻石：图标表里的整条（图标 + 底条 + 粉色加号） */
#hub .coins, #hub .gems { height: 46px; padding: 0 0 0 50px; border: 0; border-radius: 0; box-shadow: none; background: center / 100% 100% no-repeat; position: relative; }
#hub .coins { width: 128px; height: 41px; padding-left: 44px; background-image: url(assets/ui/wallet_coin.png); }   /* 去掉了「+」：游戏没有充值 */
#hub .gems { width: 108px; height: 41px; padding-left: 46px; background-image: url(assets/ui/wallet_gem.png); }
#hub .coins .px, #hub .gems i { display: none; }
#hub .coins b, #hub .gems b { position: absolute; right: 0; top: 0; width: 40px; height: 100%; background: none; border: 0; box-shadow: none; }
#hub .gems b .px { display: none; }

/* 左侧菜单：CSS 绘制的深色面板 + 左侧图标凹槽；快速开始为粉色发光面板。文字可变长（英文缩小字号，副标题可换行） */
#hub[data-tab=home] .home-menu { gap: 12px; padding: 34px 0 0 14px; }
#hub .home-menu .hm-item { width: 270px; height: 78px; padding: 0 12px 0 10px; gap: 14px; border-radius: 12px;
  background: linear-gradient(180deg, #3e3447 0%, #2d2534 100%); border: 2px solid #18111f;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), inset 0 -4px 0 rgba(0, 0, 0, .28), 0 4px 0 rgba(8, 4, 12, .55); }
#hub .home-menu .hm-ic { width: 66px; height: 60px; border-radius: 9px; background: rgba(14, 9, 20, .45); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .06); }
#hub .home-menu .hm-ic img { width: 52px; height: 52px; object-fit: contain; display: block; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .4)); }
#hub .home-menu .hm-tx { min-width: 0; flex: 1; }
#hub .home-menu .hm-tx b { font-size: 24px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hub .home-menu .hm-tx small { font-size: 15px; line-height: 1.2; }
#hub .home-menu .hm-item.quick { width: 270px; height: 104px; margin: 0 0 4px; padding: 0 12px 0 14px; gap: 14px; border-radius: 14px;
  background: linear-gradient(180deg, #8fd9ff 0%, #4ab7ff 45%, #289ae8 100%); border: 3px solid #f2f4ff;
  box-shadow: inset 0 0 0 2px #6bc5ff, inset 0 -6px 0 rgba(20, 102, 160, .45), 0 0 0 3px #1f8fd8, 0 5px 0 3px #3d4e5a, 0 0 26px rgba(63, 176, 255, .85); }
#hub .home-menu .hm-item.quick .hm-ic { width: 70px; height: 70px; background: none; box-shadow: none; }
#hub .home-menu .hm-item.quick .hm-ic img { width: 66px; height: 66px; filter: drop-shadow(0 3px 0 rgba(49, 92, 122, .55)); }
#hub .home-menu .hm-item.quick .hm-tx b { font-size: 30px; text-shadow: 0 3px 0 rgba(49, 92, 122, .6); }
#hub .home-menu .hm-item.quick .hm-tx small { font-size: 16px; color: #fff; }
html[data-lang=en] #hub .home-menu .hm-tx b { font-size: 19px; letter-spacing: .02em; }
html[data-lang=en] #hub .home-menu .hm-item.quick .hm-tx b { font-size: 21px; }
html[data-lang=en] #hub .home-menu .hm-item { gap: 11px; }
#hub .hm-tx small i { font-style: normal; white-space: nowrap; }
html[data-lang=en] #hub .home-menu .hm-tx small { font-size: 14px; }
#hub .hm-badge { top: -9px; right: -6px; width: auto; height: auto; padding: 1px 10px; font-size: 16px; border-radius: 7px;
  background: linear-gradient(180deg, #8ad5ff, var(--pk)); border: 2px solid #d0ecff; box-shadow: 0 0 0 2px #315c7a, 0 2px 0 2px #3b434a; }

/* 中间展台按钮 */
#hub .st-arrow, #hub .st-focus { border: 0; border-radius: 0; box-shadow: none; background: center / 100% 100% no-repeat; }
#hub .st-arrow i, #hub .st-focus i { display: none; }
#hub .st-arrow { width: 56px; height: 51px; top: 530px; }
#hub .st-arrow.l { background-image: url(assets/ui/btn_left.png); left: calc(50% - 274px); }
#hub .st-arrow.r { background-image: url(assets/ui/btn_right.png); }
#hub .st-focus { width: 58px; height: 54px; background-image: url(assets/ui/btn_full.png); }
#hub .st-pill { border: 0; border-radius: 0; box-shadow: none; background: none; border-image: url(assets/ui/pill_dark.png) 18 fill / 16px stretch; }
#hub .st-pill .pen { background: url(assets/ui/sq_pink_s.png) center / 100% 100% no-repeat; border: 0; box-shadow: none; }

/* 右栏：赛季横幅（原图），任务 / 好友面板（九宫格深色面板） */
#hub .season { height: 136px; padding: 0 22px; background: #3a2a6a url(assets/hub/season.jpg) 70% 60% / cover no-repeat; border: 3px solid #17101e; border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .16), 0 4px 0 rgba(10, 5, 15, .5); }
#hub .season-go { display: grid; place-items: center; right: 10px; color: #fff; }
#hub .season::before { background: linear-gradient(90deg, rgba(48, 22, 92, .82), rgba(48, 22, 92, .35) 50%, rgba(48, 22, 92, 0) 72%); border-radius: 0; margin: 0; }
#hub .card, #hub[data-tab=home] .rotation, #hub .foot-right { background: none; border: 0; border-radius: 0; box-shadow: none; border-image: url(assets/ui/panel_c.png) 24 fill / 18px stretch; }
#hub .card { padding: 2px 18px 0; }
.card-h b .ch-ic { width: 30px; height: 30px; object-fit: contain; display: block; }
.dl-ck { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 0; background: url(assets/ui/ck_off_s.png) center / 100% 100% no-repeat; }
.dl-row.done .dl-ck { background: url(assets/ui/ck_on_s.png) center / 100% 100% no-repeat; border: 0; }
.dl-row { grid-template-columns: 24px minmax(0, 1fr) 135px 40px 64px; }
#hub .fr-join, #hub .dl-claim { border: 0; border-radius: 0; box-shadow: none; background: none; border-image: url(assets/ui/pill_pink.png) 16 fill / 12px stretch; padding: 5px 16px; }
#hub .fr-ic { width: 42px; height: 38px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: url(assets/ui/btn_right_s.png) center / 100% 100% no-repeat; }
#hub .fr-ic.watch { background-image: url(assets/ui/btn_full.png); }

/* 底部：模式卡（原图），出战 / 匹配设置（原图） */
#hub[data-tab=home] .rotation { padding: 0 18px 0 26px; }
.rot-card, .rot-card.on { border: 3px solid #17101e; border-radius: 10px; background: #2a2035 center / cover no-repeat; overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14), 0 4px 0 rgba(10, 5, 15, .5); }
.rot-card.on { border-color: #d0ecff; box-shadow: 0 0 0 3px var(--pk), 0 0 22px rgba(63, 176, 255, .85), 0 4px 0 rgba(10, 5, 15, .5); }
.rot-card.tdm { background-image: url(assets/hub/card_tdm.jpg); }
.rot-card.ctrl { background-image: url(assets/hub/card_ctrl.jpg); }
.rot-card.bomb { background-image: url(assets/hub/card_bomb.jpg); }
.rot-card.escort { background-image: url(assets/hub/card_escort.jpg); }
.rot-tx { border-radius: 0; margin: 0; padding: 34px 14px 9px; }
#hub .deploy-big { width: 360px; height: 128px; border: 0; border-radius: 0; box-shadow: none; background: url(assets/ui/deploy.png) center / 100% 100% no-repeat; padding: 0 20px 0 30px; }
#hub .deploy-big .play-ic { visibility: hidden; }
#hub .match-set { width: 112px; height: 122px; justify-content: flex-end; padding-bottom: 14px; border: 0; border-radius: 0; box-shadow: none; background: url(assets/ui/matchset.png) center / 100% 100% no-repeat; }
#hub .match-set i { display: none; }
#hub .top-icons { gap: 6px; padding-right: 14px; }
#hub .who { width: 220px; margin-right: 12px; }
#hub .wallet { gap: 8px; }
#hub .gems span { text-align: left; }

/* 大厅背景：ComfyUI 生成的场景图（assets/hub/bg.jpg），由 JS 按石台位置对齐；3D 画布透明叠在上面 */
#hub { background: #2b2140 url(assets/hub/bg.jpg) no-repeat; }
/* 拖动展台转角色 / 武器时不要选中界面文字；输入框照常可选 */
#hub { -webkit-user-select: none; user-select: none; }
#hub :is(input, textarea, select) { -webkit-user-select: text; user-select: text; }
#hub:not([data-tab=home]):not([data-tab=char]):not([data-tab=play]):not([data-tab=profile]):not([data-tab=event]):not([data-tab=ranked]):not([data-tab=missions])::before {
  content: ''; position: absolute; inset: 0; backdrop-filter: blur(6px) brightness(.8); -webkit-backdrop-filter: blur(6px) brightness(.8); pointer-events: none; }
#hub .avatar, .fr-av img { object-position: 50% 50%; }
.fr-av { background: #b9a2ef; }
html[data-lang=en] #hub .brand { width: auto; margin-right: 4px; }

/* ======================================================================
   大厅 v6：战斗 / 武器 / 仓库 / 商城 / 活动 / 设置 —— 右侧面板统一为首页的深色游戏风格
   （深色圆角块 + 粉色高亮 + 粗黑体，不再用白底和斜体衬线字）
   ====================================================================== */
#hub:not([data-tab=home]) .panel { color: #fff; padding: 14px 16px 18px; border: 2px solid #18111f; border-radius: 16px;
  background: linear-gradient(180deg, rgba(48, 39, 58, .95), rgba(30, 23, 38, .96));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .04), 0 5px 0 rgba(8, 4, 12, .5), 0 24px 50px -24px rgba(0, 0, 0, .7);
  scrollbar-color: rgba(63, 176, 255, .55) transparent; }
#hub .panel :is(b, h2, small, span, em, label, .wn, .sn, .wc, .cat-label, .kick, .blurb, p) { font-family: var(--bkfont); font-style: normal; }
#hub .panel b { text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }

/* 分节标题：粉色编号块 + 白色粗体 */
#hub .panel .sec-h { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; font-size: 17px; font-weight: 900; letter-spacing: .04em; color: #fff; text-transform: none; }
#hub .panel .sec-h:first-child { margin-top: 2px; }
#hub .panel .sec-h > i { font-family: var(--bkfont); font-style: normal; font-size: 13px; font-weight: 900; color: #fff; padding: 2px 8px; border-radius: 7px;
  background: linear-gradient(180deg, #8ad5ff, var(--pk)); box-shadow: 0 0 0 2px #315c7a, 0 2px 0 2px #3b434a; }
#hub .panel .sec-h .script { margin-left: auto; font-family: var(--bkfont); font-size: 14px; font-weight: 800; color: var(--pk2); }
#hub .panel .hint { color: rgba(255, 255, 255, .6); font-size: 13px; }

/* 通用深色块 */
#hub .panel :is(.mode-card, .lo-row, .map-row, .char-card, .char-detail, .cat, .wcard, .scard, .detail-box, .wchip, .skin-card, .shop-bar, .form, .end-stats > div, .ev-card) {
  color: #fff; border: 2px solid #18111f; border-radius: 12px; background: linear-gradient(180deg, #3c3245 0%, #2c2433 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 3px 0 rgba(8, 4, 12, .45); }
#hub .panel :is(.mode-card, .char-card, .wcard, .scard, .wchip, .skin-card).on { border-color: #b3e2ff; background: linear-gradient(180deg, #495354 0%, #353a3a 100%);
  box-shadow: inset 0 0 0 2px var(--pk), 0 0 16px rgba(63, 176, 255, .55), 0 3px 0 rgba(8, 4, 12, .45); }
#hub .panel :is(.mode-card, .lo-row, .char-card, .cat, .wcard, .scard, .wchip, .skin-card):hover { filter: brightness(1.12); }
#hub .panel .scard.focus { box-shadow: inset 0 0 0 2px var(--pk), 0 0 22px rgba(63, 176, 255, .8), 0 3px 0 rgba(8, 4, 12, .45); }

/* 粉色实心选中：分类 / 分段 / 配装槽 */
#hub .panel :is(.cat.on, .seg button.on, .slots button.on) { color: #fff; border: 2px solid #c6e9ff; background: linear-gradient(180deg, #8ad5ff 0%, #4ab5ff 50%, #2c9eee 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -3px 0 #1f80c4, 0 0 0 2px #315c7a, 0 0 14px rgba(63, 176, 255, .6); }

/* 次级文字 */
#hub .panel :is(.mode-tx small, .wcard .wc, .scard .sfoot, .skin-card small, .wchip small, .nums small, .char-detail p, .blurb, .name-row span, .lo-row em, .form label) { color: rgba(255, 255, 255, .62); }
#hub .panel :is(.cat-label, .char-detail .kick, .lo-row small, .shop-bar small, .map-row small) { color: var(--gold); letter-spacing: .08em; font-weight: 900; }

/* 战斗 */
#hub .panel .mode-card { padding: 12px 14px; gap: 14px; }
#hub .panel .mode-ic { width: 48px; height: 48px; border-radius: 10px; font-size: 24px; background: linear-gradient(180deg, #8ad5ff, var(--pk)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 2px 0 #3b434a; }
#hub .panel .mode-card:not(.on) .mode-ic { background: rgba(14, 9, 20, .5); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45); }
#hub .panel .mode-tx b { font-size: 22px; font-weight: 900; color: #fff; }
#hub .panel .chips-row em { font-size: 11px; letter-spacing: .04em; padding: 3px 9px; border-radius: 7px; background: rgba(63, 176, 255, .16); color: #a6ddff; border: 1px solid rgba(63, 176, 255, .35); }
#hub .panel .seg { padding: 4px; gap: 4px; border-radius: 12px; background: rgba(14, 9, 20, .5); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45); }
#hub .panel .seg button { padding: 8px 20px; border-radius: 9px; border: 2px solid transparent; font-size: 15px; font-weight: 900; letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
#hub .panel .slots button { min-width: 36px; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 900; color: rgba(255, 255, 255, .75); border: 2px solid #18111f; background: linear-gradient(180deg, #3c3245, #2c2433); }
#hub .panel .lo-row { padding: 7px 14px 7px 8px; }
#hub .panel .lo-row img { border-radius: 8px; background: rgba(14, 9, 20, .45); }
#hub .panel .lo-row b, #hub .panel .map-row b { font-size: 18px; font-weight: 900; color: #fff; }
#hub .panel .lo-row i { font-style: normal; font-size: 13px; font-weight: 900; color: var(--pk2); }
#hub .panel .char-row img { background: linear-gradient(180deg, #485d6a, #2a1f35); }

/* 仓库（角色） */
#hub .panel .char-card { padding: 6px 6px 8px; }
#hub .panel .char-card img { border-radius: 8px; background: linear-gradient(180deg, #485d6a, #241a2e); border-bottom: 3px solid var(--tc); }
#hub .panel .char-card b { font-size: 14px; font-weight: 900; color: #fff; }
#hub .panel :is(.char-card, .wcard, .scard) .lock { background: rgba(10, 6, 16, .85); border: 1px solid rgba(255, 255, 255, .15); color: #fff; font-weight: 900; }
#hub .panel .char-card .tick { background: linear-gradient(180deg, #8ad5ff, var(--pk)); box-shadow: 0 0 0 2px #fff; }
#hub .panel .char-detail h2 { font-size: 32px; font-weight: 900; color: #fff; margin: 2px 0 6px; }

/* 按钮：粉色主按钮 / 深色次按钮 */
#hub .panel .btn { border-radius: 11px; font-family: var(--bkfont); font-style: normal; font-weight: 900; letter-spacing: .04em; font-size: 17px; padding: 11px 26px; }
#hub .panel .btn.deploy { color: #fff; border: 2px solid #c6e9ff; background: linear-gradient(180deg, #8ad5ff 0%, #4ab5ff 50%, #2c9eee 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 #1f80c4, 0 0 0 2px #315c7a, 0 4px 0 2px #3b434a, 0 0 18px rgba(63, 176, 255, .6); }
#hub .panel .btn.ghost { color: #fff; border: 2px solid #18111f; background: linear-gradient(180deg, #4a3f55, #352c3e); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), 0 3px 0 rgba(8, 4, 12, .5); }
#hub .panel .btn.danger { color: #7da5ff; }

/* 武器 */
#hub .panel .cat { padding: 8px 12px; }
#hub .panel .cat b { font-family: var(--logo); font-style: normal; font-weight: 400; font-size: 22px; color: #fff; }
#hub .panel .cat small { font-size: 12px; letter-spacing: .04em; font-weight: 800; color: rgba(255, 255, 255, .62); }
#hub .panel .cat.on small { color: #fff; }
#hub .panel .wcard { padding: 4px 14px 4px 8px; }
#hub .panel .wcard img { filter: grayscale(.7) brightness(1.1) opacity(.7); }
#hub .panel .wcard.on img, #hub .panel .scard.on img { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .4)); }
#hub .panel .wcard .wn { font-size: 20px; font-weight: 900; color: #fff; opacity: .78; }
#hub .panel .wcard.on .wn { opacity: 1; color: #fff; }
#hub .panel .wcard .wc { font-size: 12px; letter-spacing: .04em; }
#hub .panel .scard { padding: 8px 10px; }
#hub .panel .scard img { filter: grayscale(.7) brightness(1.15) opacity(.7); }
#hub .panel .scard .sn { font-size: 15px; font-weight: 900; color: #fff; }
#hub .panel .scard .mini { color: rgba(255, 255, 255, .55); letter-spacing: .04em; font-size: 10px; }
#hub .panel .scard .mini i { background: rgba(255, 255, 255, .1); }
#hub .panel .detail-box { padding: 14px 16px; }
#hub .panel .detail-box .name-row h2 { font-size: 30px; font-weight: 900; color: #fff; }
#hub .panel .bar { font-size: 13px; letter-spacing: .04em; color: rgba(255, 255, 255, .75); }
#hub .panel .segs i { height: 8px; background: rgba(255, 255, 255, .1); }
#hub .panel .segs i.on { background: linear-gradient(90deg, #9fdbff, var(--pk)); box-shadow: 0 0 6px rgba(63, 176, 255, .5); }
#hub .panel .nums b { font-family: var(--bkfont); font-style: normal; font-size: 24px; font-weight: 900; color: #fff; }
#hub .panel .nums small { letter-spacing: .04em; }
#hub .panel .skin-link { border-radius: 9px; font-size: 13px; font-weight: 900; letter-spacing: .04em; color: #a6ddff; background: rgba(63, 176, 255, .14); border: 1px solid rgba(63, 176, 255, .4); }

/* 商城 */
#hub .panel .wchip { padding: 6px 4px; }
#hub .panel .wchip small { font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .75); }
#hub .panel .wchip.on small { color: #fff; }
#hub .panel .skin-card { padding: 12px 6px 10px; }
#hub .panel .skin-card .sw { box-shadow: 0 0 0 3px #18111f, 0 0 0 5px rgba(255, 255, 255, .22), 0 6px 12px -4px rgba(0, 0, 0, .6); }
#hub .panel .skin-card b { font-size: 13px; font-weight: 900; color: #fff; }
#hub .panel .skin-card.eq small { color: var(--pk2); }
#hub .panel .shop-bar { padding: 12px 14px; }
#hub .panel .shop-bar b { font-size: 22px; font-weight: 900; color: #fff; }

/* 设置 / 个人 */
#hub .panel .form label { letter-spacing: .04em; font-size: 13px; }
#hub .panel .form output { color: #fff; font-weight: 900; }
#hub .panel .form input:not([type=range]) { font: 700 16px var(--bkfont); color: #fff; background: rgba(14, 9, 20, .6); border: 2px solid #4a3f55; border-radius: 9px; }
#hub .panel .end-stats > div { padding: 10px 6px; }
#hub .panel .end-stats b { font-family: var(--bkfont); font-style: normal; font-size: 26px; font-weight: 900; color: #fff; }
#hub .panel .end-stats small { color: rgba(255, 255, 255, .55); letter-spacing: .04em; }
#hub .panel table.hist { color: #fff; }
#hub .panel table.hist th { color: rgba(255, 255, 255, .5); letter-spacing: .04em; }
#hub .panel table.hist td { border-top-color: rgba(255, 255, 255, .08); }
#hub .panel .r-win { color: #5fe0a0; }
#hub .panel .r-lose { color: #7da5ff; }
#hub .panel .r-draw { color: rgba(255, 255, 255, .6); }

/* 活动 */
#hub .panel .ev-list { display: grid; gap: 12px; }
#hub .panel button.ev-card { position: relative; display: block; width: 100%; height: 128px; padding: 0; overflow: hidden; text-align: left;
  background: #2c2433 var(--art) center / cover no-repeat; }
#hub .panel .ev-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24, 14, 34, .92) 0%, rgba(24, 14, 34, .6) 55%, rgba(24, 14, 34, .1) 100%); }
#hub .panel .ev-tx { position: absolute; left: 16px; top: 0; bottom: 0; right: 120px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
#hub .panel .ev-tx em { align-self: flex-start; font-size: 12px; font-weight: 900; padding: 1px 9px; border-radius: 6px; color: #fff; background: linear-gradient(180deg, #8ad5ff, var(--pk)); box-shadow: 0 0 0 2px #315c7a; }
#hub .panel .ev-tx b { font-size: 24px; font-weight: 900; color: #fff; }
#hub .panel .ev-tx small { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .78); }
#hub .panel .ev-soon { position: absolute; right: 14px; bottom: 12px; font-size: 13px; font-weight: 900; padding: 4px 12px; border-radius: 8px; color: #fff; background: rgba(10, 6, 16, .75); border: 1px solid rgba(255, 255, 255, .18); }

/* 底部左侧（非首页）：提示 + 操作按键，深色按键块 */
#hub .hub-foot .foot-left { gap: 14px; padding: 14px 22px; }
#hub .foot-left .tip { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 17px; font-weight: 800; color: #fff; }
#hub .foot-left .tip .script { font-family: var(--bkfont); font-size: 15px; font-weight: 900; color: #fff; padding: 2px 10px; border-radius: 7px;
  background: linear-gradient(180deg, #8ad5ff, var(--pk)); box-shadow: 0 0 0 2px #315c7a; }
#hub .hub-foot .keys { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 800; letter-spacing: .02em; color: rgba(255, 255, 255, .72); }
#hub .foot-left .keys kbd { font-family: var(--bkfont); font-size: 12px; font-weight: 900; color: #fff; padding: 3px 8px; border: 0; border-radius: 6px;
  background: linear-gradient(180deg, #4a3f55, #2c2433); box-shadow: 0 0 0 2px #18111f, inset 0 1px 0 rgba(255, 255, 255, .15), 0 3px 0 2px rgba(8, 4, 12, .5); }

/* 英文：出战按钮 / 匹配设置文字缩小，副标题可换行 */
html[data-lang=en] #hub .dtx { padding-left: 60px; }
html[data-lang=en] #hub .dtx b { font-size: 40px; letter-spacing: .04em; }
html[data-lang=en] #hub .dtx small { font-size: 14px; white-space: normal; text-align: center; line-height: 1.2; max-width: 210px; }
html[data-lang=en] #hub .match-set small { font-size: 14px; text-align: center; line-height: 1.15; }

/* 战斗页：模式 / 地图插图卡 + 一行配装（和大厅首页的模式轮换卡同一套样式） */
#hub .panel[data-tab=play] .sec-h { margin: 12px 0 8px; }
#hub .panel[data-tab=play] .sec-h:first-child { margin-top: 2px; }
#hub .panel .sec-note { margin-left: auto; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#hub .panel .pk-grid { display: grid; gap: 8px; }
#hub .panel .pk-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#hub .panel .pk-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#hub .panel .pk-card { position: relative; display: block; height: 100px; padding: 0; overflow: hidden; text-align: left; color: #fff;
  border: 3px solid #17101e; border-radius: 10px; background: #2a2035 center / cover no-repeat;
  box-shadow: 0 3px 0 rgba(8, 4, 12, .45); transition: filter .12s, transform .12s; }
#hub .panel .pk-card:hover { filter: brightness(1.12); transform: translateY(-1px); }
#hub .panel .pk-card:not(.on) { filter: saturate(.65) brightness(.82); }
#hub .panel .pk-card:not(.on):hover { filter: saturate(.9) brightness(1); }
#hub .panel .pk-card.on { border-color: #d0ecff; box-shadow: 0 0 0 3px var(--pk), 0 0 18px rgba(63, 176, 255, .75), 0 4px 0 rgba(10, 5, 15, .5); }
#hub .panel .pk-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#hub .panel .pk-tx { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 7px; display: flex; flex-direction: column; gap: 1px;
  background: linear-gradient(180deg, transparent, rgba(22, 13, 34, .88)); }
#hub .panel .pk-tx b { font-size: 17px; font-weight: 900; line-height: 1.15; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
#hub .panel .pk-tx small { font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hub .panel .pk-ck { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; display: none; place-items: center; border-radius: 6px;
  background: linear-gradient(180deg, #7ccfff, var(--pk)); border: 2px solid #d0ecff; box-shadow: 0 2px 0 var(--pkX); }
#hub .panel .pk-ck svg, #hub .panel .pk-ck img { width: 13px; height: 13px; }
#hub .panel .pk-card.on .pk-ck { display: grid; }
#hub .panel .pk-mode.m-tdm { background-image: url(assets/hub/card_tdm.jpg); }
#hub .panel .pk-mode.m-ffa { background-image: url(assets/hub/card_ctrl.jpg); }
#hub .panel .pk-mode.m-range { background: url(assets/ui/ic_target.png) 50% 34% / 46px no-repeat, radial-gradient(circle at 50% 36%, #51696b 0%, #353a3a 55%, #242827 100%); }
#hub .panel .pk-map { height: 122px; }
/* 左右两栏（战斗 / 排位 / 房间页）：左栏 + 中间角色 + 右栏，两侧宽度随屏幕缩放 */
#hub .panel-l[hidden] { display: none; }
#hub.split .hub-body { grid-template-columns: clamp(290px, 22vw, 420px) minmax(0, 1fr) clamp(400px, 28vw, 520px); }
#hub.split .hub-body.focus { grid-template-columns: 0 minmax(0, 1fr) 0; }
#hub.split .hub-body > .panel { align-self: start; max-height: calc(100% - 26px); }   /* 两栏都按内容高度，不留大片空白 */
/* 排位页：左栏内容少，排行榜（右栏）给宽一点，名字不被截断 */
#hub.split[data-tab=ranked] .hub-body { grid-template-columns: clamp(280px, 20vw, 380px) minmax(0, 1fr) clamp(460px, 34vw, 620px); }
#hub.split[data-tab=ranked] #panel { align-self: stretch; }
/* 武器页：左栏只有精简资料卡，右栏武器列表需要宽一点（名字不换行） */
#hub.split[data-tab=armory] .hub-body { grid-template-columns: clamp(260px, 19vw, 360px) minmax(0, 1fr) clamp(440px, 33vw, 560px); }
#hub.split[data-tab=armory] #panel { align-self: stretch; }
#hub[data-tab=armory] .panel .wcard img { width: clamp(96px, 7.5vw, 140px); }
#hub[data-tab=armory] .panel .wcard .wn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
#hub[data-tab=armory] .panel .wcard .wc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
#hub[data-tab=armory] .panel .wcard > span:not([class]) { min-width: 0; }
/* 左栏比原来窄：段位卡改成上下排（徽章在上），按钮不换行 */
#hub .panel-l .rk-me { flex-direction: column; align-items: stretch; text-align: center; gap: 8px; }
#hub .panel-l .rk-me .rk-badge { width: 88px; height: 88px; align-self: center; }
#hub .panel-l .rk-btns { justify-content: center; }
#hub .panel-l .rk-btns .btn { flex: 1; white-space: nowrap; padding: 8px 10px; }
/* 战斗页左栏：模式竖排大卡（插图 + 名字 + 规则标签） */
#hub .panel .pk-modes { display: grid; gap: 10px; }
#hub .panel .pk-modes .pk-card { height: clamp(78px, 11vh, 112px); }
#hub .panel .pk-modes .pk-tx { gap: 5px; padding: 26px 12px 9px; }
#hub .panel .pk-modes .pk-tx b { font-size: 20px; }
#hub .panel .pk-modes .chips-row em { background: rgba(15, 18, 26, .55); border-color: rgba(255, 255, 255, .25); color: #fff; }
#hub .panel .pk-modes .pk-mode.m-range { background-position: 88% 50%, 0 0; background-size: 52px, auto; }
#hub .panel .pk-desc { margin: 8px 2px 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .66); }
#hub .panel .pk-grid.three .pk-map { height: clamp(84px, 12vh, 118px); }
/* 任务页 */
#hub .ms-dot { display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; background: #3b6cff; box-shadow: 0 0 0 2px #2b302e, 0 0 8px #3b6cff; vertical-align: 3px; }
#hub .ms-all { cursor: pointer; }
#hub .panel :is(.ms-row, .ms-chest) { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; margin-bottom: 8px; padding: 9px 12px;
  border-radius: 12px; border: 2px solid #18111f; background: linear-gradient(180deg, #3c3245, #2c2433); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), 0 3px 0 rgba(8, 4, 12, .45); }
#hub .panel .ms-row.done:not(.claimed), #hub .panel .ms-chest.ready { border-color: #b3e2ff; box-shadow: inset 0 0 0 2px var(--pk), 0 0 14px rgba(63, 176, 255, .45); }
#hub .panel :is(.ms-row, .ms-chest).claimed { opacity: .55; }
#hub .panel .ms-main { display: grid; gap: 4px; min-width: 0; }
#hub .panel .ms-main b { font-size: 15px; font-weight: 900; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hub .panel .ms-main small { font-size: 12px; color: rgba(255, 255, 255, .6); }
#hub .panel .ms-bar { height: 7px; border-radius: 4px; background: rgba(0, 0, 0, .45); overflow: hidden; }
#hub .panel .ms-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6dc4ff, var(--pk)); box-shadow: 0 0 6px var(--pk); }
#hub .panel .ms-n { font-size: 13px; font-weight: 900; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
#hub .panel :is(.ms-row, .ms-chest) .btn { padding: 6px 14px; font-size: 14px; }
#hub .panel .ms-got { width: 26px; height: 26px; padding: 5px; border-radius: 6px; background: #4fc23a; border: 2px solid #c8f5b8; }
#hub .panel .ms-chest { grid-template-columns: 46px minmax(0, 1fr) auto; background: linear-gradient(180deg, #48504e, #313a3a); }
#hub .panel .ms-chest img { width: 46px; height: 46px; object-fit: contain; }
#hub .panel .ms-chest.ready img { animation: claimPulse 1.4s ease-in-out infinite; }
#hub .panel .ms-tier { font-style: normal; font-size: 12px; color: var(--gold); letter-spacing: 1px; }
#hub .panel .rws { display: flex; flex-wrap: wrap; gap: 4px 10px; }
#hub .panel .rw { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 900; color: #fff; }
#hub .panel .rw .pc { font-size: 12.5px; }
#hub .panel .rw.xp { color: #a6ddff; }
#hub .rw.gem { display: inline-flex; align-items: center; gap: 3px; color: #8fe0ff; }
#hub .rw.gem :is(svg, img, .px) { width: 15px; height: 15px; flex: none; }
#hub .dl-xp .coin, #hub .dl-xp .gem-i { margin-right: 2px; }
/* 广告福利（任务页）：补给 + 今日限时试用；商店 / 角色页的试用按钮 */
#hub .panel .ad-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 8px; padding: 9px 12px; border-radius: 12px;
  border: 2px solid #18111f; background: linear-gradient(180deg, #2b3a52, #1e2738); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), 0 3px 0 rgba(8, 4, 12, .45); }
#hub .panel .ad-card img { width: 46px; height: 46px; object-fit: contain; }
#hub .panel .ad-card.ready { border-color: #b3e2ff; box-shadow: inset 0 0 0 2px var(--pk), 0 0 14px rgba(63, 176, 255, .45); }
#hub .panel .ad-card.ready img { animation: claimPulse 1.4s ease-in-out infinite; }
#hub .panel .ad-card.claimed { opacity: .6; }
#hub .panel .ad-card.soon { grid-template-columns: 46px minmax(0, 1fr) auto; opacity: .8; }
#hub .panel .ad-card .btn { padding: 6px 14px; font-size: 14px; }
#hub .panel .ad-soon { padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 900; color: #cfe9ff; border: 1.5px solid rgba(143, 224, 255, .5); background: rgba(63, 176, 255, .12); white-space: nowrap; }
#hub .panel .ad-pips { display: flex; gap: 5px; flex-wrap: wrap; }
#hub .panel .ad-pip { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 38px; height: 22px; padding: 0 5px; border-radius: 6px; font-size: 11.5px; font-weight: 900; color: rgba(255, 255, 255, .75);
  background: rgba(0, 0, 0, .35); border: 1.5px solid rgba(255, 255, 255, .12); }
#hub .panel .ad-pip :is(svg, img, .px) { width: 13px; height: 13px; }
#hub .panel .ad-pip.got { background: #4fc23a; border-color: #c8f5b8; color: #fff; }
#hub .panel .ad-pip.next { border-color: var(--pk); box-shadow: 0 0 8px rgba(63, 176, 255, .55); color: #fff; }
#hub .panel .ad-dh { display: flex; align-items: baseline; gap: 8px; margin: 10px 2px 6px; }
#hub .panel .ad-dh b { font-size: 14px; font-weight: 900; color: #fff; }
#hub .panel .ad-dh small { font-size: 12px; color: rgba(255, 255, 255, .6); }
#hub .panel .ad-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
#hub .panel .ad-tile { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 8px 6px; border-radius: 12px; text-align: center; min-width: 0;
  border: 2px solid #18111f; background: linear-gradient(180deg, #33304a, #231f33); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 55%, transparent), 0 3px 0 rgba(8, 4, 12, .45); }
#hub .panel .ad-tile img.por { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; background: rgba(0, 0, 0, .3); }
#hub .panel .ad-tile img.gun { width: 100%; max-width: 120px; height: 44px; object-fit: contain; margin: 7px 0; }
#hub .panel .ad-tile b { max-width: 100%; font-size: 12.5px; font-weight: 900; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hub .panel .ad-tile .rar { font-size: 10px; }
#hub .panel .ad-tile .btn { padding: 4px 8px; font-size: 12px; white-space: nowrap; }
#hub .ad-st { font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .6); white-space: nowrap; }
#hub .ad-st.on { color: #8fe0ff; }
#hub .ad-st.own { color: #9be38a; }
#hub .shop-bar .ad-st.on, #hub .char-detail .ad-st.on { padding: 4px 9px; border-radius: 8px; background: rgba(20, 60, 100, .85); color: #bfe9ff; }
#hub .shop-bar { flex-wrap: wrap; }
#hub .char-detail .row-l { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#hub .btn.ad-try { white-space: nowrap; }
/* 武器页左栏：精简资料卡（名字悬停看介绍；属性两列；升级一行） */
#hub .panel-l .arm-card { padding: 14px 14px 12px; }
#hub .panel-l .arm-card .name-row { gap: 4px 10px; }
#hub .panel-l .arm-card .name-row h2 { font-size: 26px; cursor: help; }
#hub .panel-l .arm-card .name-row span { font-size: 12px; letter-spacing: .04em; }
#hub .panel-l .arm-card .bars { grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 10px; }
#hub .panel-l .arm-card .bar { grid-template-columns: 34px 1fr; gap: 6px; font-size: 12px; }
#hub .panel-l .arm-card .segs { gap: 2px; }
#hub .panel-l .arm-card .segs i { height: 6px; }
#hub .panel-l .arm-card .nums { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; margin-top: 12px; }
#hub .panel-l .arm-card .nums div { flex-direction: column; align-items: flex-start; gap: 0; }
#hub .panel-l .arm-card .nums b { font-size: 20px; line-height: 1.1; }
#hub .panel-l .arm-card .nums small { font-size: 11px; }
#hub .panel-l .arm-card .upg { margin-top: 10px; padding-top: 10px; gap: 6px; }
#hub .panel-l .arm-card .upg-eff { font-size: 11.5px; }
#hub .panel-l .arm-card .upg-act { justify-content: space-between; }
#hub .panel-l .arm-card .upg-act .btn { padding: 8px 14px; font-size: 14px; }
/* 武器列表：拥有几款皮肤的小标 */
#hub .panel .wskins { display: inline-flex; align-items: center; gap: 3px; margin: 0 6px 0 auto; padding: 1px 6px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 900; color: #fff; background: rgba(63, 176, 255, .2); border: 1px solid rgba(63, 176, 255, .45); }
#hub .panel .wskins i { width: 8px; height: 8px; border-radius: 50%; background: conic-gradient(#5ed5ff, #ffb02e, #5fe0a0, #4ea8ff, #b46bff, #5ed5ff); }
#hub .panel .wcard { position: relative; }
#hub .panel .wcard .wskins { position: absolute; left: 8px; top: 5px; margin: 0; padding: 0 5px; font-size: 10.5px; background: rgba(34, 39, 40, .85); }   /* 贴在缩略图左上角，不挤名字 */
#hub .panel .scard .sn { display: flex; align-items: center; gap: 4px; }
#hub .panel .scard .sn .wskins { margin: 0 0 0 4px; }
/* 展台底部的皮肤条 */
#hub .skin-strip { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: min(94%, 680px); z-index: 3;
  padding: 8px 10px 10px; border-radius: 14px; border: 2px solid #18111f; background: linear-gradient(180deg, rgba(60, 50, 69, .94), rgba(44, 36, 51, .94));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), 0 4px 0 rgba(8, 4, 12, .45); color: #fff; font-family: var(--bkfont); cursor: default; }
#hub .skin-strip[hidden] { display: none; }
#hub .skin-strip .ss-h { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 6px; }
#hub .skin-strip .ss-h b { font-size: 15px; font-weight: 900; }
#hub .skin-strip .ss-h small { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .6); }
#hub .skin-strip .ss-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; scrollbar-color: rgba(61, 155, 255, .4) transparent; }
#hub .skin-strip :is(.ss-item, .ss-more) { position: relative; flex: none; width: 108px; height: 72px; padding: 4px 4px 3px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  border-radius: 10px; border: 2px solid color-mix(in srgb, var(--rc, #b7b2c0) 65%, #18111f); background: rgba(14, 9, 20, .5); color: #fff; }
#hub .skin-strip .ss-item.rar-common { border-color: #3a3044; }
#hub .skin-strip .ss-item:hover { filter: brightness(1.15); }
#hub .skin-strip .ss-item.on { border-color: #d0ecff; box-shadow: 0 0 0 2px var(--pk), 0 0 12px rgba(63, 176, 255, .6); background: linear-gradient(180deg, #495354, #353a3a); }
#hub .skin-strip .ss-item img { width: 100%; height: 40px; object-fit: contain; }
#hub .skin-strip .ss-item b { max-width: 100%; font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hub .skin-strip .ss-ck { position: absolute; top: 3px; right: 4px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 5px; font-style: normal; font-size: 10px; font-weight: 900;
  background: linear-gradient(180deg, #7ccfff, var(--pk)); border: 1.5px solid #d0ecff; }
#hub .skin-strip .ss-more { justify-content: center; gap: 2px; border-style: dashed; border-color: rgba(124, 207, 255, .6); background: rgba(63, 176, 255, .1); }
#hub .skin-strip .ss-more b { font-size: 22px; line-height: 1; color: #a6ddff; }
#hub .skin-strip .ss-more small { font-size: 11.5px; font-weight: 800; color: #a6ddff; }
#hub .skin-strip .ss-more:hover { background: rgba(63, 176, 255, .22); }
#hub .panel .pk-info { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(14, 9, 20, .45); }
#hub .panel .pk-info small { font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .66); }
#hub .panel .seg.full { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
#hub .panel .seg.full button { padding: 8px 0; }
#hub .panel .pk-kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
#hub .panel .pk-slot { overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; height: 92px; padding: 6px 6px 5px;
  color: #fff; border: 2px solid #18111f; border-radius: 10px; background: linear-gradient(180deg, #3c3245 0%, #2c2433 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 3px 0 rgba(8, 4, 12, .45); }
#hub .panel .pk-slot:hover { filter: brightness(1.15); border-color: rgba(124, 207, 255, .6); }
#hub .panel .pk-slot img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
#hub .panel .pk-who img { object-fit: contain; border-radius: 6px; background: linear-gradient(180deg, #485d6a, #2a1f35); }
#hub .panel .pk-slot b { max-width: 100%; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 对局 HUD 不用 backdrop-filter：它会让浏览器每帧重新模糊整个游戏画面，低配机器上很吃性能 */
#hud * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* ======================================================================
   排位赛页 / 账号区 / 登录弹窗（深色游戏风格，与 v6 面板一致）
   ====================================================================== */
#hub .panel .rk-empty { display: flex; flex-direction: column; gap: 6px; padding: 26px 12px; text-align: center; color: rgba(255, 255, 255, .7); font-weight: 700; }
#hub .panel .rk-empty b { color: #fff; font-size: 18px; }
#hub .panel .rk-me { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; border: 2px solid #18111f;
  background: radial-gradient(120% 140% at 0% 0%, rgba(63, 176, 255, .28), transparent 55%), linear-gradient(180deg, #3c3245, #2c2433);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), 0 3px 0 rgba(8, 4, 12, .45); }
#hub .panel .rk-badge { width: 104px; height: 104px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
#hub .panel .rk-badge.unranked { filter: grayscale(1) brightness(.75) drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
#hub .panel .rk-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
#hub .panel .rk-info small { font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: .04em; }
#hub .panel .rk-info > b { font-size: 26px; font-weight: 900; color: #fff; line-height: 1.1; }
#hub .panel .rk-info > span { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .75); }
#hub .panel .rk-pts { color: #d0ecff !important; }
#hub .panel .rk-bar { display: block; height: 8px; border-radius: 5px; background: rgba(0, 0, 0, .45); overflow: hidden; }
#hub .panel .rk-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #9fdbff, var(--pk)); box-shadow: 0 0 8px rgba(63, 176, 255, .6); }
#hub .panel .rk-btns { display: flex; gap: 8px; margin-top: 6px; }
#hub .panel .rk-btns .btn { padding: 8px 18px; font-size: 15px; }
#hub .panel .rk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
#hub .panel .rk-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; border: 2px solid #18111f; background: linear-gradient(180deg, #3c3245, #2c2433); }
#hub .panel .rk-stats b { font-size: 18px; font-weight: 900; color: #fff; }
#hub .panel .rk-stats small { font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .6); }
#hub .panel .rk-start { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; margin-top: 12px; padding: 10px; border-radius: 12px; color: #fff;
  border: 2px solid #c6e9ff; background: linear-gradient(180deg, #8ad5ff 0%, #4ab5ff 50%, #2c9eee 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 #1f80c4, 0 0 0 2px #315c7a, 0 4px 0 2px #3b434a; }
#hub .panel .rk-start b { font-size: 20px; font-weight: 900; letter-spacing: .06em; }
#hub .panel .rk-start small { font-size: 12px; font-weight: 800; opacity: .9; }
#hub .panel .rk-start:disabled { filter: grayscale(.75) brightness(.8); cursor: not-allowed; }
/* 排行榜 */
#hub .panel .rk-list, #hub .panel .rk-mine { display: grid; gap: 6px; }
#hub .panel .rk-mine { margin-top: 8px; }
#hub .panel .rk-row { display: grid; grid-template-columns: 34px 30px minmax(0, 1fr) 40px 118px 58px; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px;
  border: 2px solid #18111f; background: linear-gradient(180deg, #382f41, #2a2231); }
#hub .panel .rk-row.me { border-color: #b3e2ff; background: linear-gradient(180deg, #495354, #353a3a); box-shadow: inset 0 0 0 2px var(--pk), 0 0 14px rgba(63, 176, 255, .45); }
#hub .panel .rk-row.none { grid-template-columns: 1fr; text-align: center; }
#hub .panel .rk-n { font-family: var(--logo); font-size: 16px; text-align: center; color: rgba(255, 255, 255, .8); }
#hub .panel .rk-row.top1 .rk-n { color: #ffd34d; text-shadow: 0 0 8px rgba(255, 211, 77, .7); font-size: 20px; }
#hub .panel .rk-row.top2 .rk-n { color: #e6e9f2; font-size: 19px; }
#hub .panel .rk-row.top3 .rk-n { color: #f0a76a; font-size: 18px; }
#hub .panel .rk-row.top1 { border-color: rgba(255, 211, 77, .65); }
#hub .panel .rk-flag { display: flex; justify-content: center; }
#hub .panel .rk-flag img { width: 26px; height: 19.5px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
#hub .panel .rk-name { display: flex; flex-direction: column; min-width: 0; }
#hub .panel .rk-name b, #hub .panel .rk-tier b { font-size: 15px; font-weight: 900; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hub .panel .rk-name small, #hub .panel .rk-tier small, #hub .panel .rk-wr small { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hub .panel .rk-tb { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
#hub .panel .rk-tier, #hub .panel .rk-wr { display: flex; flex-direction: column; min-width: 0; }
#hub .panel .rk-wr { align-items: flex-end; }
#hub .panel .rk-wr b { font-size: 15px; font-weight: 900; color: #fff; }
#hub .panel .rk-more { width: 100%; padding: 9px; border-radius: 10px; border: 2px dashed rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .8); font-weight: 900; }

/* 设置页：账号 */
#hub .panel .acct { display: grid; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; border: 2px solid #18111f;
  background: radial-gradient(120% 140% at 0% 0%, rgba(63, 176, 255, .22), transparent 60%), linear-gradient(180deg, #3c3245, #2c2433); }
#hub .panel .acct-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#hub .panel .acct-row b { font-size: 18px; font-weight: 900; color: #fff; }
#hub .panel .acct-row small { flex: 1; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .6); min-width: 120px; }
#hub .panel .acct-row .btn { padding: 8px 16px; font-size: 14px; }
#hub .panel .acct-flag { width: 28px; height: 21px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
#hub .panel .acct label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .65); }
#hub .panel .acct-country { display: flex; gap: 8px; }
#hub .panel .acct-country select { flex: 1; min-width: 0; font: 700 15px var(--bkfont); color: #fff; background: rgba(14, 9, 20, .6); border: 2px solid #4a3f55; border-radius: 9px; padding: 8px 10px; }
#hub .panel .acct-country .btn { padding: 8px 16px; font-size: 14px; }

/* 登录 / 注册弹窗 */
.overlay.auth { z-index: 50; background: rgba(12, 10, 22, .62); }
.auth-card { position: relative; width: min(400px, 92vw); display: grid; gap: 12px; padding: 26px 26px 22px; border-radius: 18px; color: #fff; font-family: var(--bkfont);
  border: 2px solid #18111f; background: radial-gradient(120% 90% at 50% 0%, rgba(63, 176, 255, .3), transparent 60%), linear-gradient(180deg, #3a3045, #251d2c);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), 0 0 0 2px rgba(255, 255, 255, .05), 0 30px 70px -20px rgba(0, 0, 0, .8); }
.auth-card h2 { margin: 0; font-size: 26px; font-weight: 900; text-align: center; }
.auth-sub { margin: -6px 0 2px; text-align: center; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .65); }
.auth-x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border-radius: 9px; font-size: 22px; color: rgba(255, 255, 255, .7); }
.auth-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(14, 9, 20, .5); }
.auth-tabs button { padding: 8px; border-radius: 9px; font-size: 15px; font-weight: 900; color: rgba(255, 255, 255, .7); }
.auth-tabs button.on { color: #fff; background: linear-gradient(180deg, #8ad5ff, #4ab5ff 55%, #2c9eee); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 0 12px rgba(63, 176, 255, .5); }
.auth-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .7); }
.auth-card input { font: 700 16px var(--bkfont); color: #fff; background: rgba(14, 9, 20, .6); border: 2px solid #4a3f55; border-radius: 10px; padding: 10px 12px; outline: none; }
.auth-card input:focus { border-color: #8ad5ff; box-shadow: 0 0 0 3px rgba(63, 176, 255, .25); }
.auth-card input::placeholder { color: rgba(255, 255, 255, .35); font-weight: 600; }
.auth-err { min-height: 18px; margin: 0; font-size: 13px; font-weight: 800; color: #8ab2ff; }
.auth-go { padding: 12px; border-radius: 12px; font-size: 18px; font-weight: 900; color: #fff; border: 2px solid #c6e9ff;
  background: linear-gradient(180deg, #8ad5ff 0%, #4ab5ff 50%, #2c9eee 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 #1f80c4, 0 4px 0 2px #3b434a; }
.auth-go:disabled { filter: grayscale(.5); cursor: wait; }
.auth-or { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .5); }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .15); }
.gsi-slot { display: flex; justify-content: center; min-height: 44px; }

/* 自定义房间 */
#hub .panel .room-card { display: grid; gap: 6px; padding: 14px 16px; margin-bottom: 10px; border-radius: 12px; border: 2px solid #18111f; background: linear-gradient(180deg, #3c3245, #2c2433); }
#hub .panel .room-card b { font-size: 19px; font-weight: 900; color: #fff; }
#hub .panel .room-card small { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .62); margin-bottom: 4px; }
#hub .panel .room-card .btn { justify-self: start; }
#hub .panel .room-join { display: flex; gap: 8px; }
#hub .panel .room-join input { flex: 1; min-width: 0; font: 400 22px var(--logo); letter-spacing: .2em; text-transform: uppercase; color: #fff; background: rgba(14, 9, 20, .6); border: 2px solid #4a3f55; border-radius: 10px; padding: 6px 12px; outline: none; }
#hub .panel .room-join input:focus { border-color: #8ad5ff; }
#hub .panel .room-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 2px solid #18111f;
  background: radial-gradient(120% 140% at 0% 0%, rgba(63, 176, 255, .25), transparent 60%), linear-gradient(180deg, #3c3245, #2c2433); }
#hub .panel .room-head small { display: block; font-size: 11px; font-weight: 800; color: var(--gold); letter-spacing: .08em; }
#hub .panel .room-code { font-family: var(--logo); font-size: 30px; font-weight: 400; letter-spacing: .16em; color: #fff; }
#hub .panel .room-head .btn { padding: 7px 14px; font-size: 13px; }
#hub .panel .room-meta { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .75); }
#hub .panel .room-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
#hub .panel .room-team { display: grid; gap: 6px; align-content: start; padding: 10px; border-radius: 12px; border: 2px solid #18111f; background: rgba(14, 9, 20, .35); }
#hub .panel .room-team header { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 4px; border-bottom: 3px solid var(--tc); }
#hub .panel .room-team.team-A { --tc: #3d9bff; }
#hub .panel .room-team.team-B { --tc: #4f6bed; }
#hub .panel .room-team header b { font-size: 14px; font-weight: 900; color: #fff; }
#hub .panel .room-team header small { font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .6); }
#hub .panel .room-slot { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 8px; border-radius: 8px; background: linear-gradient(180deg, #3c3245, #2c2433); border: 2px solid #18111f; }
#hub .panel .room-slot b { font-size: 14px; font-weight: 900; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hub .panel .room-slot small { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .55); }
#hub .panel .room-slot em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 5px; color: #252a2b; background: var(--gold); }
#hub .panel .room-slot em.you { margin-left: 4px; color: #fff; background: var(--pk); }
#hub .panel .room-slot.me { border-color: #b3e2ff; box-shadow: inset 0 0 0 2px var(--pk); }
#hub .panel .room-slot.empty { justify-content: center; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .03); border-style: dashed; border-color: rgba(255, 255, 255, .12); }
#hub .panel .room-team .btn { padding: 6px; font-size: 13px; }
#hub .panel .room-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
#hub .panel .room-actions .btn.deploy { flex: 1; }
#hub .panel .room-wait { flex: 1; font-size: 14px; font-weight: 800; color: rgba(255, 255, 255, .7); }

/* 排位：开始按钮 / 匹配中 / 结算段位变化 */
#hub .panel .rk-start:not(:disabled):hover { filter: brightness(1.08); }
#hub .panel .rk-queue { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 2px solid #b3e2ff;
  background: linear-gradient(180deg, #495354, #353a3a); box-shadow: inset 0 0 0 2px var(--pk), 0 0 16px rgba(63, 176, 255, .45); }
#hub .panel .rk-queue div { display: flex; flex-direction: column; flex: 1; }
#hub .panel .rk-queue b { font-size: 18px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
#hub .panel .rk-queue small { font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .7); }
#hub .panel .rk-queue .btn { padding: 8px 16px; font-size: 14px; }
.rk-spin { width: 26px; height: 26px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .2); border-top-color: #8ad5ff; animation: rkspin .8s linear infinite; flex: none; }
@keyframes rkspin { to { transform: rotate(360deg); } }
.rw-rank { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(90deg, #f0f7ff, #fff); font-weight: 800; color: var(--plum); }
.rw-rank img { width: 46px; height: 46px; object-fit: contain; }
.rw-rank.up span { color: #1f9e6e; }
.rw-rank.down span { color: #386cd7; }

/* ======================================================================
   结算 / 暂停：统一深色游戏风格（与大厅面板一致）
   ====================================================================== */
#pause.overlay, #end.overlay, #settings.overlay, #bag.overlay { background: radial-gradient(120% 90% at 50% 40%, rgba(26, 30, 30, .55), rgba(9, 6, 14, .86)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#pause .card, #end .card, #settings .card, #bag .card { position: relative; color: #fff; font-family: var(--bkfont); text-align: center; border-radius: 18px; padding: 26px 30px 24px;
  border: 2px solid #18111f; background: radial-gradient(120% 70% at 50% 0%, rgba(63, 176, 255, .26), transparent 62%), linear-gradient(180deg, #3a3045, #221a29);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), 0 0 0 2px rgba(255, 255, 255, .05), 0 30px 80px -20px rgba(0, 0, 0, .85); }
#pause .card h2, #end .card h2, #settings .card h2, #bag .card h2 { font-family: var(--bkfont); font-style: italic; font-weight: 900; color: #fff; margin: 2px 0 6px;
  -webkit-text-stroke: 0; text-shadow: 0 4px 0 #3b434a, 0 0 24px rgba(63, 176, 255, .55); letter-spacing: .02em; }
#pause .card h2 { font-size: 40px; }
#pause .card p { color: rgba(255, 255, 255, .7); font-weight: 700; }
#end .card h2.big { font-size: 74px; line-height: 1; }
#end .kicker { color: var(--gold); letter-spacing: .3em; font-size: 12px; }
#end[data-result=win] .card { background: radial-gradient(120% 70% at 50% 0%, rgba(255, 201, 60, .3), transparent 62%), linear-gradient(180deg, #353546, #221a29); }
#end[data-result=win] .card h2 { color: #ffe27a; text-shadow: 0 4px 0 #6b3a00, 0 0 28px rgba(255, 201, 60, .6); }
#end[data-result=lose] .card { background: radial-gradient(120% 70% at 50% 0%, rgba(90, 140, 255, .22), transparent 62%), linear-gradient(180deg, #2f3043, #1c1a27); }
#end[data-result=lose] .card h2 { color: #c9d6ff; text-shadow: 0 4px 0 #1b2350, 0 0 24px rgba(90, 140, 255, .45); }
#end[data-result=lose] .kicker { color: #9fb4ff; }
#end .end-head { margin: -26px -30px 0; padding: 22px 30px 16px; border-bottom: 2px solid rgba(0, 0, 0, .35); box-shadow: 0 2px 0 rgba(255, 255, 255, .05); }
#end .end-score { font-family: var(--bkfont); font-style: normal; font-size: 44px; gap: 22px; margin-top: 6px; text-shadow: 0 3px 0 rgba(0, 0, 0, .4); }
#end .end-score > div:nth-child(2) { color: rgba(255, 255, 255, .45); }
#end .end-score small { color: rgba(255, 255, 255, .6); font-weight: 800; letter-spacing: .18em; }
#end .end-stats div { background: rgba(14, 9, 20, .55); border: 2px solid rgba(255, 255, 255, .07); border-radius: 12px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3); }
#end .end-stats b { font-family: var(--bkfont); font-style: normal; font-weight: 900; color: #fff; font-size: 28px; }
#end .end-stats small { color: rgba(255, 255, 255, .55); }
#end .end-rewards { background: rgba(14, 9, 20, .45); border: 2px solid rgba(255, 255, 255, .07); border-radius: 14px; }
#end .end-rewards > .kicker { display: block; margin-bottom: 4px; }
#end .rw-row b { font-family: var(--bkfont); font-style: normal; font-weight: 900; color: #fff; font-size: 28px; }
#end .rw-row .coin-t { color: var(--gold); }
#end .rw-row span, #end .rw-lv small { color: rgba(255, 255, 255, .55); }
#end .rw-lv .lv-badge { box-shadow: 0 0 0 3px #252830, 0 0 0 5px var(--gold); font-family: var(--bkfont); font-style: normal; }
#end .xpbar { background: rgba(0, 0, 0, .45); border-radius: 5px; }
#end .xpbar i { background: linear-gradient(90deg, #6dc4ff, var(--pk)); box-shadow: 0 0 8px var(--pk); }
#end .rw-up { color: var(--pk2); font-family: var(--bkfont); }
#end .rw-unlock em { background: rgba(255, 255, 255, .1); color: #fff; }
#end .rw-rank { background: linear-gradient(90deg, rgba(63, 176, 255, .22), rgba(255, 255, 255, .03)); color: #fff; border: 2px solid rgba(255, 255, 255, .08); }
#end .rw-rank span { display: flex; flex-direction: column; gap: 2px; }
#end .rw-rank small { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .6); }
#end .rw-rank.up span { color: #5fe3a8; }
#end .rw-rank.down span { color: #7da3ff; }
#pause .btn, #end .btn, #settings .btn, #bag .btn { border-radius: 10px; letter-spacing: .08em; font-family: var(--bkfont); font-weight: 900; }
#pause .btn.deploy, #end .btn.deploy, #settings .btn.deploy, #bag .btn.deploy { background: linear-gradient(180deg, #7ccfff 0%, var(--pk) 45%, #2d9ef0 100%); color: #fff; border: 3px solid #d0ecff;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -5px 0 var(--pkD), 0 0 0 2px var(--pkX), 0 5px 0 2px #3b434a, 0 0 22px rgba(63, 176, 255, .6); }
#pause .btn.ghost, #end .btn.ghost, #settings .btn.ghost, #bag .btn.ghost { background: linear-gradient(180deg, #4a3f55, #352c3f); color: #fff; font-size: 18px; padding: 12px 24px; border: 2px solid #5b5068;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 -4px 0 rgba(0, 0, 0, .35), 0 4px 0 #17101e; }
#pause .btn:hover, #end .btn:hover { filter: brightness(1.1); }
#pause .row { flex-wrap: wrap; justify-content: center; }

/* ---- 游戏设置面板 ---- */
#settings.overlay { z-index: 40; }
#settings .card h2, #bag .card h2 { font-size: 34px; }
.st-card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; text-align: left !important; }
.st-card h2 { text-align: center; }
.st-sec { margin: 14px 0 4px; font-size: 12px; letter-spacing: .24em; color: var(--gold); font-weight: 900; }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 190px) 56px; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.st-row > span:first-child { display: flex; flex-direction: column; font-weight: 800; font-size: 15px; min-width: 0; }
.st-row small { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .55); font-family: var(--sans); }
.st-row input[type=range] { width: 100%; accent-color: var(--pk); }
.st-row output { text-align: right; font-variant-numeric: tabular-nums; font-weight: 900; color: #9fd8ff; }
.st-seg { grid-column: 2 / 4; display: flex; justify-self: end; border-radius: 9px; overflow: hidden; border: 2px solid #5b5068; }
.st-seg button { all: unset; cursor: pointer; padding: 7px 14px; font-weight: 800; font-size: 13px; color: rgba(255, 255, 255, .75); background: #352c3f; }
.st-seg button.on { background: var(--pk); color: #fff; }
.st-card .row { justify-content: center; margin-top: 18px; }
/* 选项多（准心样式）：按钮单独占一行，平均分 */
.st-row.wide { grid-template-columns: 1fr; row-gap: 8px; }
.st-row.wide .st-seg { grid-column: 1; justify-self: stretch; }
.st-row.wide .st-seg button { flex: 1; text-align: center; white-space: nowrap; padding: 7px 6px; }
/* 准心预览：模拟对局画面的背景，十字在中间 */
.st-xh-prev { position: relative; height: 110px; margin: 6px 0 4px; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .1);
  background: linear-gradient(rgba(10, 6, 20, .25), rgba(10, 6, 20, .25)), url(assets/hub/bg.jpg) center 62% / cover; }
.st-colors { grid-column: 2 / 4; justify-self: end; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.st-colors button { all: unset; cursor: pointer; width: 24px; height: 24px; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); border: 2px solid transparent; }
.st-colors button.on, .st-pick.on { border-color: #fff; box-shadow: 0 0 0 2px var(--pk), inset 0 0 0 1px rgba(0, 0, 0, .4); }
.st-pick { position: relative; width: 24px; height: 24px; border-radius: 7px; border: 2px solid transparent; cursor: pointer; overflow: hidden;
  background: conic-gradient(#ff3b3b, #ffe14a, #3dff6a, #2ee6ff, #6a5cff, #ff3fa4, #ff3b3b); }
.st-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
@media (max-width: 520px) { .st-colors { grid-column: 1 / 3; justify-self: start; } }
@media (max-width: 520px) {
  .st-row { grid-template-columns: minmax(0, 1fr) 52px; }
  .st-row input[type=range] { grid-column: 1 / 3; grid-row: 2; }
  .st-row output { grid-row: 1; grid-column: 2; }
  .st-seg { grid-column: 1 / 3; justify-self: stretch; } .st-seg button { flex: 1; text-align: center; }
}

/* ---- 对局背包（B） ---- */
#bag.overlay { z-index: 35; }
.bag-card-wrap { width: min(760px, 100%); }
.bag-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 6px; }
.bag-card { all: unset; box-sizing: border-box; cursor: pointer; text-align: left; border-radius: 14px; padding: 12px 14px; background: linear-gradient(180deg, #4a3f55, #2f2739); border: 2px solid #5b5068; transition: transform .12s, border-color .12s; }
.bag-card:hover { transform: translateY(-2px); border-color: #9fd8ff; }
.bag-card.cur { border-color: var(--pk); box-shadow: 0 0 0 2px rgba(63, 176, 255, .25); }
.bag-card.next { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 201, 60, .3); }
.bag-h { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 15px; margin-bottom: 8px; }
.bag-h i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #1b1522; font-size: 12px; color: #9fd8ff; }
.bag-h span { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--pk); }
.bag-card.next .bag-h span { background: var(--gold); color: #2a1c00; }
.bag-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bag-card li { display: grid; grid-template-columns: 1fr auto; font-size: 14px; }
.bag-card li small { grid-column: 1 / 3; font-size: 10.5px; letter-spacing: .14em; color: rgba(255, 255, 255, .5); font-family: var(--sans); font-weight: 700; }
.bag-card li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bag-card li em { font-style: normal; color: #9fd8ff; font-weight: 800; font-size: 12px; }
.bag-note { color: rgba(255, 255, 255, .65); font-weight: 700; font-size: 13px; }
@media (max-width: 640px) { .bag-cards { grid-template-columns: 1fr; } }
/* 双方战绩表（联机） */
#end .end-board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; text-align: left; }
#end .end-board[hidden] { display: none; }
#end .eb-col { background: rgba(14, 9, 20, .5); border: 2px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 6px 8px 8px; }
#end .eb-h, #end .eb-r { display: grid; grid-template-columns: 22px minmax(0, 1fr) 40px 40px; align-items: center; gap: 6px; }
#end .eb-h { grid-template-columns: minmax(0, 1fr) 40px 40px; padding: 4px 4px 6px; border-bottom: 2px solid var(--tc); margin-bottom: 4px; }
#end .eb-h b { color: var(--tc); font-size: 15px; font-weight: 900; }
#end .eb-h span, #end .eb-r span { text-align: center; font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .55); }
#end .eb-r { padding: 4px; border-radius: 7px; }
#end .eb-r i { font-style: normal; font-size: 12px; font-weight: 900; color: rgba(255, 255, 255, .4); text-align: center; }
#end .eb-r em { font-style: normal; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#end .eb-r span { font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; }
#end .eb-r.me { background: rgba(63, 176, 255, .25); box-shadow: inset 0 0 0 2px rgba(124, 207, 255, .6); }
@media (max-width: 640px) { #end .end-board { grid-template-columns: 1fr; } #end .card h2.big { font-size: 52px; } #end .end-head { margin: -26px -16px 0; } #pause .card, #end .card, #settings .card, #bag .card { padding: 26px 16px 20px; } }

/* 断线重连提示 */
#netBanner { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 12px;
  color: #fff; font-family: var(--bkfont); border: 2px solid #b3e2ff; background: linear-gradient(180deg, #495354, #353a3a); box-shadow: 0 0 0 2px #315c7a, 0 0 22px rgba(63, 176, 255, .5); }
#netBanner[hidden] { display: none; }
#netBanner b { font-size: 16px; font-weight: 900; }

/* 组队框（排位页） */
#hub .panel .pt-box { margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 2px solid #18111f; background: linear-gradient(180deg, #3c3245, #2c2433); }
#hub .panel .pt-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#hub .panel .pt-h b { font-size: 17px; font-weight: 900; color: #fff; display: flex; align-items: center; gap: 8px; }
#hub .panel .pt-h b em { font-style: normal; font-family: var(--logo); font-size: 15px; letter-spacing: .08em; padding: 2px 8px; border-radius: 7px; cursor: pointer; color: #ffe27a; background: rgba(0, 0, 0, .35); border: 1px dashed rgba(255, 226, 122, .5); }
#hub .panel .pt-h small { flex: 1; min-width: 120px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .6); }
#hub .panel .pt-box .btn { padding: 6px 12px; font-size: 13px; border-radius: 8px; letter-spacing: .04em; white-space: nowrap; }
#hub .panel .pt-join { display: flex; gap: 8px; margin-top: 8px; }
#hub .panel .pt-join input { flex: 1; min-width: 0; font: 900 15px var(--logo); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(14, 9, 20, .6); border: 2px solid #4a3f55; border-radius: 8px; padding: 6px 10px; outline: none; }
#hub .panel .pt-join input:focus { border-color: var(--pk2); }
#hub .panel .pt-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
#hub .panel .pt-m { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; min-height: 78px; text-align: center;
  border-radius: 9px; background: rgba(14, 9, 20, .5); border: 2px solid rgba(255, 255, 255, .07); }
#hub .panel .pt-m.lead { border-color: rgba(255, 201, 60, .65); }
#hub .panel .pt-m.lead::before { content: "\2605"; position: absolute; top: 2px; left: 6px; font-size: 12px; color: var(--gold); }
#hub .panel .pt-m.empty { border-style: dashed; background: rgba(14, 9, 20, .25); }
#hub .panel .pt-m img { width: 34px; height: 34px; object-fit: contain; }
#hub .panel .pt-m img.unranked { filter: grayscale(1) brightness(.7); }
#hub .panel .pt-m span { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
#hub .panel .pt-m b { font-size: 12px; font-weight: 900; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hub .panel .pt-m small { font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, .55); }
#hub .panel .pt-kick { position: absolute; top: 1px; right: 3px; width: 18px; height: 18px; line-height: 16px; border-radius: 50%; font-size: 14px; font-weight: 900; color: #fff; background: rgba(56, 108, 215, .8); }
#hub .panel .rk-season { font: 800 12px var(--bkfont); color: #fff; background: rgba(14, 9, 20, .6); border: 2px solid #4a3f55; border-radius: 8px; padding: 3px 6px; margin-right: 6px; max-width: 170px; }

/* 赛季奖励弹窗 */
.season-card { width: min(440px, 92vw); text-align: center; }
.season-card .kicker { color: var(--gold); letter-spacing: .3em; }
.srw-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-align: left;
  background: rgba(14, 9, 20, .5); border: 2px solid rgba(255, 255, 255, .08); }
.srw-row img { width: 56px; height: 56px; object-fit: contain; }
.srw-row div { display: flex; flex-direction: column; gap: 2px; }
.srw-row small { font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .55); }
.srw-row b { font-size: 18px; font-weight: 900; }
.srw-row span { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .65); }
.srw-row em { font-style: normal; font-size: 20px; font-weight: 900; color: var(--gold); display: inline-flex; align-items: center; gap: 4px; }

/* 结算页：矮屏紧凑 + 按钮常驻底部 */
#end .card { max-height: 94vh; padding-bottom: 0; }
#end .card > .row { position: sticky; bottom: 0; margin: 14px -30px 0; padding: 12px 30px 16px; background: linear-gradient(180deg, rgba(34, 26, 41, 0), #221a29 30%); z-index: 2; }
#end .end-stats { margin-top: 14px; }
#end .end-stats div { padding: 8px 6px; }
#end .end-stats b { font-size: 24px; }
#end .end-board { margin-top: 10px; }
#end .end-rewards { margin-top: 10px; padding: 12px 14px; }
@media (max-height: 820px) {
  #end .card h2.big { font-size: 54px; }
  #end .end-head { padding: 14px 30px 10px; }
  #end .end-score { font-size: 34px; }
  #end .eb-r { padding: 2px 4px; }
  #end .rw-rank { margin-bottom: 8px; padding: 6px 10px; }
  #end .rw-rank img { width: 36px; height: 36px; }
}

/* 武器 / 角色页：资料卡固定在展台左下角（展示物让开位置） */
#hub .stage-wrap .stage-detail.panel { position: absolute; left: 0; bottom: 14px; width: 440px; max-height: calc(100% - 28px); margin: 0; padding: 0;
  overflow: visible; background: none; border: 0; box-shadow: none; border-radius: 0; cursor: default; z-index: 3; }
#hub .stage-wrap .stage-detail[hidden] { display: none; }
#hub .stage-wrap .stage-detail :is(.detail-box, .char-detail) { margin: 0; padding: 16px 18px; background: linear-gradient(180deg, rgba(60, 50, 69, .94) 0%, rgba(44, 36, 51, .94) 100%); }
#hub[data-tab=armory] .drag-hint { left: auto; right: 0; }
#hub .stage-wrap .stage-detail .char-detail .row-l { margin-top: 12px; }
#hub .stage-wrap .stage-detail .char-detail .hint { margin-top: 10px; }

/* ======================================================================
   背包 / 武器升级 / 结算掉落
   ====================================================================== */
/* 零件 / 钻石小图标：普通（绿）/ 精良（蓝）/ 稀有核心（金）/ 钻石 */
.pc { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc > i:not(.coin):not(.gem-i) { width: 13px; height: 13px; border-radius: 3px; transform: rotate(45deg); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .25); flex: none; }
.pc-c > i { background: linear-gradient(135deg, #b8f5a8, #4fbf3e); }
.pc-r > i { background: linear-gradient(135deg, #b8dcff, #3f86e8); }
.pc-x > i { background: linear-gradient(135deg, #fff1a8, #f0a91e); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 0 0 6px rgba(255, 196, 46, .8) !important; }
.gem-i { display: inline-block; width: 13px; height: 13px; flex: none; vertical-align: -2px; margin-right: 3px;
  background: linear-gradient(135deg, #e6fbff 0%, #6fd3ff 40%, #3a7bff 100%); clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%); }
.pc.lack { color: #8ab2ff !important; }

/* 武器页：零件栏、等级徽记、价格 */
#hub .panel .parts-bar { margin-left: auto; display: flex; gap: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(14, 9, 20, .55); border: 2px solid rgba(255, 255, 255, .07); font-size: 14px; color: #fff; }
.wlv { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 900; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; color: #fff; white-space: nowrap;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.wlv.bronze { background: linear-gradient(180deg, #e0a070, #a8612f); border-color: #ffd2a8; }
.wlv.silver { background: linear-gradient(180deg, #e8eef6, #8e9bb0); border-color: #fff; color: #2a2232; }
.wlv.gold { background: linear-gradient(180deg, #ffe58a, #e0a11e); border-color: #fff4c8; color: #3a2400; box-shadow: 0 0 10px rgba(255, 196, 46, .7); }
.scard .wlv { display: inline-block; margin-top: 4px; }
.wprice { margin-left: auto; display: inline-flex; align-items: center; font-size: 11px; font-weight: 900; color: #ffe27a; background: rgba(0, 0, 0, .35); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.scard .wprice { margin-top: 4px; }
#hub .panel :is(.wcard, .scard).locked { filter: none; opacity: .78; }
#hub .panel :is(.wcard, .scard).locked img { filter: grayscale(.6) brightness(.85); }

/* 资料卡：购买 / 升级 */
.upg { margin-top: 12px; padding-top: 12px; border-top: 2px solid rgba(255, 255, 255, .08); display: grid; gap: 8px; }
.upg-h { display: flex; align-items: center; gap: 10px; }
.upg-h .wlv { margin: 0; font-size: 15px; padding: 3px 9px; }
.upg-h .wlv small { font-size: 11px; opacity: .7; margin-left: 1px; }
.upg-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .4); overflow: hidden; }
.upg-bar i { display: block; height: 100%; background: linear-gradient(90deg, #b3e2ff, var(--pk)); box-shadow: 0 0 6px var(--pk); }
.mastery { font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.mastery.bronze { color: #ffd2a8; background: rgba(168, 97, 47, .4); } .mastery.silver { color: #fff; background: rgba(142, 155, 176, .4); } .mastery.gold { color: #ffe27a; background: rgba(224, 161, 30, .35); }
.upg-eff { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .62); line-height: 1.4; }
.upg-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upg-cost { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; color: #fff; }
.upg .btn { margin-left: auto; padding: 8px 16px; font-size: 15px; letter-spacing: .04em; border-radius: 9px; }
.upg .btn[disabled] { filter: grayscale(.7) brightness(.8); }
.upg-lack { font-size: 12px; font-weight: 800; color: #8ab2ff; }

/* 商店：限定皮肤 / 没买的武器 */
#hub .panel .skin-card.limited { border-color: rgba(111, 211, 255, .45); background: linear-gradient(180deg, #3a3458 0%, #2a2440 100%); }
#hub .panel .skin-card.limited small { color: #9fe4ff; }
#hub .panel .wchip.locked img { filter: grayscale(.7) brightness(.75); }

/* 顶栏钻石：不再有「+」 */
#hub .gems { cursor: help; }

/* 结算：补给箱 */
.rw-loot { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; text-align: left;
  background: linear-gradient(90deg, rgba(255, 201, 60, .18), rgba(255, 255, 255, .03)); border: 2px solid rgba(255, 255, 255, .08); animation: lootIn .35s ease-out; }
.rw-loot img { width: 46px; height: 46px; object-fit: contain; animation: lootBox .6s ease-out; }
.rw-loot > div { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rw-loot b { font-size: 16px; font-weight: 900; color: #fff; }
.rw-loot.tier-large { border-color: rgba(255, 201, 60, .7); box-shadow: 0 0 18px rgba(255, 196, 46, .35); }
.rw-loot.tier-large b { color: #ffe27a; }
.rw-loot.tier-none { background: rgba(255, 255, 255, .04); }
.loot-items { display: flex; gap: 12px; flex-wrap: wrap; font-size: 16px; color: #fff; }
.loot-items em { animation: lootPop .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.loot-items em small { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .55); margin-left: 2px; }
.loot-note { font-size: 12px; font-weight: 700; color: #ffe27a; }
@keyframes lootIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes lootBox { 0% { transform: scale(.4) rotate(-12deg); } 60% { transform: scale(1.15) rotate(6deg); } 100% { transform: none; } }
@keyframes lootPop { from { opacity: 0; transform: scale(.4); } }

/* 炫彩动态皮肤：商城色块也是流动的彩虹 */
#hub .panel .sw.fx { position: relative; overflow: hidden; }
#hub .panel .sw.fx-holo { background: conic-gradient(from 0deg, #b3ecff, #b3d9ff, #b3ffe0, #fff6b3, #ffc9b3, #b3ecff); animation: fxSpin 3s linear infinite; }
#hub .panel .sw.fx-candy { background: repeating-linear-gradient(135deg, #3fe0ff 0 6px, #15121f 6px 24px, #ff3fa0 24px 30px, #15121f 30px 48px); background-size: 68px 68px; animation: fxSlide 1.2s linear infinite; }
#hub .panel .sw.fx-nebula { background: radial-gradient(circle at 30% 35%, #5ad6ff 0, transparent 45%), radial-gradient(circle at 70% 65%, #4fe3ff 0, transparent 45%), #17103a; animation: fxHue 4s linear infinite; }
#hub .panel .sw.fx::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%); background-size: 250% 100%; animation: fxShine 2.2s ease-in-out infinite; }
@keyframes fxSpin { to { filter: hue-rotate(360deg); transform: rotate(360deg); } }
@keyframes fxSlide { to { background-position: 68px 0; } }
@keyframes fxHue { to { filter: hue-rotate(360deg); } }
@keyframes fxShine { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ======================================================================
   商城：限定系列 / 经典涂装
   ====================================================================== */
#hub .panel[data-tab=shop] { display: flex; flex-direction: column; padding-bottom: 0; }
#hub .panel .shop-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
#hub .panel .shop-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 12px; border-radius: 10px; color: #fff; text-align: left;
  border: 2px solid #18111f; background: linear-gradient(180deg, #3c3245, #2c2433); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), 0 3px 0 rgba(8, 4, 12, .45); }
#hub .panel .shop-tabs button b { font-size: 16px; font-weight: 900; letter-spacing: .04em; }
#hub .panel .shop-tabs button small { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .6); }
#hub .panel .shop-tabs button.on { border-color: #d0ecff; background: linear-gradient(180deg, #7ccfff 0%, var(--pk) 45%, #2d9ef0 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), inset 0 -4px 0 var(--pkD), 0 3px 0 #3b434a; }
#hub .panel .shop-tabs button.on small { color: rgba(255, 255, 255, .9); }
#hub .panel .shop-body { flex: 1; }

/* 系列卡片 */
#hub .panel .series { margin-bottom: 12px; padding: 10px; border-radius: 12px; border: 2px solid #18111f;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 16%, #322a3d) 0%, #2a2231 70%);
  box-shadow: inset 0 3px 0 color-mix(in srgb, var(--sc) 70%, transparent), 0 3px 0 rgba(8, 4, 12, .45); }
#hub .panel .series-h { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 8px; }
#hub .panel .series-h i { font-style: normal; font-size: 11px; font-weight: 900; color: #181b20; background: var(--sc); padding: 1px 6px; border-radius: 5px; }
#hub .panel .series-h b { font-size: 18px; font-weight: 900; color: #fff; letter-spacing: .04em; }
#hub .panel .series-h small { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hub .panel .ser-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; align-items: stretch; padding: 6px; border-radius: 10px; }
#hub .panel .ser-row + .ser-row { margin-top: 4px; }
#hub .panel .ser-row.on { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sc) 80%, transparent); }
#hub .panel .ser-skin { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 9px; color: #fff; text-align: left; background: rgba(14, 9, 20, .45); }
#hub .panel .ser-skin .sw { width: 38px; height: 38px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); background-size: cover; }
#hub .panel .ser-skin span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#hub .panel .ser-skin b { font-size: 13px; font-weight: 900; line-height: 1.15; }
#hub .panel .ser-skin small { display: inline-flex; align-items: center; font-size: 12px; font-weight: 900; color: #9fe4ff; }
#hub .panel .ser-guns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
#hub .panel .ser-gun { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 4px 4px; border-radius: 8px; color: #fff;
  background: rgba(14, 9, 20, .5); border: 2px solid rgba(255, 255, 255, .06); }
#hub .panel .ser-gun img { width: 100%; height: 34px; object-fit: contain; }
#hub .panel .ser-gun small { font-size: 10px; font-weight: 800; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#hub .panel .ser-gun.on { border-color: #d0ecff; background: rgba(63, 176, 255, .25); box-shadow: 0 0 10px rgba(63, 176, 255, .45); }
#hub .panel .ser-gun.nogun img { filter: grayscale(.7) brightness(.7); }
#hub .panel .ser-gun em { position: absolute; top: 2px; right: 4px; font-style: normal; font-size: 11px; font-weight: 900; color: #6dff8e; }
#hub .panel .ser-gun.eq em { color: #ffe27a; }

/* 底部操作栏：滚动时固定在面板底部 */
#hub .panel .shop-bar.sticky { position: sticky; bottom: 0; z-index: 2; margin: 6px -4px 0; box-shadow: 0 -10px 18px rgba(16, 14, 26, .65), inset 0 2px 0 rgba(255, 255, 255, .08); }
#hub .panel[data-tab=shop] > .hint { margin-bottom: 10px; }

#hub .panel .wchips.small { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
#hub .panel .wchips.small .wchip { padding: 3px 3px 4px; }
#hub .panel .wchips.small .wchip img { height: 26px; }
#hub .panel .wchips.small .wchip small { font-size: 9px; }

/* ======================================================================
   皮肤品质：普通 / 精良 / 稀有 / 史诗 / 传说 / 炫彩（流动彩虹）
   ====================================================================== */
.rar { display: inline-block; font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .06em; line-height: 1; padding: 3px 6px; border-radius: 5px;
  color: #1b1220; background: var(--rc, #b7b2c0); white-space: nowrap; align-self: flex-start; }
.rar-prism.rar, .rar.rar-prism { color: #fff; background: linear-gradient(90deg, #ff5ec8, #ffb02e, #5fe0a0, #4ea8ff, #b46bff, #ff5ec8); background-size: 300% 100%;
  animation: rarFlow 3s linear infinite; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
@keyframes rarFlow { to { background-position: 300% 0; } }
/* 经典涂装卡片：品质色边框 + 左上角标签 */
#hub .panel .skin-card { position: relative; border-color: color-mix(in srgb, var(--rc) 70%, #18111f); }
#hub .panel .skin-card .rar { position: absolute; top: 4px; left: 4px; font-size: 9px; padding: 2px 5px; }
#hub .panel .skin-card.rar-common .rar { display: none; }
#hub .panel .skin-card .sw { box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 80%, transparent); }
/* 限定系列：每行左侧品质色条 */
#hub .panel .ser-row { box-shadow: inset 4px 0 0 var(--rc); }
#hub .panel .ser-row.on { box-shadow: inset 4px 0 0 var(--rc), inset 0 0 0 2px color-mix(in srgb, var(--rc) 80%, transparent); }
#hub .panel .ser-skin .rar { margin-bottom: 1px; }
#hub .panel .ser-skin .sw { box-shadow: 0 0 0 3px var(--rc); }
#hub .panel .ser-skin.rar-prism .sw { box-shadow: 0 0 0 3px #fff, 0 0 12px rgba(255, 94, 200, .9); }
#hub .panel .ser-row:has(.rar-prism) { box-shadow: inset 4px 0 0 #ff5ec8; background-image: linear-gradient(90deg, rgba(255, 94, 200, .12), rgba(78, 168, 255, .08) 60%, transparent); }
/* 品质筛选 */
#hub .panel .rar-filter { display: flex; gap: 6px; margin-bottom: 10px; }
#hub .panel .rar-filter button { flex: 1; padding: 6px 4px; border-radius: 8px; font-size: 13px; font-weight: 900; color: rgba(255, 255, 255, .75);
  background: rgba(14, 9, 20, .55); border: 2px solid rgba(255, 255, 255, .08); }
#hub .panel .rar-filter button.rar-legendary { color: #ffb02e; } #hub .panel .rar-filter button.rar-epic { color: #c99bff; }
#hub .panel .rar-filter button.rar-prism { color: #ff8ad8; }
#hub .panel .rar-filter button.on { color: #fff; border-color: #ffd0e8; background: linear-gradient(180deg, #ff7cc4, var(--pk)); }
#hub .panel .rar-filter button.rar-prism.on { background: linear-gradient(90deg, #ff5ec8, #ffb02e, #5fe0a0, #4ea8ff, #b46bff, #ff5ec8); background-size: 300% 100%; animation: rarFlow 3s linear infinite; }
/* 底部栏 */
#hub .panel .shop-bar.sticky b { display: flex; align-items: center; gap: 8px; }
#hub .panel .shop-bar.sticky .rar { align-self: center; }

/* 角色页：按品质分组；卡片品质色边框，底部显示价格 / 已拥有 */
#hub .panel .char-sec { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; padding-bottom: 6px; border-bottom: 2px solid color-mix(in srgb, var(--rc) 45%, transparent); }
#hub .panel .char-sec:first-child { margin-top: 2px; }
#hub .panel .char-sec .rar { font-size: 13px; padding: 4px 9px; align-self: center; }
#hub .panel .char-sec small { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .6); }
#hub .panel .char-sec span { margin-left: auto; font-size: 12.5px; font-weight: 900; color: rgba(255, 255, 255, .7); }
#hub .panel .char-card { border-color: color-mix(in srgb, var(--rc) 70%, #18111f); }
#hub .panel .char-card.rar-common { border-color: #18111f; }
#hub .panel .char-card.on { border-color: #ffb3dc; }
#hub .panel .char-card img { border-bottom-color: var(--rc); }
#hub .panel .char-card.rar-common img { border-bottom-color: var(--tc); }
#hub .panel .char-card.unowned img { filter: saturate(.55) brightness(.75); }
#hub .panel .char-card.unowned.on img { filter: none; }
#hub .panel .char-card .cc-st { display: flex; align-items: center; justify-content: center; gap: 1px; margin-top: 3px; font-size: 12px; font-weight: 900; color: var(--gold); white-space: nowrap; }
#hub .panel .char-card .cc-st.own { color: rgba(255, 255, 255, .55); font-weight: 700; }
#hub .panel .char-card .cc-st .coin { width: 13px; height: 13px; margin-right: 3px; }
#hub .panel .char-detail .kick { display: flex; align-items: center; gap: 8px; }
#hub .panel .char-detail .kick .rar { align-self: center; }

/* ======================================================================
   目标模式 HUD：占点 / 爆破 / 护送
   ====================================================================== */
#objHud { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
#objHud:empty { display: none; }
.obj-pts { display: flex; gap: 10px; }
.obj-pt { position: relative; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
  background: rgba(20, 24, 30, .78); border: 2.5px solid var(--oc); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.obj-pt::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--pk); background: var(--pc); opacity: .55; transition: height .2s; }
.obj-pt b { position: relative; font-family: var(--sans); font-weight: 900; font-size: 18px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.obj-pt.ours { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25), 0 0 14px var(--oc); }
.obj-pt.hot { animation: objHot .5s ease-in-out infinite alternate; }
@keyframes objHot { to { border-color: #ffb02e; box-shadow: 0 0 16px #ffb02e; } }
.obj-round { display: flex; align-items: center; gap: 12px; padding: 6px 14px; border-radius: 10px; background: rgba(20, 24, 30, .78); }
.obj-round b { font-size: 13px; font-weight: 900; letter-spacing: .16em; }
.obj-dots { display: flex; gap: 4px; }
.obj-dots i { width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--oc); background: transparent; }
.obj-dots i.on { background: var(--oc); }
.obj-sub { display: flex; gap: 12px; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.obj-sub em { font-style: normal; padding: 3px 8px; border-radius: 6px; background: rgba(20, 24, 30, .7); }
.obj-sub .obj-warn, .obj-sub .st-contest { background: #e0452e; animation: objHot .5s ease-in-out infinite alternate; }
.obj-sub .st-push { background: #2f8f5b; }
.obj-sub .st-back { background: #8a5a1c; }
.obj-esc { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.obj-track { position: relative; width: 320px; height: 10px; border-radius: 5px; background: rgba(20, 24, 30, .78); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .15); }
.obj-track > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--oc); transition: width .3s; }
.obj-track > em { position: absolute; top: -3px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: rgba(255, 255, 255, .5); }
.obj-track > em.on { background: #ffd75a; }
.obj-track > u { position: absolute; top: -6px; width: 18px; height: 22px; margin-left: -9px; border-radius: 5px; background: #fff; border: 3px solid var(--oc); transition: left .3s; }
#objTip { position: absolute; left: 50%; bottom: 23%; transform: translateX(-50%); padding: 8px 18px; border-radius: 10px; white-space: nowrap;
  background: rgba(20, 24, 30, .8); font-size: 15px; font-weight: 800; letter-spacing: .04em; }
#objTip kbd { margin: 0 2px; color: #7abfff; }
#objBanner { position: absolute; left: 50%; top: 20%; transform: translateX(-50%); text-align: center; animation: objPop .3s ease-out; }
@keyframes objPop { from { transform: translateX(-50%) scale(1.4); opacity: 0; } }
#objBanner b { display: block; font-size: 34px; font-weight: 900; letter-spacing: .06em; text-shadow: 0 3px 12px rgba(0, 0, 0, .6); }
#objBanner small { display: block; margin-top: 4px; font-size: 13px; font-weight: 800; letter-spacing: .2em; opacity: .9; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
#objBanner.good b { color: #7abfff; }
#objBanner.bad b { color: #ff6a5c; }
#objBanner.warn b { color: #ffb02e; }

/* 出战面板：6 个模式两列排 */
#hub .panel .pk-modes { grid-template-columns: 1fr 1fr; }
#hub .panel .pk-modes .pk-card { height: clamp(70px, 10vh, 92px); }
#hub .panel .pk-modes .pk-tx { gap: 4px; padding: 18px 8px 7px; }
#hub .panel .pk-modes .pk-tx b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 18px; }
#hub .panel .pk-modes .chips-row { flex-wrap: nowrap; overflow: hidden; }
#hub .panel .pk-modes .chips-row em { font-size: 10px; padding: 2px 6px; white-space: nowrap; }
#hub .panel .pk-modes .chips-row em:nth-child(n+2) { display: none; }
#hub .panel .pk-mode.m-ctrl { background-image: url(assets/hub/card_ctrl.jpg); }
#hub .panel .pk-mode.m-bomb { background-image: url(assets/hub/card_bomb.jpg); }
#hub .panel .pk-mode.m-escort { background-image: url(assets/hub/card_escort.jpg); }

/* ======================================================================
   好友：首页卡片的真实状态 / 好友面板 / 组队邀请弹窗
   ====================================================================== */
.fr-row.off { opacity: .55; }
.fr-row.off .fr-av i { background: #6b6475; }
.fr-row small.st-match, .fr-row small.st-queue { color: #ffc93c; }
.fr-row small.st-party, .fr-row small.st-room { color: #7fd0ff; }
#hub .fr-join.inv { filter: hue-rotate(160deg) saturate(.9); }
.fr-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 10px 2px; }
.fr-msg small { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .75); }
#hub .card.friends .card-h small[data-act] { cursor: pointer; }

#friends.overlay { z-index: 30; background: radial-gradient(120% 90% at 50% 40%, rgba(26, 30, 30, .55), rgba(9, 6, 14, .86)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fr-card { width: min(640px, 100%); height: min(640px, calc(100vh - 32px)); display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; color: #fff; font-family: var(--bkfont);
  border-radius: 18px; border: 2px solid #18111f; background: radial-gradient(120% 50% at 50% 0%, rgba(63, 176, 255, .2), transparent 62%), linear-gradient(180deg, #3a3045, #221a29);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), 0 30px 80px -20px rgba(0, 0, 0, .85); }
.fr-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 8px; }
.fr-head h2 { margin: 0; font-size: 30px; font-style: italic; font-weight: 900; text-shadow: 0 3px 0 #3b434a, 0 0 20px rgba(63, 176, 255, .5); }
.fr-head span { color: #9fd8ff; font-weight: 900; font-size: 15px; }
.fr-x { all: unset; cursor: pointer; margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .08); font-size: 16px; }
.fr-x:hover { background: rgba(255, 255, 255, .16); }
.fr-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); overflow-x: auto; }
.fr-tabs button { all: unset; cursor: pointer; padding: 10px 14px; font-weight: 800; font-size: 15px; color: rgba(255, 255, 255, .6); white-space: nowrap; position: relative; }
.fr-tabs button.on { color: #fff; box-shadow: inset 0 -3px 0 var(--pk); }
.fr-tabs button i { font-style: normal; margin-left: 6px; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ff3b6b; font-size: 11px; }
.fr-body { flex: 1; overflow-y: auto; padding: 8px 16px 16px; }
.frp-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.frp-row .fr-av { width: 42px; height: 42px; }
.frp-row .fr-av.off { opacity: .55; } .frp-row .fr-av.off i { background: #6b6475; }
.frp-name { display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: 7px; min-width: 0; }
.frp-name b { font-size: 16px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frp-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }
.frp-name em { font-style: normal; font-size: 12px; color: #9fd8ff; font-weight: 800; }
.frp-name small { grid-column: 1 / 4; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .6); font-family: var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frp-name small .st-lobby, .frp-name small .st-party, .frp-name small .st-room { color: #7fe0a8; }
.frp-name small .st-match, .frp-name small .st-queue { color: #ffc93c; }
.frp-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.frp-b { all: unset; cursor: pointer; padding: 6px 12px; border-radius: 8px; font-weight: 800; font-size: 13px; background: #4a3f55; border: 2px solid #5b5068; white-space: nowrap; }
.frp-b.pri { background: linear-gradient(180deg, #7ccfff, var(--pk)); border-color: #d0ecff; color: #fff; text-shadow: 0 1px 0 rgba(0, 40, 80, .4); }
.frp-b.ghost { background: transparent; color: rgba(255, 255, 255, .75); }
.frp-b:hover { filter: brightness(1.12); }
.frp-b[disabled] { opacity: .5; pointer-events: none; }
.frp-tag { font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .55); padding: 6px 4px; }
.frp-sec { margin: 16px 4px 4px; font-size: 12px; letter-spacing: .2em; color: var(--gold); font-weight: 900; }
.frp-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 10px; text-align: center; color: rgba(255, 255, 255, .6); font-weight: 700; }
.frp-empty b { color: #fff; font-size: 18px; } .frp-empty.sm { padding: 14px 4px; align-items: flex-start; font-size: 13px; }
.frp-search { display: flex; gap: 8px; margin: 10px 0 6px; }
.frp-search input { flex: 1; min-width: 0; background: #1b1522; border: 2px solid #5b5068; border-radius: 9px; padding: 8px 12px; color: #fff; font: 700 15px var(--sans); outline: none; }
.frp-search input:focus { border-color: var(--pk); }

#frInvite { position: fixed; top: 76px; right: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.fr-inv { pointer-events: auto; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; width: min(340px, calc(100vw - 32px)); padding: 10px 12px;
  border-radius: 14px; color: #fff; font-family: var(--bkfont); background: linear-gradient(180deg, #3a3045, #221a29); border: 2px solid var(--pk);
  box-shadow: 0 0 24px rgba(63, 176, 255, .35), 0 16px 40px -10px rgba(0, 0, 0, .8); animation: frIn .25s ease-out; transition: opacity .25s, transform .25s; }
.fr-inv.out { opacity: 0; transform: translateX(30px); }
.fr-inv img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.fr-inv b { display: block; font-size: 15px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-inv small { font-size: 12.5px; color: rgba(255, 255, 255, .7); font-weight: 700; font-family: var(--sans); }
.fr-inv button { all: unset; cursor: pointer; font-weight: 900; font-size: 13px; border-radius: 8px; padding: 7px 12px; }
.fr-inv .ok { background: linear-gradient(180deg, #7ccfff, var(--pk)); }
.fr-inv .no { padding: 7px 9px; color: rgba(255, 255, 255, .6); }
@keyframes frIn { from { opacity: 0; transform: translateX(30px); } }
@media (max-width: 520px) {
  .frp-row { grid-template-columns: 40px minmax(0, 1fr); }
  .frp-acts { grid-column: 1 / 3; justify-content: flex-start; padding-left: 52px; }
  .fr-head h2 { font-size: 24px; }
}

/* ---- 阵亡画面：选复活后的配装（按 1/2/3）；弹药栏下的 B 键提示 ---- */
#deathKit { margin-top: 18px; }
.dk-row { display: flex; gap: 10px; justify-content: center; }
.dk { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; min-width: 150px; max-width: 190px; padding: 8px 12px; text-align: left;
  border-radius: 12px; background: rgba(20, 14, 28, .72); border: 2px solid rgba(255, 255, 255, .14); backdrop-filter: blur(4px); }
.dk kbd { grid-row: 1 / 3; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #2c2338; border: 1px solid rgba(255, 255, 255, .25); font: 900 13px var(--sans); color: #9fd8ff; }
.dk b { font-size: 14px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.dk small { font-size: 11.5px; letter-spacing: 0 !important; font-weight: 700 !important; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk em { position: absolute; top: -9px; right: 8px; font-style: normal; font-size: 10.5px; font-weight: 900; padding: 1px 7px; border-radius: 99px; background: var(--pk); }
.dk.cur { border-color: var(--pk); }
.dk.next { border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 201, 60, .35); }
.dk.next em { background: var(--gold); color: #2a1c00; }
.dk-tip { display: block; margin-top: 10px; letter-spacing: .04em !important; font-size: 12.5px !important; font-weight: 700 !important; color: rgba(255, 255, 255, .7); }
.kit-hint { margin-top: 6px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 11.5px; font-weight: 800; color: rgba(255, 255, 255, .6); }
.kit-hint kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 5px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font: 900 11px var(--sans); color: #fff; }
@media (max-width: 640px) { .dk-row { flex-direction: column; align-items: center; } }

/* ---- 武器页资料卡：瞄具选择 ---- */
.opt-h { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 6px; }
.opt-h b { font-size: 13px; letter-spacing: .16em; font-weight: 900; }
.opt-h small { font-size: 11.5px; color: rgba(255, 255, 255, .55); font-weight: 700; }
.opt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; }
.opt { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px 5px;
  border-radius: 9px; background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .12); text-align: center; }
.opt b { font-size: 12.5px; font-weight: 900; white-space: nowrap; }
.opt small { font-size: 11px; font-weight: 800; color: #9fd8ff; }
.opt:hover { border-color: rgba(159, 216, 255, .6); }
.opt.on { border-color: var(--pk); background: rgba(63, 176, 255, .16); box-shadow: 0 0 12px rgba(63, 176, 255, .3); }
.opt.locked b, .opt.locked small { opacity: .7; }
.opt-ck { position: absolute; top: -7px; right: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--pk); font-style: normal; font-size: 10px; display: grid; place-items: center; }
.opt-cost { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 4px; margin-top: 2px; font-size: 10.5px; font-weight: 800; }
.opt-cost .coin { width: 11px; height: 11px; }
.opt-cost .pc { font-size: 10.5px; }

/* ---- 组队准备：队员卡片上的准备状态 / 队员的准备按钮 ---- */
#hub .panel .pt-rd { font-style: normal; margin-top: 2px; padding: 1px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 900; letter-spacing: .08em;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .55); }
#hub .panel .pt-rd.on { background: rgba(61, 220, 132, .18); color: #5df0a0; box-shadow: 0 0 10px rgba(61, 220, 132, .25); }
#hub .panel .pt-rd.lead { background: rgba(255, 201, 60, .16); color: var(--gold); }
#hub .panel .rk-start.is-ready { background: linear-gradient(180deg, #4fe39a, #24b56c); border-color: #b9ffd9; }

/* ---- 阵亡视角定位：击杀者头顶标记（JS 用 transform 定位到屏幕坐标）；在屏幕外时贴边，箭头指向击杀者 ---- */
#killMark { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; font-family: var(--bkfont); pointer-events: none; }
#killMark i { position: absolute; left: -9px; top: -14px; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 13px solid #ff4a5e;
  filter: drop-shadow(0 0 6px rgba(255, 74, 94, .9)); animation: kmBob .8s ease-in-out infinite alternate; }
#killMark b, #killMark small { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
#killMark b { bottom: 34px; padding: 3px 10px; border-radius: 8px; background: rgba(40, 6, 14, .78); border: 1.5px solid #ff4a5e; color: #fff; font-size: 14px; font-weight: 900;
  box-shadow: 0 0 14px rgba(255, 74, 94, .45); }
#killMark small { bottom: 18px; font-size: 12px; font-weight: 900; color: #ff9aa6; }
#killMark.edge i { left: -10px; top: -10px; border: 0; width: 20px; height: 20px; background: #ff4a5e; animation: none;
  clip-path: polygon(0 15%, 100% 50%, 0 85%, 22% 50%); transform: rotate(var(--ang, 0rad)); }
#killMark.edge b { bottom: 18px; } #killMark.edge small { bottom: 2px; }
@keyframes kmBob { from { transform: translateY(-4px); } to { transform: translateY(2px); } }

/* ======================================================================
   组队 / 房间：展台上的小队铭牌（#squadTags，JS 每帧 translate 到角色头顶）
   ====================================================================== */
#squadTags { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
#hub:not(.squad) #squadTags { display: none; }
.sq-tag { position: absolute; left: 0; top: 0; pointer-events: auto; font-family: var(--bkfont); color: #fff; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: -6px; translate: -50% -100%; }
.sq-tag .sq-row { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(20, 26, 46, .9), rgba(10, 12, 26, .9)); border: 1.5px solid rgba(159, 216, 255, .35); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7); }
.sq-tag.me .sq-row { border-color: #3fb0ff; box-shadow: 0 0 14px rgba(63, 176, 255, .45), 0 6px 16px -6px rgba(0, 0, 0, .7); }
.sq-tag.team-A .sq-row { border-left: 4px solid #ff3d8b; } .sq-tag.team-B .sq-row { border-left: 4px solid #4f6bed; }
.sq-tag b { font-size: 14px; font-weight: 900; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.sq-lv { font-size: 11px; font-weight: 900; color: #ffd75a; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .45); }
.sq-tier { width: 22px; height: 22px; }
.sq-chips { display: flex; gap: 4px; }
.sq-chip { font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; padding: 1px 8px; border-radius: 99px; background: rgba(10, 14, 28, .85); color: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .12); }
.sq-chip.ok { color: #5df0a0; border-color: rgba(93, 240, 160, .5); box-shadow: 0 0 8px rgba(93, 240, 160, .3); }
.sq-chip.lead { color: #ffc93c; border-color: rgba(255, 201, 60, .5); }
.sq-chip.you { color: #9fd8ff; border-color: rgba(63, 176, 255, .5); }
.sq-kick { all: unset; cursor: pointer; position: absolute; top: -8px; right: -8px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; background: #3a1420; color: #ff8a9a; border: 1.5px solid #ff5a6e; opacity: 0; transition: opacity .15s; }
.sq-tag:hover .sq-kick { opacity: 1; }
/* 空位：组队 = 邀请好友（可点）；房间 = 等待加入 */
.sq-tag.empty { all: unset; position: absolute; left: 0; top: 0; translate: -50% -100%; margin-top: 120px; pointer-events: auto; cursor: pointer; font-family: var(--bkfont);
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 14px; min-width: 84px; border-radius: 14px; text-align: center;
  border: 2px dashed rgba(159, 216, 255, .35); background: rgba(10, 16, 34, .35); color: rgba(255, 255, 255, .7); backdrop-filter: blur(2px); }
.sq-tag.empty b { font-size: 26px; line-height: 1; color: #9fd8ff; }
.sq-tag.empty small { font-size: 12px; font-weight: 800; }
.sq-tag.empty:hover { border-color: #3fb0ff; background: rgba(63, 176, 255, .14); color: #fff; }
.sq-tag.empty.dim { cursor: default; padding: 8px 8px; min-width: 0; border-color: rgba(255, 255, 255, .15); } .sq-tag.empty.dim small { font-size: 11px; }
.sq-tag.empty.dim:hover { background: rgba(10, 16, 34, .35); border-color: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .7); }
.sq-tag.empty.team-A { border-color: rgba(255, 61, 139, .3); } .sq-tag.empty.team-B { border-color: rgba(79, 107, 237, .35); }

/* 排位页组队框：队员在展台上，这里只有队伍码 + 摘要 */
#hub .panel .pt-code { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: var(--logo); font-size: 15px; letter-spacing: .08em; padding: 3px 10px;
  border-radius: 8px; color: #ffe27a; background: rgba(0, 0, 0, .35); border: 1px dashed rgba(255, 226, 122, .5); }
#hub .panel .pt-code i { font-style: normal; font-size: 12px; opacity: .7; }
#hub .panel .pt-h .btn { margin-left: auto; }
#hub .panel .pt-sum { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
#hub .panel .pt-sum > span { display: flex; align-items: baseline; gap: 2px; font-weight: 900; color: rgba(255, 255, 255, .7); }
#hub .panel .pt-sum > span b { font-size: 22px; color: #fff; }
#hub .panel .pt-sum > span small { margin-left: 4px; font-size: 11px; color: rgba(255, 255, 255, .55); }
#hub .panel .pt-sum > span.ok b { color: #5df0a0; }
#hub .panel .pt-sum .btn { margin-left: auto; padding: 6px 12px; font-size: 13px; }
#hub .panel .pt-tip { display: block; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .55); line-height: 1.45; }
/* 房间（最多 10 人）：紧凑铭牌 */
.sq-tag.team-A .sq-row, .sq-tag.team-B .sq-row { padding: 3px 8px 3px 5px; gap: 4px; }
.sq-tag.team-A b, .sq-tag.team-B b { font-size: 12.5px; max-width: 92px; }
.sq-tag.team-A .sq-lv, .sq-tag.team-B .sq-lv { font-size: 10px; padding: 1px 4px; }

/* ======================================================================
   游戏设置（分页）：固定高度 + 顶部分页；每行「名称 / 说明」+ 右侧固定宽度的控件，全部对齐
   ====================================================================== */
#settings .st-card { width: min(660px, 100%); height: min(640px, calc(100vh - 32px)); max-height: none; overflow: hidden; display: flex; flex-direction: column; padding: 22px 26px 18px !important; }
#settings .st-card h2 { margin-bottom: 10px; }
#settings .st-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .06); }
#settings .st-tabs button { all: unset; flex: 1; text-align: center; cursor: pointer; padding: 9px 0; border-radius: 9px; font-weight: 900; font-size: 14px; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
#settings .st-tabs button:hover { color: #fff; }
#settings .st-tabs button.on { background: linear-gradient(180deg, #7ccfff, var(--pk)); color: #fff; box-shadow: 0 0 14px rgba(63, 176, 255, .4); }
#stBody { flex: 1; overflow-y: auto; margin: 10px -8px 0 0; padding-right: 8px; }
#settings .st-row { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; align-items: center; padding: 12px 2px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
#settings .st-row:last-child { border-bottom: 0; }
#settings .st-l { display: flex; flex-direction: column; gap: 3px; font-weight: 800; font-size: 15px; min-width: 0; }
#settings .st-l small { font-size: 11.5px; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .55); font-family: var(--sans); }
#settings .st-c { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
#settings .st-c input[type=range] { flex: 1; min-width: 0; accent-color: var(--pk); }
#settings .st-c output { flex: none; width: 54px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 900; color: #9fd8ff; }
#settings .st-seg { grid-column: auto; justify-self: stretch; display: flex; gap: 0; border: 2px solid #5b5068; border-radius: 10px; overflow: hidden; }
#settings .st-seg button { flex: 1; text-align: center; white-space: nowrap; padding: 8px 6px; font-size: 13px; }
#settings .st-row.wide { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
#settings .st-colors { grid-column: auto; justify-self: stretch; justify-content: flex-end; border: 0; }
#settings .st-xh-prev { height: 120px; margin: 4px 0 6px; }
#settings .st-card .row { margin-top: 14px; }
@media (max-width: 560px) {
  #settings .st-card { padding: 18px 14px 14px !important; }
  #settings .st-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #settings .st-tabs button { font-size: 12.5px; letter-spacing: .02em; }
}

/* 绑定谷歌：返回按钮（文字链接样式）/ 个人资料里的「已绑定谷歌」标记 */
.auth-alt { all: unset; cursor: pointer; display: block; margin: 10px auto 0; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .6); text-decoration: underline; }
.auth-alt:hover { color: #fff; }
.acct-g { color: #9fd8ff; font-weight: 800; }

/* ======================================================================
   自定义房间（重做）：卡片同组队框；地图网格；玩法说明。队员站在中间的 3D 霓虹房间里
   ====================================================================== */
#hub .panel .rm-card { display: grid; gap: 6px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 2px solid #18111f; background: linear-gradient(180deg, #2b3350, #1d2238); }
#hub .panel .rm-card .rm-t { font-size: 18px; font-weight: 900; color: #fff; }
#hub .panel .rm-card > small { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .62); line-height: 1.45; }
#hub .panel .rm-card .rk-start { margin-top: 6px; }
#hub .panel .rm-card.in .pt-h b { font-size: 14px; color: rgba(255, 255, 255, .7); }
#hub .panel .rm-map { margin-left: auto; }
#hub .panel .rm-map b { font-size: 15px !important; color: #9fd8ff !important; }
#hub .panel .rm-maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 4px; }
#hub .panel .rm-mapbtn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(180deg, #2a3150, #1c2137); border: 2px solid rgba(159, 216, 255, .15); color: #fff; }
#hub .panel .rm-mapbtn b { font-size: 15px; font-weight: 900; }
#hub .panel .rm-mapbtn small { font-size: 11px; font-weight: 900; color: #9fd8ff; letter-spacing: .1em; }
#hub .panel .rm-mapbtn:not(:disabled):hover { border-color: rgba(63, 176, 255, .7); }
#hub .panel .rm-mapbtn.on { border-color: #3fb0ff; background: linear-gradient(180deg, rgba(63, 176, 255, .35), rgba(28, 33, 55, .95)); box-shadow: 0 0 14px rgba(63, 176, 255, .3); }
#hub .panel .rm-mapbtn:disabled { cursor: default; }
#hub .panel .rm-mapbtn:disabled:not(.on) { opacity: .55; }
#hub .panel .rm-note { margin-left: 10px; font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .5); letter-spacing: 0; }
#hub .panel .rm-rules { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
#hub .panel .rm-rules li { position: relative; padding: 8px 12px 8px 30px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .8); line-height: 1.45; }
#hub .panel .rm-rules li::before { content: ''; position: absolute; left: 12px; top: 14px; width: 8px; height: 8px; border-radius: 2px; background: #3fb0ff; box-shadow: 0 0 8px #3fb0ff; transform: rotate(45deg); }
/* 排位页组队框：和自定义房间卡片同一套蓝色风格（两页都在 3D 霓虹房间里） */
#hub .panel .pt-box { border: 2px solid #18111f; background: linear-gradient(180deg, #2b3350, #1d2238); }
/* 房间地图选择：缩略图卡片（assets/maps/<id>/thumb.jpg），底部渐变上叠地图名 */
#hub .panel .rm-mapbtn { position: relative; aspect-ratio: 560 / 242; padding: 0; overflow: hidden; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 8, 20, .88)), var(--thumb) center / cover no-repeat, #1c2137; }
#hub .panel .rm-mapname { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; }
#hub .panel .rm-mapbtn b { text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
#hub .panel .rm-mapbtn.on { background: linear-gradient(180deg, transparent 40%, rgba(6, 8, 20, .88)), var(--thumb) center / cover no-repeat, #1c2137; }
#hub .panel .rm-mapbtn:disabled:not(.on) { opacity: .6; filter: saturate(.6); }
