:root {
  --space-blue: #071A3D;
  --orbit-blue: #005BBE;
  --ice-blue: #63D8FF;
  --ice-white: #FFFFFF;
  --metal: #D7DEE8;
  --launch-gold: #C8A24A;
  --bg: var(--space-blue);
  --bg-soft: rgba(7, 26, 61, 0.86);
  --card: rgba(8, 24, 52, 0.86);
  --line: rgba(215, 222, 232, 0.16);
  --text: var(--ice-white);
  --muted: var(--metal);
  --accent: var(--launch-gold);
  --accent-2: var(--ice-blue);
  --accent-blue: var(--ice-blue);
  --gold: var(--launch-gold);
  --danger: #FF6B6B;
  --site-container-max: 1280px;
  --site-container-gutter: 32px;
  --site-container-mobile-gutter: 20px;
  --site-container-tiny-gutter: 16px;
  --site-page-offset: clamp(38px, 5vw, 68px);
  --site-section-gap: clamp(24px, 3vw, 36px);
  --site-footer-offset: var(--site-page-offset);
}

.team-logo-name,
.team-matchup,
.team-matchup__team,
.standings-team-logo,
.standings-team-matchup,
.standings-team-matchup__team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  vertical-align: middle;
}

.team-logo-name__logo,
.team-matchup__team__logo,
.standings-team-logo__logo,
.standings-team-matchup__team__logo {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}

.team-logo-name__logo--empty,
.team-matchup__team__logo--empty,
.standings-team-logo__logo--empty,
.standings-team-matchup__team__logo--empty {
  display: none;
}

.team-logo-name__text,
.team-matchup__team__text,
.standings-team-logo__text,
.standings-team-matchup__team__text {
  min-width: 0;
}

.team-matchup,
.standings-team-matchup {
  gap: 7px;
  flex-wrap: wrap;
}

.team-matchup__dash,
.standings-team-matchup__dash {
  color: var(--metal);
  opacity: 0.82;
}

.games-history-teams .team-matchup,
.games-history-teams .team-logo-name {
  font-weight: 800;
}

.games-history-league-logo,
.games-history-mobile-league-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.games-history-league {
  text-align: center !important;
}

.games-history-league .games-history-league-logo {
  display: block;
  margin: 0 auto;
}

.nmhl-standings-table .standings-team-logo,
.nmhl-standings-table .standings-team-matchup {
  font-weight: 800;
}

.games-history-teams .team-logo-name__logo,
.games-history-teams .team-matchup__team__logo,
.nmhl-standings-table .standings-team-logo__logo,
.nmhl-standings-table .standings-team-matchup__team__logo {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  .team-logo-name,
  .team-matchup,
  .team-matchup__team,
  .standings-team-logo,
  .standings-team-matchup,
  .standings-team-matchup__team {
    gap: 6px;
  }

  .team-logo-name__logo,
  .team-matchup__team__logo,
  .standings-team-logo__logo,
  .standings-team-matchup__team__logo {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .games-history-league-logo,
  .games-history-mobile-league-logo {
    width: 24px;
    height: 24px;
  }
}

html,
body {
  background:
    radial-gradient(circle at 52% -10%, rgba(99, 216, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #020814 0%, var(--space-blue) 48%, #041126 100%) !important;
}

body {
  color: var(--ice-white);
}

main {
  padding-top: var(--site-page-offset) !important;
  padding-bottom: var(--site-footer-offset) !important;
}

main > .container,
body[data-page="public"] main > .container {
  display: grid;
  gap: var(--site-section-gap);
}

body[data-page="public"] .container {
  width: min(var(--site-container-max), calc(100% - var(--site-container-gutter))) !important;
  max-width: var(--site-container-max) !important;
  margin-inline: auto !important;
}

body.map-public-page .container,
body.map-public-page .site-header .container,
body.map-public-page .site-footer .container,
body.map-public-page main > .container {
  width: min(var(--site-container-max), calc(100% - var(--site-container-gutter))) !important;
  max-width: var(--site-container-max) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

.nmhl-standings-section,
.nmhl-roster-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.hero,
.games-section,
.games-history-section,
.file-mount,
.nmhl-standings-section,
.nmhl-roster-section,
body[data-page="public"] .map-page-head,
body[data-page="public"] .hero,
body[data-page="public"] .public-workspace {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.site-footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: clamp(30px, 4vw, 44px) !important;
}

.site-footer .footer-inner {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(16px, 2vw, 22px) !important;
  align-items: stretch !important;
}

.site-footer .footer-block {
  min-width: 0 !important;
  padding: clamp(18px, 2.4vw, 26px) !important;
  border: 1px solid rgba(99, 216, 255, 0.16) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(99, 216, 255, 0.12), transparent 34%),
    rgba(4, 15, 34, 0.72) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2) !important;
}

.site-footer .footer-title h3 {
  margin: 0 0 14px !important;
  color: var(--ice-white) !important;
  font-size: clamp(18px, 1.9vw, 24px) !important;
  line-height: 1.15 !important;
}

.site-footer .support-brand {
  display: flex !important;
  align-items: center !important;
  gap: clamp(14px, 2vw, 22px) !important;
  min-width: 0 !important;
}

.site-footer .support-logo-slot {
  display: flex !important;
  flex: 0 0 clamp(112px, 10vw, 148px) !important;
  width: clamp(112px, 10vw, 148px) !important;
  height: auto !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.site-footer .support-logo-slot img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: clamp(92px, 8vw, 120px) !important;
  object-fit: contain !important;
}

.site-footer .support-copy {
  min-width: 0 !important;
}

.site-footer .support-copy a {
  color: var(--ice-white) !important;
  text-decoration: none !important;
}

.site-footer .support-copy strong {
  display: block !important;
  max-width: 32ch !important;
  color: var(--ice-white) !important;
  font-size: clamp(15px, 1.4vw, 18px) !important;
  line-height: 1.35 !important;
}

.site-footer .socials {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.site-footer .social-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 11px 12px !important;
  border: 1px solid rgba(99, 216, 255, 0.16) !important;
  border-radius: 16px !important;
  background: rgba(2, 8, 20, 0.34) !important;
  color: var(--ice-white) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.site-footer .social-link:hover {
  border-color: rgba(200, 162, 74, 0.42) !important;
  background: rgba(200, 162, 74, 0.08) !important;
}

.site-footer .social-icon-slot {
  display: flex !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  align-items: center !important;
  justify-content: center !important;
}

.site-footer .social-icon-slot img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
}

.site-footer .social-link span:last-child {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 860px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr !important;
  }

  .site-footer .socials {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .site-footer .footer-block {
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .site-footer .support-brand {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-align: center !important;
  }

  .site-footer .support-logo-slot {
    flex-basis: auto !important;
    width: min(132px, 46vw) !important;
    max-width: 132px !important;
    align-self: center !important;
  }

  .site-footer .support-copy strong {
    max-width: none !important;
    font-size: 14px !important;
  }

  .site-footer .support-copy {
    width: 100% !important;
    text-align: center !important;
  }

  .site-footer .socials {
    grid-template-columns: 1fr !important;
  }
}

.site-header {
  background: rgba(2, 8, 20, 0.88) !important;
  border-bottom-color: rgba(200, 162, 74, 0.32) !important;
}

.brand-logo,
.site-header .brand-logo {
  filter: drop-shadow(0 0 12px rgba(99, 216, 255, 0.22));
}

.site-header .logo-slot {
  width: 76px !important;
  height: 92px !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.site-header .logo-slot img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--launch-gold), var(--ice-blue), transparent);
  opacity: 0.8;
  pointer-events: none;
}

.brand-title,
.site-header .brand-title {
  text-transform: none;
  text-shadow: 0 0 18px rgba(99, 216, 255, 0.14);
}

.site-header .menu > li > a,
.site-header .menu > li > button,
.menu > li > a,
.menu > li > button {
  position: relative;
}

.site-header .menu > li > a::after,
.site-header .menu > li > button::after,
.menu > li > a::after,
.menu > li > button::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--launch-gold), var(--ice-blue));
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity .2s ease, transform .2s ease;
}

