.game-shell.onboarding-active .match-alert {display:none}
.game-shell .onboarding {
 --founding-border:#344958; --founding-muted:#aec1ca; --founding-accent:#91e2c0;
 width:100%; max-width:min(94%,1530px); margin:0 auto; color:#edf3f5;
}
.onboarding-header,.founding-panel-heading,.founding-filters,.founding-controls {display:flex;align-items:center}
.onboarding-header {justify-content:space-between;margin:clamp(4px,1.3vh,16px) 0 15px}
.game-shell .onboarding-header h1 {font-size:clamp(21px,1.8vw,34px);font-weight:750;letter-spacing:-.045em;margin:0}
.game-shell #onboarding-logout {background:transparent;border:1px solid var(--founding-border);color:var(--founding-muted);padding:6px 13px;font-size:12px}
.game-shell #select-team {display:block;max-width:none;margin:0}
.founding-layout {display:grid;grid-template-columns:minmax(230px,.85fr) minmax(0,1.75fr);gap:14px;height:clamp(420px,76vh,815px)}
.founding-directory,.founding-roster,.founding-identity {
 border:1px solid var(--founding-border);border-radius:8px;background:#182733;min-width:0;overflow:hidden
}
.founding-directory,.founding-roster {display:flex;flex-direction:column;min-height:0}
.founding-panel-heading {justify-content:space-between;gap:8px;min-height:42px;padding:8px clamp(12px,1.15vw,21px);border-bottom:1px solid var(--founding-border);background:#203340}
.game-shell .founding-panel-heading h2 {font-size:clamp(14px,1.04vw,19px);line-height:1.25;margin:0;font-weight:700}
.founding-panel-heading>span {font-size:12px;color:var(--founding-muted);font-variant-numeric:tabular-nums}
.founding-filters {gap:8px;padding:13px clamp(10px,1vw,18px);align-items:end;border-bottom:1px solid var(--founding-border)}
.founding-filters label,.founding-name,.founding-badge {display:grid;align-content:end;gap:5px;font-size:12px;font-weight:600;color:#bcd0d7;min-width:0}
.founding-filters label {flex:1}
.game-shell .founding-filters select,.game-shell .founding-name input {width:100%;min-width:0;height:36px;font-size:14px;padding:0 8px;border:1px solid #4c6271;border-radius:4px;color:#f0f5f6;background:#10202b}
.onboarding-choices {flex:1 1 0;min-height:0;overflow:auto;scrollbar-color:#4b636e transparent}
.game-shell .onboarding-choice {
 display:flex;align-items:center;gap:12px;width:100%;min-height:43px;padding:6px clamp(10px,1vw,18px);color:#dfeaed;border:0;border-bottom:1px solid #2d404e;border-radius:0;background:transparent;text-align:left
}
.game-shell .onboarding-choice:hover {background:#203644}
.game-shell .onboarding-choice[aria-checked=true] {background:#23473f;color:#f1fff8;box-shadow:inset 3px 0 var(--founding-accent)}
.game-shell .onboarding-choice[aria-checked=true]::after {content:'✓';margin-left:auto;color:var(--founding-accent)}
.onboarding-choice strong {font-size:clamp(13px,.95vw,17px);font-weight:600;overflow-wrap:anywhere}
.donor-crest {display:grid;place-items:center;width:29px;height:29px;flex:none;color:#d9efe6;line-height:1}
.donor-crest img {width:100%;height:100%;object-fit:contain}
.founding-detail {display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;min-height:0;min-width:0}
.founding-banner {position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:clamp(12px,1.5vw,26px);padding:clamp(12px,1.65vw,28px);border:1px solid #396458;border-radius:8px;background:linear-gradient(111deg,#254d43 0%,#193e36 57%,#132d2b 100%)}
.founding-banner::after {content:'';position:absolute;right:-18px;top:50%;transform:translateY(-50%);width:29%;height:162%;border:2px solid #c7f6dc21;border-radius:50%;z-index:-1;pointer-events:none}
.founding-crest {display:grid;place-items:center;flex:none;width:clamp(60px,5.6vw,100px);aspect-ratio:1;background:#f1f4f1;border:1px solid #fff;border-radius:12px}
.founding-crest .donor-crest {width:77%;height:77%;color:#284c42;font-size:24px}
#founding-league {font-size:clamp(11px,.86vw,15px);color:#a9d7c8;font-weight:600}
.game-shell #founding-team-name {font-size:clamp(21px,2.15vw,40px);letter-spacing:-.045em;margin:3px 0;line-height:1.18}
#onboarding-rule {margin:5px 0 0;font-size:clamp(12px,.85vw,15px);color:#d2e6db}
#onboarding-selected-candidates {overflow:auto;min-height:0;scrollbar-color:#4b636e transparent}
.game-shell .founding-players {width:100%;border:0;border-collapse:collapse;table-layout:fixed}
.game-shell .founding-players th,.game-shell .founding-players td {display:table-cell;padding:6px clamp(10px,1.1vw,20px);border:0;border-bottom:1px solid #314451;text-align:center;font-size:clamp(13px,.94vw,17px);vertical-align:middle}
.game-shell .founding-players th {position:sticky;top:0;z-index:1;padding-block:7px;background:#172631;color:#acbdc6;font-size:12px}
.game-shell .founding-players td {background:#1c2d39;height:clamp(36px,4.3vh,48px)}
.game-shell .founding-players th:first-child,.game-shell .founding-players td:first-child {text-align:left}
.game-shell .founding-players th:nth-child(2),.game-shell .founding-players th:nth-child(3) {width:clamp(58px,7vw,130px)}
.founding-player {display:flex;align-items:center;gap:10px;font-weight:600;white-space:normal;overflow-wrap:anywhere}
.founding-player img {width:32px;height:32px;flex:none;object-fit:contain;border-radius:3px;background:#2c414c}
.founding-role,.founding-grade {font-variant-numeric:tabular-nums;font-weight:700}
.founding-role {color:#c3d7e9;font-size:.88em}
.founding-role[data-role=MF] {color:#aadcc7}.founding-role[data-role=FW] {color:#f2bfb2}
.founding-grade {color:var(--founding-accent)}
.founding-empty {padding:14px 18px;color:var(--founding-muted);margin:0}
.founding-controls,.game-shell #rename-club {display:flex;align-items:end;flex-wrap:wrap;gap:10px 16px;padding:14px clamp(12px,1.2vw,22px);margin:0;max-width:none}
.founding-name {width:min(100%,16rem)}
.founding-badge {width:min(100%,13.5rem)}
.game-shell #select-team-submit,.game-shell #rename-club button[type=submit] {height:38px;padding:0 16px;background:#94e0be;color:#122e28;font-size:14px;font-weight:750;border:1px solid #9ce8c6;border-radius:5px}
#select-team-submit {margin-left:auto}
.founding-status {display:flex;gap:10px;align-items:center;color:#f1d59b}
.founding-status p {margin:5px 0}.founding-status p:empty {display:none}
.locker-club-identity {display:flex;align-items:center;gap:.6rem;min-width:0}
.locker-club-identity h1 {overflow-wrap:anywhere}
.locker-club-identity img {width:clamp(30px,3vw,54px);height:clamp(30px,3vw,54px);object-fit:contain}
@media(min-width:1024px){
 .founding-layout {height:min(78cqh,815px);min-height:0}
 .founding-name {width:min(15rem,20vw)}.founding-badge {width:min(12rem,16vw)}
}
@media(max-width:760px){
 .game-shell .onboarding {max-width:none}
 .onboarding-header {margin:2px 0 12px}
 .founding-layout {display:flex;flex-direction:column;height:auto;gap:10px}
 .founding-detail {display:flex;flex-direction:column;gap:10px}
 .founding-panel-heading {min-height:36px;padding:8px 12px}
 .founding-filters {padding:9px 12px}
 .onboarding-choices {flex:auto;max-height:134px}
 .game-shell .onboarding-choice {min-height:42px;padding:5px 12px}
 .founding-banner {padding:12px}
 #onboarding-selected-candidates {max-height:215px}
 .game-shell .founding-players th,.game-shell .founding-players td {padding-inline:10px}
 .founding-controls,.game-shell #rename-club {gap:9px;padding:10px;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr)}
 .founding-name,.founding-badge {width:auto}
 #select-team-submit,#rename-club button[type=submit] {grid-column:1/-1;justify-self:end}
}
.game-shell #team-selection .founding-controls .founding-name,.game-shell #rename-club .founding-name {flex:0 1 15rem;max-width:15rem}
.game-shell #team-selection .founding-badge,.game-shell #rename-club .founding-badge {flex:0 1 12rem;max-width:12rem}
@media(max-width:760px){.game-shell #team-selection .founding-controls button[type=submit]{margin-left:0}}
.game-shell .founding-players th:nth-child(2) {width:12%}
.game-shell .founding-players th:nth-child(3) {width:24%}
.game-shell .founding-players th:nth-child(4) {width:13%}
@media(max-width:760px){
 .game-shell .founding-players th:nth-child(2) {width:14%}
 .game-shell .founding-players :is(td,th):nth-child(n+2) {padding-inline:2px}
 .game-shell .founding-players td {font-size:12px}
 .game-shell .founding-player {gap:5px}.game-shell .founding-player img {width:23px;height:23px}
}
