/* The app and website share Ionicons outlines for interface actions. The subset
   occupies the matching Font Awesome codepoints, so server-rendered and live
   updates use the same icons without replacing DOM nodes or accessible names. */
@font-face {
  font-family: "MySetMatch Interface";
  src: url("../lib/mysetmatch-icons/interface.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
html :is(.fa,.fas,.fa-solid,.far,.fa-regular):not(.fab,.fa-brands) {
  font-family: "MySetMatch Interface", "Font Awesome 6 Free";
}
html body main .msm-section-title,
html body main .page-header h1:not(.d-flex):not(.d-inline-flex):has(>i:first-child) {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  color: var(--ds-text-primary);
  font-size: var(--ds-page-heading);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -.045em;
  margin-block-end: .45rem;
  overflow-wrap: anywhere;
}
html body main .msm-section-title > i:first-child,
html body main .page-header h1 > i:first-child {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.42em;
  height: 1.42em;
  max-width: 3.15rem;
  max-height: 3.15rem;
  color: var(--ds-icon);
  background: var(--ds-icon-surface);
  border-radius: .37em;
  margin-inline: 0 !important;
  font-size: .88em;
  font-style: normal;
  letter-spacing: 0;
  vertical-align: middle;
}
html body main :is(.msm-section-title, .page-header h1):has(>i:first-child)::after { display: none; }
html body main .page-header:has(h1) {
  padding: 0 0 clamp(var(--ds-space-4), 2vw, var(--ds-space-6));
  border: 0;
  border-bottom: 1px solid var(--ds-border-default);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
html body main .page-header:has(h1)::before,
html body main .page-header:has(h1)::after { display: none; }
html main :is(.ve-top,.co-top,.tn-top,.tr-top,.acct-head,.mni-page-head,.cd-head) {
  border-block-end: 1px solid var(--ds-border-default);
  padding-block-end: clamp(1rem, 2.2vw, 1.65rem);
  margin-block-end: clamp(1.1rem, 2.3vw, 1.85rem);
}
html main :is(.msm-section-title, .page-header h1) + p {
  color: var(--ds-text-secondary);
  line-height: 1.5;
}
html main :is(.ds-section-eyebrow,.ds-section-kicker,.ve-caption,.co-caption) {
  color: var(--ds-text-muted);
}
html main :is(.ve-filters,.co-filters,.tn-filters,.acct-card,.tr-plans-bar,.filter-sidebar) {
  border-color: var(--ds-border-default);
  background-color: var(--ds-surface-primary);
}
html .marketplace-sections .btn[aria-current="page"] {
  color: var(--ds-text-primary) !important;
  background: var(--ds-icon-surface) !important;
  border-color: var(--ds-icon) !important;
  box-shadow: inset 0 -2px var(--ds-icon);
}
html main .ds-empty-icon,
html .admin-shell__content .ds-empty-icon,
html .acct-row-icon--password {
  background: var(--ds-icon-surface);
  color: var(--ds-icon);
  box-shadow: none;
}
html .ds-empty-icon { border-radius: var(--ds-radius-xl); }
html main .table > thead > tr > th,
html .admin-shell__content .table > thead > tr > th {
  color: var(--ds-text-secondary);
  border-bottom-color: var(--ds-border-default);
  font-weight: 640;
}
html .navbar .dropdown-item > :is(.fas,.far),
html .footer:not(.site-footer) a:not(:hover) > :is(.fas,.far) { color: var(--ds-icon); }
html [data-admin-shell] .admin-nav__tab.is-current {
  box-shadow: inset 0 -2px var(--ds-brand-primary);
}

/* A shared introduction for the search directories and the player's workspace.
   The court drawing reuses the brand artwork and stays behind the live controls. */
html body main :is(.directory-intro, .page-header.directory-intro:has(h1), .home-shell .home-masthead) {
  position: relative;
  isolation: isolate;
  min-width: 0;
  margin-block: 0 var(--ds-space-5);
  padding: clamp(var(--ds-space-4), 2.7vw, var(--ds-space-8));
  background: var(--ds-surface-secondary) !important;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-xl);
  box-shadow: none;
}
html body main :is(.directory-intro, .page-header.directory-intro:has(h1), .home-shell .home-masthead)::after {
  content: "";
  position: absolute;
  display: block;
  inset: 0 0 0 auto;
  z-index: -1;
  width: min(40%, 21rem);
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  background: var(--ds-icon);
  mask: var(--ds-court-lines) right center / cover no-repeat;
  opacity: .13;
}
html body main .directory-intro .msm-section-title {
  font-size: clamp(1.85rem, 3.2vw, 3.2rem);
  letter-spacing: -.047em;
  line-height: 1.08;
  margin: 0 0 var(--ds-space-2);
}
html body main .directory-intro .msm-section-title > i:first-child {
  width: 1.32em;
  height: 1.32em;
  background: var(--ds-surface-primary);
  color: var(--ds-icon);
  border: 1px solid var(--ds-border-default);
  font-size: .76em;
}
html main .directory-intro p {
  margin: 0;
  max-width: 66ch;
  color: var(--ds-text-secondary);
  line-height: 1.5;
}
html main :is(.tn-filters,.ve-filters,.co-filters,.lb-filters) {
  padding: clamp(var(--ds-space-3), 1.65vw, var(--ds-space-5));
  background: var(--ds-surface-primary);
  box-shadow: var(--ds-shadow-xs);
}
html main :is(.tn-filters,.ve-filters,.lb-filters,.co-filters)
:is(label:not(.dropdown-item,.form-check-label),.tn-caption,.ve-caption,.lb-caption,.co-caption) {
  color: var(--ds-text-secondary);
  font-size: var(--ds-type-label);
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}
@media (max-width: 39.999rem) {
  html body main :is(.directory-intro,.page-header.directory-intro:has(h1),.home-shell .home-masthead)::after {
    width: 34%;
    opacity: .07;
  }
}
@media (forced-colors: active) {
  html body main :is(.directory-intro,.page-header.directory-intro:has(h1),.home-shell .home-masthead)::after { display: none; }
}

/* Account access — clubhouse photography, one form column and one primary action. */
html .auth-shell.auth-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--ds-space-6);
  max-width: 36rem;
  margin-inline: auto;
  padding: var(--ds-space-5) 0 var(--ds-space-12);
}
html .auth-entry .entry-photo {
  --entry-photo: url("../images/entry-court.jpg");
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  justify-content: space-between;
  align-items: end;
  padding: var(--ds-space-3);
  min-height: clamp(5.5rem, 26vw, 9rem);
  border-radius: var(--ds-radius-xl);
  overflow: hidden;
  background: var(--ds-startup-court);
}
html .auth-entry--register .entry-photo { --entry-photo: url("../images/entry-equipment.jpg"); }
html .auth-entry .entry-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--entry-photo) 56% 25% / cover no-repeat;
}
html .auth-entry .auth-brand-mark {
  align-self: start;
  width: var(--ds-space-10);
  height: var(--ds-space-10);
  flex: none;
  border-radius: var(--ds-radius-md);
}
html .auth-entry .entry-explore {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-control-min);
  padding: var(--ds-space-2) var(--ds-space-3);
  background: var(--ds-startup-shadow);
  color: var(--ds-startup-ink);
  border-radius: 999px;
  font-size: var(--ds-type-label);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