.site-header .menu > li > a:hover::after,
.site-header .menu > li > button:hover::after,
.site-header .menu > li > a[aria-current="page"]::after,
.menu > li > a:hover::after,
.menu > li > button:hover::after,
.menu > li > a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.identity-kicker,
.mission-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(200, 162, 74, 0.42);
  border-radius: 999px;
  background: rgba(200, 162, 74, 0.08);
  color: var(--launch-gold);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-kicker::before,
.mission-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice-blue);
  box-shadow: 0 0 16px rgba(99, 216, 255, 0.65);
}

.games-history-title .identity-kicker,
.nmhl-standings-head .identity-kicker,
.nmhl-roster-head .identity-kicker,
.map-page-head .identity-kicker {
  flex: 0 0 auto;
  max-width: max-content;
  margin-bottom: 4px;
}

body[data-page="public"] .map-page-head .mission-kicker {
  gap: 9px;
  margin-bottom: 12px;
  padding: 8px 14px;
  font-size: 13px;
}

body[data-page="public"] .map-page-head .mission-kicker::before {
  width: 8px;
  height: 8px;
}

.nmhl-standings-head,
.nmhl-roster-head,
.map-page-head {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 8px !important;
}

.nmhl-standings-head h1,
.nmhl-roster-head h1,
.map-page-head h1,
.games-history-title h1 {
  margin: 0;
}

body[data-page="public"] .map-intro-card {
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(99, 216, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 13% 24%, rgba(255, 255, 255, 0.78) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 72%, rgba(99, 216, 255, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 69% 27%, rgba(215, 222, 232, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 90% 67%, rgba(99, 216, 255, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 16%, rgba(99, 216, 255, 0.22), transparent 34%),
    radial-gradient(ellipse at 50% 94%, rgba(99, 216, 255, 0.14), transparent 58%),
    linear-gradient(135deg, rgba(14, 34, 62, 0.91), rgba(8, 17, 34, 0.95));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255,255,255,0.055),
    inset 0 -92px 190px rgba(99, 216, 255, 0.07),
    0 0 72px rgba(99, 216, 255, 0.08);
  isolation: isolate;
}

body[data-page="public"] .map-intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(99, 216, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 216, 255, 0.045) 1px, transparent 1px),
    radial-gradient(ellipse at 58% 52%, rgba(99, 216, 255, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(99, 216, 255, 0.055), transparent 48%, rgba(99, 216, 255, 0.1));
  background-size: 54px 54px, 54px 54px, auto, auto;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.66), rgba(0,0,0,0.24));
  pointer-events: none;
  opacity: 0.82;
  z-index: 0;
}

body[data-page="public"] .map-intro-card::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 48%;
  width: max(1180px, 132vw);
  height: max(1180px, 132vw);
  border: 1px solid rgba(99, 216, 255, 0.24);
  border-left-color: transparent;
  border-bottom-color: rgba(200, 162, 74, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  pointer-events: none;
  opacity: 0.96;
  z-index: 0;
}

body[data-page="public"] .map-intro-card > * {
  position: relative;
  z-index: 1;
}

body[data-page="public"] .map-intro-card .map-page-head {
  margin: 0 0 22px !important;
  max-width: none !important;
}

body[data-page="public"] .map-page-title-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body[data-page="public"] .map-intro-card .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px 24px;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  isolation: auto;
}

body[data-page="public"] .map-intro-card .hero::before {
  content: none;
}

body[data-page="public"] .map-intro-card .hero::after {
  content: none;
}

body[data-page="public"] .map-intro-card .hero > * {
  position: relative;
  z-index: 1;
}

body[data-page="public"] .map-intro-card .hero-copy {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body[data-page="public"] .map-intro-card .hero-copy p {
  margin: 0 !important;
}

@media (max-width: 900px) {
  body[data-page="public"] .map-intro-card .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.mission-panel {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  max-width: 920px;
  padding: 0 0 8px;
}

.mission-panel::after {
  content: "";
  position: absolute;
  left: -12px;
  top: -18px;
  width: min(620px, 78vw);
  height: min(620px, 78vw);
  border: 1px solid rgba(99, 216, 255, 0.16);
  border-left-color: transparent;
  border-bottom-color: rgba(200, 162, 74, 0.18);
  border-radius: 50%;
  transform: translate(-24%, -38%) rotate(-18deg);
  pointer-events: none;
  opacity: 0.72;
}

.mission-panel > * {
  position: relative;
  z-index: 1;
}

.mission-panel h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 0.98;
  font-weight: 950;
  color: var(--ice-white);
  letter-spacing: 0;
}

.mission-panel p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--metal);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.58;
}

.mission-description {
  max-width: 760px !important;
  margin: 10px 0 0 !important;
  color: var(--muted) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  font-weight: 400;
}

.mission-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mission-capsule {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(215, 222, 232, 0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  color: rgba(215, 222, 232, 0.92);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.mission-capsule::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ice-blue);
  box-shadow: 0 0 12px rgba(99, 216, 255, 0.55);
}

