#overlay.club-panel,#overlay.league-panel{background:linear-gradient(150deg,#101c2be8,#20354aeb 65%,#101b2df5);padding:0;overflow:hidden}#overlay.club-panel>.panel,#overlay.league-panel>.panel{width:min(100%,540px);max-height:100%;height:100%;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:hidden}.club-editor,.league-shell{height:100%;display:flex;flex-direction:column;gap:16px;padding:max(20px,env(safe-area-inset-top)) 24px max(18px,env(safe-area-inset-bottom));overflow:hidden;box-sizing:border-box}.club-top,.league-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.club-top .eyebrow{margin:0}.club-hero{display:flex;align-items:center;gap:18px;min-height:94px}.club-hero h2{font-size:29px;line-height:1.05;letter-spacing:-1px;margin:8px 0 0}.club-hero small{font-size:13px;color:#b6c7d5}.club-mark,.club-monogram{width:76px;height:76px;object-fit:contain;flex:none}.club-monogram{border-radius:24px;display:grid;place-items:center;font-size:22px;font-weight:800;letter-spacing:-1px;box-shadow:inset 0 0 0 1px #ffffff30}.club-tabs,.league-nav{display:flex;gap:5px;flex:none}.club-tabs button,.league-nav button{flex:1;min-height:42px;border:1px solid transparent;background:#ffffff07;border-radius:13px;color:#a9bccb;font-size:14px;padding:9px 6px}.club-tabs button[aria-pressed=true],.league-nav button[aria-pressed=true]{background:#e7cfa51a;color:#f7e0b5;border-color:#d8c29455}.club-sheet{display:flex;flex-direction:column;gap:15px;flex:1;min-height:0;justify-content:center}.club-field{display:flex;flex-direction:column;gap:7px;font-size:14px;color:#b9cbd8}.club-field input,.club-field select,.league-shell input,.league-shell select{min-height:44px;border:1px solid #dce3ee35;border-radius:12px;background:#0a172855;color:#f4efe5;width:100%;min-width:0;padding:10px 12px;font-size:16px;box-sizing:border-box;touch-action:manipulation}.club-field option,.league-shell option{color:#f4efe5;background:#172b40}.club-two{display:grid;grid-template-columns:1.4fr 1fr;gap:12px}.club-colors{display:grid;grid-template-columns:1fr 1fr;gap:16px}.club-colors label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;color:#cfdae4}.club-colors input{width:46px;height:40px;padding:3px;border:1px solid #ffffff35;border-radius:10px;background:#ffffff10;touch-action:manipulation}.uniform-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:12px}.uniform-pair>div>span{display:block;font-size:12px;color:#b6c6d4;letter-spacing:2px;margin-bottom:8px}.uniform-pair strong{border-radius:20px;min-height:130px;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:16px;letter-spacing:2px;box-shadow:inset 0 0 0 1px #ffffff20}.uniform-pair b{font-size:54px;line-height:1.2}.club-venue-detail{padding:20px;background:#ffffff07;border:1px solid #dce4ef1a;border-radius:20px}.club-venue-detail b,.club-venue-detail span{display:block}.club-venue-detail b{font-size:22px;font-weight:500}.club-venue-detail span{font-size:14px;color:#e4cba0;margin-top:10px}.club-venue-detail p{font-size:14px;color:#a9bdce;line-height:1.5}.club-error:empty{display:none}.club-error{color:#f5c8a5;font-size:14px;line-height:1.35;margin:0}.league-shell h2{font-size:32px;line-height:1.1;letter-spacing:-1px;margin:0}.league-shell h3{font-size:22px;margin:0;line-height:1.2}.league-content{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0;justify-content:center}.league-status{font-size:13px;color:#c2cfd9;line-height:1.4;margin:0}.league-kicker{font-size:12px;letter-spacing:1.4px;color:#e7cfa7;text-transform:uppercase}.league-card{padding:18px;border:1px solid #cddceb26;border-radius:24px;background:linear-gradient(135deg,#39536e65,#18304d65);display:flex;flex-direction:column;gap:13px}.league-card .club-hero{min-height:70px}.league-card .club-mark,.league-card .club-monogram{width:58px;height:58px;border-radius:18px}.league-card .club-hero h2{font-size:24px}.league-card .fr-primary{margin-top:0}.league-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.league-stats small{display:block;color:#abbfcd;font-size:12px;margin-bottom:5px}.league-stats b{font-size:23px;font-weight:500;letter-spacing:-.5px}.league-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.league-actions button{min-height:44px;font-size:14px;padding:10px 8px}.league-list{display:flex;flex-direction:column;gap:8px}.league-list .fr-row{min-height:62px}.league-list .club-mark,.league-list .club-monogram{height:40px;width:40px;border-radius:12px;font-size:13px}.league-nav{margin-top:auto}.league-top button{padding:8px 0;background:none;border:0;color:#c0cdd8;font-size:14px}.league-code{font-size:26px;letter-spacing:4px;font-variant-numeric:tabular-nums;color:#f2dab0}.league-shell button:disabled,.club-editor button:disabled{opacity:.45}.league-busy{pointer-events:none;opacity:.55}.league-panel .fr-pager{margin-top:3px}.league-confirm{padding:18px;border:1px solid #e8c9a260;border-radius:18px;font-size:15px;line-height:1.4}.league-shell .fr-primary,.club-editor .fr-primary{flex:none;min-height:48px}.league-shell .fr-secondary{font-size:14px}.league-shell .fr-note{padding:0}.club-select-summary{display:flex;align-items:center;gap:10px;padding:13px;background:#ffffff08;border:1px solid #ffffff20;border-radius:17px;margin:10px 0}.club-select-summary .club-mark,.club-select-summary .club-monogram{width:44px;height:44px;font-size:14px;border-radius:13px}.club-select-summary strong{display:block;font-size:16px}.club-select-summary small{display:block;font-size:12px;margin-top:5px;color:#afc1cf}.club-select-summary button{margin-left:auto;border:0;background:none;padding:10px;color:#eed8b2;font-size:14px}
@media(max-height:740px){.club-editor,.league-shell{padding:14px 20px;gap:11px}.club-hero{min-height:70px}.club-mark,.club-monogram{width:61px;height:61px}.club-hero h2{font-size:25px}.club-sheet{gap:11px}.club-field{gap:5px}.club-field input,.club-field select{min-height:41px;padding:8px 11px}.uniform-pair strong{min-height:110px}.league-card{padding:14px;gap:10px}.league-content{gap:10px}.league-list .fr-row{min-height:53px}.league-shell h2{font-size:28px}.league-stats b{font-size:21px}}
@media(max-height:620px){.club-editor,.league-shell{padding:10px 18px;gap:8px}.club-hero{min-height:56px}.club-mark,.club-monogram{height:50px;width:50px}.club-hero h2{font-size:22px}.club-sheet{gap:8px}.club-field input,.club-field select{min-height:36px;padding:6px 10px}.club-tabs button,.league-nav button{min-height:36px;font-size:13px;padding:6px}.club-venue-detail{padding:12px}.club-venue-detail p{margin-bottom:0}.league-list .fr-row{min-height:45px;padding:8px}.league-shell h2{font-size:25px}.league-card{padding:12px;gap:9px}.league-content{gap:8px}.league-shell .fr-primary,.club-editor .fr-primary{min-height:42px}.league-card .club-hero{min-height:50px}.league-actions button{min-height:39px}.league-status{font-size:12px}}
.league-shell .league-content{overflow-y:auto;overscroll-behavior:contain;justify-content:flex-start;padding-bottom:6px;scrollbar-width:thin}.league-shell .league-content>*{flex-shrink:0}.league-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.league-shell .fr-row strong{overflow-wrap:anywhere}.league-shell .league-top,.league-shell>.league-status,.league-shell>h2,.league-shell .league-nav{flex-shrink:0}
/* Short landscape screens scroll the whole office, not a tiny inner window. */
@media(orientation:landscape) and (max-height:460px){
 #overlay.league-panel .league-shell{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
 #overlay.league-panel .league-shell>.league-content{flex:0 0 auto;overflow:visible;min-height:auto}
 #overlay.league-panel .league-shell>.financial-help{flex-shrink:0}
 #overlay.league-panel .league-nav{margin-top:0}
}
/* Rulesets: the PRO / ARCADE badge leads the hub and claim titles and league rows; the create screen names the
   league's rules second (the founder's one lasting choice), with the create button before the fine print. */