html .auth-entry .entry-explore:focus-visible { outline: 3px solid var(--ds-startup-ink); outline-offset: 2px; }
html .auth-entry .auth-card {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent !important;
  box-shadow: none;
}
html .auth-entry .auth-head {
  display: block;
  margin: 0 0 var(--ds-space-6);
  text-align: start;
}
html .auth-entry .auth-title {
  color: var(--ds-text-primary);
  font-size: var(--ds-type-display-small);
  font-weight: 680;
  letter-spacing: -.055em;
  line-height: 1.06;
  overflow-wrap: anywhere;
  margin: 0 0 var(--ds-space-2);
}
html .auth-entry .auth-sub {
  color: var(--ds-text-secondary);
  max-width: 40ch;
  line-height: 1.45;
}
html .auth-entry .entry-form, html .auth-entry .entry-group, html .auth-entry .entry-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ds-space-4);
  min-width: 0;
}
html .auth-entry .entry-group { border: 0; margin: 0; padding: 0; }
html .auth-entry .entry-group legend {
  float: none;
  color: var(--ds-text-primary);
  font-size: var(--ds-type-heading-4);
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 650;
  padding: 0;
  margin: 0 0 var(--ds-space-3);
}
html .auth-entry .entry-group + .entry-group {
  padding-top: var(--ds-space-1);
}
html .auth-entry .auth-field { min-width: 0; margin: 0; }
html .auth-entry .form-label {
  margin-bottom: var(--ds-space-1);
  font-size: var(--ds-type-body-small);
  color: var(--ds-text-secondary);
  font-weight: 600;
}
html .auth-entry .form-control {
  width: 100%;
  min-height: var(--ds-input-height);
  background-color: var(--ds-surface-primary);
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-md);
  padding-inline: var(--ds-space-3);
  font-size: var(--ds-type-body);
  color: var(--ds-text-primary);
}
html .auth-entry .auth-pw-wrap .form-control { padding-inline-end: calc(var(--ds-control-min) + var(--ds-space-2)); }
html .auth-entry .form-control:focus { outline: 2px solid var(--ds-focus-ring); outline-offset: 1px; }
html .auth-entry .form-control.input-validation-error { border-color: var(--ds-error); }
html .auth-entry .entry-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--ds-space-3);
}
html .auth-entry .auth-remember { margin: 0; }
html .auth-entry .auth-remember .form-check-label { padding-left: var(--ds-space-2); }
html .auth-entry .entry-hint, html .auth-entry .auth-consent {
  color: var(--ds-text-muted);
  font-size: var(--ds-type-label);
  line-height: 1.5;
  margin: 0;
}
html .auth-entry .entry-hint { margin-top: var(--ds-space-1); }
html .auth-entry .auth-pw-rules {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-1) var(--ds-space-4);
  padding: var(--ds-space-3);
  border-radius: var(--ds-radius-md);
  margin: 0;
  background: var(--ds-icon-surface);
}
html .auth-entry .auth-pw-rules li { color: var(--ds-text-secondary); gap: var(--ds-space-1); }
html .auth-entry .auth-pw-rules li.is-met, html .auth-entry .auth-pw-rules li.is-met i { color: var(--ds-success); }
html .auth-entry .auth-pw-rules li:not(.is-met) i { font-size: .42em; color: var(--ds-icon); }
html .auth-entry .entry-contact summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-control-min);
  color: var(--ds-text-primary);
  font-size: var(--ds-type-body-small);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
html .auth-entry .entry-contact summary span { font-weight: 450; color: var(--ds-text-muted); }
html .auth-entry .entry-contact summary::-webkit-details-marker { display: none; }
html .auth-entry .entry-contact summary i { color: var(--ds-icon); }
html .auth-entry .entry-contact[open] summary i { rotate: 45deg; }
html .auth-entry .auth-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--ds-space-3);
  width: 100%;
  min-height: var(--ds-control-large);
  border-radius: var(--ds-radius-lg);
  font-size: var(--ds-type-body);
  font-weight: 650;
}
html .auth-entry .auth-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 var(--ds-space-3);
  text-align: start;
  padding-top: var(--ds-space-2);
  margin-top: var(--ds-space-5);
}
html .auth-entry .auth-foot p { margin: 0; }
html .auth-entry .auth-consent a { font-weight: 600; }
@media (max-width: 63.99rem) {
  html .auth-entry .entry-photo { justify-content: flex-start; }
  /* The navigation already carries the graphite mark at compact widths. */
  html .auth-entry .entry-photo .auth-brand-mark { display: none; }
  html .auth-entry--register .entry-photo::before { background-position: center 49%; }
}
@media (min-width: 64rem) {
  html .auth-shell.auth-entry {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    gap: clamp(var(--ds-space-8), 5vw, var(--ds-space-16));
    width: 100%;
    max-width: 69rem;
    align-items: stretch;
    padding-block: clamp(var(--ds-space-6), 5vh, var(--ds-space-12));
  }
  html .auth-entry .entry-photo {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--ds-space-5);
    border-radius: var(--ds-radius-2xl);
    min-height: 33rem;
  }
  html .auth-entry .entry-photo::before { background-position: 72% center; }
  html .auth-entry--register .entry-photo::before { background-position: 56% center; }
  html .auth-entry .auth-card { align-self: center; padding-block: var(--ds-space-3); }
  html .auth-entry .auth-head { margin-block-end: var(--ds-space-8); }
}
@container entry-fields (min-width: 25rem) {
  html .auth-entry .entry-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
html .auth-entry .auth-card { container: entry-fields / inline-size; }
@media (prefers-reduced-motion: no-preference) {
  html .auth-entry .auth-submit i, html .auth-entry .entry-explore i { transition: transform var(--ds-motion-fast) var(--ds-ease); }
  html .auth-entry :is(.auth-submit,.entry-explore):hover i { transform: translateX(.16em); }
}
@media (max-width: 575.98px) {
  html main :is(.ve-top,.co-top,.tn-top,.tr-top,.acct-head,.mni-page-head,.cd-head) { padding-block-end: 1rem; }
}
@media (forced-colors: active) {
  html .navbar .msm-desktop-links a[aria-current] { outline: 2px solid Highlight; }
  html body main .msm-section-title > i:first-child { border: 1px solid CanvasText; color: CanvasText; }
}

/* The same three steps follow the player from account creation to the saved profile. */
html .auth-entry .entry-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-2) var(--ds-space-4);
  padding: 0;
  margin: 0 0 var(--ds-space-5);
  list-style: none;
  color: var(--ds-ink-500);
  font-size: var(--ds-type-caption);
}
.entry-steps li { display: inline-flex; gap: var(--ds-space-1); align-items: center; }
.entry-steps .step-number {
  display: inline-grid; place-items: center; min-width: 1.65em; min-height: 1.65em;
  border: 1px solid var(--ds-border-strong); border-radius: 50%; font-variant-numeric: tabular-nums;
}
.entry-steps [aria-current="step"] { color: var(--ds-ink-900); font-weight: 700; }
.entry-steps [aria-current="step"] .step-number { background: var(--ds-brand-soft); border-color: var(--ds-brand-strong); color: var(--ds-brand-strong); }
.entry-steps .is-complete .step-number { color: var(--ds-ink-800); background: var(--ds-surface-2); }
.entry-address { overflow-wrap: anywhere; color: var(--ds-ink-900); }
.entry-personalize[open] summary { margin-bottom: var(--ds-space-4); }
.auth-entry .entry-recovery { margin: var(--ds-space-4) 0; color: var(--ds-ink-500); }
.auth-entry .entry-recovery a { color: var(--ds-brand-strong); }
html .auth-entry .sport-grid { margin-block: var(--ds-space-2) var(--ds-space-4); }

