:root {
  --bg: #f4f5f4;
  --surface: #fbfbfa;
  --surface-strong: #ffffff;
  --ink: #171a1a;
  --muted: #667085;
  --line: #d1d4d1;
  --green: #3cac3b;
  --green-dark: #1f7024;
  --coral: #e61d25;
  --gold: #d7a83f;
  --gold-light: #f6d982;
  --blue: #2a398d;
  --fifa-blue: #005391;
  --navy: #474a4a;
  --shadow: 0 18px 45px rgba(71, 74, 74, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden],
.is-hidden {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f2f5f2 0 260px, #ffffff 260px 620px, #f4f5f4 620px),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

input {
  min-width: 0;
}

select {
  min-width: 0;
}

.app-shell {
  min-height: 100vh;
}

.app-shell.is-platform-shell .nav-groups,
.app-shell.is-platform-shell .mobile-nav-grid,
.app-shell.is-platform-shell #active-league-pill {
  display: none !important;
}

.app-shell.is-platform-shell .topbar {
  grid-template-columns: auto 1fr auto;
}

.app-shell.is-platform-shell .account-pill {
  justify-self: end;
}

.boot-shell {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-content: center;
  gap: 18px;
  justify-items: center;
  min-height: 100vh;
  background:
    linear-gradient(135deg, #f7faf6 0%, #ffffff 48%, #eef3f1 100%),
    var(--bg);
  color: var(--ink);
  text-align: center;
}

.boot-shell strong {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 83, 145, 0.08) 0 1px, transparent 1px 112px),
    linear-gradient(180deg, rgba(60, 172, 59, 0.08) 0 1px, transparent 1px 112px),
    linear-gradient(135deg, #f7faf6 0%, #ffffff 48%, #eef3f1 100%);
}

.auth-shell::before {
  position: absolute;
  right: -120px;
  bottom: -250px;
  width: 540px;
  height: 680px;
  background: url("assets/world-cup-logo.png") center / contain no-repeat;
  content: "";
  opacity: 0.045;
  pointer-events: none;
}

.auth-shell::after {
  position: absolute;
  right: 0;
  top: 0;
  width: min(44vw, 560px);
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 83, 145, 0.08), rgba(60, 172, 59, 0.08));
  content: "";
  pointer-events: none;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: min(100%, 1180px);
  margin: 0 auto 54px;
}

.auth-brand picture {
  display: block;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 12px 24px rgba(20, 33, 61, 0.16));
}

.brand-logo-auth {
  width: 118px;
  height: 118px;
}

.brand-logo-login {
  box-sizing: border-box;
  width: clamp(430px, 38vw, 660px);
  max-width: min(92vw, 660px);
  height: auto;
  min-height: 118px;
  padding: 18px 28px;
  border-radius: 18px;
  background: #030303;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 20px 38px rgba(17, 26, 26, 0.2));
}

.auth-brand h1 {
  margin: 0;
  color: #080b0b;
  font-size: 27px;
  line-height: 1;
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 64px;
  align-items: center;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.auth-copy {
  display: grid;
  gap: 22px;
  max-width: 720px;
  padding: 24px 0 64px;
}

.auth-copy h2 {
  max-width: 700px;
  margin: 0;
  color: #070909;
  font-size: 52px;
  line-height: 1;
}

.auth-copy p {
  max-width: 600px;
  margin: 0;
  color: #3c4645;
  font-size: 18px;
  line-height: 1.62;
}

.auth-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 690px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(71, 74, 74, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 42px rgba(20, 33, 61, 0.08);
}

.auth-steps article {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 18px;
  border-right: 1px solid rgba(71, 74, 74, 0.14);
}

.auth-steps article:last-child {
  border-right: 0;
}

.auth-steps strong {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
}

.auth-steps span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.28;
}

.auth-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(71, 74, 74, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(20, 33, 61, 0.16);
}

.auth-card::before {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, var(--green), var(--fifa-blue), var(--coral));
  content: "";
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid #d9dedb;
  border-radius: 8px;
  background: #eef2f0;
}

.auth-tabs button {
  min-height: 44px;
  border-radius: 6px;
  background: transparent;
  color: #52605f;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.auth-tabs button.is-active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 26, 26, 0.18);
}

.auth-tabs.is-muted button {
  opacity: 0.68;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  margin-bottom: -6px;
  color: #5b6867;
  font-size: 13px;
  font-weight: 850;
}

.auth-form input {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid #cad2ce;
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-form input:focus {
  outline: 0;
  border-color: var(--fifa-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 83, 145, 0.12);
}

.auth-form .primary-button {
  min-height: 48px;
  margin-top: 4px;
  background: var(--green-dark);
  font-weight: 950;
}

.auth-form .primary-button:hover {
  background: #185d1e;
}

.auth-link-button {
  width: fit-content;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-link-button:hover {
  color: var(--fifa-blue);
}

.password-toggle {
  justify-self: start;
  min-height: 28px;
  margin-top: -4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.password-toggle:hover {
  color: var(--fifa-blue);
}

.auth-message {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4e8;
  color: #8a3e00;
  font-weight: 850;
}

.auth-pending-card h2 {
  margin: 0;
  font-size: 28px;
}

.auth-pending-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pending-list {
  display: grid;
  gap: 10px;
}

.pending-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.pending-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.pending-league-form {
  padding-top: 4px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(221, 228, 220, 0.86);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(20, 33, 61, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 96px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(135deg, #000000, var(--fifa-blue));
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(34, 102, 179, 0.22);
}

.brand-mark.image-mark {
  border: 1px solid rgba(20, 33, 61, 0.1);
  background:
    url("assets/world-cup-logo.png") center / contain no-repeat,
    #ffffff;
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.14);
}

.brand-mark.image-mark::before,
.brand-mark.image-mark::after {
  display: none;
}

.brand-mark::before {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 30px;
  height: 30px;
  border: 6px solid rgba(246, 217, 130, 0.78);
  border-radius: 999px;
  content: "";
}

.brand-mark::after {
  position: absolute;
  right: 5px;
  bottom: 4px;
  color: var(--gold-light);
  content: "IA";
  font-size: 9px;
  font-weight: 950;
}

.brand-mark span {
  position: relative;
  z-index: 1;
}

.brand h1,
.section-heading h2,
.accent-panel h2,
.hero-copy h2 {
  margin: 0;
  line-height: 1.05;
}

.brand h1 {
  font-size: 24px;
  color: #000000;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-groups {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.mobile-nav-grid {
  display: none;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 5px;
  border: 1px solid rgba(71, 74, 74, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(71, 74, 74, 0.05);
}

.app-nav-home {
  min-width: 112px;
  justify-content: center;
}

.app-nav-pool {
  gap: 8px;
  border-color: rgba(11, 143, 97, 0.18);
  background:
    linear-gradient(90deg, rgba(11, 143, 97, 0.07), transparent 34%),
    #ffffff;
}

.app-nav-worldcup {
  gap: 8px;
  min-width: 336px;
  justify-content: center;
  border-color: rgba(0, 83, 145, 0.22);
  background:
    linear-gradient(90deg, rgba(0, 83, 145, 0.08), rgba(246, 217, 130, 0.12)),
    #ffffff;
  box-shadow: 0 12px 28px rgba(0, 83, 145, 0.08);
}

.app-nav-admin {
  min-width: 112px;
  justify-content: center;
  border-color: rgba(71, 74, 74, 0.2);
}

.nav-button {
  min-height: 42px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.nav-icon-button {
  display: inline-grid;
  width: 52px;
  min-width: 52px;
  padding: 0;
  place-items: center;
}

.nav-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.nav-button:hover {
  background: #f4f6f4;
  color: var(--navy);
}

.nav-button.is-active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 26, 26, 0.14);
}

.nav-dropdown {
  position: relative;
  display: flex;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 178px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(20, 33, 61, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.nav-dropdown-menu button:hover,
.nav-dropdown-menu button:focus-visible {
  background: #f3f6f4;
  color: var(--ink);
}

.pool-nav-badge {
  display: grid;
  gap: 1px;
  min-width: 104px;
  padding: 4px 10px 4px 4px;
  border-right: 1px solid rgba(11, 143, 97, 0.14);
}

.pool-nav-badge strong {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
}

.pool-nav-badge em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-nav-worldcup .nav-button {
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.app-nav-worldcup .nav-button.is-active {
  background: var(--fifa-blue);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 83, 145, 0.18);
}

.worldcup-nav-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 128px;
  padding: 4px 8px 4px 4px;
  border-right: 1px solid rgba(0, 83, 145, 0.14);
}

.worldcup-nav-badge img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.worldcup-nav-badge span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.worldcup-nav-badge strong {
  color: var(--fifa-blue);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
}

.worldcup-nav-badge em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worldcup-nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-nav-admin .nav-button {
  color: var(--muted);
}

.app-nav-admin .nav-button.is-active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 26, 26, 0.14);
}

.league-pill {
  justify-self: end;
  display: flex;
  align-items: center;
  width: clamp(330px, 27vw, 390px);
  max-width: 390px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}

.league-pill strong {
  color: var(--green-dark);
}

.league-selector {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 5px 42px 5px 14px;
  border: 1px solid rgba(11, 143, 97, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(11, 143, 97, 0.08), transparent 54%),
    #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(20, 33, 61, 0.06);
}

.league-selector::after {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  content: "";
  pointer-events: none;
  transform: translateY(-60%) rotate(45deg);
}

.league-selector:focus-within {
  border-color: rgba(11, 143, 97, 0.42);
  box-shadow:
    0 10px 22px rgba(20, 33, 61, 0.06),
    0 0 0 3px rgba(11, 143, 97, 0.1);
}

.league-selector > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.league-selector-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  outline: 0;
  text-align: left;
}

.league-selector-trigger strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-selector-trigger em {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.league-selector-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: min(360px, calc(100vw - 32px));
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(11, 143, 97, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 44px rgba(20, 33, 61, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.league-selector.is-open .league-selector-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.league-selector-menu button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.league-selector-menu button:hover,
.league-selector-menu button:focus-visible {
  background: #f4f8f5;
}

.league-selector-menu button.is-selected {
  background: rgba(11, 143, 97, 0.1);
  color: var(--green-dark);
}

.league-selector-menu strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-selector-menu span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
}

.account-pill {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  white-space: nowrap;
}

.account-pill div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-pill span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-pill strong {
  color: var(--ink);
  font-size: 13px;
}

.account-pill button {
  min-height: 32px;
  padding: 0 10px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.account-pill .notification-button {
  position: relative;
  display: inline-grid;
  width: 34px;
  min-width: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(71, 74, 74, 0.16);
  background: #ffffff;
  color: var(--ink);
}

.account-pill .notification-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.account-pill .notification-button.has-unread {
  border-color: rgba(255, 19, 44, 0.28);
  color: var(--coral);
}

.account-pill .notification-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--coral);
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(11, 143, 97, 0.14);
  border-radius: 999px;
  background: rgba(245, 248, 246, 0.9);
}

.account-pill .language-switcher button {
  display: grid;
  width: 30px;
  min-width: 30px;
  min-height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: none;
}

.account-pill .language-switcher button.is-active {
  border-color: rgba(11, 143, 97, 0.24);
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(23, 26, 26, 0.08);
}

.account-pill .language-switcher span {
  color: inherit;
  font-size: inherit;
  line-height: 1;
  text-transform: none;
}

.workspace {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.app-view {
  display: none;
}

.app-view.is-active {
  display: block;
}

.next-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 20px;
  background:
    linear-gradient(110deg, rgba(11, 143, 97, 0.12), transparent 46%),
    linear-gradient(180deg, #ffffff, #fbfdfb);
}

.next-action-main {
  display: grid;
  gap: 12px;
  align-content: center;
  min-width: 0;
}

.next-action-main h2 {
  max-width: 760px;
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.next-action-main p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.next-action-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.next-action-actions button {
  min-height: 42px;
  padding: 0 16px;
}

.next-action-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.next-action-status article {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.next-action-status span,
.next-action-status small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.next-action-status span {
  text-transform: uppercase;
}

.next-action-status strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.34;
  padding-bottom: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-action-status .countdown-card strong {
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.score-strip article {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.05);
}

.score-strip article::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54px;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--coral), var(--blue));
  content: "";
}

.score-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.score-strip strong {
  font-size: 30px;
  line-height: 1;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.2fr 0.86fr;
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  min-height: 380px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(71, 74, 74, 0.96), rgba(42, 57, 141, 0.9)),
    var(--navy);
  box-shadow: var(--shadow);
}

.league-pulse-panel {
  grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(260px, 0.78fr));
  min-height: 310px;
  padding: 18px;
  background:
    linear-gradient(110deg, rgba(20, 33, 61, 0.96), rgba(42, 57, 141, 0.92)),
    var(--navy);
}

.league-pulse-panel.has-challenge-home .pulse-challenges-card {
  grid-column: span 2;
}

.pulse-feature,
.pulse-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  min-width: 0;
  min-height: 274px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.pulse-feature {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11, 143, 97, 0.28), transparent 48%),
    rgba(255, 255, 255, 0.1);
}