.mission-actions {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.mission-action-history {
  grid-column: 1;
  grid-row: 2;
}

.mission-action-table {
  grid-column: 2;
  grid-row: 2;
}

.mission-action-roster {
  grid-column: 3;
  grid-row: 2;
}

.mission-action-orbit {
  grid-column: 4;
  grid-row: 1;
}

.mission-action-upcoming {
  grid-column: 4;
  grid-row: 2;
}

.mission-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(99, 216, 255, 0.28);
  border-radius: 999px;
  background: rgba(99, 216, 255, 0.08);
  color: var(--ice-white);
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.mission-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--launch-gold);
}

.mission-action-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mission-action-text {
  min-width: 0;
}

.mission-action:hover,
.mission-action:focus-visible {
  border-color: rgba(200, 162, 74, 0.7);
  background: rgba(200, 162, 74, 0.12);
  transform: translateY(-1px);
}

.hero,
.games-history-section,
.nmhl-standings-card,
.nmhl-roster-card,
.map-shell,
.club-list-panel,
.hero-copy,
.control-panel,
.login-card {
  border-color: rgba(99, 216, 255, 0.14) !important;
  background:
    linear-gradient(135deg, rgba(7, 26, 61, 0.92), rgba(2, 8, 20, 0.96)),
    rgba(255,255,255,0.025) !important;
}

.hero,
.games-history-section,
.nmhl-standings-card,
.nmhl-roster-card,
.map-shell,
.fan-education-hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.games-history-section::before,
.nmhl-standings-card::before,
.nmhl-roster-card::before,
.map-shell::before,
.fan-education-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(99, 216, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 216, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.04));
  opacity: 0.62;
}

.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(99, 216, 255, 0.07) 58.2%, transparent 59%),
    radial-gradient(circle at 12% 0%, rgba(200, 162, 74, 0.1), transparent 28%);
  opacity: 0.75;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.games-history-section > *,
.nmhl-standings-card > *,
.nmhl-roster-card > *,
.map-shell > *,
.fan-education-hero > * {
  position: relative;
  z-index: 1;
}

.nmhl-standings-card,
.nmhl-roster-card,
.map-shell {
  position: relative;
  overflow: hidden;
}

.nmhl-standings-card,
.nmhl-roster-card {
  overflow: visible !important;
}

.nmhl-standings-league-tabs,
.nmhl-standings-tabs,
.nmhl-roster-top,
.nmhl-roster-sort-row,
.roster-league-tabs {
  position: relative;
  z-index: 60 !important;
}

.nmhl-roster-top {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

.nmhl-roster-top:has(.hk-custom-select.is-open) {
  z-index: 320 !important;
}

.roster-season-control {
  position: relative;
  z-index: 310 !important;
}

.hk-custom-select,
.nmhl-roster-sort {
  position: relative;
  z-index: 70 !important;
}

.hk-custom-select.is-open,
.nmhl-roster-sort.open {
  z-index: 420 !important;
}

.hk-custom-select-menu,
.nmhl-roster-sort-menu {
  z-index: 430 !important;
}

.identity-subtitle {
  flex-basis: 100%;
  max-width: 760px;
  margin: 4px 0 0;
  color: rgba(215, 222, 232, 0.9);
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.55;
}

.club-card,
.games-history-meta-card,
.nmhl-standings-meta,
.nmhl-standings-updated-badge,
.map-stat-badge,
.stat-card,
.route-title,
.status-pill {
  border-color: rgba(99, 216, 255, 0.16) !important;
  background: rgba(255,255,255,0.055) !important;
}

.club-card:hover,
.club-card.active,
body[data-page="public"] .club-card:hover,
body[data-page="public"] .club-card.active {
  border-color: rgba(200, 162, 74, 0.62) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,0.26), inset 4px 0 0 rgba(200, 162, 74, 0.95) !important;
}

.btn,
.btn-primary,
.games-history-more button,
.nmhl-standings-tab,
.roster-league-tab,
.nmhl-roster-sort-toggle,
.hk-custom-select-toggle {
  border-color: rgba(99, 216, 255, 0.22) !important;
  background: rgba(255,255,255,0.06) !important;
  color: var(--ice-white) !important;
}

.nmhl-standings-tab,
.roster-league-tab,
.fan-education-link,
.fan-referee-filter,
.mission-action {
  letter-spacing: 0;
}

.btn:hover,
.btn-primary:hover,
.games-history-more button:hover,
.nmhl-standings-tab:hover:not(:disabled),
.roster-league-tab:hover:not(:disabled),
.nmhl-roster-sort-toggle:hover,
.hk-custom-select-toggle:hover {
  border-color: rgba(200, 162, 74, 0.58) !important;
  background: rgba(99, 216, 255, 0.1) !important;
}

.btn.primary,
.btn-primary,
.nmhl-standings-tab.is-active,
.roster-league-tab.is-active,
.hk-custom-select-option.is-active {
  border-color: rgba(99, 216, 255, 0.3) !important;
  background: linear-gradient(135deg, var(--orbit-blue), var(--ice-blue)) !important;
  color: #021126 !important;
  box-shadow: 0 12px 26px rgba(0, 91, 190, 0.24) !important;
}

.roster-league-tab.is-active::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--launch-gold);
  box-shadow: 0 0 14px rgba(200, 162, 74, 0.65);
}

.games-history-meta-card span,
.map-stat-label,
.stat-card span,
.nmhl-standings-meta span,
.nmhl-roster-meta span {
  color: var(--metal) !important;
}

.games-history-date,
.games-history-table th,
.nmhl-standings-table th,
.nmhl-roster-table th,
.nmhl-standings-help a,
.games-history-source a,
.nmhl-roster-help a,
.map-stat-value {
  color: var(--ice-blue) !important;
}

.games-history-table th:not(:last-child),
.games-history-table td:not(:last-child),
.nmhl-standings-table th:not(:last-child),
.nmhl-standings-table td:not(:last-child),
.nmhl-roster-table th:not(:last-child),
.nmhl-roster-table td:not(:last-child) {
  border-right: 1px solid rgba(99, 216, 255, 0.055) !important;
}

.nmhl-roster-table td:first-child,
.nmhl-standings-table td:first-child,
.games-history-table td:first-child {
  font-weight: 950;
  color: var(--ice-blue) !important;
}

