/* A single glass medallion carries the club identity; reading surfaces stay solid. */
.next-game .team-logo.team-emblem,
.wordmark-symbol {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(224, 244, 255, .7);
  background:
    radial-gradient(ellipse at 29% 16%, rgba(255, 255, 255, .9), transparent 32%),
    radial-gradient(ellipse at 72% 86%, rgba(112, 202, 255, .45), transparent 46%),
    linear-gradient(138deg, rgba(223, 245, 255, .38), rgba(139, 196, 226, .08) 49%, rgba(227, 249, 255, .21));
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, .95),
    inset 2px 0 3px rgba(255, 255, 255, .42),
    inset -3px -4px 8px rgba(8, 45, 81, .3),
    0 8px 20px rgba(1, 15, 37, .14);
  -webkit-backdrop-filter: blur(3px) saturate(1.18);
  backdrop-filter: blur(3px) saturate(1.18);
}
.next-game .team-logo.team-emblem::before,
.wordmark-symbol::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(234, 249, 255, .35);
  border-right-color: rgba(234, 249, 255, .08);
  border-bottom-color: rgba(234, 249, 255, .1);
  box-shadow: inset 0 -2px 2px rgba(160, 224, 255, .14);
}
.next-game .team-logo.team-emblem::after,
.wordmark-symbol::after {
  content: "";
  position: absolute;
  width: 74%;
  height: 36%;
  left: 5%;
  top: 4%;
  border-radius: 50%;
  background: linear-gradient(170deg, rgba(255, 255, 255, .57), rgba(255, 255, 255, .02));
  transform: rotate(-32deg);
  pointer-events: none;
  z-index: 2;
}
.next-game .team-logo.team-emblem img {
  position: relative;
  z-index: 1;
  width: 79%;
  height: 79%;
  filter: brightness(1.5) drop-shadow(0 1px 0 rgba(233, 249, 255, .9)) drop-shadow(0 3px 3px rgba(2, 32, 71, .3));
}
.wordmark-symbol {
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, .9);
  background:
    radial-gradient(ellipse at 28% 12%, #fff, transparent 42%),
    linear-gradient(140deg, #effaff, #c5e4f5 58%, #f4fcff);
  box-shadow: inset 0 1px 1px #fff, inset -2px -3px 5px #80adcb40, 0 3px 10px #143b5b12;
}
.wordmark-symbol .bolt {
  position: relative;
  z-index: 1;
  background: #147bc6;
  filter: drop-shadow(0 1px 0 #fff);
}
/* The bolt remains crisp and recognisable even when transparency is disabled. */
@media (prefers-reduced-transparency: reduce) {
  .next-game .team-logo.team-emblem { background: #dbeefa; }
  .next-game .team-logo.team-emblem img { filter: none; }
  .next-game .team-logo.team-emblem, .wordmark-symbol {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  .next-game .team-logo.team-emblem, .wordmark-symbol { background: Canvas; border: 1px solid CanvasText; box-shadow: none; }
  .wordmark-symbol .bolt { background: CanvasText; }
  .next-game .team-logo.team-emblem::before, .next-game .team-logo.team-emblem::after,
  .wordmark-symbol::before, .wordmark-symbol::after { display: none; }
}

/* Faceted light travels across the existing lightning silhouette. */
.wordmark-symbol .bolt,
#sidebar .brand .bolt {
  background: linear-gradient(128deg, #f6fdff 0%, #93d8ff 16%, #2179b4 31%, #ddf7ff 43%, #64b9e6 55%, #f0fdff 66%, #2479af 81%, #bfeaff 100%);
  filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 2px 2px #123c6930);
}
.next-game .team-logo.team-emblem img { filter: drop-shadow(0 3px 3px rgba(1, 15, 38, .28)); }
:is(.site-header, .site-footer) .brand img {
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(255,255,255,.9), rgba(185,220,241,.5) 55%, rgba(255,255,255,.8));
  box-shadow: inset 0 1px 1px #fff, inset -2px -2px 3px #7aa6c235, 0 2px 8px #173b6012;
  border: 1px solid #ffffffd9;
}
@media (forced-colors: active) {
  #sidebar .brand .bolt, .wordmark-symbol .bolt { background: CanvasText; filter: none; }
  :is(.site-header, .site-footer) .brand img { background: Canvas; border: 1px solid CanvasText; box-shadow: none; }
}

/* High-contrast facets retain a clear silhouette at header sizes. */
.wordmark-symbol .bolt, #sidebar .brand .bolt {
  width: 24px; height: 32px;
  background: linear-gradient(135deg, #a8e2ff 0%, #1b65bb 30%, #123c8f 48%, #b7edff 50%, #267aca 70%, #13428f 100%);
}
.wordmark-symbol::after { opacity: .25; }
:is(.site-header, .site-footer) .brand img { padding: 5px; }
.avatar, #site .team-logo:not(.team-emblem) {
  background: linear-gradient(145deg, #f6fcfff2, #b9d7eea6 48%, #eaf8ffc9);
  border: 1px solid #ffffffd9;
  box-shadow: inset 0 2px 2px #fff, inset 0 -2px 4px #5682ad52, 0 3px 8px #14365814;
}
.glass-initials {
  color: #244e77;
  font-weight: 750;
}
#site .next-game .team-logo:not(.team-emblem) { background: linear-gradient(145deg, #c5eaff50, #5089ad25 50%, #98cfe84a); }
#site .next-game .glass-initials { color: #f4faff; }
@media (forced-colors: active) {
  .glass-initials { background: none; color: CanvasText; filter: none; }
}

/* Match results in the calendar, game list and public schedule. */
[data-match-outcome="upcoming"] { --result-shade: #102b51; --result-light: #235e94bf; }
[data-match-outcome="win"] { --result-shade: #083a30; --result-light: #217553bf; }
[data-match-outcome="loss"] { --result-shade: #502033; --result-light: #9b3348bf; }
@media not (forced-colors: active) {
  :is(#app, #site) :is(.event-card, .match-row)[data-match-outcome]:not([data-match-outcome="neutral"]) {
    background: linear-gradient(112deg, var(--result-shade), var(--result-light)),
      url("/textures/satin-wave.webp?v=8a9b612b5bcf5adc6ff9b9c6") center / cover;
    color: #fff;
    border-color: #c0d3e4;
  }
  :is(#app, #site) [data-match-outcome]:not([data-match-outcome="neutral"]) :is(h2, h3, .score, .event-meta, .event-footer, .muted, .eyebrow) { color: inherit; }
}

/* Cut faces stay fixed; only their reflected light crosses the club mark. */
:is(.wordmark-symbol, #sidebar .brand, #header .brand, #bottom .nav-home-symbol) > .bolt {
  position: relative;
}
.club-bolt-art {
  display: inline-grid;
  position: relative;
  flex: none;
  place-items: center;
}
.club-bolt-art > img { display: block; }
.club-bolt-light { display: none; }
.brand .club-bolt-art { --bolt-inset: 6px; }
.next-game .team-logo.team-emblem > .club-bolt-art { width: 79%; height: 79%; }
.next-game .team-logo.team-emblem .club-bolt-art > img { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .club-bolt-light {
    display: block;
    position: absolute;
    z-index: 1;
    pointer-events: none;
    inset: var(--bolt-inset, 0);
    -webkit-mask: url('/glass-bolt.svg?v=3ce446b36353f025e90bf97d') center / contain no-repeat;
    mask: url('/glass-bolt.svg?v=3ce446b36353f025e90bf97d') center / contain no-repeat;
  }
  .club-bolt-light::after,
  :is(.wordmark-symbol, #sidebar .brand, #header .brand, #bottom .nav-home-symbol) > .bolt::before,
  :is(.wordmark-symbol, #sidebar .brand, #header .brand, #bottom .nav-home-symbol) > .bolt::after {
    content: "";
    position: absolute;
    pointer-events: none;
  }
  :is(.wordmark-symbol, #sidebar .brand, #header .brand, #bottom .nav-home-symbol) > .bolt::before {
    inset: 0;
    clip-path: polygon(68% 0, 46% 45%, 87% 40%, 31% 93%, 49% 54%, 17% 55%);
    background: linear-gradient(152deg, #e2faff99, #5bafd159 41%, #185d9526 44%, #b9edff9c 82%);
  }
  .club-bolt-light::after,
  :is(.wordmark-symbol, #sidebar .brand, #header .brand, #bottom .nav-home-symbol) > .bolt::after {
    inset: -30% -65%;
    background: linear-gradient(117deg, transparent 30%, #3889be33 39%, #c4eeffbd 46%,
      #ffffffed 49%, #d5f3ff94 52%, #4c8dbd40 59%, transparent 68%);
    animation: club-bolt-reflection 6.8s cubic-bezier(.36, .08, .26, 1) infinite;
  }
  #sidebar .brand > .bolt::after { animation-delay: -.85s; }
  #bottom .nav-home-symbol > .bolt::after { animation-delay: -4.85s; }
  .team-emblem .club-bolt-light::after { animation-duration: 8s; animation-delay: -1s; }
  .result-team-mark .club-bolt-light::after, .site-footer .club-bolt-light::after { animation-delay: -3.35s; }
  @keyframes club-bolt-reflection {
    0% { transform: translateX(-62%); opacity: 0; }
    10% { opacity: .95; }
    37%, 100% { transform: translateX(62%); opacity: 0; }
  }
}
@media (forced-colors: active) {
  #header .wordmark-symbol > .bolt, #header .brand > .bolt, #sidebar .brand > .bolt {
    forced-color-adjust: none;
    background: CanvasText;
    filter: none;
  }
  #bottom .nav-home .nav-home-symbol {
    forced-color-adjust: none;
    /* Seasonal themes load after this file; retain the user's system palette. */
    background: ButtonFace !important;
    border-color: ButtonText !important;
  }
  #bottom .nav-home.active .nav-home-symbol { background: Highlight !important; border-color: Highlight !important; }
  #bottom .nav-home .nav-home-symbol > .bolt { background: ButtonText !important; }
  #bottom .nav-home.active .nav-home-symbol > .bolt { background: HighlightText !important; }
}
