:root{--bg:#0d0e13;--panel:#171922;--panel2:#20232e;--navy:#242665;--navy2:#303381;--yellow:#ffd21a;--text:#f5f5f7;--muted:#989cab;--line:#2c303c}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:88px}body{margin:0;overflow-x:hidden;background:radial-gradient(circle at 50% -180px,#24266538 0,transparent 520px),var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}header{height:72px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:auto auto minmax(0,1fr) minmax(0,auto);align-items:center;padding:0 clamp(16px,2vw,36px);gap:clamp(12px,1.5vw,24px);position:sticky;top:0;background:#0d0e13f2;backdrop-filter:blur(12px);z-index:5}.brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:800;white-space:nowrap}.brand img{width:42px;height:42px;object-fit:contain}.join-nav{background:var(--yellow);color:#11131a;padding:7px 12px;border-radius:6px;font-weight:600;white-space:nowrap}.brand b,.section-title span{color:var(--yellow)}nav{display:flex;align-items:center;justify-content:center;gap:clamp(14px,1.4vw,24px);color:#c6c8d0;font-weight:600;min-width:0}nav a:hover{color:#fff}.donate{color:#11131a!important;background:var(--yellow);padding:7px 12px;border-radius:6px;font-weight:600}.site-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1180px) minmax(0,1fr);gap:108px;align-items:start;width:100%}.content-column{grid-column:2;min-width:0;width:100%;max-width:1180px}.updates-rail{grid-column:3;grid-row:1;justify-self:start;align-self:stretch;width:min(360px,100%)}.updates-panel{position:sticky;top:90px;width:100%;margin:0;max-height:calc(100vh - 108px);overflow-y:auto;overflow-x:hidden;scrollbar-width:none}.updates-panel::-webkit-scrollbar{display:none}.server-rail{grid-column:1;grid-row:1;justify-self:end;align-self:stretch;width:min(420px,100%)}.server-panel{position:sticky;top:90px;width:100%;max-height:calc(100vh - 108px);overflow-y:auto;overflow-x:hidden;margin:0;min-height:300px;scrollbar-width:none}.server-panel::-webkit-scrollbar{display:none}.server-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.server-top>div{min-width:0;flex:1}.server-top h2{overflow-wrap:anywhere}.server-top h2{margin:4px 0 0;font-size:21px;line-height:1.18;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.server-subtitle{margin-top:5px;color:#c4c7d2;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.server-state{font-size:11px;font-weight:900;letter-spacing:.08em;border:1px solid var(--line);border-radius:20px;padding:5px 9px}.server-state.online{color:#7ee2a8;border-color:#2f7650;background:#183426}.server-state.stale{color:#ffd86b;border-color:#756426;background:#332d18}.server-state.offline{color:#ff9292;border-color:#743b3b;background:#321c1c}.server-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}.server-facts .profile-stat{padding:7px 10px;min-width:0}.server-facts .profile-stat b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-top:1px solid var(--line);padding-top:15px}.server-teams h3{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:0 0 8px}.server-player{padding:4px 0;display:flex;flex-direction:column;gap:2px;border-radius:5px}.server-player.clickable{cursor:pointer;padding:4px 6px;margin-left:-6px;margin-right:-6px}.server-player.clickable:hover{background:#24266555}.server-player strong{font-weight:600;overflow-wrap:anywhere}.server-player small{color:var(--muted);font-size:11px}.server-spectators{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.server-spectators h3{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:0 0 6px}.server-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted)}.server-foot .join-server{margin-left:auto}.join-server{background:var(--yellow);color:#11131a;padding:7px 12px;border-radius:6px;font-weight:600;white-space:nowrap}.server-loading{color:var(--muted)}.steam,button{background:var(--yellow);color:#11131a;border:0;border-radius:6px;font-weight:700;padding:11px 16px;cursor:pointer}.steam{padding:7px 12px;font-weight:600}.sticky-search-wrap{position:fixed;top:82px;left:50%;transform:translate(-50%,-8px);width:min(620px,calc(100vw - 48px));z-index:4;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease,transform .16s ease,visibility .16s}.sticky-search-wrap.visible{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}.sticky-search{position:relative;display:flex;gap:7px;padding:6px;background:#171922f2;border:1px solid #363a50;border-radius:9px;box-shadow:0 10px 28px #0008;backdrop-filter:blur(10px)}.sticky-search input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:#fff;font-size:14px;padding:8px 10px}.sticky-search button{padding:8px 13px;font-size:12px}.sticky-results{position:absolute;top:calc(100% + 6px);left:0;right:0;margin:0;max-width:none;max-height:320px;overflow:auto;border-radius:8px;box-shadow:0 12px 30px #0009}.sticky-results:empty{display:none}.sticky-results .result:first-child{border-radius:8px 8px 0 0}.sticky-results .result:last-child{border-radius:0 0 8px 8px}.sticky-results .result:only-child{border-radius:8px}#auth{display:flex;justify-content:flex-end;align-items:center;gap:10px;min-width:0}.account-panel-link{color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:6px 9px;font-size:11px;font-weight:700;white-space:nowrap;flex:0 0 auto}.account-panel-link:hover{color:#fff;border-color:#555b72}.user{display:flex;align-items:center;gap:9px;white-space:nowrap;min-width:0}.user img{width:34px;height:34px;border-radius:50%;flex:0 0 auto}.user-name{display:flex;align-items:center;min-width:0;max-width:240px;overflow:hidden}.user-name .player-name-role{min-width:0}.user-name .player-name-role>span:not(.player-tag):not(.role-badge){display:block;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user button{padding:7px 10px;background:var(--panel2);color:#ddd;white-space:nowrap;flex:0 0 auto}main{width:100%;margin:0;padding:18px 24px 70px}.hero{max-width:900px;margin:0 auto 46px;display:grid;grid-template-columns:150px 1fr;gap:34px;align-items:start}.hero-mark{width:150px;height:150px;display:grid;place-items:center;align-self:start;margin-top:10px}.hero-mark img{width:138px;height:138px;object-fit:contain}.hero-copy{position:relative}.hero-copy h1{font-size:clamp(34px,5vw,52px);line-height:1;margin:0 0 12px;letter-spacing:-.035em}.hero p{color:var(--muted);font-size:17px;margin:0}.hero form{display:flex;margin:24px 0 0;max-width:650px;background:var(--panel);padding:7px;border:1px solid #363a50;border-radius:9px}.hero input{flex:1;background:transparent;border:0;outline:0;color:#fff;font-size:16px;padding:10px 12px;min-width:0}.results{max-width:650px;margin:8px 0;text-align:left}#results{position:absolute;left:0;right:0;top:100%;z-index:6;margin-top:8px;max-width:650px;box-shadow:0 14px 34px #0009;border-radius:8px;overflow:hidden}#results:empty{display:none}.result{display:flex;justify-content:space-between;padding:12px 14px;background:var(--panel);border:1px solid var(--line);cursor:pointer}.result:hover{border-color:#555b72}.results .result strong{min-width:0;overflow:hidden}.results .result>.muted{flex:0 0 auto;margin-left:12px;white-space:nowrap}.search-empty{padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:7px}.player-name-role{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%}.player-tag{display:inline-flex;align-items:center;width:max-content;max-width:120px;padding:1px 5px;border-radius:4px;color:#d8d9e2;background:#ffffff0a;border:1px solid #ffffff20;font-size:10px;font-weight:700;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-name .player-name-role{gap:6px}.user-name .role-badge{transform:translateY(1px)}.role-badge{display:inline-flex;align-items:center;width:max-content;padding:2px 7px;border-radius:999px;font-size:9px;line-height:1.4;font-weight:900;letter-spacing:.08em;text-transform:uppercase;vertical-align:middle}.role-badge.donor{color:#ffe77a;background:#ffd21a14;border:1px solid #ffd21a70}.role-badge.admin{color:#ffe77a;background:#ffd21a14;border:1px solid #ffd21a70}.role-accent.donor{border-color:#ffd21a55!important}.role-accent.admin{border-color:#ffd21a55!important}.result.role-accent,.activity.role-accent{background:linear-gradient(90deg,#ffd21a0d,var(--panel2) 28%)}tbody tr.role-accent td:first-child{box-shadow:inset 3px 0 0 #ffd21a}.profile-badges{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:8px}.profile-badges .current-race{margin-top:0}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}.card,.panel{background:linear-gradient(180deg,#191b25,#161820);border:1px solid var(--line);border-radius:10px}.card{padding:9px 18px;position:relative;overflow:hidden}.card strong{display:block;font-size:29px}.card span{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em}.panel{padding:24px;margin:18px 0 28px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.section-title small{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}.section-title span,.profile-kicker{font-size:12px;letter-spacing:.2em;font-weight:900;color:var(--yellow)}.table-wrap{overflow:auto;max-width:100%;-webkit-overflow-scrolling:touch}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px 10px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:11px;text-transform:uppercase;color:var(--muted);letter-spacing:.08em}tbody tr[data-id]{cursor:pointer}tbody tr[data-id]:hover{background:#24266522}.muted{color:var(--muted)}.stats-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:18px;align-items:start}.stats-columns>#activity{overflow:hidden}.stats-columns>.panel{margin:0 0 28px;min-width:0}.stats-columns #leaderboard th,.stats-columns #leaderboard td{padding-left:8px;padding-right:8px}.activity-grid{display:grid;grid-template-columns:1fr;gap:10px}.activity{background:var(--panel2);border:1px solid transparent;border-radius:8px;padding:12px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;cursor:pointer}.activity>div:first-child{min-width:0}.activity .player-name-role{display:flex;flex-wrap:wrap;align-items:center;column-gap:7px;row-gap:5px}.activity .player-name-role>span:not(.player-tag):not(.role-badge){white-space:nowrap}.activity .level{justify-self:end}.activity:hover{border-color:#3b3e86}.activity strong{display:block}.activity small{color:var(--muted)}.activity .level{font-weight:700;color:#d9d9e2;white-space:nowrap;font-size:13px}.updates-panel{padding:22px}.updates-panel .section-title{margin-bottom:6px}.updates-list{display:flex;flex-direction:column}.update-item{display:block;padding:14px 0;border-bottom:1px solid var(--line)}a.update-item:hover .update-title{color:#fff}.update-item:last-child{border-bottom:0}.update-type{display:block;color:var(--yellow);font-size:10px;font-weight:900;letter-spacing:.12em;margin-bottom:3px}.update-title{display:block;font-size:14px;line-height:1.35;overflow-wrap:anywhere}.update-note{margin:5px 0 0;color:#c8cad2;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.update-date{display:block;margin-top:6px;color:var(--muted);font-size:10px}.updates-empty{margin:14px 0;color:var(--muted);font-size:12px}.updates-more{display:block;margin-top:10px;padding-top:14px;border-top:1px solid var(--line);color:#d8dae2;font-size:12px;font-weight:700}.updates-more:hover{color:#fff}#profile{transition:opacity .14s ease}.profile-switching{opacity:.62;pointer-events:none}.profile-head{display:flex;gap:18px;align-items:center;position:relative;padding-bottom:20px;border-bottom:1px solid var(--line)}.profile-head img{width:82px;height:82px;border-radius:9px}.profile-head h2{margin:3px 0 1px;font-size:31px;overflow-wrap:anywhere}.profile-identity{min-width:0;flex:1;overflow:hidden}.steam-profile{display:block;color:var(--muted);font-size:12px;margin-top:1px;width:max-content;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.steam-profile:hover{color:#d7d9e2}.profile-actions{align-self:flex-start;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.profile-back,.profile-forward,.profile-close{background:transparent;color:var(--muted);border:1px solid var(--line);padding:7px 10px;font-size:12px}.profile-back:hover,.profile-forward:hover,.profile-close:hover{color:#fff;border-color:#555b72}.current-race{display:inline-block;margin-top:8px;padding:5px 9px;background:#24266555;border:1px solid #3b3e86;border-radius:5px;font-size:12px;font-weight:700}.steam-details{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:7px;overflow:hidden;margin:20px 0}.steam-details>div{background:#14161e;padding:12px 15px}.steam-details small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.steam-details strong{display:block;margin-top:3px}.profile-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:20px 0}.profile-stat{background:var(--panel2);padding:14px;border-radius:7px;border:1px solid var(--line)}.profile-stat b{display:block;font-size:20px}.profile-stat small,.profile-meta small{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin-top:3px}.profile-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:7px;overflow:hidden;margin-bottom:20px}.profile-meta>div{background:#14161e;padding:13px 15px}.profile-meta strong{display:block;margin-top:3px}.favorites{margin:20px 0}.favorites h3{font-size:13px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:0 0 9px}.favorite-tags{display:flex;flex-wrap:wrap;gap:7px}.favorite-tags.favorites-collapsed{max-height:67px;overflow:hidden}.favorite-tags span,.favorite-tags button{background:#24266555;color:var(--text);border:1px solid #3b3e86;border-radius:20px;padding:5px 10px;font:inherit;font-size:12px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.favorite-tags button{appearance:none;cursor:pointer}.favorite-tags button:hover{background:#24266570;border-color:#5a5f78}.favorites-toggle{display:block;margin:12px auto 0;background:transparent;color:#c9cbd4;border:1px solid var(--line);padding:8px 14px;font-size:12px}.favorites-toggle:hover{color:#fff;border-color:#555b72}.profile-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.current-race{appearance:none;color:var(--text);font:inherit;cursor:pointer}.current-race:hover{border-color:#5a5f78;background:#24266570}.race-detail{margin:0 0 18px;padding:18px;background:#14161e;border:1px solid var(--line);border-radius:8px}.race-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.race-detail-head h3{margin:2px 0 0;font-size:22px}.race-detail-type{color:var(--yellow);font-size:10px;font-weight:900;letter-spacing:.14em}.race-detail-actions{display:flex;align-items:center;gap:8px}.race-wiki,.race-detail-close{background:transparent;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:7px 10px;font-size:12px;font-weight:700}.race-wiki:hover,.race-detail-close:hover{color:#fff;border-color:#555b72}.race-detail-close{line-height:1}.race-detail-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.race-detail-stats .profile-stat{padding:11px 13px}.race-progress{margin-top:16px}.race-progress-top{display:flex;justify-content:space-between;gap:16px;color:#d7d9e2;font-size:12px;margin-bottom:7px}.race-progress-track{height:7px;background:var(--panel2);border:1px solid var(--line);border-radius:999px;overflow:hidden}.race-progress-fill{height:100%;background:var(--yellow);border-radius:999px}.race-progress>small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.race-nonleveling{margin-top:14px;color:var(--muted);font-size:12px}.race-row{cursor:pointer}.race-row:hover{background:#ffffff08}.race-row.selected{background:#ffd21a0a}.race-row.selected td:first-child{box-shadow:inset 2px 0 0 var(--yellow)}.race-toggle{display:block;margin:16px auto 0;background:transparent;color:#c9cbd4;border:1px solid var(--line);padding:9px 16px}.race-toggle:hover{color:#fff;border-color:#555b72}.hidden{display:none!important}.error{color:#ff8e8e}footer{text-align:center;color:#666;padding:30px}@media(max-width:1400px){main{padding-left:18px;padding-right:18px}.site-layout{grid-template-columns:390px minmax(0,1fr);gap:68px}.server-rail{grid-column:1;width:100%}.server-panel{width:100%}.content-column{grid-column:2}.updates-rail{grid-column:2;grid-row:2;width:100%;justify-self:stretch;height:auto!important}.updates-panel{position:static;top:auto;width:100%;margin:0 0 28px}.hero{grid-template-columns:120px minmax(0,1fr);gap:24px}.hero-mark{width:120px;height:120px}.hero-mark img{width:112px;height:112px}.hero-copy h1{font-size:clamp(34px,4vw,46px)}.stats-columns{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.steam-details{grid-template-columns:repeat(2,1fr)}.profile-stats{grid-template-columns:repeat(3,1fr)}}@media(max-width:1050px){.site-layout{grid-template-columns:350px minmax(0,1fr);gap:16px}.server-panel{top:90px;max-height:calc(100vh - 108px);padding:24px}.server-top h2{font-size:18px}.server-subtitle{font-size:12px}.server-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.server-teams{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:90px minmax(0,1fr);gap:18px}.hero-mark{width:90px;height:90px}.hero-mark img{width:84px;height:84px}.hero-copy h1{font-size:34px}.hero p{font-size:15px}.card strong{font-size:25px}}@media(max-width:900px){.site-layout{grid-template-columns:1fr;gap:28px}.content-column{grid-column:1;grid-row:2}.updates-rail{grid-column:1;grid-row:3;width:100%;height:auto!important}.updates-panel{position:static;top:auto;width:100%}.server-rail{grid-column:1;grid-row:1;width:100%;height:auto!important}.server-panel{position:static;top:auto;margin-top:0;max-height:none;overflow:visible;min-height:0;padding:24px}.server-facts{grid-template-columns:repeat(3,1fr)}.server-teams{grid-template-columns:1fr 1fr}.hero{margin:0 auto 30px;max-width:900px;grid-template-columns:110px minmax(0,1fr);gap:22px}.hero-mark{width:110px;height:110px}.hero-mark img{width:104px;height:104px}.hero-copy h1{font-size:clamp(34px,7vw,46px)}.profile-meta{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){header{display:flex}.brand{margin-right:0}.join-nav{margin-right:auto}nav{display:none}.cards{grid-template-columns:repeat(2,1fr)}.activity-grid{grid-template-columns:1fr 1fr}header{padding:0 16px}.steam{font-size:12px}main{padding:32px 16px 60px}}@media(max-width:560px){.sticky-search-wrap{display:none}.race-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.race-detail-head{align-items:center}.race-progress-top{flex-direction:column;gap:2px}header{height:64px;padding:0 12px;gap:10px}.brand{gap:7px;font-size:16px}.brand img{width:36px;height:36px}.join-nav{padding:7px 10px;font-size:13px}#auth{flex:0 0 auto}.steam{padding:7px 9px;font-size:0;line-height:1}.steam::after{content:"Steam";font-size:13px;font-weight:600;line-height:1.5;white-space:nowrap}.hero{display:block;text-align:center}.hero-mark{margin:0 auto 22px}.hero form{margin-left:auto;margin-right:auto}.results{margin-left:auto;margin-right:auto}.cards,.activity-grid,.profile-stats,.profile-meta,.steam-details{grid-template-columns:1fr}.hero form{flex-direction:column}.hero button{margin-top:5px}.section-title small{display:none}.profile-head{align-items:flex-start}.profile-head img{width:64px;height:64px}.profile-head h2{font-size:24px}}

/* Responsive hardening: preserve readable column widths instead of squeezing. */
@media(max-width:2299px) and (min-width:2050px){
  .site-layout{grid-template-columns:340px minmax(0,1180px) 320px;gap:60px;justify-content:center}
  .server-rail{width:340px}
  .updates-rail{width:320px}
}
@media(max-width:2049px) and (min-width:1600px){
  main{padding-left:18px;padding-right:18px}
  .site-layout{grid-template-columns:340px minmax(0,1180px);gap:44px;justify-content:center}
  .server-rail{grid-column:1;grid-row:1;width:340px}
  .content-column{grid-column:2;grid-row:1;min-width:0}
  .updates-rail{grid-column:2;grid-row:2;width:100%;height:auto!important;justify-self:stretch}
  .updates-panel{position:static;top:auto;width:100%;max-height:none;overflow:visible;margin:0 0 28px}
}
@media(max-width:1599px) and (min-width:1101px){
  main{padding-left:18px;padding-right:18px}
  .site-layout{grid-template-columns:300px minmax(0,1fr);gap:28px;justify-content:stretch}
  .server-rail{grid-column:1;grid-row:1;width:300px}
  .content-column{grid-column:2;grid-row:1;min-width:0}
  .updates-rail{grid-column:2;grid-row:2;width:100%;height:auto!important;justify-self:stretch}
  .updates-panel{position:static;top:auto;width:100%;max-height:none;overflow:visible;margin:0 0 28px}
}
@media(max-width:1250px){
  header{display:flex;padding:0 18px;gap:14px}
  header nav{display:none}
  .brand{flex:0 0 auto}
  .join-nav{margin-right:auto}
  #auth{min-width:0;max-width:min(560px,60vw)}
  .user-name{max-width:210px}
  .user-name .player-name-role>span:not(.player-tag):not(.role-badge){max-width:110px}
}
@media(max-width:1100px){
  .site-layout{grid-template-columns:minmax(0,1fr);gap:28px}
  .server-rail{grid-column:1;grid-row:1;width:100%;height:auto!important;justify-self:stretch}
  .server-panel{position:static;top:auto;width:100%;max-height:none;overflow:visible;min-height:0}
  .content-column{grid-column:1;grid-row:2;width:100%;max-width:none}
  .updates-rail{grid-column:1;grid-row:3;width:100%;height:auto!important;justify-self:stretch}
  .updates-panel{position:static;top:auto;width:100%;max-height:none;overflow:visible;margin:0 0 28px}
  .hero{max-width:900px}
}
@media(max-width:900px){
  #auth{max-width:55vw}
  .user-name{max-width:170px}
  .profile-head{flex-wrap:wrap}
  .profile-actions{width:100%;justify-content:flex-start}
  .profile-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .steam-details,.profile-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  header{padding:0 12px;gap:10px}
  .brand{font-size:16px}
  .brand img{width:36px;height:36px}
  .join-nav{padding:7px 9px;font-size:12px}
  #auth{gap:7px;max-width:none}
  .account-panel-link{padding:6px 8px}
  .user{gap:7px}
  .user img{width:30px;height:30px}
  .user-name{max-width:135px}
  .user-name .player-name-role>span:not(.player-tag):not(.role-badge){max-width:72px}
  .role-badge{padding:2px 5px;font-size:8px}
  .user button{padding:7px 8px;font-size:12px}
  .hero-copy h1{font-size:clamp(30px,7vw,40px)}
}
@media(max-width:620px){
  .sticky-search-wrap{display:none}
  .brand span{display:none}
  .brand{gap:0}
  .account-panel-link{font-size:0}
  .admin-link::after{content:"Admin";font-size:11px}
  .donor-link::after{content:"Donor";font-size:11px}
  .user img{display:none}
  .user-name{max-width:100px}
  .user-name .player-name-role>span:not(.player-tag):not(.role-badge){max-width:58px}
}
@media(max-width:480px){
  header{gap:7px}
  .join-nav{padding:6px 8px;font-size:11px}
  .account-panel-link{padding:5px 7px}
  .user-name .player-name-role>span:not(.player-tag):not(.role-badge){display:none}
  .user-name{max-width:none}
  .user button{font-size:0;padding:7px 8px}
  .user button::after{content:"Out";font-size:11px}
  main{padding-left:10px;padding-right:10px}
  .panel{padding:18px}
  .server-panel{padding:18px}
  .profile-stats,.profile-meta,.steam-details,.cards,.activity-grid{grid-template-columns:1fr}
  .race-detail-stats{grid-template-columns:1fr 1fr}
  .profile-head img{width:58px;height:58px}
}
@media(max-height:760px) and (min-width:1101px){
  .server-panel,.updates-panel{max-height:calc(100vh - 92px)}
}

/* Notion panel overflow guard for collapsed responsive layouts. */
@media(max-width:2049px){
  .updates-rail{height:auto!important;min-height:0;align-self:start}
  .updates-rail .updates-panel{
    position:static!important;
    top:auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    margin-bottom:28px
  }
}
@media(min-width:2050px){
  .updates-rail{min-height:0}
  .updates-panel{
    height:auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain
  }
}


/* Header centering and live-search scroll handoff. */
@media(min-width:1251px){
  header{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  .header-left{display:flex;align-items:center;gap:clamp(12px,1.5vw,24px);justify-self:start;min-width:0}
  header nav{grid-column:2;justify-self:center}
  #auth{grid-column:3;justify-self:end}
}
@media(max-width:1250px){
  .header-left{display:flex;align-items:center;gap:14px;margin-right:auto;min-width:0}
  .header-left .join-nav{margin-right:0}
}
@media(max-width:760px){
  .header-left{gap:10px}
}
@media(max-width:480px){
  .header-left{gap:7px}
}
.sticky-search-wrap.visible~main #results{display:none}


/* Solid search result dropdowns. */
#results,
.sticky-results{
  background:#171922;
  border:1px solid var(--line);
  backdrop-filter:none;
}

#results .result,
.sticky-results .result{
  background:#171922;
}

#results .result:hover,
.sticky-results .result:hover{
  background:#1d202a;
}


/* Mobile navigation and sticky-search layout. */
.mobile-nav{display:none}

@media(max-width:620px){
  html{scroll-behavior:auto;scroll-padding-top:118px}

  header{
    height:106px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:64px 42px;
    align-items:center;
    padding:0 12px;
    gap:0 10px;
  }

  .header-left{
    grid-column:1;
    grid-row:1;
    margin:0;
    min-width:0;
  }

  #auth{
    grid-column:2;
    grid-row:1;
    justify-self:end;
  }

  .desktop-nav{display:none!important}

  .mobile-nav{
    grid-column:1 / -1;
    grid-row:2;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:center;
    gap:2px;
    width:100%;
    height:42px;
    border-top:1px solid var(--line);
    color:#c6c8d0;
    font-size:12px;
    font-weight:700;
  }

  .mobile-nav a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    height:32px;
    padding:0 4px;
    border-radius:5px;
    white-space:nowrap;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus-visible{
    color:#fff;
    background:#ffffff0a;
  }

  .mobile-nav .donate{
    height:32px;
    padding:0 8px;
    font-size:12px;
  }

  .join-nav,
  .server-foot .join-server{
    display:none!important;
  }

  .sticky-search-wrap{
    display:block!important;
    left:12px;
    width:calc(100vw - 24px);
    transform:translateY(-8px);
    z-index:4;
  }

  .sticky-search-wrap.visible{
    transform:translateY(0);
  }

  .sticky-search{
    width:100%;
  }

  .sticky-search input{
    font-size:16px;
  }

  .sticky-results{
    max-height:min(320px,45vh);
  }
}

@media(max-width:390px){
  .mobile-nav{font-size:11px}
  .mobile-nav .donate{font-size:11px;padding:0 6px}
}


/* Mobile authenticated header: preserve desktop identity clarity. */
@media(max-width:620px){
  header{
    grid-template-columns:40px minmax(0,1fr);
  }

  .header-left{
    width:40px;
  }

  #auth{
    width:100%;
    max-width:none;
    min-width:0;
    gap:6px;
    overflow:hidden;
  }

  .account-panel-link{
    flex:0 0 auto;
    padding:5px 7px;
    font-size:11px;
    line-height:1.2;
  }

  .admin-link::after,
  .donor-link::after{
    content:none;
  }

  .user{
    flex:0 1 auto;
    min-width:0;
    gap:5px;
  }

  .user img{
    display:block;
    width:28px;
    height:28px;
  }

  .user-name{
    flex:1 1 auto;
    min-width:0;
    max-width:150px;
  }

  .user-name .player-name-role{
    display:flex;
    width:100%;
    min-width:0;
    gap:5px;
  }

  .user-name .player-name-role>span:not(.player-tag):not(.role-badge){
    display:block;
    flex:1 1 auto;
    min-width:0;
    max-width:none;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .user-name .role-badge{
    flex:0 0 auto;
  }

  .user button{
    flex:0 0 auto;
    padding:6px 7px;
    font-size:11px;
    line-height:1.2;
  }

  .user button::after{
    content:none;
  }
}

@media(max-width:390px){
  #auth{gap:4px}
  .account-panel-link{padding:5px 6px;font-size:10px}
  .user{gap:4px}
  .user img{width:26px;height:26px}
  .user-name{max-width:126px}
  .user-name .player-name-role{gap:4px}
  .user-name .role-badge{font-size:7px;padding:2px 4px}
  .user button{padding:6px 6px;font-size:10px}
}


/* Leaderboard column balance after removing Time Played. */
@media(min-width:621px){
  #leaderboard table{table-layout:fixed}
  #leaderboard th:nth-child(1),
  #leaderboard td:nth-child(1){width:8%}
  #leaderboard th:nth-child(2),
  #leaderboard td:nth-child(2){width:52%}
  #leaderboard th:nth-child(3),
  #leaderboard td:nth-child(3){
    width:16%;
    text-align:right;
    padding-right:18px;
  }
  #leaderboard th:nth-child(4),
  #leaderboard td:nth-child(4){
    width:24%;
    text-align:right;
    padding-right:10px;
  }
}


