:root{color-scheme:dark;--bg:#0b0b12;--panel:#12121c;--line:#2b2837;--muted:#aaa5b8;--text:#f4eff8;--gold:#e2bc7b;--blue:#81c9ff;--red:#ff8a9c}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 60% 0,#1e1625 0,transparent 47%),var(--bg);color:var(--text);font:16px/1.45 "PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;min-height:100vh}
button,input{font:inherit}
button{cursor:pointer;color:inherit}
button:disabled{cursor:default}
button:focus-visible,input:focus-visible{outline:2px solid #fff0bc;outline-offset:3px}
h1,h2,p{margin:0}
.shell{width:min(1440px,100% - 64px);margin-inline:auto}
.topbar{background:#101018dc;border-bottom:1px solid #2d2637}
.top-inner{display:flex;align-items:center;justify-content:space-between;min-height:72px;gap:12px}
.brand,.top-controls,.match-settings{display:flex;align-items:center;gap:10px}
.brand strong,.brand small{display:block;line-height:1.15}
.brand strong{font-weight:800;letter-spacing:.12em}
.brand small{color:#c2ad8b;font-size:11px;letter-spacing:.15em;margin-top:5px}
.brand-mark{width:37px;height:37px;display:grid;place-items:center;color:var(--gold);font-size:28px;background:#27202b;border:1px solid #6b563c;transform:rotate(-5deg);border-radius:8px}
.quiet,.segments button,.filter{background:#191824;border:1px solid #343040;border-radius:6px;padding:8px 12px;font-size:14px;white-space:nowrap}
.quiet:hover:not(:disabled),.filter:hover:not(:disabled),.segments button:hover:not(:disabled){border-color:#9c8261;background:#252132}
.quiet:disabled{opacity:.45}
.quiet span{color:var(--gold)}
.new{border-color:#685231}
.match-head{display:flex;justify-content:space-between;align-items:end;margin:28px 0 22px;gap:16px}
.eyebrow{font-size:13px;font-weight:700;letter-spacing:.19em;color:var(--gold);display:flex;align-items:center;gap:9px}
.eyebrow span{width:13px;height:1px;background:var(--gold)}
h1{font-size:clamp(29px,4vw,51px);font-weight:900;letter-spacing:.045em;line-height:1.12;margin-top:8px}
.segments{display:flex;background:#14131d;border:1px solid #393143;border-radius:7px;padding:3px}
.segments button{background:transparent;border-color:transparent;min-width:49px;font-weight:800;padding:5px 10px}
.segments button[aria-pressed=true]{color:#1e1521;background:var(--gold)}
.segments button:disabled:not([aria-pressed=true]){opacity:.45}
.segments button[aria-pressed=true]:hover{background:#f4ce91;color:#1e1521}
.phases{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-bottom:13px}
.phase{border-bottom:2px solid #3a3245;background:#171520;border-radius:6px 6px 0 0;text-align:center;padding:9px 5px;color:var(--muted);font-size:14px}
.phase b{font-weight:720;margin-right:6px}
.phase.active{background:linear-gradient(0deg,#342635,#201a29);border-color:var(--gold);color:#ffe3ab}
.phase.done{color:#e3cdab;border-color:#81694b}
.arena{display:grid;grid-template-columns:minmax(198px,1fr) minmax(350px,2fr) minmax(198px,1fr);gap:12px;align-items:stretch}
.team,.stage,.pool{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.team{--side:var(--blue);--tint:79,158,240;background:linear-gradient(155deg,rgba(var(--tint),.115),transparent 58%),var(--panel);padding:12px;min-width:0}
.team.red{--side:var(--red);--tint:246,82,115}
.team.turn{border-color:rgba(var(--tint),.56)}
.team-title{display:grid;grid-template-columns:49px 1fr;gap:10px;align-items:center;border-bottom:1px solid rgba(var(--tint),.22);padding-bottom:10px;min-width:0}
.team-monogram{height:45px;display:grid;place-items:center;background:rgba(var(--tint),.14);border:1px solid rgba(var(--tint),.33);color:var(--side);border-radius:5px;font:bold 14px/1 system-ui;letter-spacing:.03em}
.team-title h2{font-size:clamp(19px,2.15vw,33px);line-height:1.07;overflow-wrap:anywhere}
.team-title p{font-size:13px;color:var(--side);margin-top:4px}
.roster{display:grid;gap:5px;margin:9px 0}
.slot{width:100%;display:grid;grid-template-columns:41px 1fr auto;align-items:center;gap:7px;background:#141420;border:1px solid #282638;border-radius:5px;text-align:left;min-height:39px;padding:0 7px 0 0;overflow:hidden}
.slot.filled{background:linear-gradient(90deg,rgba(var(--tint),.09),#161520)}
button.slot:hover:not(:disabled){background:#232137;border-color:var(--side)}
.slot-img{width:40px;height:38px;display:grid;place-items:center;background:rgba(var(--tint),.09);color:var(--side);font-weight:800;overflow:hidden}
.slot-img img{width:100%;height:100%;object-fit:cover;object-position:top}
.slot-role{font-size:13px;color:var(--muted);white-space:nowrap}
.slot-name{font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.slot-empty{color:#888399;font-weight:500}
.bans{border-top:1px solid rgba(var(--tint),.17);display:flex;align-items:center;justify-content:space-between;padding-top:8px;gap:6px;color:#ddd1de;font-size:13px}
.ban-icons{display:flex;gap:5px}
.ban-icon{width:32px;height:31px;border:1px solid #48404e;background:#1c1924;overflow:hidden;border-radius:4px;display:grid;place-items:center;color:#8e8397}
.ban-icon img{width:100%;height:100%;object-fit:cover;filter:grayscale(.45)}
.team-reroll{display:block;text-align:center;color:var(--side);margin-top:7px;font-size:13px}
.stage{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:end;min-height:370px;background:#15111f;border-color:#655039;text-align:center}
.stage-art,.spotlight{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.stage-art{z-index:-2;background:radial-gradient(ellipse at 50% 6%,#624038 0,transparent 47%),linear-gradient(110deg,#172b58,#1c1628 46%,#572338)}
.frame{position:absolute;inset:10px;border:1px solid #d4ae764d;border-radius:6px}
.flank-art{position:absolute;top:1%;width:61%;height:80%;object-fit:cover;object-position:center 27%;opacity:.62;mask-image:linear-gradient(#000 55%,transparent 98%)}
.flank-art.left{left:-17%;transform:scaleX(-1);filter:saturate(.72) hue-rotate(12deg)}
.flank-art.right{right:-17%;filter:saturate(.76)}
.ring{position:absolute;top:7%;left:50%;width:min(36vw,234px);aspect-ratio:1;border:1px solid #d5ab736e;transform:translateX(-50%) rotate(45deg);box-shadow:0 0 40px #e4a65924,inset 0 0 36px #e4a65924}
.ring:before,.ring:after{content:"";position:absolute;inset:12%;border:1px solid #d5ab7340}
.ring:after{inset:28%;border-radius:100%;box-shadow:0 0 32px #e4a65938}
.stage-shade,.spotlight:after{position:absolute;inset:0;content:"";background:linear-gradient(0deg,#14111e 9%,#14111eea 24%,#14111e40 59%,transparent 86%)}
.spotlight{z-index:-1}
.spotlight:empty{display:none}
.spotlight img{width:100%;height:94%;object-fit:contain;object-position:center -12px;filter:drop-shadow(0 0 20px #080810)}
.stage-content{max-width:100%;padding:16px 12px 18px}
.turn-mark{display:inline-block;border:1px solid #b99967;color:#ffe4b6;background:#241c2cdd;border-radius:20px;font-size:13px;padding:3px 11px;margin-bottom:6px}
.turn-mark.blue-text{border-color:#69a7e3;color:#c2e1ff}
.turn-mark.red-text{border-color:#d37288;color:#ffd0d9}
.stage h2{font-size:clamp(24px,3.2vw,43px);line-height:1.1;text-shadow:0 2px 14px #08070c;margin-bottom:7px;font-weight:900}
.stage p{font-size:14px;color:#e5d7e6;min-height:21px}
.stage-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:13px}
.primary{background:linear-gradient(180deg,#f1d39a,#c89956);border:1px solid #ecc98d;color:#1c1420;border-radius:6px;padding:9px 21px;font-weight:800;font-size:15px;min-width:120px}
.primary:hover:not(:disabled){background:#ffdfa1}
.primary:disabled{opacity:.48}
.pool{margin-top:15px;background:linear-gradient(135deg,#1b1826,var(--panel) 39%);padding:15px}
.pool-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pool-head h2,.dialog-head h2{font-size:21px}
.pool-head p{color:var(--muted);font-size:14px;margin-top:2px}
.search{display:flex;align-items:center;gap:7px;border:1px solid #3d374b;border-radius:6px;background:#13121d;padding:6px 9px;color:#c9b594;max-width:43%}
.search input{background:none;border:0;color:var(--text);width:100%;min-width:0;font-size:14px}
.filters{display:flex;gap:5px;margin:11px 0;flex-wrap:wrap}
.filter{padding:5px 10px;color:#ddd6e6}
.filter[aria-pressed=true],.filter[aria-pressed=true]:hover{color:#ffe1a5;background:#322635;border-color:#8b6b45}
.hero-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:6px}
.hero{position:relative;display:grid;grid-template-rows:58px auto;justify-items:stretch;padding:0;overflow:hidden;background:linear-gradient(165deg,#35304b,#201c2a 61%);border:1px solid #3a3449;border-radius:6px;text-align:center}
.hero img{width:100%;height:100%;object-fit:contain;object-position:top;display:block}
.hero span{line-height:1.2;min-height:24px;padding:5px 1px;background:#1a1724;font-size:13px;overflow-wrap:anywhere}
button.hero:hover:not(:disabled),.hero[aria-pressed=true]{border-color:#f6cd86;background:#63465b}
.hero.banned img{filter:grayscale(1);opacity:.48}
.hero.banned:after{content:"禁用";position:absolute;top:3px;right:3px;background:#79273b;color:#ffe2e6;font-size:12px;border-radius:3px;padding:1px 4px}
.empty{grid-column:1/-1;padding:18px;color:var(--muted)}
footer{text-align:center;color:var(--muted);font-size:13px;padding:17px 0}
dialog{width:min(510px,100% - 32px);background:#191725;border:1px solid #8f6e48;color:var(--text);border-radius:10px;padding:19px}
dialog::backdrop{background:#07060dd5}
.dialog-head,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.dialog-head button{font-size:19px;padding:2px 10px}
.dialog-actions{justify-content:end;margin:17px 0 0}
#dialog-body p+p{margin-top:9px}
#dialog-body ul{padding-left:1.25em}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}
@media(max-width:970px){.shell{width:calc(100% - 36px)}.arena{grid-template-columns:minmax(155px,1fr) minmax(260px,1.65fr) minmax(155px,1fr);gap:7px}.team{padding:8px}.slot{grid-template-columns:33px 1fr auto;gap:5px}.slot-img{width:33px}.slot-role{font-size:12px}}
@media(max-width:660px){.shell{width:calc(100% - 22px)}.top-inner{min-height:58px}.top-controls{gap:4px}.quiet{font-size:13px;padding:6px 7px}.brand{gap:6px}.brand-mark{width:29px;height:29px;font-size:21px}.brand small{font-size:9px}.match-head{margin:19px 0 14px;align-items:start;flex-wrap:wrap;gap:9px}.phases{margin-bottom:8px}.phase{font-size:13px}.arena{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.stage{grid-column:1/-1;grid-row:1;min-height:255px}.ring{width:145px}.team-title{grid-template-columns:34px 1fr;gap:6px}.team-monogram{height:33px;font-size:11px}.team-title h2{font-size:18px}.stage h2{font-size:31px}.pool{padding:9px;margin-top:9px}.hero-grid{grid-template-columns:repeat(auto-fill,minmax(64px,1fr))}.hero{grid-template-rows:52px auto}.hero span{font-size:12px}}
@media(max-width:660px){.confirm-selection{position:fixed;right:13px;bottom:max(13px,env(safe-area-inset-bottom));z-index:3;box-shadow:0 3px 26px #08060bdd}.stage:has(.confirm-selection){z-index:3}}

.team{overflow:visible;--slot-shift:7px}.team.red{--slot-shift:-7px}
.slot-active,.ban-active{position:relative;z-index:2;transform:translateX(var(--slot-shift)) scale(1.025);border-color:var(--side);background:linear-gradient(100deg,rgba(var(--tint),.27),#1a1826);box-shadow:0 0 16px rgba(var(--tint),.25);animation:slot-lift .40s ease-out both}
.ban-active{transform:translateX(var(--slot-shift)) scale(1.13)}
.ban-active img{filter:none}
.ban-icon.is-banned{position:relative;border-color:#9f495a}
.ban-icon.is-banned::after{position:absolute;content:"";width:84%;height:1px;background:#ff9dae;transform:rotate(-44deg);box-shadow:0 0 3px #442332}
.slot-locked{animation:slot-seat .53s cubic-bezier(.18,.76,.31,1) both}
.hero.taken img{filter:grayscale(.7);opacity:.5}
.hero.taken::after{content:"本队已用";position:absolute;top:3px;right:3px;padding:1px 3px;border-radius:3px;background:#32304a;color:#e1d9ef;font-size:11px}
.stage[data-effect="ban-preview"] .spotlight img{animation:ban-preview 2.10s ease-in-out infinite}
.stage[data-effect="ban-preview"] .turn-mark{border-color:#ff899c;background:#391d2cf2;color:#ffdce3}
.stage[data-effect="ban"] .frame{border-color:#ff859ba6;box-shadow:inset 0 0 38px #ef667638}
.stage[data-effect="pick-lock"] .spotlight img,.stage[data-effect="ban"] .spotlight img{animation:hero-lock .68s ease-out both}
.lock-stamp{display:inline-block;margin-top:9px;padding:4px 14px;border:1px solid #ebc17c;background:#301f35;color:#ffe4b0;border-radius:4px;font-size:14px;font-weight:800;letter-spacing:.12em}
.stage[data-effect="ban"] .lock-stamp{border-color:#ff8a9c;background:#481d31;color:#ffd3dd}
.lock-token{position:fixed;z-index:20;pointer-events:none;object-fit:cover;border:1px solid var(--gold);border-radius:7px;background:#2f243a;box-shadow:0 0 23px #dfbc7e96}
.lock-token.blue-text{border-color:var(--blue);box-shadow:0 0 23px #81c9ff96}.lock-token.red-text,.lock-token-ban{border-color:var(--red);box-shadow:0 0 23px #ff8a9c96}
@keyframes slot-lift{from{transform:translateX(0) scale(1)}}
@keyframes slot-seat{from{transform:translateX(var(--slot-shift)) scale(1.06);box-shadow:0 0 18px var(--side);border-color:var(--side)}to{transform:none;box-shadow:none}}
@keyframes ban-preview{0%,100%{opacity:1;filter:drop-shadow(0 0 24px #ee758a9e)}50%{opacity:.52;filter:drop-shadow(0 0 9px #ee758a55)}}
@keyframes hero-lock{0%{filter:brightness(1.65) drop-shadow(0 0 26px #e9c382);transform:scale(1.035)}100%{filter:drop-shadow(0 0 20px #080810);transform:scale(1)}}
@media(max-width:660px){.match-settings{gap:6px;flex-wrap:wrap}.team{--slot-shift:2px}.team.red{--slot-shift:-2px}}
@media(prefers-reduced-motion:reduce){.slot-active,.ban-active,.slot-locked,.stage[data-effect] .spotlight img{animation:none!important}}

.stage[data-effect="ban-preview"]{background:#100e19;border-color:#8e4b5d}
.stage[data-effect="ban-preview"] .stage-art{visibility:hidden}

.matchup{
  --back:#101019;
  margin-top:18px;
  isolation:isolate;
  position:relative;
  overflow:hidden;
  border:1px solid #433945;
  border-radius:10px;
  background:radial-gradient(ellipse at 50% 0,#292032,transparent 58%),var(--back);
  padding:clamp(12px,2.2vw,32px);
}
.matchup-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px;border-bottom:1px solid #413749;padding-bottom:15px}
.matchup-heading p{font-size:14px;color:var(--gold);letter-spacing:.075em;font-weight:700}
.matchup-heading h2{font-size:clamp(27px,4.5vw,52px);line-height:1.08;margin-top:5px;font-weight:900}
.matchup-heading h2:focus{outline:none}
.matchup-sides{display:grid;grid-template-columns:minmax(0,1fr) clamp(48px,7vw,95px) minmax(0,1fr);align-items:center}
.matchup-team{--team-color:var(--blue);--wash:#164376;min-width:0;border:1px solid color-mix(in srgb,var(--team-color) 42%,#292335);background:linear-gradient(165deg,var(--wash),#161624 70%);padding:clamp(7px,1.25vw,16px);border-radius:7px}
.matchup-red{--team-color:var(--red);--wash:#6c2336}
.matchup-team-title{display:flex;align-items:center;gap:12px;margin:0 0 14px;color:var(--team-color)}
.matchup-team-title h3{color:var(--text);font-size:clamp(18px,2.5vw,36px);line-height:1.06;margin:0;overflow-wrap:anywhere}
.matchup-team-title p{font-size:14px;font-weight:700;margin-bottom:3px}
.matchup-monogram{border:1px solid var(--team-color);color:var(--team-color);background:#171625bf;border-radius:4px;display:grid;place-items:center;font:800 clamp(12px,1.3vw,18px)/1 system-ui;flex:0 0 clamp(35px,4vw,54px);aspect-ratio:1}
.matchup-roster,.matchup-bans ul{padding:0;margin:0;list-style:none}
.matchup-roster{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.matchup[data-size="6"] .matchup-roster{grid-template-columns:repeat(6,minmax(0,1fr))}
.matchup-card{min-width:0;display:flex;flex-direction:column;position:relative;overflow:hidden;background:linear-gradient(155deg,var(--wash),#232030 57%);border:1px solid #64536a80;border-top:2px solid var(--team-color);border-radius:4px}
.matchup-card img{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:center;display:block}
.matchup-card-info{padding:5px 3px 6px;border-top:1px solid #7460806b;background:#191725;flex:1;text-align:center}
.matchup-card-info span,.matchup-card-info strong{display:block;overflow-wrap:anywhere}
.matchup-card-info span{font-size:12px;color:var(--team-color);margin-bottom:2px}
.matchup-card-info strong{font-size:clamp(12px,1.1vw,15px);line-height:1.25}
.matchup-vs{position:relative;display:grid;place-items:center;align-self:stretch;color:var(--gold);font:900 italic clamp(22px,4vw,52px)/1 system-ui}
.matchup-vs::before{content:"";position:absolute;top:8%;bottom:8%;left:50%;border-left:1px solid #786046;transform:skewX(-10deg)}
.matchup-vs span{z-index:1;padding:8px 3px;background:#171422}
.matchup-bans{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 15px;border-top:1px solid #413749;margin-top:22px;padding-top:14px}
.matchup-bans h3{font-size:14px;color:var(--muted);margin:0}
.matchup-bans ul{display:flex;flex-wrap:wrap;justify-content:center;gap:5px}
.matchup-bans li{display:flex;align-items:center;gap:4px;padding:2px 6px 2px 2px;background:#211c2a;border:1px solid #724153;border-radius:4px;font-size:13px;color:#e7d6e4}
.matchup-bans img{width:25px;height:25px;object-fit:cover;filter:grayscale(.65)}
@media(max-width:850px){
  .matchup-sides{grid-template-columns:minmax(0,1fr)}
  .matchup-vs{min-height:44px;font-size:26px}
  .matchup-vs::before{inset:50% 0 auto;border-left:0;border-top:1px solid #786046}
  .matchup-card img{aspect-ratio:1;object-fit:contain}
}
@media(max-width:440px){
  .matchup[data-size="6"] .matchup-roster{grid-template-columns:repeat(3,minmax(0,1fr))}
  .matchup[data-size="5"] .matchup-card-info span{font-size:11px}
  .matchup-bans{margin-top:14px}
}

.online-button{border-color:#786144;color:#f5d394}
.online-notice{padding:8px 13px;margin:0 0 9px;border:1px solid #675237;border-radius:5px;background:#261e2b;color:#f2d6aa;font-size:14px}
#online-dialog p{margin:0 0 12px;color:#ded4e6}
#online-dialog #online-status{color:#f0cd91;font-weight:700}
#online-status:empty{display:none}
#online-dialog label{display:block;margin:12px 0 4px;color:#eee1f1;font-size:14px}
.online-line{display:flex;gap:7px;margin-bottom:8px}
.online-line input{flex:1;min-width:0;background:#100f19;color:var(--text);border:1px solid #595066;border-radius:5px;padding:7px 8px;font-size:14px}
#online-session{margin-top:8px}
@media(max-width:410px){.brand small{display:none}.top-controls{flex-wrap:wrap;justify-content:end}.top-inner{gap:4px}.topbar .quiet{padding:5px;font-size:12px}}
.online-name{width:100%;color:var(--text);background:#100f19;border:1px solid #595066;border-radius:5px;padding:7px 8px;margin:0 0 10px}
.invite-seats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.invite-seats section{display:grid;align-content:start;gap:5px;min-width:0}
.invite-seats h3{font-size:15px;margin:0}
.invite-seats section:first-child h3{color:var(--blue)}
.invite-seats section:last-child h3{color:var(--red)}
.invite-seats .quiet{white-space:normal;overflow-wrap:anywhere;padding:5px 7px;text-align:left}
.invite-seats section span{padding:5px 7px;color:var(--muted);font-size:14px}
.slot-identity{min-width:0;display:grid}
.slot-identity small,.matchup-card-info small{color:#ccc0d1;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.matchup-card-info small{font-size:12px;white-space:normal;overflow-wrap:anywhere;line-height:1.3;display:block;margin-top:3px}

.phases{grid-template-columns:repeat(4,1fr)}
.matchup-pick{display:flex;flex-direction:column;height:100%;width:100%;background:none;border:0;padding:0;text-align:center;color:inherit}
.matchup-pick .matchup-card-info{width:100%}
.matchup-pick:hover:not(:disabled),.matchup-pick[aria-pressed=true],.matchup-pick.swap-marked{box-shadow:inset 0 0 0 2px var(--team-color);background:#ffffff1e}
.matchup-pick.matchup-changed{animation:match-fresh .75s ease-out}
.exchange-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;border-top:1px solid #7460806b;margin-top:11px;padding-top:8px}
.exchange-actions p{color:#f4d8a1;font-size:14px;margin:0 auto 0 0}
.exchange-actions button:disabled{opacity:.42}
.match-change-note{font-size:14px;margin:10px 0 0;color:#f2d6aa}
@keyframes match-fresh{from{background:#e2bc7b80}to{background:transparent}}
@media(prefers-reduced-motion:reduce){.matchup-pick.matchup-changed{animation:none}}
.lobby-player{display:flex;align-items:center;justify-content:space-between;min-width:0;gap:6px;padding:3px 5px;border:1px solid #43384c;border-radius:4px}
.lobby-player span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.lobby-player button{padding:3px 6px}

.phases{grid-template-columns:repeat(6,minmax(0,1fr))}
.lobby-roster,.map-board{margin:0 0 12px;padding:12px 15px;border:1px solid #45374b;border-radius:8px;background:#181622}
.lobby-roster h2,.map-board h2{font-size:16px;color:#f1d49d}
.lobby-roster h2 span{margin-left:5px;color:#c6bad0;font-size:14px;font-weight:600}
.lobby-roster ul,.map-board ol{margin:8px 0 0;padding:0;list-style:none}
.lobby-roster ul{display:flex;flex-wrap:wrap;gap:6px}
.lobby-roster li{max-width:100%;overflow-wrap:anywhere;background:#242031;border:1px solid #534563;padding:4px 9px;border-radius:5px;font-size:14px}
.map-board ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.map-board li{min-width:0;display:grid;gap:3px;background:#222033;border:1px solid #51445b;border-radius:5px;padding:7px 9px}
.map-board li.map-active{border-color:var(--gold);box-shadow:inset 0 0 12px #ca9d5140}
.map-board li span{color:#d2c3dc;font-size:13px}
.map-board li .map-game{color:var(--gold);font-weight:700}
.map-board li strong{color:#f6effa;overflow-wrap:anywhere}
.series-header,.next-map{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
.series-header p,.next-map p{color:var(--muted);font-size:14px}
.series-score{display:flex;align-items:center;gap:10px;padding:4px 12px;background:#11131e;border:1px solid #51445b;border-radius:5px;font-weight:800;font-variant-numeric:tabular-nums}
.series-score span:not([aria-hidden]){display:flex;align-items:center;gap:8px}
.series-score .blue-text{color:var(--blue)}
.series-score .red-text{color:var(--red)}
.series-score strong{font-size:24px;line-height:1.2}
.map-board li .map-status{margin-top:3px;font-weight:700}
.map-board li .map-status.blue-text{color:var(--blue)}
.map-board li .map-status.red-text{color:var(--red)}
.series-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.next-map{background:#242030;border:1px solid #67506a;border-radius:5px;margin:0 0 14px;padding:8px 12px}
.next-map strong{color:var(--text)}
.team-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}
.team-picker label,.score-picker{display:grid;gap:6px;color:var(--muted);font-size:14px}
.team-picker select,.score-picker select{width:100%;padding:8px;background:#191824;border:1px solid #51445b;border-radius:5px;color:var(--text);font:inherit}
.strong-team-settings{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;color:var(--gold);font-size:14px}
.strong-team-badge{display:inline-block;margin-top:5px;padding:1px 6px;border:1px solid #8f7048;border-radius:4px;background:#312437;color:#ffe1ad;font-size:12px;font-weight:750;white-space:nowrap}
@media(max-width:650px){.phases{grid-template-columns:repeat(3,minmax(0,1fr))}.map-board ol{grid-template-columns:repeat(3,minmax(0,1fr))}}

.map-attack{font-size:12px;font-weight:750}
.map-attack.blue-text,.match-own-hero.blue-text{color:var(--blue)}
.map-attack.red-text,.match-own-hero.red-text{color:var(--red)}
body:has(.matchup-live:not([hidden])) .map-board{margin-top:22px}
.matchup-live{background:#10121b;padding:clamp(10px,1.5vw,23px);margin-top:12px}
.matchup-live .matchup-heading{margin-bottom:12px;padding-bottom:10px}
.matchup-live .matchup-heading h2{font-size:clamp(22px,2.7vw,37px)}
.matchup-live .matchup-sides{align-items:start;grid-template-columns:minmax(0,1fr) clamp(43px,6vw,80px) minmax(0,1fr)}
.matchup-live .matchup-team{padding:0;border:0;border-radius:0;background:none}
.matchup-live .matchup-team-title{min-height:92px;margin:0 0 12px;padding:12px 36px 12px 15px;border-top:4px solid var(--team-color);background:#153955;clip-path:polygon(0 0,100% 0,95% 100%,0 100%)}
.matchup-live .matchup-red .matchup-team-title{flex-direction:row-reverse;text-align:right;padding:12px 15px 12px 36px;background:#532737;clip-path:polygon(0 0,100% 0,100% 100%,5% 100%)}
.matchup-live .matchup-team-title h3{font-size:clamp(22px,3vw,40px)}
.matchup-live .matchup-vs{height:92px;align-self:start}
.matchup-live .matchup-vs::before{display:none}
.matchup-live .matchup-vs span{background:none}
.matchup-live .matchup-card{border:1px solid #42506a;background:#192536}
.matchup-live .matchup-red .matchup-card{background:#302131}
.matchup-live .matchup-card.matchup-mine{border-color:var(--team-color);box-shadow:0 0 0 1px var(--team-color)}
.matchup-live .matchup-card img{aspect-ratio:1.12;object-fit:cover}
.matchup-live .matchup-card-info{text-align:left;padding:5px 6px 9px;background:#151b28;border-top:2px solid var(--team-color)}
.matchup-live .matchup-card-info .matchup-player,.matchup-live .matchup-card-info .matchup-hero{display:flex;align-items:baseline;justify-content:space-between;gap:4px;margin:0}
.matchup-live .matchup-player strong{color:var(--text);font-size:clamp(13px,1.3vw,19px)}
.matchup-live .matchup-hero{padding-top:4px}
.matchup-live .matchup-hero strong{font-size:clamp(12px,1.1vw,16px)}
.matchup-live .matchup-hero span{color:var(--muted);font-size:12px;white-space:nowrap}
.match-own-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.48fr);align-items:center;gap:18px;max-width:860px;margin:18px auto 0;padding:13px 16px;border:1px solid #4b576a;border-radius:7px;background:#1a2130}
.match-own-summary,.match-own-actions{display:flex;align-items:center;gap:12px}
.match-own-summary>div{min-width:0;overflow-wrap:anywhere}
.match-own-summary strong{display:block;font-size:24px;color:var(--text)}
.match-own-summary p{font-size:14px;color:var(--muted)}
.match-own-portrait{width:68px;height:68px;flex:none;display:block;padding:0;overflow:hidden;border:1px solid currentColor;color:inherit;background:#26354d;border-radius:5px}
.match-own-portrait img{width:100%;height:100%;object-fit:cover}
.match-own-actions{border-left:1px solid #3c4558;padding-left:17px}
.match-own-actions button{flex:1;min-width:0;padding:10px 7px}
.match-change-note{text-align:center}
.match-replacement-label{display:grid;gap:5px;margin-top:12px}
.match-replacement-label select{font:inherit;color:var(--text);padding:8px;background:#15141f;border:1px solid #5f5266;border-radius:5px}
@media(max-width:850px){
  .matchup-live .matchup-sides{grid-template-columns:minmax(0,1fr)}
  .matchup-live .matchup-vs{height:46px}
  .matchup-live .matchup-team-title{min-height:64px;padding-block:6px}
}
@media(max-width:560px){
  .match-own-hero{grid-template-columns:1fr;gap:10px}
  .match-own-actions{border:0;padding-left:0}
  .matchup-live .matchup-roster,.matchup-live[data-size="6"] .matchup-roster{grid-template-columns:repeat(3,minmax(0,1fr))}
}

.music-controls,.music-volume{display:flex;align-items:center;gap:6px}
.music-volume input{width:clamp(52px,8vw,106px);margin:0;accent-color:var(--gold)}
.music-volume output{min-width:34px;text-align:right;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
@media(max-width:540px){.top-controls{justify-content:flex-end;flex-wrap:wrap}}
