/* Game identity stays readable on every roster, even between group headings. */
.team-badge.team-game-art{
 position:relative;display:block;flex:none;width:64px;height:84px;min-width:64px;
 padding:0;overflow:hidden;align-self:center;border:1px solid #454545;
 border-radius:5px;background:#202020;color:#fafafa;isolation:isolate;
}
.team-badge.team-game-art>img{
 display:block;width:100%;height:100%;object-fit:cover;object-position:center;
}
.team-badge.team-game-art>.team-game-abbr{
 position:absolute;inset:auto 0 0;display:block;padding:5px 3px 4px;
 background:#161616ed;border-top:1px solid #ffffff14;color:#fafafa;
 font-family:var(--sans);font-size:10px;font-weight:700;line-height:1.2;
 letter-spacing:.8px;text-align:center;white-space:nowrap;
}
.team-identity-copy{display:flex;flex:1;flex-direction:column;gap:7px;min-width:0}
.team-identity-copy .team-game-name{
 display:block;margin:0;color:#fafafa;font-family:var(--sans);font-size:12px;
 font-weight:600;line-height:1.45;letter-spacing:.15px;overflow-wrap:anywhere;
}
.team-identity-copy .team-identity-name{
 display:block;margin:0;color:#fafafa;font-family:var(--sans);font-size:18px;
 font-weight:600;line-height:1.35;letter-spacing:-.15px;overflow-wrap:anywhere;
 white-space:normal;overflow:visible;text-overflow:clip;
}
.team-identity-copy .team-identity-meta{
 display:flex;flex-wrap:wrap;align-items:center;gap:7px 11px;margin:2px 0 0;
 color:#c5c6c8;font-family:var(--sans);font-size:11px;line-height:1.4;
}
.team-identity-meta .team-ladder-label{
 display:inline-flex;align-items:center;gap:6px;min-height:25px;padding:4px 7px;
 border:1px solid #414141;border-radius:3px;background:#292929;color:var(--lime);
 font-family:var(--sans);font-size:10px;font-weight:500;line-height:1.3;
 letter-spacing:.15px;white-space:nowrap;
}
.team-identity-meta .team-ladder-label>.icon{
 position:static;inset:auto;display:block;flex:none;width:13px;height:13px;
 margin:0;transform:none;color:inherit;
}
.team-identity-meta .team-format-label{
 display:inline-flex;align-items:center;min-height:25px;color:#c5c6c8;
 font-family:var(--sans);font-size:11px;font-weight:500;line-height:1.4;
 white-space:nowrap;
}
.team-identity-copy .team-member-meta{
 display:block;margin:2px 0 0;color:#aeb0b3;font-family:var(--sans);
 font-size:11px;font-style:normal;line-height:1.65;overflow-wrap:anywhere;
}

/* Owned games form clear chapters; the current chapter follows long rosters. */
.team-game-group{margin-bottom:52px;scroll-margin-top:96px}
.team-game-heading{
 position:sticky;top:82px;z-index:12;display:flex;align-items:center;gap:22px;
 min-height:130px;margin:0 0 6px;padding:18px 22px;background:#222;
 border-top:1px solid #505050;border-bottom:1px solid #454545;
 box-shadow:0 10px 18px #1a1a1a66;
}
.team-game-heading>.team-group-art{
 display:block;flex:none;width:78px;height:94px;object-fit:cover;
 object-position:center;border-radius:4px;border:1px solid #484848;
}
.team-game-heading>.team-group-title{flex:1;min-width:0}
.team-group-title>.eyebrow{
 display:block;color:#aeb0b3;font-size:9px;line-height:1.5;letter-spacing:1.4px;
}
.team-group-title>h2{
 display:block;margin:8px 0 7px;color:#fafafa;font-family:var(--display);
 font-size:32px;font-weight:500;line-height:1.05;letter-spacing:-.4px;
 overflow-wrap:anywhere;
}
.team-group-title>small{
 display:block;color:#c5c6c8;font-size:11px;line-height:1.6;
}
.managed-team-row{gap:20px;min-height:132px;padding:25px 0}
.managed-team-main{flex:1;min-width:0}
.managed-team-main>.team-identity-copy{gap:7px}
.managed-team-main .team-game-name{font-size:12px}
.managed-team-main .team-identity-name{font-size:18px;line-height:1.4}
.managed-team-main .team-identity-meta{margin-top:2px;gap:7px 11px}
.managed-team-count{margin-left:15px;padding-left:10px}
.managed-team-count>strong{font-size:12px;line-height:1.5}
.managed-team-count>span{font-size:10px;line-height:1.5}
.managed-team-row>.team-row-actions{margin-left:14px;gap:9px}
.managed-team-row .team-row-actions>.quiet-button{min-height:44px;font-size:11px}