/* Race-search experiment. */
.search-group-label{
  padding:7px 12px 5px;
  background:#11131a;
  color:var(--yellow);
  font-size:9px;
  font-weight:900;
  letter-spacing:.16em;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
}
.race-search-result strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.race-profile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.race-profile-head h2{margin:3px 0 0;font-size:28px}
.race-profile-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:20px 0}
.race-top-five{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.race-top-five-head{margin-bottom:8px}
.race-top-five-head span{color:var(--yellow);font-size:11px;font-weight:900;letter-spacing:.16em}
.race-top-player{
  width:100%;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 90px 140px;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  margin:0;
  background:transparent;
  color:var(--text);
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  text-align:left;
}
.race-top-player:hover{background:#ffffff08}
.race-top-player.current{background:#ffd21a0a}
.race-top-rank{color:var(--muted);font-weight:800}
.race-top-name{min-width:0;overflow:hidden}
.race-top-level,.race-top-xp{text-align:right;white-space:nowrap;color:#d9dbe4}
.race-top-loading,.race-top-empty{padding:10px 0;color:var(--muted)}
@media(max-width:760px){
  .race-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .race-top-player{grid-template-columns:34px minmax(0,1fr) 68px}
  .race-top-xp{grid-column:2 / -1;text-align:left;color:var(--muted);font-size:11px}
}

/* Homepage redesign experiment: full-width, always-visible server roster. */
.homepage-redesign main{width:100%;max-width:none;margin:0 auto}
.homepage-redesign .page-shell{width:min(1440px,calc(100% - 48px));max-width:1440px;margin:30px auto 48px;min-width:0}
.homepage-redesign .home-page,.homepage-redesign .stats-page{display:none}
.homepage-redesign.view-home .home-page{display:block}
.homepage-redesign.view-stats .stats-page{display:block}
.homepage-redesign .stats-page.content-column{grid-column:auto;max-width:1440px}
.homepage-redesign .server-panel{
  position:static!important;top:auto!important;width:100%;height:auto!important;
  min-height:0;max-height:none!important;overflow:visible!important;
  margin:0;padding:26px 30px;
}
.homepage-redesign .server-top{margin-bottom:20px;align-items:center}
.homepage-redesign .server-top h2{white-space:normal;overflow:visible;text-overflow:clip;font-size:clamp(21px,2vw,29px)}
.homepage-redesign .server-facts{gap:12px;margin-bottom:24px}
.homepage-redesign .server-facts .profile-stat{padding:13px 16px}
.homepage-redesign .server-facts .profile-stat b{font-size:clamp(17px,1.8vw,24px)}
.homepage-redesign .server-teams{gap:clamp(20px,3vw,50px);padding-top:22px}
.homepage-redesign .server-teams>div{min-width:0}
.homepage-redesign .server-teams h3{font-size:13px;color:var(--yellow);border-bottom:1px solid var(--line);padding-bottom:10px;margin:0 0 8px}
.homepage-redesign .server-player{min-width:0;padding:9px 12px;border-bottom:1px solid #ffffff0a}
.homepage-redesign .server-player.clickable{margin:0;padding:9px 12px}
.homepage-redesign .server-player strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.homepage-redesign .server-player small{font-size:12px}
.homepage-redesign .server-spectators{margin-top:22px}
.homepage-redesign .server-spectators h3{color:var(--yellow)}
.homepage-redesign .server-foot{margin-top:20px}
.homepage-redesign .home-secondary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start;margin-top:22px}
.homepage-redesign .home-secondary>.panel{min-width:0;margin:0}
.homepage-redesign .updates-panel{position:static!important;top:auto!important;max-height:none!important;overflow:visible!important;height:auto!important;width:100%}
.homepage-redesign .section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.homepage-redesign .section-link{font-size:12px;color:var(--muted);letter-spacing:normal;font-weight:600}
.homepage-redesign .section-link:hover{color:var(--yellow)}
.homepage-redesign nav a[aria-current="page"]{color:var(--yellow)}
.homepage-redesign .home-secondary table{width:100%}
.homepage-redesign #home-leaders tr{cursor:pointer}
.homepage-redesign #home-leaders tr:hover{background:#ffffff0a}
.homepage-redesign .stats-columns{margin-top:22px}
@media(max-width:850px){
  .homepage-redesign .page-shell{width:calc(100% - 28px);margin:20px auto 32px}
  .homepage-redesign .home-secondary{grid-template-columns:1fr;gap:16px}
  .homepage-redesign .server-panel{padding:19px}
  .homepage-redesign .server-teams{gap:16px}
}
@media(max-width:620px){
  .homepage-redesign .page-shell{width:calc(100% - 20px);margin:12px auto 25px}
  .homepage-redesign .server-panel{padding:15px}
  .homepage-redesign .server-facts{gap:5px;margin-bottom:18px}
  .homepage-redesign .server-facts .profile-stat{padding:8px 7px}
  .homepage-redesign .server-facts .profile-stat b{font-size:13px}
  .homepage-redesign .server-teams{grid-template-columns:1fr;gap:16px}
  .homepage-redesign .server-player strong{font-size:13px}
  .homepage-redesign #home-leaderboard th:nth-child(4),.homepage-redesign #home-leaderboard td:nth-child(4){display:none}
}

/* Compact full-roster desktop layout: never hide roster entries or secondary detail. */
@media(min-width:851px){
  .homepage-redesign .page-shell{margin-top:18px}
  .homepage-redesign .server-panel{padding:20px 24px}
  .homepage-redesign .server-top{margin-bottom:12px}
  .homepage-redesign .server-facts{gap:10px;margin-bottom:15px}
  .homepage-redesign .server-facts .profile-stat{padding:9px 13px}
  .homepage-redesign .server-teams{padding-top:12px;gap:30px}
  .homepage-redesign .server-teams h3{margin-bottom:4px;padding-bottom:7px}
  .homepage-redesign .server-player,
  .homepage-redesign .server-player.clickable{padding:5px 9px;gap:1px}
  .homepage-redesign .server-player strong{font-size:13px;line-height:1.2}
  .homepage-redesign .server-player small{font-size:11px;line-height:1.2}
  .homepage-redesign .server-spectators{margin-top:12px}
  .homepage-redesign .server-foot{margin-top:12px}
  .homepage-redesign .home-secondary{margin-top:16px}
}

/* Live server facts: a slim, unboxed information strip rather than nested cards. */
.homepage-redesign .server-facts{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:center;gap:0;margin:9px 0 12px;
  padding:7px 0;border-top:1px solid var(--line);
}
.homepage-redesign .server-facts .profile-stat{
  min-width:0;padding:3px 12px!important;
  background:transparent!important;box-shadow:none!important;
  border:0!important;border-radius:0!important;
}
.homepage-redesign .server-facts .profile-stat+.profile-stat{
  border-left:1px solid var(--line)!important;
}
.homepage-redesign .server-facts .profile-stat:first-child{padding-left:0!important}
.homepage-redesign .server-facts .profile-stat b{
  display:block;line-height:1.2;font-size:clamp(15px,1.6vw,21px);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.homepage-redesign .server-facts .profile-stat small{
  font-size:10px;line-height:1.1;margin-top:4px;
}
@media(max-width:620px){
  .homepage-redesign .server-facts{margin:8px 0 10px;padding:5px 0}
  .homepage-redesign .server-facts .profile-stat{padding:3px 7px!important}
  .homepage-redesign .server-facts .profile-stat b{font-size:13px}
}

/* Compact roster identities: Steam avatar + established role/tag flare. */
.homepage-redesign .server-player,
.homepage-redesign .server-player.clickable{
  display:flex;flex-direction:row;align-items:center;gap:8px;min-height:37px;
}
.homepage-redesign .server-avatar-placeholder{
  display:block;flex:0 0 28px;width:28px;height:28px;
  border:1px solid var(--line);background:var(--panel2);
  border-radius:4px;overflow:hidden;
}
.homepage-redesign .server-avatar{display:block;width:100%;height:100%;object-fit:cover}
.homepage-redesign .server-player-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:1px}
.homepage-redesign .server-player-name{display:flex;min-width:0;align-items:center}
.homepage-redesign .server-player-name .player-name-role{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0;font-size:13px;font-weight:600;line-height:1.2}
.homepage-redesign .server-player-name .role-badge{font-size:9px;line-height:1;padding:3px 5px}
.homepage-redesign .server-player-name .player-tag{font-size:10px}
.homepage-redesign .server-player-info small{font-size:11px;line-height:1.2}
.homepage-redesign .server-player.role-accent{border-left-width:2px;border-left-style:solid}
.homepage-redesign .server-player.role-accent.donor{border-left-color:#e8bd3b}
.homepage-redesign .server-player.role-accent.admin{border-left-color:#e8bd3b}
@media(max-width:620px){
  .homepage-redesign .server-player,.homepage-redesign .server-player.clickable{min-height:35px;gap:7px}
  .homepage-redesign .server-avatar-placeholder{flex-basis:26px;width:26px;height:26px}
}

/* Roster polish: readable breathing room, role flare without outlined boxes. */
.homepage-redesign .server-player,
.homepage-redesign .server-player.clickable{
  padding:8px 10px;
  min-height:46px;
  gap:10px;
  border:0!important;
  border-bottom:1px solid #ffffff0b!important;
  border-radius:3px;
  background:transparent;
  box-shadow:none!important;
}
.homepage-redesign .server-player.role-accent,
.homepage-redesign .server-player.role-accent.donor,
.homepage-redesign .server-player.role-accent.admin{
  border:0!important;
  border-bottom:1px solid #ffffff13!important;
  border-left:2px solid #d3ac42!important;
  padding-left:8px;
  background:linear-gradient(90deg,#ffd21a09,transparent 45%);
}
.homepage-redesign .server-player:hover{background:#24266533}
.homepage-redesign .server-player.role-accent:hover{background:linear-gradient(90deg,#ffd21a16,#24266522 65%)}
.homepage-redesign .server-avatar-placeholder{
  flex-basis:30px;width:30px;height:30px;
}
.homepage-redesign .server-player-info{gap:3px}
.homepage-redesign .server-player-name{display:flex;align-items:center;gap:6px;flex-wrap:wrap;line-height:1.25}
.homepage-redesign .server-player-label{font-weight:600;font-size:13px;min-width:0;overflow-wrap:anywhere}
.homepage-redesign .server-player-name .role-badge{
  flex:0 0 auto;font-size:9px;padding:2px 6px;line-height:1.3;
  border-radius:999px;
}
.homepage-redesign .server-player-name .player-tag{
  flex:0 1 auto;font-size:10px;padding:1px 5px;min-width:0;
}
.homepage-redesign .server-player-info small{font-size:11px;line-height:1.3}
@media(max-width:620px){
  .homepage-redesign .server-player,.homepage-redesign .server-player.clickable{min-height:43px;padding:7px 6px;gap:8px}
  .homepage-redesign .server-player.role-accent{padding-left:5px}
  .homepage-redesign .server-avatar-placeholder{flex-basis:28px;width:28px;height:28px}
}

/* Slightly larger Steam avatar, while keeping the roster comfortably compact. */
.homepage-redesign .server-avatar-placeholder{
  flex:0 0 34px;width:34px;height:34px;
}
@media(max-width:620px){
  .homepage-redesign .server-avatar-placeholder{
    flex-basis:32px;width:32px;height:32px;
  }
}

/* Server call-to-action: status above Join in the upper-right header. */
.homepage-redesign .server-header-actions{display:flex;flex-direction:column;align-items:flex-end;gap:9px;flex:0 0 auto}
.homepage-redesign .server-header-actions .join-server{display:inline-flex;align-items:center;justify-content:center;padding:9px 15px;font-size:13px;line-height:1.2}
.homepage-redesign .server-top>div:first-child{min-width:0}
@media(max-width:620px){
  .homepage-redesign .server-header-actions{gap:7px}
  .homepage-redesign .server-header-actions .join-server{padding:8px 10px;font-size:11px}
}

/* Primary join action beside ONLINE, no bulky last-update footer. */
.homepage-redesign .server-header-actions{
  display:flex;flex-direction:row;align-items:center;justify-content:flex-end;
  flex-wrap:wrap;gap:12px;
}
.homepage-redesign .server-header-actions .join-server{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 17px;font-size:14px;line-height:1.2;
  margin:0;min-height:42px;
}
.homepage-redesign .server-header-actions .join-server svg{flex:0 0 auto}
.homepage-redesign .server-subtitle{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.homepage-redesign .server-updated{color:var(--muted);opacity:.82}
.homepage-redesign .server-updated::before{content:"·";margin-right:9px}
@media(max-width:620px){
  .homepage-redesign .server-header-actions{gap:7px}
  .homepage-redesign .server-header-actions .join-server{padding:9px 10px;min-height:35px;font-size:11px;gap:5px}
  .homepage-redesign .server-header-actions .join-server svg{width:15px;height:15px}
}

/* Keep only complete Notion entries that fit the desktop Top 5 panel. */
.homepage-redesign #updates .update-item[hidden]{display:none!important}
.homepage-redesign #updates{scroll-margin-top:100px}
@media(max-width:620px){.homepage-redesign #updates{scroll-margin-top:120px}}

/* Fitted Notion list: only the Current Build divider marks the end. */
.homepage-redesign #updates .update-item.last-visible-update{border-bottom:0}

/* Opt-in 50-player layout stress test; regular server roster is unchanged. */
.homepage-redesign .roster-preview-warning{
  padding:9px 12px;margin:8px 0 12px;border:1px solid #c3a44970;
  border-radius:5px;background:#b28f2017;color:#ffe68b;font-size:12px;font-weight:700;
}
.homepage-redesign .roster-preview-teams{gap:22px}
.homepage-redesign .roster-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 9px}
.homepage-redesign .roster-preview-grid .server-player{
  min-width:0;min-height:46px;padding:7px 5px;gap:7px;
}
.homepage-redesign .roster-preview-grid .server-player-label{font-size:12px}
.homepage-redesign .roster-preview-grid .server-player-name .role-badge{font-size:8px}
.homepage-redesign .roster-preview-grid .server-avatar-placeholder{flex:0 0 32px;width:32px;height:32px}
.homepage-redesign .roster-preview-grid .server-player:not(.clickable){cursor:default}
@media(max-width:950px){
  .homepage-redesign .roster-preview-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .homepage-redesign .roster-preview-teams{grid-template-columns:1fr}
}

/* Two roster subcolumns per team when either team has >=16 players.
   CSS columns fill top to bottom first, then continue in the next column. */
@media(min-width:1100px){
  .homepage-redesign .roster-dual-grid{
    display:block;columns:2;column-gap:12px;
  }
  .homepage-redesign .roster-dual-grid .server-player{
    break-inside:avoid;page-break-inside:avoid;min-width:0;
  }
}
@media(max-width:1099px){
  .homepage-redesign .roster-dual-grid{display:block}
}

/* Expandable Notion changelog preview; preserves compact homepage by default. */
.homepage-redesign #updates{scroll-margin-top:130px}
.homepage-redesign #updates .updates-toggle,
.homepage-redesign #updates .updates-collapse{
  appearance:none;background:transparent;border:0;padding:0;
  color:inherit;font:inherit;text-align:left;cursor:pointer;
}
.homepage-redesign #updates .updates-toggle{
  font-size:inherit;font-weight:inherit;letter-spacing:inherit;
}
.homepage-redesign #updates .updates-toggle:hover,
.homepage-redesign #updates .updates-collapse:hover{color:var(--yellow)}
.homepage-redesign #updates .updates-toggle-hint{font-size:13px;color:var(--muted);margin-left:5px}
.homepage-redesign #updates.updates-expanded .updates-toggle-hint{display:none}
.homepage-redesign #updates .updates-collapse{font-size:12px;color:var(--muted);font-weight:600;letter-spacing:normal}
.homepage-redesign #updates .updates-collapse[hidden]{display:none!important}
.homepage-redesign #updates.updates-expanded{align-self:start;height:auto!important;max-height:none!important;overflow:visible!important}

/* Stats dashboard phase 1: scoped layout; no homepage or profile behavior changes. */
.homepage-redesign.view-stats .stats-page.page-shell{width:min(1440px,calc(100% - 48px));max-width:1440px;margin:30px auto 60px}
.homepage-redesign.view-stats .stats-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.8fr);align-items:end;gap:32px;padding:20px 0 28px;border-bottom:1px solid var(--line);margin-bottom:26px}
.homepage-redesign.view-stats .stats-intro h1{font-size:clamp(32px,3.4vw,46px);line-height:1.08;margin:7px 0 8px;letter-spacing:-.035em}
.homepage-redesign.view-stats .stats-intro p{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.homepage-redesign.view-stats .stats-eyebrow{color:var(--yellow);font-weight:800;letter-spacing:.15em;font-size:11px}
.homepage-redesign.view-stats .stats-search{position:relative;min-width:0}
.homepage-redesign.view-stats .stats-search form{margin:0}
.homepage-redesign.view-stats .stats-search input{min-width:0;width:100%}
.homepage-redesign.view-stats .stats-search .results{z-index:30}
.homepage-redesign.view-stats .stats-section-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:0 0 15px}
.homepage-redesign.view-stats .stats-section-heading h2{font-size:20px;line-height:1.3;margin:5px 0 0;letter-spacing:-.02em}
.homepage-redesign.view-stats .stats-section-context{color:var(--muted);font-size:12px}
.homepage-redesign.view-stats .stats-overview-section .cards{margin-bottom:34px}
.homepage-redesign.view-stats .stats-overview-section .card{padding:18px 22px;min-height:100px;display:flex;flex-direction:column;justify-content:center;gap:7px}
.homepage-redesign.view-stats .stats-overview-section .card strong{font-size:clamp(23px,2.2vw,34px);line-height:1.1}
.homepage-redesign.view-stats .stats-overview-section .card span{font-size:11px}
.homepage-redesign.view-stats .stats-columns{grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr);gap:20px;margin-top:0}
.homepage-redesign.view-stats .stats-columns>.panel{padding:24px;margin:0;min-width:0}
.homepage-redesign.view-stats .stats-panel-subtitle{font-size:11px;font-weight:500;letter-spacing:normal;text-transform:none;color:var(--muted)}
.homepage-redesign.view-stats .stats-columns .section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}
.homepage-redesign.view-stats .stats-columns #leaderboard th,
.homepage-redesign.view-stats .stats-columns #leaderboard td{padding:13px 12px}
.homepage-redesign.view-stats .stats-columns #activity .activity{padding:11px 13px}
@media(max-width:900px){
 .homepage-redesign.view-stats .stats-intro{grid-template-columns:1fr;gap:20px}
 .homepage-redesign.view-stats .stats-columns{grid-template-columns:1fr}
 .homepage-redesign.view-stats .stats-columns #activity{height:auto!important}
 .homepage-redesign.view-stats .stats-page.page-shell{width:calc(100% - 28px)}
}
@media(max-width:620px){
 .homepage-redesign.view-stats .stats-page.page-shell{width:calc(100% - 20px);margin:16px auto 40px}
 .homepage-redesign.view-stats .stats-intro{padding:12px 0 22px}
 .homepage-redesign.view-stats .stats-overview-section .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .homepage-redesign.view-stats .stats-overview-section .card{padding:13px;min-height:86px}
 .homepage-redesign.view-stats .stats-columns>.panel{padding:15px}
 .homepage-redesign.view-stats .stats-panel-subtitle{display:none}
}

/* Stats compact revision: restore original styled search and tight totals strip. */
.homepage-redesign.view-stats .stats-intro{display:block;padding:4px 0 0;border:0;margin:0}
.homepage-redesign.view-stats .stats-intro h1{margin:0 0 5px;font-size:clamp(28px,3vw,40px)}
.homepage-redesign.view-stats .stats-intro p{margin:0;color:var(--muted);font-size:13px}
.homepage-redesign.view-stats .stats-search{position:relative;width:100%;max-width:none;margin:17px 0 19px}
.homepage-redesign.view-stats .stats-search #search{
  display:flex;align-items:center;gap:7px;margin:0;
  width:100%;max-width:none;padding:7px;
  background:var(--panel);border:1px solid #363a50;border-radius:9px;
}
.homepage-redesign.view-stats .stats-search #q{
  flex:1;min-width:0;width:auto;padding:10px 12px;
  background:transparent;border:0;outline:0;color:#fff;font-size:15px;
}
.homepage-redesign.view-stats .stats-search #search button{flex-shrink:0;align-self:center}
.homepage-redesign.view-stats .stats-search #results{max-width:none;top:100%;left:0;right:0}
.homepage-redesign.view-stats .stats-overview-section{
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  margin:0 0 23px;padding:12px 0;
}
.homepage-redesign.view-stats .stats-overview-section .cards{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;
}
.homepage-redesign.view-stats .stats-overview-section .card{
  padding:5px 20px;min-height:0;gap:3px;border:0;border-radius:0;
  background:transparent;box-shadow:none;
}
.homepage-redesign.view-stats .stats-overview-section .card+.card{border-left:1px solid var(--line)}
.homepage-redesign.view-stats .stats-overview-section .card strong{font-size:clamp(20px,2vw,27px);line-height:1.1;white-space:nowrap}
.homepage-redesign.view-stats .stats-overview-section .card span{font-size:10px;letter-spacing:.06em}
.homepage-redesign.view-stats .stats-search #q:focus{box-shadow:none}
@media(max-width:620px){
  .homepage-redesign.view-stats .stats-overview-section .cards{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:14px}
  .homepage-redesign.view-stats .stats-overview-section .card{padding:4px 12px}
  .homepage-redesign.view-stats .stats-overview-section .card:nth-child(3){border-left:0}
  .homepage-redesign.view-stats .stats-overview-section .card strong{font-size:22px}
  .homepage-redesign.view-stats .stats-search{margin:15px 0}
}

/* Hide the signed-out fallback until the initial session check finishes. */
#auth.auth-pending{visibility:hidden}

/* Spectators use one compact horizontal strip instead of stacked roster rows. */
.homepage-redesign .spectator-roster{display:flex;align-items:center;gap:12px;overflow-x:auto;max-width:100%;padding:2px 0 5px;scrollbar-width:thin}
.homepage-redesign .spectator-roster .server-player,.homepage-redesign .spectator-roster .server-player.clickable{flex:0 0 auto;min-width:0;max-width:280px;margin:0;padding:5px 8px;border:0!important;border-radius:6px}
.homepage-redesign .spectator-roster .server-player-info{flex:0 1 auto}
.homepage-redesign .spectator-roster .server-player-name{white-space:nowrap}
.homepage-redesign .spectator-roster .server-player-label{overflow:hidden;text-overflow:ellipsis}
.homepage-redesign .spectator-roster .server-player-info small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}


/* Wiki-grounded About page; same dark theme as the rest of the site. */
.homepage-redesign .about-page{display:none}
.homepage-redesign.view-about .about-page{display:block;width:min(1180px,calc(100% - 48px));margin:0 auto}
.homepage-redesign .about-intro{padding:18px 0 26px;border-bottom:1px solid var(--line);margin-bottom:22px}
.homepage-redesign .about-intro h1{font-size:clamp(28px,3vw,40px);margin:6px 0 12px}
.homepage-redesign .about-intro p:last-child{max-width:820px;line-height:1.7;color:var(--muted);margin:0}
.homepage-redesign .about-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.homepage-redesign .about-sections .panel{padding:24px}
.homepage-redesign .about-sections h2{margin:0 0 12px;font-size:19px;color:var(--yellow)}
.homepage-redesign .about-sections p{color:var(--muted);line-height:1.7;margin:0 0 12px}
.homepage-redesign .about-sections a,.homepage-redesign .about-source a{color:var(--yellow)}
.homepage-redesign .about-links{display:flex;flex-wrap:wrap;gap:12px 22px}
.homepage-redesign .about-source{margin:20px 0;color:var(--muted);font-size:12px}
@media(max-width:750px){.homepage-redesign .about-sections{grid-template-columns:1fr}}

/* About page FAQ: readable with JS disabled, compact when collapsed. */
.homepage-redesign .about-faq{margin-top:22px;padding:24px}
.homepage-redesign .about-faq-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:16px}
.homepage-redesign .about-faq-heading h2{margin:6px 0;font-size:22px;color:var(--yellow)}
.homepage-redesign .about-faq-heading p:not(.profile-kicker){color:var(--muted);margin:0}
.homepage-redesign .about-faq a{color:var(--yellow)}
.homepage-redesign .about-faq-items{display:grid;gap:8px}
.homepage-redesign .about-faq-items details{border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.025);padding:0 16px}
.homepage-redesign .about-faq-items summary{padding:15px 6px;cursor:pointer;font-weight:600}
.homepage-redesign .about-faq-items details[open] summary{color:var(--yellow);border-bottom:1px solid var(--line)}
.homepage-redesign .about-faq-items details p{line-height:1.65;color:var(--muted);margin:12px 6px}
.homepage-redesign .about-faq-items code{color:var(--yellow)}
.homepage-redesign .about-faq-credit{font-size:12px;color:var(--muted);margin:18px 0 0}
@media(max-width:750px){.homepage-redesign .about-faq-heading{align-items:flex-start;flex-direction:column}}

