:root{--bg: #0f1117;--surface: #1a1d27;--surface-2: #242836;--border: #2e3345;--text: #e8eaef;--text-muted: #8b92a8;--accent: #6c8cff;--accent-hover: #8aa4ff;--team1: #5b9fd4;--team2: #d47a5b;--win: #4ade80;--loss: #f87171;--radius: 12px;--shadow: 0 8px 32px rgba(0, 0, 0, .35);--team-max-rows: 5;--cell-min-h: 2.15rem;--team-row-gap: .5rem;--roulette-panel-height: 28rem}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:Segoe UI,system-ui,-apple-system,sans-serif;background:radial-gradient(ellipse 80% 50% at 50% -20%,rgba(108,140,255,.15),transparent),var(--bg);color:var(--text);line-height:1.5}.page{width:100%;height:100vh;max-width:none;margin:0 auto;padding:1.25rem clamp(1.25rem,2.5vw,3rem) 1.5rem;display:flex;flex-direction:column;gap:1rem;overflow:hidden}.layout-main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,43rem) minmax(0,1fr);gap:1.25rem;align-items:stretch;overflow:hidden}.layout-right{display:grid;grid-template-rows:auto minmax(0,1fr);gap:1rem;min-width:0;min-height:0;height:100%;overflow:hidden}.layout-right-rest{display:flex;flex-direction:column;gap:1rem;min-height:0;height:100%;overflow:hidden}.leaderboard{display:flex;flex-direction:column;height:100%;max-height:100%;min-height:0;min-width:0;overflow:hidden}.leaderboard-body{flex:1;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.leaderboard-list:not(.hidden){display:block}.board-tabs{display:flex;gap:.35rem;margin-bottom:.85rem;padding:.25rem;background:var(--surface-2);border-radius:10px;flex-shrink:0}.board-tab{flex:1;padding:.45rem .75rem;border:none;border-radius:8px;background:transparent;color:var(--text-muted);font-size:.9rem;font-weight:600;cursor:pointer;transition:background .15s,color .15s}.board-tab:hover{color:var(--text)}.board-tab.active{background:var(--surface);color:var(--text);box-shadow:0 1px 4px #0003}.board-sub-tabs{display:flex;gap:.3rem;margin-bottom:.65rem;padding:.2rem;background:#00000026;border-radius:8px;flex-shrink:0}.board-sub-tab{flex:1;padding:.35rem .6rem;border:none;border-radius:6px;background:transparent;color:var(--text-muted);font-size:.82rem;font-weight:600;cursor:pointer;transition:background .15s,color .15s}.board-sub-tab:hover{color:var(--text)}.board-sub-tab.active{background:var(--surface-2);color:var(--text)}.board-panel{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}.board-panel.hidden{display:none}.btn-small{padding:.35rem .65rem;font-size:.8rem}.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}.team-header-main{display:flex;flex-direction:column;gap:.35rem;min-width:0}.tourney-team-select{max-width:100%;padding:.3rem .5rem;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);color:var(--text);font-size:.8rem}.team-roster-section{margin-top:1rem}.team-roster-section h3{margin:0 0 .65rem;font-size:.95rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.team-roster-list{list-style:none;margin:0 0 .75rem;padding:0;display:flex;flex-direction:column;gap:.4rem;max-height:180px;overflow-y:auto}.team-roster-item{display:flex;align-items:center;gap:.55rem;padding:.45rem .55rem;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);cursor:pointer;transition:border-color .15s,background .15s}.team-roster-item:hover{border-color:var(--accent);background:#6c8cff14}.team-roster-item:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.team-roster-name{flex:1;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-roster-rating{color:var(--text-muted);font-size:.85rem}.team-roster-remove{border:none;background:transparent;color:var(--text-muted);font-size:1.1rem;line-height:1;cursor:pointer;padding:.15rem .35rem;border-radius:4px}.team-roster-remove:hover{color:var(--loss);background:#f871711a}.team-roster-add{display:flex;gap:.5rem;margin-bottom:.35rem}.team-roster-add input{flex:1;min-width:0;padding:.45rem .6rem;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);color:var(--text)}.team-roster-hint{margin:0;font-size:.8rem;color:var(--text-muted)}.team-roster-empty{margin:0 0 .75rem;color:var(--text-muted);font-size:.9rem}.leaderboard-record,.leaderboard-roster{color:var(--text-muted);font-size:.85rem}.team-match-history-table .match-history-header,.team-match-history-table .match-history-item{grid-template-columns:minmax(3.5rem,.75fr) 3.25rem 3.25rem 2.25rem minmax(0,1.15fr) 6.75rem;min-width:26rem}.match-history-opponent{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.create-team-form{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1rem}.create-team-label{font-size:.85rem;color:var(--text-muted)}.create-team-input{padding:.5rem .65rem;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);color:var(--text);margin-bottom:.5rem}.create-team-player-select{flex:1;min-width:0;padding:.45rem .6rem;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);color:var(--text)}.create-team-player-select:focus{outline:2px solid var(--accent);outline-offset:1px}.create-team-roster-item{cursor:default}.create-team-roster-item:hover{border-color:var(--border);background:var(--surface-2)}.import-modal.create-tournament-modal{width:min(94vw,40rem);max-height:min(92vh,52rem)}.tournament-picker{display:flex;align-items:center;gap:.75rem;margin-bottom:.65rem;flex-wrap:wrap;flex-shrink:0}.tournament-select{flex:1;min-width:10rem;padding:.45rem .6rem;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);color:var(--text);font-size:.9rem}.tournament-team-pick-list{list-style:none;margin:0 0 .5rem;padding:0;display:flex;flex-direction:column;gap:.4rem;max-height:min(32vh,280px);overflow-y:auto}.tournament-team-pick-item{display:flex;align-items:center;gap:.55rem;padding:.45rem .55rem;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);cursor:pointer;transition:border-color .15s,background .15s}.tournament-team-pick-item:hover,.tournament-team-pick-item.is-selected{border-color:var(--accent);background:#6c8cff14}.tournament-team-pick-item input{flex-shrink:0}.tournament-team-pick-meta{margin-left:auto;color:var(--text-muted);font-size:.82rem}.team-profile-modal{width:min(98vw,80rem);max-width:none;height:min(96vh,72rem);max-height:96vh;grid-template-rows:auto auto minmax(0,1fr) minmax(0,1.5fr) auto!important}.team-profile-modal .team-profile-achievements{grid-row:2}.team-profile-modal .team-roster-section{grid-row:3;margin-top:0;padding:.85rem 2rem;border-bottom:1px solid var(--border);min-height:0;flex-shrink:0}.team-profile-modal .profile-match-history{grid-row:4}.team-profile-modal .profile-actions{grid-row:5}.team-profile-modal .profile-status{grid-row:6}.team-profile-modal .team-roster-list{max-height:min(32vh,190px)}.tournament-profile-page{min-height:100vh;width:100%;max-width:none;padding:1rem clamp(1rem,2vw,2rem) 2rem;display:flex;flex-direction:column;gap:1rem;box-sizing:border-box}.tournament-profile-page-toolbar{flex-shrink:0}.tournament-back-link{text-decoration:none;display:inline-flex;align-items:center}.tournament-profile-loading,.tournament-profile-error{margin:2rem 0;color:var(--text-muted);text-align:center}.tournament-profile-error{color:var(--danger, #e74c3c)}.tournament-profile-page-header{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:space-between;gap:1rem 2rem;padding:1.25rem clamp(1rem,2vw,2rem);flex-shrink:0}.tournament-profile-page-title h1{margin:0;font-size:clamp(1.5rem,3vw,2.25rem);font-weight:700;letter-spacing:-.02em}.tournament-name-row{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem}.tournament-name-input{flex:1;min-width:min(100%,14rem);font-size:clamp(1.25rem,2.5vw,1.75rem);font-weight:700}.tournament-profile-page-stats{flex:1;min-width:min(100%,20rem)}.tournament-profile-page-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:1rem}.tournament-profile-page-body .tournament-profile-section{padding:1rem clamp(1rem,2vw,2rem);border-bottom:none}.tournament-profile-page-body .tournament-bracket-section{flex:1;min-height:min(75vh,52rem);display:flex;flex-direction:column;overflow:visible}.tournament-profile-page-body .bracket-board{flex:1;min-height:0}.tournament-profile-page-status{position:sticky;bottom:0;margin:0;padding:.75rem 1rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-align:center;font-size:.9rem;box-shadow:var(--shadow)}.tournament-profile-page-status.is-error{color:var(--danger, #e74c3c);border-color:#e74c3c59}.tournament-profile-modal{width:min(98vw,96rem);height:min(96vh,85rem);max-height:96vh;display:flex;flex-direction:column;overflow:hidden;grid-template-rows:unset}.tournament-profile-modal:not(:has(.tournament-bracket-section)){overflow-y:auto}.tournament-profile-modal .profile-top{flex-shrink:0}.tournament-profile-modal .profile-status{flex-shrink:0;margin:0;padding:.65rem 2rem 1rem;border-top:1px solid var(--border)}.tournament-profile-title h2{margin:0}.tournament-profile-meta{margin:.25rem 0 0;color:var(--text-muted);font-size:.88rem}.tournament-profile-section{padding:.85rem 2rem;border-bottom:1px solid var(--border);flex-shrink:0}.tournament-profile-section h3{margin:0 0 .65rem;font-size:.95rem;font-weight:600}.tournament-section-hint{margin:0 0 .75rem;color:var(--text-muted);font-size:.85rem}.tournament-participants-list,.tournament-seed-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.45rem}.tournament-participants-list li,.tournament-seed-item{display:flex;align-items:center;gap:.55rem;padding:.4rem .55rem;border-radius:8px;background:var(--surface-2);border:1px solid var(--border)}.tournament-seed-rank{font-size:.78rem;font-weight:700;color:var(--text-muted);min-width:1.75rem}.tournament-seed-name{flex:1;min-width:0}.tournament-seed-actions{display:flex;gap:.35rem;margin-left:auto}.tournament-profile-actions{display:flex;gap:.65rem;margin-top:.85rem}.tournament-bo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(7rem,1fr));gap:.55rem .85rem}.tournament-bo-item{display:flex;flex-direction:column;gap:.3rem;font-size:.82rem;color:var(--text-muted)}.tournament-bo-item select{padding:.4rem .5rem;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);color:var(--text);font-size:.88rem}.tournament-bo-single{max-width:12rem;margin-bottom:.5rem}.tournament-bo-single select{width:100%}.tournament-bracket-section{flex:1;min-height:0;display:flex;flex-direction:column;overflow:visible}.tournament-bracket-section h3{flex-shrink:0}.bracket-board{display:flex;flex-direction:column;gap:2.5rem;overflow:auto;flex:1;min-height:min(60vh,40rem);padding:1rem 1.5rem 2rem .5rem}.bracket-board-double{flex-direction:row;align-items:flex-start;gap:0;position:relative;min-width:min-content}.bracket-board-body{flex:0 0 auto;display:flex;flex-direction:column;position:relative;z-index:2;overflow:visible}.bracket-finals-column{flex:0 0 auto;position:relative;z-index:1;align-self:flex-start}.bracket-finals-bridge{flex:0 0 calc(var(--col-gutter) * 1.5);width:calc(var(--col-gutter) * 1.5);margin-top:2.75rem;position:relative;align-self:flex-start;pointer-events:none;z-index:1}.bracket-finals-bridge-svg{display:block;width:100%;height:100%}.bracket-section-block{min-width:min-content}.bracket-section-cols{display:flex;align-items:flex-start;gap:0;position:relative;overflow:visible}.bracket-section{min-width:min-content;padding-bottom:1rem}.bracket-section-title{margin:0 0 1rem;font-size:.9rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.bracket-canvas{display:flex;align-items:flex-start;gap:0;position:relative;min-width:min-content;overflow:visible;padding-bottom:1rem}.bracket-round-col{flex:0 0 calc(var(--match-width) + var(--col-gutter));position:relative;width:calc(var(--match-width) + var(--col-gutter));overflow:visible}.bracket-round-col:last-child{flex-basis:var(--match-width);width:var(--match-width)}.bracket-round-label{margin:0 0 .85rem;padding:.45rem .65rem;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);background:var(--surface-2);border-radius:6px;border:1px solid var(--border);display:flex;justify-content:space-between;gap:.5rem;width:var(--match-width);box-sizing:border-box}.bracket-round-label span{color:var(--accent);font-weight:600}.bracket-round-matches{position:relative;width:var(--match-width);overflow:visible}.bracket-connector-layer{position:absolute;top:0;left:var(--match-width);width:var(--col-gutter);height:100%;pointer-events:none;z-index:1;overflow:visible}.bracket-connector-path{fill:none;stroke:#8b92a8b3;stroke-width:2;vector-effect:non-scaling-stroke}.bracket-match-slot{position:absolute;left:0;width:var(--match-width);height:var(--match-height);z-index:2;overflow:visible}.bracket-match-slot:has(.bracket-match-detail){z-index:30}.bracket-match{position:relative;z-index:2;overflow:visible;height:var(--match-height)}.bracket-match.is-playable .bracket-match-box{border-color:#6c8cff8c;box-shadow:0 0 0 1px #6c8cff26}.bracket-match.state-done .bracket-match-box{opacity:.92}.bracket-match-box{display:flex;flex-direction:column;width:100%;height:100%;padding:0;margin:0;border:2px solid var(--border);border-radius:6px;background:var(--surface);overflow:hidden;cursor:pointer;text-align:left;position:relative;font:inherit;color:inherit}.bracket-match-box:hover{border-color:#6c8cff73}.bracket-match-meta{flex:0 0 1.75rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.15rem .55rem;font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);background:var(--surface-2);border-bottom:1px solid var(--border)}.bracket-match-round{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bracket-match-bo{flex-shrink:0;padding:.05rem .4rem;font-size:.65rem;font-weight:700;color:var(--accent);background:var(--surface);border:1px solid var(--border);border-radius:4px;line-height:1.3}.bracket-match-teams{flex:1;display:flex;flex-direction:column;min-height:0}.bracket-match-team{display:flex;align-items:center;gap:.5rem;padding:0 .65rem;font-size:.9rem;flex:1;min-height:0;background:var(--surface)}.bracket-match-team.is-top{border-bottom:1px solid var(--border)}.bracket-match-team.is-winner{background:#6c8cff24;font-weight:700;color:var(--accent)}.bracket-match-team.is-loser{opacity:.55}.bracket-match-team.is-tbd{color:var(--text-muted);font-style:italic}.bracket-match-team .avatar,.bracket-match-team .avatar-fallback{width:1.65rem;height:1.65rem;font-size:.62rem;flex-shrink:0}.bracket-match-team-name{flex:1;min-width:0;line-height:1.25;word-break:break-word}.bracket-match-team-score{font-weight:700;font-variant-numeric:tabular-nums;min-width:1.5rem;padding-left:.35rem;text-align:right;flex-shrink:0}.bracket-match-detail{position:absolute;left:calc(100% + .85rem);top:0;width:min(19rem,42vw);margin-top:0;padding:.75rem;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:var(--shadow);z-index:40}.bracket-match-slot.is-finals .bracket-match-detail{left:auto;right:calc(100% + .85rem)}.bracket-board-body .bracket-round-col:last-child .bracket-match-detail{left:auto;right:calc(100% + .85rem)}.bracket-board-body:has(.bracket-match-detail){z-index:5}.bracket-finals-column:has(.bracket-match-detail){z-index:5}.bracket-games-list{list-style:none;margin:0;padding:0;font-size:.78rem;color:var(--text-muted);display:flex;flex-direction:column;gap:.2rem;max-height:8rem;overflow-y:auto}.bracket-game-form{display:grid;grid-template-columns:1fr;gap:.5rem}.bracket-game-form select,.bracket-game-form input{padding:.38rem .45rem;border:1px solid var(--border);border-radius:6px;background:var(--surface-2);color:var(--text);font-size:.82rem;min-width:0}.bracket-game-form button{grid-column:1 / -1}.bracket-series-wait,.bracket-series-done{margin:0;font-size:.8rem;color:var(--text-muted)}.bracket-series-status{margin:0;font-size:.78rem;color:var(--text-muted)}.bracket-series-status.is-error{color:var(--danger, #e74c3c)}.tournament-open-profile{flex-shrink:0}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.1rem clamp(1rem,1.5vw,1.75rem);box-shadow:var(--shadow);width:100%;min-width:0}.team.card{min-width:0;padding:1rem clamp(1rem,1.5vw,1.5rem)}.match-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.5rem 2rem;flex-shrink:0}.header{text-align:center;margin-bottom:.25rem;flex-shrink:0}.header h1{margin:0 0 .5rem;font-size:2.25rem;font-weight:700;letter-spacing:-.02em}.subtitle{margin:0;color:var(--text-muted);font-size:1.05rem}.controls{display:flex;flex-wrap:wrap;align-items:center;gap:1.25rem 2.5rem;flex:1;min-width:0}.control-row{display:flex;align-items:center;gap:1rem;min-width:0}.control-row .result-buttons{flex:1;min-width:0}.control-row:last-child{min-width:min(100%,28rem)}.control-row label,.control-row .label{color:var(--text-muted);font-size:.9rem;white-space:nowrap}#k-factor{width:5rem;padding:.5rem .75rem;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:1rem}.result-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;background:var(--surface-2);padding:.3rem;border-radius:10px;border:1px solid var(--border);min-width:16rem}.result-btn{padding:.55rem .75rem;border:none;border-radius:8px;background:transparent;color:var(--text-muted);font-size:.85rem;cursor:pointer;transition:background .15s,color .15s;white-space:nowrap}.result-btn:hover{color:var(--text)}.result-btn.active{background:var(--accent);color:#fff}.teams{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:start;width:100%}.player-table-wrap{width:100%;max-height:165px;overflow-y:auto}.team-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.team-header h2{margin:0;font-size:1.2rem}#team1-panel .team-header h2{color:var(--team1)}#team2-panel .team-header h2{color:var(--team2)}.team-avg{margin:0 0 .65rem;font-size:.85rem;color:var(--text-muted)}.player-table{--cell-pad-x: .45rem;width:100%;display:grid;grid-template-columns:minmax(4rem,1.5fr) minmax(1.75rem,.5fr) minmax(1.75rem,.5fr) minmax(1.75rem,.5fr) minmax(1.75rem,.5fr) minmax(2.25rem,.65fr) minmax(2.25rem,.6fr) 2rem;column-gap:.35rem;row-gap:var(--team-row-gap);align-items:stretch}.player-list{list-style:none;margin:0;padding:0}.player-list,.player-row-header,.player-row{display:contents}.player-row-header span{display:flex;align-items:center;min-height:var(--cell-min-h);padding:0 var(--cell-pad-x);border:1px solid transparent;box-sizing:border-box;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);white-space:nowrap}.col-name{justify-content:flex-start}.col-damage,.col-rating,.col-stat{justify-content:flex-end}.player-name,.player-stat{width:100%;min-width:0;min-height:var(--cell-min-h);padding:.5rem var(--cell-pad-x);background:var(--surface-2);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:.9rem;line-height:1.2;box-sizing:border-box}.col-damage,.col-rating,.col-stat,.player-damage,.player-rating,.player-kills,.player-deaths,.player-assists,.player-headshots{text-align:right}.player-name:focus,.player-stat:focus,#k-factor:focus{outline:2px solid var(--accent);outline-offset:1px}.player-stat{font-variant-numeric:tabular-nums}.btn-add,.btn-remove{border:none;cursor:pointer;font-size:.85rem;border-radius:8px;transition:background .15s,color .15s}.btn-add{padding:.4rem .75rem;background:var(--surface-2);color:var(--accent);border:1px solid var(--border)}.btn-add:hover{background:var(--border);color:var(--accent-hover)}.btn-remove{justify-self:center;align-self:center;width:2rem;height:2rem;padding:0;background:transparent;color:var(--text-muted);font-size:1.25rem;line-height:1}.btn-remove:hover{background:#f8717126;color:var(--loss)}.actions{display:flex;flex-shrink:0;gap:.85rem}.btn-primary,.btn-secondary{padding:.8rem 2.25rem;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:background .15s,transform .1s}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-primary:active,.btn-secondary:active{transform:scale(.98)}.btn-secondary{background:var(--surface-2);color:var(--text-muted);border:1px solid var(--border)}.btn-secondary:hover{color:var(--text);border-color:var(--text-muted)}.btn-secondary.btn-small{padding:.35rem .7rem;font-size:.8rem;font-weight:500;border-radius:8px}.results h2{margin:0 0 1rem;font-size:1.2rem}.leaderboard-header{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;margin-bottom:1rem;flex-shrink:0}.leaderboard-header h2{margin:0;font-size:1.2rem}.leaderboard-count{color:var(--text-muted);font-size:.85rem}.leaderboard-actions{display:flex;align-items:center;gap:.75rem}.btn-clear{padding:.35rem .7rem;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--loss);font-size:.8rem;cursor:pointer;transition:background .15s,border-color .15s}.btn-clear:hover{background:#f871711a;border-color:var(--loss)}.leaderboard-list{list-style:none;margin:0;padding:0}.leaderboard-header-row,.leaderboard-item{display:grid;grid-template-columns:1.5rem minmax(0,1.5fr) minmax(0,.85fr) minmax(0,.95fr) minmax(0,.55fr) minmax(0,.75fr) minmax(0,.7fr);gap:.25rem .35rem;align-items:center;padding:.55rem 0;min-width:0}.team-leaderboard-header-row,.team-leaderboard-item{grid-template-columns:1.5rem minmax(0,1.5fr) minmax(0,.85fr) minmax(0,.95fr) minmax(0,.75fr)}.leaderboard-record,.leaderboard-roster{text-align:right;font-variant-numeric:tabular-nums}.leaderboard-header-row span:nth-child(n+3),.leaderboard-kda,.leaderboard-hs,.leaderboard-avgdmg,.leaderboard-rating{text-align:right}.leaderboard-kda,.leaderboard-hs,.leaderboard-avgdmg{font-weight:600;font-variant-numeric:tabular-nums;color:var(--text-muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}.leaderboard-header-row{padding-top:0;padding-bottom:.35rem;font-size:.62rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);border-bottom:1px solid var(--border);min-width:0}.leaderboard-header-row.hidden{display:none}.leaderboard-header-row span:nth-child(3),.leaderboard-header-row span:nth-child(4),.leaderboard-header-row span:nth-child(5),.leaderboard-header-row span:nth-child(6),.leaderboard-header-row span:nth-child(7){text-align:right}.leaderboard-item{border-bottom:1px solid var(--border);font-size:.85rem;cursor:pointer;border-radius:8px;transition:background .15s;min-width:0}.leaderboard-item:hover{background:#6c8cff14}.leaderboard-item:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.leaderboard-item:last-child{border-bottom:none}.leaderboard-rank{font-weight:700;font-variant-numeric:tabular-nums;color:var(--text-muted);text-align:center}.leaderboard-item.rank-1 .leaderboard-rank{color:#f5c842}.leaderboard-item.rank-2 .leaderboard-rank{color:#b8c0cc}.leaderboard-item.rank-3 .leaderboard-rank{color:#c98a5a}.leaderboard-name-wrap{display:flex;align-items:center;gap:.45rem;min-width:0}.leaderboard-avatar{width:1.65rem;height:1.65rem;border-radius:50%;object-fit:cover;flex-shrink:0;background:var(--surface-2);border:1px solid var(--border)}.leaderboard-avatar-fallback{width:1.65rem;height:1.65rem;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;background:var(--surface-2);border:1px solid var(--border);color:var(--accent)}.leaderboard-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leaderboard-winrate{min-width:0;font-weight:600;font-variant-numeric:tabular-nums;color:var(--text);text-align:right;white-space:nowrap}.leaderboard-winrate-pct{font-weight:600;font-variant-numeric:tabular-nums;color:var(--text)}.leaderboard-winrate-record{display:none}.leaderboard-avgdmg{font-weight:600;font-variant-numeric:tabular-nums;color:var(--text-muted);text-align:right;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}.leaderboard-rating{font-weight:700;font-variant-numeric:tabular-nums;color:var(--accent);min-width:0;text-align:right;font-size:.85rem}.leaderboard-updated{color:var(--text-muted);font-size:.8rem;min-width:3.5rem;text-align:right}.leaderboard-empty{margin:0;color:var(--text-muted);font-size:.85rem;text-align:center;padding:1rem .5rem;flex:1;display:flex;align-items:center;justify-content:center}.expected{display:flex;flex-wrap:wrap;gap:1rem 2rem;margin-bottom:1.25rem;padding-bottom:1rem;border-bottom:1px solid var(--border);font-size:.9rem;color:var(--text-muted)}.results-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.results-team h3{margin:0 0 .75rem;font-size:1rem}.results-team ul{list-style:none;margin:0;padding:0}.result-item{display:flex;justify-content:space-between;align-items:flex-start;padding:.5rem 0;border-bottom:1px solid var(--border);font-size:.9rem;gap:.75rem}.result-item:last-child{border-bottom:none}.result-name{color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-place{color:var(--text);font-weight:500;margin-right:.35rem}.result-stats{display:block;font-size:.78rem;color:var(--text-muted);margin-top:.15rem}.result-change{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.result-change.positive{color:var(--win)}.result-change.negative{color:var(--loss)}.result-change.neutral{color:var(--text-muted)}.hidden{display:none}.error-msg{color:var(--loss);font-size:.9rem;margin-top:.75rem}.footer{text-align:center;margin-top:.5rem;color:var(--text-muted);font-size:.8rem;flex-shrink:0}.footer p{margin:0;max-width:52rem;margin-inline:auto}.layout-right-rest .layout-roulette{flex:0 0 auto;height:var(--roulette-panel-height);min-height:var(--roulette-panel-height);max-height:var(--roulette-panel-height)}.layout-right-rest .pool-list{flex:1;min-height:0;overflow-y:auto}.layout-roulette{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;width:100%;height:var(--roulette-panel-height);min-height:var(--roulette-panel-height);max-height:var(--roulette-panel-height);min-width:0;align-items:stretch}.layout-roulette.is-tourney{grid-template-columns:minmax(0,1fr)}.layout-roulette>*{min-width:0}.player-pool{display:flex;flex-direction:column;min-height:0;height:100%;max-height:100%;overflow:hidden}.layout-roulette .roulette.card{height:100%;max-height:100%;min-height:0}.player-pool h2,.roulette h2{margin:0 0 .35rem;font-size:1.1rem}.player-pool-hint,.roulette-hint{margin:0 0 .25rem;color:var(--text-muted);font-size:.8rem;line-height:1.35;flex-shrink:0}.player-pool-add{display:flex;gap:.75rem;margin-bottom:.5rem;flex-shrink:0}.player-pool-add input{flex:1;min-width:0;padding:.55rem .85rem;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:.95rem}.player-pool-add .btn-secondary{flex-shrink:0;padding:.55rem 1rem;white-space:nowrap}.player-pool-add input:focus{outline:2px solid var(--accent);outline-offset:1px}.roulette{display:flex;flex-direction:column;width:100%;max-width:100%;min-height:0;min-width:0;flex:0 0 auto;overflow:hidden;justify-self:stretch}.roulette-wheels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:.65rem;width:100%;flex:1;min-height:0;align-items:stretch;overflow:hidden}.roulette-wheels.is-tourney{grid-template-columns:minmax(0,1fr)}.map-wheel-wrap{display:flex;min-width:0;min-height:0;height:100%}.map-wheel-wrap .roulette-wheel-wrap{flex:1;min-height:0;height:100%}#results{flex-shrink:0;width:100%;height:280px;overflow-y:auto}.save-status{margin-top:.75rem!important;color:var(--win);min-height:1.25rem}.player-row.is-saved .player-name{border-color:#4ade8073}.wheel-title{margin:0;font-size:.7rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.pool-list{list-style:none;margin:0 0 .5rem;padding:0;display:flex;flex-direction:column;gap:.35rem;flex:1;min-height:0;overflow-y:auto}.pool-item{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.4rem .75rem;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;font-size:.85rem}.pool-item button{border:none;background:transparent;color:var(--text-muted);cursor:pointer;font-size:1.1rem;line-height:1;padding:0 .15rem}.pool-item button:hover{color:var(--loss)}.pool-empty{margin:0 0 .75rem;color:var(--text-muted);font-size:.85rem}.pool-empty.hidden,.pool-list:not(:empty)+.pool-empty{display:none}#assign-all-btn{width:100%}.roulette-wheel-wrap{display:flex;flex-direction:column;align-items:stretch;gap:.25rem;width:100%;height:100%;min-width:0;min-height:0}.roulette-wheel-wrap .wheel-title,.roulette-wheel-wrap .btn-primary,.roulette-wheel-wrap .roulette-result{flex-shrink:0}.roulette-wheel-stage{position:relative;flex:1;min-height:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;container-type:size}.roulette-pointer{position:absolute;top:0;left:50%;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:10px solid var(--text);z-index:2;flex-shrink:0}.roulette-wheel{width:min(100cqw,100cqh);aspect-ratio:1;height:auto;flex-shrink:0;border-radius:50%;border:2px solid var(--border);box-shadow:var(--shadow);position:relative;transition:transform 3.5s cubic-bezier(.2,.8,.2,1);overflow:hidden;container-type:size}.roulette-wheel.is-empty{background:var(--surface-2)}.wheel-labels{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.wheel-segment-label{position:absolute;font-size:clamp(.42rem,10cqmin,.72rem);font-weight:700;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.55);max-width:40cqmin;text-align:center;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.roulette-wheel-wrap .btn-primary,#spin-btn,#side-spin-btn,#map-spin-btn{width:100%;padding:.35rem .45rem;font-size:.72rem}.map-wheel-wrap .wheel-segment-label{font-size:clamp(.4rem,9.5cqmin,.66rem);max-width:38cqmin}.roulette-result{margin:0;min-height:.85rem;font-size:.68rem;color:var(--text-muted);text-align:center}.roulette-result.is-win{color:var(--win);font-weight:600}.profile-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:1rem;background:#000000a6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.profile-overlay.is-front{z-index:110;padding:.35rem}.profile-overlay.hidden{display:none}.profile-modal{position:relative;width:min(94vw,76rem);height:min(94vw,76rem);max-height:92vh;overflow:hidden;display:grid;grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:0;padding:0}.profile-close{position:absolute;top:.85rem;right:.85rem;width:2.25rem;height:2.25rem;border:none;border-radius:8px;background:#0003;color:var(--text-muted);font-size:1.5rem;line-height:1;cursor:pointer;z-index:2}.profile-close:hover{background:var(--surface-2);color:var(--text)}.profile-top{grid-row:1;display:flex;align-items:stretch;gap:1.5rem;padding:1.25rem 2rem 1rem;background:var(--surface-2);border-bottom:1px solid var(--border)}.profile-header{display:flex;flex-direction:row;align-items:center;gap:1rem;flex-shrink:0}.profile-avatar-wrap{position:relative;flex-shrink:0}.profile-avatar,.profile-avatar-fallback{width:6.5rem;height:6.5rem;border-radius:8px;object-fit:cover;border:2px solid var(--border)}.profile-avatar-fallback{display:flex;align-items:center;justify-content:center;font-size:1.75rem;font-weight:700;background:var(--surface);color:var(--accent)}.profile-avatar.hidden+.profile-avatar-fallback:not(.hidden){display:flex}.profile-avatar:not(.hidden)+.profile-avatar-fallback{display:none}.profile-avatar:not(.hidden){cursor:zoom-in}.profile-avatar:not(.hidden):hover{border-color:var(--accent)}.profile-avatar-edit{position:absolute;right:-.1rem;bottom:-.1rem;width:1.85rem;height:1.85rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--accent);border:2px solid var(--surface);cursor:pointer;font-size:.85rem}.profile-avatar-edit:hover{background:var(--accent-hover)}.profile-avatar-remove{position:absolute;top:-.1rem;right:-.1rem;width:1.85rem;height:1.85rem;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--surface-2);border:2px solid var(--surface);color:var(--text-muted);cursor:pointer;font-size:1.1rem;line-height:1;padding:0}.profile-avatar-remove:hover{color:var(--danger, #e74c3c);border-color:var(--danger, #e74c3c);background:var(--surface)}.profile-avatar-remove.hidden{display:none}.profile-nickname-label{display:block;margin:0 0 .2rem;font-size:.68rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}.profile-nickname-input{display:block;width:100%;min-width:0;margin:0;padding:.15rem 0;background:transparent;border:none;border-bottom:2px solid transparent;border-radius:0;color:var(--text);font-size:1.75rem;font-weight:700;letter-spacing:-.02em;line-height:1.15}.profile-nickname-input:hover{border-bottom-color:var(--border)}.profile-nickname-input:focus{outline:none;border-bottom-color:var(--accent)}.profile-rating{margin:.25rem 0 0;font-size:1.35rem;font-weight:700;color:var(--accent)}.profile-stats{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;align-self:center;min-width:0}.profile-stat-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;padding:.65rem .4rem;background:var(--surface);border:1px solid var(--border);border-radius:8px;text-align:center}.profile-stat-label{font-size:.62rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:600}.profile-stat-value{font-size:1.05rem;font-weight:700;font-variant-numeric:tabular-nums;color:var(--text)}.profile-achievements{grid-row:2;padding:.85rem 2rem;border-bottom:1px solid var(--border);flex-shrink:0}.profile-achievements h3{margin:0 0 .5rem;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:600}.profile-match-history{grid-row:3;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:.85rem 2rem .5rem}.profile-match-history h3{margin:0 0 .65rem;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);font-weight:600}.match-history-table{display:flex;flex-direction:column;flex:1;min-height:0;border:1px solid var(--border);border-radius:8px;overflow:auto;background:var(--surface-2)}.match-history-header,.match-history-item{display:grid;grid-template-columns:minmax(3.5rem,.75fr) 3.25rem 3.25rem 2.25rem minmax(0,1.15fr) 4.25rem 2.25rem 3.25rem 6.75rem;gap:.45rem .55rem;align-items:center;padding:.55rem .85rem;min-width:38rem}.match-history-header{font-size:.65rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);background:#00000026;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:1}.match-history-header span:nth-child(2),.match-history-header span:nth-child(n+6),.match-history-stat,.match-history-date{text-align:right}.match-history-map{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;color:var(--text-muted)}.match-history-stat{font-variant-numeric:tabular-nums;font-weight:600;color:var(--text-muted)}.match-history-list{list-style:none;margin:0;padding:0;flex:1;min-height:0;overflow-y:auto}.match-history-empty{color:var(--text-muted);font-size:.85rem;padding:1.5rem .85rem;text-align:center}.match-history-item{font-size:.85rem;border-bottom:1px solid var(--border);background:transparent;border-radius:0}.match-history-item:last-child{border-bottom:none}.match-history-item:nth-child(2n){background:#00000014}.match-history-badge{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.match-history-item.outcome-win .match-history-badge{color:var(--win)}.match-history-item.outcome-loss .match-history-badge{color:var(--loss)}.match-history-item.outcome-draw .match-history-badge{color:var(--text-muted)}.match-history-side{font-size:.8rem;font-weight:600;color:var(--text-muted)}.match-history-rating{font-variant-numeric:tabular-nums;font-weight:600;color:var(--text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.match-history-item.outcome-win .match-history-rating{color:var(--win)}.match-history-item.outcome-loss .match-history-rating{color:var(--loss)}.match-history-date{font-size:.78rem;color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap}.achievement-list{list-style:none;margin:0 0 .45rem;padding:0;display:flex;flex-wrap:wrap;gap:.4rem;max-height:4.5rem;overflow-y:auto;align-content:flex-start}.achievement-list:empty:before{content:"No achievements yet.";color:var(--text-muted);font-size:.85rem}.achievement-item{display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .6rem;background:#6c8cff1f;border:1px solid rgba(108,140,255,.35);border-radius:999px;font-size:.78rem}.achievement-logo{width:1.25rem;height:1.25rem;border-radius:50%;object-fit:cover;flex-shrink:0}.tournament-profile-header-row{display:flex;align-items:flex-start;gap:1rem}.tournament-profile-name-block{flex:1;min-width:0}.tournament-profile-logo-wrap,.tournament-create-logo-wrap{flex-shrink:0}.tournament-create-logo-wrap{margin-bottom:.75rem}.achievement-item button{border:none;background:transparent;color:var(--text-muted);cursor:pointer;font-size:1rem;line-height:1;padding:0}.achievement-item button:hover{color:var(--loss)}.achievement-add{display:flex;gap:.5rem}.achievement-add input{flex:1;min-width:0;padding:.5rem .75rem;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:.9rem}.achievement-add input:focus{outline:2px solid var(--accent);outline-offset:1px}.achievement-add .btn-secondary{padding:.5rem .85rem;font-size:.85rem}.profile-actions{grid-row:4;display:flex;gap:.65rem;padding:.85rem 2rem;border-top:1px solid var(--border);background:var(--surface-2);flex-wrap:wrap}.profile-actions .btn-primary,.profile-actions .btn-secondary{padding:.6rem 1.15rem;font-size:.88rem}.profile-actions .btn-primary{flex:1;min-width:8rem}.profile-status{grid-row:5;margin:0;padding:0 2rem .85rem;min-height:1rem;font-size:.85rem;color:var(--win);background:var(--surface-2)}.profile-status.is-error{color:var(--loss)}.import-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:1rem;background:#000000a6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.import-overlay.hidden{display:none}.import-modal{position:relative;width:min(100%,36rem);max-height:min(92vh,40rem);overflow-y:auto;padding:1.25rem 1.5rem}.import-modal.create-team-modal{width:min(94vw,40rem);max-height:min(92vh,52rem)}.create-team-modal .create-team-roster-list{max-height:min(32vh,280px)}.import-close{position:absolute;top:.75rem;right:.75rem;width:2rem;height:2rem;border:none;border-radius:8px;background:transparent;color:var(--text-muted);font-size:1.5rem;line-height:1;cursor:pointer}.import-close:hover{background:var(--surface-2);color:var(--text)}.import-modal h2{margin:0 2rem .5rem 0;font-size:1.2rem}.import-hint{margin:0 0 .75rem;color:var(--text-muted);font-size:.85rem;line-height:1.4}.import-format-help{margin-bottom:.75rem;font-size:.82rem;color:var(--text-muted)}.import-format-help summary{cursor:pointer;color:var(--accent);margin-bottom:.35rem}.import-example{margin:.5rem 0 0;padding:.65rem .75rem;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;font-size:.75rem;line-height:1.45;overflow-x:auto;white-space:pre}.import-text{width:100%;min-height:10rem;padding:.75rem;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;color:var(--text);font-family:ui-monospace,Consolas,monospace;font-size:.82rem;line-height:1.45;resize:vertical;box-sizing:border-box}.import-text:focus{outline:2px solid var(--accent);outline-offset:1px}.import-actions{display:flex;gap:.65rem;margin-top:.85rem;flex-wrap:wrap}.import-actions .btn-primary,.import-actions .btn-secondary{padding:.65rem 1rem;font-size:.88rem}.import-actions .btn-primary{flex:1}.import-status{margin:.65rem 0 0;min-height:1rem;font-size:.85rem;color:var(--win)}.import-status.is-error{color:var(--loss)}.demo-modal{width:min(100%,42rem);max-height:min(92vh,44rem)}.demo-file-row{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;margin-bottom:.5rem}.demo-file-name{color:var(--text-muted);font-size:.85rem;word-break:break-all}.demo-meta{margin:0 0 .65rem;font-size:.88rem;color:var(--text)}.demo-mapping-wrap{max-height:min(50vh,22rem);overflow:auto;border:1px solid var(--border);border-radius:8px;background:var(--surface-2)}.demo-mapping-table{width:100%;border-collapse:collapse;font-size:.85rem}.demo-mapping-table th,.demo-mapping-table td{padding:.55rem .65rem;text-align:left;border-bottom:1px solid var(--border)}.demo-mapping-table th{position:sticky;top:0;background:var(--surface);font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted);z-index:1}.demo-mapping-table tr:last-child td{border-bottom:none}.demo-mapping-table td:nth-child(2),.demo-mapping-table th:nth-child(2),.demo-mapping-table td:nth-child(3),.demo-mapping-table th:nth-child(3){white-space:nowrap}.demo-side-ct{color:#5b9fd4}.demo-side-t{color:#c9a55c}.demo-map-select{width:100%;min-width:8rem;padding:.4rem .5rem;background:var(--surface);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:.85rem}.demo-map-select:focus{outline:2px solid var(--accent);outline-offset:1px}.avatar-inspect-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:#000000d9;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.avatar-inspect-overlay.hidden{display:none}.avatar-inspect-close{position:absolute;top:1rem;right:1rem;width:2.5rem;height:2.5rem;border:none;border-radius:10px;background:#ffffff14;color:var(--text);font-size:1.75rem;line-height:1;cursor:pointer}.avatar-inspect-close:hover{background:#ffffff26}.avatar-inspect-frame{margin:0;max-width:min(90vw,36rem);max-height:min(90vh,36rem);display:flex;flex-direction:column;align-items:center;gap:.75rem}.avatar-inspect-frame img{max-width:100%;max-height:min(80vh,32rem);width:auto;height:auto;object-fit:contain;border-radius:12px;border:2px solid var(--border);box-shadow:var(--shadow);background:var(--surface-2)}.avatar-inspect-frame figcaption{color:var(--text-muted);font-size:.95rem;text-align:center}@media(max-width:768px){.profile-overlay{padding:0}.profile-modal{width:100%;height:100%;max-height:100vh;border-radius:0;grid-template-rows:auto auto minmax(0,1fr) auto auto}.profile-top{flex-direction:column;padding:1rem 1rem .85rem;gap:.85rem}.profile-header{width:100%}.profile-avatar,.profile-avatar-fallback{width:5rem;height:5rem}.profile-title h2{font-size:1.35rem}.profile-rating{font-size:1.1rem}.profile-stats{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}.profile-stat-item:nth-child(n+4){grid-column:span 1}.profile-achievements,.team-profile-modal .team-roster-section{padding:.75rem 1rem}.tournament-profile-page{padding:.5rem .75rem 1rem}.tournament-profile-page-header{padding:1rem;border-radius:0}.tournament-profile-page-body .tournament-profile-section{padding:.85rem 1rem;border-radius:var(--radius)}.tournament-profile-page-body .tournament-bracket-section{min-height:60vh}.tournament-profile-modal{width:100%;height:100%;max-height:100vh;border-radius:0}.tournament-profile-section{padding:.75rem 1rem}.tournament-profile-modal .profile-status{padding:.65rem 1rem 1rem}.bracket-board-double{flex-direction:column}.bracket-finals-bridge{display:none}.bracket-finals-column{margin-left:0;margin-top:2rem}.bracket-round-col{flex-basis:calc(var(--match-width) + var(--col-gutter));width:calc(var(--match-width) + var(--col-gutter));padding-right:0}.bracket-round-matches,.bracket-match-slot{width:var(--match-width)}.bracket-match-detail{position:static;width:100%;margin-top:.65rem;box-shadow:none}.bracket-game-form{grid-template-columns:1fr}.profile-match-history{padding:.75rem 1rem .35rem}.match-history-header,.match-history-item{grid-template-columns:2.75rem 2.75rem 2.75rem minmax(0,1fr) 3.5rem 2rem 2.75rem;gap:.35rem .4rem;padding:.5rem .6rem;min-width:24rem}.match-history-header span:nth-child(1),.match-history-map,.match-history-header span:nth-child(9),.match-history-date{display:none}.match-history-header span:nth-child(2),.match-history-score{grid-column:1}.match-history-header span:nth-child(3),.match-history-badge{grid-column:2}.match-history-header span:nth-child(4),.match-history-side{grid-column:3}.match-history-header span:nth-child(5),.match-history-rating{grid-column:4}.match-history-header span:nth-child(6),.match-history-kda{grid-column:5}.match-history-header span:nth-child(7),.match-history-headshots{grid-column:6}.match-history-header span:nth-child(8),.match-history-damage{grid-column:7}.profile-actions{padding:.75rem 1rem}.profile-status{padding:0 1rem .75rem}}@media(max-width:1100px){.layout-main{grid-template-columns:1fr}.page{overflow:auto}.leaderboard{height:auto;max-height:min(42vh,24rem)}}@media(max-width:900px){.page{padding:1.25rem 1.25rem 2rem;gap:1rem;min-height:auto}.layout-main{min-height:auto}.layout-right{grid-template-rows:auto auto}.teams{grid-template-columns:1fr;gap:1rem}.match-bar,.controls,.control-row{flex-direction:column;align-items:stretch}.control-row .result-buttons{min-width:0}.actions{justify-content:stretch}.actions .btn-primary,.actions .btn-secondary{flex:1}}@media(max-width:700px){.results-grid{grid-template-columns:1fr}.leaderboard-header-row,.leaderboard-item{grid-template-columns:1.35rem minmax(0,1.35fr) minmax(0,.8fr) minmax(0,.9fr) minmax(0,.5fr) minmax(0,.7fr) minmax(0,.65fr);gap:.2rem .25rem}.player-table{grid-template-columns:minmax(3rem,1.2fr) minmax(1.5rem,.45fr) minmax(1.5rem,.45fr) minmax(1.5rem,.45fr) minmax(1.5rem,.45fr) minmax(2rem,.55fr) minmax(2rem,.55fr) 1.75rem;column-gap:.25rem}.layout-roulette{grid-template-columns:1fr;height:auto;min-height:0;max-height:none}.layout-right-rest .layout-roulette{height:auto;min-height:0;max-height:none}.player-pool,.layout-roulette .roulette.card{height:var(--roulette-panel-height);max-height:var(--roulette-panel-height)}.roulette{width:100%;height:var(--roulette-panel-height);justify-self:stretch}.roulette-wheels{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;width:100%}.player-table{grid-template-columns:minmax(3.5rem,1.6fr) minmax(3rem,1fr) minmax(2.5rem,.75fr) 1.85rem;column-gap:.3rem}.player-row-header span{font-size:.6rem;letter-spacing:.02em}.player-name,.player-stat{font-size:.8rem;padding:.38rem var(--cell-pad-x)}}