.nmhl-standings-table tr.is-home-team,
.nmhl-roster-table tr.is-home-team {
  box-shadow: inset 4px 0 0 var(--launch-gold), inset 0 0 0 999px rgba(200, 162, 74, 0.06) !important;
}

.nmhl-standings-table tr.is-home-team td:first-child,
.nmhl-standings-table tr.is-home-team td:nth-child(2),
.nmhl-roster-table tr.is-home-team td:first-child,
.nmhl-roster-table tr.is-home-team td:nth-child(2) {
  color: var(--ice-white) !important;
}

.nmhl-roster-playoff-label,
.nmhl-roster-table tbody tr.nmhl-roster-playoff-row td:nth-child(2) {
  color: rgba(255,255,255,0.9) !important;
}

.route-distance,
#routeDistance,
.message-log strong,
.route-summary-distance {
  color: var(--launch-gold) !important;
}

.route-summary-distance {
  border-color: rgba(200, 162, 74, 0.5) !important;
  background: rgba(200, 162, 74, 0.14) !important;
  box-shadow: 0 0 22px rgba(200, 162, 74, 0.2) !important;
}

.route-summary-dot {
  background: var(--launch-gold) !important;
  box-shadow: 0 0 12px rgba(200, 162, 74, 0.55) !important;
}

.route-title strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.route-title strong::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--launch-gold);
  box-shadow: 0 0 14px rgba(200, 162, 74, 0.65);
}

.file-mount.fan-education,
.file-mount.referee-mount.fan-education {
  color: var(--ice-white) !important;
}

.fan-education .page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.fan-education-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(99, 216, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(7, 26, 61, 0.94), rgba(2, 8, 20, 0.97)),
    radial-gradient(circle at 92% 12%, rgba(99, 216, 255, 0.16), transparent 28%);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

.fan-education-hero,
.fan-quick-grid,
.fan-education .section-head,
.fan-education .carousel-shell {
  min-width: 0;
  max-width: 100%;
}

.fan-education-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 56%, rgba(99, 216, 255, 0.07) 56.2%, transparent 57%),
    radial-gradient(circle at 8% 0%, rgba(200, 162, 74, 0.12), transparent 28%);
}

.fan-education-hero > * {
  position: relative;
  z-index: 1;
}

.fan-education-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ice-white) !important;
  font-size: clamp(32px, 5vw, 58px) !important;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0 !important;
}

.fan-education-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--metal);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
}

.fan-education-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.fan-education-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(99, 216, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ice-white) !important;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.fan-education-link:hover,
.fan-education-link:focus-visible {
  border-color: rgba(200, 162, 74, 0.62);
  background: rgba(99, 216, 255, 0.1);
  transform: translateY(-1px);
}

.fan-education-link.is-active {
  border-color: rgba(99, 216, 255, 0.3);
  background: linear-gradient(135deg, var(--orbit-blue), var(--ice-blue));
  color: #021126 !important;
  box-shadow: 0 12px 26px rgba(0, 91, 190, 0.24);
}

.fan-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fan-guide-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(99, 216, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 3px 0 0 rgba(200, 162, 74, 0.88);
}

.fan-guide-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  margin-bottom: 12px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(99, 216, 255, 0.12);
  color: var(--ice-blue);
  font-size: 12px;
  font-weight: 950;
}

.fan-guide-card h2,
.fan-guide-card h3 {
  margin: 0 0 8px;
  color: var(--ice-white);
  font-size: 18px;
  line-height: 1.2;
}

.fan-guide-card p {
  margin: 0;
  color: var(--metal);
  font-size: 14px;
  line-height: 1.55;
}

.fan-rule-card {
  box-shadow: inset 3px 0 0 rgba(200, 162, 74, 0.88);
}

.fan-accordion-stack {
  display: grid;
  gap: 12px;
}

.fan-accordion {
  border: 1px solid rgba(99, 216, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.fan-accordion summary {
  min-height: 62px;
  padding: 16px 18px;
}

.fan-accordion .rules-content {
  padding: 0 18px 18px;
}

.fan-accordion .rules-content ul {
  padding-left: 20px;
}

.fan-accordion .rules-content li {
  margin-bottom: 8px;
}

.fan-education .section-head {
  margin: 2px 0 0 !important;
}

.fan-education .section-head h2 {
  margin: 0;
  color: var(--ice-white) !important;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.fan-education .section-head .puck {
  background:
    radial-gradient(circle at 34% 30%, var(--ice-blue), rgba(99, 216, 255, 0.2) 35%, #081733 65%) !important;
  box-shadow: 0 0 18px rgba(99, 216, 255, 0.35) !important;
}

.fan-education .fan-grid,
.fan-education .rules-gallery {
  margin-top: 0;
}

.fan-education .feature-card,
.fan-education .zoom-card,
.fan-education .info-card,
.fan-education.referee-mount .tile-card {
  border-color: rgba(99, 216, 255, 0.16) !important;
  background:
    linear-gradient(135deg, rgba(7, 26, 61, 0.92), rgba(2, 8, 20, 0.96)),
    rgba(255, 255, 255, 0.025) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28) !important;
}

.fan-education .feature-card {
  display: flex;
  flex-direction: column;
  min-height: 0 !important;
}

.fan-education .feature-card .zoom-trigger {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
}

.fan-education .feature-card .optimized-picture {
  display: contents !important;
}

.fan-education .feature-card img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  height: auto !important;
  max-height: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: center top;
  box-shadow: none !important;
}

.fan-education .zoom-card figcaption,
.fan-education.referee-mount .tile-body {
  background: rgba(2, 8, 20, 0.32);
}

.fan-education .zoom-card figcaption,
.fan-education.referee-mount .tile-body h3,
.fan-education .rules-accordion summary {
  color: var(--ice-white) !important;
}

.fan-education .zoom-card figcaption {
  display: grid;
  gap: 6px;
}

.fan-card-caption {
  display: grid;
  gap: 6px;
  padding: 16px 18px 18px;
  background: rgba(2, 8, 20, 0.32);
}

.fan-card-caption strong {
  color: var(--ice-white);
  font-size: 16px;
  line-height: 1.25;
}

.fan-card-caption span {
  color: var(--metal);
  font-size: 14px;
  line-height: 1.45;
}

.fan-education .zoom-card figcaption strong {
  color: var(--ice-white);
}

.fan-education .zoom-card figcaption span {
  color: var(--metal);
  font-size: 14px;
  line-height: 1.45;
}

.fan-education .rules-content,
.fan-education .rules-content ul,
.fan-education.referee-mount .rule-text,
.fan-education.referee-mount .tile-body p {
  color: rgba(215, 222, 232, 0.92) !important;
}

.fan-education .rules-content strong,
.fan-education.referee-mount .rule-text strong,
.fan-education.referee-mount .tile-toggle {
  color: var(--ice-blue) !important;
}

.fan-education .doc-icon,
.fan-education .chevron {
  border-color: var(--ice-blue) !important;
}

.fan-education .doc-icon::before,
.fan-education .doc-icon::after {
  background: var(--ice-blue) !important;
}

.fan-education.referee-mount .carousel-shell {
  margin-top: 0 !important;
}

.fan-education.referee-mount .carousel-btn {
  border: 1px solid rgba(99, 216, 255, 0.24) !important;
  background: linear-gradient(135deg, var(--orbit-blue), var(--ice-blue)) !important;
  color: #021126 !important;
}

.fan-referee-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.fan-referee-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(99, 216, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ice-white);
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
}

.fan-referee-filter.is-active {
  border-color: rgba(99, 216, 255, 0.32);
  background: linear-gradient(135deg, var(--orbit-blue), var(--ice-blue));
  color: #021126;
}

.fan-referee-card[hidden] {
  display: none !important;
}

.fan-referee-card .optimized-picture {
  display: block;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(215,222,232,0.96));
}