/* One sign-in panel keeps the account heading, return context and form together. */
html .auth-shell.auth-entry--login {
  margin-block: clamp(var(--ds-space-4), 4vw, var(--ds-space-12));
  padding: 0;
  gap: 0;
  background: var(--ds-surface-primary);
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-2xl);
  box-shadow: var(--ds-shadow-sm);
}
html .auth-entry--login .entry-welcome {
  min-height: 0;
  height: clamp(5.75rem, 22vw, 9rem);
  padding: 0;
  border-radius: var(--ds-radius-2xl) var(--ds-radius-2xl) 0 0;
}
html .auth-entry--login .entry-photo::before { background-position: 60% 31%; }
html .auth-entry--login .auth-card {
  padding: clamp(var(--ds-space-4), 4vw, var(--ds-space-10));
}
html .auth-entry--login .auth-head { margin-bottom: var(--ds-space-4); }
html .auth-entry--login .auth-title {
  font-size: clamp(1.8rem, 2.8vw, 2.65rem);
  text-wrap: balance;
  line-height: 1.1;
}
html .auth-entry--login :is(.auth-submit,.entry-create-account) {
  border-radius: var(--ds-radius-md);
}

html .auth-entry .entry-password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-2);
  flex-wrap: wrap;
}
html .auth-entry .entry-password-label a {
  display: inline-flex;
  align-items: center;
  min-height: var(--ds-control-min);
}
html .auth-entry .entry-create-account {
  display: flex;
  flex-basis: 100%;
  padding-inline: var(--ds-space-4);
  justify-content: center;
  align-items: center;
  min-height: var(--ds-input-height);
  border: 1px solid var(--ds-border-strong);
  border-radius: 999px;
  color: var(--ds-text-primary);
  font-size: var(--ds-type-body);
  font-weight: 650;
  text-decoration: none;
}
html .auth-entry .entry-create-account:hover { background: var(--ds-surface-2); }
html .auth-entry .entry-browse-link {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-control-min);
  color: var(--ds-text-secondary);
  font-size: var(--ds-type-body-small);
}
@media (min-width: 64rem) {
  html .auth-shell.auth-entry--login { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  html .auth-entry--login .entry-welcome {
    align-self: stretch;
    align-items: flex-start;
    height: auto;
    min-height: 29rem;
    padding: var(--ds-space-5);
    border-radius: var(--ds-radius-2xl) 0 0 var(--ds-radius-2xl);
  }
  html .auth-entry--login .entry-photo::before { background-position: 96% 50%; }
}

@media (prefers-reduced-motion: no-preference) {
  html .auth-entry .entry-steps [aria-current="step"] .step-number,
  html .auth-entry .entry-contact[open] > .auth-field {
    animation: ds-fade-up var(--ds-motion-fast) var(--ds-ease) backwards;
  }
}

.account-racket {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-2) var(--ds-space-3);
  margin: var(--ds-space-3) 0 var(--ds-space-4);
  max-width: 48rem;
  background: var(--ds-surface-secondary);
  border-radius: var(--ds-radius-lg);
  color: var(--ds-text-primary);
  text-align: start;
}
.account-racket[hidden], [data-racket-arrival][hidden] { display: none !important; }
.account-racket-art {
  display: block;
  width: clamp(3.25rem, 8vw, 4.5rem);
  flex: none;
  aspect-ratio: 1;
}
/* The inline vector remains available while a material downloads or is offline.
   Readiness is per plate and is shared by late-created assistant clones. */
