/* Use the same hierarchy for page titles, section titles and working surfaces. */
.main-shell {
    --section-line:#82b0c32b;
    --section-muted:#adc4d2;
    --section-inset:#0b1d2b;
}
.game-nav .nav-item { position:relative; }
.game-nav .nav-item.active::after {
    content:'';
    position:absolute;
    inset:auto 21% 0;
    height:2px;
    border-radius:2px;
    background:#d4fb66;
}
:is(.page-heading,.hub-title,.creation-heading) h1 { line-height:1.08; overflow-wrap:anywhere; }
.main-shell main :is(.page-heading,.hub-title) {
    background:linear-gradient(90deg,#8fc9de45,transparent 82%) left bottom/100% 1px no-repeat;
    padding-bottom:8px;
}
.main-shell .section-heading { gap:10px; margin-bottom:14px; }
.main-shell .section-heading h3 { font-size:13px; letter-spacing:.09em; line-height:1.3; }
.main-shell .empty-state { padding:21px 16px; gap:8px; border-style:solid; border-color:var(--section-line); background:#0a1d2b77; color:var(--section-muted); }
.main-shell .empty-state>svg { width:29px; height:29px; margin:0; color:#8db7ca; }
.main-shell .empty-state>h3 { font-size:15px; color:#e1edf5; }

/* Career and development */
.match-console .console-head { min-width:0; }
.match-console .match-stage .versus { background:#101f2dbb; border:1px solid #a5c7dd40; border-radius:50%; }
.hub-objectives .hub-task { border-color:#86adc52c; }
.hub-objectives .hub-task:nth-child(even) { background:#122b3c77; }
.training-week-screen .training-card {
    background:radial-gradient(ellipse at 0 0,#30546e55,transparent 75%),linear-gradient(145deg,#142b3e,#0e2130);
    border-color:#3b5c70;
}
.training-week-screen .training-card.recovery { background:radial-gradient(ellipse at 0 0,#4d7e5a45,transparent 70%),#112b2f; }
.training-week-screen .training-card.plan-training { border-color:#9ec25c; }
.training-week-screen .training-card:disabled { opacity:.78; }
.training-week-screen .training-cost { padding:4px 6px; border-radius:5px; background:#081a26ad; color:#e3ba9c; font-variant-numeric:tabular-nums; }
.training-week-screen .training-cost.positive { color:#d5f292; }
.training-week-screen .training-targets b { color:#e6f1f8; font-variant-numeric:tabular-nums; }
.training-week-screen .training-bottom { color:#cfe8a8; }
.training-week-screen .training-card:disabled .training-bottom { color:#a2b1bb; }

/* Competition navigation and table reading. */
.tournament-page-tabs {
    width:fit-content;
    max-width:100%;
    margin-bottom:16px;
    gap:4px;
    padding:4px;
    border:1px solid var(--section-line);
    border-radius:10px;
    background:var(--section-inset);
}
.tournament-page-tabs .btn { min-height:38px; border-radius:6px; box-shadow:none; }
.tournament-page-tabs .btn.secondary { background:transparent; border-color:transparent; color:var(--section-muted); }
.tournament-page-tabs .btn.secondary:hover { background:#183447; color:#eef7fc; }
.competition-tabs { gap:7px; }
.competition-tabs .btn { box-shadow:none; }
.competition-tabs .btn.secondary { background:#142c3e; border-color:#36586d; }
.banner-calendar h2 { word-break:normal; overflow-wrap:normal; hyphens:auto; }
.banner-calendar .banner-visual>svg { visibility:hidden; }
.table-scroll { border-top:1px solid var(--section-line); }
.table-scroll table { font-variant-numeric:tabular-nums; }
.table-scroll thead th { background:#0d1e2c; color:#b2ccdc; letter-spacing:.045em; }
.table-scroll tbody tr:nth-child(even):not(.your-team) { background-color:#6083980d; }
.table-scroll td.points { color:#e9f4fc; }
.table-scroll .your-team td.points { color:var(--lime); }
.table-scroll td.team-cell { display:table-cell; }
.table-scroll .team-cell .club-badge { display:inline-flex; vertical-align:middle; margin-right:7px; }
.table-scroll .team-cell button { max-width:calc(100% - 32px); vertical-align:middle; line-height:1.25; }
.fixtures-panel .fixture-row,.fixtures-panel .history-row { padding-inline:6px; }
.fixtures-panel .fixture-row .fixture-round { font-variant-numeric:tabular-nums; }
.fixtures-panel :is(.fixture-row,.history-row) small { color:#a8bfce; }
.fixtures-panel .history-row>strong { padding:4px 7px; border-radius:5px; background:#17354a; font-variant-numeric:tabular-nums; }
.iv42-group .national-table-scroll { border:1px solid var(--section-line); border-radius:7px; }
.iv42-group thead th { color:#b2ccdc; background:#0d1e2c; }

/* Squad and transfer pages. */
.squad-toolbar {
    padding:12px 15px;
    border:1px solid var(--section-line);
    border-radius:10px;
    background:linear-gradient(125deg,#142e41,#0e2030);
}
.squad-toolbar .team-overall { padding:6px 10px; border-radius:7px; background:#0b1e2b; }
.squad-toolbar .team-overall>b { flex-direction:row; align-items:baseline; gap:5px; font-size:25px; }
.squad-role { padding-block:13px; border-left:2px solid #a8d270; }
.squad-role>b { color:#d5ec9f; }
.squad-role>span { color:var(--section-muted); }
.transfer-market-status { border-left:2px solid #77afcb; }
.transfer-summary .metric { min-width:0; }
.transfer-summary .metric>b { overflow-wrap:anywhere; }
.transfer-empty { min-height:132px; }
.transfer-empty>span { color:var(--section-muted); }
.offer-identity>div { min-width:0; }
.offer-identity h3 { overflow-wrap:anywhere; }
.offer-details { font-variant-numeric:tabular-nums; }

/* Player, assets and career creation. */
.profile-layout .stats-season { border-top:2px solid #8fba56; }
.profile-layout .stats-career { border-top:2px solid #4b839f; }
.profile-layout .stat-tile { background:linear-gradient(155deg,#1e3c53,#0c2235); }
.profile-layout .stat-tile>b { font-variant-numeric:tabular-nums; }
.profile-layout .stat-tile .stat-label { color:#b5ccd9; }
.trophy-cabinet .trophy-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,165px),1fr)); gap:11px; }
.trophy-cabinet .trophy-card { justify-content:center; min-height:160px; padding:13px 9px; background:radial-gradient(ellipse at 50% 40%,#31536178,transparent 65%),#112836; }
.trophy-cabinet .trophy-card>b { font-size:13px; line-height:1.3; overflow-wrap:anywhere; }
.trophy-cabinet .trophy-card .real-trophy { width:80px; height:106px; margin:0; }
.life-catalog .life-item { border-color:#486a7d; }
.life-item-image { background:radial-gradient(ellipse at 50% 75%,#447f8b66,transparent 72%),linear-gradient(155deg,#1f4157,#0e2030); }
.life-active-asset.is-empty img { opacity:.43; }
.setup-panel .steps { gap:5px; }
.setup-panel .step { border-radius:7px; }
.setup-panel .step.current { box-shadow:inset 0 -2px 0 #c8f460; }
.setup-panel .wizard-footer { border-top-color:#81aec339; }
.setup-layout[data-step="0"] .form-grid>label { padding-block:3px; }
.setup-panel .academy-option:hover:not(.selected) { border-color:#6b8fa6; }

/* Match and account dialogs share clear primary and secondary actions. */
.modal-preview>.modal-footer .rewarded-simulation {
    background:linear-gradient(150deg,#25455b,#142d40);
    border-color:#547c93;
    box-shadow:none;
    color:#e5f1f9;
}
.modal-preview>.modal-footer .rewarded-simulation:hover:not(:disabled) { background:#315771; border-color:#83b2c9; }
.modal-preview .rewarded-simulation small { color:#adcede; }
.btn[data-ad-blocked]:disabled { opacity:1; }
.btn[data-ad-blocked]:disabled :is([data-rewarded-label],[data-recovery-label],[data-coin-ad-label]) { color:#ffcf86; }
.modal-preview .preview-conditions { border-radius:6px; }
.modal-preview .pregame-lineups { border-radius:7px; }
.modal-preview .pregame-lineups>summary { color:#d1e3ee; }
.live-match-modal .live-score-center { font-variant-numeric:tabular-nums; }
.live-match-modal .speed-controls button.selected { border-color:#b6d85a; background:#294032; }
.live-match-modal .match-commentary { background:#0d1f2e; }
.live-match-modal .action-options button:hover { border-color:#86acbc; }
.modal-result :is(.result-stats,.result-performance) { border-color:#436378; }
.modal-result .result-events-heading { border-bottom-color:#4d7289; }
.modal-result .result-gains { background:#102738; border-radius:7px; }
.modal-wallet .wallet-balance { justify-content:flex-start; padding:13px 14px; border:1px solid #8fbc6047; border-radius:9px; background:linear-gradient(110deg,#254337,#152e3e); }
.modal-wallet .coin-ad-offer { border-color:#567b91; }
.modal-settings .settings-list { gap:12px; margin-top:17px; }
.modal-settings .settings-list>div { gap:12px; padding-block:12px; }
.modal-settings .settings-list>label .game-select { width:100%; }
.modal-slots .save-slot { border-radius:8px; background:linear-gradient(150deg,#183649,#102332); }
.modal-slots .save-slot.active-slot { border-color:#9ebc66; }
.modal-squad-player .player-rating-large { display:flex; align-items:baseline; gap:8px; padding:10px 14px; border:1px solid #88aa5752; border-radius:8px; background:linear-gradient(100deg,#244236,#152d3e); }
.modal-squad-player .full-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 22px; }

@media (min-height:651px) {
    .modal.modal-preview:not(:has(.pregame-lineups[open])) { height:auto; }
}
@media (max-width:700px) and (min-height:730px) {
    .modal.modal-result { height:auto; }
    .modal-result .result-events { max-height:185px; }
}
@media (max-width:700px) {
    .game-nav .nav-item.active::after { inset:0 26% auto; }
    .main-shell main :is(.page-heading,.hub-title) { padding-bottom:6px; }
    .tournament-page-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; overflow:visible; }
    .tournament-page-tabs .btn { min-height:40px; padding:6px 5px; white-space:normal; }
    .competition-tabs { flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; padding:2px 2px 7px; margin-bottom:13px; }
    .competition-tabs .btn { min-height:40px; }
    .football-banner.banner-calendar h2 { font-size:clamp(17px,5.35vw,29px); letter-spacing:.01em; }
    .table-scroll table:has(.team-cell) { min-width:470px; }
    .table-scroll .roster-table { min-width:655px; }
    .table-scroll :is(table:has(.team-cell),.roster-table) tr>:nth-child(2) { position:sticky; left:0; z-index:1; background:#132b3d; box-shadow:1px 0 #5b809250; }
    .table-scroll :is(table:has(.team-cell),.roster-table) thead tr>:nth-child(2) { background:#0d1e2c; }
    .table-scroll :is(table:has(.team-cell),.roster-table) tr.your-team>:nth-child(2) { background:#233b35; }
    .table-scroll .team-cell button,.table-scroll .roster-table button>b { font-size:12px; }
    .squad-toolbar .squad-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .squad-toolbar .squad-filters .game-select { min-width:0; width:100%; }
    .squad-toolbar .squad-filters .game-select-trigger { padding-inline:8px; }
    .squad-toolbar .squad-filters .game-select-value { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; white-space:normal; line-height:1.2; }
    .transfer-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .transfer-summary>*:first-child { grid-column:1/-1; }
    .transfer-summary .metric>b { font-size:clamp(18px,6vw,30px); }
    .profile-layout .player-card { display:grid; grid-template-columns:minmax(75px,.75fr) minmax(0,1.25fr); gap:5px 10px; padding-top:12px; }
    .profile-layout .player-card-top { grid-column:2; grid-row:1; padding:0; }
    .profile-layout .player-visual { grid-column:1; grid-row:1/4; height:106px; min-width:0; }
    .profile-layout .player-visual .player-portrait { width:100%; height:108px; }
    .profile-layout .player-name,.profile-layout .player-subtitle { grid-column:2; margin:0; text-align:left; }
    .profile-layout .player-name { grid-row:2; font-size:clamp(15px,5vw,23px); overflow-wrap:anywhere; }
    .profile-layout .player-subtitle { grid-row:3; align-self:start; justify-content:flex-start; }
    .profile-layout .card-stats { grid-column:1/-1; margin:3px 0 6px; }
    .profile-layout .player-card-footer { grid-column:1/-1; }
    .trophy-cabinet .trophy-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,128px),1fr)); }
    .modal-preview .preview-teams { margin-block:9px; }
    .modal-preview .preview-conditions { margin-block:9px; padding-block:7px; }
    .modal-preview .pregame-lineups { margin-block:8px 0; }
}
@media (max-width:420px) {
    .modal-squad-player .full-stats { gap:11px 12px; }
    .modal-preview>.mode-grid>.mode-card { min-height:76px; padding:10px; }
    .modal-preview>.roster-dialog-tools { margin-bottom:0; }
}
@media (max-width:350px) {
    .squad-toolbar .squad-filters { grid-template-columns:1fr; }
}
