/* Menu-only boundaries: the pitch keeps its full-window layout. */
.game-shell .mode-list{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:620px) and (orientation:portrait){.game-shell .mode-list{grid-template-columns:1fr;gap:8px}.game-shell .mode-choice{padding:10px;min-height:60px}.game-shell .mode-choice strong{font-size:11px}.game-shell .mode-choice small{font-size:9px}}
@media(max-width:620px) and (max-height:650px) and (orientation:portrait){.game-shell .mode-choice{min-height:44px;padding:8px}.game-shell .mode-choice small{font-size:8px;line-height:1.3}}
.game-shell .shell-content{width:100%;max-width:1336px;justify-self:center}
.game-shell .menu-footer{padding-left:max(28px,calc((100% - 1280px)/2));padding-right:max(28px,calc((100% - 1280px)/2))}
.game-shell .shell-home{max-height:720px;align-self:center;width:100%;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);gap:20px}
.game-shell .shell-hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(135deg,#553426,#231d25);border-radius:5px;padding:28px}
.game-shell .shell-hero .home-pitch{display:none}
.hero-keyart{position:absolute;bottom:0;left:0;width:100%;height:55%;object-fit:cover;object-position:50% 60%;z-index:-1;image-rendering:pixelated;mask-image:linear-gradient(transparent,#000 18%)}
.game-shell .shell-hero h2{font-size:clamp(30px,3.4vw,54px);margin-top:22px;margin-bottom:15px}
.game-shell .shell-hero>p{position:relative;z-index:1;line-height:1.7;font-size:12px;max-width:85%}
.game-shell .hero-stamp{z-index:1;background:#211620ce;padding:7px 10px;left:18px;bottom:15px}
.game-shell .home-card{border-radius:5px;min-height:0;box-shadow:inset 0 0 0 3px #16131d33,0 3px #100e15;transition:filter .15s,transform .15s}
.game-shell .home-card:hover{filter:brightness(1.12);transform:translateY(-2px)}
.game-shell .home-card-art img.keyart-card{width:88%;height:90%;max-height:200px;object-fit:cover;border:2px solid #a6c18e55;box-shadow:4px 4px #142a24;filter:none}
.game-shell .shell-tabs{flex:none;gap:8px}
.game-shell .shell-tabs>button{flex:0 1 auto;min-width:110px;max-width:230px;border-radius:4px;padding:11px 18px;background:#2a2128;border-color:#705640}
.game-shell .shell-tabs>button.active{background:#58402d;border-color:#edc276;box-shadow:inset 0 -3px #edc276;color:#ffe2a0}
.game-shell .team-switcher>button:not(#club-reset){min-width:120px}
.game-shell .shell-tabs>#club-reset{min-width:40px;width:40px;padding:6px;margin-left:auto}
.setup-steps>button{display:flex;gap:9px;align-items:center}
.setup-number{display:inline-grid;place-items:center;flex:none;width:23px;height:23px;border:1px solid #aa8455;color:#e6c383;background:#17131c;font-size:10px}
.game-shell .shell-card{background:linear-gradient(130deg,#35282c,#28212a);border-radius:5px}
.game-shell .play-panels>.shell-card{height:auto;min-height:270px;max-height:100%;overflow:auto}
.visual-setting{display:flex;flex-direction:column;gap:6px;min-width:0;margin-top:9px}
.setting-choices{display:grid;grid-template-columns:repeat(var(--choice-count,3),minmax(0,1fr));gap:8px;min-width:0}
.game-shell .setting-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:62px;width:100%;padding:10px 8px;background:#211b24;color:#d5c2a6;border:1px solid #806045;border-radius:4px;font-size:10px;line-height:1.4;box-shadow:0 3px #17121b;white-space:normal;overflow-wrap:anywhere}
.game-shell .setting-choice[aria-pressed=true]{border-color:#ffe09a;background:#56402c;color:#ffe2a0;box-shadow:inset 0 -3px #e8b85f,0 3px #17121b}
.game-shell .setting-choice:hover:not(:disabled){background:#49372d;border-color:#e0b66f}
.game-shell .setting-choice:disabled{opacity:.5;cursor:not-allowed}
.choice-name{font-weight:bold;text-align:center}.choice-detail{font-size:8px;line-height:1.4;color:#c5af91;text-align:center}
.setting-choice-pager{display:flex;align-items:center;justify-content:flex-end;gap:14px;height:30px;font-size:9px;color:#c5af91}
.game-shell .choice-page{min-width:34px;min-height:30px;font-size:23px;line-height:1;background:#2d2229;border:1px solid #86613f;color:#ffe09a;border-radius:3px;padding:0 7px}
.game-shell .choice-page:disabled{opacity:.3}
.game-shell .finish-setting .setting-choice{min-height:104px}
.finish-sample{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;border:4px solid #3093dc;background:#1264a9;box-shadow:inset 2px 2px #86c8fa,inset -3px -4px #123c79,2px 4px #121421;image-rendering:pixelated}
.finish-sample i{font:700 18px/1 Georgia,serif;display:grid;place-items:center;width:26px;height:26px;background:#fce5b5;color:#63452c;border:2px solid #b89d6f;border-radius:50%;font-style:normal;box-shadow:1px 1px #153250}
.finish-sample[data-finish=ring]{border-style:double;border-width:6px}.finish-sample[data-finish=metal]{filter:grayscale(1);border-color:#cbd3dc}.finish-sample[data-finish=gold]{border-color:#efbb4e;background:#a87722}.finish-sample[data-finish=neon]{border-color:#8feade;box-shadow:0 0 7px #3fc9cf}.finish-sample[data-finish=pearl]{border-color:#f1d4ea;background:#b28cb6}.finish-sample[data-finish=galaxy]{border-color:#a788db;background:#4c326e}
.game-shell #club-customizer .club-roster-preview{min-height:80px;justify-content:center;background:repeating-linear-gradient(90deg,#13533c 0,#13533c 50px,#185f43 50px,#185f43 100px);border-color:#648953}
.game-shell .club-editor{gap:18px;background:linear-gradient(140deg,#382a2d,#29232b)}
.game-shell .club-editor-heading{padding-bottom:12px;border-bottom:1px solid #77543a66}
.game-shell .club-editor .editor-pane{min-width:0}.game-shell .club-editor .club-finish-label{min-width:0}
@media(min-width:1100px) and (min-height:701px){.game-shell .shell-page:not(#screen-home){max-width:1080px;width:100%;align-self:flex-start}.game-shell .team-panels{flex:0 1 auto}.game-shell .club-editor{padding:25px}.game-shell .shell-home{min-height:0}}
@media(max-width:900px){.game-shell .shell-tabs>button{min-width:0;padding:10px 12px}.game-shell .shell-hero{padding:20px}.game-shell .shell-hero h2{font-size:35px}.game-shell .menu-footer{padding:9px 14px}.game-shell .shell-home{gap:12px}.game-shell .shell-hero>p{font-size:10px}.game-shell .setting-choice{font-size:9px;padding:8px 5px;min-height:54px}.setting-choices{gap:5px}}
@media(max-width:620px){.game-shell .shell-home{max-height:none}.game-shell .shell-hero{padding:14px}.game-shell .shell-hero h2{font-size:29px;margin:8px 0}.game-shell .hero-keyart{left:auto;right:0;width:48%;height:100%;object-position:50% 65%;mask-image:linear-gradient(90deg,transparent,#000 25%);opacity:.8}.game-shell .shell-hero>p{font-size:9px;max-width:65%}.game-shell .home-card-art img.keyart-card{border:0;box-shadow:none}.game-shell .shell-tabs{gap:5px}.game-shell .shell-tabs>button{padding:8px;font-size:10px;min-width:0;flex:1;max-width:none}.game-shell .team-switcher>button:not(#club-reset){min-width:0}.game-shell .setting-choice{min-height:48px;font-size:8px;gap:4px}.choice-detail{font-size:7px}.game-shell .finish-setting .setting-choice{min-height:92px}.game-shell #club-customizer .club-roster-preview{min-height:60px}.setup-number{width:19px;height:19px;font-size:9px}.setup-steps>button{gap:5px}.game-shell .play-panels>.shell-card{min-height:0}}
@media(max-height:700px){.game-shell .shell-home{max-height:none}.game-shell .shell-hero h2{margin-top:8px}.game-shell .shell-hero{padding:16px}.game-shell .shell-tabs>button{padding:7px 10px;font-size:9px}.game-shell .setting-choice{min-height:40px;padding:5px;font-size:8px;gap:2px}.choice-detail{font-size:7px}.game-shell .finish-setting .setting-choice{min-height:63px;flex-direction:row;flex-wrap:wrap;gap:4px}.finish-sample{width:29px;height:29px;border-width:3px}.finish-sample i{width:18px;height:18px;font-size:12px}.game-shell .club-editor{padding:10px;gap:7px}.game-shell #club-customizer .club-roster-preview{min-height:42px}.visual-setting{margin-top:5px}.game-shell .play-panels>.shell-card{min-height:0;overflow:auto}.game-shell .hero-keyart{height:50%}.game-shell .shell-hero>p{font-size:9px}}
@media(orientation:landscape) and (max-height:500px){.game-shell .shell-hero h2{font-size:25px}.game-shell .shell-hero{padding:13px}.game-shell .shell-hero>p{max-width:100%;font-size:9px}.game-shell .hero-keyart{height:53%;width:100%;left:0;opacity:.65}.game-shell .setting-choice-pager{height:24px}.game-shell .choice-page{min-height:24px}.game-shell .finish-setting .setting-choice{min-height:52px}.game-shell .shell-tabs>button{padding:5px 8px}.game-shell #club-customizer .club-roster-preview{min-height:33px}.game-shell .club-roster-preview canvas{max-width:30px;max-height:30px}}
@media(prefers-reduced-motion:reduce){.game-shell .home-card{transition:none}}

.finish-sample{border-color:var(--sample-color,#3093dc);background:var(--sample-color,#1264a9)}.finish-sample[data-finish=spark]{box-shadow:inset 2px 2px #fff0ba,0 0 6px #ffe09a}
.game-shell .setting-choice{overflow-wrap:normal;word-break:normal}
@media(max-width:620px) and (orientation:portrait){
 .game-shell #screen-home .shell-home{flex:1;height:100%;align-self:stretch;grid-template-columns:1fr;grid-template-rows:minmax(90px,.7fr) minmax(0,1.8fr)}
 .game-shell .home-cards{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:9px;min-height:0}
 .game-shell .home-card{padding:12px;min-width:0;gap:6px}
 .game-shell .home-card-art{top:8px;left:50%;right:auto;width:100px;height:70px;transform:translateX(-50%);opacity:.9}
 .game-shell .home-card>strong{font-size:11px;line-height:1.4;white-space:normal}
 .game-shell .home-card>small{max-width:none;font-size:7px}
 .game-shell .shell-hero h2{font-size:27px;line-height:1.1;max-width:65%;margin:6px 0}
 .game-shell .shell-hero>.shell-eyebrow{display:none}
 .game-shell .shell-hero>p{max-width:62%;font-size:9px}
 .game-shell [data-pane=time]{display:flex;flex-direction:column;padding:12px;gap:10px}
 .game-shell [data-pane=time] .settings-row{display:grid;grid-template-columns:1fr;gap:10px;margin:0}
 .game-shell [data-pane=time] .settings-row label{grid-column:auto;font-size:9px}
 .game-shell [data-pane=time] .turn-time-help,.game-shell [data-pane=time] .shell-hint{display:none}
 .game-shell [data-pane=time] .visual-setting{margin-top:4px}
 .game-shell [data-pane=time] .setting-choice{min-height:40px;padding:6px 3px;font-size:8px}
}
@media(max-width:620px) and (max-height:680px) and (orientation:portrait){
 .game-shell .home-card>span:not(.home-card-icon),.game-shell .home-card>small{display:none}
 .game-shell .home-card-art{width:80px;height:52px;top:4px}
 .game-shell .home-card{padding:8px;gap:3px}
 .game-shell .home-card>strong{font-size:9px;line-height:1.3}
 .game-shell .shell-hero>p{font-size:8px;margin-top:5px}
 .game-shell .shell-hero h2{font-size:24px;margin:2px 0}
 .game-shell [data-pane=time] .shell-card-heading{display:none}
}
@media(orientation:landscape) and (max-height:500px){
 .game-shell [data-pane=time] .shell-card-heading,.game-shell [data-pane=time] .shell-hint,.game-shell [data-pane=time] .turn-time-help{display:none}
 .game-shell [data-pane=time]{padding:10px;gap:10px}
 .game-shell .cup-setup{height:auto;max-height:100%;padding:10px}
 .game-shell .cup-setup-grid{grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:0}
 .game-shell .cup-setup-grid label:first-child{grid-column:auto}
 .game-shell .cup-setup-actions{margin-top:8px;flex-direction:row;gap:8px}
 .game-shell .cup-setup-status{margin:5px 0 0!important;font-size:8px!important}
}

@media(max-width:620px) and (max-height:680px) and (orientation:portrait){.game-shell .shell-hero>p{display:none}.game-shell .hero-keyart{height:100%;width:52%;left:auto;right:0;opacity:.8}}
.game-shell #screen-play .mode-list{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:620px) and (orientation:portrait){.game-shell #screen-play .mode-list{gap:8px}.game-shell #screen-play .mode-choice{min-height:62px;padding:10px;gap:5px}.game-shell #screen-play .mode-choice strong{font-size:11px}.game-shell #screen-play .mode-choice small{display:none}.game-shell #mode-explanation{font-size:9px;line-height:1.5}}
@media(orientation:landscape) and (max-height:350px){.game-shell #screen-play .mode-list{gap:6px}.game-shell #screen-play .mode-choice{min-height:50px;padding:8px}.game-shell #screen-play .mode-choice small{display:none}}
@media(min-width:1000px), (orientation:landscape) and (max-height:500px){.game-shell #screen-play .mode-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px) and (max-height:650px) and (orientation:portrait){.game-shell #screen-play .mode-choice{min-height:44px;padding:8px}.game-shell #screen-play .mode-list{gap:6px}}
