/* 1v1 对战大厅：白底、蓝青强调的简约视觉。只改变视觉层，不改变匹配脚本使用的 ID。 */
.battle-page{--battle-bg:#f5f8fa;--battle-panel:#fff;--battle-line:#e3ebef;--battle-ink:#172438;--battle-muted:#78899c;--battle-accent:#13b8cf;--battle-accent-soft:#e9f9fb;--battle-green:#12b992;--battle-red:#e86672;background:radial-gradient(circle at 50% -18%,#fff 0,rgba(255,255,255,.72) 28%,transparent 60%),var(--battle-bg);color:var(--battle-ink)}
.battle-page .nav-bar{background:#fff;box-shadow:0 4px 20px rgba(27,63,86,.06)}
.battle-page .page-shell{width:min(1220px,calc(100% - 44px));padding:31px 0 65px}
.battle-shell{display:grid;gap:20px;position:relative}
.battle-hero{display:flex;align-items:center;justify-content:space-between;min-height:136px;padding:12px 30px 9px}.battle-hero .eyebrow{display:block;margin:0 0 8px;color:#8ca5ba;font-size:10px;letter-spacing:.38em}.battle-hero h1{margin:0;color:var(--battle-ink);font-size:36px;line-height:1;letter-spacing:-1.5px}.battle-hero p{margin:9px 0 0;color:#8496a8;font-size:12px}.battle-hero-side{display:flex;align-items:center;gap:13px}.battle-hero-mark{width:56px;height:56px;padding:14px;border:1px solid #cfeef2;border-radius:18px;color:var(--battle-accent);background:rgba(255,255,255,.72);box-shadow:0 8px 20px rgba(27,122,142,.08)}.battle-hero-rating{min-width:260px;min-height:104px;padding:16px 20px 14px;border:1px solid #d9e9ee;border-radius:16px;background:rgba(255,255,255,.88);box-shadow:0 9px 24px rgba(27,122,142,.07)}.battle-hero-rating-main{display:flex;align-items:baseline;justify-content:space-between;gap:20px}.battle-hero-rating-main span{color:#8fa2b1;font-size:11px}.battle-hero-rating-main strong{color:var(--battle-ink);font-size:36px;line-height:1;font-variant-numeric:tabular-nums}.battle-hero-record{display:flex;gap:20px;margin-top:12px;color:#8fa2b1;font-size:11px}.battle-hero-record b{margin-left:4px;color:var(--battle-ink);font-size:15px}.battle-hero-record span:first-child b{color:var(--battle-green)}.battle-hero-record span:nth-child(2) b{color:var(--battle-red)}.battle-hero-rating>small{display:block;margin-top:9px;overflow:hidden;color:#91a2af;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.battle-shell .page-hero{max-width:none;margin:0;padding:25px 20px 27px;text-align:center}
.battle-shell .eyebrow{margin:0 0 10px;color:#86a0b8;font-size:11px;letter-spacing:.42em}
.battle-shell .page-hero h1{margin:0;color:var(--battle-ink);font-size:clamp(38px,4.2vw,56px);font-weight:850;letter-spacing:-2.2px;line-height:1}
.battle-shell .page-hero h1:after{content:" · 与全球玩家实时对战，提升你的瞄准能力";display:block;margin-top:12px;color:#8b9bae;font-size:13px;letter-spacing:.03em;font-weight:500}
.battle-layout{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(320px,.82fr);gap:18px;align-items:stretch}
.battle-page .card{border:1px solid var(--battle-line);border-radius:14px;background:var(--battle-panel);box-shadow:0 5px 18px rgba(28,66,91,.045)}
.battle-lobby{padding:31px 30px 27px}
.battle-lobby-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.battle-lobby-head strong{display:block;color:var(--battle-ink);font-size:25px;letter-spacing:-.6px}
.battle-lobby-head small{display:block;margin-top:6px;color:var(--battle-muted);font-size:11px}
.battle-identity{padding:7px 12px;border:1px solid #cdeff2;border-radius:999px;background:#f1fbfc;color:#0795aa;font-size:10px;font-weight:750;white-space:nowrap}
.battle-lobby{position:relative}
.battle-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:2px 0 20px}.battle-rule{display:flex;align-items:center;gap:12px;min-height:72px;padding:13px 16px;border-radius:11px;background:#f7fafc}.battle-rule i{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#e5f8fb;color:var(--battle-accent);font-size:23px;font-style:normal}.battle-rule b{display:block;color:#2b3b50;font-size:13px}.battle-rule small{display:block;margin-top:5px;color:#8d9baa;font-size:9px}
.battle-mode-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.battle-mode-head strong{font-size:14px;color:var(--battle-ink)}.battle-mode-head small{color:#9aa8b5;font-size:9px}
.battle-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:0}
.battle-preference-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:20px 0 10px;color:var(--battle-ink)}.battle-preference-head strong{font-size:14px}.battle-preference-head small{color:var(--battle-muted);font-size:10px}.battle-size-modes{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.battle-size-modes .battle-chip{min-height:63px;padding:12px 9px;text-align:center}.battle-size-modes .battle-chip>span,.battle-size-modes .battle-chip>small{display:block}.battle-size-modes .battle-chip>small{margin-top:6px}
.battle-chip{position:relative;min-height:73px;padding:13px 11px 10px 43px;border:1px solid #dce5ea;border-radius:11px;background:#fff;color:#25334a;text-align:left;font-size:13px;font-weight:750;cursor:pointer;transition:border-color .18s ease,background-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
.battle-chip:before{content:"◎";position:absolute;left:14px;top:17px;color:#6f91a8;font-size:23px;line-height:1;font-weight:400}.battle-chip:after{display:block;margin-top:6px;color:#8899aa;font-size:9px;font-weight:500;white-space:nowrap}
.battle-chip:nth-child(1):before{content:"•••";font-size:19px;letter-spacing:-2px}.battle-chip:nth-child(1):after{content:"快速击中连续出现的三个目标"}
.battle-chip:nth-child(2):before{content:"ϟ";font-size:27px}.battle-chip:nth-child(2):after{content:"考验你的反应速度"}
.battle-chip:nth-child(3):before{content:"⇆";font-size:23px}.battle-chip:nth-child(3):after{content:"跟踪移动中的目标"}
.battle-chip:nth-child(4):before{content:"⌾"}.battle-chip:nth-child(4):after{content:"提升细节瞄准能力"}
.battle-chip:nth-child(5):before{content:"▥";font-size:21px}.battle-chip:nth-child(5):after{content:"持续跟踪移动目标"}
.battle-chip:nth-child(6):before{content:"▦";font-size:22px}.battle-chip:nth-child(6):after{content:"在六个点位间快速切换"}
.battle-chip:hover{border-color:#9ddfe7;transform:translateY(-1px);box-shadow:0 8px 16px rgba(29,101,124,.08)}
.battle-chip.active{border-color:var(--battle-accent);background:var(--battle-accent-soft);box-shadow:0 0 0 1px rgba(19,184,207,.07);color:#087f91}.battle-chip.active:before{color:var(--battle-accent)}.battle-chip.active:after{color:#6d98a6}
.battle-chip:before,.battle-chip:after{display:none}.battle-mode-icon{position:absolute;left:13px;top:16px;width:23px;height:23px;fill:none;stroke:#6f91a8;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.battle-chip.active .battle-mode-icon{stroke:var(--battle-accent)}.battle-chip>span{display:block;color:inherit;font-size:13px;line-height:1.2}.battle-chip>small{display:block;margin-top:6px;color:#8899aa;font-size:9px;font-weight:500;line-height:1.2;white-space:nowrap}.battle-chip.active>small{color:#6d98a6}.battle-chip.active:after{content:"✓";position:absolute;right:11px;top:10px;display:grid;width:17px;height:17px;place-items:center;border-radius:50%;background:var(--battle-accent);color:#fff;font-size:10px;font-weight:800}
.battle-lobby-tools{display:flex;justify-content:flex-end;gap:8px;margin:13px 0 18px}
.battle-mini{height:31px;padding:0 13px;border:1px solid #dce5ea;border-radius:8px;background:#fff;color:#68798b;font-size:10px;cursor:pointer;transition:border-color .18s ease,color .18s ease,transform .18s ease}.battle-mini:hover{border-color:var(--battle-accent);color:#078fa3;transform:translateY(-1px)}
.battle-stage{display:grid;justify-items:center;gap:10px;padding:6px 0 1px}.battle-primary{width:100%;height:54px;border:0;border-radius:10px;background:var(--battle-accent);color:#fff;font-size:14px;font-weight:800;letter-spacing:.1em;cursor:pointer;box-shadow:0 9px 20px rgba(19,184,207,.2);transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease}.battle-primary:hover{transform:translateY(-1px);background:#0fa9be;box-shadow:0 13px 25px rgba(19,184,207,.25)}.battle-primary:disabled{opacity:.55;transform:none;box-shadow:none;cursor:default}.battle-status{display:block;margin-top:1px;color:#94a2b0;font-size:10px;text-align:center}.battle-stage p{margin:0;color:#8799aa;font-size:10px}
.battle-wait{position:relative;display:grid;place-items:center;width:82px;height:82px}.battle-wait-ring{position:absolute;inset:0;border-radius:50%;border:2px solid #dff4f7;border-top-color:var(--battle-accent);animation:battle-spin 1s linear infinite}.battle-wait strong{font-size:18px;font-variant-numeric:tabular-nums;color:var(--battle-ink)}@keyframes battle-spin{to{transform:rotate(360deg)}}
.battle-side{display:grid;gap:18px;align-items:stretch}.battle-side-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.battle-side-head strong{display:block;color:var(--battle-ink);font-size:18px;letter-spacing:-.35px}.battle-side-head small{display:block;margin-top:5px;color:#96a3b0;font-size:10px}
.battle-rating{min-height:310px;padding:29px 25px 24px}.battle-rating-value{display:flex;align-items:baseline;gap:9px;padding:9px 0 17px;border-bottom:1px solid #edf1f3}.battle-rating-value strong{font-size:62px;line-height:1;letter-spacing:-3px;color:var(--battle-ink);font-variant-numeric:tabular-nums}.battle-rating-record{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:0;padding-top:17px;color:#8798aa;font-size:10px;text-align:center}.battle-rating-record span+span{border-left:1px solid #edf1f3}.battle-rating-record b{display:block;margin-top:6px;color:var(--battle-ink);font-size:21px;font-variant-numeric:tabular-nums}.battle-rating-record span:first-child b{color:var(--battle-green)}.battle-rating-record span:nth-child(2) b{color:var(--battle-red)}.battle-rating-note{margin:18px 0 0;color:#98a5b1;font-size:10px}
.battle-history{height:100%;min-height:0;padding:25px 25px 21px;display:flex;flex-direction:column}.battle-history-list{min-height:0;flex:1;margin:0;padding:0 5px 0 0;list-style:none;display:grid;align-content:start;gap:0;overflow-y:auto;scroll-behavior:smooth;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b9dfe6 transparent}.battle-history-list::-webkit-scrollbar{width:5px}.battle-history-list::-webkit-scrollbar-thumb{border-radius:10px;background:#b9dfe6}.battle-history-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;padding:12px 0;border-top:1px solid #edf1f3;background:transparent}.battle-history-outcome{width:30px;height:30px;display:grid;place-items:center;border-radius:7px;background:#e5f8fb;color:#089eb7;font-size:11px;font-weight:850;text-align:center}.battle-history-row.loss .battle-history-outcome{background:#fff0f0;color:var(--battle-red)}.battle-history-body{min-width:0}.battle-history-body strong{display:block;overflow:hidden;color:#34445a;font-size:12px;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}.battle-history-body small{display:block;margin-top:4px;overflow:hidden;color:#99a6b2;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.battle-history-delta{font-size:12px;font-weight:800;color:#91a0ad;font-variant-numeric:tabular-nums}.battle-history-delta.up{color:var(--battle-green)}.battle-history-delta.down{color:var(--battle-red)}.battle-history-empty{display:grid;place-items:center;min-height:130px;padding:16px 0;color:#9aa6b2;font-size:10px;text-align:center}
.battle-page .site-footer{width:min(1220px,calc(100% - 44px));border-top-color:#e1e8ec;color:#8c9aa7}.battle-page .site-footer a:hover{color:#078fa3}

/* 找到对手后的全屏 VS 动画，保持原有的名称、段位分和胜率字段。 */
.battle-matchup{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;width:min(100%,430px);padding:4px 0 8px}.battle-matchup-player{display:grid;gap:5px;min-width:0;padding:14px 12px;border:1px solid #cdeff2;border-radius:14px;background:linear-gradient(145deg,#fbffff,#eef9fb);box-shadow:0 8px 20px rgba(35,76,84,.08);opacity:0;transform:translateX(-22px) scale(.96);animation:battle-player-in .45s cubic-bezier(.2,.8,.2,1) forwards}.battle-matchup-player.is-opponent{transform:translateX(22px) scale(.96);animation-delay:.1s;text-align:right;background:linear-gradient(215deg,#fffdf9,#fff3e8);border-color:#f0dfcf}.battle-matchup-player small{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#7e9298}.battle-matchup-player strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;color:#25343a}.battle-matchup-player span{font-size:11px;color:#789096;font-variant-numeric:tabular-nums}.battle-matchup-vs{display:grid;justify-items:center;gap:6px;color:var(--battle-accent);opacity:0;animation:battle-vs-in .35s .2s ease-out forwards}.battle-matchup-vs b{font-size:15px;letter-spacing:.12em;text-shadow:0 0 18px rgba(39,164,177,.32)}.battle-matchup-vs i{display:block;width:24px;height:1px;background:linear-gradient(90deg,transparent,var(--battle-accent));transform:scaleX(0);animation:battle-line-in .3s .35s ease-out forwards}.battle-matchup-vs i:last-child{background:linear-gradient(90deg,var(--battle-accent),transparent)}
@keyframes battle-player-in{to{opacity:1;transform:translateX(0) scale(1)}}@keyframes battle-vs-in{to{opacity:1;transform:scale(1.08)}}@keyframes battle-line-in{to{transform:scaleX(1)}}
.battle-page.battle-match-found{overflow:hidden}.battle-page.battle-match-found #battleMatched{position:fixed;inset:0;z-index:1000;display:grid;align-content:center;justify-items:center;gap:22px;min-height:100vh;padding:clamp(28px,8vw,96px);background:radial-gradient(circle at 50% 44%,rgba(238,252,253,.99),rgba(247,251,252,.99) 50%,rgba(228,242,245,.99));animation:battle-page-in .35s ease-out both}.battle-page.battle-match-found #battleMatched:before,.battle-page.battle-match-found #battleMatched:after{content:"";position:absolute;inset:10%;border:1px solid rgba(66,174,185,.16);border-radius:50%;transform:scale(.7);animation:battle-orbit 2.4s ease-out infinite}.battle-page.battle-match-found #battleMatched:after{inset:22%;border-color:rgba(239,167,91,.18);animation-delay:.35s}.battle-page.battle-match-found #battleMatched>*{position:relative;z-index:1}.battle-page.battle-match-found .battle-matchup{width:min(900px,90vw);grid-template-columns:minmax(180px,1fr) minmax(90px,160px) minmax(180px,1fr);gap:clamp(20px,5vw,72px)}.battle-page.battle-match-found .battle-matchup-player{min-height:150px;align-content:center;padding:28px 30px;border-radius:20px;box-shadow:0 20px 50px rgba(35,76,84,.13)}.battle-page.battle-match-found .battle-matchup-player strong{font-size:clamp(22px,4vw,40px)}.battle-page.battle-match-found .battle-matchup-player span{font-size:clamp(12px,1.6vw,15px)}.battle-page.battle-match-found .battle-matchup-player small{font-size:12px}.battle-page.battle-match-found .battle-matchup-vs b{font-size:clamp(23px,4vw,42px)}.battle-page.battle-match-found .battle-matchup-vs i{width:clamp(38px,7vw,80px)}.battle-page.battle-match-found #battleMatchedNote{font-size:clamp(13px,1.8vw,17px);color:#6e858c}@keyframes battle-page-in{from{opacity:0}to{opacity:1}}@keyframes battle-orbit{0%{opacity:0;transform:scale(.7) rotate(0)}35%{opacity:1}100%{opacity:0;transform:scale(1.15) rotate(20deg)}}
.hidden{display:none!important}
@media(max-width:900px){.battle-layout{grid-template-columns:minmax(0,1fr)}.battle-lobby{min-height:0}.battle-history{height:312px}}
@media(max-width:640px){.battle-page .page-shell{width:calc(100% - 24px);padding-top:18px}.battle-page .site-footer{width:calc(100% - 24px)}.battle-hero{min-height:116px;padding:6px 7px 4px}.battle-hero h1{font-size:30px}.battle-hero p{font-size:10px}.battle-hero-side{gap:8px}.battle-hero-mark{width:49px;height:49px;padding:12px;border-radius:15px}.battle-hero-rating{min-width:190px;min-height:86px;padding:12px 14px}.battle-hero-rating-main{gap:12px}.battle-hero-rating-main span{font-size:9px}.battle-hero-rating-main strong{font-size:28px}.battle-hero-record{gap:12px;margin-top:9px;font-size:9px}.battle-hero-record b{margin-left:2px;font-size:12px}.battle-hero-rating>small{margin-top:7px;font-size:9px}.battle-lobby,.battle-rating,.battle-history{padding:20px 17px}.battle-lobby-head strong{font-size:22px}.battle-rules{grid-template-columns:1fr;gap:8px}.battle-rule{min-height:60px}.battle-rule i{width:34px;height:34px;font-size:19px}.battle-history{height:280px}.battle-modes{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.battle-size-modes{grid-template-columns:repeat(2,minmax(0,1fr))}.battle-chip{min-height:68px;padding-left:37px;font-size:11px}.battle-size-modes .battle-chip{padding-left:9px}.battle-chip:before{left:11px;top:16px;font-size:20px}.battle-chip:after{font-size:8px}.battle-page.battle-match-found .battle-matchup{grid-template-columns:1fr;gap:12px;width:min(360px,86vw)}.battle-page.battle-match-found .battle-matchup-player{min-height:auto;padding:18px 20px;text-align:center}.battle-matchup-player.is-opponent{text-align:center}.battle-page.battle-match-found .battle-matchup-vs{grid-template-columns:1fr auto 1fr;align-items:center;width:120px}.battle-page.battle-match-found .battle-matchup-vs i{width:36px}}
