:root {
  color-scheme: dark;
  --page-bg: #07080c;
  --text: #f9fafb;
  --muted: rgba(249, 250, 251, 0.73);
  --line: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.095);
  --card-strong: rgba(255, 255, 255, 0.16);
  --spurs-black: #050507;
  --spurs-silver: #c4ced4;
  --spurs-smoke: #8e9aa4;
  --knicks-blue: #006bb6;
  --knicks-orange: #f58426;
  --knicks-navy: #13223f;
  --bolt: #fbfbff;
  --bolt-glow: rgba(255, 255, 255, 0.86);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow: 0 16px 54px rgba(0, 0, 0, 0.36);
  --max-content: 720px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255,255,255,.10), transparent 24rem),
    var(--page-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .15;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 50;
  padding: .75rem 1rem;
  color: #111;
  background: #fff;
  border-radius: 999px;
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .75rem clamp(.85rem, 2.8vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(5,5,7,.84), rgba(19,34,63,.84));
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: .72rem;
  min-width: 0;
}

.mini-ball {
  flex: 0 0 auto;
  width: clamp(34px, 4vw, 44px);
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 45%, currentColor 45% 53%, transparent 53%),
    linear-gradient(0deg, transparent 45%, currentColor 45% 53%, transparent 53%),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,.25), transparent 30%);
  box-shadow: 0 0 28px rgba(255,255,255,.16);
}

.eyebrow,
.team-kicker,
.product-category {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.site-header h1 {
  margin: .05rem 0 0;
  font-size: clamp(1rem, 1.8vw, 1.32rem);
  line-height: 1.08;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.amazon-chip,
.spotlight-link,
.product-link,
.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.amazon-chip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: .65rem .95rem;
  color: var(--text);
  background: rgba(255,255,255,.10);
  white-space: nowrap;
}

.amazon-chip:hover,
.spotlight-link:hover,
.product-link:hover,
.filter-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.42);
}

.split-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: auto;
  isolation: isolate;
}

.team-panel {
  position: relative;
  min-width: 0;
  padding: clamp(1.35rem, 2.8vw, 2.6rem) clamp(1rem, 3.2vw, 3rem) clamp(2.3rem, 3vw, 3.2rem);
  overflow: hidden;
}

.team-panel--spurs {
  background:
    radial-gradient(circle at 20% 10%, rgba(196,206,212,.25), transparent 24rem),
    linear-gradient(135deg, #030305 0%, #101115 58%, #333941 120%);
}

.team-panel--knicks {
  background:
    radial-gradient(circle at 78% 12%, rgba(245,132,38,.46), transparent 18rem),
    linear-gradient(135deg, #051a36 0%, #006bb6 55%, #f58426 160%);
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  opacity: .18;
  background:
    repeating-radial-gradient(circle at center, transparent 0 18px, rgba(255,255,255,.15) 19px 20px),
    linear-gradient(60deg, transparent 42%, rgba(255,255,255,.14) 42% 43%, transparent 43%);
  transform: scale(1.12);
}

.team-panel--knicks .panel-backdrop {
  transform: scale(1.12) rotate(180deg);
}

.panel-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-content));
}

.panel-content--right {
  margin-left: auto;
}

.team-panel h2 {
  margin: .12rem 0 .5rem;
  font-size: clamp(3.1rem, 7.2vw, 6.8rem);
  line-height: .85;
  letter-spacing: -.08em;
  text-transform: uppercase;
  text-wrap: balance;
}

.team-panel--spurs h2 {
  text-shadow: 0 0 30px rgba(196,206,212,.27);
}

.team-panel--knicks h2 {
  text-shadow: 0 0 30px rgba(245,132,38,.32);
}

.team-copy {
  max-width: 35rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: clamp(.94rem, 1.15vw, 1.08rem);
  line-height: 1.45;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .85rem;
}

.filter-button {
  min-height: 38px;
  padding: .48rem .72rem;
  color: var(--text);
  background: rgba(255,255,255,.095);
}

.filter-button.is-active {
  border-color: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .78rem;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  padding: .82rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--card), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}

.product-card:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: rgba(255,255,255,.36);
  background: linear-gradient(145deg, var(--card-strong), rgba(255,255,255,.08));
}

.product-image-shell {
  position: relative;
  width: 100%;
  min-height: 100px;
  display: grid;
  place-items: center;
  margin-bottom: .72rem;
  padding: .45rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.18), transparent 42%),
    rgba(255,255,255,.10);
  border: 1px solid var(--line);
  overflow: hidden;
}

