/* v27: touch controls and phone layouts. Desktop composition stays in dashboard.css. */
.nav-icon,.nav-compact-label,.mobile-help{display:none}
@media(pointer:coarse){
 body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
 input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
 button,a,input,select,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
 button:hover:not(:disabled),.action-options button:hover{transform:none}
 .game-select-option{min-height:46px}
 .game-select-search{font-size:16px;min-height:44px}
 .game-select-list,.table-scroll,.club-list,.hair-choices{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
}
@media(max-width:700px), (pointer:coarse) and (max-width:1100px){
 :root{--mobile-nav:62px;--safe-t:env(safe-area-inset-top,0px);--safe-b:env(safe-area-inset-bottom,0px);--safe-l:env(safe-area-inset-left,0px);--safe-r:env(safe-area-inset-right,0px)}
 html{overflow-x:clip;scroll-padding-top:70px}
 body{min-width:0;overflow-x:clip;background-attachment:scroll}
 body.modal-open{overflow:hidden}
 #app{min-width:0}
 .game-nav,body.home-screen .game-nav{position:sticky;top:0;z-index:60;display:flex;align-items:center;flex-wrap:nowrap;justify-content:space-between;gap:8px;width:100%;max-width:none;height:calc(56px + var(--safe-t));min-height:calc(56px + var(--safe-t));padding:var(--safe-t) max(12px,var(--safe-r)) 0 max(12px,var(--safe-l));background:#071624f7;box-shadow:0 1px 0 #6c96ac29;backdrop-filter:none}
 .game-nav .brand,body.home-screen .game-nav .brand{min-width:0;flex:none;gap:7px}
 .game-nav .brand-avatar,body.home-screen .game-nav .brand-avatar{width:34px;height:34px}
 .game-nav .brand-name,body.home-screen .game-nav .brand-name{display:none}
 .game-nav .nav-tools,body.home-screen .game-nav .nav-tools{display:flex;align-items:center;gap:3px;margin:0;min-width:0}
 .game-nav .nav-tools>:is(button,a),body.home-screen .game-nav .nav-tools>:is(button,a){display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;border-radius:9px;flex:none}
 .game-nav .nav-tools>button[data-action="help"],body.home-screen .game-nav .nav-tools>button[data-action="help"]{display:none}
 .game-nav .nav-tools>button.wallet-coins,body.home-screen .nav-tools>button.wallet-coins{display:flex;width:auto;min-width:55px;padding:8px 10px;font-size:13px;border-radius:22px;gap:5px}
 .game-nav .wallet-coins>span{display:none}
 .game-nav .nav-tools>:is(button,a) svg,body.home-screen .game-nav .nav-tools>:is(button,a) svg{height:19px;width:19px}
 .game-nav nav,body.home-screen .game-nav nav{position:fixed;inset:auto 0 0;order:0;z-index:70;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;align-items:stretch;max-width:none;width:100%;height:calc(var(--mobile-nav) + var(--safe-b));min-height:0;flex:none;margin:0;padding:3px max(5px,var(--safe-r)) var(--safe-b) max(5px,var(--safe-l));background:#091b2afc;border-top:1px solid #55778b55;box-shadow:0 -8px 24px #0003;overflow:visible}
 .game-nav .nav-item,body.home-screen .game-nav .nav-item{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:0;min-height:52px;padding:5px 0;margin:0;border-radius:8px;font-size:10px;letter-spacing:0;line-height:1.1;color:#98b0c1}
 .game-nav .nav-item.active{background:#caff6310!important}
 .nav-item .nav-label{display:none}
 .nav-item .nav-icon{display:flex}
 .nav-icon svg{height:21px;width:21px}
 .nav-item .nav-compact-label{display:block;white-space:nowrap;font-size:10px;letter-spacing:0;max-width:100%}
 .nav-item em{position:absolute;top:3px;right:12%;border-radius:8px;min-width:15px;font-size:9px;padding:2px 4px;background:var(--lime);color:#10210e}
 .main-shell,body.home-screen .main-shell{max-width:760px;width:100%;min-width:0;padding:0 max(12px,var(--safe-r)) calc(var(--mobile-nav) + var(--safe-b) + 14px) max(12px,var(--safe-l))}
 .game-hud,body.home-screen .game-hud{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;height:38px;min-height:38px;padding:8px 0;font-size:10px;line-height:1.2;letter-spacing:.3px}
 .game-hud>span:first-child{max-width:58%;min-width:0;flex-wrap:nowrap;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .game-hud>span:last-child{flex:none;font-size:10px;white-space:nowrap;gap:3px}
 .game-hud .club-badge.tiny{flex:none;height:18px;width:16px}
 .game-hud i{margin:0 2px}
 main{padding:12px 0 18px;min-width:0}
 .page-heading{margin-bottom:14px;gap:8px;flex-wrap:wrap}
 .page-heading h1{font-size:28px;overflow-wrap:anywhere}
 .panel{padding:16px;min-width:0}
 .btn,summary{min-height:44px}
 .btn{font-size:13px;padding:12px 14px}
 .mobile-help{display:flex;margin:0 0 18px}
 .section-heading{gap:10px;flex-wrap:wrap;margin-bottom:16px}
 .section-heading h3{font-size:15px;overflow-wrap:anywhere}
 .section-heading .tag{font-size:10px}
 input,select,textarea,.game-select-trigger{font-size:16px;min-height:46px;max-width:100%;min-width:0}
 .game-select-trigger .game-select-value{font-size:14px}
 .game-select-trigger{padding:10px 12px}
 .game-select-menu{z-index:1200}
 .game-select-option{min-height:46px;padding:10px;font-size:14px}
 .game-select-search{font-size:16px}
 .game-footer{font-size:9px;padding:12px 0}
 .training-layout,.profile-layout,.calendar-layout{grid-template-columns:minmax(0,1fr);gap:14px}
 .training-layout>*,.profile-layout>*,.calendar-layout>*,.setup-layout>*,.form-grid>*,.stats-five>*,.training-grid>*{min-width:0;max-width:100%}
 .training-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .training-card{min-width:0;min-height:190px;padding:15px 11px 0}
 .training-card h3{font-size:13px;line-height:1.3;overflow-wrap:anywhere}
 .training-targets{flex-wrap:wrap;gap:6px}
 .training-targets>span,.training-bottom{font-size:12px}
 .training-cost{top:15px;right:11px;font-size:11px}
 .training-plan-badge{right:8px;top:52px;font-size:9px}
 .training-footer{flex-wrap:wrap;gap:12px;justify-content:space-between}
 .training-footer .btn{flex:1;min-width:145px}
 .session-dots{gap:6px}
 .session-dots>*{min-width:30px;width:30px;height:32px}
 .perks-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .perk-card{min-width:0;padding:12px}
 .perk-card .btn{width:100%;min-height:44px;padding:9px 6px;font-size:12px;white-space:normal}
 .perk-card>.perk-bonuses,.perk-requirement{font-size:12px}
 .development-plan{grid-template-columns:minmax(0,1fr);padding:13px;gap:12px}
 .development-plan p,.development-guide{font-size:13px;line-height:1.5}
 .stats-five{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .stats-five>.stat-tile{padding:12px 3px;min-width:0}
 .stats-five .stat-label{font-size:11px;overflow-wrap:anywhere}
 .profile-layout>aside{max-width:390px}
 .profile-layout .player-card{width:100%}
 .profile-layout .card-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
 .table-scroll table{min-width:520px}
 .table-scroll .roster-table{min-width:680px}
 .table-scroll table button{min-height:44px;padding:5px 0;text-align:left}
 .table-scroll th{font-size:11px;padding:12px 8px}
 .table-scroll td{font-size:12px;padding:6px 8px}
 .table-scroll .team-cell{min-width:146px;white-space:normal}
 .roster-table td:nth-child(2){min-width:170px}
 .competition-tabs,.tournament-page-tabs{display:flex;gap:7px;overflow-x:auto;padding-bottom:4px}
 .competition-tabs .btn,.tournament-page-tabs .btn{flex:none;min-height:44px;font-size:12px;padding:10px 13px}
 .football-banner{padding:18px;min-height:126px}
 .football-banner h2{font-size:28px;line-height:1.1;overflow-wrap:anywhere}
 .squad-toolbar{flex-direction:column;align-items:stretch;gap:15px}
 .squad-toolbar .squad-filters{display:grid;grid-template-columns:1fr;gap:12px;width:100%}
 .squad-toolbar label{width:100%;max-width:100%;min-width:0}
 .squad-scope{width:100%}
 .squad-scope>.btn{flex:1}
 .squad-role{flex-direction:column;align-items:flex-start;gap:8px}
 .calendar-layout>div{display:block}
 .offers-grid,.cup-grid,.contract-grid{grid-template-columns:minmax(0,1fr)}
 .offer-card{display:block;padding:20px}
 .offer-details{grid-template-columns:1fr}
 .offer-card .btn{width:100%}
 .world-transfer-row>b{overflow-wrap:anywhere}
 /* A compact character preview and sticky wizard controls, above the system keyboard. */
 body.creating .game-nav nav{display:none}
 body.creating .main-shell{min-height:0;padding-bottom:16px}
 body.creating .main-shell>main{padding:12px 0 0}
 .creation-heading{padding:0;margin:4px 0 16px;gap:10px;align-items:flex-start}
 .creation-heading>div{min-width:0}
 .creation-heading .eyebrow{font-size:9px;letter-spacing:1px}
 .creation-heading h1{font-size:30px;line-height:1.04;margin:8px 0}
 .creation-heading p{font-size:12px;line-height:1.5;margin:0}
 .creation-stage{flex:none;gap:3px;padding-top:3px}
 .creation-stage b{font-size:30px}
 .creation-stage small{font-size:11px}
 .creating .setup-layout{display:flex;flex-direction:column;gap:13px;min-height:0}
 .creating .setup-preview{position:static;order:-1;display:block;max-width:none;width:100%;margin:0;min-width:0;align-self:stretch}
 .creating .creation-route{display:none}
 .creating .setup-preview>.player-card{display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:12px;align-items:center;width:100%;min-height:0;padding:12px 14px 0;border-radius:12px}
 .creating .setup-preview .player-visual{grid-column:1;grid-row:1/4;height:130px;min-height:0;width:112px;padding:0;align-self:end}
 .creating .setup-preview .player-visual .player-portrait{width:126px;height:140px;max-width:none;max-height:none}
 .creating .setup-preview .player-card-top{display:flex;flex-wrap:wrap;grid-column:2;grid-row:1;align-self:end;gap:8px;font-size:10px}
 .creating .setup-preview .player-card-top>span:first-child{font-size:10px;letter-spacing:.4px;max-width:none}
 .creating .setup-preview .ovr-inline{font-size:28px;line-height:1;white-space:nowrap}
 .creating .setup-preview .ovr-inline small{font-size:9px}
 .creating .setup-preview .player-name{grid-column:2;grid-row:2;align-self:center;text-align:left;margin:5px 0;font-size:20px;line-height:1.1;overflow-wrap:anywhere}
 .creating .setup-preview .player-subtitle{grid-column:2;grid-row:3;align-self:start;text-align:left;margin:0 0 9px;font-size:11px}
 .creating .setup-preview .card-stats{display:none}
 .creating .setup-preview .player-card-footer{grid-column:1/-1;margin:0 -14px;min-height:33px;padding:8px;font-size:10px}
 .creating .setup-panel{padding:14px;overflow:visible;min-height:0;display:block}
 .creating .setup-panel .step-content{min-height:0;flex:none}
 .creating .steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0 0 20px;padding:0}
 .creating .steps .step{display:flex;min-height:54px;flex-direction:column;align-items:center;justify-content:center;font-size:9px;gap:5px;padding:7px 1px;letter-spacing:0;line-height:1.1}
 .creating .steps .step>span{height:22px;min-width:22px;width:22px;font-size:10px}
 .creating .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px}
 .creating .creation-identity{display:block}
 .creating .form-grid label{font-size:12px;gap:8px;letter-spacing:0;min-width:0}
 .creating .appearance-editor{display:block}
 .creating .appearance-section:first-child{display:block}
 .creating .face-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .creating .face-choices button{min-width:0;min-height:44px;font-size:12px;padding:10px 5px;white-space:normal}
 .creating .appearance-swatches,.creating .appearance-section:first-child .appearance-swatches{display:flex;flex-wrap:wrap;gap:5px;margin:0}
 .appearance-swatches button{position:relative;width:44px;height:44px;min-height:44px;border-radius:50%;border-color:transparent;background:none;box-shadow:none}
 .appearance-swatches button:before{content:'';position:absolute;inset:6px;border-radius:50%;background:var(--swatch);border:1px solid #a6bdc590;box-shadow:0 0 0 2px #223e4d}
 .appearance-swatches button.selected{border:2px solid var(--lime)}
 .creating .hair-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:310px;overflow-y:auto}
 .creating .hair-choices button{min-width:0;min-height:94px;padding:0 2px 7px}
 .creating .hair-choices button span{font-size:10px;white-space:normal}
 .creating .appearance-last-row{display:grid;grid-template-columns:1fr;gap:16px}
 .creating .position-select{grid-template-columns:minmax(0,1fr)}
 .creating .position-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .creating .position-option{min-width:0;min-height:56px;padding:9px 7px;gap:6px}
 .creating .position-option b{font-size:12px;flex:none;min-width:28px}
 .creating .position-option span{min-width:0;font-size:11px;white-space:normal;line-height:1.3;overflow-wrap:anywhere}
 .creating .formation{display:none}
 .creating .position-skills{margin:13px 0;gap:6px;flex-wrap:wrap}
 .creating .position-skills>span{font-size:11px;padding:6px}
 .creating .wizard-footer{position:sticky;bottom:0;z-index:25;display:flex;justify-content:flex-end;margin:18px -14px -14px;padding:12px 14px max(12px,var(--safe-b));background:#102838f7;border-top:1px solid #4f718155;border-radius:0 0 12px 12px;gap:8px}
 .creating .wizard-footer>.wizard-context{display:none}
 .creating .wizard-footer>div{display:flex;gap:8px;width:100%}
 .creating .wizard-footer .btn{min-height:48px;min-width:0;padding:12px;font-size:12px}
 .creating .wizard-footer .primary{flex:1}
 .creating .wizard-footer .secondary{flex:0 0 76px}
 .creating .academy-wallet{padding:10px;gap:8px}
 .creating .academy-toolbar{display:flex;flex-direction:column;gap:12px}
 .creating .academy-wallet b{font-size:19px}
 .creating .league-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px;margin:0 0 12px;padding-bottom:6px}
 .creating .league-tab{flex:none;font-size:12px;min-height:44px;padding:10px 13px}
 .creating .academy-catalog-layout{display:flex;flex-direction:column-reverse;gap:12px;height:auto;min-height:0}
 .creating .academy-dossier{display:block;min-width:0}
 .creating .academy-dossier-cover{padding:12px;grid-template-columns:44px minmax(0,1fr)}
 .creating .academy-dossier-stats{display:flex;justify-content:space-between;flex-wrap:wrap;padding:10px;gap:10px}
 .creating .academy-dossier-stats>div{min-width:0;font-size:11px}
 .creating .academy-dossier-detail,.creating .academy-first-season{display:none}
 .creating .club-list{height:330px;max-height:50dvh;min-height:220px;width:100%;padding-right:4px}
 .creating .academy-option{min-height:88px;padding:12px 10px;gap:10px}
 .creating .academy-option b{font-size:14px}
 .creating .academy-option small{display:block;font-size:11px}
 .creating .academy-option em{font-size:11px;flex-wrap:wrap}
 .creating .academy-option .rating-stars{width:74px}
 /* The hub stays one screen. Preparation may scroll inside its own pane on short phones. */
 body.home-screen{height:100vh;height:100dvh;min-height:0;overflow:hidden}
 body.home-screen #app{height:100%;min-height:0;display:flex;flex-direction:column}
 body.home-screen .main-shell{display:flex;flex-direction:column;flex:1;min-height:0;padding-bottom:calc(var(--mobile-nav) + var(--safe-b) + 8px)}
 body.home-screen main{flex:1;min-height:0;padding:0;display:flex;flex-direction:column;justify-content:flex-start}
 body.home-screen .game-footer{display:none}
 body.home-screen .hub-title{height:33px;min-height:33px;margin:0 0 7px}
 body.home-screen .hub-title h1{font-size:25px}
 body.home-screen .hub-title>span{font-size:10px}
 .dashboard-tabs{display:flex;gap:3px;flex:none;height:50px;min-height:50px;margin:0 0 10px;padding:2px;background:#0c1d2c;border:1px solid #3e5c7055;border-radius:8px}
 .dashboard-tabs>button{flex:1;min-width:0;padding:8px 4px;min-height:44px;font-size:12px;border:0;border-radius:5px;background:none;color:#a5bbcb;font-weight:750}
 .dashboard-tabs>button[aria-selected="true"]{background:#b9ea461b;color:var(--lime);box-shadow:inset 0 0 0 1px #b9ea4633}
 body.home-screen .hub-v25{display:flex;flex:1;flex-direction:column;gap:10px;max-height:720px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:1px}
 body.home-screen .hub-v25>.panel{display:none;grid-column:auto;grid-row:auto;flex:none;min-width:0;min-height:0;margin:0!important}
 body.home-screen .hub-v25[data-tab="match"]>.match-console{display:flex;flex:1;min-height:230px;padding:15px}
 body.home-screen .match-console .console-head{display:grid;grid-template-columns:1fr 1fr;font-size:10px;gap:5px;flex:none;margin:0}
 body.home-screen .next-match-label{max-width:none;grid-column:1/-1;grid-row:2;width:100%;font-size:10px}
 body.home-screen .match-console .match-stage{height:auto;flex:1;min-height:80px!important;max-height:none;margin:10px 0}
 body.home-screen .match-console .match-team-row{height:100%;padding:8px;grid-template-columns:minmax(0,1fr) 25px minmax(0,1fr)}
 body.home-screen .match-console .match-team-row>div{flex-direction:column;gap:12px;text-align:center}
 body.home-screen .match-team-row .club-badge.large{width:58px;height:68px}
 body.home-screen .match-team-row b:not(.club-badge b){font-size:16px!important;min-height:0;line-height:1.15;text-align:center}
 body.home-screen .match-team-name{min-height:44px}
 body.home-screen .hub-v25 .match-console .kickoff{height:48px;min-height:48px;font-size:14px;padding:10px 14px}
 body.home-screen .match-condition{margin-top:12px;gap:10px}
 body.home-screen .meter>div:first-child{font-size:10px;margin-bottom:6px}
 body.home-screen .hub-v25[data-tab="training"]>.weekly-console{display:flex;flex:1;min-height:176px;padding:13px}
 body.home-screen .hub-v25[data-tab="training"]>.hub-objectives{display:flex;flex:1.2;min-height:235px;padding:13px}
 body.home-screen .weekly-heading{margin-bottom:9px}
 body.home-screen .weekly-title h3{font-size:16px}
 body.home-screen .weekly-title .eyebrow{font-size:9px}
 body.home-screen .week-slots{min-height:70px;gap:7px;margin:0}
 body.home-screen .weekly-console .week-slot{padding:8px;min-height:70px;max-height:140px}
 body.home-screen .week-slot-top{margin:0 0 6px}
 body.home-screen .week-slot-main{flex:1;flex-direction:column;justify-content:center;gap:6px;text-align:center}
 body.home-screen .week-slot-icon{display:flex;width:25px;height:25px}
 body.home-screen .week-slot-icon svg{width:15px;height:15px}
 body.home-screen .week-slot-copy b{font-size:11px;line-height:1.2}
 body.home-screen .week-slot-status{display:none}
 body.home-screen .weekly-footer{margin-top:8px;min-height:38px;font-size:10px}
 body.home-screen .weekly-footer button{min-height:40px;font-size:10px}
 body.home-screen .hub-coach-heading{margin-bottom:9px}
 body.home-screen .hub-coach-heading>span{font-size:14px}
 body.home-screen .hub-coach-heading button{min-height:36px;font-size:10px}
 body.home-screen .hub-task{min-height:42px;max-height:65px;padding:6px 7px;gap:6px}
 body.home-screen .hub-task-copy>b{font-size:11px;white-space:normal;line-height:1.2}
 body.home-screen .hub-task>small{font-size:10px}
 body.home-screen .hub-task-reward{font-size:10px;min-width:28px}
 body.home-screen .hub-task>button{min-height:44px;height:44px;min-width:40px;width:40px}
 body.home-screen .hub-wallet-link{min-height:44px;padding:8px 0 0;font-size:11px;margin-top:7px}
 body.home-screen .hub-v25[data-tab="player"]>.hub-player-hero{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(110px,1fr) auto;flex:1;min-height:340px;gap:10px;padding:14px}
 body.home-screen .hub-player-hero .hub-player-info{gap:9px}
 .hub-portrait-stage{max-width:270px;min-height:0;width:100%;margin:auto;height:100%}
 .hub-portrait-art,.hub-portrait-art>svg{max-height:280px;min-height:0}
 .hub-portrait-club{display:flex;padding-top:6px;min-height:27px}
 body.home-screen .hub-player-hero .hub-profile-top{min-height:52px;gap:8px}
 body.home-screen .hub-player-hero .hub-profile-name h3{font-size:20px;margin:4px 0}
 body.home-screen .hub-player-hero .hub-profile-name button{min-height:36px;font-size:11px;margin:0}
 body.home-screen .hub-player-hero .hub-ovr b{font-size:40px}
 body.home-screen .hub-player-hero .season-console.panel{padding-top:5px;margin:0;flex:none}
 body.home-screen .hub-player-hero .season-console .console-head{min-height:40px;margin-bottom:5px}
 body.home-screen .hub-player-hero .stats-switch button{min-height:40px;font-size:12px}
 body.home-screen .hub-player-hero .hub-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 body.home-screen .hub-player-hero .hub-stat-tile{min-height:48px;padding:6px 2px}
 body.home-screen .hub-player-hero .hub-stat-copy b{font-size:25px}
 body.home-screen .hub-player-hero .hub-stat-copy small{font-size:9px;white-space:normal}
 .hub-player-hero .hub-form-ribbon{display:flex;flex-direction:row;align-items:center;margin-top:9px;padding-top:8px;gap:8px}
 .hub-form-ribbon>span{display:block;font-size:10px;flex:1}
 .hub-rating-list{flex:1.3;gap:4px}
 .recent-rating{height:26px;max-height:26px;font-size:10px}
 /* Full-screen match: score and playback stay fixed; only the activity scrolls. */
 .modal-backdrop{padding:max(8px,var(--safe-t)) max(8px,var(--safe-r)) max(8px,var(--safe-b)) max(8px,var(--safe-l));backdrop-filter:none;background:#020d17e8}
 .modal{max-height:calc(100dvh - max(8px,var(--safe-t)) - max(8px,var(--safe-b)));max-width:100%;width:100%;padding:20px 16px;overflow-y:auto;overscroll-behavior:contain;background:#102536f7}
 .modal-close{width:44px;height:44px;min-height:44px;top:5px;right:5px;z-index:5}
 .modal-close svg{width:16px;height:16px}
 .modal>h2{padding-right:30px;font-size:27px}
 .modal p{font-size:14px;line-height:1.5}
 .modal-footer{gap:8px;margin-top:16px;padding-top:14px}
 .modal-footer>.btn{min-height:46px;min-width:0;font-size:12px;padding:10px 12px;white-space:normal}
 .event-notification-backdrop{align-items:center;justify-content:center}
 .event-notification .event-choices{display:grid;grid-template-columns:1fr;gap:10px}
 .event-choices .btn{min-height:78px;padding:14px}
 .event-choices b{font-size:15px}
 .event-choices small{font-size:13px}
 .modal-preview{display:flex;flex-direction:column;overflow:hidden;padding:18px 14px 10px}
 .modal-preview .preview-scroll{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding-right:2px}
 .modal-preview .preview-teams{margin:18px 0;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);gap:8px}
 .modal-preview .preview-teams h3{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
 .modal-preview .preview-conditions{padding:10px;gap:10px;margin-bottom:14px}
 .modal-preview .preview-conditions>span{font-size:12px}
 .modal-preview .mode-grid{grid-template-columns:1fr;margin-top:14px;gap:8px}
 .modal-preview .mode-card{min-height:74px;padding:12px;grid-template-columns:26px minmax(0,1fr) 20px;gap:3px 10px}
 .modal-preview .mode-card>b{font-size:14px}
 .modal-preview .mode-card p{font-size:12px;line-height:1.3}
 .modal-preview .lineup-columns{grid-template-columns:1fr;gap:16px}
 .pregame-team-head button{min-height:44px}
 .pregame-lineups{padding:10px}
 .pregame-lineups>summary{display:flex;align-items:center;font-size:13px}
 .modal-preview>.modal-footer{display:grid;grid-template-columns:1fr 1fr;flex:none;padding-top:10px;margin-top:10px;gap:7px;min-width:0;background:#102536}
 .modal-preview>.modal-footer>.btn.primary{height:auto;min-height:58px;font-size:12px;padding:10px 7px;order:0;flex:none}
 .modal-preview>.modal-footer>.btn.secondary{grid-column:1/-1;grid-row:2;width:100%;min-height:40px;order:0}
 .modal-preview>.modal-footer>.btn.primary:only-of-type,.modal-preview>.modal-footer>.btn.primary:last-child:nth-child(2){grid-column:1/-1}
 .rewarded-simulation small{font-size:9px;white-space:normal;line-height:1.25}
 .modal-backdrop.live-match-backdrop{padding:0;align-items:stretch;background:#071624}
 .modal.live-match-modal{display:flex;flex-direction:column;width:100%;max-width:none;height:100dvh;max-height:100dvh;padding:calc(8px + var(--safe-t)) max(12px,var(--safe-r)) max(8px,var(--safe-b)) max(12px,var(--safe-l));margin:0;border:0!important;border-radius:0!important;background:linear-gradient(160deg,#132d42,#081b2b)!important;box-shadow:none!important;overflow:hidden;animation:none!important}
 .live-match-modal>*{flex-shrink:0}
 .live-match-modal .live-match-head{height:24px;min-height:24px;padding:0 0 7px;gap:8px;font-size:10px;line-height:1.1}
 .live-match-modal .live-match-head .eyebrow{font-size:10px;letter-spacing:.2px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .live-match-modal .live-indicator{font-size:10px;flex:none}
 .live-match-modal .live-score{grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr);gap:7px;margin:8px 0;min-height:78px}
 .live-match-modal .live-score>div:not(.live-score-center){flex-direction:column;align-items:center;justify-content:center;gap:5px}
 .live-match-modal .live-score>div>b{font-size:12px!important;line-height:1.15;min-height:0;max-width:100%;overflow-wrap:anywhere}
 .live-match-modal .live-score .club-badge.large{width:34px;height:36px}
 .live-match-modal .live-score-center{display:flex;flex-direction:column;gap:4px;justify-content:center}
 .live-match-modal .live-score-center strong{font-size:36px!important;line-height:1;letter-spacing:1px}
 .live-match-modal #live-clock{font-size:18px;line-height:1.1;padding:3px 8px}
 .live-match-modal .match-time-track{margin:4px 0;height:3px;min-height:3px}
 .live-match-modal .live-status-row{display:grid;grid-template-columns:1fr auto auto;gap:6px;align-items:center;margin:7px 0}
 .live-match-modal #live-status{grid-column:1/-1;font-size:10px;line-height:1.2;min-height:12px}
 .live-match-modal .speed-controls{display:flex;gap:5px}
 .live-match-modal .speed-controls button{min-width:44px;height:44px;min-height:44px;padding:8px;font-size:13px}
 .live-match-modal .live-status-row .btn{height:44px;min-height:44px;min-width:0;padding:8px 10px;font-size:12px;white-space:nowrap}
 .live-match-modal .live-stats{display:flex;justify-content:space-between;flex-wrap:nowrap;gap:6px;margin:0;padding:7px 0;font-size:10px;letter-spacing:0;line-height:1.2}
 .live-match-modal .live-stats span,.live-match-modal .live-stats b{font-size:10px;letter-spacing:0;white-space:nowrap}
 .live-match-modal .live-player-rating{height:34px;min-height:34px;padding:6px 9px;margin:4px 0 7px;gap:9px}
 .live-match-modal .live-player-rating>span{font-size:10px;max-width:none}
 .live-match-modal .live-player-rating>b{font-size:23px;line-height:1}
 .live-match-modal .match-activity{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
 .live-match-modal .match-activity[data-state="spectator"]{display:flex;flex-direction:column;justify-content:center;align-items:center;background:#071d2a;border:1px solid #3f637a55;border-radius:10px}
 .live-match-modal .spectator-frame{position:relative;display:block;width:100%;height:auto;min-height:0;max-height:100%;aspect-ratio:105/68;margin:0;border:0;border-radius:0!important;box-shadow:none}
 .live-match-modal .spectator-frame canvas{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none}
 .live-match-modal .episode-panel{display:block;margin:0;padding:12px;border-radius:10px!important;overflow:hidden}
 .live-match-modal .episode-title{display:flex;margin:0 0 8px;gap:10px}
 .live-match-modal .episode-title .eyebrow{font-size:10px}
 .live-match-modal .episode-title>b{font-size:20px}
 .live-match-modal .episode-illustration{height:clamp(90px,18dvh,155px)!important;min-height:0;aspect-ratio:auto!important;margin:0 0 10px!important}
 .live-match-modal .episode-panel h2{font-size:25px!important;line-height:1.05;margin:7px 0}
 .live-match-modal .episode-panel .moment-description{font-size:12px;line-height:1.4;margin:0 0 10px}
 .live-match-modal .episode-panel .action-options{display:grid;grid-template-columns:1fr;gap:7px;margin:0}
 .live-match-modal .action-options button{min-height:66px;padding:11px 10px 11px 14px;gap:8px;transform:none}
 .live-match-modal .action-options button>b,.live-match-modal .action-options button b{font-size:14px;line-height:1.2}
 .live-match-modal .action-options .action-outcome{font-size:11px;line-height:1.3;margin-top:4px}
 .live-match-modal .action-options button>span>small:not(.action-outcome){display:none}
 .live-match-modal .action-options em{font-size:26px;min-width:47px;line-height:1;flex:none}
 .live-match-modal .action-options em small{font-size:9px;margin-top:4px;letter-spacing:.5px}
 .live-match-modal .action-options button>svg{width:14px;height:14px;flex:none}
 .live-match-modal .match-commentary{flex:none;max-height:48px;min-height:0;margin:7px 0 0;padding:5px 0 0;overflow-y:auto}
 .live-match-modal .commentary-row{font-size:11px;line-height:1.25;padding:5px 0}
 .has-episode .live-match-modal .match-commentary{display:none}
 .live-match-modal #goal-flash{position:absolute;inset:31% 0 auto;z-index:10}
 .live-match-modal #goal-flash.goal-celebration>b{font-size:52px!important}
 .live-match-modal .discipline-flash{position:absolute;top:33%;z-index:20;max-width:calc(100% - 30px)}
 .guide-tip{padding:11px 13px}
 .guide-top{font-size:9px;margin-bottom:4px}
 .guide-top button{min-height:38px;min-width:60px;font-size:11px;padding:4px}
 .guide-tip h3{font-size:16px;margin:0 0 5px}
 .guide-tip p{font-size:12px;line-height:1.35}
 .guide-tip .btn{min-height:44px}
 #career-guide.mobile-inline-guide{position:static;inset:auto;width:100%;flex:none;z-index:0;pointer-events:auto;margin:0 0 10px}
 .mobile-inline-guide .guide-highlight{display:none}
 .mobile-inline-guide .guide-tip{position:static!important;width:100%!important;box-shadow:none;border-radius:7px}
 .modal-result .result-score{grid-template-columns:minmax(0,1fr) 95px minmax(0,1fr);margin:20px 0;gap:5px}
 .modal-result .result-score>div>b{font-size:12px;line-height:1.2;overflow-wrap:anywhere}
 .modal-result .result-score .club-badge.large{height:48px;width:42px}
 .result-stats{padding:14px 6px}
 .result-stats span{font-size:10px}
 .result-gains{flex-wrap:wrap;gap:10px;font-size:12px}
 .result-player h3{font-size:16px;overflow-wrap:anywhere}
 .settings-list>div,.settings-list>label{min-width:0;gap:10px}
 .settings-list .game-select{max-width:180px}
 .settings-list .settings-save-row{flex-wrap:wrap}
 .settings-list .btn{min-height:44px;white-space:normal}
 .save-slots{grid-template-columns:1fr}
 .slot-delete{min-width:44px;min-height:44px}
 .appearance-modal-grid{display:flex;flex-direction:column-reverse}
 .appearance-live{position:static;height:150px;min-height:0;max-width:200px;width:100%;margin:auto}
 .appearance-live svg{height:150px;width:100%}
 .negotiation-body{grid-template-columns:minmax(0,1fr);gap:16px}
 .contract-form{grid-template-columns:minmax(0,1fr);min-width:0}
 .contract-form label{min-width:0}
 .notification-top{padding-right:30px}
 .keyboard-open .creating .wizard-footer{position:static}
 #toast{bottom:calc(var(--mobile-nav) + var(--safe-b) + 12px);max-width:calc(100% - 24px);font-size:13px}
}
@media(max-width:360px){
 .perks-grid{grid-template-columns:minmax(0,1fr)}
 .live-match-modal .speed-controls{gap:3px}
 .live-match-modal .speed-controls button{min-width:40px;padding:6px}
 .live-match-modal .live-status-row .btn{padding:8px;font-size:11px}
 .live-match-modal .live-stats span,.live-match-modal .live-stats b{font-size:9px}
 body.home-screen .hub-task-state{display:none}
 body.home-screen .hub-player-hero .hub-stat-copy b{font-size:22px}
 .creating .setup-preview>.player-card{grid-template-columns:94px minmax(0,1fr);gap:8px}
 .creating .setup-preview .player-visual{width:94px;height:115px}
 .creating .setup-preview .player-name{font-size:18px}
}
@media(pointer:coarse) and (min-width:560px) and (max-width:1100px) and (max-height:600px){
 :root{--mobile-nav:55px}
 .game-nav,body.home-screen .game-nav{height:calc(48px + var(--safe-t));min-height:calc(48px + var(--safe-t))}
 .game-nav .brand-name,body.home-screen .game-nav .brand-name{display:block;font-size:22px}
 .game-nav .nav-item,body.home-screen .game-nav .nav-item{flex-direction:row;gap:6px;min-height:46px;font-size:11px}
 .nav-item .nav-compact-label{font-size:11px}
 .nav-icon svg{width:19px;height:19px}
 body.home-screen .game-hud{height:26px;min-height:26px;padding:5px 0}
 body.home-screen .hub-title{display:none}
 .dashboard-tabs{height:40px;min-height:40px;margin-bottom:7px}
 .dashboard-tabs>button{min-height:32px;padding:5px}
 body.home-screen .hub-v25[data-tab="match"]>.match-console{min-height:150px;padding:9px 13px;display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,.7fr);grid-template-rows:auto 1fr;gap:7px 18px}
 body.home-screen .match-console .console-head{grid-column:1;grid-row:1;display:flex;gap:10px;justify-content:space-between}
 body.home-screen .next-match-label{max-width:60%;grid-column:auto;grid-row:auto}
 body.home-screen .match-console .match-stage{grid-column:1;grid-row:2;min-height:80px!important;margin:0}
 body.home-screen .match-console .match-team-row>div{flex-direction:row;gap:8px}
 body.home-screen .match-team-row .club-badge.large{width:40px;height:45px}
 body.home-screen .match-team-row b:not(.club-badge b){font-size:13px!important}
 body.home-screen .hub-v25 .match-console .kickoff{grid-column:2;grid-row:1/3;align-self:center;margin:0 0 45px}
 body.home-screen .match-condition{grid-column:2;grid-row:1/3;align-self:end;margin:0 0 6px}
 body.home-screen .hub-v25[data-tab="training"]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
 body.home-screen .hub-v25[data-tab="training"]>.weekly-console,body.home-screen .hub-v25[data-tab="training"]>.hub-objectives{min-height:200px;padding:9px 12px}
 body.home-screen .hub-v25[data-tab="player"]>.hub-player-hero{min-height:185px;grid-template-columns:minmax(110px,.45fr) minmax(0,1fr);grid-template-rows:1fr;gap:13px;padding:10px 16px}
 .hub-portrait-stage{max-width:210px}
 .hub-portrait-art,.hub-portrait-art>svg{max-height:200px}
 .hub-portrait-club{display:none}
 body.home-screen .hub-player-hero .hub-player-info{gap:4px}
 body.home-screen .hub-player-hero .hub-profile-top{min-height:45px}
 body.home-screen .hub-player-hero .hub-profile-name h3{font-size:20px}
 body.home-screen .hub-player-hero .hub-profile-name button{min-height:30px}
 body.home-screen .hub-player-hero .season-console .console-head{min-height:34px;margin:0}
 body.home-screen .hub-player-hero .stats-switch button{min-height:34px}
 .hub-player-hero .hub-form-ribbon{display:none}
 .creating .setup-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:14px;align-items:start}
 .creating .setup-preview{position:sticky;top:calc(56px + var(--safe-t))}
 .creating .setup-preview>.player-card{display:flex;flex-direction:column;padding:12px 12px 0;gap:5px}
 .creating .setup-preview .player-visual{order:1;width:100%;height:130px}
 .creating .setup-preview .player-card-top{order:0;width:100%}
 .creating .setup-preview .player-name{order:2;align-self:center;text-align:center;font-size:18px}
 .creating .setup-preview .player-subtitle{order:3;align-self:center;margin:0 0 5px}
 .creating .setup-preview .player-card-footer{order:4;width:calc(100% + 24px);margin:0 -12px}
 .creating .wizard-footer{bottom:0}
 .creation-heading h1{font-size:27px}
 /* Landscape broadcast: fixed scoreboard on the left and the field/choices on the right. */
 .modal.live-match-modal{display:grid;grid-template-columns:230px minmax(0,1fr);grid-template-rows:24px 80px 5px auto auto 1fr;gap:0 14px}
 .live-match-modal .live-match-head{grid-column:1/-1;grid-row:1}
 .live-match-modal .live-score{grid-column:1;grid-row:2;margin:4px 0;min-height:70px;grid-template-columns:1fr 75px 1fr}
 .live-match-modal .live-score>div>b{font-size:10px!important}
 .live-match-modal .live-score .club-badge.large{width:27px;height:29px}
 .live-match-modal .live-score-center strong{font-size:32px!important}
 .live-match-modal #live-clock{font-size:16px}
 .live-match-modal .match-time-track{grid-column:1;grid-row:3;margin:0}
 .live-match-modal .live-status-row{grid-column:1;grid-row:4;grid-template-columns:1fr 1fr;gap:5px;margin:7px 0}
 .live-match-modal #live-status{grid-column:1/-1}
 .live-match-modal .speed-controls{grid-column:1/-1;justify-content:center;gap:8px}
 .live-match-modal .speed-controls button{flex:1}
 .live-match-modal .live-stats{grid-column:1;grid-row:5;flex-wrap:wrap;justify-content:center;gap:5px 12px;padding:4px 0}
 .live-match-modal .live-player-rating{grid-column:1;grid-row:6;align-self:start;margin-top:5px}
 .live-match-modal .match-activity{grid-column:2;grid-row:2/7;height:100%;min-height:0}
 .live-match-modal .match-commentary{display:none}
 .live-match-modal .episode-panel{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-rows:auto auto auto 1fr;gap:7px 12px;min-height:100%;padding:10px}
 .live-match-modal .episode-title{grid-column:1/-1;grid-row:1;margin:0}
 .live-match-modal .episode-illustration{grid-column:1;grid-row:2/5;height:150px!important;align-self:center;margin:0!important}
 .live-match-modal .episode-panel h2{grid-column:2;grid-row:2;font-size:23px!important;margin:0}
 .live-match-modal .episode-panel .moment-description{grid-column:2;grid-row:3;font-size:11px;margin:0}
 .live-match-modal .episode-panel .action-options{grid-column:2;grid-row:4;display:grid;grid-template-columns:1fr;gap:5px}
 .live-match-modal .action-options button{min-height:58px;padding:9px 9px 9px 12px;gap:6px}
 .live-match-modal .action-options button b{font-size:12px}
 .live-match-modal .action-options .action-outcome{font-size:10px;line-height:1.2}
 .live-match-modal .action-options button>svg{display:none}
 .live-match-modal .action-options em{font-size:22px;min-width:42px}
 .live-match-modal .spectator-frame{min-height:0;max-height:100%;height:auto}
 .live-match-modal .spectator-frame canvas{min-height:0}
}
@media(pointer:coarse) and (max-width:559px) and (orientation:landscape){
 body.home-screen .hub-v25[data-tab="player"]>.hub-player-hero{grid-template-columns:130px minmax(0,1fr);grid-template-rows:1fr;min-height:220px}
 body.home-screen .hub-v25[data-tab="match"]>.match-console{min-height:250px}
 .live-match-modal .episode-illustration{height:90px!important}
}
@media(pointer:coarse) and (min-width:560px) and (max-width:1100px) and (max-height:420px){
 .live-match-modal .episode-panel{display:block}
 .live-match-modal .episode-illustration{display:none}
 .live-match-modal .episode-title{margin-bottom:6px}
 .live-match-modal .episode-panel h2{font-size:22px!important;margin:4px 0}
 .live-match-modal .episode-panel .moment-description{margin:5px 0 9px}
 .live-match-modal .action-options button{min-height:58px}
}
