:root {
  --app-shell-navy: #0d1b2a;
  --app-shell-blue: #2a5298;
  --app-shell-blue-strong: #1e3a5f;
  --app-shell-ink: #2d251b;
  --app-shell-muted: #6a5643;
  --app-shell-line: #d7c5aa;
  --app-shell-card: #fffdf8;
}

.app-shell-legacy-nav {
  display: none !important;
}

body > nav.topbar,
body > nav.navbar,
.container-main > .navigation,
.player-container > .navigation,
.wrap > .navigation,
.main > .navigation {
  display: none !important;
}

.global-topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: linear-gradient(180deg, #0b1728 0%, #10213a 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.global-topbar__row {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.global-topbar__row::-webkit-scrollbar {
  height: 10px;
}

.global-topbar__row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.global-topbar__row--groups {
  padding: 12px 16px 0;
}

.global-topbar__row--links {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid #d2deed;
  padding: 10px 14px 12px;
}

.global-topbar__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
}

.global-topbar__brand:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.global-topbar__group {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: rgba(255, 255, 255, 0.08);
  color: #d6e2ef;
  text-decoration: none;
  padding: 11px 16px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.global-topbar__group:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.global-topbar__group.active {
  background: rgba(255, 255, 255, 0.96);
  color: #1e3a5f;
  border-color: rgba(255, 255, 255, 0.96);
}

.global-topbar__spacer {
  flex: 1 1 auto;
}

.global-topbar__session-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-right: 4px;
}

.global-topbar__session-badge.is-active {
  background: rgba(33, 191, 115, 0.2);
  border-color: rgba(121, 255, 183, 0.45);
  color: #ccffe2;
}

.global-topbar__session-badge.is-saved {
  background: rgba(67, 140, 255, 0.2);
  border-color: rgba(160, 204, 255, 0.45);
  color: #d7e9ff;
}

.global-topbar__session-badge.is-logged-out {
  background: rgba(222, 83, 78, 0.22);
  border-color: rgba(255, 174, 170, 0.45);
  color: #ffd9d8;
}

.global-topbar__action {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 187, 187, 0.55);
  border-radius: 10px;
  background: rgba(200, 54, 54, 0.22);
  color: #ffe6e6;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.global-topbar__action:hover {
  background: rgba(220, 72, 72, 0.34);
  border-color: rgba(255, 207, 207, 0.7);
  color: #ffffff;
}

.global-topbar__action:disabled,
.global-topbar__action.is-hidden {
  display: none;
}

.global-topbar__link:hover {
  background: #eef4fb;
  color: #173c67;
  text-decoration: none;
}

.global-topbar__link.active {
  background: var(--app-shell-blue);
  color: #ffffff;
}

.global-topbar__link {
  flex: 0 0 auto;
  color: #29507a;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.global-topbar__link.account {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.global-topbar__link.account:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.breadcrumb {
  background: var(--app-shell-card) !important;
  border: 1px solid var(--app-shell-line);
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(24, 45, 74, 0.06);
  margin-bottom: 20px !important;
}

.breadcrumb a {
  color: #1e5fac !important;
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.banner,
.header {
  background: linear-gradient(135deg, #2e4a7f, #3f6aa3) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(20, 40, 80, 0.18) !important;
  margin-bottom: 24px !important;
}

.banner h1,
.header h1,
.header h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 48px) !important;
  font-weight: 800 !important;
}

.banner p,
.header p,
.banner .meta {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 16px !important;
  line-height: 1.45;
  opacity: 1 !important;
}

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.62), transparent 42%),
    repeating-linear-gradient(0deg, rgba(145, 116, 86, 0.05) 0, rgba(145, 116, 86, 0.05) 1px, transparent 1px, transparent 26px),
    #f5f1e8;
  color: var(--app-shell-ink);
  font-family: Georgia, 'Times New Roman', serif;
}

.app-shell-paper .card,
.app-shell-paper .standings-preview,
.app-shell-paper .results-preview,
.app-shell-paper .state-box,
.app-shell-paper .table-wrap {
  background: var(--app-shell-card);
  border: 1px solid var(--app-shell-line);
  box-shadow: 0 2px 10px rgba(70, 47, 29, 0.08);
}

.app-shell-paper .section-title,
.app-shell-paper .week-heading,
.app-shell-paper .header h2,
.app-shell-paper .banner h1 {
  color: #3d2f21;
}

.app-shell-injury-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #b33a2f;
  background: #fbe5e2;
  color: #8e251c;
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.15;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .global-topbar__row--groups {
    padding: 10px 10px 0;
  }

  .global-topbar__brand {
    font-size: 16px;
    padding: 9px 12px;
  }

  .global-topbar__group {
    font-size: 15px;
    padding: 9px 12px;
  }

  .global-topbar__session-badge {
    font-size: 12px;
    padding: 7px 10px;
  }

  .global-topbar__action {
    font-size: 12px;
    padding: 8px 10px;
  }

  .global-topbar__row--links {
    padding: 8px 10px 10px;
  }

  .global-topbar__link {
    font-size: 16px;
    padding: 10px 14px;
  }
}