.racket-grip-ready .ai-robot-plate-grip,
.racket-shell-ready .ai-robot-plate-shell { display: inline; }
.racket-grip-ready .ai-robot-vector-grip,
.racket-shell-ready .ai-robot-vector-head { display: none; }
#aiChatWidget[data-state="error"] .ai-robot-plate-shell { display: none; }
#aiChatWidget[data-state="error"] .ai-robot-vector-head { display: inline; }
.racket-alert-ready #aiChatWidget[data-state="error"] .ai-robot-vector-head { display: none; }
.racket-alert-ready #aiChatWidget[data-state="error"] .ai-robot-plate-alert { display: inline; }
/* Each nested SVG crops a single camera pose from its 5-column atlas. */
.ai-robot[data-turn-head] :is(.ai-robot-turn-grip, .ai-robot-turn-shell) { display: inline; }
.ai-robot[data-turn-head] :is(.ai-robot-plate-grip, .ai-robot-vector-grip, .ai-robot-plate-shell, .ai-robot-vector-head),
.ai-robot[data-turn-head="alert"] .ai-robot-turn-shell { display: none; }
#aiChatWidget[data-state="error"] .ai-robot[data-turn-head] :is(.ai-robot-plate-alert, .ai-robot-vector-head) { display: none; }
.ai-robot[data-turn-head="alert"] .ai-robot-turn-alert { display: inline; }
/* The happy arcs soften into open eyes at eye contact; the smile stays. */
.ai-robot[data-turn-happy] .ai-robot-happy-eyes,
#aiChatWidget .ai-robot[data-turn-happy] .ai-robot-happy-eyes { display: inline; opacity: calc(1 - var(--racket-eye-contact, 0)); }
.ai-robot[data-turn-happy] .ai-robot-eyes,
#aiChatWidget .ai-robot[data-turn-happy] .ai-robot-eyes { display: inline; opacity: var(--racket-eye-contact, 0); }
.account-racket-art > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.account-racket-message { min-width: 0; }
.account-racket-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--ds-space-1) var(--ds-space-3); margin-bottom: var(--ds-space-1); }
.account-racket-achievement { display: inline-flex; align-items: center; gap: var(--ds-space-1); color: var(--ds-success); font-size: var(--ds-type-label); font-weight: 650; }
.account-racket-achievement svg { flex: none; align-self: center; }
.account-racket-achievement[hidden] { display: none; }
.account-racket-message strong { font-size: var(--ds-type-label); font-weight: 700; }
.account-racket-message p { margin: 0; color: var(--ds-text-secondary); font-size: var(--ds-type-body-small); line-height: 1.5; }
.account-racket[data-racket-stage="welcome"] { margin-inline: auto; }
@keyframes racket-account-acknowledge {
  0%, 100% { transform: none; }
  34% { transform: perspective(400px) rotateX(9deg) translateY(2px); }
}
@keyframes racket-account-serve {
  0%, 100% { transform: none; }
  42% { transform: translate(4px, -22px) rotate(8deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .account-racket-art .ai-robot[data-turn-ack] .ai-robot-body {
    transform-origin: 50% 85%;
    animation: racket-account-acknowledge 620ms var(--ds-ease) 1;
  }
  .account-racket-act .ai-robot-equipment {
    transform-origin: center;
    animation: racket-account-serve 720ms var(--ds-ease) 1;
  }
}

/* A single registration surface from account details through player setup. */
html .auth-shell.auth-entry--register {
  grid-template-areas: "form" "court";
  gap: var(--ds-space-8);
  align-items: start;
  padding-block: var(--ds-space-5) var(--ds-space-8);
}
html .auth-entry--register .auth-card { grid-area: form; }
html .auth-entry--register .registration-court {
  grid-area: court;
  position: relative;
  display: grid;
  align-content: end;
  justify-items: start;
  justify-content: normal;
  align-items: start;
  gap: var(--ds-space-4);
  min-height: 14rem;
  padding: var(--ds-space-6);
  color: var(--ds-startup-ink);
  background: var(--ds-startup-shadow);
}
html .auth-entry--register .registration-court::before {
  background: linear-gradient(to top, var(--ds-startup-shadow), transparent 85%),
              url("../images/entry-court.jpg") 75% 46% / cover no-repeat;
}
html .auth-entry--register .registration-court .auth-brand-mark { display: none; }
.registration-court-caption {
  max-width: 14ch;
  margin: 0;
  color: var(--ds-startup-ink);
  font-size: var(--ds-type-heading-1);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.04;
  text-wrap: balance;
}
html .auth-entry--register .registration-court .entry-explore {
  background: transparent;
  color: var(--ds-startup-ink);
  padding: 0;
  gap: var(--ds-space-2);
  text-decoration: underline;
  text-underline-offset: .22em;
}
html .auth-entry--register .entry-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--ds-space-2);
  margin: 0 0 var(--ds-space-6);
  color: var(--ds-text-secondary);
}
html .auth-entry--register .entry-steps li {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: baseline;
  column-gap: var(--ds-space-1);
  row-gap: var(--ds-space-2);
  line-height: 1.3;
}
html .auth-entry--register .entry-steps li::before {
  content: "";
  grid-column: 1 / -1;
  height: var(--ds-space-1);
  border-radius: var(--ds-radius-xs);
  background: var(--ds-border-default);
}
html .auth-entry--register .entry-steps :is(.is-complete,[aria-current="step"])::before { background: var(--ds-brand-primary); }
html .auth-entry--register .entry-steps .step-number {
  min-width: auto;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  animation: none;
}
html .auth-entry--register .entry-steps [aria-current="step"] { color: var(--ds-brand-strong); }
html .auth-entry--register .auth-head { margin-bottom: var(--ds-space-5); }
html .auth-entry--register .auth-title { margin-bottom: var(--ds-space-3); }
html .auth-entry--register .account-racket {
  padding: var(--ds-space-2) var(--ds-space-3) var(--ds-space-2) var(--ds-space-2);
  margin-block: var(--ds-space-3) var(--ds-space-4);
  background: var(--ds-surface-secondary);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-md);
}
html .auth-entry--register .account-racket-art { width: 3rem; height: 3rem; }
html .auth-entry--register .account-racket-byline { margin-bottom: 0; }
html .auth-entry--register .registration-panel { display: grid; gap: var(--ds-space-4); }
html .auth-entry--register :is(.registration-panel, [data-registration-next], [data-registration-back], [data-registration-alternates])[hidden] { display: none; }
html .auth-entry--register [data-registration-step] .registration-security-legend { display: none; }
html .auth-entry--register .form-label { color: var(--ds-text-primary); }
html .auth-entry--register .registration-optional { color: var(--ds-text-secondary); font-weight: 400; }
html .auth-entry--register :is(.entry-hint, .entry-contact summary span, .auth-foot p) { color: var(--ds-text-secondary); }
html .auth-entry--register .form-control { border-radius: var(--ds-radius-sm); }
html .auth-entry--register .auth-submit,
html .auth-entry--register .registration-back { border-radius: var(--ds-radius-md); }
html .auth-entry--register .entry-contact summary { width: fit-content; }
html .auth-entry--register .auth-foot { margin-top: var(--ds-space-5); padding-top: var(--ds-space-4); }
html .auth-entry--register .auth-foot a { text-underline-offset: .2em; }
.registration-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--ds-space-2);
}
html .auth-entry--register .registration-actions .auth-submit { flex: 1 1 10rem; width: auto; }
.registration-back { display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-space-2); min-height: var(--ds-control-min); }
html .auth-entry--register #pw-match:not(:empty) { display: block; color: var(--ds-success); font-weight: 600; }
@media (max-width: 36rem) {
  html .auth-shell.auth-entry--register { padding-block-start: var(--ds-space-2); }
  html .auth-entry--register .entry-steps { margin-bottom: var(--ds-space-4); }
  html .auth-entry--register .auth-head { margin-bottom: var(--ds-space-3); }
  html .auth-entry--register .auth-title { margin-bottom: var(--ds-space-2); }
  html .auth-entry--register .account-racket { margin-block: var(--ds-space-2); }
  html .auth-entry--register .registration-panel,
  html .auth-entry--register .registration-panel :is(.entry-group, .entry-pair) { gap: var(--ds-space-3); }
}
@media (min-width: 64rem) {
  html .auth-shell.auth-entry--register {
    grid-template-areas: "court form";
    grid-template-columns: minmax(0,.91fr) minmax(0,1.09fr);
    align-items: stretch;
    gap: 0;
    max-width: 71rem;
    margin-block: var(--ds-space-5) var(--ds-space-10);
    padding: var(--ds-space-2);
    border: 1px solid var(--ds-border-subtle);
    border-radius: var(--ds-radius-2xl);
    background: var(--ds-surface-primary);
    box-shadow: var(--ds-shadow-sm);
  }
  html .auth-entry--register .registration-court {
    align-self: start;
    position: sticky;
    top: calc(var(--ds-space-16) + var(--ds-space-4));
    min-height: clamp(32rem, 70vh, 48rem);
    grid-template-rows: 1fr auto auto;
    padding: clamp(var(--ds-space-6), 3vw, var(--ds-space-10));
    border-radius: var(--ds-radius-lg);
  }
  html .auth-entry--register .registration-court::before {
    background: linear-gradient(to top, var(--ds-startup-shadow), color-mix(in srgb, var(--ds-startup-shadow) 55%, transparent) 25%, transparent 62%),
                url("../images/entry-court.jpg") 92% 40% / cover no-repeat;
  }
  html .auth-entry--register .registration-court .auth-brand-mark { display: block; }
  html .auth-entry--register .registration-court-caption { font-size: var(--ds-type-display-large); }
  html .auth-entry--register .auth-card {
    align-self: center;
    padding: var(--ds-space-8) clamp(var(--ds-space-6), 3.5vw, var(--ds-space-16));
  }
}
@media (prefers-reduced-motion: no-preference) {
  .auth-entry--register [data-registration-step] .registration-panel:not([hidden]) {
    animation: registration-panel-in var(--ds-motion-standard) var(--ds-ease) both;
  }
  @keyframes registration-panel-in {
    from { transform: translateY(var(--ds-space-1)); }
    to { transform: none; }
  }
}
@media (forced-colors: active) {
  html .auth-entry--register .entry-steps li::before { border-top: 2px solid GrayText; }
  html .auth-entry--register .entry-steps [aria-current="step"]::before { border-color: Highlight; }
}

/* Shared website chrome. Brand surfaces frame the page; menus use the page's
   light/dark surfaces. Orange fills take the same dark ink as form actions. */
.site-shell-header, .site-footer {
  --shell-court: var(--ds-startup-court);
  --shell-court-inset: color-mix(in srgb, var(--shell-court) 60%, var(--ds-startup-shadow));
  --shell-court-hover: var(--ds-startup-surface);
  --shell-court-border: color-mix(in srgb, var(--ds-startup-line) 47%, var(--shell-court));
  --shell-court-divider: color-mix(in srgb, var(--ds-startup-line) 23%, var(--shell-court));
  --shell-on-court: var(--ds-startup-ink);
  --shell-muted-on-court: var(--ds-startup-muted);
  --shell-action: var(--ds-brand-primary);
  --shell-on-action: var(--ds-on-accent);
  --shell-action-ink: var(--ds-brand-strong);
  --shell-selected: var(--ds-brand-soft);
  --shell-surface: var(--ds-background-primary);
  --shell-panel: var(--ds-surface-primary);
  --shell-text: var(--ds-text-primary);
  --shell-secondary: var(--ds-text-secondary);
  --shell-border: var(--ds-border-default);
}