/* Homepage initial server-rendered roster; client JS replaces with full live cards. */
.homepage-redesign .server-prerender-roster{display:flex;flex-wrap:wrap;gap:7px 12px}
.homepage-redesign .server-prerender-player{font-size:13px;color:var(--text);padding:4px 0}


/* Shared mobile-only navigation across Server, Stats and About. */
.mobile-server-menu{display:none}
@media(max-width:620px){
  .homepage-redesign header{
    height:64px;
    grid-template-columns:44px 44px minmax(0,1fr);
    grid-template-rows:64px;
    gap:8px;
    padding:0 12px;
    overflow:visible;
  }
  .homepage-redesign .mobile-server-menu{
    display:block;grid-column:1;grid-row:1;position:relative;z-index:12;
  }
  .homepage-redesign .mobile-server-menu>summary{
    list-style:none;display:flex;align-items:center;justify-content:center;
    width:44px;height:44px;border:1px solid var(--line);border-radius:8px;
    cursor:pointer;color:var(--text);
  }
  .homepage-redesign .mobile-server-menu>summary::-webkit-details-marker{display:none}
  .homepage-redesign .mobile-server-menu>summary:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
  .homepage-redesign .menu-bars{display:grid;gap:5px}
  .homepage-redesign .menu-bars i{display:block;width:20px;height:2px;border-radius:2px;background:currentColor}
  .homepage-redesign .mobile-server-menu[open]>summary{color:var(--yellow);border-color:var(--yellow)}
  .homepage-redesign .mobile-server-menu-links{
    position:absolute;top:51px;left:0;width:min(270px,calc(100vw - 24px));
    display:flex!important;flex-direction:column;align-items:stretch;gap:2px;
    padding:9px;background:#171922;border:1px solid #383d4c;border-radius:10px;
    box-shadow:0 16px 36px #0009;z-index:20;
  }
  .homepage-redesign .mobile-server-menu-links a{
    display:block;width:100%;padding:11px 13px;border-radius:6px;
    font-size:15px;font-weight:600;color:var(--text);
  }
  .homepage-redesign .mobile-server-menu-links a:hover,
  .homepage-redesign .mobile-server-menu-links a:focus-visible{background:#303381;color:#fff}
  .homepage-redesign .header-left{grid-column:2;grid-row:1;width:44px}
  .homepage-redesign #auth{grid-column:3;grid-row:1;justify-self:end}
  .homepage-redesign .mobile-nav{display:none!important}
  .homepage-redesign .server-top{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}
  .homepage-redesign .server-top>div:first-child{flex:1 1 100%;min-width:0}
  .homepage-redesign .server-top h2{font-size:23px;line-height:1.2}
  .homepage-redesign .server-header-actions{
    flex:1 1 100%;display:flex;flex-direction:row;justify-content:flex-start;
    align-items:center;flex-wrap:wrap;gap:10px;
  }
  .homepage-redesign.view-home .server-header-actions .join-server{display:none!important}
  .homepage-redesign .server-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
  .homepage-redesign .server-facts .profile-stat{min-width:0}
  .homepage-redesign .server-facts .profile-stat b{overflow-wrap:anywhere}
}

@media(max-width:620px){
  .homepage-redesign .mobile-server-menu:not([open]) .mobile-server-menu-links{display:none!important}
  .homepage-redesign .mobile-server-menu-links a[aria-current="page"]{color:var(--yellow)}
  .homepage-redesign.view-stats .stats-page,.homepage-redesign.view-about .about-page{scroll-margin-top:75px}
}


/* Desktop stats: quiet first-place race achievements, absent on mobile. */
.profile-first-place{display:none}
@media(min-width:621px){
  .homepage-redesign.view-stats .profile-first-place{
    display:flex;align-items:center;flex-wrap:wrap;gap:9px 14px;
    padding:10px 14px;margin:12px 0;
    border:1px solid var(--line);border-radius:8px;background:rgba(255,210,26,.035);
  }
  .homepage-redesign.view-stats .profile-first-place-label{
    color:var(--yellow);font-size:10px;letter-spacing:.09em;font-weight:800;white-space:nowrap;
  }
  .homepage-redesign.view-stats .profile-first-place-races{display:flex;flex-wrap:wrap;gap:7px}
  .homepage-redesign.view-stats .profile-first-place-chip{
    background:#222531;border:1px solid #484333;border-radius:999px;
    color:#e8e8ed;padding:4px 10px;font:600 12px/1.35 inherit;
    cursor:pointer;
  }
  .homepage-redesign.view-stats .profile-first-place-chip:hover,
  .homepage-redesign.view-stats .profile-first-place-chip:focus-visible{
    border-color:var(--yellow);color:var(--yellow);
  }
}

/* Browser-only feedback when an unauthorized visitor opens /admin. */
.access-denied-notice{
  position:fixed;top:86px;right:20px;z-index:9999;
  display:flex;align-items:center;gap:16px;
  max-width:min(430px,calc(100vw - 32px));padding:14px 16px;
  border:1px solid #9c4343;border-radius:9px;
  background:#251b22;color:#f5dadd;box-shadow:0 10px 35px #0008;
  font-size:14px;line-height:1.45
}
.access-denied-notice button{
  flex-shrink:0;border:0;background:transparent;color:inherit;
  font-size:24px;cursor:pointer;line-height:1;padding:0 2px
}
@media(max-width:650px){.access-denied-notice{top:75px;left:16px;right:16px;max-width:none}}
