/* 0.8.4 — A game window, not a scrolling web page.
   These rules only change presentation; the logical pitch is still 1100×630. */
html:has(.game-shell){height:100%;overflow:hidden}
body.game-shell{--shell-panel:#211b20;--shell-edge:#90643b;--shell-muted:#c9b39a;--shell-gold:#f5cc76;margin:0;padding:0;width:100%;height:100dvh;min-height:0;overflow:hidden;background:#1b1314;font-size:14px}
.game-shell [hidden]{display:none!important}
.game-shell input,.game-shell select{font:inherit}
.game-shell button{touch-action:manipulation}
.game-shell button:focus-visible,.game-shell select:focus-visible,.game-shell input:focus-visible{outline:3px solid #ffe296;outline-offset:2px}
.game-shell .wrap{max-width:none;width:100%;height:100%;margin:0}
.game-shell .wood{width:100%;height:100%;display:grid;grid-template-rows:48px 76px minmax(0,1fr) 34px;gap:0;padding:0;border:0;border-radius:0;box-shadow:none;overflow:hidden}
.game-shell .wood:after{display:none}
.game-shell .topline{display:flex;justify-content:space-between;align-items:center;margin:0;padding:0 20px;min-height:0;background:#24191bd9;border-bottom:1px solid #e8ac5055}
.match-brand{border:0;background:none;color:#ffda84;font-weight:1000;font-size:20px;letter-spacing:1px;padding:6px 0}
.match-brand small{font-size:10px;color:#bfaa93;margin-left:10px}
.match-tagline{font-size:10px;color:#d6bc91;letter-spacing:2px}
.shell-icon-button{width:34px;height:34px;border:1px solid #9c7545;background:#34242b;color:#fbd991;border-radius:5px;padding:7px}
.shell-icon-button svg{width:100%;height:100%}
.shell-match-hud{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,300px);grid-template-rows:40px 28px;padding:4px 14px;gap:2px 12px;background:#24191b99;min-width:0}
.game-shell .shell-match-hud>.hud:first-child{grid-column:1;grid-row:1;display:grid!important;grid-template-columns:1fr 28px 1fr!important;margin:0!important;gap:5px}
.game-shell .shell-match-hud .hudbox{min-height:0;height:36px;padding:3px 8px;box-shadow:none;border:1px solid #be9455;border-radius:4px;gap:10px}
.game-shell .hudbox{min-width:0}.game-shell .hudbox>.badge-team{min-width:0;flex:0 1 auto}.game-shell .badge-team>span:not(.team-crest-icon){min-width:0;overflow:hidden;text-overflow:ellipsis}.game-shell .score{flex:none}.game-shell #turn-details{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.game-shell .badge-team{font-size:12px;padding:3px 7px;max-width:none;overflow:hidden;text-overflow:ellipsis;border-width:1px}
.game-shell .score{font-size:25px;line-height:1}
.game-shell .versus{text-align:center;font-size:12px}
.game-shell .shell-match-hud>.hud-turn{grid-column:2;grid-row:1 / 3;display:flex!important;flex-direction:column;gap:3px;justify-content:center;margin:0!important}
.game-shell .hud-turn>.hudbox{height:27px;border:0;background:none;padding:0;font-size:11px}
.game-shell .hud-turn .hud-right{display:flex!important;height:20px;font-size:10px;gap:5px}
.game-shell .hud-turn .hud-right strong{font-size:10px}
.game-shell #turn-details{font-size:9px}
.game-shell .match-status{display:flex!important;grid-row:2;grid-column:1;justify-content:center;align-items:center;margin:0;gap:6px;min-width:0;overflow:hidden;flex-wrap:nowrap}
.game-shell .status-token{padding:2px 5px;border:0;min-height:18px;background:#211a22;color:#e5c792;font-size:9px;white-space:nowrap}
.game-shell #referee-display{display:none}
.game-shell .arena-row{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:0;min-height:0;min-width:0;height:100%;overflow:hidden}
.game-shell .table-frame{height:100%;width:100%;min-width:0;min-height:0;display:grid;place-items:center;align-self:stretch;justify-self:stretch;max-width:none;padding:12px;border:0;border-radius:0;outline:none;box-shadow:none;background:#82452255}
.game-shell .screw{display:none}
.game-shell #game{aspect-ratio:auto;max-width:none;max-height:none;border:0;border-radius:3px;outline:3px solid #d2a264;box-shadow:0 0 0 7px #4e2f24,0 6px 12px #160d0b77;flex:none;overflow:hidden}
.game-shell #game>canvas{max-width:none!important;max-height:none;display:block;image-rendering:pixelated}
.game-shell .mobile-rail{display:flex;flex-direction:column;gap:8px;padding:12px;max-height:none;overflow:hidden;margin:0;min-height:0;background:linear-gradient(145deg,#302126,#1c181e);border-left:2px solid #c38b4655}
.game-shell .rail-turn,.game-shell .rail-score{display:none}
.game-shell .rail-btn{width:100%;min-height:44px;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;text-align:left;gap:8px;padding:9px 10px;border:1px solid #8d6b4d;border-radius:5px;background:#3b2c30;color:#fae6be;font-size:12px;line-height:1.2;font-weight:bold;box-shadow:0 2px 0 #100d12;flex:none}
.game-shell .rail-btn:disabled{opacity:.4;cursor:not-allowed}
.game-shell .rail-btn:hover:not(:disabled){border-color:#f4ca77;background:#59412e}
.rail-icon{display:flex;width:22px;height:22px;color:#f0ca7d}.rail-icon svg{width:100%;height:100%}
.game-shell .rail-btn small{display:block;font-size:10px;color:#e9c981}
.game-shell #mobile-special{background:#4b3627;border-color:#ce9b50}
.game-shell #mobile-fullscreen{margin-top:auto}
.game-shell .bottom,.game-shell .rotate-hint{display:none!important}
.game-shell .shell-force{display:flex;order:5;min-height:54px;flex:none;padding:8px;box-shadow:none;border:1px solid #72523f;background:#241b22;margin-top:0;gap:5px;border-radius:4px}
.game-shell .shell-force .label{font-size:9px}.game-shell .shell-force .meter{min-width:0;height:18px;padding:2px;border-width:1px;gap:2px}.game-shell .shell-force .percent{font-size:12px;min-width:30px}
.game-shell #discipline-panel{display:flex!important;order:6;flex-direction:column;align-items:flex-start;padding:8px;gap:4px;margin:0;border:1px solid #70543c;background:#221b21;box-shadow:none;font-size:10px;min-height:0;max-height:80px;overflow:auto;flex:none}
.game-shell #discipline-panel[hidden]{display:none!important}
.game-shell #discipline-summary{min-width:0;font-size:10px;line-height:1.5}.game-shell .discipline-heading{font-size:10px}
.game-shell #mobile-sound{order:7}.game-shell #mobile-fullscreen{order:8}
.game-shell .footbar{display:flex;align-items:center;margin:0;padding:4px 12px;gap:8px;min-width:0;background:#25191bd9;border-top:1px solid #cf95544d;flex-wrap:nowrap;overflow:hidden}
.game-shell .tip{padding:0;background:none;border:0;font-size:11px;line-height:1.3;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-shell .version{font-size:9px;padding:2px 5px;border:0;background:none;flex:none;width:auto}
.game-shell .utilities{display:contents;margin:0}
.game-shell .utility-drawer:not([open]){display:none!important}
.game-shell .utility-drawer[open]{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(720px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;background:#261d25;z-index:380;border:3px solid #d5a163;box-shadow:0 0 0 100vmax #090b11b8;padding:8px}
.game-shell .utility-drawer>summary{position:sticky;top:-8px;background:#33232b;font-size:13px;padding:10px;z-index:2}
.drawer-close{margin-left:auto;font-size:24px;color:#f7d79c;border:0;background:none;min-width:36px;min-height:36px}
.game-shell .effects-preview{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(690px,calc(100vw - 24px));max-height:calc(100dvh - 24px);z-index:390;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px;background:#2a2029;border:2px solid #c09056;overflow:auto;box-shadow:0 0 0 100vmax #090b11b8;align-content:start}
.game-shell .effects-preview[hidden]{display:none!important}.game-shell .effects-preview .label{grid-column:1/-1;font-size:10px}.effects-close{grid-column:1/-1;justify-self:end}
.game-shell #super-strip{display:none;position:fixed;left:auto;right:236px;top:132px;bottom:auto;width:min(420px,calc(100vw - 32px));max-height:none;z-index:300;grid-template-columns:1fr 1fr;gap:10px;padding:14px;margin:0;border:2px solid #d5a368;background:#28202c;box-shadow:0 8px 30px #0c0912b3;border-radius:6px;overflow:visible}
.game-shell #super-strip.show-mobile{display:grid}
.power-popover-heading{display:flex;align-items:center;justify-content:space-between;grid-column:1/-1;color:#ffe0a3;font-size:13px}
.power-popover-heading button{border:1px solid #7d6554;background:#3b2a30;color:#ffe1a3;font-size:23px;line-height:1;min-height:32px;min-width:32px}
.game-shell #super-strip .energy-label{justify-self:stretch;font-size:10px}
.game-shell #super-strip .energy-label>span[id^=energy-name]{min-width:0;max-width:calc(100% - 60px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-shell #super-strip .energy-pips{flex:none}
.game-shell #super-strip .energy-label:nth-of-type(3){justify-self:end}
.game-shell #super-strip .special-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-row:auto;grid-column:1/-1;gap:9px;overflow:visible;padding:0}
.game-shell #super-strip .special-choice{width:100%;max-width:none;height:64px;min-height:0;padding:7px 2px 5px;display:flex;flex-direction:column;gap:5px;font-size:10px}
.game-shell #super-strip .power-icon{width:24px;height:24px}.power-name{font-size:10px;line-height:1;white-space:nowrap}
.game-shell #super-strip .super-status{display:block;grid-column:1/-1;font-size:10px;min-width:0;white-space:normal;line-height:1.4}
.radial-choice .power-name{display:none}
.game-shell #game-over.show{position:fixed;inset:0;z-index:490;padding:16px;background:#090b13d9;backdrop-filter:blur(5px)}
.game-shell .modalbox{max-width:500px;padding:24px;max-height:calc(100dvh - 32px);overflow:auto}
.game-shell #var-review:not([hidden]){position:fixed;inset:0;z-index:450;background:#090b13e8;display:grid;place-items:center}
.game-shell .var-tv{width:min(1000px,94vw,calc((100dvh - 64px)*1.6));max-height:95dvh}
.game-shell .var-offer{font-size:10px}
.game-shell .full-overlay{padding:0;overflow:hidden;backdrop-filter:none;background:#17131bed;place-items:stretch}
.game-shell #main-menu{background:#19151c}
.game-shell #main-menu>.menu-window{display:grid;grid-template-columns:212px minmax(0,1fr);grid-template-rows:76px minmax(0,1fr) 72px;grid-template-areas:'header header' 'nav content' 'nav footer';width:100%;height:100%;max-width:none;max-height:none;border:0;border-radius:0;box-shadow:none;overflow:hidden;background:radial-gradient(ellipse at 70% 10%,#43302b66,transparent 65%),#201a21}
.game-shell .menu-head{grid-area:header;padding:12px 24px;display:flex;justify-content:space-between;border-bottom:1px solid #a978414d;background:linear-gradient(100deg,#4c2d22,#2c2024);min-width:0;min-height:0;text-align:left}
.shell-brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-disc{display:grid;place-items:center;width:43px;height:43px;flex:none;border-radius:50%;border:4px solid #f5d79c;background:#b7533e;color:#fff4d4;box-shadow:3px 4px 0 #1b1216;font-size:22px;font-weight:bold}
.game-shell .menu-head h1{font-size:27px;letter-spacing:1px;margin:0 0 5px;line-height:1;color:#ffcf65;text-shadow:2px 2px #8e4824}
.game-shell .menu-head h1 small{font-size:10px;color:#d5c1a0;text-shadow:none;font-weight:normal}
.shell-brand>div>span{display:block;font-size:9px;color:#cfb69a;letter-spacing:1px}.shell-local{font-size:10px;letter-spacing:2px;color:#ccb28d}
.shell-nav{grid-area:nav;display:flex;flex-direction:column;gap:6px;padding:22px 12px;background:#17151ce6;border-right:1px solid #b9893c33;overflow:hidden;min-height:0}
.shell-nav-button{display:flex;align-items:center;gap:12px;text-align:left;min-height:49px;width:100%;padding:12px;border:1px solid transparent;border-radius:5px;color:#cfbba4;background:transparent;font-size:12px;font-weight:bold}
.shell-nav-button svg{width:23px;height:23px;flex:none}.shell-nav-button.active{background:linear-gradient(100deg,#60422b,#392b26);border-color:#bd92514d;color:#ffe2a0;box-shadow:inset 3px 0 #ffce76}
.shell-nav-button:hover{background:#372a2a;color:#ffe2a0}.nav-short{display:none}
.shell-nav-button{position:relative}.nav-news{position:absolute;top:9px;right:9px;width:7px;height:7px;border-radius:50%;background:#f8cf70;box-shadow:0 0 0 2px #382a25}
.shell-content{grid-area:content;display:grid;grid-template-rows:64px minmax(0,1fr);padding:0 28px 20px;min-width:0;min-height:0;overflow:hidden}
.shell-page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #a4773b30;min-width:0}
.shell-page-head h2{font-size:23px;color:#ffdfa0;margin:3px 0 0;line-height:1.1}.shell-eyebrow{font-size:9px;letter-spacing:1.5px;color:#bea489;line-height:1.4}
#shell-page-note{font-size:9px;letter-spacing:1px;color:#af9783;text-align:right}
.shell-page{display:flex;flex-direction:column;gap:16px;min-height:0;min-width:0;padding-top:20px;overflow:hidden}
.game-shell .menu-footer{grid-area:footer;display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:16px;padding:12px 28px;border-top:1px solid #a4773b55;background:#20191f;min-height:0}
.game-shell .menu-footer span{font-size:11px;line-height:1.5;letter-spacing:0;color:#c8ad8b}
.game-shell .menu-footer .start-btn{min-height:44px;min-width:210px;font-size:13px;padding:10px 22px;background:linear-gradient(#ffdf92,#dfa348);border:1px solid #f8d397;color:#332017;box-shadow:0 3px 0 #513021}
.shell-home{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;min-height:0;height:100%}
.shell-hero{position:relative;display:flex;flex-direction:column;overflow:hidden;border:1px solid #c9954555;border-radius:10px;background:radial-gradient(ellipse at 50% 80%,#2c70514d,transparent 70%),linear-gradient(145deg,#3b2924,#242127);padding:clamp(20px,3vw,46px)}
.shell-hero h2{font-size:clamp(36px,4.4vw,72px);line-height:.95;margin:24px 0 16px;color:#ffdc85;text-shadow:3px 4px #583221;letter-spacing:-2px}
.shell-hero>p{font-size:clamp(12px,1.2vw,16px);line-height:1.7;color:#ccb69b;margin:0;z-index:1}
.hero-stamp{font-size:10px;letter-spacing:1px;color:#dfc7a1;position:absolute;bottom:22px;left:30px;right:30px}
.home-pitch{position:absolute;left:12%;right:10%;bottom:13%;height:36%;background:repeating-linear-gradient(90deg,#1a6148 0 12%,#1f694b 12% 24%);border:2px solid #a3b99585;transform:rotate(-8deg);box-shadow:8px 10px 0 #181b1a;opacity:.85}
.home-pitch:before{content:'';position:absolute;left:50%;height:100%;width:1px;background:#c3cfb88c}.home-pitch:after{content:'';position:absolute;inset:15% 0;border-left:30px solid #adc69f33;border-right:30px solid #adc69f33}
.home-circle{position:absolute;left:37%;top:22%;width:26%;height:56%;border:2px solid #c5d3b38c;border-radius:50%}
.home-disc{position:absolute;z-index:1;width:34px;height:34px;border:4px solid #ecd6a5;border-radius:50%;display:grid;place-items:center;box-shadow:3px 4px #162d25;color:#3d2720;font-style:normal;background:#ca6651;font-size:15px;font-weight:bold}.home-disc.blue{background:#5d98c5;color:#f9e9c2}
.d1{left:36%;top:27%}.d2{left:12%;top:12%}.d3{left:23%;bottom:10%}.d4{right:22%;top:17%}.d5{right:7%;bottom:14%}.home-ball{position:absolute;left:56%;top:52%;width:13px;height:13px;background:#f7e7bf;border:3px solid #333d37;border-radius:50%;z-index:2}
.home-cards{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:16px;min-height:0}
.home-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;text-align:left;padding:24px;min-height:0;min-width:0;border:1px solid #87634470;border-radius:8px;background:linear-gradient(145deg,#3a2b2d,#29232b);color:#ead7b8}
.home-card:hover,.home-card:focus-visible{border-color:#eac17a;background:linear-gradient(145deg,#5a3f2c,#30272b)}
.home-card-icon{display:block;width:35px;height:35px;color:#f2c772}.home-card-icon svg{width:100%;height:100%}
.home-card small{font-size:9px;color:#b79a7b;letter-spacing:1px}.home-card strong{font-size:clamp(13px,1.25vw,19px);line-height:1.35;color:#ffe0a0}.home-card>span:not(.home-card-icon){font-size:12px;line-height:1.6;color:#c5b29d}.home-card>b{position:absolute;top:17px;right:18px;font-size:22px;color:#ae8b5c}
.shell-tabs{display:flex;gap:6px;flex:none;min-width:0;flex-wrap:wrap}
.shell-button{border:1px solid #7d604a;border-radius:4px;background:#30252d;color:#dec5a4;min-height:40px;padding:9px 16px;font-size:12px;font-weight:bold;line-height:1.2}
.shell-button:hover,.shell-button.active{background:#60452d;border-color:#e3bc77;color:#fff0c3}.shell-button:disabled{opacity:.35;cursor:not-allowed}
.shell-tabs>.shell-button{flex:1;min-width:0}.shell-card{min-width:0;min-height:0;border:1px solid #87633f66;background:linear-gradient(145deg,#30252a,#242029);border-radius:7px;padding:24px;overflow:hidden}
.shell-card-heading h3{font-size:15px;color:#ffe0a0;margin:0 0 12px}.shell-card-heading p{font-size:12px;line-height:1.6;color:#c6b29b;margin:0 0 16px}
.play-panels,.team-panels,.competition-panels,.help-body{flex:1;min-height:0;min-width:0;overflow:hidden}
.play-panels>.shell-card{height:100%}
.game-shell .opponent-list,.game-shell .mode-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.game-shell .opponent-choice,.game-shell .mode-choice{min-height:100px;padding:20px;gap:12px;box-shadow:none;border-width:1px;background:#28202b;color:#ecd4ae;border-color:#8d6a44}
.game-shell .opponent-choice strong,.game-shell .mode-choice strong{font-size:16px}.game-shell .opponent-choice small,.game-shell .mode-choice small{font-size:12px;line-height:1.5}
.game-shell .opponent-choice.selected,.game-shell .mode-choice.selected{background:#58412a;border-color:#ffdb86;box-shadow:inset 0 0 0 1px #ffdb8644}
.game-shell .cpu-difficulty{padding:14px;margin-top:18px;border-width:1px;background:#211d25}
.game-shell .opponent-explanation,.game-shell .mode-explanation,.game-shell .difficulty-desc{font-size:12px;line-height:1.6;margin:14px 0;color:#cdb697}
.game-shell .difficulty-choice{min-height:65px;padding:10px;border-width:1px}
.game-shell .settings-row{gap:18px;margin:18px 0;grid-template-columns:1fr 1fr}
.game-shell .settings-row label{font-size:12px;gap:9px;line-height:1.4}.game-shell .settings-row select{font-size:14px;min-height:45px;padding:10px 12px;border:1px solid #a77d48;background:#f2dfb3;color:#2f2020}
.game-shell .turn-time-help{font-size:12px;line-height:1.6}.shell-hint{font-size:12px;line-height:1.6;color:#c5ae94;margin:8px 0;flex:none}
.game-shell .club-customizer,.game-shell .case-section,.game-shell .cup-section{height:100%;margin:0;padding:0;border:0;background:none;box-shadow:none;border-radius:0;overflow:hidden}
.game-shell #club-customizer>summary,.game-shell #case-section>summary,.game-shell #cup-section>summary,.game-shell #league-section>summary{display:none}
.game-shell .club-editor-grid{display:block;padding:0;min-height:0}
.game-shell .club-editor{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:24px;border:1px solid #87633f66;border-radius:7px;background:#30252a}
.game-shell .club-editor-heading{grid-column:1/-1;margin:0;gap:9px;font-size:13px}
.game-shell .club-field{font-size:11px;gap:9px;margin:0 0 14px}.game-shell .club-field input,.game-shell .club-field select{min-height:42px;font-size:13px;border:1px solid #a17848;padding:8px;width:100%}
.game-shell .club-subheading{font-size:10px;margin:10px 0 8px}.game-shell .club-colors,.game-shell .club-emblems{gap:7px;display:flex;flex-wrap:wrap}
.game-shell .club-color-swatch,.game-shell .club-emblem-choice{width:33px;height:33px;min-width:0;min-height:0;border-width:2px;font-size:19px}
.game-shell .club-roster-preview{grid-column:1/-1;justify-content:center;gap:10px;padding:10px 0 0;margin:0}
.game-shell .club-mini-button{width:clamp(34px,4vw,52px);height:auto}
.game-shell .club-editor-footer{padding:12px 0 0;display:flex;align-items:center;gap:8px;justify-content:space-between;font-size:10px;line-height:1.5}
.game-shell .club-editor-footer .pixel-btn{font-size:10px;min-height:36px;white-space:nowrap}
.game-shell #club-customizer>.shell-tabs{display:none;margin-bottom:10px}
.game-shell .case-inner{height:100%;display:flex;flex-direction:column;gap:10px;padding:0;min-height:0}
.game-shell .case-intro{font-size:12px;line-height:1.5}.game-shell .case-actions{gap:10px;margin:0;flex:none}
.game-shell .case-actions .pixel-btn{min-height:40px;font-size:11px}
.game-shell .case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;gap:10px;flex:1;min-height:0;overflow:hidden;align-content:start;margin:0}
.game-shell .case-card{padding:12px;border-width:1px;box-shadow:none;min-height:115px}.game-shell .case-action{min-height:32px;font-size:10px}.game-shell .case-card-head{gap:10px}.game-shell .case-info strong{font-size:13px}.game-shell .case-status{font-size:10px;flex:none;line-height:1.5;padding:0}
.game-shell .cup-setup{padding:20px;border:1px solid #87633f66;background:#30252a;border-radius:7px;height:100%;overflow:hidden}
.game-shell .cup-setup>p{font-size:12px;line-height:1.6;margin:0 0 18px;max-width:850px}
.game-shell .cup-setup-grid{grid-template-columns:1.4fr 1fr 1fr;gap:16px;margin-top:20px}
.game-shell .cup-setup-grid select{font-size:13px;min-height:44px;border-width:1px}.game-shell .cup-setup-grid label{font-size:11px;gap:9px}
.game-shell .cup-setup-actions{margin-top:24px;gap:12px}.game-shell .cup-setup-actions .pixel-btn{min-height:44px;font-size:12px}
.game-shell .cup-setup-status{font-size:11px!important;margin-top:14px!important}
.collection-menu{display:grid;grid-template-columns:1fr 1fr;gap:20px;min-height:0;height:100%}
.game-shell .collection-menu>.achievement-entry,.game-shell .collection-menu>.trophy-entry{display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:30px;border:1px solid #98744770;background:linear-gradient(145deg,#3a2b28,#26212a);border-radius:8px;gap:20px;min-width:0}
.game-shell .collection-menu .pixel-btn{display:flex;flex-direction:column;gap:24px;align-items:center;justify-content:center;min-height:180px;font-size:18px;line-height:1.5;background:none;border:0;color:#ffe0a1;box-shadow:none}
.collection-menu svg{width:64px;height:64px;color:#e4bb70}.game-shell .collection-menu small{font-size:12px;line-height:1.7;text-align:center;color:#c5ad92}
.game-shell #screen-options{display:grid;grid-template-columns:1.2fr 1fr;grid-template-rows:minmax(0,1fr) auto;gap:20px}
.game-shell #screen-options[hidden]{display:none!important}
.game-shell .menu-options{display:flex;flex-direction:column;gap:9px;padding:24px;border:1px solid #87633f66;background:#30252a;border-radius:7px;margin:0;min-height:0}
.game-shell .menu-options h3{font-size:13px;color:#ffe0a0;margin:0 0 6px}.game-shell #screen-options>.shell-hint{grid-column:1/-1}
.game-shell .shell-toggle{display:flex;align-items:center;gap:12px;font-size:12px;min-height:43px;padding:10px;border:1px solid #88664970;border-radius:4px;line-height:1.5;color:#e5ccb0;cursor:pointer}
.game-shell .shell-toggle input{width:19px;height:19px;accent-color:#e2b668;flex:none;margin:0}
.game-shell #screen-options .shell-card{display:flex;flex-direction:column;gap:12px}.game-shell #screen-options .shell-card-heading h3{font-size:13px}
.help-body>.shell-card{height:100%}.help-text{font-size:16px;line-height:1.9;max-width:880px;margin:0;color:#e3ccb1}
.shell-pager{display:flex;align-items:center;justify-content:center;gap:16px;min-height:40px;flex:none;color:#cdb58f;font-size:12px}
.shell-pager .shell-button{padding:4px 16px;min-height:34px}.shell-pager[hidden]{display:none!important}
.game-shell .cup-board-window{width:100%;height:100%;max-width:none;max-height:none;display:flex;flex-direction:column;min-height:0;min-width:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;background:#241e27}
.game-shell .cup-board-head{flex:none;min-height:76px;padding:12px 24px;border-bottom:1px solid #be894c66;background:linear-gradient(100deg,#503022,#2d2128);gap:12px;display:flex!important}
.game-shell .cup-board-head h2{font-size:28px;margin:2px 0;white-space:normal}.game-shell .cup-board-head small{font-size:9px;letter-spacing:1px}.game-shell .cup-board-head p{font-size:11px}.game-shell .cup-trophy{font-size:32px}
.game-shell .cup-board-status{padding:10px 16px;font-size:13px;margin:12px 24px 8px;flex:none;border-width:1px}
.game-shell .cup-board-footer{padding:12px 24px;border-top:1px solid #a4773b55;background:#211a22;flex:none;min-height:0;margin-top:auto}
.game-shell .cup-board-footer .pixel-btn{min-height:40px;font-size:12px;border-width:1px;box-shadow:none}
.game-shell .cup-summary{font-size:11px;margin:0 0 8px}.game-shell .cup-board-actions{gap:10px}
.game-shell .cup-bracket{flex:1;min-height:0;overflow:hidden;padding:10px 24px 16px;grid-template-columns:repeat(var(--cup-columns,3),minmax(0,1fr));align-content:start}
.game-shell .cup-round{gap:8px}.game-shell .cup-fixture{border-width:1px;padding:6px;box-shadow:none}.game-shell .cup-fixture-team{font-size:12px;padding:8px 5px}.game-shell .cup-round h3{font-size:12px;margin-bottom:7px}
.cup-round-tabs{display:none;margin:4px 24px 0}
.game-shell .league-board-window{display:grid;grid-template-columns:1.1fr 1fr;grid-template-rows:76px auto minmax(0,1fr) auto;gap:0}
.game-shell .league-board-window>.cup-board-head,.game-shell .league-board-window>.cup-board-status,.game-shell .league-board-window>.cup-board-footer{grid-column:1/-1}
.game-shell .league-table-wrap,.game-shell .league-fixtures{min-height:0;margin:8px 12px 16px;padding:14px;border-width:1px;overflow:hidden}
.game-shell .league-table-wrap{margin-left:24px}.game-shell .league-fixtures{margin-right:24px}
.game-shell .league-table{min-width:0;width:100%;font-size:12px;table-layout:auto}.game-shell .league-table-scroll{overflow:hidden}
.game-shell .league-table td,.game-shell .league-table th{font-size:11px;padding:8px 3px;min-width:0;max-width:none}
.game-shell .league-table td:nth-child(2),.game-shell .league-table th:nth-child(2){min-width:0;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-shell .league-table-help{font-size:10px}.game-shell .league-fixtures-list{grid-template-columns:1fr;gap:8px}.game-shell .league-fixture{padding:12px}.league-view-tabs{display:none}
.league-detail-toggle{display:none;border:1px solid #8c6b43;background:#34272e;color:#f1d8ab;padding:7px;margin-top:12px;font-size:10px}
.game-shell .trophy-stats{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:16px 24px;gap:10px;flex:none}
.game-shell .trophy-stat{padding:10px 4px;border-width:1px}.game-shell .trophy-stat strong{font-size:24px}.game-shell .trophy-stat small{font-size:10px}
.game-shell .trophy-list{max-height:none;overflow:hidden;flex:1;min-height:0;padding:0 24px 10px;display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:start}.game-shell .trophy-item{margin:0;padding:14px;border-width:1px}.game-shell .trophy-item-top{font-size:12px}.game-shell .trophy-item-top small{font-size:10px}
.game-shell .achievement-summary{flex:none;font-size:12px;margin:10px 0 6px;padding:0 24px}.game-shell .achievement-help{font-size:11px;padding:0 24px;line-height:1.6;margin:5px 0 8px;flex:none}
.game-shell .achievement-list{flex:1;min-height:0;padding:12px 24px;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;gap:10px;overflow:hidden;align-content:start}
.game-shell .achievement-card{padding:14px;min-height:145px;border-width:1px;gap:12px}.game-shell .achievement-card h3{font-size:12px;margin-bottom:6px}.game-shell .achievement-card p{font-size:11px;line-height:1.5;margin:0 0 10px}.game-shell .achievement-reward{margin-top:10px;font-size:10px}.game-shell .achievement-card small{font-size:10px}
.game-shell .achievement-dismiss.pixel-btn{width:36px;height:36px;min-height:36px;min-width:36px;font-size:24px;padding:4px}
.game-shell .pause-window,.game-shell .confirm-window{width:min(560px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);height:auto;margin:auto;display:flex;padding:24px;border-width:2px;border-radius:8px;box-shadow:0 12px 50px #0007;background:#2e232a;overflow:auto}
.game-shell .pause-window .menu-kicker{font-size:10px}.game-shell .pause-window h2,.game-shell .confirm-window h2{font-size:28px}.game-shell .pause-window p,.game-shell .confirm-window p{font-size:13px;line-height:1.7}
.game-shell .pause-actions{display:flex;flex-direction:column;gap:10px}.game-shell .pause-actions>.pixel-btn{min-height:44px}.pause-extras{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.pause-extras .pixel-btn{font-size:10px;min-height:40px;padding:7px}
.game-shell #confirm-layer{z-index:700}.game-shell #pause-layer{z-index:500}.game-shell #load-error.show{position:fixed;z-index:1000;inset:20% 12px auto;margin:auto;max-width:700px}.game-shell .shell-hidden-control{display:none!important}

/* Tablets and smaller desktop windows: keep the game shell, reduce chrome. */
@media(max-width:1100px){
 .game-shell #main-menu>.menu-window{grid-template-columns:174px minmax(0,1fr)}
 .shell-nav{padding:18px 8px}.shell-nav-button{font-size:11px;gap:8px;padding:10px}
 .shell-content{padding:0 18px 16px}.game-shell .menu-footer{padding:10px 18px}
 .shell-home{gap:16px;grid-template-columns:1fr 1fr}.home-cards{gap:10px}.home-card{padding:18px;gap:10px}.home-card>span:not(.home-card-icon){font-size:11px}.home-card strong{font-size:14px}.home-card-icon{width:28px;height:28px}
 .shell-hero{padding:24px}.shell-hero h2{font-size:48px}.shell-hero .shell-eyebrow{font-size:8px}
 .game-shell .arena-row{grid-template-columns:minmax(0,1fr) 180px}.game-shell .rail-btn{font-size:11px;padding:8px;gap:6px}.game-shell .mobile-rail{padding:10px;gap:7px}.game-shell #super-strip{right:194px}
 .game-shell .club-editor{padding:18px;gap:12px}.game-shell .club-roster-preview{gap:6px}
 .game-shell .cup-setup{padding:18px}.game-shell .cup-setup-grid{gap:10px}
}
/* Narrow portrait: bottom navigation, a short page at a time. */
@media(max-width:720px) and (orientation:portrait){
 .game-shell #main-menu>.menu-window{grid-template-columns:minmax(0,1fr);grid-template-rows:60px minmax(0,1fr) 66px 62px;grid-template-areas:'header' 'content' 'footer' 'nav'}
 .game-shell .menu-head{padding:9px 14px}.game-shell .menu-head h1{font-size:23px}.shell-brand{gap:9px}.brand-disc{width:35px;height:35px;font-size:17px;border-width:3px}.shell-brand>div>span{font-size:7px;letter-spacing:.8px}.shell-local{display:none}
 .shell-nav{flex-direction:row;gap:0;padding:3px 2px;justify-content:space-between;border-right:0;border-top:1px solid #a4773b55}
 .shell-nav-button{flex:1;min-width:0;min-height:0;padding:5px 1px;gap:5px;flex-direction:column;text-align:center;font-size:8px;line-height:1.1;border-radius:3px}.shell-nav-button svg{width:20px;height:20px}.nav-long{display:none}.nav-short{display:block}.shell-nav-button.active{box-shadow:inset 0 2px #e2bc74}
 .shell-content{grid-template-rows:51px minmax(0,1fr);padding:0 14px 12px}.shell-page-head h2{font-size:20px}.shell-page-head .shell-eyebrow{font-size:7px}#shell-page-note{display:none}
 .shell-page{gap:12px;padding-top:14px}.game-shell .menu-footer{padding:9px 14px;gap:8px;flex-direction:row}.game-shell .menu-footer .start-btn{min-width:145px;padding:8px 12px;font-size:12px;min-height:44px}.game-shell .menu-footer span{font-size:8px;max-width:140px}
 .shell-home{grid-template-columns:1fr;grid-template-rows:minmax(110px,.75fr) minmax(0,1.5fr);gap:12px}
 .shell-hero{padding:18px}.shell-hero h2{font-size:34px;line-height:1;margin:8px 0 0;letter-spacing:-1px}.shell-hero h2 br{display:none}.shell-hero>p{font-size:11px;line-height:1.5;margin-top:8px}.shell-hero .shell-eyebrow{font-size:8px}.hero-stamp{display:none}.home-pitch{left:auto;right:-12px;width:46%;bottom:10px;height:65%;opacity:.35}.home-disc{width:24px;height:24px;font-size:10px;border-width:3px}.home-ball{width:9px;height:9px}
 .home-cards{gap:10px}.home-card{padding:14px;gap:8px}.home-card small{font-size:7px;letter-spacing:.3px}.home-card strong{font-size:12px}.home-card>span:not(.home-card-icon){font-size:10px;line-height:1.4}.home-card-icon{width:25px;height:25px}.home-card>b{font-size:15px;top:12px;right:12px}
 .shell-button{padding:9px 8px;font-size:11px;min-height:40px}.shell-card{padding:18px}.shell-card-heading h3{font-size:13px}
 .game-shell .opponent-list,.game-shell .mode-list{grid-template-columns:1fr;gap:10px;margin-top:12px}.game-shell .opponent-choice,.game-shell .mode-choice{min-height:76px;padding:14px;gap:6px}.game-shell .opponent-choice strong,.game-shell .mode-choice strong{font-size:13px}.game-shell .opponent-choice small,.game-shell .mode-choice small{font-size:11px}
 .game-shell .cpu-difficulty{padding:10px;margin-top:12px}.game-shell .difficulty-choice{min-height:54px;padding:6px 2px}.game-shell .difficulty-choice strong{font-size:11px}.game-shell .difficulty-choice small{font-size:8px}.game-shell .opponent-explanation,.game-shell .mode-explanation,.game-shell .difficulty-desc{font-size:11px;margin:10px 0}
 .game-shell .settings-row{gap:12px;grid-template-columns:1fr 1fr;margin:14px 0}.game-shell .settings-row label{font-size:10px}.game-shell .settings-row select{font-size:12px;padding:8px}.game-shell .turn-time-help{font-size:10px}.shell-hint{font-size:11px}
 .game-shell .club-editor{padding:16px;gap:12px;grid-template-columns:1fr}.game-shell .club-editor-heading{font-size:11px}.game-shell .club-field{font-size:10px;margin-bottom:10px}.game-shell .club-field input,.game-shell .club-field select{font-size:11px}.game-shell .club-subheading{font-size:9px;margin:5px 0 7px}.game-shell .club-color-swatch,.game-shell .club-emblem-choice{width:30px;height:30px}.game-shell .club-colors,.game-shell .club-emblems{gap:7px}.game-shell .club-roster-preview{padding-top:0;gap:4px}.game-shell .club-mini-button{width:34px}.game-shell .club-editor-footer{font-size:8px;gap:6px}.game-shell .club-editor-footer .pixel-btn{font-size:8px;padding:6px}
 .game-shell .case-grid{grid-template-columns:1fr}.game-shell .case-intro{font-size:10px}.game-shell .case-actions{gap:7px;flex-wrap:wrap}.game-shell .case-actions .pixel-btn{font-size:9px;padding:7px;min-height:36px}.game-shell .case-card{padding:10px}.game-shell .case-status{font-size:9px}
 .game-shell .cup-setup{padding:16px}.game-shell .cup-setup>p{font-size:11px;margin-bottom:12px}.game-shell .cup-setup-grid{grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.game-shell .cup-setup-grid label:first-child{grid-column:1/-1}.game-shell .cup-setup-grid label{font-size:10px}.game-shell .cup-setup-grid select{font-size:11px;padding:8px}.game-shell .cup-setup-actions{margin-top:18px;flex-direction:column;gap:8px}.game-shell .cup-setup-actions .pixel-btn{font-size:11px}.game-shell .cup-setup-status{font-size:10px!important;margin-top:12px!important}
 .collection-menu{grid-template-columns:1fr;grid-template-rows:1fr 1fr;gap:12px}.game-shell .collection-menu>.achievement-entry,.game-shell .collection-menu>.trophy-entry{padding:18px;gap:10px}.game-shell .collection-menu .pixel-btn{font-size:14px;min-height:90px;gap:12px}.collection-menu svg{width:36px;height:36px}.game-shell .collection-menu small{font-size:10px}
 .game-shell #screen-options{display:flex;gap:12px}.game-shell .menu-options{gap:6px;padding:14px}.game-shell .menu-options h3{font-size:11px;margin:0}.game-shell .shell-toggle{font-size:10px;min-height:38px;padding:7px;gap:9px}.game-shell #screen-options .shell-card{padding:14px;gap:7px}.game-shell #screen-options .shell-card-heading h3{font-size:11px;margin-bottom:3px}
 #screen-help .shell-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#screen-help .shell-button{font-size:9px;padding:6px;min-height:38px}.help-text{font-size:13px;line-height:1.8}
 .game-shell .wood{grid-template-rows:44px 88px minmax(0,1fr) 42px}.game-shell .topline{padding:0 12px}.match-brand{font-size:17px}.match-tagline{display:none}
 .shell-match-hud{padding:4px 8px;grid-template-columns:1fr;grid-template-rows:37px 24px 18px;gap:0}
 .game-shell .shell-match-hud>.hud:first-child{grid-column:1;grid-row:1}.game-shell .shell-match-hud>.hud-turn{grid-column:1;grid-row:2;flex-direction:row;align-items:center;gap:8px}.game-shell .shell-match-hud>.hud-turn .hudbox{height:22px}.game-shell .hud-turn .hud-right{height:20px}.game-shell .hud-turn .hud-right small{display:none}.game-shell .match-status{grid-column:1;grid-row:3;gap:3px}.game-shell .status-token{font-size:8px;padding:1px 4px}.game-shell .badge-team{font-size:10px;max-width:34vw;white-space:nowrap}.game-shell .score{font-size:23px}.game-shell #turn-details{font-size:8px}
 .game-shell .arena-row{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.game-shell .table-frame{padding:10px}
 .game-shell .mobile-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:10px;border-left:0;border-top:1px solid #a4773b55}.game-shell .rail-btn{font-size:10px;min-height:44px;padding:8px 6px;gap:5px;grid-template-columns:18px minmax(0,1fr);text-align:center}.rail-icon{width:18px;height:18px}.game-shell .rail-btn small{font-size:8px;grid-column:1/-1;line-height:1}.game-shell #mobile-sound,.game-shell #mobile-fullscreen{order:0;margin:0}.game-shell .shell-force{order:9;grid-column:1/-1;min-height:30px;padding:5px 8px}.game-shell #discipline-panel{display:none!important}.game-shell .footbar{padding:5px 10px}.game-shell .tip{font-size:10px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.game-shell .version{display:none}
 .game-shell #super-strip{right:12px;left:12px;top:144px;width:auto;padding:12px;gap:8px}.game-shell #super-strip .special-choice{height:66px}.game-shell #super-strip .super-status{font-size:10px}
 .game-shell .cup-board-head{padding:12px 14px;min-height:65px}.game-shell .cup-board-head h2{font-size:22px}.game-shell .cup-board-head small{font-size:8px}.game-shell .cup-board-head p{font-size:9px}.game-shell .cup-trophy{font-size:26px}
 .game-shell .cup-board-status{margin:10px 12px 7px;font-size:11px;padding:9px}.game-shell .cup-board-footer{padding:10px 12px}.game-shell .cup-board-footer .pixel-btn{font-size:10px;min-height:40px;padding:8px}.game-shell .cup-summary{font-size:10px}.game-shell .cup-board-actions{gap:7px;flex-wrap:wrap}
 .cup-round-tabs{display:flex;margin:4px 12px}.game-shell .cup-bracket{display:flex;flex-direction:column;padding:10px 12px;gap:0}.game-shell .cup-round:not([data-current=true]){display:none}.game-shell .cup-fixture-team{padding:8px;font-size:12px}.game-shell .cup-round h3{display:none}
 .game-shell .league-board-window{display:flex;flex-direction:column}.league-view-tabs{display:flex;margin:4px 12px;flex:none}.game-shell .league-table-wrap,.game-shell .league-fixtures{margin:10px 12px;flex:1;padding:10px}.game-shell #league-board[data-view=table] .league-fixtures,.game-shell #league-board[data-view=round] .league-table-wrap{display:none}
 .game-shell .league-table td,.game-shell .league-table th{font-size:11px;padding:9px 4px}.game-shell .league-table td:nth-child(n+4):not(:nth-child(8)),.game-shell .league-table th:nth-child(n+4):not(:nth-child(8)){display:none}.game-shell .league-table td:nth-child(2){max-width:130px}.game-shell .league-team-dot{width:8px;height:8px;margin-right:5px}.league-detail-toggle{display:block}
 .game-shell #league-board.league-details .league-table td,.game-shell #league-board.league-details .league-table th{display:table-cell!important;padding:8px 1px;font-size:9px}.game-shell #league-board.league-details .league-table td:nth-child(2){max-width:80px;font-size:8px}.game-shell #league-board.league-details .league-team-dot{display:none}
 .game-shell .trophy-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:10px 12px}.game-shell .trophy-stat{padding:8px 3px}.game-shell .trophy-stat strong{font-size:19px}.game-shell .trophy-stat small{font-size:8px}.game-shell .trophy-list{grid-template-columns:1fr;padding:0 12px 8px;gap:8px}.game-shell .trophy-item{padding:12px}.game-shell .trophy-item-top{font-size:10px;gap:8px}.game-shell .trophy-item p{font-size:11px}
 .game-shell .achievement-list{grid-template-columns:1fr;padding:8px 12px;gap:9px}.game-shell .achievement-card{padding:12px;min-height:145px}.game-shell .achievement-summary{font-size:10px;padding:0 12px;margin:10px 0 5px}.game-shell .achievement-help{font-size:10px;padding:0 12px;margin:5px 0}.game-shell .achievement-card p{font-size:10px}.game-shell .achievement-card h3{font-size:11px}
}
/* Short landscape windows (phones, compact tablets, desktop with limited height). */
@media(orientation:landscape) and (max-height:650px){
 .game-shell #main-menu>.menu-window{grid-template-columns:90px minmax(0,1fr);grid-template-rows:48px minmax(0,1fr) 54px}
 .game-shell .menu-head{padding:6px 16px}.game-shell .menu-head h1{font-size:22px;margin-bottom:2px}.brand-disc{height:31px;width:31px;font-size:16px;border-width:3px}.shell-brand>div>span{font-size:7px}.shell-local{font-size:8px}
 .shell-nav{padding:7px 4px;gap:2px;justify-content:space-between}.shell-nav-button{flex-direction:column;justify-content:center;gap:3px;padding:5px 2px;min-height:0;font-size:8px;flex:1}.shell-nav-button svg{width:19px;height:19px}.nav-long{display:none}.nav-short{display:block}
 .shell-content{grid-template-rows:44px minmax(0,1fr);padding:0 16px 10px}.shell-page-head h2{font-size:18px}.shell-eyebrow{font-size:7px}#shell-page-note{font-size:8px}.shell-page{padding-top:10px;gap:8px}
 .game-shell .menu-footer{padding:7px 16px}.game-shell .menu-footer .start-btn{font-size:11px;min-height:38px;min-width:180px;padding:8px 14px}.game-shell .menu-footer span{font-size:9px}
 .shell-home{gap:12px;grid-template-columns:1fr 1.25fr}.shell-hero{padding:18px}.shell-hero h2{font-size:35px;margin:10px 0 9px}.shell-hero>p{font-size:10px}.shell-hero .shell-eyebrow{font-size:7px}.hero-stamp{display:none}.home-pitch{left:16%;right:-12%;bottom:-12%;height:50%;opacity:.35}.home-disc{width:24px;height:24px;font-size:10px;border-width:3px}.home-cards{gap:8px}.home-card{padding:12px;gap:6px}.home-card small{font-size:7px}.home-card strong{font-size:11px}.home-card>span:not(.home-card-icon){font-size:9px;line-height:1.35}.home-card-icon{width:20px;height:20px}.home-card>b{font-size:14px;top:10px;right:12px}
 .shell-button{min-height:32px;padding:6px 10px;font-size:10px}.shell-card{padding:14px}.shell-card-heading h3{font-size:12px;margin-bottom:8px}
 .game-shell .opponent-list,.game-shell .mode-list{margin-top:8px;gap:10px}.game-shell .opponent-choice,.game-shell .mode-choice{min-height:64px;padding:10px;gap:5px}.game-shell .opponent-choice strong,.game-shell .mode-choice strong{font-size:12px}.game-shell .opponent-choice small,.game-shell .mode-choice small{font-size:10px}.game-shell .opponent-explanation,.game-shell .mode-explanation,.game-shell .difficulty-desc{font-size:10px;margin:7px 0}.game-shell .cpu-difficulty{padding:8px;margin-top:8px}.game-shell .difficulty-choice{min-height:36px;padding:4px}.game-shell .difficulty-choice strong{font-size:10px}.game-shell .difficulty-choice small{display:none}.game-shell .opponent-heading{font-size:10px;margin-bottom:5px}
 .game-shell .settings-row{margin:10px 0;gap:14px}.game-shell .settings-row label{font-size:10px;gap:6px}.game-shell .settings-row select{font-size:11px;min-height:34px;padding:6px 8px}.game-shell .turn-time-help{font-size:10px;line-height:1.4}.shell-hint{font-size:10px;margin:4px 0}
 .game-shell .club-editor{padding:12px;gap:8px;grid-template-columns:1fr 1fr}.game-shell .club-editor-heading{font-size:10px}.game-shell .club-crest-preview{width:25px;height:25px;font-size:15px}.game-shell .club-field{font-size:9px;gap:6px;margin-bottom:7px}.game-shell .club-field input,.game-shell .club-field select{font-size:11px;min-height:34px;padding:6px}.game-shell .club-subheading{font-size:8px;margin:4px 0 5px}.game-shell .club-color-swatch,.game-shell .club-emblem-choice{width:28px;height:28px;font-size:16px}.game-shell .club-colors,.game-shell .club-emblems{gap:6px}.game-shell .club-roster-preview{padding:0;gap:5px}.game-shell .club-mini-button{width:29px}.game-shell .club-editor-footer{font-size:8px;padding-top:7px}.game-shell .club-editor-footer .pixel-btn{font-size:8px;min-height:28px;padding:5px}
 .game-shell .case-intro{font-size:10px}.game-shell .case-actions .pixel-btn{font-size:9px;min-height:32px;padding:6px}.game-shell .case-inner{gap:8px}.game-shell .case-card{min-height:105px;padding:8px}.game-shell .case-info strong{font-size:11px}.game-shell .case-card-head{gap:7px}.game-shell .case-status{font-size:8px}.game-shell .case-action{min-height:29px;font-size:9px}
 .game-shell .cup-setup{padding:12px}.game-shell .cup-setup>p{font-size:10px;line-height:1.4;margin:0 0 8px}.game-shell .cup-setup-grid{margin-top:8px;gap:10px}.game-shell .cup-setup-grid select{font-size:11px;min-height:34px;padding:6px}.game-shell .cup-setup-grid label{font-size:9px;gap:6px}.game-shell .cup-setup-actions{margin-top:12px;gap:10px}.game-shell .cup-setup-actions .pixel-btn{min-height:34px;font-size:10px;padding:7px}.game-shell .cup-setup-status{font-size:9px!important;line-height:1.4!important;margin:8px 0 0!important}
 .collection-menu{gap:12px}.game-shell .collection-menu>.achievement-entry,.game-shell .collection-menu>.trophy-entry{padding:16px;gap:10px}.game-shell .collection-menu .pixel-btn{min-height:100px;font-size:13px;gap:14px}.collection-menu svg{width:34px;height:34px}.game-shell .collection-menu small{font-size:10px}
 .game-shell .menu-options{padding:12px;gap:5px}.game-shell .menu-options h3,.game-shell #screen-options .shell-card-heading h3{font-size:10px;margin:0}.game-shell .shell-toggle{font-size:10px;min-height:31px;padding:5px 7px;gap:8px}.game-shell .shell-toggle input{width:16px;height:16px}.game-shell #screen-options .shell-card{gap:7px;padding:12px}.game-shell #screen-options{gap:8px;grid-template-rows:minmax(0,1fr) auto}
 #screen-help .shell-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}#screen-help .shell-button{min-height:28px;font-size:9px;padding:5px}.help-text{font-size:12px;line-height:1.7}
 .game-shell .wood{grid-template-rows:60px minmax(0,1fr) 26px}.game-shell .topline{display:none}
 .shell-match-hud{grid-template-columns:minmax(0,1fr) 200px;grid-template-rows:34px 18px;padding:3px 8px;gap:0 8px}.game-shell .shell-match-hud .hudbox{height:30px;padding:2px 6px}.game-shell .badge-team{font-size:10px;padding:2px 5px}.game-shell .score{font-size:21px}.game-shell .shell-match-hud>.hud-turn{display:flex!important}.game-shell .hud-turn>.hudbox{height:22px}.game-shell #turn-details{display:none}.game-shell .status-token{font-size:8px;min-height:16px;padding:1px 4px}.game-shell #opponent-display{display:none}
 .game-shell .arena-row{grid-template-columns:minmax(0,1fr) 128px}.game-shell .table-frame{padding:7px}.game-shell .mobile-rail{gap:5px;padding:7px}.game-shell .rail-btn{font-size:9px;min-height:32px;padding:5px;grid-template-columns:17px minmax(0,1fr);gap:4px}.rail-icon{width:17px;height:17px}.game-shell .rail-btn small{font-size:8px;grid-column:1/-1;line-height:1}.game-shell #mobile-sound{display:none}.game-shell #mobile-fullscreen{margin-top:auto;min-height:29px}.game-shell .shell-force{min-height:28px;padding:5px;gap:4px}.game-shell .shell-force .label{font-size:8px}.game-shell .shell-force .meter{height:13px}.game-shell .shell-force .percent{font-size:10px;min-width:26px}.game-shell #discipline-panel{display:none!important}.game-shell .footbar{padding:3px 8px}.game-shell .tip{font-size:9px}.game-shell .version{display:none}
 .game-shell #super-strip{top:auto;bottom:36px;left:auto;right:143px;width:min(405px,calc(100vw - 158px));padding:10px;gap:7px}.game-shell #super-strip .special-choice{height:57px}.game-shell #super-strip .power-icon{width:21px;height:21px}.game-shell #super-strip .power-name{font-size:9px}.game-shell #super-strip .super-status{font-size:9px}.power-popover-heading{font-size:11px}
 .game-shell .cup-board-head{min-height:49px;padding:6px 16px}.game-shell .cup-board-head h2{font-size:21px}.game-shell .cup-board-head p{font-size:9px}.game-shell .cup-board-head small{font-size:8px}.game-shell .cup-trophy{font-size:25px}.game-shell .cup-board-status{font-size:11px;padding:6px;margin:7px 16px;line-height:1.3}.game-shell .cup-board-footer{padding:7px 16px}.game-shell .cup-summary{font-size:9px;margin-bottom:5px}.game-shell .cup-board-footer .pixel-btn{min-height:32px;font-size:10px;padding:6px}.game-shell .cup-board-actions{gap:8px}
 .game-shell .cup-bracket{padding:7px 16px;gap:10px}.game-shell .cup-round{gap:5px}.game-shell .cup-round h3{font-size:9px;margin-bottom:3px}.game-shell .cup-fixture{padding:3px}.game-shell .cup-fixture-team{font-size:9px;padding:4px;gap:4px}.game-shell .cup-team-score{font-size:12px}.game-shell .cup-simulated{font-size:7px;margin:2px}
 .game-shell .league-board-window{display:flex;flex-direction:column}.league-view-tabs{display:flex;margin:0 16px}.game-shell .league-table-wrap,.game-shell .league-fixtures{flex:1;margin:7px 16px;padding:8px}.game-shell #league-board[data-view=table] .league-fixtures,.game-shell #league-board[data-view=round] .league-table-wrap{display:none}.game-shell .league-table-wrap h3,.game-shell .league-fixtures h3{display:none}.game-shell .league-table th,.game-shell .league-table td{padding:4px;font-size:10px}.game-shell .league-table-help{font-size:8px;margin:5px 0}.game-shell .league-fixtures-list{grid-template-columns:1fr 1fr}.game-shell .league-fixture{padding:8px}.game-shell .league-round-head{margin-bottom:5px}.game-shell .league-round-head h3{display:block;font-size:11px}
 .game-shell .trophy-stats{grid-template-columns:repeat(7,minmax(0,1fr));padding:7px 16px;gap:7px}.game-shell .trophy-stat{padding:5px}.game-shell .trophy-stat strong{font-size:18px}.game-shell .trophy-stat small{font-size:8px}.game-shell .trophy-list{padding:5px 16px;gap:8px}.game-shell .trophy-item{padding:9px}.game-shell .trophy-item-top{font-size:10px}.game-shell .trophy-item p{font-size:10px}
 .game-shell .achievement-summary{font-size:10px;padding:0 16px;margin:6px 0 3px}.game-shell .achievement-help{font-size:9px;line-height:1.4;padding:0 16px;margin:3px 0 5px}.game-shell .achievement-list{padding:7px 16px;gap:8px}.game-shell .achievement-card{padding:10px;min-height:125px;gap:8px}.game-shell .achievement-card h3{font-size:11px;margin-bottom:5px}.game-shell .achievement-card p{font-size:9px;margin-bottom:6px}.game-shell .achievement-card small{font-size:8px}.game-shell .achievement-reward{margin-top:8px;font-size:8px;gap:7px}.game-shell .reward-token{width:27px;height:27px;flex-basis:27px;font-size:10px;border-width:3px}.shell-pager{min-height:32px;font-size:10px;gap:12px}.shell-pager .shell-button{min-height:28px;padding:4px 12px}
 .game-shell .pause-window,.game-shell .confirm-window{padding:16px;max-width:540px}.game-shell .pause-window h2,.game-shell .confirm-window h2{font-size:22px;margin:10px 0}.game-shell .pause-window p,.game-shell .confirm-window p{font-size:11px;margin:6px 0 12px}.game-shell .pause-actions{display:grid;grid-template-columns:1fr 1fr}.pause-extras{grid-column:1/-1;margin-top:5px}.game-shell .pause-actions>.pixel-btn{min-height:36px}.pause-extras .pixel-btn{min-height:32px}
}
/* Smallest supported windows use editor steps rather than hiding form fields. */
@media(max-height:760px) and (max-width:720px) and (orientation:portrait), (max-height:460px) and (orientation:landscape){
 .game-shell #club-customizer>.shell-tabs{display:flex}
 .game-shell #club-customizer[data-editor-step=identity] [data-editor-pane=finish],.game-shell #club-customizer[data-editor-step=finish] [data-editor-pane=identity]{display:none}
 .game-shell .club-editor{grid-template-columns:1fr}.game-shell .club-roster-preview{display:none}
 .game-shell .club-editor-heading{margin-bottom:0}.game-shell .club-editor-footer{padding-top:7px}
 .game-shell .cup-setup>p{display:none}
}
@media(max-width:370px) and (orientation:portrait){
 .game-shell #main-menu>.menu-window{grid-template-rows:54px minmax(0,1fr) 60px 56px}.shell-content{grid-template-rows:44px minmax(0,1fr);padding:0 10px 10px}.shell-page{padding-top:10px;gap:9px}.game-shell .menu-footer{padding:7px 10px}.game-shell .menu-footer .start-btn{min-width:140px;font-size:11px}.shell-home{grid-template-rows:105px minmax(0,1fr);gap:10px}.shell-hero{padding:14px}.shell-hero h2{font-size:29px}.shell-hero>p{font-size:10px}.home-card{padding:11px;gap:6px}.home-card small{display:none}.home-card>span:not(.home-card-icon){font-size:9px}.home-card strong{font-size:11px}.game-shell .shell-toggle{font-size:9px;min-height:34px}.game-shell .menu-options{padding:10px;gap:5px}.game-shell #screen-options .shell-card{padding:10px;gap:5px}.game-shell .shell-hint{font-size:9px}.game-shell .cup-setup{padding:12px}.game-shell .cup-setup-actions{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){.game-shell *{scroll-behavior:auto!important}}

/* Keep dense settings and competition lists on short, deliberate pages. */
.game-shell #screen-options{display:flex;flex-direction:column;gap:12px}
.game-shell #screen-options .menu-options,.game-shell #screen-options>.shell-card{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:start}
.game-shell #screen-options .menu-options h3,.game-shell #screen-options .shell-card-heading{grid-column:1/-1}
.game-shell .league-fixtures{display:flex;flex-direction:column}.game-shell .league-fixtures-list{flex:1;min-height:0;overflow:hidden;align-content:start}
.standings-pager{margin-top:5px}
@media(max-width:720px) and (orientation:portrait){
 .game-shell #screen-options .menu-options,.game-shell #screen-options>.shell-card{display:flex;flex-direction:column;gap:7px}
 .game-shell .opponent-list{grid-template-columns:1fr 1fr}.game-shell .opponent-choice{min-height:90px;padding:12px}.game-shell .opponent-choice strong{font-size:11px}.game-shell .opponent-choice small{font-size:10px}
}
@media(max-height:740px) and (max-width:720px) and (orientation:portrait){
 .game-shell .difficulty-desc{display:none}.game-shell .cpu-difficulty{padding:8px}.game-shell .opponent-explanation{font-size:10px;line-height:1.4;margin:8px 0}.game-shell .opponent-choice{min-height:76px;padding:9px}.game-shell .opponent-list{margin-top:8px;gap:8px}.game-shell .club-colors,.game-shell .club-emblems{gap:5px}.game-shell .club-color-swatch,.game-shell .club-emblem-choice{width:28px;height:28px}
}
@media(orientation:landscape) and (max-height:650px){
 .cup-round-tabs{display:flex;margin:0 16px}.game-shell .cup-bracket{display:block;overflow:hidden}.game-shell .cup-round:not([data-current=true]){display:none}.game-shell .cup-round[data-current=true]{display:grid;grid-template-columns:1fr 1fr;gap:6px}.game-shell .cup-round h3{display:none}
 .game-shell #screen-options .menu-options,.game-shell #screen-options>.shell-card{gap:6px;padding:10px}.game-shell #screen-options .shell-toggle{min-height:30px}
 .game-shell .rail-btn{grid-template-columns:17px minmax(0,1fr) auto}.game-shell .rail-btn small{grid-column:auto;font-size:7px;white-space:nowrap}
}
@media(max-width:720px) and (orientation:portrait){
 .game-shell .cup-round[data-current=true]{display:grid;grid-template-columns:1fr 1fr;gap:8px}.game-shell .cup-fixture-team{font-size:10px;padding:6px 3px;gap:4px}.game-shell .cup-team-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-shell .cup-team-dot{width:9px;height:9px;flex-basis:9px}.game-shell .cup-team-score{font-size:12px}.game-shell .cup-simulated{font-size:7px}
}
.game-shell{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.game-shell .full-overlay{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}

#screen-help>.shell-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#screen-help>.shell-tabs .shell-button{font-size:11px;min-width:0;white-space:normal;overflow-wrap:anywhere}
.game-shell .shell-toggle{white-space:normal;overflow-wrap:anywhere;min-width:0}
.game-shell .team-panels{position:relative}.game-shell #club-customizer,.game-shell #case-section{min-height:0}
.game-shell #screen-teams>.shell-tabs #club-reset{min-width:38px;width:38px;min-height:36px;padding:4px;font-size:22px;flex:none;box-shadow:none;border-width:1px}
.game-shell .turn-time-help{font-size:11px;line-height:1.4}
@media(max-height:740px) and (max-width:720px) and (orientation:portrait){
 .game-shell [data-pane=time] .turn-time-help{display:none}.game-shell [data-pane=time] .shell-hint{font-size:10px;line-height:1.4}
 .game-shell [data-pane=rules] .mode-choice{min-height:70px;padding:12px}.game-shell [data-pane=rules] .mode-list{gap:8px;margin-top:8px}.game-shell [data-pane=rules] .mode-explanation{font-size:10px;line-height:1.4;margin:10px 0 0}
 .game-shell .collection-menu .pixel-btn{min-height:70px;font-size:12px;gap:9px}.game-shell .collection-menu>.achievement-entry,.game-shell .collection-menu>.trophy-entry{padding:14px;gap:7px}.game-shell .collection-menu small{font-size:9px;line-height:1.4}
}
@media(orientation:landscape) and (max-height:460px){
 .shell-page-head{display:none}.shell-content{grid-template-rows:minmax(0,1fr)}
 .play-panels>[data-pane=rival]{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-content:start;padding:12px}
 [data-pane=rival]>.shell-card-heading,.game-shell [data-pane=rival] .opponent-explanation,.game-shell [data-pane=rival] .difficulty-desc{display:none}
 .game-shell [data-pane=rival] .opponent-list{display:flex;flex-direction:column;margin:0;gap:7px}.game-shell [data-pane=rival] .opponent-choice{min-height:38px;padding:9px;gap:0}.game-shell [data-pane=rival] .opponent-choice small{display:none}
 .game-shell [data-pane=rival] .cpu-difficulty{margin:0;padding:9px}.game-shell [data-pane=rival] .difficulty-choice{min-height:36px}.game-shell [data-pane=rival] .opponent-heading{font-size:9px}
 .game-shell [data-pane=rules]>.shell-card-heading,.game-shell [data-pane=rules] .mode-explanation{display:none}.game-shell [data-pane=rules] .mode-list{margin:0}.game-shell [data-pane=rules] .mode-choice{min-height:70px}
 .play-panels>[data-pane=time]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start;padding:12px}
 [data-pane=time]>.shell-card-heading{grid-column:1/-1}.game-shell [data-pane=time] .settings-row{display:contents}.game-shell [data-pane=time] .turn-time-help,.game-shell [data-pane=time] .shell-hint{display:none}
 .game-shell .club-editor-heading{display:none}.game-shell .club-editor{padding:10px;gap:0}.game-shell .club-editor .editor-pane{display:grid;grid-template-columns:1fr 1fr;column-gap:18px;align-content:start}
 .game-shell [data-editor-pane=identity] .club-field{grid-column:1;grid-row:1/3;margin:0}.game-shell [data-editor-pane=identity] .club-subheading{grid-column:2;grid-row:1;margin:0 0 6px}.game-shell [data-editor-pane=identity] .club-colors{grid-column:2;grid-row:2;gap:5px}
 .game-shell [data-editor-pane=finish] .club-subheading{grid-column:1;grid-row:1;margin:0 0 6px}.game-shell [data-editor-pane=finish] .club-emblems{grid-column:1;grid-row:2;gap:5px}.game-shell [data-editor-pane=finish] .club-finish-label{grid-column:2;grid-row:1/3;margin:0}
 .game-shell .club-editor-footer{padding-top:6px;font-size:8px}.game-shell #club-customizer>.shell-tabs{margin-bottom:8px}.game-shell .club-color-swatch,.game-shell .club-emblem-choice{width:26px;height:26px}
 .game-shell #screen-help .shell-card-heading{display:none}.game-shell #screen-help .shell-card{padding:10px}.game-shell #screen-help .shell-button{font-size:9px;min-height:28px;padding:5px}
 .game-shell .collection-menu>.achievement-entry,.game-shell .collection-menu>.trophy-entry{padding:12px;gap:8px}.game-shell .collection-menu .pixel-btn{min-height:70px;font-size:12px;gap:10px}
 .game-shell .achievement-window>.achievement-help{display:none}.game-shell .achievement-summary{margin:7px 0}.game-shell .achievement-window .cup-board-footer{padding:6px 16px}
 .game-shell .home-card>span:not(.home-card-icon){display:none}.game-shell .home-card{gap:8px}.game-shell .home-card small{font-size:7px}
}
.game-shell #screen-options .menu-options{flex-wrap:nowrap}
.game-shell .case-inner{gap:6px}.game-shell .case-intro,.game-shell .case-status{margin:0}
.portrait-context{display:none}
.game-shell #screen-options .shell-toggle{min-height:42px;font-size:11px}
@media(orientation:landscape) and (max-height:460px){
 .game-shell .case-intro{display:none}.game-shell .case-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:60px;padding:8px}
 .game-shell .case-card-head{gap:5px}.game-shell .case-token{width:25px;height:25px;flex-basis:25px;font-size:12px;border-width:2px}.game-shell .case-info{min-width:0}.game-shell .case-info strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-shell .case-info small{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .game-shell .case-card-actions{margin:0;gap:4px;flex-wrap:nowrap}.game-shell .case-action{padding:5px 4px;min-height:29px;font-size:8px;flex:none}.game-shell .case-status{font-size:8px;line-height:1.4}
 .game-shell #screen-options .shell-toggle{min-height:30px;font-size:10px}
}
@media(max-width:370px) and (orientation:portrait){
 .game-shell [data-pane=rival]{padding:12px}.game-shell [data-pane=rival] .shell-card-heading h3{font-size:12px;margin-bottom:8px}.game-shell [data-pane=rival] .opponent-choice{min-height:70px;padding:8px}.game-shell [data-pane=rival] .opponent-heading{font-size:10px;margin-bottom:6px}.game-shell [data-pane=rival] .cpu-difficulty{margin-top:8px}.game-shell [data-pane=rival] .difficulty-choice{min-height:45px}.game-shell [data-pane=rival] .opponent-explanation{margin:6px 0;font-size:9px}
 .game-shell [data-pane=rules]{padding:12px}.game-shell [data-pane=rules] .mode-choice{min-height:62px;padding:10px}.game-shell [data-pane=rules] .mode-explanation{font-size:10px;margin-top:8px}
 .game-shell [data-pane=time]{padding:12px}.game-shell [data-pane=time] .shell-hint{font-size:9px;line-height:1.35}.game-shell [data-pane=time] .settings-row{margin:10px 0;gap:9px}.game-shell [data-pane=time] .turn-time-settings{padding:8px}
 .game-shell .case-actions .pixel-btn{font-size:8px;min-height:32px;padding:6px}.game-shell .case-intro{font-size:9px;line-height:1.4}.game-shell .case-status{font-size:8px;line-height:1.4}
}
@media(max-width:900px) and (orientation:portrait){
 .game-shell .wood{grid-template-rows:44px 88px minmax(0,1fr) 42px}
 .game-shell .arena-row{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
 .game-shell .mobile-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:10px;border-left:0;border-top:1px solid #a4773b55}
 .game-shell .mobile-rail .rail-btn{min-height:44px;margin:0;order:0}.game-shell .shell-force{order:9;grid-column:1/-1;min-height:30px;padding:5px 8px}.game-shell #discipline-panel{display:none!important}.game-shell .version{display:none}
 .game-shell #super-strip{left:12px;right:12px;top:144px;width:auto;max-width:500px;margin-inline:auto}
 .game-shell .table-frame{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
}
@media(min-height:740px) and (max-width:900px) and (orientation:portrait){
 .portrait-context{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:8px;flex:none;width:min(100%,700px);height:140px;padding:14px;background:#2c2329e6;border:1px solid #bb8b4c88;border-radius:6px;color:#e5ca9f}
 .portrait-context>div{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}.portrait-context .shell-eyebrow{width:100%;font-size:9px}.portrait-context strong{font-size:12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portrait-context #portrait-health{font-size:10px;color:#96d8a6}.portrait-context p{margin:0;padding-top:10px;border-top:1px solid #b18b5140;font-size:11px;line-height:1.6;color:#cbb394}
}
@media(max-width:720px) and (orientation:portrait){.game-shell .shell-nav-button{font-size:9px}}
@media(max-width:720px) and (max-height:620px) and (orientation:portrait){.game-shell .league-table-wrap>h3{display:none}.game-shell .league-table-help{font-size:9px;line-height:1.4}}
@media(orientation:landscape) and (max-height:360px){
 .game-shell .cup-board-head small{display:none}.game-shell .cup-board-head{min-height:42px;padding:5px 14px}.game-shell .cup-board-head h2{font-size:19px}.game-shell .cup-board-status{padding:4px 8px;margin:5px 14px;font-size:10px}.game-shell .cup-summary{display:none}.game-shell .cup-board-footer{padding:6px 14px}
 .game-shell .achievement-card{min-height:110px;padding:8px;gap:6px}.game-shell .achievement-card h3{font-size:10px;line-height:1.3;margin-bottom:4px}.game-shell .achievement-card p{font-size:9px;line-height:1.3;margin-bottom:4px}.game-shell .achievement-card progress{height:8px}.game-shell .achievement-card small{font-size:8px;margin-top:5px}.game-shell .achievement-reward{margin-top:5px;gap:6px}.game-shell .reward-token{width:22px;height:22px;flex-basis:22px;border-width:2px}.game-shell .achievement-medal{font-size:22px}
}
/* Visual polish: original pixel illustrations and stadium-colored menu cards. */
.brand-trophy{width:46px;height:46px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(3px 4px 0 #170e19);flex:none}
.brand-trophy-end{display:flex}.shell-brand{gap:14px}.shell-brand h1{text-shadow:2px 3px #773c27,0 0 16px #f4ba4540}
.hero-logo{display:flex;align-items:center;gap:12px;color:#ffd476;font-size:clamp(16px,2.4vw,36px);text-shadow:3px 3px #6c3324;margin-bottom:18px}.hero-logo .brand-trophy{width:48px;height:48px}
.game-shell .shell-hero{background:radial-gradient(ellipse at 80% 5%,#eaa53d22,transparent 60%),linear-gradient(155deg,#51312c,#27202a 70%);border:2px solid #c08a48;box-shadow:inset 0 0 0 3px #291c25,inset 0 0 55px #0d15194a}
.game-shell .home-pitch{filter:saturate(1.5);box-shadow:9px 10px 0 #12151b,0 0 0 5px #ae7b45;image-rendering:pixelated}
.game-shell .home-card{position:relative;isolation:isolate;overflow:hidden;padding:20px;justify-content:flex-end;gap:9px;border:2px solid var(--card-edge,#c8a059);box-shadow:inset 0 0 0 3px #151b2750,0 4px #100e16;background:linear-gradient(145deg,var(--card-tint),#201e2c);transition:transform .15s,border-color .15s}
.game-shell .home-card:hover{transform:translateY(-3px);border-color:#fff0ad;background:linear-gradient(145deg,var(--card-tint),#302a36)}
.home-card.art-play{--card-tint:#195b48;--card-edge:#68c895}.home-card.art-championships{--card-tint:#765023;--card-edge:#e5b35e}.home-card.art-teams{--card-tint:#254e79;--card-edge:#7db4df}.home-card.art-collection{--card-tint:#644273;--card-edge:#c396dc}
.home-card-art{position:absolute;inset:0 0 38%;display:flex;align-items:center;justify-content:center;z-index:-1;background:linear-gradient(180deg,#ffffff08,transparent)}
.home-card-art img{width:75%;height:100%;object-fit:contain;max-height:200px;image-rendering:pixelated;filter:drop-shadow(4px 7px 0 #12192366)}
.game-shell .home-card-icon{display:none}.game-shell .home-card small{color:#ffe5aa}.game-shell .home-card>span:not(.home-card-icon){color:#efdfc9}.game-shell .home-card strong{text-shadow:2px 2px #211723}
.game-shell .sound-muted{opacity:.7}.game-shell .sound-muted .rail-icon{color:#b9aeb0}
.game-shell .match-brand .brand-trophy{width:26px;height:26px;vertical-align:middle;margin-right:8px}
@media(min-width:1440px) and (min-height:800px){
 .game-shell.side-panels .arena-row{grid-template-columns:176px minmax(0,1fr) 242px}
 .game-shell.side-panels #bench-drawer{display:block!important;position:static;inset:auto;transform:none;width:auto;height:100%;max-height:none;min-width:0;overflow:auto;box-shadow:none;border:0;border-right:1px solid #b08a4d55;border-radius:0;background:linear-gradient(150deg,#30272b,#181a23);padding:10px;order:0}
 .game-shell.side-panels #bench-drawer>summary{pointer-events:none;position:static;padding:8px 2px;font-size:11px;background:none;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
 .game-shell.side-panels #bench-drawer .drawer-close,.game-shell.side-panels #bench-drawer .drawer-chevron,.game-shell.side-panels #bench-zone>.bench-title{display:none}
 .game-shell.side-panels .bench-grid{display:flex;flex-direction:column;gap:16px}.game-shell.side-panels .bench-side{padding:8px;min-width:0}.game-shell.side-panels .bench-heading{font-size:10px;flex-wrap:wrap}.game-shell.side-panels .bench-heading .sub{display:none}.game-shell.side-panels .bench-cards{display:flex;flex-direction:column;gap:8px}.game-shell.side-panels .bench-empty{font-size:10px;line-height:1.8;padding:15px 4px}.game-shell.side-panels .bench-card{min-width:0;display:flex;flex-direction:column;padding:8px;gap:5px}.game-shell.side-panels .bench-info{width:100%;min-width:0}.game-shell.side-panels .bench-meta{font-size:9px}.game-shell.side-panels .bench-status{font-size:9px;line-height:1.5}.game-shell.side-panels .bench-card-icon{max-width:100%;overflow:hidden;text-overflow:ellipsis}
 .game-shell.side-panels .table-frame{order:1}.game-shell.side-panels .mobile-rail{order:2;display:grid;grid-template-columns:1fr 1fr;align-content:start;padding:10px;gap:8px}
 .game-shell.side-panels #super-strip:not([hidden]){display:grid;position:static;inset:auto;width:auto;grid-column:1/-1;order:-1;box-shadow:none;border:1px solid #a17b4a;border-radius:5px;padding:9px;gap:8px;background:#241f2c;max-height:none}
 .game-shell.side-panels .power-popover-heading{font-size:10px}.game-shell.side-panels #shell-power-close{display:none}.game-shell.side-panels #super-strip .energy-label{font-size:9px;gap:3px;grid-column:1/-1}.game-shell.side-panels #super-strip .special-controls{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.game-shell.side-panels #super-strip .special-choice{height:53px;padding:5px 1px;gap:5px}.game-shell.side-panels #super-strip .power-name{font-size:8px}.game-shell.side-panels #super-strip .power-icon{width:21px;height:21px}.game-shell.side-panels #super-strip .super-status{font-size:9px;line-height:1.4}
 .game-shell.side-panels #mobile-special,.game-shell.side-panels #mobile-bench{display:none}
 .game-shell.side-panels .rail-btn{min-height:40px;font-size:10px;padding:7px 5px;grid-template-columns:18px 1fr;gap:5px}.game-shell.side-panels .rail-btn small{grid-column:1/-1;font-size:9px}.game-shell.side-panels .rail-icon{width:18px;height:18px}.game-shell.side-panels .shell-force,.game-shell.side-panels #discipline-panel{grid-column:1/-1}.game-shell.side-panels #mobile-fullscreen{margin:0}.game-shell.side-panels #mobile-sound{order:0}.game-shell.side-panels .shell-force{min-height:38px}
}
@media(max-width:900px){.hero-logo{font-size:21px;gap:7px;margin-bottom:8px}.hero-logo .brand-trophy{width:30px;height:30px}.game-shell .home-card{padding:14px;gap:7px}.home-card-art{inset:0 0 42%}.home-card-art img{width:70%;max-height:130px}.brand-trophy{width:35px;height:35px}}
@media(max-width:620px){.brand-trophy-end{display:none}.game-shell .shell-hero .hero-logo{display:none}.game-shell .home-card{padding:12px;gap:6px}.home-card-art{inset:0 0 auto auto;width:70px;height:60px;opacity:.75}.home-card-art img{width:100%}.game-shell .home-card>small{max-width:65%;position:relative;z-index:1}.game-shell .home-card>strong{position:relative;z-index:1}.game-shell .home-card>span{position:relative;z-index:1}}
@media(max-height:650px){.hero-logo{display:none}.game-shell .home-card{padding:12px;gap:5px}.home-card-art{inset:0 0 auto auto;width:85px;height:65px;opacity:.65}.home-card-art img{width:100%}.game-shell .home-card>small,.game-shell .home-card>strong{position:relative;z-index:1}}
@media(min-width:1440px) and (min-height:800px){
 .game-shell.side-panels #bench-drawer{grid-column:1;grid-row:1}
 .game-shell.side-panels .table-frame{grid-column:2;grid-row:1}
 .game-shell.side-panels .mobile-rail{grid-column:3;grid-row:1}
 .game-shell .shell-hero .home-pitch{height:30%;bottom:12%}
 .game-shell .shell-hero h2{font-size:clamp(36px,4vw,64px);margin:16px 0}
}
@media(min-width:1440px) and (min-height:800px){
 .game-shell.side-panels .bench-card{width:100%;max-width:100%;box-sizing:border-box;flex:none}
 .game-shell.side-panels .bench-time{font-size:22px;letter-spacing:1px}
 .game-shell.side-panels .bench-card-icon{display:block;width:100%;margin:4px 0 0}
 .game-shell.side-panels .bench-zone{padding:8px;border-width:1px}
 .game-shell.side-panels #bench-counter{font-size:8px;line-height:1.5}
}
@media(max-width:620px) and (min-height:741px){
 .game-shell .home-card-art{top:5px;left:50%;right:auto;width:130px;height:76px;transform:translateX(-50%);opacity:1}
}
@media(orientation:landscape) and (max-height:500px){
 .game-shell #rail-energy{max-width:36px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