/* Game rail is navigation, with cover recognition instead of more color codes. */
.team-game-rail{
 display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;
 scrollbar-width:thin;scrollbar-color:#555 transparent;padding:4px 0 13px;
 margin:22px 0 24px;
}
.team-game-rail>button{
 display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:11px;row-gap:4px;
 align-items:center;flex:0 0 183px;min-height:76px;padding:10px 12px;
 text-align:left;border:1px solid #3d3d3d;border-radius:5px;background:#222;
 transition:border-color .16s ease,background-color .16s ease;
}
.team-game-rail>button>img{
 grid-column:1;grid-row:1/3;display:block;width:40px;height:52px;
 object-fit:cover;border-radius:3px;border:1px solid #454545;
}
.team-game-rail>button>strong{
 grid-column:2;align-self:end;display:block;min-width:0;color:#c5c6c8;
 font-size:12px;font-weight:500;line-height:1.4;overflow-wrap:anywhere;
}
.team-game-rail>button>span{
 grid-column:2;align-self:start;display:block;color:#aeb0b3;font-size:10px;
 line-height:1.4;
}
.team-game-rail>button:not(:has(img)){grid-template-columns:32px minmax(0,1fr);flex-basis:142px}
.team-game-rail>button:not(:has(img))>strong,
.team-game-rail>button:not(:has(img))>span:not(.team-rail-all){grid-column:2}
.team-game-rail>button>.team-rail-all{
 grid-column:1;grid-row:1/3;display:flex;align-items:center;justify-content:center;
 width:32px;height:44px;color:#c5c6c8;
}
.team-game-rail .team-rail-all>.icon{width:23px;height:23px}
.team-game-rail>button:hover{border-color:#777;background:#292929}
.team-game-rail>button.selected,.team-game-rail>button[aria-pressed="true"]{
 border-color:var(--lime);background:#242c24;
}
.team-game-rail>button.selected>strong,
.team-game-rail>button[aria-pressed="true"]>strong{color:var(--lime)}

/* The same game/name/competition order applies in profiles and every chooser. */
.team-picker-game-heading{
 display:flex;align-items:center;gap:11px;margin:26px 0 0;padding:18px 0 11px;
 border-top:1px solid #505050;color:#fafafa;font-family:var(--display);
 font-size:23px;font-weight:500;line-height:1.2;letter-spacing:-.2px;
}
.team-picker-game-heading:first-child{margin-top:10px}
.team-picker-game-heading>img{width:31px;height:39px;object-fit:cover;border-radius:3px}
.team-picker-game-heading>small{margin-left:auto;color:#aeb0b3;font-family:var(--sans);font-size:10px}
.team-picker-game-heading>span{margin-left:auto;color:#aeb0b3;font-family:var(--sans);font-size:10px;font-weight:400;line-height:1.5;white-space:nowrap}
.team-picker-row{gap:16px;padding:21px 0;min-height:128px}
.team-picker-row>span.team-identity-copy,
.team-picker-row>div.team-identity-copy{display:flex;flex:1;flex-direction:column;gap:7px;min-width:0}
.team-picker-row>span.team-choice-copy{
 display:flex;flex:1;flex-direction:column;gap:7px;min-width:0;white-space:normal;
}
.team-choice-copy>.team-identity-copy{width:100%;flex:none;white-space:normal}
.team-choice-copy>.team-member-meta{display:block;margin:0;color:#aeb0b3;font-size:10px;font-style:normal;line-height:1.65;overflow-wrap:anywhere}
.team-picker-row .team-identity-copy .team-game-name{font-size:12px;font-weight:600}
.team-picker-row .team-identity-copy .team-identity-name{font-size:16px;font-weight:600}
.team-picker-row .team-identity-copy .team-identity-meta{margin-top:1px;gap:6px 10px}
.team-picker-row .team-identity-copy .team-member-meta{margin-top:1px;font-size:10px}
.team-picker-row>.icon:last-child{width:15px;flex:none;margin-left:auto}
.team-picker-row:disabled .team-game-art{opacity:.5}
.profile-team-row{gap:17px;padding:24px 0;min-height:135px}
.profile-team-row>.team-identity-copy{flex:1;min-width:0}
.profile-team-row .team-identity-copy .team-game-name{font-size:12px;font-weight:600;margin:0}
.profile-team-row .team-identity-copy .team-identity-name{font-size:17px;font-weight:600}
.profile-team-row .team-identity-copy .team-identity-meta{margin-top:1px}
.profile-team-row .team-identity-copy .team-member-meta{font-size:10px;margin-top:1px}
.profile-team-row>.profile-team-row-label{flex:none;font-size:11px}
.profile-team-row>.icon:last-child{flex:none;width:16px}
.team-identity-card{
 display:flex;align-items:center;gap:16px;width:100%;min-width:0;text-align:left;
}
.team-identity-card>.team-identity-copy{min-width:0;flex:1}
.team-identity-card .team-identity-copy .team-game-name{font-size:12px;font-weight:600}
.team-identity-card .team-identity-copy .team-identity-name{font-size:18px;font-weight:600}
.team-identity-card .team-identity-copy .team-identity-meta{margin-top:1px}
.destination-card .team-identity-card{margin-top:12px}
.invite-current-team>button:has(.team-identity-card){display:block;padding-right:27px}
.invite-current-team .team-identity-meta .icon{position:static;inset:auto;width:13px;height:13px}
.team-context-select>.team-badge.team-game-art{width:52px;height:68px;min-width:52px;align-self:center}
.team-context-select>span:not(.team-badge){flex:1;min-width:0}
.team-context-select .team-identity-copy{gap:5px}
.team-context-select .team-identity-copy .team-game-name{font-size:12px;font-weight:600;letter-spacing:0;line-height:1.4}
.team-context-select .team-identity-copy .team-identity-name{font-size:14px;line-height:1.4;white-space:normal;overflow:visible;text-overflow:clip}
.team-context-select .team-identity-copy .team-identity-meta{margin:1px 0 0;gap:5px 9px}
.team-context-select .team-identity-meta .team-ladder-label{font-size:9px;min-height:23px;padding:3px 5px}
.team-context-select .team-identity-meta .team-format-label{font-size:10px;min-height:23px}
.team-page-emblem:has(.team-game-art){width:94px;height:124px;clip-path:none;background:none;border:0;box-shadow:none;overflow:visible}
.team-page-emblem>.team-badge.team-game-art{width:100%;height:100%;min-width:0;align-self:center}
.game-identity-stamp{display:flex;align-items:center;gap:13px;min-width:0}
.game-identity-stamp>span:not(.team-badge){display:flex;flex:1;flex-direction:column;gap:6px;min-width:0}
.game-identity-stamp>span>strong{display:block;color:#fafafa;font-size:13px;font-weight:600;line-height:1.45;overflow-wrap:anywhere;white-space:normal}
.game-identity-stamp>span>small{display:block;color:#aeb0b3;font-size:11px;line-height:1.65;overflow-wrap:anywhere}

@media(max-width:1100px) and (min-width:901px){
 .managed-team-row{flex-wrap:wrap;gap:16px}
 .managed-team-main{flex-basis:calc(100% - 86px)}
 .managed-team-count{margin-left:84px;padding-left:0}
 .managed-team-row>.team-row-actions{margin-left:auto}
}
@media(max-width:900px){
 .team-badge.team-game-art{width:76px;height:96px;min-width:76px;align-self:start}
 .team-badge.team-game-art>.team-game-abbr{font-size:10px;padding:5px 3px}
 .team-identity-copy{gap:7px}
 .team-identity-copy .team-game-name{font-size:12px;line-height:1.45}
 .team-identity-copy .team-identity-name{font-size:17px;line-height:1.4}
 .team-identity-copy .team-identity-meta{gap:6px 9px}
 .team-identity-meta .team-ladder-label{font-size:10px;min-height:25px;padding:4px 6px}
 .team-identity-meta .team-format-label{font-size:11px}
 .team-game-group{margin-bottom:42px;scroll-margin-top:77px}
 .team-game-heading{top:64px;gap:17px;min-height:117px;padding:16px 14px;margin-bottom:3px}
 .team-game-heading>.team-group-art{width:64px;height:82px}
 .team-group-title>.eyebrow{font-size:8px;letter-spacing:1.3px}
 .team-group-title>h2{font-size:28px;line-height:1.05;margin:7px 0}
 .team-group-title>small{font-size:10px}
 .managed-team-row{
  display:grid;grid-template-columns:76px minmax(0,1fr);column-gap:17px;
  row-gap:11px;padding:23px 0;min-height:0;
 }
 .managed-team-row>.team-badge.team-game-art{
  grid-column:1;grid-row:1/3;width:76px;height:96px;min-width:76px;align-self:start;
 }
 .managed-team-main{grid-column:2;grid-row:1;min-width:0}
 .managed-team-main .team-game-name{font-size:12px;line-height:1.45}
 .managed-team-main .team-identity-name{font-size:17px;line-height:1.4}
 .managed-team-main .team-identity-meta{gap:6px 9px;margin-top:1px}
 .managed-team-count{
  grid-column:2;grid-row:2;display:flex;flex-direction:row;align-items:center;
  flex-wrap:wrap;gap:5px 10px;margin:0;padding:0;white-space:normal;
 }
 .managed-team-count>strong{font-size:11px;line-height:1.5}
 .managed-team-count>span{font-size:10px;line-height:1.5}
 .managed-team-row>.team-row-actions{
  grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:1fr 1fr;
  width:100%;gap:10px;margin:3px 0 0;
 }
 .managed-team-row .team-row-actions>.quiet-button{
  min-height:44px;font-size:11px;padding:0 12px;justify-content:center;
 }
 .managed-team-row .team-row-actions>.quiet-button:only-child{grid-column:1/-1;justify-content:space-between}
 .team-game-rail{gap:10px;margin:20px 0 23px;padding-bottom:12px}
 .team-game-rail>button{flex-basis:175px;min-height:78px;padding:10px}
 .team-game-rail>button>strong{font-size:12px}
 .team-game-rail>button:not(:has(img)){flex-basis:134px}
 .team-picker-game-heading{font-size:23px;margin-top:24px;padding-top:17px}
 .team-picker-row{gap:13px;padding:19px 0;min-height:126px;align-items:center}
 .team-picker-row>.team-badge.team-game-art,
 .profile-team-row>.team-badge.team-game-art{width:52px;height:68px;min-width:52px;align-self:center}
 .team-picker-row .team-identity-copy .team-game-name,
 .profile-team-row .team-identity-copy .team-game-name{font-size:12px;line-height:1.45}
 .team-picker-row .team-identity-copy .team-identity-name{font-size:15px;line-height:1.4}
 .team-picker-row .team-identity-copy .team-member-meta{font-size:10px;line-height:1.65}
 .team-picker-row>.icon:last-child{width:13px;margin-left:0}
 .profile-team-row{gap:13px;padding:22px 0;min-height:131px}
 .profile-team-row .team-identity-copy .team-identity-name{font-size:16px;line-height:1.4}
 .profile-team-row>.profile-team-row-label{display:none}
 .profile-team-row>.icon:last-child{width:13px}
 .team-identity-card{gap:13px;align-items:flex-start}
 .team-identity-card>.team-badge.team-game-art{width:56px;height:74px;min-width:56px}
 .team-identity-card .team-identity-copy .team-identity-name{font-size:16px;line-height:1.4}
 .team-identity-card .team-identity-copy .team-game-name{font-size:12px;line-height:1.45}
 .destination-card .team-identity-card{margin-top:10px}
 .team-context-select{min-height:99px;align-items:center}
 .team-context-select .team-identity-copy .team-identity-name{font-size:14px;line-height:1.4}
 .team-page-emblem:has(.team-game-art){width:76px;height:96px}
 .team-page-emblem>.team-badge.team-game-art{width:100%;height:100%;min-width:0}
 .game-identity-stamp>.team-badge.team-game-art{width:52px;height:68px;min-width:52px;align-self:center}
 .game-identity-stamp{gap:12px}
}
@media(max-width:360px){
 .managed-team-row{column-gap:14px}
 .managed-team-main .team-identity-name{font-size:16px}
 .team-group-title>h2{font-size:26px}
 .team-group-title>small{font-size:10px;line-height:1.5}
 .team-game-heading{gap:14px;padding-inline:12px}
 .team-picker-row{gap:11px}
 .team-picker-row .team-identity-copy .team-identity-name{font-size:14px}
 .team-identity-card{gap:11px}
}
@media(prefers-reduced-motion:reduce){.team-game-rail>button{transition:none}}
.draft-review-grid>.draft-team-identity{grid-column:1/-1}
.prepared-invitation>div{min-width:0;flex:1}
.prepared-invitation .team-identity-card{margin:12px 0 18px}
.team-ladder-label[data-team-ladder="cash"]{color:#fafafa;background:#333334;border-color:#555}
.team-ladder-label[data-team-ladder="tournament"]{color:#fafafa;background:transparent;border-color:#555}
.team-ladder-label[data-team-ladder="tournament"]>.icon{color:var(--lime)}
.ranking-row .team-badge.team-game-art{width:46px;height:62px;min-width:46px;align-self:center}
.ranking-row .team-identity-copy .team-identity-name{font-size:15px}
.ranking-row .team-identity-copy .team-game-name{font-size:11px}
.ranking-row .team-identity-meta{gap:5px 9px}
.ranking-row .team-ladder-label{font-size:9px;padding:3px 5px}
.ranking-row .team-format-label{font-size:10px}
.invite-context .team-identity-card{align-items:flex-start;gap:11px}
.invite-context .team-badge.team-game-art{width:44px;height:60px;min-width:44px}
.invite-context .team-identity-name{font-size:14px}
.invite-context .team-game-name{font-size:11px}
.invite-context .team-ladder-label{white-space:normal;font-size:9px;letter-spacing:0}
.invite-context .team-format-label{font-size:10px;letter-spacing:0}
.room-roster-identity{margin-bottom:18px}
.competition-room-status .game-identity-stamp{margin-top:18px}
.full-search-group .team-identity-card{margin:8px 0}
.full-search-group .team-badge.team-game-art{width:45px;height:60px;min-width:45px}
.full-search-group .team-identity-copy{gap:4px}
.full-search-group .team-identity-name{font-size:14px}
.full-search-group .team-game-name{font-size:11px}
.event-entry-panel .team-identity-card{margin:20px 0}
.event-entry-panel .team-badge.team-game-art{width:45px;height:62px;min-width:45px}
.event-entry-panel .team-identity-name{font-size:14px}
.team-manager-tools{display:flex;align-items:center;gap:12px;margin:18px 0 0}
.team-manager-tools>.manager-search{flex:1;min-width:0;min-height:48px}
.team-manager-tools>.quiet-button{min-height:48px;font-size:12px;gap:12px;flex:none}
.team-manager-tools>.quiet-button[aria-expanded="true"]>.icon{transform:rotate(180deg)}
.team-manager-advanced{grid-template-columns:1fr 1fr 1fr;margin-top:17px}
.team-manager-advanced[hidden]{display:none!important}
.team-filter-summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0 0;font-size:11px;color:var(--muted)}
.team-filter-summary .text-button{font-size:11px;min-height:44px}
.team-scope-reminder{padding:18px 0 28px;border-bottom:1px solid var(--line)}
.team-identity-copy .team-id-disambiguator{font-size:10px;line-height:1.6;color:var(--muted);letter-spacing:.3px;overflow-wrap:anywhere}
@media(max-width:900px){
 .team-manager-tools{margin-top:15px;gap:10px}
 .team-manager-tools>.manager-search input{font-size:16px}
 .team-manager-tools>.quiet-button{padding:0 12px;gap:8px;font-size:11px}
 .team-manager-advanced{grid-template-columns:1fr;margin:18px 0 5px;gap:13px}
 .team-manager-advanced select{min-height:48px;font-size:16px}
 .team-results-heading{margin-top:20px;margin-bottom:19px}
 .prepared-invitation:has(.team-identity-card){flex-wrap:wrap;gap:12px}
 .prepared-invitation:has(.team-identity-card)>.quiet-button{margin-left:69px}
 .ranking-row .team-badge.team-game-art{width:37px;height:53px;min-width:37px}
 .ranking-row .team-game-abbr{font-size:8px;letter-spacing:.3px}
 .ranking-row .team-identity-name{font-size:12px}
 .ranking-row .team-ladder-label{max-width:100%;white-space:normal;font-size:8px}
 .ranking-row .team-format-label{font-size:9px}
 .ranking-row .team-identity-meta{gap:3px 7px}
 .event-entry-panel .team-identity-name{font-size:15px}
}