@media (prefers-contrast: more) {
  .site-shell-header, .site-footer {
    --shell-on-court: var(--ds-on-dark);
    --shell-muted-on-court: var(--ds-startup-ink);
  }
}

/* A compact directory on the court-green surface, with preferences and
   downloads in a separate utility row. */
html .footer.site-footer {
  padding: 0;
  text-align: start;
  color: var(--shell-on-court);
  background: var(--shell-court-inset) !important;
  border-top: 1px solid var(--shell-court-divider) !important;
}
.site-footer-primary {
  color: var(--shell-on-court);
  background: var(--shell-court);
  border-bottom: 1px solid var(--shell-court-divider);
}
.site-footer-main, .site-footer-inner, .site-footer-tools, .site-footer-directory {
  display: grid;
  gap: var(--ds-space-5);
}
.site-footer-main { padding-block: var(--ds-space-5); }
.site-footer-inner { gap: var(--ds-space-3); padding-block: var(--ds-space-3) max(var(--ds-space-3), env(safe-area-inset-bottom)); }
.site-footer-tools { align-items: start; gap: var(--ds-space-3); }
.site-footer-main > *, .site-footer-tools > *, .site-footer-directory > * { min-width: 0; }
.site-footer-feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-4);
  min-height: 8.75rem;
  padding: var(--ds-space-4) var(--ds-space-5);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-startup-shadow);
}
.site-footer-photo, .site-footer-feature::before {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
}
.site-footer-photo { z-index: -2; object-fit: cover; }
.site-footer-feature::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ds-startup-shadow) 85%, transparent),
                                     color-mix(in srgb, var(--ds-startup-shadow) 60%, transparent) 48%, transparent 94%),
              linear-gradient(0deg, color-mix(in srgb, var(--ds-startup-shadow) 88%, transparent), transparent 62%);
}
html .site-footer .site-footer-feature a {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-control-min);
  max-width: 100%;
  color: var(--shell-on-court) !important;
  text-decoration: none;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.site-footer-brand { font-size: var(--ds-type-heading-4); font-weight: 660; letter-spacing: -.035em; }
.site-footer-brand img { flex: none; width: 2rem; height: 2rem; border: 1px solid var(--shell-court-divider); border-radius: var(--ds-radius-sm); }
html .site-footer .site-footer-game {
  width: 100%;
  justify-content: space-between;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -.045em;
}
html .site-footer .site-footer-feature .site-footer-game > i {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--shell-action);
  color: var(--shell-on-action);
  font-size: var(--ds-type-body-small);
  letter-spacing: 0;
}
.site-footer-directory { gap: 0; align-content: start; }
.site-footer-directory nav {
  border-top: 1px solid var(--shell-court-divider);
}
.site-footer summary { list-style: none; cursor: pointer; }
.site-footer summary::-webkit-details-marker { display: none; }
.site-footer h2 {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-control-min);
  margin: 0;
  color: var(--shell-on-court);
  font-size: var(--ds-type-body-small);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.site-footer summary h2::after {
  content: "";
  flex: none;
  width: .44rem;
  height: .44rem;
  margin-inline: auto var(--ds-space-1);
  border-inline-end: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-.12rem) rotate(45deg);
}
.site-footer details[open] > summary h2::after { transform: translateY(.12rem) rotate(225deg); }
.site-footer-links { list-style: none; margin: 0 0 var(--ds-space-2); padding: 0; }
.site-footer-links a, .site-footer-policy a, .site-footer-top {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-control-min);
  max-width: 100%;
  text-decoration: none;
  font-size: var(--ds-type-body-small);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
html .site-footer .site-footer-links a { color: var(--shell-muted-on-court) !important; }
html .site-footer .site-footer-policy a, html .site-footer .site-footer-top { color: var(--shell-muted-on-court) !important; }
html .site-footer :is(.site-footer-links a,.site-footer-policy a,.site-footer-top):is(:hover,:focus-visible) {
  text-decoration: underline;
  text-underline-offset: .22em;
}
html .site-footer .site-footer-links a:is(:hover,:focus-visible) { color: var(--shell-on-court) !important; }
html .site-footer :is(.site-footer-policy a,.site-footer-top):is(:hover,:focus-visible) { color: var(--shell-on-court) !important; }
.site-footer .join-store { justify-content: flex-start; max-width: 100%; gap: var(--ds-space-2); }
html .site-footer .join-store .app-badge {
  flex: 0 1 auto;
  justify-content: flex-start;
  gap: var(--ds-space-2);
  min-height: var(--ds-control-min);
  max-width: 100%;
  padding: var(--ds-space-1) var(--ds-space-3);
  border: 1px solid var(--shell-court-divider);
  border-radius: var(--ds-radius-sm);
  background: transparent;
  color: var(--shell-on-court) !important;
  box-shadow: none;
  transform: none;
}
.site-footer .app-badge-icon { font-size: var(--ds-type-heading-3); }
.site-footer .app-badge-text small { font-size: var(--ds-type-caption); color: var(--shell-muted-on-court); opacity: 1; }
.site-footer .app-badge-text strong { font-size: var(--ds-type-body-small); color: inherit; letter-spacing: normal; }
.site-footer-sports summary {
  width: fit-content;
  max-width: 100%;
  border-radius: var(--ds-radius-sm);
}
.site-footer-sports h2 {
  flex-wrap: wrap;
  padding-block: var(--ds-space-1);
  color: var(--shell-muted-on-court);
  font-weight: 500;
}
.site-footer-sports summary i { flex: none; width: 1.25em; text-align: center; }
.site-footer-sports summary h2::after { margin-inline-start: 0; }
.site-footer-current {
  color: var(--shell-on-court);
  font-weight: 650;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
.site-footer-sports .footer-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr));
  gap: var(--ds-space-1);
  margin-block: var(--ds-space-2) 0;
  padding: var(--ds-space-2);
  border: 1px solid var(--shell-court-divider);
  border-radius: var(--ds-radius-md);
}
.site-footer-sports button {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-width: 0;
  min-height: var(--ds-control-min);
  padding: var(--ds-space-1) var(--ds-space-2);
  border: 0;
  border-radius: var(--ds-radius-sm);
  background: transparent;
  color: var(--shell-muted-on-court);
  font: inherit;
  font-size: var(--ds-type-body-small);
  line-height: 1.25;
  text-align: start;
  overflow-wrap: anywhere;
}
.site-footer-sports button i { flex: none; width: 1.1em; text-align: center; }
.site-footer-sports button[aria-current="true"] { background: var(--shell-court-hover); color: var(--shell-on-court); font-weight: 650; }
.site-footer-sports button[aria-current="true"] i { color: var(--shell-action); }
.site-footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--ds-space-2);
  padding-top: var(--ds-space-2);
  border-top: 1px solid var(--shell-court-divider);
}
.site-footer-policy { display: flex; flex-wrap: wrap; gap: 0 var(--ds-space-4); }
.site-footer-policy a, .site-footer-top, .site-footer-copyright { font-size: var(--ds-type-label); }
.site-footer-copyright { flex-basis: 100%; color: var(--shell-muted-on-court); }
.site-footer-social { display: flex; }
html .site-footer .site-footer-social a {
  display: inline-grid;
  place-items: center;
  min-width: var(--ds-control-min);
  min-height: var(--ds-control-min);
  border-radius: var(--ds-radius-sm);
  color: var(--shell-muted-on-court) !important;
  font-size: var(--ds-type-heading-4);
}
.site-footer-top { margin-inline-start: auto; font-weight: 600; }
html .site-footer :is(a,button,summary):focus-visible { outline: 2px solid var(--shell-on-court); outline-offset: 2px; }
@media (hover: hover) {
  .site-footer summary:hover h2 { color: var(--shell-on-court); text-decoration: underline; text-underline-offset: .22em; }
  html .site-footer .site-footer-feature .site-footer-game:hover > i { background: var(--ds-brand-hover); }
  .site-footer-sports button:not([aria-current]):hover, html .site-footer .join-store .app-badge:hover,
  html .site-footer .site-footer-social a:hover { background: var(--shell-court-hover); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-footer-game > i { transition: transform var(--ds-dur) var(--ds-ease); }
  .site-footer-game:hover > i { transform: translateX(.18rem); }
}
@media (max-width: 39.999rem) {
  .site-footer-directory nav:last-child { border-bottom: 1px solid var(--shell-court-divider); }
  .site-footer-links { padding-inline-start: var(--ds-space-3); }
  .site-footer-policy { flex-basis: 100%; }
  .site-footer-base { padding-top: var(--ds-space-4); }
}
@media (min-width: 40rem) {
  .site-footer-main { padding-block: var(--ds-space-6); gap: var(--ds-space-6); }
  .site-footer-directory { grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--ds-space-6); }
  .site-footer-directory summary { width: fit-content; max-width: 100%; }
  .site-footer-directory summary h2::after { width: .35rem; height: .35rem; color: var(--shell-muted-on-court); }
  .site-footer-links { margin: 0; }
  .site-footer-tools { grid-template-columns: minmax(0,1fr) auto; gap: var(--ds-space-4); }
  .site-footer-download { grid-column: 2; }
  .site-footer-base { gap: 0 var(--ds-space-3); }
  .site-footer-copyright { flex-basis: auto; margin-inline-end: var(--ds-space-3); }
  .site-footer-social { margin-inline-start: auto; }
  .site-footer-top { margin-inline-start: 0; }
}
@media (min-width: 48rem) {
  .site-footer-main { grid-template-columns: minmax(0,.92fr) minmax(0,1.85fr); gap: clamp(var(--ds-space-6), 4vw, var(--ds-space-16)); }
  .site-footer-feature { padding: var(--ds-space-5); }
}
@media (min-width: 40rem) and (pointer: fine) {
  .site-footer-links a { min-height: var(--ds-space-8); }
}
@media (forced-colors: active) {
  .site-footer-feature, .site-footer-directory nav { border-color: CanvasText; }
  .site-footer-feature { border: 1px solid CanvasText; }
  .site-footer-photo, .site-footer-feature::before { visibility: hidden; }
  .site-footer-game i, .site-footer-sports button[aria-current="true"] { border: 2px solid Highlight; }
}

