/* 2026/27 Nations League */
.competition-folder-nations-league {
  --folder-glow: rgba(95, 193, 255, .2);
  background: #164f86 !important;
  border-color: rgba(168, 217, 249, .36) !important;
}
.competition-folder-nations-league .competition-folder-art img,
.competition-edition-nations-league .competition-edition-art img {
  max-height: 104px;
  max-width: 130px;
  object-fit: contain;
  filter: drop-shadow(0 13px 25px rgba(0, 0, 0, .4));
}
.competition-folder-nations-league .competition-folder-art { overflow: hidden; }
.competition-folder-nations-league .competition-folder-art img {
  position: absolute;
  top: -11%;
  left: -9%;
  width: 120%;
  height: auto;
  max-width: none;
  max-height: none;
}
.competition-edition-nations-league {
  background: #164f86 !important;
}
body.nations-league-mode-active { background: #071a3b !important; }
body.nations-league-hub-active #appShell { display: none !important; }
#nationsLeagueScreen[hidden] { display: none !important; }
#nationsLeagueScreen {
  --nl-bg: #071729;
  --nl-card: #0e263e;
  --nl-card-2: #102d4b;
  --nl-border: rgba(118, 166, 206, .22);
  --nl-muted: #b2c5d8;
  --nl-text: #f5f8fb;
  --nl-blue: #2d9be8;
  --nl-yellow: #ffcf2d;
  position: relative;
  z-index: 6;
  min-height: 100vh;
  color: var(--nl-text);
  color-scheme: dark;
  background: radial-gradient(ellipse at 77% -12%, #164a88 0, transparent 57%), #092452;
  font-family: Manrope, Arial, sans-serif;
}
#nationsLeagueScreen *,
#nationsLeagueScreen *::before,
#nationsLeagueScreen *::after { box-sizing: border-box; }
#nationsLeagueScreen button,
#nationsLeagueDialog button { font-family: inherit; cursor: pointer; }
#nationsLeagueScreen button:disabled { cursor: not-allowed; opacity: .46; }
#nationsLeagueScreen a { color: #9fddff; }
#nationsLeagueScreen :focus-visible,
#nationsLeagueDialog :focus-visible { outline: 3px solid var(--nl-yellow, #ffcf2d); outline-offset: 3px; }
.nl-topbar {
  min-height: 68px;
  height: 68px;
  padding: 0 clamp(18px, 3vw, 44px);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #9bb9e044;
  background: #081b42;
}
.nl-site-link { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.nl-topbar .brand-mark { display: grid; align-content: center; justify-items: center; width: 44px; height: 46px; border: 1px solid #fff7; border-radius: 12px; background: linear-gradient(#f5f9ff,#bbd4f0); box-shadow: 0 2px 0 #04102c99; color: #122f60; }
.nl-topbar .brand-mark-number { font-size: 15px; line-height: 1; }
.nl-topbar .brand-mark-label { margin-top: 3px; font-size: 6px; letter-spacing: .04em; }
.nl-header-left, .nl-top-actions { display: flex; align-items: center; gap: 6px; }
.nl-top-actions { margin-left: auto; }
.nl-topbar .nl-utility { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 42px; min-height: 42px; padding: 0 11px; border: 1px solid #a9c4e652; border-radius: 50%; color: #e1edff; background: #0a285b; font: 800 12px Manrope, Arial, sans-serif; }
.nl-topbar .nl-utility > span:last-child { display: none; }
.nl-topbar .nl-utility:hover { background: #174b8e; color: #fff; }
.nl-topbar .nl-account { border-radius: 24px; padding-inline: 13px; }
.nl-topbar .nl-account > span:last-child { display: inline; }
.nl-topbar .news-icon { display: block; }
.nl-topbar .account-avatar-icon { display: inline-flex; width: 18px; height: 18px; }
.nl-topbar .account-avatar-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nl-main { max-width: 1440px; margin: auto; padding: 32px clamp(20px, 4vw, 52px) 80px; }
.nl-main.nl-setup-main { width: min(1080px, calc(100% - 36px)); padding: 18px 0 70px; }
.nl-main h1,
.nl-main h2,
.nl-main p { margin-top: 0; }
.nl-main h1 { font-size: clamp(30px, 4.3vw, 57px); line-height: 1.05; letter-spacing: -.045em; }
.nl-main h2 { font-size: clamp(18px, 2vw, 24px); line-height: 1.2; letter-spacing: -.025em; }
.nl-main p { color: var(--nl-muted); line-height: 1.55; }
.nl-main button,
.nl-dialog-content button { transition: background-color 160ms ease, border-color 160ms ease, transform 130ms cubic-bezier(.23,1,.32,1); }
.nl-main button:active,
.nl-dialog-content button:active { transform: scale(.97); }
.nl-season-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: clamp(25px, 5vw, 76px);
  min-height: 256px;
  padding: 32px clamp(24px, 5vw, 65px);
  border: 1px solid rgba(115, 175, 222, .27);
  border-radius: 24px;
  background: linear-gradient(112deg, rgba(12, 46, 76, .93), rgba(5, 24, 43, .98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
}
.nl-season-hero::before {
  content: "";
  position: absolute;
  right: -9%;
  top: -58%;
  width: 48%;
  aspect-ratio: 1;
  transform: rotate(24deg);
  background: conic-gradient(from 20deg, rgba(255,207,45,.19) 0 19%, rgba(226,41,60,.15) 19% 39%, rgba(5,171,104,.16) 39% 63%, rgba(42,146,224,.21) 63% 82%, transparent 82%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  pointer-events: none;
}
.nl-season-hero > * { position: relative; z-index: 1; }
.nl-setup { width: 100%; margin: auto; }
.nl-setup-heading { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40px; margin-bottom: 14px; }
.nl-setup-title { display: flex; align-items: center; justify-content: center; gap: 14px; }
.nl-logo-mark { display: block; flex: none; width: 36px; height: 36px; overflow: hidden; }
.nl-logo-mark img { display: block; width: 36px; height: auto; max-width: none; }
.nl-setup-heading h1 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.65px; }
.nl-setup-back { position: absolute; left: 0; display: inline-flex; align-items: center; gap: 9px; width: max-content; min-height: 40px; padding: 0 13px; border: 1px solid #afc7ed70; border-radius: 5px; color: #fff !important; background: #0b2b61; font: 800 10px Manrope, Arial, sans-serif; white-space: nowrap; text-decoration: none; }
.nl-setup-back > span:first-child { font-size: 19px; }
.nl-setup-back:hover { background: #17498d; }
.nl-setup-panel { padding: 18px; border: 1px solid #a3bfe383; border-radius: 12px; background: linear-gradient(145deg, #214e8f, #10346f 58%, #0d2b60); box-shadow: inset 0 1px #fff2, 0 18px 40px #02133145; }
.nl-setup-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.nl-setting { min-width: 0; padding: 12px; border: 1px solid #a9c4e65c; border-radius: 9px; background: linear-gradient(145deg, #2b5b9b, #183d7c); }
.nl-setting h2 { margin: 0; font-size: 11px; line-height: 1.4; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.nl-panel,
.nl-group-card,
.nl-knockout-round,
.nl-view { border: 1px solid var(--nl-border); border-radius: 19px; background: rgba(13, 38, 62, .87); }
.nl-segmented,
.nl-league-tabs { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid #a9c4e65c; border-radius: 7px; background: #0b2c64; }
.nl-segmented { min-height: 40px; margin-top: 16px; }
.nl-segmented button,
.nl-league-tabs button { flex: 1; min-width: 72px; padding: 6px; border: 0; border-radius: 5px; background: transparent; color: #e4eeff; font-weight: 700; font-size: 11px; }
.nl-segmented button.active { color: #102f65; background: linear-gradient(115deg, #eaf5ff, #bcdaf8); box-shadow: 0 1px 2px #061b453d; }
.nl-league-tabs button.active { color: #061827; background: var(--nl-yellow); }
.nl-segmented button:not(.active):hover,
.nl-league-tabs button:not(.active):hover { background: rgba(255,255,255,.09); }
.nl-pick-section { padding: 12px; border: 1px solid #a9c4e65c; border-radius: 9px; background: linear-gradient(145deg, #2b5b9b, #183d7c); }
.nl-picker-heading h2 { margin: 0; font-size: 11px; line-height: 1.4; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.nl-picker-toolbar { display: flex; min-height: 38px; align-items: center; flex-wrap: wrap; gap: 12px; margin: 14px 0 12px; }
#nlTeamCount { margin-left: auto; color: #d8e8ff; font-size: 10px; font-weight: 700; white-space: nowrap; }
.nl-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.nl-section-head h2 { margin-bottom: 11px; }
.nl-section-head > span,
.nl-section-head > p { color: var(--nl-muted); font-size: 13px; text-align: right; }
.nl-section-head button:not(.nl-neutral) { border: 0; background: transparent; color: #a6dcff; font-weight: 750; }
.nl-neutral { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 13px; border: 1px solid #b4cae567; border-radius: 999px; color: #fff; background: #0e3371; font-size: 10px; font-weight: 800; }
.nl-neutral.active { border-color: #d9e9ff; color: #102f65; background: linear-gradient(115deg, #eaf5ff, #bcdaf8); box-shadow: inset 0 1px #fff5, 0 2px 0 #061a4199; }
.nl-filter-check { display: grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid transparent; border-radius: 50%; visibility: hidden; font-size: 11px; }
.nl-neutral.active .nl-filter-check { visibility: visible; border-color: currentColor; }
.nl-picker-tools { display: grid; grid-template-columns: minmax(0,1fr) 190px; align-items: center; gap: 10px; margin: 0 0 12px; }
.nl-picker-tools .sr-only,
#nationsLeagueScreen .nl-search .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nl-league-tabs { margin: 18px 0 13px; max-width: 510px; }
.nl-search { display: block; margin: 12px 0; }
.nl-picker-tools .nl-search { margin: 0; }
.nl-search input,
.nl-picker-filter select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid #b5c9e169; border-radius: 6px; color: #fff; background: #0b2c64; outline-offset: 2px; font: 500 12px Manrope, Arial, sans-serif; }
.nl-search input::placeholder { color: #b6d1ee; }
.nl-search input:focus,
.nl-picker-filter select:focus { border-color: var(--nl-blue); box-shadow: 0 0 0 3px rgba(45,155,232,.17); }
.nl-team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-content: start; gap: 8px; height: 312px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #93b9eb #153a78; }
.nl-team-grid > .nl-empty { grid-column: 1 / -1; }
.nl-team-option { position: relative; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 9px; min-width: 0; min-height: 72px; padding: 9px; border: 1px solid #bdd0e768; border-radius: 7px; color: #fff; text-align: left; background: linear-gradient(145deg, #3567a6, #1b4688); }
.nl-team-option:hover { border-color: #e2edff; background: #356bab; }
.nl-team-option.selected { border-color: #e8f3ff; color: #102f65; background: linear-gradient(115deg, #eaf5ff, #bcdaf8); box-shadow: inset 0 1px #fff5, 0 2px 0 #081d4999; }
.nl-team-option > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.nl-team-option strong { font-size: 10px; line-height: 1.25; font-weight: 800; letter-spacing: -.1px; overflow-wrap: anywhere; }
.nl-team-option small { color: #dceaff; font-size: 8px; line-height: 1.4; }
.nl-team-option.selected small { color: #234779; }
.nl-team-check { position: absolute; top: 5px; right: 7px; font-weight: 900; }
.nl-flag { position: relative; display: inline-flex; justify-content: center; align-items: center; flex: none; width: 32px; height: 23px; min-width: 32px; line-height: 1; font-size: 22px; vertical-align: middle; }
.nl-flag-fallback { display: inline-block; line-height: 1; }
.nl-flag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 1px solid #fff5; border-radius: 4px; box-shadow: 0 1px 3px #071a3b55; }
.nl-flag img[hidden] { display: none; }
.nl-selection { min-height: 49px; margin: 12px 0 0 !important; padding-top: 10px; border-top: 1px solid #a9c4e65c; color: #fff !important; font-size: 11px; line-height: 1.5; }
.nl-selection strong { color: #fff; }
.nl-selection small { display: block; margin-top: 3px; color: #dceaff; font-size: 10px; line-height: 1.5; }
.nl-setup-actions,
.nl-stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 20px; }
.nl-setup-actions { margin-top: 10px; }
.nl-setup-actions .nl-primary { min-width: 220px; color: #fff; border-color: #81b3ee; background: #2467bd; box-shadow: inset 0 1px #fff3, 0 3px 0 #071a41; }
.nl-setup-actions .nl-primary:hover { background: #347bd2; }
.nl-button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: 10px; font-weight: 850 !important; font-size: 14px !important; text-decoration: none; }
.nl-setup-actions .nl-button { min-height: 44px; border-radius: 6px; font-size: 12px !important; }
.nl-primary { color: #061826; background: var(--nl-yellow, #ffcf2d); }
.nl-primary:hover { background: #ffdf63; }
.nl-secondary { border-color: var(--nl-border); color: #fff; background: #163552; }
.nl-secondary:hover { background: #1d4469; }
.nl-sources { margin-top: 20px; padding: 0; border: 0; background: none; color: #c9ddf5; font-size: 11px; line-height: 1.8; }
.nl-sources summary { cursor: pointer; color: #f2f7ff; font-weight: 700; }
.nl-sources p { margin: 12px 0 0; }
.nl-season-hero { min-height: 170px; padding-top: 20px; padding-bottom: 20px; justify-content: space-between; }
.nl-season-hero h1 { margin-bottom: 8px; font-size: clamp(29px, 3.6vw, 48px); }
.nl-season-hero p { margin: 0; }
.nl-season-hero img { height: 120px; width: auto; object-fit: contain; filter: brightness(1.5) saturate(1.08); }
.nl-progress { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 24px 0 17px; color: #d9e7f3; font-size: 13px; }
.nl-progress strong { color: var(--nl-yellow); }
.nl-progress-track { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: #1d3e59; overflow: hidden; }
.nl-progress-track span { display: block; height: 100%; background: linear-gradient(90deg, #0caf6a, #3a9ce2, #ffd13a); }
.nl-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding-bottom: 8px; border-bottom: 1px solid var(--nl-border); }
.nl-nav button { min-height: 39px; padding: 8px 15px; border: 0; border-radius: 9px; color: #c5d9e9; background: transparent; font-weight: 800; font-size: 13px; }
.nl-nav button.active { color: #fff; background: #1d4d77; box-shadow: inset 0 -2px var(--nl-yellow); }
.nl-nav button:not(.active):hover { background: rgba(255,255,255,.08); }
.nl-overview { display: grid; gap: 22px; }
.nl-panel { padding: clamp(18px, 2.2vw, 26px); }
.nl-overview-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 22px; align-items: start; }
.nl-next .nl-fixture { border: 0; background: #0a1d30; }
.nl-stage-actions > span { color: var(--nl-muted); font-size: 13px; }
.nl-champion { display: flex; align-items: center; gap: 12px; padding: 30px 15px; font-size: 24px; }
.nl-group-card { overflow: hidden; }
.nl-group-head { display: flex; justify-content: space-between; align-items: baseline; padding: 17px 20px; background: #153a5b; border-bottom: 1px solid var(--nl-border); }
.nl-group-head h2 { margin: 0; }
.nl-group-head span { color: #aed5f0; font-size: 12px; font-weight: 800; }
.nl-group-card > p { margin: 12px 18px; font-size: 12px; }
.nl-table-wrap { overflow-x: auto; }
.nl-group-card table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; }
.nl-group-card th,
.nl-group-card td { padding: 11px 8px; border-bottom: 1px solid rgba(120,165,203,.12); text-align: center; }
.nl-group-card th { color: #afc8db; font-size: 11px; font-weight: 800; }
.nl-group-card th:nth-child(2),
.nl-group-card td:nth-child(2) { text-align: left; min-width: 130px; }
.nl-group-card td:nth-child(2) .nl-flag { margin-right: 6px; font-size: 19px; vertical-align: middle; }
.nl-group-card tr.managed { background: rgba(255,207,45,.11); }
.nl-group-card tr.qualifying td:first-child { color: #4dd195; font-weight: 900; }
.nl-group-card tbody tr:last-child td { border-bottom: 0; }
.nl-group-outcome { display: block; margin-top: 3px; color: #dceaff; font: 600 10px/1.4 Manrope, Arial, sans-serif; white-space: normal; }
body.nations-league-match-mode-active #uclEngineTable .pl-engine-table-row > span > strong { white-space: normal; }
.nl-match-group-rules { margin: 10px 14px; color: #e5f2ff; font: 600 11px/1.5 Manrope, Arial, sans-serif; }
#nationsLeagueGroupOutcome { padding: 9px 11px; border-radius: 8px; background: #164772; }
.nl-scorers { min-width: 0; }
.nl-scorer { display: grid; grid-template-columns: 21px 28px 1fr auto 30px; align-items: center; gap: 7px; padding: 11px 0; border-bottom: 1px solid var(--nl-border); font-size: 13px; }
.nl-scorer:last-child { border: 0; }
.nl-scorer small { color: var(--nl-muted); }
.nl-scorer b { text-align: right; color: var(--nl-yellow); font-size: 18px; }
.nl-view { padding: clamp(17px, 2.3vw, 28px); }
.nl-view > .nl-section-head { margin-bottom: 19px; }
.nl-view > .nl-section-head h2 { margin: 0; }
.nl-view > .nl-section-head p { margin: 0; max-width: 550px; }
.nl-groups-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nl-round-select { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 14px; }
.nl-round-select button { flex: 0 0 auto; min-height: 37px; padding: 8px 13px; border: 1px solid var(--nl-border); border-radius: 8px; color: #d5e7f5; background: #0a2037; font-size: 12px; font-weight: 800; }
.nl-round-select button.active { color: #071729; border-color: var(--nl-yellow); background: var(--nl-yellow); }
.nl-fixture-list { display: grid; gap: 8px; }
.nl-fixture { display: grid; grid-template-columns: minmax(135px,.55fr) minmax(0,1.45fr) auto; gap: 12px; align-items: center; padding: 13px 15px; border: 1px solid var(--nl-border); border-radius: 12px; background: #0b2138; }
.nl-fixture.managed { border-color: rgba(255,207,45,.46); background: #153044; }
.nl-fixture-meta { color: #a8bfd3; font-size: 11px; font-weight: 750; }
.nl-fixture-teams { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; }
.nl-fixture-teams > span { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; font-weight: 750; }
.nl-fixture-teams > span:last-child { justify-content: flex-end; text-align: right; }
.nl-fixture-teams .nl-flag { font-size: 21px; }
.nl-score { color: #fff; white-space: nowrap; font-size: 16px; text-align: center; }
.nl-score small { color: var(--nl-muted); font-size: 10px; }
.nl-score-pending { color: #a9c4d8; font-size: 12px; }
.nl-fixture-actions { display: flex; gap: 6px; justify-content: flex-end; }
.nl-fixture-actions button { min-height: 34px; padding: 7px 10px; border: 1px solid var(--nl-border); border-radius: 8px; background: #163855; color: #e6f4ff; font-size: 11px; font-weight: 850; white-space: nowrap; }
.nl-fixture-actions button:last-child { color: #071729; border-color: var(--nl-yellow); background: var(--nl-yellow); }
.nl-fixture-actions button:hover { filter: brightness(1.14); }
.nl-knockout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nl-knockout-round { padding: 18px; background: #0a1f35; }
.nl-knockout-round h2 { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--nl-border); font-size: 18px; }
.nl-knockout-round .nl-fixture { grid-template-columns: 1fr; margin-bottom: 8px; }
.nl-knockout-round .nl-fixture-meta { display: block; }
.nl-knockout-round .nl-fixture-actions { justify-content: flex-start; }
.nl-promotion { margin-top: 17px; }
.nl-promotion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nl-promotion-grid > div { padding: 15px; border-radius: 10px; background: #0a1d31; }
.nl-promotion-grid strong { color: var(--nl-yellow); }
.nl-promotion-grid p { margin: 9px 0 0; font-size: 12px; }
.nl-squads-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.nl-squad-card { border: 1px solid var(--nl-border); border-radius: 11px; background: #0a2138; overflow: hidden; }
.nl-squad-card > button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 62px; padding: 10px 15px; border: 0; color: #fff; background: transparent; text-align: left; }
.nl-squad-card > button:hover { background: rgba(255,255,255,.07); }
.nl-squad-card > button > span:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.nl-squad-card small { color: var(--nl-muted); font-size: 11px; }
.nl-squad-players { display: grid; gap: 0; padding: 5px 15px 14px; border-top: 1px solid var(--nl-border); max-height: 350px; overflow: auto; }
.nl-squad-players > span { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 12px; }
.nl-squad-players b { color: var(--nl-yellow); }
.nl-squad-players small { text-align: right; }
.nl-empty { padding: 16px; color: var(--nl-muted); font-size: 13px; }
.nl-status { min-height: 22px; margin: 15px 0 0; color: var(--nl-yellow) !important; font-size: 13px; }
#nationsLeagueDialog { width: min(92vw, 440px); padding: 0; border: 1px solid rgba(137,186,225,.35); border-radius: 17px; color: #fff; background: #0c253e; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
#nationsLeagueDialog::backdrop { background: rgba(2,10,19,.78); }
.nl-dialog-content { position: relative; padding: 29px; }
.nl-dialog-content h2 { margin: 0 0 10px; font-size: 23px; }
.nl-dialog-content p { color: #bcd0e0; line-height: 1.5; }
.nl-dialog-content > div { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.nl-dialog-close { position: absolute; top: 9px; right: 10px; border: 0; color: #fff; background: transparent; font-size: 25px !important; }
#nationsLeagueDialog:has(.nl-table-dialog) { width: min(94vw, 940px); max-height: min(90vh, 900px); }
.nl-table-dialog { max-height: min(90vh, 900px); overflow-y: auto; }
.nl-table-dialog > .nl-all-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.nl-table-dialog .nl-group-card { min-width: 0; }
.nl-table-dialog .nl-group-head { padding: 12px 15px; }
.nl-table-dialog .nl-group-head h2 { font-size: 15px; }
.nl-table-dialog .nl-group-card th,
.nl-table-dialog .nl-group-card td { padding: 8px 5px; font-size: 10px; }
body.nations-league-match-mode-active {
  --bg: #071729;
  --surface: #0d2944;
  --surface-2: #143857;
  --text: #f5f8fb;
  --muted: #b2c5d8;
  --accent: #ffcf2d;
  --shared-live-accent: #ffcf2d;
  --shared-live-panel: #0d2944;
  --shared-live-surface: #071729;
  --shared-live-border: rgba(118,166,206,.38);
  --domestic-fixture-accent: #ffcf2d;
  --line: rgba(118,166,206,.24);
}
body.nations-league-match-mode-active #appShell,
body.nations-league-match-mode-active :is(.main, .content) { background: #071729 !important; }
body.nations-league-match-mode-active :is(.sidebar, .topbar) { border-color: rgba(118,166,206,.24) !important; background: #0a2239 !important; }
body.nations-league-match-mode-active .brand-mark { background: #1a5789 !important; box-shadow: none !important; }
body.nations-league-match-mode-active .sidebar .header-actions :is(.utility-button, .header-donate-link) {
  border: 1px solid rgba(137,192,235,.35) !important;
  color: #dceeff !important;
  background: #0e3558 !important;
  box-shadow: none !important;
}
body.nations-league-match-mode-active .sidebar .header-actions :is(.utility-button, .header-donate-link) > span:first-child {
  color: #bde6ff !important;
}
body.nations-league-match-mode-active .sidebar .header-actions .account-avatar-icon svg {
  stroke: #bde6ff !important;
}
body.nations-league-match-mode-active .sidebar .header-actions :is(.utility-button, .header-donate-link):hover {
  border-color: #88cefa !important;
  color: #fff !important;
  background: #1b5d92 !important;
}
body.nations-league-match-mode-active :is(.match-stage, .round-board, .golden-boot-panel, #matchAnalysis, .standard-match-tactics, .pl-watch-tactics) {
  border-color: rgba(118,166,206,.26) !important;
  color: #f5f8fb !important;
  background: #0d2944 !important;
}
body.nations-league-match-mode-active .match-stage {
  background: radial-gradient(circle at 54% 22%, rgba(32,117,185,.24), transparent 68%), #0b233d !important;
}
body.nations-league-match-mode-active #matchStage #matchup .team > .flag-orb {
  width: 66px !important;
  height: 44px !important;
  flex: 0 0 66px !important;
  overflow: hidden !important;
  border-radius: 6px !important;
}
body.nations-league-match-mode-active #matchStage #matchup .flag-orb .country-flag,
body.nations-league-match-mode-active #matchStage #matchup .flag-orb .country-flag img {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  object-fit: cover !important;
}
body.nations-league-match-mode-active #matchStage #matchup .flag-orb .flag-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 6px !important;
  color: #d7edfc;
  background: #173d60 !important;
}
body.nations-league-match-mode-active #matchStage.match-stage:not(.is-live) #matchup > .team {
  justify-content: flex-start !important;
  gap: 9px !important;
}
body.nations-league-match-mode-active #matchStage.match-stage:not(.is-live) #matchup .team h2.team-name {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: calc(100% - 75px) !important;
  margin: 0 !important;
  text-align: inherit !important;
}
body.nations-league-match-mode-active #matchStage.match-stage:not(.is-live) #matchup .team h2.team-name > span {
  min-width: 0 !important;
  text-align: inherit !important;
}
body.nations-league-match-mode-active #matchStage.match-stage.is-live:not(.is-shootout) #matchup .team > .flag-orb {
  width: var(--match-score-badge-size) !important;
  height: calc(var(--match-score-badge-size) * .67) !important;
  flex: none !important;
}
body.nations-league-match-mode-active #matchStage .result-note:not([hidden]),
body.nations-league-match-mode-active #matchStage .team-match-events .timeline-event b {
  color: #79caff !important;
}
body.nations-league-match-mode-active #snapshotButton {
  border-color: rgba(117, 197, 246, .55) !important;
  color: #eaf7ff !important;
  background: #164f86 !important;
  box-shadow: 0 8px 22px rgba(2, 16, 37, .32) !important;
}
body.nations-league-match-mode-active #matchAnalysis:has(.match-stats-empty) {
  display: none !important;
}
body.nations-league-match-mode-active #snapshotButton:hover:not(:disabled) {
  border-color: #91d5ff !important;
  background: #2067a4 !important;
}
body.nations-league-match-mode-active #snapshotButton:focus-visible {
  outline: 2px solid #91d5ff !important;
}
body.nations-league-match-mode-active .snapshot-modal form {
  border: 1px solid rgba(118,166,206,.4) !important;
  color: #f5f8fb !important;
  background: #0d2944 !important;
}
body.nations-league-match-mode-active .snapshot-preview {
  border-color: rgba(118,166,206,.4) !important;
  background: #071729 !important;
  box-shadow: 0 18px 48px rgba(2,16,37,.4) !important;
}
body.nations-league-match-mode-active .snapshot-actions button,
body.nations-league-match-mode-active .snapshot-modal .close-modal {
  border-color: rgba(118,166,206,.48) !important;
  color: #f5f8fb !important;
  background: #164f86 !important;
}
body.nations-league-match-mode-active .snapshot-actions button.primary-button {
  border-color: #5cb9f2 !important;
  color: #061827 !important;
  background: #78caff !important;
}
body.nations-league-match-mode-active .snapshot-actions button:hover:not(:disabled),
body.nations-league-match-mode-active .snapshot-modal .close-modal:hover:not(:disabled) {
  border-color: #91d5ff !important;
  background: #2067a4 !important;
}
body.nations-league-match-mode-active .pl-pitch-commentary-mount .match-commentary-feed {
  border-color: rgba(118,166,206,.32) !important;
  background: #0a2239 !important;
}
body.nations-league-match-mode-active .pl-pitch-commentary-mount .match-commentary-feed :is(.commentary-line, span, strong, b),
body.nations-league-match-mode-active .pl-pitch-allowances {
  color: #d7edfc !important;
}
body.nations-league-match-mode-active :is(
  .skip-control,
  .pl-pitch-make-subs,
  .pl-pitch-controls-mount .live-control,
  .pl-pitch-management .live-control
) {
  border-color: rgba(118,166,206,.48) !important;
  color: #f5f8fb !important;
  background: #164f86 !important;
}
body.nations-league-match-mode-active :is(
  .pl-pitch-make-subs,
  .pl-pitch-controls-mount .live-control,
  .pl-pitch-management .live-control
):hover:not(:disabled) {
  border-color: #91d5ff !important;
  background: #2067a4 !important;
}
body.nations-league-match-mode-active :is(.pl-pitch-make-subs, .pl-pitch-controls-mount .live-control):focus-visible {
  outline-color: #91d5ff !important;
}
body.nations-league-match-mode-active .fixture {
  border-color: rgba(118,166,206,.17) !important;
  background: #123250 !important;
}
body.nations-league-match-mode-active #roundBoard .fixture .fixture-team .flag,
body.nations-league-match-mode-active #roundBoard .fixture .fixture-team .fixture-flag {
  width: 36px !important;
  height: 24px !important;
  overflow: hidden !important;
  border-radius: 4px !important;
}
body.nations-league-match-mode-active #roundBoard .fixture .fixture-team .fixture-flag img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 4px !important;
  object-fit: cover !important;
}
body.nations-league-match-mode-active .fixture.selected { border-color: #ffcf2d !important; box-shadow: inset 3px 0 #ffcf2d !important; }
body.nations-league-match-mode-active .fixture.selected::before { background: #ffcf2d !important; }
body.nations-league-match-mode-active .standard-tactic-buttons { border-color: rgba(118,166,206,.24) !important; background: #091f35 !important; }
body.nations-league-match-mode-active .standard-tactic-buttons button.active { color: #fff !important; background: #1a5789 !important; box-shadow: none !important; }
body.nations-league-match-mode-active .standard-match-tactics > span { color: #b2c5d8 !important; }
body.nations-league-match-mode-active #roundBoard :is(.team-filter-search, #simulateRoundButton, .team-filter-chip, .history-round-button),
body.nations-league-match-mode-active :is(.live-control, .secondary-button) {
  border-color: rgba(118,166,206,.32) !important;
  color: #f5f8fb !important;
  background: #173d60 !important;
}
body.nations-league-match-mode-active #roundBoard .team-filter-search input { color: #f5f8fb !important; }
body.nations-league-match-mode-active #roundBoard .team-filter-search input::placeholder { color: #b2c5d8 !important; }
body.nations-league-match-mode-active :is(.play-button, .primary-button, .round-link.active) {
  border-color: #ffcf2d !important;
  color: #071729 !important;
  background: #ffcf2d !important;
}
body.nations-league-match-mode-active :is(.panel-heading, .fixture-card-head, .stage-topline) { border-color: rgba(118,166,206,.2) !important; }
body.nations-league-match-mode-active :is(.stage-topline, .fixture-card-head small, .panel-heading span) { color: #b2c5d8 !important; }
body.nations-league-match-mode-active #plEngineTablePanel { display: none !important; }
body.nations-league-match-mode-active #uclEngineTablePanel {
  display: block !important;
  grid-area: table;
  margin-top: 70px;
  border: 1px solid rgba(118,166,206,.26) !important;
  color: #f5f8fb;
  background: #0d2944 !important;
}
body.nations-league-match-mode-active #uclEngineTablePanel .panel-heading span[hidden] { display: none; }
body.nations-league-match-mode-active #uclEngineTablePanel .panel-heading strong { color: #f5f8fb; }
body.nations-league-match-mode-active #uclEngineTablePanel .pl-engine-table-row.is-selected { background: rgba(255,207,45,.16); box-shadow: inset 3px 0 #ffcf2d !important; }
body.nations-league-match-mode-active #uclEngineTablePanel .pl-engine-table-row .country-flag { position: relative; display: grid; place-items: center; flex: 0 0 22px; width: 22px; min-width: 22px; height: 16px; overflow: hidden; border-radius: 3px; }
body.nations-league-match-mode-active #uclEngineTablePanel .pl-engine-table-row .country-flag img { position: absolute; inset: 0; width: 22px; height: 16px; object-fit: cover; border-radius: 3px; }
body.nations-league-match-mode-active #uclEngineTablePanel .pl-engine-table-row .country-flag:has(img:not([hidden])) .flag-fallback { visibility: hidden; }
body.nations-league-match-mode-active #uclEngineFullTableButton { color: #9fddff; }
body.nations-league-match-mode-active #matchAnalysis { display: block !important; }
body.nations-league-match-mode-active .insight-right.tactics-hidden { display: grid !important; }
.nl-match-group-select { display: grid; gap: 6px; padding: 11px 12px 5px; color: #b2c5d8; font: 700 10px Manrope, Arial, sans-serif; }
.nl-match-group-select select { width: 100%; min-height: 32px; padding: 5px 8px; border: 1px solid rgba(118,166,206,.32); border-radius: 6px; color: #f5f8fb; background: #173d60; font: 700 11px Manrope, Arial, sans-serif; }
body.nations-league-match-mode-active .site-footer { border-color: rgba(118,166,206,.2) !important; background: #071729 !important; }
@media (max-width: 1100px) {
  .nl-team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 990px) {
  .nl-overview-grid { grid-template-columns: 1fr; }
  .nl-fixture { grid-template-columns: 1fr; }
  .nl-fixture-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .nl-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .nl-setup-heading { justify-content: flex-end; }
  .nl-setup-heading h1 { font-size: 19px; }
}
@media (max-width: 650px) {
  .nl-topbar { min-height: 64px; height: 64px; padding: 0 12px; gap: 5px; }
  .nl-topbar .nl-utility { min-width: 34px; width: 34px; min-height: 36px; padding: 0; border-radius: 9px; font-size: 12px; }
  .nl-topbar .nl-account > span:last-child { display: none; }
  .nl-topbar .brand-mark { width: 37px; height: 42px; border-radius: 10px; }
  .nl-header-left, .nl-top-actions { gap: 4px; }
  .nl-main { padding: 16px 12px 40px; }
  .nl-main.nl-setup-main { width: calc(100% - 24px); padding: 16px 0 calc(196px + env(safe-area-inset-bottom)); }
  .nl-setup-heading { justify-content: flex-start; align-items: flex-start; min-height: 86px; padding-top: 47px; margin-bottom: 16px; }
  .nl-setup-back { top: 0; min-height: 36px; padding: 9px 12px; }
  .nl-setup-title { justify-content: center; gap: 10px; width: 100%; }
  .nl-logo-mark { width: 31px; height: 32px; }
  .nl-logo-mark img { width: 31px; }
  .nl-setup-heading h1 { font-size: 18px; }
  .nl-setup-panel { padding: 10px; }
  .nl-setup-settings { grid-template-columns: 1fr; gap: 9px; }
  .nl-setting { padding: 11px; }
  .nl-segmented { margin-top: 12px; }
  .nl-pick-section { padding: 11px; }
  .nl-picker-toolbar { gap: 7px; margin-top: 12px; }
  .nl-picker-tools { grid-template-columns: minmax(0,1fr) 130px; gap: 8px; }
  .nl-picker-filter select { padding-inline: 8px; font-size: 11px; }
  .nl-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 328px; gap: 7px; }
  .nl-team-option { grid-template-columns: 28px minmax(0,1fr); min-height: 72px; padding: 9px 7px; gap: 8px; }
  .nl-team-option .nl-flag { width: 27px; height: 20px; min-width: 27px; font-size: 20px; }
  .nl-setup-actions { position: fixed; z-index: 80; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom)); width: min(720px, calc(100% - 24px)); transform: translateX(-50%); flex-wrap: nowrap; gap: 7px; margin: 0; padding: 7px; border: 1px solid #a3bfe383; border-radius: 11px; background: #0c2b60; box-shadow: 0 8px 30px #020e30aa; }
  .nl-setup-actions .nl-button { min-width: 0; min-height: 42px; padding: 10px; font-size: 11px !important; }
  .nl-setup-actions .nl-primary { flex: 1 1 auto; }
  .nl-setup-actions .nl-secondary { flex: 0 0 auto; }
  .nl-groups-grid,
  .nl-knockout-grid,
  .nl-squads-grid,
  .nl-promotion-grid { grid-template-columns: 1fr; }
  .nl-season-hero { min-height: 120px; padding: 17px; }
  .nl-season-hero h1 { font-size: 25px; }
  .nl-season-hero img { height: 80px; }
  .nl-section-head { align-items: flex-start; flex-wrap: wrap; }
  .nl-section-head > p { text-align: left; }
  .nl-fixture-teams { gap: 4px; }
  .nl-fixture-teams > span { font-size: 12px; }
  .nl-fixture-teams .nl-flag { font-size: 18px; min-width: 21px; }
  .nl-scorer { grid-template-columns: 19px 25px 1fr 27px; }
  .nl-scorer small { display: none; }
}
@media (max-width: 850px) {
  body.nations-league-match-mode-active #uclEngineTablePanel { margin-top: 0; }
}
@media (max-width: 650px) {
  .nl-table-dialog > .nl-all-groups { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #nationsLeagueScreen button,
  #nationsLeagueDialog button { transition: none; }
}

#achievementsScreen[data-achievement-theme="nations-league-2026-27"],
#retroAchievementsModal[data-achievement-theme="nations-league-2026-27"] {
  --achievement-accent: #ffcf2d;
  --achievement-accent-text: #071b3b;
  --achievement-surface: #123a70;
  --achievement-surface-deep: #071b3b;
  --achievement-tab-surface: rgba(5, 23, 51, .84);
  --achievement-card: rgba(16, 51, 97, .82);
  --achievement-card-complete: #12604b;
  --achievement-copy: #e5f2ff;
  --achievement-muted: #b4cae4;
  --achievement-points: #ffcf2d;
  --achievement-shadow: rgba(2, 10, 29, .5);
}
.achievement-unlock-banner[data-achievement-theme="nations-league-2026-27"],
.achievement-unlock-modal[data-achievement-theme="nations-league-2026-27"] {
  border-top-color: #ffcf2d;
  color: #f4f9ff;
  background: radial-gradient(circle at 90% 0%, rgba(34, 132, 203, .36), transparent 42%), linear-gradient(145deg, #123a70, #071b3b);
}
.achievement-unlock-banner[data-achievement-theme="nations-league-2026-27"] .achievement-unlock-banner-mark,
.achievement-unlock-modal[data-achievement-theme="nations-league-2026-27"] .achievement-unlock-mark,
.achievement-unlock-modal[data-achievement-theme="nations-league-2026-27"] .achievement-unlock-action {
  color: #071b3b;
  background: #ffcf2d;
}
.achievement-unlock-modal[data-achievement-theme="nations-league-2026-27"] p { color: #c9dbef; }