.fan-referee-card .fan-rule-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin-bottom: 2px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(99, 216, 255, 0.12);
  color: var(--ice-blue);
  font-size: 12px;
  font-weight: 950;
}

.file-mount.referee-mount.fan-education .page-header {
  gap: 18px;
}

.file-mount.referee-mount.fan-education .section-head,
.file-mount.referee-mount.fan-education .carousel-shell {
  justify-self: center;
}

.file-mount.referee-mount.fan-education .carousel-shell {
  width: min(100%, 520px) !important;
}

.file-mount.referee-mount.fan-education .fan-quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.file-mount.referee-mount.fan-education .fan-guide-card {
  min-height: 116px;
  padding: 14px 16px;
}

.file-mount.referee-mount.fan-education .fan-guide-card span {
  margin-bottom: 8px;
}

.file-mount.referee-mount.fan-education .fan-guide-card h2 {
  font-size: 16px;
}

.file-mount.referee-mount.fan-education .fan-guide-card p {
  font-size: 13px;
  line-height: 1.45;
}

@media (min-width: 701px) {
  .file-mount.referee-mount.fan-education .carousel-shell {
    width: 100% !important;
    padding: 0 !important;
  }

  .file-mount.referee-mount.fan-education .carousel {
    overflow: visible;
  }

  .file-mount.referee-mount.fan-education .carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
    gap: 18px;
    align-items: start;
    transform: none !important;
  }

  .file-mount.referee-mount.fan-education .tile-card {
    flex: none !important;
    min-height: 0;
    position: relative;
    overflow: visible;
  }

  .file-mount.referee-mount.fan-education .tile-card.open {
    z-index: 30;
  }

  .file-mount.referee-mount.fan-education .tile-card img {
    aspect-ratio: 4 / 5;
    object-fit: contain;
  }

  .file-mount.referee-mount.fan-education .tile-body {
    min-height: 152px;
  }

  .file-mount.referee-mount.fan-education .tile-card.open .tile-body {
    min-height: 152px;
  }

  .file-mount.referee-mount.fan-education .tile-card.open .rule-text {
    position: absolute;
    top: calc(100% + 12px);
    left: var(--referee-panel-left, 0);
    z-index: 40;
    width: var(--referee-panel-width, 100%);
    max-height: min(58vh, 520px);
    overflow: auto;
    box-sizing: border-box;
    padding: 18px 20px 20px;
    border: 1px solid rgba(99, 216, 255, 0.22);
    border-radius: 18px;
    background: rgba(4, 15, 34, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    color: var(--metal);
  }

  .file-mount.referee-mount.fan-education .carousel-btn {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .site-header .logo-slot {
    width: 62px !important;
    height: 78px !important;
  }

  html,
  body {
    overflow-x: hidden !important;
  }

  main,
  main > .container,
  .container,
  .mission-panel,
  .mission-panel p,
  .games-history-panel,
  .games-history-title,
  .games-history-title p,
  .games-history-controls,
  .games-history-source,
  .games-history-empty,
  .file-mount.fan-education,
  .fan-education .page-header,
  .fan-education-hero,
  .fan-education-hero h1,
  .fan-education-hero p,
  .fan-education-nav,
  .fan-quick-grid,
  .fan-guide-card,
  .fan-guide-card h2,
  .fan-guide-card p,
  .fan-card-caption,
  .fan-card-caption strong,
  .fan-card-caption span,
  .fan-education .section-head,
  .fan-education .section-head h1,
  .fan-education .section-head h2,
  .fan-education .rules-gallery,
  .fan-education .zoom-card,
  .fan-education .carousel-shell,
  .fan-education .rules-content {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .mission-panel p,
  .games-history-title p,
  .games-history-source,
  .games-history-empty,
  .fan-education-hero h1,
  .fan-education-hero p,
  .fan-guide-card h2,
  .fan-guide-card p,
  .fan-card-caption,
  .fan-card-caption strong,
  .fan-card-caption span,
  .fan-education .section-head h1,
  .fan-education .section-head h2,
  .fan-education .rules-content,
  .fan-education .rules-content p,
  .fan-education .rules-content li {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .file-mount.fan-education {
    width: 100% !important;
  }

  .nmhl-standings-section .container,
  .nmhl-roster-section .container,
  body[data-page="public"] .container,
  body.map-public-page .container,
  body.map-public-page .site-header .container,
  body.map-public-page .site-footer .container,
  body.map-public-page main > .container {
    width: 100%;
    max-width: 100%;
    padding-inline: calc(var(--site-container-mobile-gutter) / 2) !important;
    box-sizing: border-box;
  }

  .mission-panel h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .mission-description {
    margin-top: 7px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .mission-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mission-action-history,
  .mission-action-table,
  .mission-action-roster,
  .mission-action-orbit,
  .mission-action-upcoming {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100%;
  }

  .mission-action-upcoming {
    order: -1;
  }

  .mission-capsules {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nmhl-standings-card,
  .nmhl-roster-card,
  .games-history-section,
  body[data-page="public"] .hero,
  body[data-page="public"] .map-shell,
  body[data-page="public"] .club-list-panel {
    border-radius: 18px !important;
  }

  .nmhl-standings-card,
  .nmhl-roster-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .nmhl-standings-head h1,
  .nmhl-roster-head h1,
  .map-page-head h1,
  .games-history-title h1 {
    max-width: 100%;
    font-size: clamp(28px, 7vw, 32px) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
  }

  .identity-subtitle {
    max-width: 100%;
    font-size: 13px;
  }

  .nmhl-standings-league-tabs,
  .roster-league-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100% !important;
    max-width: calc(100vw - 72px) !important;
    gap: 6px !important;
  }

  .nmhl-standings-tab,
  .roster-league-tab {
    width: auto !important;
    min-width: 0 !important;
    padding-inline: 8px !important;
    font-size: 14px !important;
  }

  .nmhl-standings-tabs,
  .nmhl-roster-top,
  .nmhl-roster-sort-row,
  .nmhl-standings-meta,
  .nmhl-standings-table-wrap,
  .nmhl-roster-table-wrap {
    max-width: calc(100vw - 72px) !important;
  }

  .stats.compact-stats,
  .compact-stats {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
  }

  .map-stat-badge {
    min-width: 0;
    max-width: 100%;
    justify-content: space-between;
  }

  body[data-page="public"] .map-intro-card,
  body[data-page="public"] .map-page-head,
  body[data-page="public"] .hero,
  body[data-page="public"] .hero-copy,
  body[data-page="public"] .public-workspace,
  body[data-page="public"] .map-column,
  body[data-page="public"] .map-shell,
  body[data-page="public"] .club-list-panel {
    width: 100% !important;
    max-width: calc(100vw - 20px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body[data-page="public"] .map-intro-card {
    padding: 20px;
    border-radius: 22px;
  }

  body[data-page="public"] .map-page-head h1,
  body[data-page="public"] .identity-subtitle,
  body[data-page="public"] .hero-copy p {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body[data-page="public"] .map-stat-badge {
    white-space: normal !important;
  }

  .fan-education-hero {
    padding: 20px;
    border-radius: 20px;
  }

  .fan-education-hero h1 {
    font-size: clamp(30px, 9vw, 42px) !important;
  }

  .fan-education-nav,
  .fan-quick-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fan-guide-card {
    min-height: 0;
  }

  .file-mount.referee-mount.fan-education .fan-quick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-right: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .fan-referee-filters {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .fan-referee-filters::-webkit-scrollbar {
    display: none;
  }

  .file-mount.referee-mount.fan-education .fan-guide-card {
    flex: initial;
    min-height: 0;
    padding: 14px 16px;
    scroll-snap-align: none;
  }

  .file-mount.referee-mount.fan-education .fan-guide-card p {
    display: block;
  }

  .file-mount.referee-mount.fan-education .section-head {
    margin-top: 0 !important;
  }

  .file-mount.referee-mount.fan-education .carousel-shell {
    width: 100% !important;
    padding: 0 !important;
  }

  .file-mount.referee-mount.fan-education .carousel {
    overflow: visible !important;
  }

  .file-mount.referee-mount.fan-education .carousel-track {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
    transform: none !important;
  }

  .file-mount.referee-mount.fan-education .carousel-btn {
    display: none !important;
  }

  .file-mount.referee-mount.fan-education .tile-card {
    min-height: 0;
    position: relative;
    border-radius: 16px !important;
    cursor: pointer;
    overflow: hidden;
  }

  .file-mount.referee-mount.fan-education .fan-referee-card .optimized-picture {
    background: rgba(2, 8, 20, 0.72) !important;
  }

  .file-mount.referee-mount.fan-education .tile-card img {
    width: 100%;
    height: clamp(118px, 34vw, 168px);
    aspect-ratio: auto;
    background: transparent !important;
    object-fit: contain;
  }

  .file-mount.referee-mount.fan-education .tile-body {
    min-height: 0;
    padding: 10px;
    gap: 6px;
    overflow: visible;
  }

  .file-mount.referee-mount.fan-education .fan-rule-badge {
    min-height: 19px;
    padding: 0 7px;
    font-size: 10px;
  }

  .file-mount.referee-mount.fan-education .tile-body h3 {
    display: -webkit-box;
    margin: 0;
    min-height: 30px;
    overflow: hidden;
    color: var(--ice-white) !important;
    font-size: 12px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .file-mount.referee-mount.fan-education .tile-toggle {
    font-size: 11px;
  }

  .file-mount.referee-mount.fan-education .tile-card.open {
    z-index: 60;
    width: var(--referee-panel-width, 100%);
    transform: translateX(var(--referee-panel-left, 0));
    border-color: rgba(200, 162, 74, 0.36) !important;
    cursor: default;
    overflow: visible;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42) !important;
  }

  .file-mount.referee-mount.fan-education .tile-card.open img {
    height: clamp(118px, 34vw, 168px);
    max-height: none;
  }

  .file-mount.referee-mount.fan-education .tile-card.open .tile-body {
    padding: 10px;
  }

  .file-mount.referee-mount.fan-education .tile-card.open .tile-body h3 {
    display: -webkit-box;
    min-height: 30px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .file-mount.referee-mount.fan-education .tile-card.open .rule-text {
    display: block !important;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 80;
    width: 100%;
    max-height: min(56vh, 520px);
    overflow: auto;
    box-sizing: border-box;
    margin-top: 0;
    padding: 14px 16px 16px;
    border: 1px solid rgba(99, 216, 255, 0.22);
    border-radius: 16px;
    background: rgba(4, 15, 34, 0.98);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.46);
    font-size: 13px;
    line-height: 1.55;
  }

  .file-mount.referee-mount.fan-education .tile-card.open .rule-text ol {
    padding-left: 18px;
  }

  .file-mount.referee-mount.fan-education .tile-card.open .rule-text li {
    margin-bottom: 8px;
  }

  .fan-referee-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .fan-referee-filter {
    flex: 0 0 auto;
  }
}

/* Contrast polish: keep secondary text readable on dark identity backgrounds. */
body[data-page="public"],
body:not([data-page]) {
  color: var(--ice-white);
}

.brand-text p,
.mission-description,
.identity-subtitle,
.games-history-title p,
.games-meta-card span,
.games-status,
.games-error,
.club-contacts,
.club-contacts span,
.club-info p,
.nmhl-standings-head p,
.nmhl-standings-title p,
.nmhl-standings-meta,
.nmhl-standings-help,
.nmhl-standings-empty td,
.standings-loading,
.nmhl-roster-head p,
.nmhl-roster-meta,
.nmhl-roster-help,
.roster-loading,
.fan-education-hero p,
.fan-guide-card p,
.fan-card-caption span,
.fan-education .rules-content,
.fan-education.referee-mount .tile-body p,
.fan-education.referee-mount .rule-text,
.map-page-head .identity-subtitle,
body[data-page="public"] .map-intro-card .hero-copy p,
.message-log,
.club-details,
.footer-block p {
  color: var(--metal) !important;
}

.games-history-source a,
.nmhl-standings-help a,
.nmhl-roster-help a,
.fan-education .rules-content a,
.map-stat-value,
.club-contacts a,
.footer-block a {
  color: var(--ice-blue) !important;
}

.identity-kicker,
.mission-kicker,
.preview-kicker,
.fan-rule-badge,
.nmhl-standings-updated-badge span,
.nmhl-roster-updated-badge span,
.games-history-updated-badge span {
  color: var(--launch-gold) !important;
}

.games-error,
.is-loss,
.preview-loss {
  color: var(--danger) !important;
}

.nmhl-standings-tab:disabled,
.roster-league-tab:disabled,
.nmhl-standings-button:disabled,
.hk-custom-select.is-disabled .hk-custom-select__button,
.custom-select.is-disabled .custom-select-toggle {
  color: rgba(215, 222, 232, 0.76) !important;
  opacity: 0.72 !important;
}

/* Homepage variant A: clear season dashboard */
body:not([data-page]) .hero .mission-panel {
  max-width: 980px;
  padding-bottom: 6px;
}

body:not([data-page]) .hero {
  align-items: start;
  min-height: 0;
}

body:not([data-page]) .hero .mission-panel h1 {
  max-width: 920px;
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

body:not([data-page]) .hero .mission-description {
  max-width: 640px !important;
  margin-top: 14px !important;
  font-size: clamp(15px, 1.45vw, 18px) !important;
  color: rgba(238, 246, 255, 0.92) !important;
}

body:not([data-page]) .hero .mission-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

body:not([data-page]) .hero .mission-action-history,
body:not([data-page]) .hero .mission-action-table,
body:not([data-page]) .hero .mission-action-roster,
body:not([data-page]) .hero .mission-action-orbit,
body:not([data-page]) .hero .mission-action-upcoming,
body:not([data-page]) .hero .mission-action-calendar {
  grid-column: auto;
  grid-row: auto;
}

body:not([data-page]) .hero .mission-action-upcoming {
  border-color: rgba(200, 162, 74, 0.74);
  background: rgba(200, 162, 74, 0.16);
}

body:not([data-page]) .hero .mission-action-calendar {
  border-color: rgba(99, 216, 255, 0.34);
  background: rgba(99, 216, 255, 0.09);
}

.clubs-panel-head {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin-bottom: 2px;
}

.clubs-panel-head h2 {
  margin: 0;
  color: var(--ice-white);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 950;
  line-height: 1.05;
}

.clubs-panel-head p {
  max-width: 560px;
  margin: 0;
  color: var(--metal);
  font-size: 14px;
  line-height: 1.45;
}

.club-league {
  display: block;
  width: auto;
  min-height: 0;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--metal) !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.club-league span {
  color: var(--launch-gold) !important;
  font-weight: 950;
}

body:not([data-page]) .hero .club-info h2 {
  margin: 0 0 6px;
  font-size: clamp(19px, 1.7vw, 24px);
  overflow-wrap: anywhere;
}

.club-status {
  margin: 0 0 10px;
  color: rgba(238, 246, 255, 0.9) !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

body:not([data-page]) .hero .club-contacts {
  gap: 6px;
}

body:not([data-page]) .hero .clubs-panel {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  margin-top: 8px;
}

body:not([data-page]) .hero .clubs-panel .club-card {
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 140px;
  padding: 16px;
  gap: 16px;
  min-width: 0;
}

body:not([data-page]) .hero .clubs-panel .club-logo-placeholder {
  width: 128px;
  height: 104px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

body:not([data-page]) .hero .clubs-panel .club-logo-placeholder img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center center;
  aspect-ratio: auto;
  flex: 0 0 auto;
}

body:not([data-page]) .hero .clubs-panel .club-info,
body:not([data-page]) .hero .clubs-panel .club-contacts {
  min-width: 0;
}

body:not([data-page]) .hero .hero-visual {
  position: absolute;
  top: 44px;
  right: clamp(18px, 4vw, 54px);
  z-index: 0;
  width: min(38vw, 480px);
  min-height: 0;
  height: min(44vw, 460px);
  opacity: 0.46;
  pointer-events: none;
}

body:not([data-page]) .hero .mission-panel,
body:not([data-page]) .hero .clubs-panel {
  position: relative;
  z-index: 2;
}

@media (max-width: 1080px) {
  body:not([data-page]) .hero .clubs-panel {
    grid-template-columns: 1fr;
  }

  body:not([data-page]) .hero .hero-visual {
    opacity: 0.28;
  }
}

@media (max-width: 760px) {
  body:not([data-page]) .hero .mission-panel h1 {
    margin-top: 12px;
    font-size: clamp(31px, 10vw, 44px);
  }

  body:not([data-page]) .hero .mission-actions {
    gap: 8px;
  }

  body:not([data-page]) .hero .mission-action {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    min-height: 42px;
    padding-inline: 10px;
    text-align: center;
  }

  body:not([data-page]) .hero .mission-action-upcoming {
    flex-basis: 100%;
  }

  body:not([data-page]) .hero .hero-visual {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .clubs-panel-head {
    justify-items: center;
    text-align: center;
  }

  body:not([data-page]) .hero .clubs-panel {
    grid-template-columns: 1fr;
  }

  body:not([data-page]) .hero .clubs-panel .club-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .club-league {
    margin-inline: 0;
  }

  body:not([data-page]) .hero .clubs-panel .club-contacts a {
    width: fit-content !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    justify-content: flex-start !important;
  }
}

/* Unified page rhythm and card system */
:root {
  --hck-shell-radius: 28px;
  --hck-card-radius: 18px;
  --hck-shell-padding: clamp(20px, 3vw, 34px);
  --hck-card-padding: clamp(14px, 2vw, 20px);
  --hck-shell-border: 1px solid rgba(99, 216, 255, 0.18);
  --hck-card-border: 1px solid rgba(99, 216, 255, 0.16);
  --hck-shell-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  --hck-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  --hck-shell-bg:
    radial-gradient(circle at 16% 0%, rgba(99, 216, 255, 0.12), transparent 35%),
    linear-gradient(135deg, rgba(14, 34, 62, 0.86), rgba(5, 14, 29, 0.96));
  --hck-card-bg:
    linear-gradient(145deg, rgba(15, 34, 60, 0.84), rgba(6, 16, 32, 0.94)),
    rgba(255, 255, 255, 0.025);
}

main > .container {
  align-items: stretch;
}

body:not(.map-public-page) .hero,
.games-section,
.games-history-section,
.calendar-section,
.home-standings-section,
.fan-education-hero,
.nmhl-standings-card,
.nmhl-roster-card,
body.map-public-page .map-intro-card,
body.map-public-page .map-shell,
body.map-public-page .club-list-panel {
  border: var(--hck-shell-border) !important;
  border-radius: var(--hck-shell-radius) !important;
  background: var(--hck-shell-bg) !important;
  box-shadow: var(--hck-shell-shadow) !important;
}

body:not(.map-public-page) .hero,
.games-section,
.games-history-section,
.calendar-section,
.home-standings-section,
body.map-public-page .map-intro-card {
  padding: var(--hck-shell-padding) !important;
}

.home-standings-section,
.calendar-section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden;
}

.games-header,
.games-history-header,
.calendar-head,
.home-standings-header,
.nmhl-standings-head,
.nmhl-roster-head {
  margin: 0 0 clamp(14px, 2vw, 22px) !important;
}

.games-title h2,
.home-standings-title h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.08;
  font-weight: 950;
}

.games-history-title p,
.calendar-head p,
.home-standings-title p,
.identity-subtitle,
.fan-education-hero p {
  max-width: 720px;
  color: rgba(215, 222, 232, 0.92) !important;
  font-size: clamp(14px, 1.25vw, 16px) !important;
  line-height: 1.5 !important;
}

.games-panel,
.games-history-panel,
.calendar-panel,
.home-standings-card,
.calendar-next-card,
.calendar-day-panel,
.fan-guide-card,
.fan-education .zoom-card,
.tile-card.fan-referee-card,
.games-card,
.games-cards-empty,
.club-card,
.games-history-meta-card {
  border: var(--hck-card-border) !important;
  border-radius: var(--hck-card-radius) !important;
  background: var(--hck-card-bg) !important;
  box-shadow: var(--hck-card-shadow) !important;
}

.games-panel,
.games-history-panel,
.calendar-panel,
.home-standings-card {
  padding: var(--hck-card-padding) !important;
}

.games-card,
.games-cards-empty,
.club-card,
.fan-guide-card,
.tile-card.fan-referee-card {
  overflow: hidden;
}

.games-card {
  min-height: 156px;
  border-radius: 16px !important;
}

.games-card-league-logo {
  width: 22px !important;
  height: 16px !important;
  object-fit: contain;
}

.games-card-score,
.calendar-match-score,
.home-standings-badge,
.games-history-updated-badge {
  border-radius: 999px !important;
  border: 1px solid rgba(200, 162, 74, 0.28) !important;
  background: rgba(200, 162, 74, 0.12) !important;
  color: var(--ice-white) !important;
}

.calendar-panel {
  display: grid;
  gap: clamp(12px, 1.8vw, 18px);
}

.calendar-monthbar {
  margin: 0 !important;
}

.calendar-grid-wrap,
.home-standings-table-wrap,
.games-history-table-wrap,
.nmhl-standings-table-wrap,
.nmhl-roster-table-wrap {
  border: 1px solid rgba(99, 216, 255, 0.14) !important;
  border-radius: 18px !important;
  background: rgba(4, 13, 28, 0.62) !important;
}

.calendar-day {
  border-color: rgba(99, 216, 255, 0.14) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(145deg, rgba(11, 27, 50, 0.8), rgba(4, 13, 28, 0.92)) !important;
}

.calendar-day.is-active,
.calendar-day:focus-within {
  border-color: rgba(99, 216, 255, 0.62) !important;
  box-shadow: inset 0 0 0 1px rgba(99, 216, 255, 0.24), 0 12px 28px rgba(0, 91, 190, 0.18) !important;
}

.calendar-match,
.calendar-day-more,
.home-standings-full-link,
.games-history-more button {
  border-radius: 12px !important;
}

.home-standings-table th,
.games-history-table th,
.nmhl-standings-table th,
.nmhl-roster-table th {
  color: var(--ice-blue) !important;
  background: rgba(99, 216, 255, 0.075) !important;
}

.home-standings-table tr.is-home-team,
.nmhl-standings-table tr.is-home-team,
.nmhl-standings-table tr.highlight {
  background: linear-gradient(90deg, rgba(200, 162, 74, 0.2), rgba(0, 91, 190, 0.1)) !important;
  box-shadow: inset 3px 0 0 var(--launch-gold) !important;
}

@media (max-width: 760px) {
  body:not(.map-public-page) .hero,
  .games-section,
  .games-history-section,
  .calendar-section,
  .home-standings-section,
  .fan-education-hero,
  .nmhl-standings-card,
  .nmhl-roster-card,
  body.map-public-page .map-intro-card,
  body.map-public-page .map-shell,
  body.map-public-page .club-list-panel {
    border-radius: 22px !important;
  }

  body:not(.map-public-page) .hero,
  .games-section,
  .games-history-section,
  .calendar-section,
  .home-standings-section,
  body.map-public-page .map-intro-card {
    padding: 18px 12px !important;
  }

  .games-panel,
  .games-history-panel,
  .calendar-panel,
  .home-standings-card,
  .nmhl-standings-card,
  .nmhl-roster-card {
    padding: 14px !important;
  }

  .games-header,
  .games-history-header,
  .calendar-head,
  .home-standings-header,
  .nmhl-standings-head,
  .nmhl-roster-head {
    margin-bottom: 12px !important;
  }

  .games-card {
    min-height: 136px;
  }

  .home-standings-header,
  .home-standings-card-top {
    align-items: stretch !important;
  }
}

/* Map page mobile width alignment with the main CMS pages */
@media (max-width: 700px) {
  body.map-public-page .container,
  body.map-public-page .site-header .container,
  body.map-public-page .site-footer .container,
  body.map-public-page main > .container {
    width: min(var(--site-container-max), calc(100% - var(--site-container-tiny-gutter))) !important;
    max-width: var(--site-container-max) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
  }

  body.map-public-page .map-intro-card,
  body.map-public-page .map-page-head,
  body.map-public-page .hero,
  body.map-public-page .hero-copy,
  body.map-public-page .public-workspace,
  body.map-public-page .map-column,
  body.map-public-page .map-shell,
  body.map-public-page .club-list-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}