/* Keep destinations and the current sport together on wider screens. Small
   screens use a separate shortcut row so finding a game stays one tap away. */
.site-shell-header .site-nav-sport-shortcut,
.site-shell-header .site-nav-heading,
.site-shell-header .site-nav-preference-label,
.site-shell-header .site-nav-message-label { display: none; }
html .site-shell-header .navbar {
  color: var(--shell-on-court);
  padding-block: var(--ds-space-2);
  background: var(--shell-court) !important;
  border-bottom: 1px solid var(--shell-court-divider);
  box-shadow: none;
}
.site-shell-header .navbar .navbar-logo {
  width: 2.15rem; height: 2.15rem; flex: none;
  border: 0;
  border-radius: var(--ds-radius-sm);
}
html .site-shell-header .navbar .navbar-brand .brand-text {
  color: var(--shell-on-court);
  font-size: var(--ds-type-heading-4);
  letter-spacing: -.035em;
  line-height: 1.1;
  font-weight: 670;
}
html .site-shell-header .msm-auth-compact-login,
html .site-shell-header .msm-bell-compact > .msm-tool-btn { color: var(--shell-on-court) !important; }
html .site-shell-header .msm-auth-compact-login:is(:hover,:focus-visible,[aria-current]),
html .site-shell-header .msm-bell-compact > .msm-tool-btn:is(:hover,:focus-visible) { background: var(--shell-court-hover); }
html .site-shell-header .navbar .navbar-toggler {
  align-items: center; justify-content: center; gap: var(--ds-space-2);
  min-height: var(--ds-control-min);
  padding: var(--ds-space-2) var(--ds-space-3);
  border: 1px solid transparent;
  border-radius: var(--ds-action-radius);
  color: var(--shell-on-court) !important;
  background: transparent;
  font-size: var(--ds-type-body-small);
  line-height: 1;
  font-weight: 650;
}
html .site-shell-header .navbar .navbar-toggler:is(:hover,[aria-expanded="true"]) { background: var(--shell-court-hover); }
html .site-shell-header .navbar .navbar-toggler-icon {
  width: 1.2rem; height: 1rem; position: relative;
  background-image: none !important; opacity: 1;
}
.site-shell-header .navbar-toggler-icon::before, .site-shell-header .navbar-toggler-icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px;
  border-radius: var(--ds-radius-xs); background: currentColor;
  transform: translateY(-4px);
}
.site-shell-header .navbar-toggler-icon::after { transform: translateY(2px); }
.site-shell-header .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before { transform: translateY(-1px) rotate(45deg); }
.site-shell-header .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after { transform: translateY(-1px) rotate(-45deg); }
html .site-shell-header .site-nav-secondary {
  color: var(--shell-text);
  background: var(--shell-panel);
  border-bottom: 1px solid var(--shell-border);
}
.site-nav-secondary-inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--ds-space-3); }
.site-nav-quickplay { display: none; }
html .site-shell-header .sport-context-bar {
  display: flex; align-items: center; min-width: 0;
  background: transparent !important; color: var(--shell-text); border: 0;
}
html .site-shell-header .sport-ctx-switch {
  display: inline-flex; align-items: center; gap: var(--ds-space-2);
  margin: 0 !important; padding: var(--ds-space-1) var(--ds-space-2);
  min-width: var(--ds-control-min); min-height: var(--ds-control-min);
  border: 0; border-radius: var(--ds-radius-sm);
  color: var(--shell-text) !important; background: transparent;
  line-height: 1.25; white-space: normal; text-align: start;
}
html .site-shell-header .sport-ctx-switch:hover { background: var(--shell-surface); }
html .site-shell-header .sport-ctx-name { color: var(--shell-text) !important; font-size: var(--ds-type-label); overflow-wrap: anywhere; }
html .site-shell-header .sport-ctx-icon-wrap {
  background: var(--shell-selected); color: var(--shell-action-ink); border: 0; box-shadow: none;
}
html .site-shell-header .sport-ctx-icon-wrap i { color: inherit; }
.site-nav-sport-chevron { color: var(--shell-secondary); font-size: var(--ds-type-caption); }
html .site-shell-header :is(a,button):focus-visible { outline: 2px solid var(--ds-brand-strong); outline-offset: -2px; }
html .site-shell-header .site-nav-sport-shortcut:focus-visible,
html .site-shell-header .navbar-brand:focus-visible, html .site-shell-header .msm-desktop-links a:focus-visible,
html .site-shell-header .navbar-toggler:focus-visible, html .site-shell-header .msm-auth-compact a:focus-visible,
html .site-shell-header .msm-bell-compact > button:focus-visible { outline: 2px solid var(--shell-on-court); outline-offset: 2px; }
@media (min-width: 56.25em) {
  .site-shell-header .site-nav-secondary { display: none; }
}
@media (max-width: 56.249em) {
  .site-nav-secondary-inner { width: 100%; max-width: none; padding-inline: var(--ds-space-4); justify-content: space-between; }
  .site-nav-secondary-inner:has(.sport-context-bar) {
    display: grid; grid-template-columns: auto minmax(0,1fr);
  }
  .site-nav-secondary-inner .sport-context-bar { justify-self: end; max-width: 100%; }
  .site-nav-secondary-inner .sport-ctx-switch { max-width: 100%; }
  .site-nav-quickplay { display: flex; align-items: stretch; flex-wrap: wrap; column-gap: var(--ds-space-3); }
  .site-nav-quickplay a {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: var(--ds-control-min); padding-inline: var(--ds-space-1);
    color: var(--shell-text); font-size: var(--ds-type-body-small); font-weight: 570;
    line-height: 1.25; text-decoration: none;
  }
  .site-nav-quickplay a:is([aria-current],:hover) { color: var(--shell-action-ink); }
  .site-nav-quickplay a[aria-current] { box-shadow: inset 0 -2px var(--shell-action-ink); }
}
@media (max-width: 35.999em) {
  .site-nav-secondary:has(.sport-context-bar) .site-nav-quick-place { display: none; }
}
@media (max-width: 22em) {
  .site-nav-secondary-inner { padding-inline: var(--ds-space-2); column-gap: var(--ds-space-1); }
  .site-nav-quickplay { column-gap: var(--ds-space-2); }
  .site-nav-quickplay a { padding-inline: 0; }
  .site-shell-header .sport-ctx-icon-wrap { display: none; }
  html .site-shell-header .sport-ctx-switch { padding-inline: var(--ds-space-1); }
}
@media (prefers-reduced-motion: no-preference) {
  .site-shell-header .navbar-toggler-icon::before, .site-shell-header .navbar-toggler-icon::after {
    transition: transform var(--ds-motion-fast) var(--ds-ease);
  }
}
@media (max-width: 115.624em) {
  .site-shell-header .navbar.navbar-expand-xxl > .nav-shell {
    max-width: 75rem;
    padding-inline: var(--ds-space-4);
    column-gap: var(--ds-space-2);
  }
  .site-shell-header .msm-auth-compact { margin-inline: 0; }
  .site-shell-header .navbar.navbar-expand-xxl > .nav-shell > .navbar-collapse {
    inset-inline-end: 0;
    width: min(28rem, 100%);
    padding: var(--ds-space-4);
    border: 1px solid var(--shell-border);
    border-radius: var(--ds-radius-lg);
    background: var(--shell-panel);
    box-shadow: var(--ds-shadow-lg);
    max-height: calc(100vh - 5.5rem);
    max-height: calc(100dvh - 5.5rem - env(safe-area-inset-bottom, 0px));
  }
  .site-shell-header .navbar.navbar-expand-xxl .navbar-collapse > .navbar-nav.me-auto {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.2rem), 1fr));
    gap: var(--ds-space-1) var(--ds-space-2);
    margin-block: 0 !important; padding: 0; border: 0;
  }
  html .site-shell-header .navbar-collapse .navbar-nav > .nav-item { padding: 0; margin: 0; border: 0; }
  .site-shell-header .navbar.navbar-expand-xxl .navbar-collapse > .navbar-nav:has(.msm-auth-tail) { display: none; }
  .site-shell-header .site-nav-heading { display: block; grid-column: 1 / -1; min-width: 0; }
  .site-shell-header .site-nav-heading h2, .site-shell-header h2.site-nav-heading {
    margin: 0; padding: var(--ds-space-3) var(--ds-space-2) var(--ds-space-1);
    color: var(--shell-secondary); font-size: var(--ds-type-label);
    line-height: 1.4; font-weight: 700; letter-spacing: 0;
  }
  .site-shell-header .site-nav-community:has(.dropdown-menu.show) { grid-column: 1 / -1; }
  .site-shell-header .navbar-collapse button.nav-link { width: 100%; text-align: start; }
  html .site-shell-header .navbar-collapse .nav-link {
    display: flex; align-items: center; gap: var(--ds-space-2);
    min-height: var(--ds-control-min); margin: 0;
    padding: var(--ds-space-2) !important; border-radius: var(--ds-radius-sm);
    color: var(--shell-text) !important; font-size: var(--ds-type-body-small); font-weight: 550; line-height: 1.35;
  }
  html .site-shell-header .navbar-collapse .nav-link > i {
    flex: none; width: 1.1em; margin: 0 !important; text-align: center; color: var(--shell-secondary);
  }
  html .site-shell-header .navbar-collapse .nav-link.active {
    background: var(--shell-selected); color: var(--shell-action-ink) !important;
    box-shadow: inset 3px 0 var(--shell-action-ink);
  }
  .site-shell-header .navbar-nav .site-nav-heading:not(:first-child) { margin-block-start: var(--ds-space-1); }
  .site-shell-header h2.site-nav-settings { margin-block: var(--ds-space-3) var(--ds-space-2); border-top: 1px solid var(--shell-border); }
  .site-shell-header .site-nav-preference-label, .site-shell-header .site-nav-message-label { display: inline; }
  html .site-shell-header .navbar-collapse :is(.btn-sport-selector,.theme-selector-btn) {
    display: flex; align-items: center; width: 100%; gap: var(--ds-space-2);
    padding-inline: var(--ds-space-3); min-height: var(--ds-control-min);
    color: var(--shell-text) !important; background: var(--shell-surface) !important;
    border-color: var(--shell-border) !important; border-radius: var(--ds-radius-sm);
  }
  html .site-shell-header .navbar-collapse :is(.btn-sport-selector,.theme-selector-btn):is(:hover,:focus-visible,[aria-expanded="true"]) {
    border-color: var(--shell-secondary) !important;
    box-shadow: none !important;
  }
  .site-shell-header .site-nav-preference-label { font-weight: 600; }
  html .site-shell-header .navbar-collapse :is(.sport-name-label,[data-theme-current]) {
    margin-inline-start: auto; color: var(--shell-secondary); font-size: var(--ds-type-label);
  }
  html .site-shell-header .navbar-collapse :is(.sport-sel-chevron,.theme-selector-btn::after) { margin-inline-start: 0; }
  .site-shell-header .navbar-collapse .sport-selector-wrapper + .theme-selector-wrapper { margin-top: var(--ds-space-1); }
  html .site-shell-header #chatUnreadBadge { position: static !important; transform: none !important; margin-inline-start: auto; }
}
/* Menus use the page's reading surfaces. Only the chosen sport or appearance
   gets an accent, so the check and the selected label tell the same story. */