#overlay.league-panel .league-shell h2 .rs-tag{margin:-4px 10px 0 0;padding:3px 8px 2px;font-size:13px;-webkit-text-stroke:0;text-shadow:none;vertical-align:middle}
#overlay.league-panel .fr-row strong .rs-tag{margin:-2px 6px 0 0;-webkit-text-stroke:0}
#overlay.league-panel .league-rules{display:grid;gap:5px}
#game #overlay.league-panel .league-rules .sp-ruleset.rs-inline{margin:0}
#game #overlay.league-panel .league-rules .rs-line{margin:0;font-size:12px;padding:5px 10px}
#overlay.league-panel .league-create{gap:10px}#overlay.league-panel .league-create>.league-status{margin:0}
/* Money help means nothing before a league exists; short screens also drop the secondary copy so the whole form fits. */
#overlay.league-panel .league-shell:has(.league-create)>.financial-help{display:none}
@media(max-height:760px){#overlay.league-panel .league-shell:has(.league-create)>h2{margin-bottom:0}#overlay.league-panel .league-shell:has(.league-create)>h2+.league-status,#overlay.league-panel .league-create>.league-status,#overlay.league-panel .league-create .rs-line span{display:none}}
@media(max-height:900px){#overlay.league-panel .league-create{gap:8px}#overlay.league-panel .league-create .club-field{gap:4px}#overlay.league-panel .league-create .club-field :is(input,select){min-height:42px}}
/* Short landscape: the form in two columns (identity left, rules and create right) so it fits one screen. */
@media(orientation:landscape) and (max-height:500px){
 #overlay.league-panel .league-shell>.league-content.league-create{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-auto-flow:dense;align-content:start;align-items:start;gap:6px 16px}
 #overlay.league-panel .league-create .club-field :is(input,select){min-height:38px}
 #overlay.league-panel .league-shell:has(.league-create){gap:4px}#overlay.league-panel .league-shell:has(.league-create)>h2{margin:0}
 #overlay.league-panel .league-create>.club-field{grid-column:1}
 #overlay.league-panel .league-create>:not(.club-field){grid-column:2}
 #overlay.league-panel .league-create>.league-rules{grid-row:1/3}
}