.pulse-feature::after {
  position: absolute;
  right: -40px;
  bottom: -42px;
  width: 210px;
  height: 210px;
  border: 28px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  content: "";
}

.pulse-challenges-card {
  background:
    linear-gradient(135deg, rgba(11, 143, 97, 0.26), rgba(42, 57, 141, 0.08) 54%),
    rgba(255, 255, 255, 0.1);
}

.pulse-feature .challenge-feed-title {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 20px;
  align-items: center;
  margin: 0;
  color: #ffffff;
  max-width: none;
  font-size: clamp(42px, 3.4vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.challenge-feed-mark {
  display: inline-grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(246, 217, 130, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(246, 217, 130, 0.16);
  color: var(--gold-light);
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.challenge-feed-mark svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  filter: drop-shadow(0 0 10px rgba(246, 217, 130, 0.32));
}

.pulse-feature .challenge-feed-title > span:last-child {
  display: inline-block;
  font-size: 1em;
  font-weight: 900;
}

.challenge-feed-list {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

.challenge-feed-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 11px 10px 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
}

.challenge-feed-item span {
  overflow: visible;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

.challenge-feed-action {
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(246, 217, 130, 0.58);
  border-radius: 999px;
  background: rgba(246, 217, 130, 0.16);
  color: var(--gold-light);
  font-size: 19px;
  line-height: 1;
}

.challenge-feed-action:hover {
  background: rgba(246, 217, 130, 0.28);
}

.challenge-feed-action.is-soft-disabled {
  opacity: 0.72;
}

.challenge-feed-empty {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.challenge-feed-empty strong,
.challenge-feed-empty span {
  color: #ffffff;
}

.challenge-feed-empty span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.challenge-pulse-metrics article {
  min-height: 76px;
}

.challenge-pulse-metrics span {
  font-size: 12px;
  line-height: 1.15;
}

.challenge-pulse-metrics strong {
  font-size: 30px;
}

.pulse-card {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.pulse-card .eyebrow,
.pulse-feature .eyebrow {
  margin-bottom: 10px;
}

.pulse-feature .eyebrow {
  color: var(--gold-light);
}

.pulse-feature h2,
.pulse-card h3 {
  margin: 0;
  line-height: 1.05;
}

.pulse-feature h2 {
  max-width: 560px;
  font-size: 34px;
}

.pulse-card h3 {
  font-size: 24px;
}

.pulse-feature p,
.pulse-card p {
  margin: 12px 0 0;
  line-height: 1.48;
}

.pulse-feature p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.pulse-card p {
  color: var(--muted);
}

.pulse-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.pulse-metrics article,
.hot-match-split article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.pulse-metrics span,
.hot-match-split span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pulse-metrics strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-card-value {
  margin-top: 18px;
  color: var(--green-dark);
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}

.pulse-card-value small {
  color: var(--muted);
  font-size: 16px;
}

.hot-match-teams {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hot-match-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px !important;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff5e2;
  color: #8a5a00 !important;
  font-size: 12px;
  font-weight: 900;
}

.hot-match-status.is-saved {
  background: #e8f5ec;
  color: var(--green-dark) !important;
}

.hot-match-team {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 950;
}

.hot-match-team span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-match-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.hot-match-split article {
  background: #f3f7f4;
}

.hot-match-split span {
  color: var(--muted);
}

.hot-match-split strong {
  color: var(--ink);
  font-size: 18px;
}

.pulse-hot-card {
  overflow: hidden;
  touch-action: pan-y;
}

.hot-match-stage {
  overflow: hidden;
  margin: -4px;
  padding: 4px;
}

.hot-match-slide {
  position: relative;
  padding-right: 48px;
  will-change: transform, opacity;
}

.hot-match-challenge-action {
  position: absolute;
  top: 0;
  right: 0;
}

.challenge-remaining-card strong {
  font-size: 20px;
}

.challenge-remaining-card span {
  max-width: 680px;
}

.pulse-hot-card.is-slide-out-left .hot-match-slide {
  animation: hotMatchOutLeft 160ms ease-in forwards;
}

.pulse-hot-card.is-slide-out-right .hot-match-slide {
  animation: hotMatchOutRight 160ms ease-in forwards;
}

.pulse-hot-card.is-slide-in-from-right .hot-match-slide {
  animation: hotMatchInRight 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pulse-hot-card.is-slide-in-from-left .hot-match-slide {
  animation: hotMatchInLeft 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hotMatchOutLeft {
  to {
    opacity: 0;
    transform: translateX(-42px) rotate(-1.2deg);
  }
}

@keyframes hotMatchOutRight {
  to {
    opacity: 0;
    transform: translateX(42px) rotate(1.2deg);
  }
}

@keyframes hotMatchInRight {
  from {
    opacity: 0;
    transform: translateX(48px) rotate(1.4deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes hotMatchInLeft {
  from {
    opacity: 0;
    transform: translateX(-48px) rotate(-1.4deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-hot-card.is-slide-out-left .hot-match-slide,
  .pulse-hot-card.is-slide-out-right .hot-match-slide,
  .pulse-hot-card.is-slide-in-from-right .hot-match-slide,
  .pulse-hot-card.is-slide-in-from-left .hot-match-slide {
    animation: none;
  }
}

.hot-match-carousel-controls {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.hot-match-arrow {
  display: inline-grid;
  min-width: 0;
  min-height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(215, 168, 63, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(246, 217, 130, 0.34), rgba(255, 255, 255, 0.92)),
    #ffffff;
  color: var(--ink);
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(20, 33, 61, 0.06);
}

.hot-match-arrow:hover {
  border-color: rgba(215, 168, 63, 0.7);
  background:
    linear-gradient(135deg, rgba(246, 217, 130, 0.56), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.hot-match-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 0;
}

.hot-match-dots button {
  width: 34px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 181, 28, 0.48);
  box-shadow: none;
}

.hot-match-dots button.is-active {
  width: 46px;
  background: var(--gold);
}

.hot-match-swipe-hint {
  display: none;
  margin: 10px 0 0 !important;
  color: var(--muted) !important;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.pitch-visual {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(209, 212, 209, 0.38)),
    #ffffff;
}

.pitch-visual::before {
  position: absolute;
  inset: 16px;
  display: block;
  border: 1px solid rgba(209, 212, 209, 0.8);
  border-radius: 8px;
  background:
    url("assets/world-cup-hero.png") center / contain no-repeat,
    #ffffff;
  box-shadow: 0 18px 32px rgba(71, 74, 74, 0.12);
  content: "";
}

.pitch-visual::after {
  display: none;
}

.pitch-line {
  display: none;
}

.pitch-line-top {
  top: 26px;
}

.pitch-line-middle {
  top: 50%;
}

.pitch-line-bottom {
  bottom: 26px;
}

.trophy-emblem {
  display: none;
}

.trophy-emblem span {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 950;
}

.trophy-cup {
  position: relative;
  width: 40px;
  height: 58px;
  border-radius: 20px 20px 12px 12px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(145deg, var(--gold-light), var(--gold) 58%, #9f7623);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
}

.trophy-cup::before,
.trophy-cup::after {
  position: absolute;
  top: 12px;
  width: 18px;
  height: 24px;
  border: 5px solid var(--gold);
  border-bottom: 0;
  content: "";
}

.trophy-cup::before {
  left: -15px;
  border-right: 0;
  border-radius: 18px 0 0 4px;
}

.trophy-cup::after {
  right: -15px;
  border-left: 0;
  border-radius: 0 18px 4px 0;
}

.ball {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 34px 0;
  color: #ffffff;
}

.hero-copy .eyebrow {
  color: #ffffff;
}

.hero-copy h2 {
  max-width: 520px;
  font-size: 34px;
}

.hero-copy p:last-child {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.55;
}

.deadline-card {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 10px;
  margin-right: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 32px rgba(16, 32, 51, 0.16);
}

.deadline-card span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.deadline-card strong {
  font-size: 18px;
}

.light-button,
.inline-field button,
.save-pick,
.primary-button {
  background: var(--green);
  color: #ffffff;
  font-weight: 850;
}

.light-button:hover,
.inline-field button:hover,
.save-pick:hover,
.primary-button:hover {
  background: var(--green-dark);
}

.light-button {
  width: 100%;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.primary-column,
.side-column {
  display: grid;
  gap: 24px;
}

.ranking-page-stack {
  display: grid;
  gap: 24px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 12px 30px rgba(20, 33, 61, 0.06);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(11, 143, 97, 0.08), transparent 56%),
    #ffffff;
}

.section-heading h2,
.accent-panel h2 {
  font-size: 22px;
}

.section-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  vertical-align: middle;
}

.ghost-button {
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 850;
}

.ghost-button:hover {
  border-color: rgba(11, 143, 97, 0.38);
  background: rgba(11, 143, 97, 0.08);
}

.match-list,
.compact-match-list,
.standings {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.matchday-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 14px 0;
}

.matchday-tab {
  display: grid;
  gap: 3px;
  min-height: 66px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.matchday-tab span {
  font-size: 16px;
  font-weight: 950;
}

.matchday-tab strong,
.matchday-tab em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.matchday-tab.is-active {
  border-color: rgba(34, 102, 179, 0.42);
  background: var(--navy);
  color: #ffffff;
}

.matchday-tab.is-active strong,
.matchday-tab.is-active em {
  color: rgba(255, 255, 255, 0.78);
}

.knockout-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.knockout-tabs .matchday-tab span {
  font-size: 13px;
}

.matchday-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 14px 0;
}

.info-note {
  margin: 10px 14px 0;
  padding: 10px 12px;
  border: 1px solid rgba(42, 57, 141, 0.16);
  border-radius: 8px;
  background: rgba(42, 57, 141, 0.06);
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.matchday-summary article {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f6;
}

.matchday-summary span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.matchday-summary strong {
  font-size: 18px;
}

.match-card,
.compact-match,
.leaderboard li,
.league-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.match-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: start;
  padding: 14px;
}

.match-card-info {
  display: grid;
  gap: 12px;
  align-content: start;
}

.compact-match {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.compact-match strong {
  display: block;
  margin-bottom: 5px;
}

.compact-match span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compact-match em {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.compact-score {
  display: grid;
  min-width: 72px;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  background: rgba(34, 102, 179, 0.1);
  color: var(--blue);
  font-weight: 900;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.match-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f2;
}

.deadline-status {
  color: var(--green-dark);
}

.deadline-status.is-closing {
  background: rgba(244, 181, 28, 0.18);
  color: #7a4f00;
}

.deadline-status.is-final-hour {
  background: rgba(230, 29, 37, 0.1);
  color: var(--coral);
}

.deadline-status.is-unavailable {
  background: #f1f5f2;
  color: var(--muted);
}

.deadline-status.is-closed {
  background: rgba(228, 83, 63, 0.12);
  color: var(--coral);
}

.teams {
  display: grid;
  gap: 8px;
}

.official-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.official-result strong,
.official-result b {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  padding: 4px 8px;
  border-radius: 999px;
}

.official-result strong {
  background: rgba(34, 102, 179, 0.1);
  color: var(--blue);
}

.official-result b {
  background: rgba(11, 143, 97, 0.1);
  color: var(--green-dark);
}

.official-result.is-pending strong {
  background: #f1f5f2;
  color: var(--muted);
}

.team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.flag {
  width: 30px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 4px;
  border: 1px solid rgba(20, 33, 61, 0.16);
  background: var(--flag);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.flag-image {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background:
    var(--flag-url) center / cover no-repeat,
    #eef2f7;
}

.flag-image span {
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(20, 33, 61, 0.56);
  font-size: 8px;
  font-weight: 950;
}

.slot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(42, 57, 141, 0.22);
  border-radius: 999px;
  background: rgba(42, 57, 141, 0.08);
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
}

.table-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.table-team-code {
  font-weight: 950;
  white-space: nowrap;
}

.table-team-code abbr {
  text-decoration: none;
}

.team-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 128px);
  gap: 12px;
  align-items: center;
}

.pick-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prediction-scoreboard {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.score-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 6px 8px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.score-team-row:focus-within {
  border-color: rgba(42, 57, 141, 0.42);
  box-shadow: 0 0 0 3px rgba(34, 102, 179, 0.1);
}

.score-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pick-actions {
  display: grid;
  gap: 6px;
  align-content: center;
  justify-items: stretch;
  min-width: 0;
}

.pick-qualifier {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(11, 143, 97, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(11, 143, 97, 0.08), transparent 72%),
    #ffffff;
}

.pick-qualifier > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.pick-qualifier > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pick-qualifier label {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.pick-qualifier label:has(input:checked) {
  border-color: rgba(11, 143, 97, 0.48);
  background: rgba(11, 143, 97, 0.09);
  box-shadow: inset 0 0 0 1px rgba(11, 143, 97, 0.18);
}

.pick-qualifier input {
  width: 16px;
  height: 16px;
  margin: 0 8px 0 0;
  accent-color: var(--green);
}

.pick-qualifier b {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-field input,
.pick-inputs input,
.score-team-row input,
.form-stack input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.inline-field input:focus,
.pick-inputs input:focus,
.score-team-row input:focus,
.form-stack input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(34, 102, 179, 0.14);
}

.pick-inputs input,
.score-team-row input {
  width: 54px;
  padding: 0;
  text-align: center;
  font-weight: 900;
}

.pick-inputs input:disabled,
.score-team-row input:disabled {
  background: #edf0ed;
  color: #8a948d;
}

.pick-inputs span {
  color: var(--muted);
  font-weight: 900;
}

.save-pick {
  width: 100%;
  min-width: 0;
}

.save-pick:disabled {
  background: #929b94;
  cursor: not-allowed;
}

.saved-badge {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.match-card.is-locked,
.compact-match.is-locked,
.match-card.is-unavailable,
.admin-result-card.is-unavailable {
  background: #f4f6f4;
}

.match-card.is-locked .team-name,
.match-card.is-unavailable .team-name,
.compact-match.is-locked strong {
  color: #69736c;
}

.group-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #eef5ef;
  font-weight: 900;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.group-table table,
.full-group-card table {
  table-layout: fixed;
}

th,
td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td:last-child,
th:last-child {
  text-align: right;
}

.full-group-card .team-col {
  width: 48%;
}

.full-group-card .stat-col {
  width: 17.33%;
}

.full-group-card th,
.full-group-card td {
  padding-right: 10px;
  padding-left: 10px;
}

.full-group-card th:not(:first-child),
.full-group-card td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.leaderboard {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  list-style: none;
  counter-reset: players;
}

.leaderboard-large {
  gap: 12px;
}

.leaderboard li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  counter-increment: players;
}

.leaderboard li.is-current-user {
  border: 1px solid rgba(11, 143, 97, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(11, 143, 97, 0.12), rgba(255, 255, 255, 0.94));
  box-shadow: inset 0 0 0 1px rgba(11, 143, 97, 0.08);
}

.leaderboard li.is-current-user::before {
  background: var(--green-dark);
  color: #ffffff;
}

.leaderboard-large li {
  min-height: 68px;
  padding: 14px;
}

.leaderboard li::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  content: counter(players);
  font-weight: 900;
}

.leaderboard li:first-child::before {
  background: var(--gold);
  color: var(--navy);
}

.leaderboard strong {
  display: block;
}

.leaderboard span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.leaderboard b {
  color: var(--coral);
}

.evolution-panel {
  background:
    linear-gradient(135deg, rgba(0, 83, 145, 0.06), transparent 38%),
    linear-gradient(180deg, #ffffff, #fbfdfb);
}

.ranking-evolution {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.ranking-evolution-large {
  padding: 18px;
}

.evolution-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(71, 74, 74, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(11, 143, 97, 0.1), transparent 62%),
    #ffffff;
}

.evolution-summary.is-dashboard-summary {
  grid-template-columns: minmax(110px, 0.3fr) minmax(0, 1fr) auto;
}

.evolution-summary-context {
  align-self: stretch;
  display: grid;
  align-content: center;
  min-height: 52px;
}

.evolution-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.evolution-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.1;
}

.evolution-summary p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.evolution-mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 4px;
  min-width: 224px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.evolution-mode-toggle button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.evolution-mode-toggle button.is-active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(20, 33, 61, 0.12);
}

.evolution-chart-frame {
  overflow-x: auto;
  border: 1px solid rgba(71, 74, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.evolution-svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}

.evolution-svg text {
  fill: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.evolution-chart-bg {
  fill: #fbfdfb;
}

.evolution-grid-row line,
.evolution-x-tick line {
  stroke: rgba(71, 74, 74, 0.13);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.evolution-grid-row text {
  text-anchor: end;
}

.evolution-x-tick text {
  text-anchor: middle;
}

.evolution-axis-line {
  stroke: rgba(71, 74, 74, 0.42);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.evolution-axis-title {
  fill: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
}

.evolution-axis-title-y {
  text-anchor: start;
}

.evolution-leader-area {
  fill: rgba(11, 143, 97, 0.12);
}

.evolution-series path {
  fill: none;
  stroke-width: 3.8;
  opacity: 0.96;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 10px rgba(20, 33, 61, 0.12));
  vector-effect: non-scaling-stroke;
}

.evolution-series.is-secondary path {
  stroke: #c7d0cc;
  stroke-width: 1.35;
  opacity: 0.34;
  filter: none;
}

.evolution-series.is-dimmed path {
  stroke: #c7d0cc;
  stroke-width: 1.25;
  opacity: 0.34;
  filter: none;
}

.evolution-series.is-dashboard-muted path {
  stroke: #d7dfdc;
  stroke-width: 0.8;
  opacity: 0.42;
  filter: none;
}

.evolution-series.is-selected path {
  stroke-width: 4.8;
  opacity: 1;
}

.evolution-point {
  stroke: #ffffff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.evolution-final-point {
  stroke: #ffffff;
  stroke-width: 3;
  filter: drop-shadow(0 4px 8px rgba(20, 33, 61, 0.22));
  vector-effect: non-scaling-stroke;
}

.evolution-end-label {
  font-size: 11px;
  font-weight: 950;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-linejoin: round;
  stroke-width: 4px;
}

.evolution-end-label.is-dashboard-label {
  font-size: 13px;
  stroke-width: 5px;
}

.evolution-series.is-secondary .evolution-final-point {
  fill: #c7d0cc;
  opacity: 0.34;
  stroke-width: 1.6;
  filter: none;
}

.evolution-series.is-dimmed .evolution-final-point {
  fill: #c7d0cc;
  opacity: 0.42;
  stroke-width: 1.4;
  filter: none;
}

.evolution-series.is-dashboard-muted .evolution-final-point {
  fill: #d7dfdc;
  opacity: 0.34;
  stroke-width: 0.8;
  filter: none;
}

.evolution-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.evolution-legend-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.evolution-legend-tools button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(71, 74, 74, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 950;
  cursor: pointer;
}

.evolution-legend-tools button:hover,
.evolution-legend-tools button:focus-visible {
  border-color: rgba(11, 143, 97, 0.34);
  background: rgba(11, 143, 97, 0.08);
}

.evolution-legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(71, 74, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.evolution-legend-item.is-clickable {
  min-height: 40px;
  cursor: pointer;
}

.evolution-legend-item.is-clickable:hover,
.evolution-legend-item.is-clickable:focus-visible {
  border-color: rgba(42, 57, 141, 0.28);
  background: #f8faf8;
}

.evolution-legend-item.is-active {
  border-color: rgba(11, 143, 97, 0.48);
  background: rgba(11, 143, 97, 0.08);
  box-shadow: inset 0 0 0 1px rgba(11, 143, 97, 0.18);
}

.evolution-legend-item span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--series-color);
  box-shadow: 0 0 0 4px rgba(20, 33, 61, 0.06);
}

.evolution-legend-item strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evolution-legend-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.evolution-legend-item.is-muted {
  background: #f7f8f7;
}

.evolution-legend-item.is-muted span {
  background: #9aa3a0 !important;
  box-shadow: 0 0 0 4px rgba(154, 163, 160, 0.1);
}

.evolution-legend-item.is-muted strong,
.evolution-legend-item.is-muted em {
  color: #79837e;
}

.evolution-empty {
  display: grid;
  gap: 6px;
  min-height: 154px;
  place-content: center;
  padding: 24px;
  border: 1px dashed rgba(71, 74, 74, 0.26);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.evolution-empty span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.news-list,
.rules-list,
.league-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.rules-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(34, 102, 179, 0.1), transparent 58%),
    var(--surface-strong);
}

.rules-hero h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
}

.rules-hero p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.rules-badge {
  display: grid;
  min-width: 150px;
  min-height: 92px;
  place-items: center;
  padding: 14px;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
}

.rules-badge span {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rules-badge strong {
  font-size: 28px;
  line-height: 1;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.fifa-rules-panel {
  margin-top: 24px;
}

.official-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.official-link {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(11, 143, 97, 0.24);
  border-radius: 8px;
  background: rgba(11, 143, 97, 0.08);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.official-link:hover,
.official-link:focus-visible {
  background: var(--green);
  color: #ffffff;
}

.fifa-rules-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.fifa-rules-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 102, 179, 0.06), transparent 54%),
    #ffffff;
}

.fifa-rules-grid span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.fifa-rules-grid p,
.fifa-rules-grid ol {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.fifa-rules-grid ol {
  display: grid;
  gap: 4px;
  padding-left: 18px;
}

.fifa-rules-grid li::marker {
  color: var(--green-dark);
  font-weight: 950;
}

.fifa-rules-grid .fair-play-note {
  background:
    linear-gradient(135deg, rgba(244, 181, 28, 0.16), transparent 56%),
    #ffffff;
}

.tournament-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.full-standings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  scroll-margin-top: 130px;
}

.full-group-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.third-place-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.third-place-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.third-place-row strong {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #edf0ed;
}

.third-place-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.third-place-row b {
  color: var(--coral);
  font-size: 12px;
}

.third-place-row.is-qualifying b {
  color: var(--green-dark);
}

.knockout-panel {
  width: min(1620px, calc(100vw - 64px));
  margin-top: 24px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.knockout-bracket {
  position: relative;
  overflow: visible;
  padding: 14px;
  scroll-margin-top: 130px;
}

.knockout-bracket.has-world-champion {
  padding-bottom: 180px;
}

.bracket-tree {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
}

.bracket-side {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 720px;
}

.bracket-column {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  min-width: 0;
}

.bracket-column h3 {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  text-align: center;
}

.bracket-match-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 10px;
  height: 100%;
}

.knockout-match {
  position: relative;
  display: grid;
  min-height: 66px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(20, 33, 61, 0.05);
}

.bracket-side-left .bracket-column:not(:last-child) .knockout-match::after,
.bracket-side-right .bracket-column:not(:first-child) .knockout-match::before {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--line);
  content: "";
}

.bracket-side-left .bracket-column:not(:last-child) .knockout-match::after {
  right: -15px;
}

.bracket-side-right .bracket-column:not(:first-child) .knockout-match::before {
  left: -15px;
}

.knockout-match strong {
  font-size: 14px;
  line-height: 1.25;
}

.knockout-match .bracket-teams {
  display: grid;
  gap: 6px;
}

.bracket-match-date {
  position: absolute;
  z-index: 2;
  top: -8px;
  right: 7px;
  padding: 1px 5px;
  border: 1px solid rgba(71, 74, 74, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 8px;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.bracket-team {
  display: grid;
  grid-template-columns: 30px minmax(4ch, 1fr) 28px;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 28px;
  padding: 2px 4px 2px 5px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.bracket-team .flag {
  width: 30px;
  height: 22px;
}

.bracket-team > span:not(.flag):not(.slot-badge) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team.is-placeholder {
  grid-template-columns: auto minmax(0, 1fr);
  color: var(--blue);
}

.bracket-team.is-winner {
  background: rgba(11, 143, 97, 0.12);
  color: var(--green-dark);
  box-shadow: inset 3px 0 0 var(--green);
}

.bracket-team.is-loser {
  color: rgba(23, 26, 26, 0.58);
}

.bracket-team b {
  display: grid;
  width: 28px;
  height: 26px;
  place-items: center;
  border-radius: 5px;
  background: #f0f3f0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.bracket-team.is-winner b {
  background: var(--green);
  color: #ffffff;
}

.bracket-team.is-loser b {
  color: rgba(23, 26, 26, 0.52);
}

.bracket-finals {
  display: grid;
  gap: 14px;
  align-items: center;
  justify-items: center;
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(246, 217, 130, 0.16), transparent 44%),
    #ffffff;
  box-shadow: 0 18px 38px rgba(20, 33, 61, 0.08);
}

.bracket-finals > .knockout-match {
  width: 100%;
  border-color: rgba(215, 168, 63, 0.58);
}

.world-champion-card {
  position: absolute;
  z-index: 4;
  top: 636px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: min(360px, calc(100% - 48px));
  min-height: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(215, 168, 63, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(246, 217, 130, 0.32), transparent 58%),
    #ffffff;
  box-shadow: 0 16px 32px rgba(20, 33, 61, 0.1);
}

.world-champion-card .flag {
  width: 150px;
  height: 104px;
  border-radius: 8px;
  box-shadow: 0 14px 24px rgba(20, 33, 61, 0.16);
}

.world-champion-card span {
  display: block;
  color: var(--coral);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.world-champion-card strong {
  display: block;
  margin-top: 4px;
  font-size: 34px;
  line-height: 1.08;
}

.final-trophy {
  width: 96px;
  height: 132px;
  border-radius: 8px;
  background:
    url("assets/world-cup-logo.png") center / contain no-repeat,
    #ffffff;
  box-shadow: 0 14px 28px rgba(20, 33, 61, 0.12);
}

.third-place-card {
  width: 100%;
  opacity: 0.82;
}

.third-place-card .knockout-match {
  min-height: 66px;
  background: #f7f9f7;
}

.bracket-mobile {
  display: none;
}

.bracket-mobile-intro,
.bracket-mobile-round {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.bracket-mobile-intro {
  display: grid;
  gap: 4px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(246, 217, 130, 0.16), transparent 58%),
    #ffffff;
}

.bracket-mobile-intro span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.bracket-mobile-intro strong {
  font-size: 19px;
  line-height: 1.08;
}

.bracket-mobile-round {
  overflow: hidden;
}

.bracket-mobile-round h3 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(11, 143, 97, 0.07), transparent 72%),
    #ffffff;
  color: var(--navy);
  font-size: 14px;
}

.bracket-mobile-match-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.news-item {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-item time {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.news-item h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.news-item p,
.accent-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.rules-list article,
.deadline-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.rules-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
}

.rules-list strong {
  color: var(--coral);
  font-size: 18px;
}

.rules-list span {
  color: var(--ink);
  font-weight: 800;
}

.deadline-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.deadline-list article {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.deadline-list span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.deadline-list strong {
  line-height: 1.25;
}

.deadline-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.daily-champion-panel {
  background:
    linear-gradient(135deg, rgba(244, 181, 28, 0.16), transparent 56%),
    #ffffff;
}

.daily-champion-card,
.daily-champion-empty {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.daily-champion-top {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(246, 217, 130, 0.16), transparent 48%),
    var(--navy);
  color: #ffffff;
}

.daily-champion-top span {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-champion-top strong {
  font-size: 20px;
  line-height: 1.12;
  text-transform: capitalize;
}

.daily-champion-winner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: end;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.daily-champion-winner em {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.daily-champion-winner b {
  overflow: hidden;
  color: #ffffff;
  font-size: 25px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-champion-winner i {
  display: inline-grid;
  min-height: 30px;
  padding: 0 10px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: #1b1710;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
}

.daily-champion-card p,
.daily-champion-empty span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.daily-champion-empty strong {
  font-size: 18px;
}

.daily-champion-list {
  display: grid;
  gap: 8px;
}

.daily-champion-list div {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.daily-champion-list span,
.daily-champion-list b {
  color: var(--coral);
  font-weight: 900;
}

.accent-panel {
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(246, 217, 130, 0.14), transparent 40%),
    var(--navy);
  color: #ffffff;
}

.accent-panel .eyebrow {
  color: var(--gold-light);
}

.accent-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.league-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.league-list-panel {
  grid-column: 1 / -1;
}

.admin-league-panel {
  border-color: rgba(71, 74, 74, 0.22);
  background: #f7f8f7;
}

.admin-league-members-panel {
  grid-column: span 2;
}

.admin-leagues-section .admin-league-members-panel {
  grid-column: auto;
}

.admin-leagues-section .admin-league-list-panel {
  grid-column: 1 / -1;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-tabs,
.admin-results-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(71, 74, 74, 0.05);
}

.admin-tabs button,
.admin-results-tabs button {
  position: relative;
  min-width: 136px;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.admin-tabs button.is-active,
.admin-results-tabs button.is-active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 26, 26, 0.14);
}

.tab-unread-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 7px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.admin-results-tabs {
  margin-bottom: 0;
}

.super-admin-org-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.platform-view {
  gap: 22px;
}

.platform-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(0, 83, 145, 0.08), transparent 48%),
    linear-gradient(90deg, rgba(11, 143, 97, 0.1), transparent 34%),
    #ffffff;
}

.platform-hero h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.platform-hero p:last-child {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.platform-hero-badge {
  display: grid;
  gap: 5px;
  min-width: 190px;
  padding: 18px;
  border: 1px solid rgba(0, 83, 145, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 38px rgba(20, 33, 61, 0.08);
}

.platform-hero-badge span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.platform-hero-badge strong {
  color: var(--fifa-blue);
  font-size: 22px;
  font-weight: 950;
}

.super-admin-org-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 143, 97, 0.08), transparent 46%),
    #ffffff;
}

.super-admin-org-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 14px;
  align-items: center;
}

.super-admin-org-topline > div {
  display: grid;
  gap: 5px;
}

.super-admin-org-topline span,
.platform-detail-title span,
.platform-status-control span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.super-admin-org-topline strong {
  color: var(--ink);
  font-size: 20px;
}

.super-admin-org-topline small {
  color: var(--green-dark);
  font-weight: 900;
}

.platform-status-control {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.platform-status-control select {
  min-width: 148px;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(11, 143, 97, 0.24);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 950;
}

.super-admin-org-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.super-admin-org-stats div {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(245, 248, 246, 0.92);
}

.super-admin-org-stats dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.super-admin-org-stats dd {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.platform-tenant-detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 2px;
}

.platform-tenant-detail section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(20, 33, 61, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.platform-tenant-users {
  grid-column: 1 / -1;
}

.platform-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
}

.platform-mini-list {
  display: grid;
  gap: 8px;
}

.platform-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.platform-mini-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.platform-mini-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-mini-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-mini-row.is-empty {
  background: rgba(245, 248, 246, 0.78);
}

.platform-row-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.07);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.platform-row-badge.is-active {
  background: rgba(11, 143, 97, 0.12);
  color: var(--green-dark);
}

.platform-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.platform-inline-form input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
}

.platform-inline-form button,
.compact-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 950;
}

.super-admin-api-note {
  border-color: rgba(0, 83, 145, 0.18);
  background: linear-gradient(135deg, rgba(0, 83, 145, 0.08), rgba(255, 255, 255, 0.95));
}

.platform-api-checklist {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.platform-api-checklist li {
  padding: 8px 10px;
  border: 1px solid rgba(0, 83, 145, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.support-banner {
  position: sticky;
  top: 104px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 auto;
  max-width: 1280px;
  padding: 10px 18px;
  border: 1px solid rgba(215, 168, 63, 0.48);
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, rgba(255, 248, 218, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 14px 28px rgba(20, 33, 61, 0.08);
}

.support-banner div {
  display: grid;
  gap: 2px;
}

.support-banner strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.support-banner span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.support-banner button {
  padding: 0 14px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 950;
}

.commercial-banner {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 35;
  display: grid;
  width: min(320px, calc(100vw - 32px));
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(11, 143, 97, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 143, 97, 0.1), rgba(0, 83, 145, 0.05)),
    #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 20px 46px rgba(20, 33, 61, 0.16);
}

.commercial-banner[hidden] {
  display: none;
}

.commercial-banner strong {
  font-size: 15px;
  line-height: 1.25;
}

.commercial-banner span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.commercial-banner b {
  width: fit-content;
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(42, 57, 141, 0.28);
  outline-offset: 2px;
}

.nav-button:focus-visible,
.league-selector-trigger:focus-visible,
.language-switcher button:focus-visible {
  box-shadow:
    0 0 0 3px rgba(42, 57, 141, 0.16),
    0 8px 18px rgba(20, 33, 61, 0.08);
}

.platform-section-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 14px 0;
}

.platform-section-tabs button {
  position: relative;
  min-height: 48px;
  border: 1px solid rgba(11, 143, 97, 0.16);
  background: linear-gradient(135deg, rgba(11, 143, 97, 0.06), #ffffff);
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
}

.platform-section-tabs button.is-active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 26, 26, 0.14);
}

.platform-section-tabs span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: #ffffff;
  font-size: 10px;
}

.platform-section-content {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.platform-list-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.platform-list-toolbar label,
.platform-search-inline {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.platform-list-toolbar input,
.platform-search-inline input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-transform: none;
}

.platform-list-toolbar strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.platform-tenant-table {
  display: grid;
  gap: 7px;
}

.platform-tenant-table-head,
.platform-tenant-row {
  display: grid;
  grid-template-columns: 88px minmax(180px, 1fr) 74px 72px 82px 82px 104px;
  gap: 10px;
  align-items: center;
}

.platform-tenant-table-head {
  padding: 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.platform-tenant-row {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.platform-tenant-row.is-selected {
  border-color: rgba(11, 143, 97, 0.35);
  background: linear-gradient(90deg, rgba(11, 143, 97, 0.09), #ffffff);
}

.platform-tenant-row.is-expired {
  border-color: rgba(230, 29, 37, 0.22);
}

.platform-tenant-row strong {
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
}

.platform-tenant-row span,
.platform-tenant-row b,
.platform-tenant-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-tenant-row span {
  font-weight: 950;
}

.platform-tenant-row b {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.platform-tenant-row em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 950;
}

.platform-empty-state {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px dashed rgba(20, 33, 61, 0.18);
  border-radius: 8px;
  background: rgba(245, 248, 246, 0.82);
}

.platform-tenant-detail-card,
.platform-usage-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(11, 143, 97, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 143, 97, 0.08), transparent 42%),
    #ffffff;
}

.platform-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.platform-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.platform-detail-header h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.platform-detail-header span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 850;
}

.platform-tenant-settings {
  grid-column: 1 / -1;
}

.platform-settings-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.platform-settings-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.platform-settings-form input,
.platform-settings-form select,
.form-stack select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 850;
}

.platform-settings-form button {
  min-height: 42px;
  padding: 0 14px;
}

.platform-limit-bars,
.platform-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.platform-limit-bars article {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-radius: 8px;
  background: rgba(245, 248, 246, 0.9);
}

.platform-limit-bars span,
.platform-usage-card > div > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.platform-limit-bars strong,
.platform-usage-card > div > strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.platform-global-results {
  display: grid;
  gap: 14px;
}

.platform-result-panel,
.platform-log-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(20, 33, 61, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.platform-notification-list {
  padding: 0;
}

.platform-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 2px;
}

.platform-pagination button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
}

.platform-pagination button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.platform-pagination span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-split label {
  display: grid;
  gap: 8px;
}

.admin-section,
.admin-results-panel {
  display: none;
}

.admin-section.is-active,
.admin-results-panel.is-active {
  display: grid;
}

.form-stack {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.form-stack label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.form-stack input {
  width: 100%;
  padding: 0 12px;
}

.inline-field {
  display: flex;
  gap: 8px;
}

.inline-field input {
  width: 100%;
  padding: 0 12px;
}

.inline-field button {
  padding: 0 14px;
}

.primary-button {
  width: 100%;
}

.league-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.league-row strong {
  display: block;
  margin-bottom: 4px;
}

.league-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.league-actions {
  display: flex;
  gap: 8px;
}

.league-actions button {
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--green-dark);
  font-weight: 850;
}

.league-actions button.is-selected {
  background: var(--green-dark);
  color: #ffffff;
}

.league-actions .danger-button {
  background: #ffffff;
  color: var(--coral);
}

.league-actions button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.68;
}

.admin-result-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-user-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.admin-user-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 14px 0;
}

.admin-user-search {
  display: grid;
  gap: 5px;
}

.admin-user-search span,
.admin-user-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-user-search input {
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 850;
}

.admin-user-search input:focus {
  border-color: rgba(42, 57, 141, 0.42);
  outline: 3px solid rgba(34, 102, 179, 0.1);
}

.admin-user-count {
  padding-bottom: 11px;
  white-space: nowrap;
}

.approval-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.approval-row,
.approval-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.approval-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(150px, 0.8fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.approval-row strong,
.approval-empty strong {
  display: block;
  margin-bottom: 4px;
}

.approval-row em,
.approval-empty span {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.approval-row span {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.approval-row b {
  color: var(--green-dark);
}

.approval-actions {
  display: flex;
  gap: 8px;
}

.approval-actions button {
  padding: 0 12px;
}

.approval-actions .clear-result {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--green-dark);
}

.approval-empty {
  padding: 14px;
}

.notification-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.notification-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.notification-row.is-unread {
  border-color: rgba(255, 19, 44, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 19, 44, 0.06), transparent 44%),
    #ffffff;
}

.notification-row.is-empty {
  grid-template-columns: 1fr;
}

.notification-status {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #c7cfcb;
}

.notification-row.is-unread .notification-status {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 19, 44, 0.08);
}

.notification-row strong {
  display: block;
  margin-bottom: 4px;
}

.notification-row span,
.notification-row em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.notification-row em {
  margin-top: 5px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.notification-row button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.notification-row button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.7;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-user-row strong {
  display: block;
  margin-bottom: 4px;
}

.admin-user-row em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.admin-user-leagues {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-user-leagues span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #f1f5f2;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.admin-user-leagues b {
  color: var(--muted);
}

.admin-user-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.admin-user-meta span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-user-meta b {
  color: var(--coral);
}

.admin-user-meta button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.admin-user-meta button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.62;
}

.admin-result-card {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1.25fr);
  gap: 18px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-result-info {
  display: grid;
  gap: 12px;
  align-content: start;
}

.admin-result-info > strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 18px;
}

.admin-result-card em,
.admin-note span,
.admin-summary span {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.admin-score-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 128px);
  gap: 12px;
  align-items: start;
  justify-items: stretch;
}

.admin-score-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-score-inputs input {
  width: 58px;
  text-align: center;
}

.admin-qualifier-select {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  width: 100%;
  max-width: none;
}

.admin-qualifier-select span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-qualifier-select select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.admin-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-actions button {
  width: 100%;
  padding: 0 12px;
}

.admin-actions .clear-result {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--green-dark);
}

.admin-actions .clear-result:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.68;
}

.admin-note,
.admin-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.admin-demo-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-demo-actions .ghost-button,
.admin-demo-actions .primary-button {
  width: 100%;
  min-height: 44px;
}

.admin-demo-field {
  display: grid;
  gap: 6px;
}

.admin-demo-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-demo-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

.admin-demo-field input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(34, 102, 179, 0.14);
}

.admin-demo-actions .danger-button {
  color: var(--coral);
}

.admin-demo-actions .danger-button:hover {
  border-color: rgba(230, 29, 37, 0.32);
  background: rgba(230, 29, 37, 0.07);
}

.admin-demo-actions span {
  line-height: 1.4;
}

.admin-note strong,
.admin-summary strong {
  font-size: 24px;
}

.admin-summary article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.admin-summary article:last-child {
  border-bottom: 0;
}

.phase2-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(60, 172, 59, 0.12), transparent 48%),
    var(--surface-strong);
}

.phase2-hero h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
}

.phase2-hero p:last-child {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.phase2-status-badge {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  text-align: center;
}

.phase2-status-badge span,
.phase2-status-badge small {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.phase2-status-badge strong {
  font-size: 36px;
  line-height: 1;
}

.phase2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.phase2-roadmap,
.phase2-invite-list,
.phase2-role-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.phase2-step,
.phase2-invite-row,
.phase2-empty,
.phase2-role-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.phase2-step label {
  display: grid;
  grid-template-columns: 24px 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  cursor: pointer;
}

.phase2-step input {
  width: 18px;
  height: 18px;
  margin-top: 8px;
  accent-color: var(--green-dark);
}

.phase2-step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #edf0ed;
  color: var(--navy);
  font-weight: 950;
}

.phase2-step-copy {
  display: grid;
  gap: 6px;
}

.phase2-step-copy strong,
.phase2-invite-row strong,
.phase2-role-list strong,
.phase2-sync-top strong,
.phase2-empty strong {
  color: var(--ink);
}

.phase2-step-copy span,
.phase2-invite-row span,
.phase2-role-list span,
.phase2-sync-top span,
.phase2-empty span {
  color: var(--muted);
  line-height: 1.45;
}

.phase2-step-copy b {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f2;
  color: var(--green-dark);
  font-size: 12px;
}

.phase2-step.is-done {
  border-color: rgba(31, 112, 36, 0.35);
  background: #f7fbf7;
}

.phase2-step.is-done .phase2-step-number {
  background: var(--green-dark);
  color: #ffffff;
}

.phase2-sync-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.phase2-sync-top {
  display: grid;
  gap: 4px;
}

.phase2-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.phase2-stat-grid article {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.phase2-stat-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.phase2-stat-grid strong {
  color: var(--coral);
  font-size: 22px;
}

.phase2-actions {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.secondary-button,
.secondary-upload-button {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--green-dark);
  font-weight: 850;
  text-align: center;
  cursor: pointer;
}

.phase2-invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.phase2-invite-actions {
  display: flex;
  gap: 8px;
}

.phase2-invite-actions button {
  padding: 0 12px;
}

.phase2-invite-actions .clear-result {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--green-dark);
}

.phase2-empty,
.phase2-role-list article {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.phase2-bottom-grid {
  align-items: start;
}

.form-stack select {
  min-height: 40px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.form-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(0, 83, 145, 0.14);
  border-radius: 8px;
  background: #f3f8fb;
}

.form-note strong {
  color: var(--ink);
}

.form-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.league-member-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.league-member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.league-member-row strong {
  display: block;
  margin-bottom: 4px;
}

.league-member-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.league-member-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.league-member-meta b {
  color: var(--green-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.league-member-meta button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 850;
}

.league-member-meta button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.68;
}

.scoring-form {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.scoring-editor {
  display: grid;
  gap: 14px;
}

.scoring-group {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.scoring-group-heading {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(60, 172, 59, 0.08), rgba(0, 83, 145, 0.06));
}

.scoring-group-heading strong {
  font-size: 17px;
}

.scoring-group-heading span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.scoring-rule-list {
  display: grid;
}

.scoring-rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.scoring-rule-row.is-disabled {
  background: rgba(71, 74, 74, 0.035);
}

.scoring-rule-row.is-disabled .scoring-rule-copy,
.scoring-rule-row.is-disabled .scoring-control {
  opacity: 0.58;
}

.scoring-rule-copy {
  display: grid;
  gap: 4px;
}

.scoring-rule-copy strong {
  color: var(--ink);
}

.scoring-rule-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.scoring-rule-actions {
  display: grid;
  grid-template-columns: auto minmax(88px, 1fr);
  gap: 10px;
  align-items: center;
}

.rule-toggle {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 6px;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(11, 143, 97, 0.18);
  border-radius: 8px;
  background: rgba(11, 143, 97, 0.08);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.rule-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.scoring-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.scoring-control input {
  min-height: 42px;
  width: 100%;
  border: 0;
  background: #ffffff;
  text-align: center;
  font-weight: 950;
}

.scoring-control b {
  padding: 0 10px;
  color: var(--green-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.challenge-match-button {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(223, 177, 57, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 237, 180, 0.92), rgba(255, 255, 255, 0.9));
  color: var(--ink);
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(223, 177, 57, 0.12);
}

.challenge-match-button span {
  font-size: 16px;
  line-height: 1;
}

.challenge-match-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.challenge-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.challenge-tabs button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 950;
}

.challenge-tabs button.is-active {
  background: var(--ink);
  color: #ffffff;
}

.challenge-tabs span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  place-items: center;
  border-radius: 999px;
  background: rgba(11, 143, 97, 0.1);
  color: inherit;
  font-size: 12px;
}

.challenge-list {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.challenge-card,
.challenge-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.challenge-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.challenge-card.is-pending {
  border-color: rgba(223, 177, 57, 0.38);
  background: linear-gradient(135deg, rgba(255, 245, 216, 0.7), #ffffff 60%);
}

.challenge-card.is-resolved {
  border-color: rgba(11, 143, 97, 0.24);
}

.challenge-card.is-highlighted {
  box-shadow: 0 0 0 3px rgba(223, 177, 57, 0.22);
}

.challenge-card-main {
  display: grid;
  gap: 4px;
}

.challenge-card-main > span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.challenge-card-main strong {
  font-size: 18px;
}

.challenge-card-main small,
.challenge-card-main em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.challenge-card-main em {
  color: var(--green-dark);
  font-weight: 900;
}

.challenge-card-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.challenge-card-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 950;
}

.challenge-card-actions button:first-child {
  background: var(--green);
  color: #ffffff;
}

.challenge-card-actions button:disabled {
  background: #eef2ef;
  color: var(--muted);
  cursor: not-allowed;
}

.challenge-empty {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.challenge-empty span {
  color: var(--muted);
  line-height: 1.45;
}

.challenge-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 28, 0.44);
}

.challenge-modal {
  position: relative;
  display: grid;
  width: min(520px, 100%);
  gap: 14px;
  border: 1px solid rgba(223, 177, 57, 0.34);
  border-radius: 10px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(20, 33, 61, 0.24);
}

.challenge-modal h3 {
  margin: 0;
  font-size: 28px;
}

.challenge-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.challenge-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
}

.challenge-modal form,
.challenge-modal label {
  display: grid;
  gap: 7px;
}

.challenge-modal label > span,
.challenge-modal small,
.challenge-settings-grid label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.challenge-modal input,
.challenge-settings-grid input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.challenge-rival-list {
  display: grid;
  max-height: 236px;
  gap: 8px;
  overflow: auto;
}

.challenge-rival-list label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.challenge-rival-list label.is-selected {
  border-color: rgba(11, 143, 97, 0.34);
  background: rgba(11, 143, 97, 0.06);
}

.challenge-rival-list small {
  display: block;
}

.challenge-notification-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(360px, calc(100vw - 26px));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 18px 46px rgba(20, 33, 61, 0.18);
}

.challenge-notification-popover > strong {
  display: block;
  margin-bottom: 8px;
}

.challenge-notification-list {
  display: grid;
  gap: 8px;
}

.challenge-notification-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  text-align: left;
}

.challenge-notification-list button.is-unread {
  border-color: rgba(255, 19, 44, 0.22);
  background: linear-gradient(90deg, rgba(255, 19, 44, 0.06), #ffffff 66%);
}

.challenge-notification-list span {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
}

.challenge-notification-list small,
.challenge-notification-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.challenge-settings-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(120px, 1fr));
  gap: 12px;
  padding: 14px;
}