html .site-shell-header .navbar :is(.dropdown-menu,.msm-panel) {
  color: var(--shell-text);
  background-color: var(--shell-panel);
  border-color: var(--shell-border);
}
.site-shell-header .msm-panel-head { background: var(--shell-surface); border-color: var(--shell-border); }
html .site-shell-header .navbar :is(.sport-picker-header-row,.theme-picker-heading,.theme-choice small) { color: var(--shell-secondary); }
.site-shell-header .navbar .sport-picker-header-row {
  display: block; text-transform: none; letter-spacing: 0; font-size: var(--ds-type-body-small);
}
.site-shell-header .site-nav-filter-note { display: block; font-weight: 400; font-size: var(--ds-type-label); }
.site-shell-header .btn-sport-selector .sport-name-label { display: inline; max-width: none; }
html .site-shell-header .navbar .dropdown-item { color: var(--shell-text); }
html .site-shell-header .navbar .dropdown-item:is(:hover,:focus-visible) { background: var(--shell-surface); }
html .site-shell-header .navbar .dropdown-item:is([aria-checked="true"],[aria-current]) {
  color: var(--shell-action-ink);
  background: var(--shell-selected);
}
html .site-shell-header .navbar .sport-pick-icon {
  background: var(--shell-surface);
  color: var(--shell-secondary);
  border-color: transparent;
}
html .site-shell-header .navbar .sport-pick-btn[aria-checked="true"] { border-left-color: var(--shell-action-ink) !important; }
html .site-shell-header .navbar .sport-pick-btn[aria-checked="true"] .sport-pick-icon {
  color: inherit;
  background: transparent;
}
html .site-shell-header .navbar .sport-pick-name { color: inherit !important; }
html .site-shell-header .navbar .dropdown-item[aria-checked="true"] > i { color: inherit !important; }
html .site-shell-header .navbar .sport-sel-pill { color: inherit; background: transparent; border-color: transparent; }