.product-image {
  display: block;
  width: min(100%, 150px);
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.22));
}

.product-card h3 {
  margin: .3rem 0 .38rem;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.12;
}

.product-description {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.38;
}

.product-link,
.spotlight-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: .62rem .85rem;
  margin-top: .82rem;
  color: #111827;
  background: #fff;
  text-align: center;
}

.team-panel--spurs .product-link,
.team-panel--spurs .filter-button.is-active {
  color: #06070a;
  background: linear-gradient(135deg, #ffffff, var(--spurs-silver));
}

.team-panel--knicks .product-link,
.team-panel--knicks .filter-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--knicks-blue), var(--knicks-orange));
}

.lightning-divider {
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: 5;
  width: clamp(64px, 6vw, 110px);
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.48));
}

.lightning-divider svg {
  width: 100%;
  height: 100%;
}

.bolt-shadow,
.bolt-core {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.bolt-shadow {
  stroke: rgba(0,0,0,.72);
  stroke-width: 32;
}

.bolt-core {
  stroke: var(--bolt);
  stroke-width: 12;
  filter: url(#boltGlow);
  stroke-dasharray: 30 16;
  animation: pulseBolt 2.6s infinite linear;
}

@keyframes pulseBolt {
  to { stroke-dashoffset: -92; }
}

.matchup-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: -1.2rem auto 0;
  width: min(calc(100% - 1.4rem), 1040px);
  position: relative;
  z-index: 12;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(12, 13, 18, .90);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.matchup-bar span {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  line-height: 1.35;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  width: min(calc(100% - 1.4rem), 1180px);
  margin: 1.4rem auto 2.2rem;
}

.info-strip > div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.07);
}

.info-strip h2 {
  margin: 0 0 .45rem;
  font-size: 1rem;
}

.info-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (min-width: 1400px) and (min-height: 850px) {
  .team-panel {
    padding-top: 3rem;
    padding-bottom: 3.6rem;
  }

  .product-image-shell {
    min-height: 112px;
  }

  .product-image {
    height: 100px;
  }
}

@media (max-width: 1240px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 116px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    column-gap: .82rem;
    align-items: stretch;
  }

  .product-image-shell {
    grid-row: 1 / 3;
    margin-bottom: 0;
    min-height: 100%;
  }

  .product-link {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .amazon-chip {
    width: 100%;
  }

  .split-stage,
  .info-strip {
    grid-template-columns: 1fr;
  }

  .team-panel {
    padding: 1.35rem .9rem 2.35rem;
  }

  .panel-content,
  .panel-content--right {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .team-panel h2 {
    font-size: clamp(3.1rem, 17vw, 5.2rem);
  }

  .team-copy {
    margin-bottom: .85rem;
  }

  .filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-inline: -.9rem;
    padding: 0 .9rem .15rem;
    scrollbar-width: thin;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .lightning-divider {
    inset: 50% 0 auto 0;
    width: 100%;
    height: 62px;
    transform: translateY(-50%) rotate(90deg);
  }

  .matchup-bar {
    align-items: stretch;
    flex-direction: column;
    margin-top: -.75rem;
  }

  .spotlight-link {
    width: 100%;
  }
}

@media (max-width: 580px) {
  .brand-lockup {
    align-items: flex-start;
  }

  .eyebrow {
    font-size: .66rem;
  }

  .site-header h1 {
    font-size: 1.02rem;
  }

  .team-panel h2 {
    letter-spacing: -.065em;
  }

  .product-grid {
    gap: .7rem;
  }

  .product-card {
    grid-template-columns: 94px minmax(0, 1fr);
    column-gap: .72rem;
    padding: .72rem;
    border-radius: 16px;
  }

  .product-image-shell {
    border-radius: 14px;
    padding: .35rem;
  }

  .product-image {
    width: 86px;
    height: 86px;
  }

  .product-description {
    font-size: .88rem;
  }

  .product-link {
    width: 100%;
    justify-self: stretch;
  }

  .matchup-bar,
  .info-strip {
    width: min(calc(100% - .8rem), 1040px);
  }
}

@media (max-width: 390px) {
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-image-shell {
    grid-row: auto;
    min-height: 96px;
  }

  .product-image {
    width: min(100%, 130px);
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
