/* Centralized responsive rules. Breakpoints are ordered from broad to narrow so smaller layouts override larger ones predictably. */
@media (min-width:1181px) {
  .game-page .fixed-global-header .profile-name{display:inline!important}
  .game-page .fixed-global-header .game-actions .counter{display:flex!important}
}
@media (max-width:1380px) and (min-width:981px) {
  .game-page .fixed-global-header .game-header-inner,.compact-game-ui .fixed-global-header .game-header-inner{grid-template-columns:166px minmax(620px,1fr) auto!important;padding:0 12px!important;gap:10px!important}
  .game-page .fixed-global-header .game-brand{width:166px!important;min-width:166px!important}
  .game-page .fixed-global-header .game-brand img{width:150px!important;max-width:150px!important}
  .game-page .fixed-global-header .game-nav{min-width:620px!important;grid-template-columns:64px 62px 82px 108px 86px 72px 78px!important}
  .game-page .fixed-global-header .nav-trigger{font-size:11.5px!important;padding:0 4px!important}
  .game-page .fixed-global-header .nav-search{width:78px!important;min-width:78px!important;padding:0 4px!important}
  .game-page .fixed-global-header .search-label{font-size:11.5px!important}
  .game-page .fixed-global-header .profile-name{display:none!important}
  .game-page .fixed-global-header .profile-trigger{min-width:53px!important}
  .game-page .fixed-global-header .chat-action b{display:none}
  .game-page .fixed-global-header .game-actions{padding-left:8px!important}
  .game-page .fixed-global-header .game-brand img[src*="soccersim-main-logo.png"],.compact-game-ui .fixed-global-header .game-brand img[src*="soccersim-main-logo.png"]{height:54px!important;max-height:54px!important;max-width:154px!important}
  .game-page .fixed-global-header .game-brand img[src*="soccersim-classic-logo.png"],.compact-game-ui .fixed-global-header .game-brand img[src*="soccersim-classic-logo.png"]{width:174px!important;max-width:174px!important;max-height:58px!important}
}
@media (max-width:1180px) {
  .transfer-market-table{font-size:9.2px}
  .transfer-market-table th{font-size:8.8px}
  .transfer-market-table th,.transfer-market-table td{padding-left:1px;padding-right:1px}
  .market-name-wrap{gap:3px}
  .market-name-wrap .player-flag{width:14px;height:9px}
}
@media (max-width:1100px) {
  .europe-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .south-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .region-map-wrap{height:350px}
  .coaching-table .coach-inline-progress{max-width:138px;min-width:84px}
  .coaching-table td:nth-child(4),.coaching-table td:nth-child(5),.coaching-table td:nth-child(6),.coaching-table td:nth-child(7){min-width:132px}
}
@media (max-width:1080px) {
  .game-header-inner{gap:16px}
  .game-nav{gap:0}
  .nav-trigger{padding:0 9px}
  .counter{display:none}
  .profile-name{display:none}
  .game-brand img{width:160px}
  .system-panel{width:min(900px,100%)}
  .compact-game-ui .intl-page-shell,.compact-game-ui .national-cups-shell{width:min(1080px,calc(100% - 16px));}
  .intl-stage-groups .intl-main-grid,.national-world-groups .national-cup-grid{grid-template-columns:1fr;}
  .intl-stage-groups .intl-right-panel,.national-world-groups .national-cup-right{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
  .intl-stage-groups .intl-competition-select{grid-column:1/-1;}
  .intl-stage-groups .intl-right-panel .info-card+.info-card,.national-world-groups .national-cup-right .info-card+.info-card{margin-top:0;}
}
@media (max-width:1050px) {
  .league-two-col{grid-template-columns:1fr}
  .side-box{grid-template-columns:1fr 1fr;gap:28px}
  .champion-row{grid-template-columns:120px 1fr 1fr}
  .admin-overview-grid{grid-template-columns:repeat(3,1fr)}
  .admin-overview-grid>div:nth-child(3){border-right:0}
  .admin-panel-grid{grid-template-columns:1fr}
  .admin-audit-row{grid-template-columns:130px 170px 1fr}
  .admin-user-summary{grid-template-columns:repeat(3,1fr)}
  .admin-users-toolbar{grid-template-columns:1fr 1fr}
  .admin-user-search{grid-column:1/-1}
  .admin-recent-user{grid-template-columns:34px minmax(160px,1.5fr) minmax(120px,1fr) 68px}
  .admin-recent-country{display:none}
}
@media (max-width:980px) {
  .team-dashboard-grid{grid-template-columns:1fr}
  .team-tabs{width:100%;grid-column:1/-1}
  .club-hero{grid-template-columns:76px 1fr}
  .club-crest{width:72px;height:72px;font-size:22px}
  .club-identity h1{font-size:31px}
  .recent-match-row{grid-template-columns:38px 90px 1fr 50px 1fr 30px}
  .team-card-title{flex-wrap:wrap;height:auto;padding-top:12px;padding-bottom:12px}
  .history-mode{margin-left:0}
  .intl-main-grid{grid-template-columns:1fr}
  .intl-competition-head{grid-template-columns:1fr}
  .goal-match-controls{align-items:flex-start;flex-direction:column}
  .intl-main-grid,.national-cup-grid{grid-template-columns:1fr}
  .intl-stage-groups .intl-main-grid,.national-world-groups .national-cup-grid{grid-template-columns:1fr}
  .intl-group-list,.intl-group-match-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .game-page .fixed-global-header .game-header-inner,.compact-game-ui .fixed-global-header .game-header-inner{height:auto!important;min-height:62px!important;grid-template-columns:150px 1fr!important;grid-template-rows:62px 42px!important;padding:0 10px!important;gap:0 8px!important}
  .game-page .fixed-global-header .game-brand{width:150px!important;min-width:150px!important;height:62px!important}
  .game-page .fixed-global-header .game-brand img{width:140px!important;max-width:140px!important}
  .game-page .fixed-global-header .game-actions{height:62px!important;grid-column:2!important;grid-row:1!important;border-left:0!important;padding-left:0!important;overflow:hidden!important}
  .game-page .fixed-global-header .game-nav{grid-column:1/-1!important;grid-row:2!important;width:100%!important;min-width:0!important;height:42px!important;display:flex!important;overflow-x:auto!important;overflow-y:visible!important;border-top:1px solid rgba(255,255,255,.12)!important}
  .game-page .fixed-global-header .game-nav>.nav-menu{width:auto!important;min-width:max-content!important;height:42px!important}
  .game-page .fixed-global-header .nav-trigger{width:auto!important;height:42px!important;min-height:42px!important;padding:0 12px!important}
  .game-page .fixed-global-header .nav-search{width:auto!important;min-width:86px!important;height:42px!important}
  .game-page .fixed-global-header .nav-dropdown{top:42px!important}
  .game-page .fixed-global-header .profile-dropdown{top:62px!important}
  .game-page .fixed-global-header .counter{height:62px!important}
  .game-page .fixed-global-header .profile-menu{height:62px!important}
  .game-page .fixed-global-header .profile-trigger{height:62px!important;min-height:62px!important}
  .game-page .fixed-global-header .chat-action{height:62px}
  .recent-match-row{grid-template-columns:34px 94px minmax(130px,1fr) 46px minmax(130px,1fr) 26px}
  .recent-match-row{grid-template-columns:32px 88px minmax(125px,1fr) 42px minmax(125px,1fr) 22px!important;}
  .league-match-row{grid-template-columns:minmax(170px,1fr) 72px minmax(170px,1fr) 58px!important;}
  .game-page .fixed-global-header .game-brand img[src*="soccersim-main-logo.png"],.compact-game-ui .fixed-global-header .game-brand img[src*="soccersim-main-logo.png"]{height:50px!important;max-height:50px!important;max-width:140px!important}
  .game-page .fixed-global-header .game-brand img[src*="soccersim-classic-logo.png"],.compact-game-ui .fixed-global-header .game-brand img[src*="soccersim-classic-logo.png"]{width:150px!important;max-width:150px!important;max-height:52px!important}
}
@media (max-width:920px) {
  .investments-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .investments-grid .investment-card:nth-child(4),.investments-grid .investment-card:nth-child(5){grid-column:auto}
  .investments-summary{grid-template-columns:1fr}
  .investments-summary span:nth-child(2),.investments-summary span:nth-child(3){text-align:left}
}
@media (max-width:900px) {
  .compact-league-heading{grid-template-columns:1fr auto}
  .compact-league-heading .detail-select{grid-column:1/-1;justify-self:end}
  .player-detail-grid{grid-template-columns:1fr}
  .player-profile-header{align-items:flex-start;flex-direction:column}
  .player-profile-tabs{width:100%;display:grid;grid-template-columns:repeat(4,1fr)}
  .player-profile-tab{text-align:center;padding:10px 5px}
  .ability-grid{grid-template-columns:1fr}
  .goal-player-layout{grid-template-columns:1fr}
  .goal-player-header{align-items:flex-start;flex-direction:column}
  .goal-player-tabs{width:100%;display:grid;grid-template-columns:repeat(4,1fr)}
  .goal-player-tabs .player-profile-tab{border-radius:3px}
  .goal-player-page{width:100%}
  .national-team-info-grid{grid-template-columns:1fr}
  .national-team-hero{grid-template-columns:1fr}
  .national-team-hero .team-tabs{width:100%;display:grid;grid-template-columns:repeat(4,1fr)}
  .national-recent-row{grid-template-columns:30px 1fr 46px 1fr}
  .national-recent-row .national-competition-cell,.national-recent-row .national-report{grid-column:2/-1}
  .national-recent-row .national-report{text-align:left}
  .inactive-tools input{width:150px}
  .goal-player-tabs.owner-tabs{grid-template-columns:repeat(3,1fr)}
  .coaching-layout{grid-template-columns:1fr}
  .coach-attributes{grid-row:auto}
  .coach-report-grid{grid-template-columns:1fr 1fr}
  .coaching-tip{grid-column:auto}
  .global-search-form{grid-template-columns:1fr}
  .global-search-form input{border-right:1px solid #cfd7d2;border-radius:4px;margin-bottom:8px}
  .global-search-form select{border-right:1px solid #cfd7d2;border-radius:4px;margin-bottom:8px}
  .global-search-form .workspace-button{border-radius:4px}
  .loaned-squad-heading b{font-size:17px}
  .player-name-stars{font-size:12px}
  .match-report-grid{grid-template-columns:1fr}
  .match-summary-stats{order:-1}
  .match-report-managers{grid-template-columns:1fr;text-align:left}
  .match-report-managers>div:last-child{text-align:left}
  .match-report-team-heads{grid-template-columns:1fr 90px 1fr}
  .match-report-meta{grid-template-columns:1fr}
  .match-report-meta>div:last-child{justify-self:start}
  .match-lineup-row{grid-template-columns:20px 22px minmax(0,1fr) 10px 14px 34px}
  .match-summary-stats>div{grid-template-columns:1fr 130px 1fr}
  .scout-report-row{grid-template-columns:1fr 1fr}
  .scout-report-row>div:nth-child(5){grid-column:1/-1}
  .board-overall{flex-direction:column}
  .board-overall>small{text-align:left}
  .board-review-history>div{grid-template-columns:1fr 1fr}
  .board-review-history small{grid-column:1/-1}
}
@media (max-width:850px) {
  .footer-inner{grid-template-columns:1fr;justify-items:center;text-align:center;padding:16px 0}
  .footer-credit{justify-self:center}
  .server-head{display:none}
  .server-row{grid-template-columns:1fr 1fr;gap:10px 16px;padding:17px}
  .server-info{grid-column:1/-1}
  .stat{text-align:left;border-top:1px solid #edf0f2;padding-top:8px}
  .stat:before{content:attr(data-label);display:block;font-size:9px;font-weight:800;color:#7a838d;margin-bottom:3px}
  .enter-cell{grid-column:1/-1}
  .enter{width:100%}
  .header-inner{width:calc(100% - 28px)}
  .world-map-wrap{height:auto}
  .country-groups{grid-template-columns:1fr 1fr}
  .country-group:last-child{grid-column:1/-1}
  .countries-shell{width:100%}
  .ruby-pack-grid{grid-template-columns:1fr}
  .mailbox-grid{grid-template-columns:1fr}
  .mail-reader-pane{min-height:270px}
  .mail-empty-reader{min-height:270px}
  .online-table-head,.online-manager-row{grid-template-columns:1fr 1fr 80px}
  .online-table-head>b:nth-child(3),.online-manager-row>span:nth-child(3){display:none}
  .ruby-history-head,.ruby-history-row{grid-template-columns:60px 45px 60px 1fr}
  .ruby-history-head>*:nth-child(n/**/+5),.ruby-history-row>*:nth-child(n/**/+5){display:none}
  .ruby-history-head,.ruby-history-row{grid-template-columns:60px 45px 60px 1fr}
}
@media (max-width:820px) {
  .finance-power-grid,.finance-summary,.manager-settings-form,.scout-general-grid,.scout-skills-grid,.scout-bottom-grid{grid-template-columns:1fr}
  .finance-period-row{flex-direction:column;gap:5px}
  .board-metric-head,.board-metric-row{grid-template-columns:90px 1fr}
  .board-metric-head>*:last-child,.board-metric-row>*:last-child{grid-column:1/-1}
  .manager-page-head{align-items:flex-start;flex-direction:column}
  .manager-page-head nav{width:100%;overflow:auto}
  .settings-save{grid-column:auto}
  .manager-achievement-grid{grid-template-columns:1fr}
  .manager-history-head{align-items:flex-start;flex-direction:column}
  .manager-history-mode{margin-left:0;width:100%;overflow:auto}
  .manager-title-row{grid-template-columns:38px 1fr}
  .manager-title-row small{grid-column:2}
}
@media (max-width:760px) {
  .game-header-inner{height:auto;min-height:74px;flex-wrap:wrap;padding:8px 0}
  .game-nav{order:3;width:100%;height:42px;overflow-x:auto}
  .nav-trigger{white-space:nowrap}
  .nav-dropdown{top:40px}
  .game-actions{margin-left:auto}
  .game-statusbar-inner{width:calc(100% - 28px);gap:14px}
  .status-server{display:none}
  .game-main{padding:24px 12px 50px}
  .system-panel{width:100%}
  .system-panel-body{padding:20px 17px}
  .welcome-title h1{font-size:21px}
  .game-footer-inner{width:calc(100% - 28px);padding:17px 0;align-items:flex-end}
  .game-footer-brand p{max-width:380px}
  .country-group.europe .country-list,.country-group.south-america .country-list{grid-template-columns:1fr}
  .map-pin{width:25px;height:25px}
  .map-pin svg{width:15px;height:15px}
  .region-map-wrap{height:300px}
  .europe-grid,.south-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .region-flag-pin{width:20px;height:13px}
  .south-grid .region-country{font-size:11px}
  .region-map-wrap{min-height:330px;padding:10px}
  .region-south-america.region-map-wrap{min-height:420px}
  .region-canvas-europe{width:min(100%,680px)}
  .region-canvas-north-america{width:min(100%,650px)}
  .region-canvas-south-america{width:min(58%,270px)}
  .region-flag-pin{width:13px;height:9px}
  .region-map-canvas > img.region-flag-pin{width:13px!important;height:9px!important;max-width:13px!important;max-height:9px!important}
  .region-canvas-north-america{width:min(96%,650px)}
  .region-north-america.region-map-wrap{min-height:340px;padding:12px}
  .country-header-row h1{font-size:24px}
  .country-tabs{gap:6px}
  .country-tab{padding:8px 11px;font-size:12px}
  .detail-section-title{padding:12px}
  .league-two-col{padding:14px 12px}
  .scorer-row{grid-template-columns:22px minmax(0,1fr) 30px minmax(100px,1fr)}
  .cup-match{grid-template-columns:1fr;gap:3px}
  .cup-vs{display:none}
  .cup-score{text-align:left}
  .side-box{grid-template-columns:1fr}
  .champion-row{grid-template-columns:1fr}
  .detail-season-row{width:100%;justify-content:space-between}
  .league-match-row{grid-template-columns:minmax(0,1fr) 74px minmax(0,1fr);font-size:12px}
  .match-report{display:none}
  .form-track{gap:7px}
  .form-result{width:22px;height:22px;font-size:10px}
  .matches-box>.league-subtabs{margin:12px 10px 5px}
  .matches-body{padding:0 10px 12px}
  .club-hero{grid-template-columns:62px 1fr}
  .club-crest{width:58px;height:58px}
  .club-identity h1{font-size:24px}
  .manager-availability{margin-left:12px;margin-right:12px}
  .recent-match-row{grid-template-columns:32px 1fr 34px 1fr 22px}
  .team-info-list>div{grid-template-columns:118px minmax(0,1fr)}
  .player-subtabs{padding-left:8px;padding-right:8px}
  .player-subtabs .player-subtab{padding:8px 10px;font-size:11.5px}
  .goal-sub-table{font-size:11.5px;min-width:820px}
  .goal-sub-table th{font-size:11px}
  .subtable-search input{width:145px}
  .statistics-subpage .stats-topline{align-items:flex-start;flex-direction:column}
  .team-history-head,.team-history-row{grid-template-columns:56px 46px 120px minmax(0,1fr);font-size:11px}
  .nav-drop-heading{font-size:9.5px}
  .intl-page-title-row,.national-cups-title-row{align-items:flex-start}
  .intl-page-title-row h1,.national-cups-title-row h1{font-size:23px}
  .intl-zone-tab,.national-cup-tab{padding:8px 9px;font-size:10.5px}
  .intl-main-grid,.national-cup-grid{padding:10px}
  .intl-match-row,.national-match-row{grid-template-columns:1fr 18px 1fr}
  .intl-score-result,.national-score{grid-column:1/-1;text-align:center;padding-bottom:3px}
  .intl-scorer-row,.national-scorer-row,.intl-champion-row,.national-champion-row{grid-template-columns:24px 1fr 30px 1fr}
  .intl-champion-row,.national-champion-row{grid-template-columns:90px 1fr 1fr}
  .intl-group-block h3{font-size:16px;margin-bottom:10px}
  .intl-group-table{min-width:500px}
  .intl-group-subtabs{gap:16px}
  .season-fixture-note{align-items:flex-start;flex-direction:column;gap:4px}
  .team-season-schedule-note{line-height:1.35}
  .transfer-market-toolbar{align-items:stretch;flex-direction:column}
  .transfer-filter-controls select{flex:1;width:auto}
  .transfer-market-search{justify-content:flex-end}
  .transfer-market-search input{flex:1;max-width:260px}
  .transfer-market-title .league-name-block span{display:none}
  .cup-box .cup-match{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr) 34px!important;
    min-height:31px;
    font-size:11.5px;}
  .cup-box .cup-vs{display:block!important}
  .cup-box .cup-score{text-align:right!important}
  .cup-box .cup-team.home{padding-right:6px}
  .cup-box .cup-team.away{padding-left:6px}
  .cup-box .cup-match{grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr) 54px!important;
    min-height:28px!important;
    font-size:11px!important;}
  .cup-box .cup-team.home{padding-right:6px!important;}
  .cup-box .cup-team.away{padding-left:6px!important;}
  .cup-box .cup-team-inline,.cup-box .cup-team-inline.universal-team-nav{column-gap:4px!important;}
  .negotiations-layout{grid-template-columns:1fr}
  .negotiations-detail{padding-top:0}
  .negotiation-row{grid-template-columns:16px minmax(0,1fr)}
  .negotiation-row>span{grid-column:2}
  .current-negotiation-list>div{grid-template-columns:16px minmax(0,1fr)}
  .current-negotiation-list small{grid-column:2}
  .intl-group-list,.intl-group-match-grid{grid-template-columns:1fr;}
  .intl-stage-groups .intl-right-panel,.national-world-groups .national-cup-right{display:block;}
  .intl-stage-groups .intl-right-panel .info-card+.info-card,.national-world-groups .national-cup-right .info-card+.info-card{margin-top:10px;}
  .country-ranking-main{padding-left:6px;padding-right:6px;}
  .country-ranking-shell{width:100%;}
  .country-ranking-regions{justify-content:flex-start;overflow-x:auto;padding-right:0;}
  .country-ranking-region{padding:0 10px;}
  .country-ranking-table{min-width:650px;}
  .manager-ranking-search{flex-wrap:wrap}
  .manager-ranking-search input{width:100%;flex:1 1 100%}
  .manager-ranking-info{font-size:10px}
  .ranking-mode-tabs{overflow-x:auto}
  .ranking-mode-tab{min-width:72px;padding:0 10px}
  .league-ranking-controls{flex-wrap:wrap}
  .league-ranking-controls label{margin-left:0;width:100%}
  .league-ranking-controls input{flex:1}
  .team-ranking-table,.league-ranking-table{min-width:720px}
  .mailbox-card-head{align-items:flex-start!important}
  .mailbox-new-message{font-size:9px!important}
  .mail-compose-title{align-items:flex-start!important;flex-direction:column!important}
  .mail-compose-recipient{grid-template-columns:44px 1fr!important}
}
@media (max-width:700px) {
  .game-header-inner{width:calc(100% - 20px);gap:10px}
  .game-brand img{width:145px}
  .game-actions .counter{display:none}
  .game-nav{overflow-x:auto}
  .nav-trigger{padding:0 9px;font-size:11px}
  .team-page-main{padding:14px 10px 36px}
  .team-page-shell{width:100%}
  .team-breadcrumb{overflow-x:auto;white-space:nowrap}
  .club-hero{grid-template-columns:64px 1fr;padding-left:0;padding-right:0}
  .club-crest{width:60px;height:60px;border-width:3px}
  .club-identity h1{font-size:25px}
  .team-tabs{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr)}
  .team-tab{min-width:0;padding:12px 7px;font-size:10px}
  .team-info-list>div{grid-template-columns:130px 1fr}
  .recent-match-row{grid-template-columns:36px 1fr 44px 1fr 28px}
  .competition-mini{display:none}
  .history-view-switch{display:none}
  .team-match-full-row{grid-template-columns:55px 1fr 32px 1fr}
  .team-match-full-row>span:nth-child(5),.team-match-full-row>button{display:none}
  .players-toolbar{align-items:flex-start;flex-direction:column}
  .players-toolbar label{width:100%}
  .players-toolbar input{flex:1}
  .game-statusbar-inner{width:calc(100% - 20px)}
  .compact-status-list>div{grid-template-columns:105px minmax(0,1fr)}
  .manage-club-note,.job-application-note,.stadium-simple-row{margin-left:14px;margin-right:14px}
  .compact-game-ui .game-header-inner{height:58px}
  .compact-game-ui .game-main,.player-page-main{padding-left:10px!important;padding-right:10px!important}
  .compact-game-ui .country-header-row h1,.compact-game-ui .club-identity h1,.player-profile-title h1{font-size:23px}
  .compact-game-ui .league-two-col{grid-template-columns:1fr}
  .compact-game-ui .team-tabs{grid-template-columns:repeat(4,1fr)}
  .compact-game-ui .team-tab{min-width:0}
  .player-info-rows>div{grid-template-columns:100px minmax(0,1fr)}
  .team-link .team-tier-icon{width:10px;height:14px}
  .team-page-tier,.player-tier-icon{width:14px;height:18px}
  .league-tier-icon{width:13px;height:17px}
  .compact-game-ui{font-size:12.5px}
  .goal-player-title h1{font-size:24px}
  .goal-info-list>div{grid-template-columns:100px minmax(0,1fr);font-size:12.5px}
  .goal-attribute-list>div,.contract-content,.player-season-stats,.goal-traits{font-size:12.5px}
  .goal-player-tabs .player-profile-tab{min-width:0;padding:9px 6px;font-size:11.5px}
  .manager-status-icon,.compact-game-ui .manager-status-icon{width:14px;height:14px;flex-basis:14px}
  .manager-status-icon.computer,.compact-game-ui .manager-status-icon.computer{width:15px;height:15px;flex-basis:15px}
  .goal-match-table thead{display:none}
  .goal-match-table,.goal-match-table tbody,.goal-match-table tr,.goal-match-table td{display:block;width:100%}
  .goal-match-table tr{padding:10px 0;border-bottom:1px solid #dfe6e1}
  .goal-match-table td{padding:4px 0;border-bottom:none}
  .intl-match-row{grid-template-columns:1fr 20px 1fr}
  .intl-score-result{grid-column:1/-1;text-align:center}
  .loan-club-details{gap:2px}
  .competition-cell-link{white-space:normal}
  .recent-match-row{grid-template-columns:32px minmax(0,1fr) 42px minmax(0,1fr) 24px}
  .recent-match-row .competition-mini{display:none}
  .goal-match-table .home-cell,.goal-match-table .away-cell{text-align:left;padding-left:0;padding-right:0}
  .goal-match-table .match-team-inline.match-team-side.home{justify-content:flex-start;text-align:left}
  .recent-match-row{grid-template-columns:30px minmax(0,1fr) 38px minmax(0,1fr) 20px!important;}
  .recent-match-row .competition-mini{display:none!important}
  .goal-match-table .match-team-inline.match-team-side.home{grid-template-columns:16px minmax(0,1fr);
    text-align:left!important;}
  .goal-match-table .match-team-inline.match-team-side.away{grid-template-columns:minmax(0,1fr) 16px;
    text-align:right!important;}
  .league-match-row{grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr)!important;}
  .game-page .fixed-global-header .game-actions{margin-right:0!important}
  .admin-overview-grid{grid-template-columns:repeat(2,1fr)}
  .admin-overview-grid>div{border-right:0;border-bottom:1px solid #e5ebe7}
  .admin-server-form{grid-template-columns:1fr}
  .admin-readonly-row{grid-template-columns:1fr}
  .admin-users-table{min-width:720px}
  .admin-audit-row{grid-template-columns:1fr}
  .admin-button-row{flex-wrap:wrap}
  .admin-control-full .admin-server-form{grid-template-columns:1fr}
  .admin-server-transport{grid-template-columns:1fr}
  .admin-simulator-state{display:grid;gap:4px}
  .club-workspace-shell.admin-workspace-shell{width:calc(100% - 12px)}
  .admin-user-summary{grid-template-columns:1fr 1fr;padding:9px}
  .admin-user-summary .admin-user-stat:first-child{grid-column:1/-1}
  .admin-users-toolbar{grid-template-columns:1fr;padding:9px}
  .admin-user-search{grid-column:auto}
  .admin-recent-wrap{margin:9px}
  .admin-recent-user{grid-template-columns:30px 1fr 62px;padding:7px}
  .admin-recent-time,.admin-recent-country{display:none}
  .admin-section-title small{display:none}
}
@media (max-width:680px) {
  .intl-group-list,.intl-group-match-grid{grid-template-columns:1fr}
  .intl-group-table{min-width:0}
  .intl-group-table th:nth-child(n/**/+3),.intl-group-table td:nth-child(n/**/+3){width:24px}
}
@media (max-width:620px) {
  .goal-player-tabs.owner-tabs{grid-template-columns:repeat(2,1fr)}
  .coach-report-grid{grid-template-columns:1fr}
  .owner-form-back{width:100%;margin-left:0}
  .game-page .fixed-global-header .game-header-inner,.compact-game-ui .fixed-global-header .game-header-inner{grid-template-columns:128px 1fr!important;padding:0 7px!important}
  .game-page .fixed-global-header .game-brand{width:128px!important;min-width:128px!important}
  .game-page .fixed-global-header .game-brand img{width:120px!important;max-width:120px!important}
  .game-page .fixed-global-header .game-actions .counter{display:none!important}
  .game-page .fixed-global-header .profile-name{display:none!important}
  .game-page .fixed-global-header .profile-trigger{min-width:44px!important;padding:0 4px!important}
  .game-page .fixed-global-header .chat-action b{display:none}
  .game-page .fixed-global-statusbar .game-statusbar-inner{padding:0 10px!important;gap:10px!important}
  .game-page .fixed-global-statusbar .status-divider,.game-page .fixed-global-statusbar .status-server{display:none!important}
  .game-page .fixed-global-statusbar .status-season,.game-page .fixed-global-statusbar .status-season b,.game-page .fixed-global-statusbar .status-tick,.game-page .fixed-global-statusbar .status-tick span,.game-page .fixed-global-statusbar .status-tick b{font-size:9.5px!important}
  .match-report-shell{width:calc(100% - 16px)}
  .match-report-content{padding:13px 9px 18px}
  .match-report-team-heads{grid-template-columns:1fr}
  .match-report-team-heads>strong{order:-1}
  .match-report-team-heads>a,.match-report-team-heads>a.away{justify-content:center;text-align:center}
  .match-report-grid{gap:14px}
  .match-report-tabs{overflow:auto}
  .match-report-title{font-size:11.5px}
  .match-stat-team-title>a{font-size:16px}
  .investments-grid{grid-template-columns:1fr}
  .investment-card{min-height:0}
  .game-page .fixed-global-header .game-brand img[src*="soccersim-main-logo.png"],.compact-game-ui .fixed-global-header .game-brand img[src*="soccersim-main-logo.png"]{height:45px!important;max-height:45px!important;max-width:120px!important}
  .register-name-grid{grid-template-columns:1fr;gap:0}
  .register-card{width:100%}
  .game-page .fixed-global-header .profile-trigger{min-width:44px!important}
  .game-page .fixed-global-header .game-brand img[src*="soccersim-classic-logo.png"],.compact-game-ui .fixed-global-header .game-brand img[src*="soccersim-classic-logo.png"]{width:124px!important;max-width:124px!important;max-height:46px!important}
  .form-track{gap:7px!important}
  .form-result{flex-basis:22px!important;width:22px!important;min-width:22px!important;max-width:22px!important;height:22px!important;min-height:22px!important;max-height:22px!important;line-height:18px!important}
  .form-track::before{left:16px!important;right:16px!important}
}
@media (max-width:600px) {
  .national-team-title img{width:40px;height:27px}
  .national-team-title h1{font-size:25px}
  .inactive-card-body{padding:10px}
  .inactive-table{min-width:620px}
  .inactive-table-footer{align-items:flex-start;flex-direction:column}
  .inactive-vote-btn{width:100%}
}
@media (max-width:560px) {
  .auth-main{justify-content:flex-start;padding-top:18px}
  .brand img{width:280px}
  .card{padding:23px 18px}
  .card-head h1{font-size:22px}
  .header .brand img{width:170px}
  .avatar{display:none}
  .logout{padding-left:10px;margin-left:4px}
  .server-main-wrap{width:calc(100% - 24px);padding-top:24px}
  .server-row{grid-template-columns:1fr}
  .server-info,.enter-cell{grid-column:1}
  .footer-inner{width:calc(100% - 24px)}
  .countries-main{padding-top:14px}
  .world-map-wrap{height:auto}
  .country-groups{grid-template-columns:1fr;gap:20px}
  .country-group:last-child{grid-column:auto}
  .country-info-banner{font-size:11px}
  .map-pin{width:22px;height:22px;font-size:16px;border-width:2px}
  .map-pin:after{width:8px;height:2px;right:-6px}
}
@media (max-width:520px) {
  .game-brand img{width:142px}
  .game-actions .icon-action{display:none}
  .profile-avatar{width:32px;height:32px}
  .game-statusbar-inner{height:auto;min-height:42px;flex-wrap:wrap;padding:7px 0}
  .system-panel-title{padding:0 14px}
  .system-panel-body{font-size:12px}
  .welcome-title{align-items:center}
  .welcome-options li{grid-template-columns:24px 1fr}
  .important-box{padding:12px}
  .game-footer-inner{display:block}
  .back-top{margin-top:10px;padding-left:0}
  .game-watermark{background-size:230px auto}
}
@media (max-width:480px) {
  .region-map-wrap{height:245px}
  .europe-grid,.south-grid{grid-template-columns:1fr}
  .region-map-wrap{min-height:270px}
  .region-south-america.region-map-wrap{min-height:360px}
  .region-canvas-south-america{width:min(70%,230px)}
  .region-flag-pin{width:12px;height:8px}
  .region-map-canvas > img.region-flag-pin{width:12px!important;height:8px!important;max-width:12px!important;max-height:8px!important}
  .region-north-america.region-map-wrap{min-height:285px;padding:8px}
}

/* Soccersim 1.76 - federation crest remains legible on compact layouts. */
@media (max-width:720px){.national-team-title img.national-team-federation-crest{width:42px;height:42px}}

/* Soccersim 2.20 - tablet/phone navigation only. Mouse/desktop layouts remain unchanged. */
.mobile-nav-quick-actions{display:none}
@media (max-width:1024px), (hover:none) and (pointer:coarse) and (max-width:1366px){
  .game-page .fixed-global-header,
  .compact-game-ui .fixed-global-header{height:64px!important;min-height:64px!important}
  .game-page .fixed-global-header .game-header-inner,
  .compact-game-ui .fixed-global-header .game-header-inner{
    height:64px!important;min-height:64px!important;
    grid-template-columns:minmax(132px,1fr) 46px 56px!important;
    grid-template-rows:64px!important;
    gap:8px!important;padding:0 10px!important;position:relative!important;
  }
  .game-page .fixed-global-header .game-brand,
  .compact-game-ui .fixed-global-header .game-brand{width:150px!important;min-width:132px!important;height:64px!important}
  .game-page .fixed-global-header .game-brand img,
  .compact-game-ui .fixed-global-header .game-brand img{width:144px!important;max-width:144px!important;max-height:54px!important}
  .mobile-nav-toggle{
    display:inline-flex!important;align-items:center;justify-content:center;
    grid-column:2!important;grid-row:1!important;align-self:center;justify-self:end;
    width:44px;height:42px;min-width:44px;padding:0!important;font-size:23px!important;
    border:1px solid rgba(255,255,255,.32)!important;background:rgba(255,255,255,.04)!important;
    color:#fff!important;border-radius:5px!important;touch-action:manipulation;
  }
  .mobile-nav-toggle:active{background:rgba(255,255,255,.13)!important}
  .game-page .fixed-global-header .game-actions,
  .compact-game-ui .fixed-global-header .game-actions{
    grid-column:3!important;grid-row:1!important;height:64px!important;min-width:0!important;
    gap:0!important;padding:0!important;margin:0!important;border-left:0!important;overflow:visible!important;
  }
  .game-page .fixed-global-header .game-actions>.counter,
  .compact-game-ui .fixed-global-header .game-actions>.counter{display:none!important}
  .game-page .fixed-global-header .profile-menu,
  .compact-game-ui .fixed-global-header .profile-menu{height:64px!important;margin:0!important}
  .game-page .fixed-global-header .profile-trigger,
  .compact-game-ui .fixed-global-header .profile-trigger{
    width:52px!important;min-width:52px!important;height:64px!important;min-height:64px!important;
    padding:0 5px!important;justify-content:center!important;gap:3px!important;
  }
  .game-page .fixed-global-header .profile-name,
  .compact-game-ui .fixed-global-header .profile-name{display:none!important}
  .game-page .fixed-global-header .profile-dropdown,
  .compact-game-ui .fixed-global-header .profile-dropdown{
    position:absolute!important;top:64px!important;right:4px!important;left:auto!important;
    width:min(270px,calc(100vw - 12px))!important;min-width:220px!important;max-height:calc(100dvh - 76px)!important;
    overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;z-index:1500!important;
  }
  .game-page .fixed-global-header .game-nav,
  .compact-game-ui .fixed-global-header .game-nav{
    display:none!important;position:absolute!important;left:0!important;right:auto!important;top:64px!important;
    width:min(430px,100vw)!important;min-width:0!important;height:auto!important;max-height:calc(100dvh - 76px)!important;
    overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
    background:#054d27!important;border-top:1px solid rgba(255,255,255,.18)!important;border-right:1px solid rgba(255,255,255,.12)!important;
    box-shadow:0 12px 28px rgba(0,0,0,.34)!important;z-index:1400!important;
    flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:8px!important;
  }
  .game-page .fixed-global-header.mobile-nav-open .game-nav,
  .compact-game-ui .fixed-global-header.mobile-nav-open .game-nav{display:flex!important}
  .mobile-nav-quick-actions{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;
    padding:2px 0 8px;margin-bottom:4px;border-bottom:1px solid rgba(255,255,255,.18);
  }
  .mobile-nav-quick-action{
    min-width:0;min-height:52px;border:1px solid rgba(255,255,255,.17);border-radius:5px;
    background:rgba(255,255,255,.06);color:#fff!important;text-decoration:none!important;
    display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:5px;padding:7px 8px;
    font:600 11px/1.1 "Segoe UI",Arial,sans-serif;cursor:pointer;touch-action:manipulation;
  }
  .mobile-nav-quick-action img{display:block!important;width:20px!important;height:20px!important;max-width:20px!important;object-fit:contain}
  .mobile-nav-quick-action span{overflow:visible;text-overflow:clip;overflow-wrap:anywhere;white-space:normal!important;}
  .mobile-nav-quick-action b{font-size:10.5px;color:#dff4e5}
  .mobile-nav-quick-action:active{background:rgba(255,255,255,.14)}
  .game-page .fixed-global-header .game-nav>.nav-menu,
  .compact-game-ui .fixed-global-header .game-nav>.nav-menu{
    width:100%!important;min-width:0!important;height:auto!important;display:block!important;border-bottom:1px solid rgba(255,255,255,.10);
  }
  .game-page .fixed-global-header .nav-trigger,
  .compact-game-ui .fixed-global-header .nav-trigger,
  .game-page .fixed-global-header .nav-search,
  .compact-game-ui .fixed-global-header .nav-search{
    width:100%!important;min-width:0!important;height:48px!important;min-height:48px!important;
    padding:0 12px!important;justify-content:space-between!important;font-size:13px!important;touch-action:manipulation;
  }
  .game-page .fixed-global-header .nav-menu.open>.nav-trigger .chev,
  .compact-game-ui .fixed-global-header .nav-menu.open>.nav-trigger .chev{transform:rotate(180deg)}
  .game-page .fixed-global-header .chev,.compact-game-ui .fixed-global-header .chev{transition:transform .14s ease}
  .game-page .fixed-global-header .nav-dropdown,
  .compact-game-ui .fixed-global-header .nav-dropdown{
    position:static!important;top:auto!important;left:auto!important;right:auto!important;
    width:100%!important;min-width:0!important;max-width:none!important;max-height:none!important;
    margin:0!important;padding:4px 5px 7px!important;border:0!important;border-radius:0!important;
    box-shadow:none!important;background:#fff!important;overflow:visible!important;
  }
  .game-page .fixed-global-header .nav-drop-item,
  .compact-game-ui .fixed-global-header .nav-drop-item{
    min-height:44px!important;padding:10px 12px!important;display:flex!important;align-items:center!important;font-size:13px!important;line-height:1.25!important;
    touch-action:manipulation;
  }
  .game-page .fixed-global-header .nav-drop-heading,
  .compact-game-ui .fixed-global-header .nav-drop-heading{padding:9px 12px 5px!important}
  .game-page .fixed-global-header .nav-search,
  .compact-game-ui .fixed-global-header .nav-search{justify-content:flex-start!important;gap:9px!important;border-bottom:0!important}
  .game-page .fixed-global-statusbar .game-statusbar-inner,
  .compact-game-ui .fixed-global-statusbar .game-statusbar-inner{padding:0 12px!important;gap:12px!important;overflow:hidden!important}
}

@media (max-width:820px){
  /* Neutralize the old large mobile top spacer; the responsive header is in normal document flow. */
  .game-page .game-main{padding-top:24px!important}
}

@media (max-width:600px){
  .game-page .fixed-global-header,
  .compact-game-ui .fixed-global-header{height:58px!important;min-height:58px!important}
  .game-page .fixed-global-header .game-header-inner,
  .compact-game-ui .fixed-global-header .game-header-inner{
    height:58px!important;min-height:58px!important;grid-template-columns:minmax(108px,1fr) 44px 50px!important;grid-template-rows:58px!important;
    gap:6px!important;padding:0 7px!important;
  }
  .game-page .fixed-global-header .game-brand,
  .compact-game-ui .fixed-global-header .game-brand{width:126px!important;min-width:108px!important;height:58px!important}
  .game-page .fixed-global-header .game-brand img,
  .compact-game-ui .fixed-global-header .game-brand img{width:120px!important;max-width:120px!important;max-height:48px!important}
  .mobile-nav-toggle{width:42px!important;height:40px!important;min-width:42px!important;font-size:22px!important}
  .game-page .fixed-global-header .profile-menu,
  .compact-game-ui .fixed-global-header .profile-menu{height:58px!important}
  .game-page .fixed-global-header .profile-trigger,
  .compact-game-ui .fixed-global-header .profile-trigger{width:48px!important;min-width:48px!important;height:58px!important;min-height:58px!important;padding:0 3px!important}
  .game-page .fixed-global-header .game-nav,
  .compact-game-ui .fixed-global-header .game-nav{top:58px!important;left:0!important;right:0!important;width:100vw!important;max-height:calc(100dvh - 66px)!important;border-right:0!important;padding:7px!important}
  .game-page .fixed-global-header .profile-dropdown,
  .compact-game-ui .fixed-global-header .profile-dropdown{top:58px!important;right:3px!important}
  .game-page .fixed-global-statusbar .game-statusbar-inner,
  .compact-game-ui .fixed-global-statusbar .game-statusbar-inner{padding:0 8px!important;gap:8px!important}
  .game-page .fixed-global-statusbar .status-server,
  .compact-game-ui .fixed-global-statusbar .status-server{display:none!important}
  .game-page .fixed-global-statusbar .status-divider,
  .compact-game-ui .fixed-global-statusbar .status-divider{display:none!important}
  .game-page .fixed-global-statusbar .status-tick span,
  .compact-game-ui .fixed-global-statusbar .status-tick span{display:none!important}
  .mobile-nav-quick-actions{gap:5px}
  .mobile-nav-quick-action{grid-template-columns:20px minmax(0,1fr);grid-template-rows:auto auto;min-height:56px;padding:6px 7px}
  .mobile-nav-quick-action img{grid-row:1/3}
  .mobile-nav-quick-action b{grid-column:2;font-size:10px}
}

@media (max-width:380px){
  .game-page .fixed-global-header .game-brand img,
  .compact-game-ui .fixed-global-header .game-brand img{width:108px!important;max-width:108px!important}
  .mobile-nav-quick-action span{font-size:10px}
}

/* Soccersim 2.99 - mobile/tablet Matches + ServerOne lobby only. */\n.server-free-teams-stat #serverFreeTeams{\n  display:inline-grid!important;\n  grid-template-columns:auto auto auto;\n  align-items:baseline;\n  justify-content:center;\n  gap:6px;\n  white-space:nowrap!important;\n}\n.server-free-team-count{display:inline-block;min-width:1ch;text-align:center;}\n.server-free-team-separator{display:inline-block;color:#7b857f;font-weight:500;}\n\n@media(max-width:900px){\n  .server-main-wrap{width:min(100% - 24px,760px)!important;padding:22px 0 24px!important;}\n  .server-title{margin-bottom:18px!important;}\n  .server-title h1{font-size:clamp(27px,7vw,36px)!important;line-height:1.08!important;}\n  .server-title p{font-size:14px!important;line-height:1.45!important;padding:0 8px!important;}\n  .server-card{overflow:visible!important;}\n  .server-head{display:none!important;}\n  .server-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;padding:0!important;min-height:0!important;}\n  .server-info{grid-column:1/-1!important;padding:18px 18px 14px!important;border-bottom:1px solid #e2e8e4!important;}\n  .server-row .stat{min-width:0!important;padding:13px 12px!important;border-bottom:1px solid #e7ece8!important;text-align:left!important;}\n  .server-row .stat:nth-of-type(even){border-left:1px solid #e7ece8!important;}\n  .server-row .stat::before{content:attr(data-label);display:block;margin-bottom:5px;color:#77817b;font-size:10px;font-weight:800;letter-spacing:.03em;}\n  .server-row .stat>b,.server-row .stat #serverFreeTeams{font-size:14px!important;}\n  .server-tick-stat{grid-column:1/-1!important;border-left:0!important;}\n  .server-countdown{justify-content:flex-start!important;}\n  .server-simulation-progress{width:min(100%,250px)!important;}\n  .server-free-teams-stat{display:block!important;text-align:left!important;justify-content:start!important;}\n  .server-free-teams-stat #serverFreeTeams{justify-content:start!important;gap:7px!important;}\n  .enter-cell{grid-column:1/-1!important;padding:14px 18px 18px!important;}\n  .enter-cell .enter{width:100%!important;min-height:44px!important;font-size:13px!important;}\n  .server-manager-notice{max-width:100%!important;margin-top:18px!important;padding:16px!important;}\n\n  .goal-team-matches-card{padding-bottom:12px!important;}\n  .goal-team-matches-card .team-card-title{padding-left:14px!important;padding-right:14px!important;}\n  .goal-team-matches-card .match-season-tools{padding-left:14px!important;padding-right:14px!important;}\n  .goal-match-table-wrap{padding:0 12px 6px!important;overflow:visible!important;}\n  .goal-match-table.single-result-table{display:block!important;min-width:0!important;width:100%!important;font-size:13px!important;}\n  .goal-match-table.single-result-table colgroup,.goal-match-table.single-result-table thead{display:none!important;}\n  .goal-match-table.single-result-table tbody{display:grid!important;gap:12px!important;width:100%!important;}\n  .goal-match-table.single-result-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;grid-template-areas:\n    "turn turn turn"\n    "home score away"\n    "result result result"\n    "competition competition report"!important;align-items:center!important;gap:8px 10px!important;padding:12px!important;border:1px solid #dfe6e1!important;border-radius:8px!important;background:#fff!important;box-shadow:0 3px 10px rgba(30,54,38,.04)!important;}\n  .goal-match-table.single-result-table td{display:block!important;height:auto!important;min-width:0!important;padding:0!important;border:0!important;white-space:normal!important;}\n  .goal-match-table.single-result-table .turn-cell{grid-area:turn!important;color:#727d76!important;font-size:11px!important;font-weight:700!important;}\n  .goal-match-table.single-result-table .turn-cell::before{content:"TURN ";font-size:10px;color:#89928c;}\n  .goal-match-table.single-result-table .home-cell{grid-area:home!important;text-align:left!important;}\n  .goal-match-table.single-result-table .score-cell{grid-area:score!important;min-width:46px!important;padding:6px 8px!important;border-radius:5px!important;background:#f3f6f4!important;font-size:14px!important;font-weight:700!important;text-align:center!important;}\n  .goal-match-table.single-result-table .away-cell{grid-area:away!important;text-align:right!important;}\n  .goal-match-table.single-result-table .result-cell{grid-area:result!important;text-align:center!important;}\n  .goal-match-table.single-result-table .competition-cell{grid-area:competition!important;font-size:12px!important;color:#5c675f!important;}\n  .goal-match-table.single-result-table .competition-cell::before{content:"Competition: ";font-weight:700;color:#37423b;}\n  .goal-match-table.single-result-table .match-statistics-cell{grid-area:report!important;text-align:right!important;font-size:12px!important;}\n  .goal-match-table.single-result-table .home-cell .match-team-inline,.goal-match-table.single-result-table .away-cell .match-team-inline{display:flex!important;width:100%!important;max-width:100%!important;min-width:0!important;gap:5px!important;}\n  .goal-match-table.single-result-table .home-cell .match-team-inline{justify-content:flex-start!important;text-align:left!important;}\n  .goal-match-table.single-result-table .away-cell .match-team-inline{justify-content:flex-end!important;text-align:right!important;}\n  .goal-match-table.single-result-table .match-team-name{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.25!important;}\n}\n\n@media(max-width:520px){\n  .server-main-wrap{width:calc(100% - 20px)!important;padding-top:18px!important;}\n  .server-row{grid-template-columns:1fr 1fr!important;}\n  .server-info{padding:16px 14px 13px!important;}\n  .server-row .stat{padding:12px 10px!important;}\n  .server-free-teams-stat #serverFreeTeams{font-size:14px!important;gap:5px!important;}\n  .goal-match-table.single-result-table tr{grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr)!important;gap:7px 6px!important;padding:11px 9px!important;}\n  .goal-match-table.single-result-table .home-cell,.goal-match-table.single-result-table .away-cell{font-size:12px!important;}\n  .goal-match-table.single-result-table .competition-cell{font-size:11px!important;}\n}\n