.challenge-main-toggle {
  min-height: 42px;
  align-self: end;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 850;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1101px) and (max-width: 1500px) {
  .topbar {
    grid-template-columns: 82px minmax(0, 1fr) minmax(250px, auto);
    grid-template-areas:
      "brand nav nav"
      "brand league account";
    gap: 8px 14px;
    align-items: center;
    padding: 10px 22px;
  }

  .app-shell.is-platform-shell .topbar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand . account";
  }

  .brand {
    grid-area: brand;
    align-self: start;
    min-width: 0;
  }

  .app-shell.is-platform-shell .brand {
    align-self: center;
  }

  .brand-logo {
    width: 76px;
    height: 76px;
  }

  .nav-groups {
    grid-area: nav;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
  }

  .app-nav {
    gap: 3px;
    min-height: 46px;
    padding: 4px;
  }

  .app-nav-home,
  .app-nav-admin {
    min-width: 60px;
  }

  .app-nav-pool {
    gap: 5px;
    min-width: min(100%, 470px);
  }

  .app-nav-worldcup {
    gap: 5px;
    min-width: 270px;
  }

  .pool-nav-badge {
    min-width: 86px;
    padding: 4px 7px 4px 4px;
  }

  .pool-nav-badge em,
  .worldcup-nav-badge em {
    display: none;
  }

  .worldcup-nav-badge {
    gap: 6px;
    min-width: 106px;
  }

  .worldcup-nav-badge img {
    width: 28px;
    height: 28px;
  }

  .nav-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
    line-height: 1.1;
    white-space: normal;
  }

  .nav-icon-button {
    width: 42px;
    min-width: 42px;
  }

  .league-pill {
    grid-area: league;
    justify-self: end;
    width: min(100%, 430px);
    max-width: 430px;
  }

  .account-pill {
    grid-area: account;
    justify-self: end;
    max-width: 310px;
  }

  .account-pill strong {
    overflow: hidden;
    max-width: 170px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .workspace {
    width: min(1220px, calc(100% - 24px));
    padding-top: 20px;
  }

  .commercial-banner {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .auth-copy {
    padding: 18px 0 0;
  }

  .auth-brand {
    justify-content: center;
    margin-bottom: 30px;
  }

  .brand-logo-login {
    width: min(560px, 86vw);
    min-height: 106px;
    padding: 16px 24px;
  }

  .auth-card {
    width: min(100%, 520px);
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .nav-groups {
    flex-wrap: wrap;
  }

  .app-nav {
    justify-content: center;
    overflow-x: visible;
  }

  .app-nav-worldcup {
    min-width: min(100%, 360px);
  }

  .app-nav-pool {
    min-width: min(100%, 500px);
  }

  .league-pill {
    justify-self: stretch;
    justify-content: center;
    width: 100%;
    max-width: none;
  }

  .league-selector {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 42px 8px 14px;
  }

  .league-selector-trigger {
    width: 100%;
  }

  .evolution-summary {
    grid-template-columns: 1fr;
  }

  .evolution-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .world-champion-card {
    position: static;
    width: min(100%, 520px);
    margin: 0 auto 18px;
    transform: none;
  }

  .account-pill {
    justify-self: stretch;
    justify-content: space-between;
  }

  .platform-list-toolbar {
    grid-template-columns: 1fr;
  }

  .platform-tenant-table-head {
    display: none;
  }

  .platform-tenant-row {
    grid-template-columns: 78px minmax(0, 1fr) 70px;
  }

  .platform-tenant-row b:nth-of-type(2),
  .platform-tenant-row b:nth-of-type(3),
  .platform-tenant-row b:nth-of-type(4),
  .platform-tenant-row em {
    display: none;
  }

  .platform-settings-form {
    grid-template-columns: 1fr;
  }

  .platform-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-detail-actions {
    justify-content: stretch;
  }

  .platform-detail-actions button {
    flex: 1;
  }

  .hero-panel,
  .next-action-panel,
  .content-grid,
  .tournament-grid,
  .rules-grid,
  .league-grid,
  .phase2-hero,
  .phase2-grid {
    grid-template-columns: 1fr;
  }

  .league-pulse-panel.has-challenge-home .pulse-challenges-card {
    grid-column: auto;
  }

  .full-standings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-hero {
    grid-template-columns: 1fr;
  }

  .next-action-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fifa-rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy {
    padding: 0 24px;
  }

  .deadline-card {
    margin: 0 24px 24px;
  }

  .score-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .matchday-tabs,
  .matchday-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pulse-feature,
  .pulse-card {
    min-height: 220px;
  }

  .platform-section-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-tenant-table-head {
    display: none;
  }

  .platform-tenant-row {
    grid-template-columns: 70px minmax(0, 1fr) repeat(2, 58px);
  }

  .platform-tenant-row b:nth-of-type(3),
  .platform-tenant-row em {
    display: none;
  }

  .platform-settings-form,
  .platform-limit-bars,
  .platform-usage-grid {
    grid-template-columns: 1fr;
  }

  .platform-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .support-banner {
    position: static;
    margin: 0 12px;
    border-radius: 8px;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 16px;
  }

  .auth-layout,
  .auth-steps {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 70px;
    height: 70px;
  }

  .brand-logo-auth {
    width: 104px;
    height: 104px;
  }

  .brand-logo-login {
    width: min(360px, 80vw);
    min-height: 92px;
    height: auto;
    padding: 14px 20px;
  }

  .fifa-rules-grid {
    grid-template-columns: 1fr;
  }

  .next-action-main h2 {
    font-size: 25px;
  }

  .pulse-feature .challenge-feed-title {
    gap: 14px;
    font-size: clamp(34px, 8.5vw, 46px);
  }

  .challenge-feed-mark {
    width: 52px;
    height: 52px;
  }

  .challenge-feed-mark svg {
    width: 28px;
    height: 28px;
  }

  .next-action-status {
    grid-template-columns: 1fr;
  }

  .pulse-metrics,
  .hot-match-split {
    grid-template-columns: 1fr;
  }

  .auth-copy h2 {
    font-size: 32px;
  }

  .auth-copy p {
    font-size: 15px;
  }

  .ranking-evolution {
    padding: 12px;
  }

  .evolution-summary strong {
    font-size: 20px;
  }

  .evolution-legend {
    grid-template-columns: 1fr;
  }

  .evolution-svg {
    min-width: 700px;
  }

  .auth-steps article {
    min-height: 70px;
    border-right: 0;
    border-bottom: 1px solid rgba(71, 74, 74, 0.14);
  }

  .auth-steps article:last-child {
    border-bottom: 0;
  }

  .topbar {
    position: static;
    padding: 16px;
  }

  .brand h1 {
    font-size: 22px;
  }

  .nav-groups {
    align-items: stretch;
    flex-direction: column;
  }

  .app-nav {
    justify-content: flex-start;
  }

  .nav-button {
    flex: 0 0 auto;
  }

  .nav-dropdown {
    flex: 0 0 auto;
  }

  .app-nav-worldcup {
    align-items: stretch;
    min-width: 0;
  }

  .app-nav-pool {
    align-items: stretch;
    min-width: 0;
  }

  .pool-nav-badge {
    min-width: 98px;
  }

  .worldcup-nav-badge {
    min-width: 118px;
  }

  .worldcup-nav-actions {
    flex: 1;
    justify-content: flex-end;
  }

  .league-pill {
    display: none;
  }

  .workspace {
    width: min(100% - 20px, 1220px);
    padding-top: 12px;
  }

  .score-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .matchday-tabs,
  .matchday-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-strip article {
    padding: 14px;
  }

  .score-strip strong {
    font-size: 24px;
  }

  .hero-copy h2,
  .rules-hero h2 {
    font-size: 28px;
  }

  .match-card,
  .compact-match,
  .admin-result-card,
  .admin-user-row,
  .approval-row,
  .league-member-row,
  .league-row,
  .phase2-invite-row {
    grid-template-columns: 1fr;
  }

  .admin-user-meta {
    justify-items: start;
  }

  .admin-user-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-user-count {
    padding-bottom: 0;
  }

  .full-standings {
    grid-template-columns: 1fr;
  }

  .pick-form {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .pick-qualifier > div {
    grid-template-columns: 1fr;
  }

  .pick-inputs {
    justify-content: space-between;
  }

  .score-team-row {
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  .save-pick {
    width: 100%;
  }

  .inline-field,
  .admin-actions,
  .admin-tabs,
  .admin-results-tabs,
  .approval-actions,
  .league-actions,
  .phase2-invite-actions {
    flex-direction: column;
  }

  .admin-tabs {
    width: 100%;
  }

  .admin-results-tabs {
    width: 100%;
  }

  .admin-tabs button,
  .admin-results-tabs button {
    width: 100%;
  }

  .phase2-step label {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .phase2-step-number {
    display: none;
  }

  .phase2-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-score-controls {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .super-admin-org-card,
  .super-admin-org-stats,
  .platform-tenant-detail {
    grid-template-columns: 1fr;
  }

  .super-admin-org-topline,
  .platform-inline-form,
  .platform-mini-row {
    grid-template-columns: 1fr;
  }

  .platform-status-control {
    justify-items: stretch;
  }

  .admin-league-members-panel {
    grid-column: auto;
  }

  .league-member-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .scoring-rule-row,
  .scoring-rule-actions,
  .scoring-control {
    grid-template-columns: 1fr;
  }

  .admin-score-inputs input {
    width: 100%;
  }

  .admin-qualifier-select {
    max-width: none;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background:
      linear-gradient(180deg, #f2f5f2 0 160px, #ffffff 160px 520px, #f4f5f4 520px),
      var(--bg);
  }

  .auth-shell {
    align-content: start;
    min-height: 100svh;
    padding: 14px;
    overflow-y: auto;
  }

  .auth-shell::after {
    display: none;
  }

  .auth-shell::before {
    right: -160px;
    bottom: -280px;
    opacity: 0.035;
  }

  .auth-brand {
    justify-content: center;
    margin: 0 auto 14px;
  }

  .brand-logo-auth {
    width: 88px;
    height: 88px;
  }

  .brand-logo-login {
    width: min(390px, 88vw);
    min-height: 98px;
    height: auto;
    padding: 14px 22px;
  }

  .auth-layout {
    gap: 18px;
    align-items: start;
  }

  .auth-card {
    order: -1;
    width: 100%;
    padding: 18px;
  }

  .auth-copy {
    gap: 14px;
    padding: 0 2px 24px;
    text-align: center;
  }

  .auth-copy h2 {
    max-width: none;
    font-size: 30px;
    line-height: 1.06;
  }

  .auth-copy p {
    max-width: none;
    font-size: 15px;
    line-height: 1.5;
  }

  .auth-steps {
    margin-top: 0;
    text-align: left;
  }

  .auth-form input {
    min-height: 50px;
    font-size: 16px;
  }

  .auth-form .primary-button,
  .auth-tabs button {
    min-height: 50px;
  }

  .topbar {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    border-bottom-color: rgba(71, 74, 74, 0.14);
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .account-pill {
    justify-self: end;
    min-height: 44px;
    max-width: 180px;
    padding: 5px 5px 5px 9px;
  }

  .account-pill span {
    display: none;
  }

  .account-pill strong {
    overflow: hidden;
    max-width: 92px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-pill button {
    min-height: 34px;
  }

  .league-pill {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: flex !important;
    width: 100%;
    max-width: none;
  }

  .league-selector {
    min-height: 48px;
    padding: 6px 42px 6px 12px;
  }

  .league-selector > span {
    font-size: 11px;
  }

  .league-selector-trigger strong {
    font-size: 14px;
  }

  .league-selector-menu {
    left: 0;
    right: 0;
    max-height: 50svh;
    overflow-y: auto;
  }

  .nav-groups {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .app-nav {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 4px;
    scroll-snap-align: start;
  }

  .app-nav-home,
  .app-nav-admin {
    min-width: 54px;
  }

  .app-nav-pool,
  .app-nav-worldcup {
    min-width: max-content;
  }

  .pool-nav-badge,
  .worldcup-nav-badge {
    display: none;
  }

  .worldcup-nav-actions {
    flex: initial;
  }

  .nav-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .nav-icon-button {
    width: 44px;
    min-width: 44px;
  }

  .nav-dropdown-menu {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    min-width: 0;
  }

  .workspace {
    width: min(100% - 14px, 1220px);
    padding: 12px 0 34px;
  }

  .next-action-panel {
    gap: 0;
  }

  .next-action-main {
    gap: 10px;
    padding: 18px;
  }

  .next-action-main h2 {
    font-size: 26px;
    line-height: 1.08;
  }

  .next-action-main p {
    font-size: 14px;
    line-height: 1.45;
  }

  .next-action-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .next-action-actions button,
  .light-button,
  .primary-button,
  .save-pick {
    min-height: 48px;
  }

  .next-action-status {
    padding: 0 18px 18px;
  }

  .score-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .score-strip article {
    min-height: 86px;
    padding: 13px;
  }

  .score-strip span {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .score-strip strong {
    font-size: 24px;
  }

  .content-grid,
  .rules-grid,
  .league-grid,
  .tournament-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .primary-column,
  .side-column,
  .ranking-page-stack {
    gap: 14px;
  }

  .panel {
    border-radius: 8px;
  }

  .section-heading {
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }

  .section-heading h2,
  .accent-panel h2 {
    font-size: 20px;
  }

  .matchday-tabs,
  .knockout-tabs {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 12px 0;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .matchday-tab {
    flex: 0 0 132px;
    min-height: 58px;
    padding: 8px 10px;
    scroll-snap-align: start;
  }

  .knockout-tabs .matchday-tab {
    flex-basis: 124px;
  }

  .matchday-tab span {
    font-size: 14px;
  }

  .matchday-tab strong,
  .matchday-tab em {
    font-size: 11px;
  }

  .matchday-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px 0;
  }

  .match-list,
  .compact-match-list,
  .standings,
  .rules-list,
  .league-list {
    gap: 9px;
    padding: 12px;
  }

  .match-card {
    gap: 12px;
    padding: 12px;
  }

  .match-card-info {
    gap: 10px;
  }

  .match-meta {
    gap: 6px;
  }

  .match-meta span {
    padding: 4px 7px;
    font-size: 11px;
  }

  .team-row,
  .score-team {
    gap: 8px;
  }

  .flag {
    width: 28px;
    height: 20px;
  }

  .team-name {
    font-size: 15px;
  }

  .pick-form {
    gap: 10px;
  }

  .score-team-row {
    grid-template-columns: minmax(0, 1fr) 64px;
    min-height: 56px;
    padding: 7px 8px 7px 10px;
  }

  .score-team-row input {
    width: 56px;
    min-height: 44px;
    font-size: 20px;
    font-weight: 900;
  }

  .pick-qualifier {
    padding: 10px;
  }

  .pick-qualifier > div {
    grid-template-columns: 1fr;
  }

  .pick-qualifier label {
    min-height: 44px;
  }

  .compact-match {
    grid-template-columns: 1fr auto;
    padding: 12px;
  }

  .compact-score {
    min-width: 62px;
  }

  .ranking-evolution {
    padding: 12px;
  }

  .ranking-evolution-large {
    padding: 12px;
  }

  .evolution-summary {
    gap: 12px;
  }

  .evolution-summary p {
    font-size: 14px;
    line-height: 1.45;
  }

  .evolution-mode-toggle {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evolution-mode-toggle button {
    min-height: 40px;
  }

  .evolution-chart-frame {
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
  }

  .evolution-svg {
    min-width: 760px;
  }

  .ranking-evolution-large .evolution-svg {
    min-width: 900px;
  }

  .evolution-legend {
    grid-template-columns: 1fr;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 2px;
  }

  .evolution-legend-item {
    min-height: 44px;
  }

  .leaderboard li {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 58px;
    padding: 11px;
  }

  .rules-hero {
    padding: 20px;
  }

  .rules-hero h2 {
    font-size: 28px;
  }

  .rules-badge {
    justify-self: stretch;
  }

  .rules-list article {
    grid-template-columns: 58px 1fr;
    padding: 12px;
  }

  .fifa-rules-grid {
    grid-template-columns: 1fr;
  }

  .daily-champion-winner,
  .daily-champion-list div {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .commercial-banner {
    position: static;
    width: 100%;
    margin: 18px 0 0;
    box-shadow: 0 14px 32px rgba(20, 33, 61, 0.1);
  }

  .knockout-panel {
    width: 100%;
    margin-top: 14px;
    margin-left: 0;
    transform: none;
  }

  .knockout-bracket {
    padding: 12px;
  }

  .knockout-bracket.has-world-champion {
    padding-bottom: 12px;
  }

  .bracket-tree {
    display: none;
  }

  .bracket-mobile {
    display: grid;
    gap: 12px;
  }

  .world-champion-card {
    position: static;
    width: 100%;
    margin: 0 0 12px;
    transform: none;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .world-champion-card .flag {
    width: 82px;
    height: 58px;
  }

  .world-champion-card span {
    font-size: 12px;
  }

  .world-champion-card strong {
    font-size: 24px;
  }

  .bracket-mobile .knockout-match {
    min-height: 70px;
    padding: 10px;
    box-shadow: none;
  }

  .bracket-mobile .knockout-match::before,
  .bracket-mobile .knockout-match::after {
    display: none;
  }

  .bracket-mobile .bracket-team {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    min-height: 32px;
    font-size: 15px;
  }

  .bracket-mobile .bracket-team .flag {
    width: 32px;
    height: 23px;
  }

  .bracket-mobile .bracket-team b {
    width: 30px;
    height: 28px;
    font-size: 16px;
  }

  .bracket-mobile .bracket-team.is-placeholder {
    grid-template-columns: minmax(0, 1fr);
    min-height: 32px;
  }

  .bracket-mobile .bracket-team.is-placeholder > span:not(.slot-badge) {
    display: none;
  }

  .bracket-mobile .bracket-team.is-placeholder .slot-badge {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 28px;
    overflow: hidden;
    padding: 6px 9px;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .auth-card {
    padding: 16px;
  }

  .auth-copy h2 {
    font-size: 27px;
  }

  .account-pill {
    max-width: 148px;
  }

  .account-pill strong {
    max-width: 70px;
  }

  .nav-button {
    padding: 0 10px;
    font-size: 12px;
  }

  .score-strip {
    grid-template-columns: 1fr;
  }

  .matchday-summary {
    grid-template-columns: 1fr;
  }

  .score-team-row {
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  .score-team-row input {
    width: 52px;
  }

  .ranking-evolution-large .evolution-svg {
    min-width: 840px;
  }

  .compact-match {
    grid-template-columns: 1fr;
  }

  .compact-score {
    width: 100%;
  }
}

.account-pill .notification-button {
  min-width: 34px;
  padding: 0;
}

.account-pill .notification-button span {
  display: grid;
}

@media (max-width: 760px) {
  .app-shell.is-platform-shell .topbar {
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas: "brand account";
  }

  .platform-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .platform-hero h2 {
    font-size: 28px;
  }

  .platform-hero-badge {
    min-width: 0;
  }

  .topbar {
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas:
      "brand account"
      "league league"
      "nav nav";
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .brand {
    grid-area: brand;
    justify-self: start;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .account-pill {
    grid-area: account;
    justify-self: end;
    width: auto;
    max-width: min(310px, calc(100vw - 88px));
    min-height: 42px;
    padding: 5px 5px 5px 10px;
    border-radius: 8px;
    gap: 6px;
  }

  .account-pill strong {
    max-width: min(126px, calc(100vw - 218px));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-pill button {
    min-width: 46px;
    min-height: 34px;
    padding: 0 9px;
  }

  .account-pill .language-switcher {
    gap: 0;
    padding: 3px;
    border-color: rgba(11, 143, 97, 0.22);
    background: rgba(255, 255, 255, 0.95);
  }

  .account-pill .language-switcher button {
    width: 34px;
    min-width: 34px;
    min-height: 32px;
    padding: 0;
    border-color: rgba(11, 143, 97, 0.18);
    background: #ffffff;
    box-shadow: 0 7px 16px rgba(23, 26, 26, 0.08);
  }

  .account-pill .language-switcher span {
    display: block;
    font-size: 16px;
    line-height: 1;
  }

  .account-pill .language-switcher button.is-active {
    display: none;
  }

  .league-pill {
    grid-area: league;
    margin-top: 2px;
  }

  .league-selector {
    min-height: 58px;
    padding: 9px 40px 9px 12px;
  }

  .league-selector > span {
    align-self: start;
    min-height: auto;
    font-size: 11px;
  }

  .league-selector-trigger {
    min-height: auto;
  }

  .league-selector-trigger strong {
    font-size: 15px;
  }

  .nav-groups {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .app-nav,
  .app-nav-home,
  .app-nav-pool,
  .app-nav-worldcup,
  .app-nav-admin,
  .worldcup-nav-actions,
  .nav-dropdown {
    display: contents;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .pool-nav-badge,
  .worldcup-nav-badge,
  .nav-dropdown-menu {
    display: none !important;
  }

  .nav-button {
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 8px;
    border: 1px solid rgba(71, 74, 74, 0.14);
    border-radius: 8px;
    background:
      linear-gradient(135deg, rgba(11, 143, 97, 0.05), transparent 58%),
      #ffffff;
    box-shadow: 0 8px 18px rgba(20, 33, 61, 0.04);
    font-size: 11.5px;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
  }

  .nav-button.is-active {
    border-color: #121818;
    background: #121818;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(20, 33, 61, 0.14);
  }

  .nav-icon-button {
    width: 100%;
    min-width: 0;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 420px) {
  .topbar {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .account-pill {
    max-width: min(300px, calc(100vw - 82px));
  }

  .account-pill strong {
    max-width: min(108px, calc(100vw - 214px));
  }

  .nav-button {
    min-height: 42px;
    padding: 0 6px;
    font-size: 10.5px;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 60;
    box-sizing: border-box;
    grid-template-columns: 70px minmax(0, 1fr);
    grid-template-areas:
      "brand account"
      "league league"
      "nav nav";
    gap: 8px;
    width: 100%;
    padding: 10px 12px 12px;
    border-bottom: 1px solid rgba(71, 74, 74, 0.14);
    background: rgba(249, 251, 250, 0.97);
    box-shadow: 0 12px 28px rgba(20, 33, 61, 0.08);
    backdrop-filter: blur(14px);
    transition: padding 180ms ease, box-shadow 180ms ease;
  }

  .app-shell:not([hidden]) {
    padding-top: 248px;
  }

  .workspace {
    padding-top: 18px;
  }

  .brand {
    grid-area: brand;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .account-pill {
    grid-area: account;
  }

  .topbar.is-mobile-condensed {
    grid-template-columns: 1fr;
    grid-template-areas:
      "league"
      "nav";
    gap: 6px;
    padding: 7px 10px 8px;
    box-shadow: 0 12px 28px rgba(20, 33, 61, 0.1);
  }

  .topbar.is-mobile-condensed .brand,
  .topbar.is-mobile-condensed .account-pill {
    display: none;
  }

  .league-pill {
    grid-area: league;
    display: flex !important;
    width: 100%;
    max-width: none;
    margin-top: 0;
  }

  .league-selector {
    grid-template-columns: minmax(0, 1fr);
    min-height: 42px;
    padding: 7px 38px 7px 12px;
  }

  .league-selector > span {
    display: none;
  }

  .league-selector-trigger {
    justify-content: space-between;
    min-height: 28px;
  }

  .league-selector-trigger strong {
    font-size: 14px;
  }

  .league-selector-trigger em {
    font-size: 13px;
  }

  .nav-groups {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 7px;
    overflow: visible;
    padding: 0;
  }

  .app-nav-home,
  .app-nav-pool,
  .app-nav-worldcup {
    display: grid;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .worldcup-nav-actions,
  .nav-dropdown {
    display: contents;
    min-width: 0;
    min-height: 0;
  }

  .app-nav-home {
    grid-column: 1;
    grid-row: 1;
  }

  .app-nav-worldcup {
    grid-column: 2 / 4;
    grid-row: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .app-nav-pool {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .app-nav-admin {
    display: none !important;
  }

  .pool-nav-badge,
  .worldcup-nav-badge {
    display: none !important;
  }

  .nav-dropdown-menu {
    display: none !important;
  }

  .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    width: 100%;
    padding: 5px 6px;
    border: 1px solid rgba(71, 74, 74, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
  }

  .nav-icon-button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0;
    color: var(--ink);
    background: #ffffff;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
  }

  #league-nav-button {
    display: none;
  }

  .app-nav-home .nav-button {
    order: 1;
  }

  .worldcup-nav-actions .nav-button:nth-child(1) {
    order: 2;
  }

  .worldcup-nav-actions .nav-button:nth-child(2) {
    order: 3;
  }

  .app-nav-pool .nav-dropdown .nav-button {
    order: 4;
  }

  .app-nav-pool > .nav-button[data-view-target="ranking"] {
    order: 5;
  }

  .app-nav-pool > .nav-button[data-view-target="rules"] {
    order: 6;
  }

  .app-nav-pool .nav-button {
    border-color: rgba(11, 143, 97, 0.28);
    background:
      linear-gradient(135deg, rgba(11, 143, 97, 0.13), rgba(255, 255, 255, 0.9)),
      #ffffff;
    color: #245f3d;
  }

  .app-nav-worldcup .nav-button {
    border-color: rgba(0, 83, 145, 0.32);
    background:
      linear-gradient(135deg, rgba(0, 83, 145, 0.15), rgba(255, 255, 255, 0.88)),
      #ffffff;
    color: #174b78;
  }

  .app-nav-pool .nav-button.is-active {
    background: linear-gradient(135deg, #1f7024, #16825a);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(11, 143, 97, 0.2);
  }

  .app-nav-home .nav-button.is-active {
    background: var(--ink);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(20, 33, 61, 0.16);
  }

  .app-nav-worldcup .nav-button.is-active {
    background: var(--fifa-blue);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(0, 83, 145, 0.18);
  }

  .nav-groups {
    display: none !important;
  }

  .mobile-nav-grid {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(48px, auto));
    gap: 7px;
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .mobile-nav-grid .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 5px 6px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
  }

  .mobile-nav-grid .nav-icon-button {
    padding: 0;
  }

  .mobile-nav-grid .nav-icon {
    width: 18px;
    height: 18px;
  }

  .mobile-nav-home {
    grid-column: 1;
    grid-row: 1;
    border-color: rgba(71, 74, 74, 0.16);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
  }

  .mobile-nav-worldcup {
    border-color: rgba(0, 83, 145, 0.32);
    background:
      linear-gradient(135deg, rgba(0, 83, 145, 0.15), rgba(255, 255, 255, 0.9)),
      #ffffff;
    color: #174b78;
  }

  .mobile-nav-pool {
    border-color: rgba(11, 143, 97, 0.28);
    background:
      linear-gradient(135deg, rgba(11, 143, 97, 0.13), rgba(255, 255, 255, 0.9)),
      #ffffff;
    color: #245f3d;
  }

  .mobile-nav-home.is-active {
    background: var(--ink);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(20, 33, 61, 0.16);
  }

  .mobile-nav-worldcup.is-active {
    background: var(--fifa-blue);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(0, 83, 145, 0.18);
  }

  .mobile-nav-pool.is-active {
    background: linear-gradient(135deg, #1f7024, #16825a);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(11, 143, 97, 0.2);
  }

  .pulse-hot-card {
    touch-action: pan-y;
  }

  .hot-match-split {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hot-match-split article {
    min-height: 56px;
    padding: 9px 6px;
    place-items: center;
    text-align: center;
  }

  .hot-match-split span {
    font-size: 9px;
    white-space: nowrap;
  }

  .hot-match-split strong {
    font-size: 16px;
  }

  .hot-match-carousel-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 14px;
  }

  .hot-match-arrow {
    display: none;
  }

  .hot-match-dots {
    gap: 9px;
  }

  .hot-match-dots button {
    width: 9px;
    height: 9px;
    border: 1px solid rgba(215, 168, 63, 0.5);
    background: rgba(215, 168, 63, 0.18);
  }

  .hot-match-dots button.is-active {
    width: 11px;
    height: 11px;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(215, 168, 63, 0.16);
  }

  .hot-match-swipe-hint {
    display: block;
  }

  #view-ranking .side-column .panel:first-child {
    display: none;
  }

  .daily-champion-winner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .daily-champion-winner em,
  .daily-champion-winner b,
  .daily-champion-winner i {
    grid-column: 1 / -1;
  }

  .daily-champion-winner b {
    overflow: visible;
    white-space: normal;
    font-size: 22px;
    line-height: 1.12;
  }

  .daily-champion-winner i {
    justify-self: stretch;
    min-height: 28px;
  }

  #view-dashboard .evolution-panel,
  #view-ranking .ranking-page-stack > .evolution-panel {
    display: none;
  }

  #view-ranking .ranking-page-stack > .content-grid {
    margin-top: 0;
  }
}

@media (min-width: 761px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: none;
    gap: 14px;
    padding: 12px 24px;
  }

  .topbar > .brand {
    display: none;
    grid-area: auto;
  }

  .nav-groups,
  .league-pill,
  .account-pill {
    grid-area: auto;
  }

  .app-shell.is-platform-shell .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .app-shell.is-platform-shell .account-pill {
    grid-column: 2;
  }

  .nav-groups {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 7px;
    overflow: visible;
  }

  .app-nav {
    min-height: 48px;
    padding: 4px;
  }

  .app-nav-home,
  .app-nav-admin {
    min-width: 58px;
  }

  .app-nav-pool,
  .app-nav-worldcup {
    gap: 6px;
    min-width: 0;
  }

  .pool-nav-badge {
    display: grid;
    width: 46px;
    min-width: 46px;
    padding: 3px 7px 3px 3px;
    place-items: center;
  }

  .pool-nav-badge img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 6px;
  }

  .pool-nav-badge strong,
  .pool-nav-badge em {
    display: none;
  }

  .nav-button,
  .app-nav-worldcup .nav-button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 15px;
    white-space: nowrap;
  }

  .nav-icon-button {
    width: 46px;
    min-width: 46px;
  }

  .league-pill {
    justify-self: end;
    justify-content: flex-start;
    width: auto;
    min-width: 220px;
    max-width: 300px;
  }

  .league-selector {
    display: flex;
    min-height: 46px;
    overflow: visible;
    padding: 7px 38px 7px 12px;
  }

  .league-selector > span {
    display: none;
  }

  .league-selector-trigger {
    gap: 6px;
    min-height: 32px;
  }

  .league-selector-trigger strong {
    flex: 0 1 auto;
    max-width: 158px;
    font-size: 15px;
    line-height: 1.25;
  }

  .league-selector-trigger em {
    font-size: 14px;
    line-height: 1.25;
  }

  .league-selector-trigger em::before {
    color: rgba(11, 143, 97, 0.52);
    content: "· ";
  }

  .account-pill {
    position: relative;
    justify-self: end;
    justify-content: flex-start;
    gap: 6px;
    min-height: 44px;
    padding: 5px;
  }

  .account-avatar-button,
  .account-language-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(71, 74, 74, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: none;
  }

  .account-avatar-button:hover,
  .account-language-button:hover {
    background: #f4f8f5;
    color: var(--green-dark);
  }

  .account-avatar-button svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.1;
  }

  .account-language-button span {
    color: inherit;
    font-size: 16px;
    line-height: 1;
    text-transform: none;
  }

  .account-language-button .language-flag-svg {
    display: block;
    width: 22px;
    height: 16px;
    overflow: visible;
    border-radius: 3px;
    box-shadow: 0 3px 8px rgba(20, 33, 61, 0.08);
  }

  .account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 70;
    display: grid;
    min-width: 190px;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(20, 33, 61, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .account-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .account-menu span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .account-menu strong {
    max-width: 180px;
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-menu #auth-logout {
    width: 100%;
    min-height: 34px;
    margin-top: 3px;
    background: var(--ink);
    color: #ffffff;
  }

  .commercial-banner {
    right: 18px;
    bottom: 18px;
    display: grid !important;
    width: min(260px, calc(100vw - 32px));
    gap: 5px;
    padding: 12px 14px;
  }

  .commercial-banner[hidden] {
    display: none !important;
  }

  .commercial-banner strong {
    font-size: 14px;
  }

  .commercial-banner span {
    font-size: 12px;
  }

  .commercial-banner b {
    font-size: 11px;
  }

  .account-avatar-button:focus-visible,
  .account-language-button:focus-visible {
    box-shadow:
      0 0 0 3px rgba(42, 57, 141, 0.16),
      0 8px 18px rgba(20, 33, 61, 0.08);
  }
}

@media (min-width: 1101px) and (max-width: 1500px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(210px, auto) auto;
    gap: 10px;
    padding: 10px 16px;
  }

  .nav-groups {
    flex-wrap: nowrap;
    gap: 5px;
  }

  .app-nav {
    min-height: 44px;
    padding: 3px;
  }

  .app-nav-worldcup {
    gap: 4px;
  }

  .worldcup-nav-badge {
    width: 42px;
    min-width: 42px;
    padding: 3px 5px 3px 3px;
  }

  .worldcup-nav-badge span {
    display: none;
  }

  .worldcup-nav-badge img {
    width: 30px;
    height: 30px;
  }

  .nav-button,
  .app-nav-worldcup .nav-button {
    min-height: 38px;
    padding: 0 9px;
    font-size: 14px;
  }

  .league-pill {
    width: 240px;
    min-width: 220px;
    max-width: 240px;
  }

  .league-selector-trigger strong {
    max-width: 128px;
  }
}

@media (min-width: 761px) {
  .app-nav-pool {
    border-color: rgba(11, 143, 97, 0.24);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
      linear-gradient(135deg, rgba(39, 105, 75, 0.78), rgba(31, 93, 68, 0.66)),
      #ffffff;
    box-shadow: 0 12px 28px rgba(11, 143, 97, 0.09);
  }

  .app-nav-pool .pool-nav-badge {
    border-right-color: rgba(255, 255, 255, 0.18);
  }

  .app-nav-pool .pool-nav-badge img {
    padding: 0;
    background: transparent;
    box-shadow: 0 8px 18px rgba(23, 26, 26, 0.12);
  }

  .app-nav-pool .nav-button {
    color: rgba(255, 255, 255, 0.9);
  }

  .app-nav-pool .nav-button:hover,
  .app-nav-pool .nav-button:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .app-nav-pool .nav-button.is-active {
    background: #121818;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(17, 24, 24, 0.18);
  }

  .app-nav-worldcup {
    border-color: rgba(42, 57, 141, 0.22);
    background:
      linear-gradient(135deg, rgba(246, 217, 130, 0.15), transparent 46%),
      linear-gradient(135deg, rgba(53, 70, 103, 0.76), rgba(40, 57, 95, 0.64)),
      #ffffff;
    box-shadow: 0 12px 28px rgba(42, 57, 141, 0.09);
  }

  .app-nav-worldcup .worldcup-nav-badge {
    border-right-color: rgba(255, 255, 255, 0.18);
  }

  .app-nav-worldcup .worldcup-nav-badge strong {
    color: #ffffff;
  }

  .app-nav-worldcup .worldcup-nav-badge em {
    color: rgba(255, 255, 255, 0.7);
  }

  .app-nav-worldcup .nav-button {
    color: rgba(255, 255, 255, 0.88);
  }

  .app-nav-worldcup .nav-button:hover,
  .app-nav-worldcup .nav-button:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .app-nav-worldcup .nav-button.is-active {
    background: #005391;
    color: #ffffff;
  }

  .account-menu {
    width: max-content;
    min-width: 190px;
    max-width: min(360px, calc(100vw - 28px));
  }

  .account-menu strong {
    max-width: none;
    overflow: visible;
    white-space: normal;
  }

  .language-flag {
    display: block;
    width: 22px;
    height: 16px;
    overflow: hidden;
    border: 1px solid rgba(20, 33, 61, 0.16);
    border-radius: 3px;
    box-shadow: 0 3px 8px rgba(20, 33, 61, 0.08);
  }

  .language-flag-es {
    background:
      linear-gradient(
        180deg,
        #aa151b 0 25%,
        #f1bf00 25% 75%,
        #aa151b 75% 100%
      );
  }

  .language-flag-en {
    background:
      linear-gradient(0deg, transparent 42%, #ffffff 42% 58%, transparent 58%),
      linear-gradient(90deg, transparent 42%, #ffffff 42% 58%, transparent 58%),
      linear-gradient(0deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
      linear-gradient(90deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
      linear-gradient(33deg, transparent 45%, #ffffff 45% 55%, transparent 55%),
      linear-gradient(-33deg, transparent 45%, #ffffff 45% 55%, transparent 55%),
      #012169;
  }
}

@media (max-width: 760px) {
  .challenge-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .challenge-card {
    grid-template-columns: 1fr;
  }

  .challenge-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .challenge-card-actions button {
    width: 100%;
  }

  .challenge-settings-grid {
    grid-template-columns: 1fr;
  }

  .challenge-notification-popover {
    right: 0;
    width: min(330px, calc(100vw - 24px));
  }
}
