/* Transparent gold chains leave the storefront visible throughout the stinger. */
.court-stinger {
  --court-stinger-ready: 1;
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
  background: transparent;
}
.court-stinger[hidden] { display: none; }
.court-stinger__chain {
  position: absolute;
  left: 50%;
  top: var(--chain-top, 50%);
  width: var(--chain-width, 150vmax);
  opacity: var(--chain-depth, 1);
  transform: translate(-50%, -50%) rotate(var(--chain-angle, -18deg));
}
.court-stinger__chain img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  transform: translateX(var(--chain-entry, -110%));
  will-change: transform, opacity;
}
.court-stinger.is-playing .court-stinger__chain img {
  animation: court-chain-sweep 900ms cubic-bezier(.65, 0, .35, 1) var(--chain-delay, 0ms) both;
}
@keyframes court-chain-sweep {
  0% { transform: translateX(var(--chain-entry, -110%)); opacity: 0; }
  20% { opacity: 1; }
  28%, 50% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(var(--chain-exit, 110%)); opacity: 0; }
}
.court-settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #17121d;
  color: var(--gold2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.court-settings-button svg { flex-shrink: 0; }
.court-settings-button:hover { border-color: var(--gold); }
.court-settings-footer {
  display: block;
  border: 0;
  padding: 0;
  margin: 9px 0;
  background: none;
  color: #aaa0af;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.court-settings-footer:hover { color: var(--gold2); }
.court-settings-button:focus-visible,
.court-settings-footer:focus-visible,
.court-settings button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
#courtSettingsDialog {
  width: min(480px, 92vw);
  max-height: 90vh;
  max-height: 90dvh;
  overflow: auto;
}
.court-settings__heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.court-settings__heading h2 { margin: 0; font: 500 30px Georgia, serif; color: var(--gold2); }
.court-settings__heading .close { float: none; }
.court-settings__intro { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 14px 0 24px; }
.court-settings__sound { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.court-settings__sound strong { display: block; color: var(--cream); font-size: 16px; }
.court-settings__sound small { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 7px; }
.court-settings__switch { display: block; position: relative; flex: 0 0 52px; width: 52px; height: 30px; }
.court-settings__switch input { position: absolute; inset: 0; z-index: 1; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.court-settings__switch>span { display: block; width: 52px; height: 30px; border: 1px solid #7d7187; border-radius: 999px; background: #342a3d; }
.court-settings__switch>span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #d3cbd9; }
.court-settings__switch input:checked+span { background: var(--gold); border-color: var(--gold2); }
.court-settings__switch input:checked+span::after { left: 26px; background: #160e07; }
.court-settings__switch input:focus-visible+span { outline: 2px solid var(--gold2); outline-offset: 4px; }
.court-settings__controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.court-settings__controls>span { font-size: 13px; color: var(--gold2); }
.court-settings__controls button:disabled { opacity: .45; cursor: default; }
.court-settings__feedback { color: #f3c9df; font-size: 13px; line-height: 1.6; margin: 14px 0; }
.court-settings__feedback:empty { display: none; }
.court-settings__note { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 22px 0 0; }
@media (max-width: 1360px) {
  .nav { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-actions { display: none; }
  .mobile-account-link { display: block; }
  .site-header.open .nav { position: absolute; display: flex; flex-direction: column; left: 0; right: 0; top: 78px; background: #0b0910; padding: 20px 6vw; border-bottom: 1px solid var(--line); }
  .court-settings-button { width: 38px; padding: 0; }
  .court-settings-button>span { display: none; }
}
@media (max-width: 640px) {
  .site-header { gap: 10px; }
  .court-settings-button { width: 42px; height: 42px; }
  .court-settings__heading h2 { font-size: 27px; }
}
@media (max-width: 360px) {
  .brand strong { font-size: 11px; }
  .brand small { font-size: 9px; }
  .brand-crest { width: 42px; height: 42px; }
  .site-header { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .court-stinger { display: none !important; }
  .court-stinger.is-playing .court-stinger__chain img { animation: none; }
}