html .site-shell-header .navbar :is(.msm-auth-compact-signup,.msm-drawer-auth:first-child .nav-link,.msm-auth-tail:first-child .nav-link) {
  color: var(--shell-on-action) !important;
  background: var(--shell-action) !important;
  border-color: var(--shell-action);
  box-shadow: none;
}
html .site-shell-header .navbar :is(.msm-drawer-auth,.msm-auth-tail):first-child .nav-link > i { color: inherit; }
html .site-shell-header .navbar :is(.msm-auth-compact-signup,.msm-drawer-auth:first-child .nav-link,.msm-auth-tail:first-child .nav-link):hover {
  text-decoration: underline;
  text-underline-offset: .18em;
}
@media (min-width: 56.25em) and (max-width: 115.624em) {
  .site-shell-header .navbar.navbar-expand-xxl > .nav-shell { padding-inline: var(--ds-space-6); }
  .site-shell-header .navbar .navbar-brand { margin-inline: 0; }
  .site-shell-header .navbar.navbar-expand-xxl > .nav-shell:has(> .site-nav-sport-shortcut) {
    grid-template-columns: auto minmax(0,1fr) auto auto auto;
  }
  .site-shell-header .site-nav-sport-shortcut {
    display: inline-flex; align-items: center; gap: var(--ds-space-2);
    min-height: var(--ds-control-min); padding: var(--ds-space-1) var(--ds-space-2);
    border: 0; border-radius: var(--ds-radius-sm);
    background: transparent; color: var(--shell-muted-on-court);
    font: inherit; font-size: var(--ds-type-label); font-weight: 550;
  }
  .site-nav-sport-shortcut i { font-size: var(--ds-type-caption); }
  .site-shell-header .site-nav-sport-shortcut:hover { background: var(--shell-court-hover); color: var(--shell-on-court); }
  .site-shell-header .msm-desktop-links {
    justify-self: center; justify-content: center; flex-wrap: wrap;
    min-width: 0; max-width: 100%; margin-inline: 0;
  }
  html .site-shell-header .msm-desktop-links a {
    display: inline-flex; align-items: center;
    min-height: var(--ds-control-min); padding: var(--ds-space-2) var(--ds-space-3);
    border-radius: var(--ds-radius-sm); color: var(--shell-muted-on-court);
    font-size: var(--ds-type-body-small); font-weight: 550; line-height: 1.25; text-decoration: none; white-space: nowrap;
  }
  html .site-shell-header .msm-desktop-links a:is(:hover,[aria-current]) { color: var(--shell-on-court); background: transparent; }
  html .site-shell-header .msm-desktop-links a[aria-current] {
    text-decoration: underline var(--shell-action) 2px; text-underline-offset: .42em;
  }
  .site-shell-header .navbar-collapse .site-nav-shortcut { display: none; }
}
@media (min-width: 56.25em) and (max-width: 71.999em) {
  html .site-shell-header .msm-desktop-links a { padding-inline: var(--ds-space-1); }
}
@media (min-width: 56.25em) and (max-width: 59.999em) {
  html .site-shell-header .msm-desktop-links [data-destination="Venues"] { display: none; }
  .site-shell-header .navbar-collapse .site-nav-place { display: block; }
}
@media (min-width: 56.25em) and (max-width: 67.999em) {
  html .site-shell-header .msm-desktop-links [data-destination="Marketplace"] { display: none; }
}
@media (min-width: 68em) and (max-width: 115.624em) {
  .site-shell-header .navbar-collapse .site-nav-drawer-market { display: none; }
}
@media (max-width: 35.999em) {
  html .site-shell-header .navbar .navbar-brand .brand-text { font-size: var(--ds-type-heading-4); }
  .site-shell-header .navbar .navbar-logo { width: 2rem; height: 2rem; }
  .site-shell-header .navbar.navbar-expand-xxl > .nav-shell > .navbar-collapse {
    inset-inline-end: calc(-1 * var(--ds-space-2));
    width: calc(100% + 2 * var(--ds-space-2));
    padding: var(--ds-space-3);
  }
  .site-shell-header .navbar-collapse .msm-drawer-auth .nav-link {
    justify-content: center; background: var(--shell-surface); border: 1px solid var(--shell-border);
  }
  .site-shell-header .nav-shell:has(.navbar-toggler[aria-expanded="true"]) .msm-auth-compact-login { visibility: hidden; }
}
@media (max-width: 22em) {
  .site-shell-header .site-nav-menu-text { display: none; }
  .site-shell-header .navbar.navbar-expand-xxl > .nav-shell { padding-inline: var(--ds-space-3); }
}
@media (min-width: 115.625em) {
  .site-shell-header .btn-sport-selector .sport-sel-pill { display: none; }
  html .site-shell-header .navbar :is(.btn-sport-selector,.theme-selector-btn) {
    color: var(--shell-on-court) !important;
    background: transparent !important;
    border-color: var(--shell-court-border) !important;
  }
  html .site-shell-header .navbar :is(.btn-sport-selector,.theme-selector-btn):is(:hover,:focus-visible,[aria-expanded="true"]) {
    background: var(--shell-court-hover) !important;
    border-color: var(--shell-on-court) !important;
    box-shadow: none !important;
  }
  html .site-shell-header .navbar :is(.btn-sport-selector,.theme-selector-btn,.msm-tool-btn):focus-visible { outline-color: var(--shell-on-court); }
  html .site-shell-header .navbar-nav .nav-link, html .site-shell-header .msm-nav-tools .msm-tool-btn { color: var(--shell-on-court) !important; }
  html .site-shell-header .navbar-nav button.nav-link { background: transparent; border: 0; }
  html .site-shell-header .navbar-nav .nav-link > i { color: var(--shell-muted-on-court); }
  html .site-shell-header .navbar-nav .nav-link:is(:hover,:focus-visible,.active),
  html .site-shell-header .msm-nav-tools .msm-tool-btn:is(:hover,:focus-visible) { background: var(--shell-court-hover); }
  html .site-shell-header .navbar-nav .nav-link.active { box-shadow: inset 0 -2px var(--shell-action); }
  html .site-shell-header .navbar-nav .nav-link:focus-visible { outline-color: var(--shell-on-court); }
}
@media (forced-colors: active) {
  .site-nav-quickplay [aria-current] { text-decoration: underline; }
  html .site-shell-header .navbar .navbar-toggler { border-color: ButtonText; }
  .site-shell-header .navbar-toggler-icon::before, .site-shell-header .navbar-toggler-icon::after { background: ButtonText; }
}

/* An important layered rule wins over page-specific transition shorthands
   while the new theme is painted, including on tab and calendar controls. */
@layer theme-switch {
  html[data-theme-switching], html[data-theme-switching] *,
  html[data-theme-switching] *::before, html[data-theme-switching] *::after {
    transition: none !important;
  }
}
