/* Reserve real component geometry before account and lobby requests finish. */
@media(min-width:901px){
 header.top[data-member-layout]{padding-block:8px;min-height:105px}
 header.top[data-member-layout]>.account-bar{display:grid;grid-template-columns:minmax(120px,1fr) 142px 220px 98px 100px;grid-template-rows:minmax(88px,auto);gap:8px;align-items:center;min-width:0;width:100%}
 header.top[data-member-layout] .account-bar>.member-tools{grid-area:1/1;display:flex;flex-wrap:wrap;justify-content:flex-end;min-width:0;max-width:100%}
 header.top[data-member-layout] .account-bar>.site-language{grid-area:1/2}
 header.top[data-member-layout] .account-bar>#account-summary{grid-area:1/3;width:220px;min-width:0;max-width:220px;min-height:80px;align-items:center}
 header.top[data-member-layout] .account-bar>#account-summary:not([data-member]){visibility:hidden}
 header.top[data-member-layout] .account-bar>.online-pill{grid-area:1/4;justify-content:center;min-width:0;white-space:normal;font-size:10px}
 header.top[data-member-layout] .account-bar>:is(#account-open,#logout){grid-area:1/5;min-width:0;padding-inline:8px;white-space:normal;overflow-wrap:anywhere;text-align:center}
 header.top[data-member-layout] .account-bar>#account-open{visibility:hidden}
}
@media(min-width:1440px){header.top[data-member-layout]{grid-template-columns:200px minmax(0,1fr) 800px}}
@media(min-width:901px) and (max-width:1439px){header.top[data-member-layout]{grid-template-rows:64px minmax(88px,auto)}}
#profile-content,#match-content{display:flow-root}
/* One complete live-card row, then room for match history; content can grow. */
#live-rooms{min-height:320px;align-items:stretch}
#live-rooms>.empty{min-height:320px}
#recent-matches{min-height:440px}
#tab-ranking .table-wrap{min-height:440px}
#tab-ranking table{table-layout:fixed;width:100%;min-width:660px}
#tab-ranking th:first-child{width:8%}
#tab-ranking th:nth-child(2){width:32%}
#tab-ranking th:nth-child(n+3){width:10%}
.season-filters{flex:0 0 320px;min-width:0}
.season-filters>label{flex:1;min-width:0}
.season-filters select{width:100%}
@media(max-width:700px){.season-filters{flex-basis:auto;width:100%}}
#tournament-list{min-height:440px}
#season-detail{min-height:3.2em;line-height:1.6}
#season-note{min-height:3.2em;line-height:1.6}
#season-title{min-height:1.4em;line-height:1.4}
#rank-info{min-height:1.6em}
.ranking-pagination{min-height:48px}
#lobby-status{display:block;min-width:150px;text-align:end;line-height:1.5}
.lobby-placeholder{min-width:0;min-height:100%;border:1px solid #344553;border-radius:16px;background:linear-gradient(120deg,#1a2631,#141c25);padding:26px;display:flex;flex-direction:column;justify-content:center;gap:20px}
.lobby-placeholder::before,.lobby-placeholder::after{content:"";display:block;height:12px;border-radius:6px;background:#263441;width:60%;max-width:260px}
.lobby-placeholder::after{width:38%}
#recent-matches>.lobby-placeholder{min-height:440px}
/* Recent results belong below the live list. Reveal this still-empty section
   together with the first response, after the live card count is known. */
#live-rooms:has(>.lobby-placeholder)~:is(.match-history-heading,.match-history-list,.match-history-more){visibility:hidden}
/* Connecting and connected labels share a column even in long translations. */
#community>.section-heading{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center}
@media(max-width:640px){#community>.section-heading{grid-template-columns:minmax(0,1fr) 130px}}
#season-champion .champion-photo>a{line-height:0}
/* The featured star frame has the same headroom before its decoration loads. */
#rg-hero-legend{margin-top:33px}
@media(max-width:640px){#lobby-status{min-width:0;max-width:130px;min-height:3em}#live-rooms,#live-rooms>.empty{min-height:350px}#recent-matches,#recent-matches>.lobby-placeholder{min-height:500px}}
