  :root {
    --court-orange: #883CF0;
    --court-dark: #1f1232;
    --court-wood: #8b5cf6;
    --court-line: #F5F0E8;
    --court-red: #7c3aed;
    --accent-gold: #b29dce;
    --text-light: #F5F0E8;
    --text-muted: #d6d6d6;
    --bg-deep: #191127;
    --bg-card: #23133a;
    --bg-card-hover: #1f1232;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Barlow', sans-serif;
    background: var(--bg-deep);
    color: var(--text-light);
    overflow-x: hidden;
  }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 80%, #11051a 0%, var(--bg-deep) 70%);
  }

  .hero::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border: 3px solid #3a1c63;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 4s ease-in-out infinite;
  }

  .hero::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border: 2px solid #3a1c63;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 4s ease-in-out infinite 0.5s;
  }

  @keyframes pulse-ring {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.1; }
  }

  .court-lines {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background:
      linear-gradient(0deg, transparent 49.5%, var(--court-line) 49.5%, var(--court-line) 50.5%, transparent 50.5%),
      linear-gradient(90deg, transparent 49.5%, var(--court-line) 49.5%, var(--court-line) 50.5%, transparent 50.5%);
    background-size: 80px 80px;
  }

  .hero-content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 2rem;
  }

  .hero-ball {
    font-size: 6rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce-ball 2s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(154, 28, 232, 0.4));
  }

  @keyframes bounce-ball {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-40px) rotate(-5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    70% { transform: translateY(-20px) rotate(3deg); }
  }

  .hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.9;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--court-orange), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero h1 span {
    display: block;
    font-size: 0.35em;
    letter-spacing: 0.4em;
    font-weight: 400;
    font-family: 'Barlow Condensed', sans-serif;
    -webkit-text-fill-color: var(--text-muted);
    margin-top: 0.5rem;
  }

  .hero-stats {
    display: flex; gap: 3rem;
    margin-top: 3rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stat {
    text-align: center;
  }

  .hero-stat .num {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--court-orange);
  }

  .hero-stat .label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-top: 0.25rem;
  }

  .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'Barlow Condensed', sans-serif;
    animation: bob 2s ease-in-out infinite;
    cursor: pointer;
  }

  @keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
  }

  /* ── NAV ── */
  .sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #180f26;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #3a1c63;
    padding: 0 2rem;
  }

  .sticky-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
  }

  .sticky-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    transition: color 0.3s;
  }

  .sticky-nav a:hover, .sticky-nav a.active {
    color: var(--court-orange);
  }

  .sticky-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--court-orange);
    transform: translateX(-50%);
    transition: width 0.3s;
  }

  .sticky-nav a:hover::after, .sticky-nav a.active::after {
    width: 60%;
  }

  /* ── SECTIONS ── */
  section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .section-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
  }

  .section-header h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--court-orange);
    margin-top: 0.75rem;
    border-radius: 2px;
  }

  .section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.75rem;
    max-width: 600px;
    line-height: 1.6;
  }

  /* ── SHOT CHART ── */
  .shot-chart-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
  }

  @media (max-width: 768px) {
    .shot-chart-container { grid-template-columns: 1fr; }
  }

  .court-svg-wrap {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #3a1c63;
  }

  .court-svg-wrap svg {
    width: 100%;
    height: auto;
    cursor: crosshair;
  }

  .shot-stats-panel {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #3a1c63;
  }

  .shot-stats-panel h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--accent-gold);
  }

  .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #3a1c63;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
  }

  .stat-row .val {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--court-orange);
  }

  .btn-clear {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-top: 1.25rem;
    border: 1px solid var(--court-orange);
    background: transparent;
    color: var(--court-orange);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
  }

  .btn-clear:hover {
    background: var(--court-orange);
    color: var(--bg-deep);
  }

  /* ── QUIZ ── */
  .quiz-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid #3a1c63;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }

  .quiz-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--court-orange), var(--accent-gold));
  }

  .quiz-progress {
    display: flex; gap: 4px;
    margin-bottom: 2rem;
  }

  .quiz-progress .pip {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    transition: background 0.3s;
  }

  .quiz-progress .pip.done { background: var(--court-orange); }
  .quiz-progress .pip.current { background: var(--accent-gold); }

  .quiz-question {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
  }

  .quiz-number {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
  }

  .quiz-options {
    display: flex; flex-direction: column; gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .quiz-opt {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #3a1c63;
    background: #23133a;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.25s;
    text-align: left;
  }

  .quiz-opt:hover {
    border-color: var(--court-orange);
    background: #1f1232;
  }

  .quiz-opt.correct {
    border-color: #2ecc71;
    background: rgba(46,204,113,0.12);
    color: #2ecc71;
  }

  .quiz-opt.wrong {
    border-color: #dc143c;
    background: rgba(196,30,58,0.12);
    color: #dc143c;
  }

  .quiz-opt.disabled { pointer-events: none; }

  .quiz-result {
    text-align: center;
    padding: 2rem 0;
  }

  .quiz-result .score-big {
    font-family: 'Oswald', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
  }

  .quiz-result .score-label {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
  }

  .quiz-next {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    background: var(--court-orange);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s;
  }

  .quiz-next:hover { background: #883cf0e0; }

  /* ── SHOT CLOCK ── */
  .clock-section {
    text-align: center;
  }

  .clock-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .clock-display {
    width: 260px; height: 260px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 4px solid #3a1c63;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 60px rgba(154, 28, 232, 0.1), inset 0 0 40px rgba(0,0,0,0.4);
  }

  .clock-display.warning { border-color: var(--accent-gold); box-shadow: 0 0 60px rgba(157, 0, 255, 0.2); }
  .clock-display.danger { border-color: var(--court-red); box-shadow: 0 0 60px rgba(149, 30, 196, 0.3); animation: clock-flash 0.5s ease-in-out infinite; }

  @keyframes clock-flash {
    0%, 100% { border-color: var(--court-red); }
    50% { border-color: #3a1c63; }
  }

  .clock-time {
    font-family: 'Oswald', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
  }

  .clock-time .decimal {
    font-size: 3rem;
    color: var(--text-muted);
  }

  .clock-ring {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
  }

  .clock-ring svg {
    width: 100%; height: 100%;
    transform: rotate(-90deg);
  }

  .clock-ring circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
  }

  .clock-ring .track { stroke: rgba(255,255,255,0.05); }
  .clock-ring .progress { stroke: var(--court-orange); transition: stroke-dashoffset 0.1s linear, stroke 0.3s; }

  .clock-buttons {
    display: flex; gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .clock-btn {
    padding: 0.65rem 1.75rem;
    border-radius: 8px;
    border: 1px solid #3a1c63;
    background: var(--bg-card);
    color: var(--text-light);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.25s;
  }

  .clock-btn:hover { border-color: var(--court-orange); color: var(--court-orange); }

  .clock-btn.primary {
    background: var(--court-orange);
    border-color: var(--court-orange);
    color: #fff;
  }

  .clock-btn.primary:hover { background: #883cf0e0; }

  /* ── PLAYER CARDS ── */
  .legends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .legend-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #3a1c63;
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .legend-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 0;
    background: var(--court-orange);
    transition: height 0.4s;
  }

  .legend-card:hover::before { height: 100%; }
  .legend-card:hover { transform: translateY(-4px); border-color: #5e309d; }

  .legend-card .jersey {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(167, 28, 232, 0.15);
    line-height: 1;
    margin-bottom: 0.5rem;
  }

  .legend-card .name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    font-weight: 600;
  }

  .legend-card .team {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
  }

  .legend-card .career-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #3a1c63;
  }

  .legend-card .cs-item {
    text-align: center;
  }

  .legend-card .cs-val {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--court-orange);
  }

  .legend-card .cs-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.15rem;
  }

  .legend-card .bio {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin 0.5s;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .legend-card.expanded .bio {
    max-height: 200px;
    margin-top: 1rem;
  }

  /* ── GLOSSARY ── */
  .glossary-search {
    width: 100%;
    max-width: 500px;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #3a1c63;
    background: var(--bg-card);
    color: var(--text-light);
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    outline: none;
    margin-bottom: 2rem;
    transition: border-color 0.3s;
  }

  .glossary-search:focus { border-color: var(--court-orange); }
  .glossary-search::placeholder { color: var(--text-muted); }

  .glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
  }

  .glossary-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #3a1c63;
    transition: all 0.3s;
  }

  .glossary-item:hover { border-color: #5e309d; }

  .glossary-item .term {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.4rem;
  }

  .glossary-item .def {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
  }

  .glossary-item.hidden { display: none; }

  /* ── FOOTER ── */
  footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid #3a1c63;
    color: var(--text-muted);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  footer span { color: var(--court-orange); }

  /* ── ANIMATION ON SCROLL ── */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .fade-in.visible { opacity: 1; transform: translateY(0); }

  /* ── RESPONSIVE ── */
  @media (max-width: 600px) {
    section { padding: 3rem 1rem; }
    .hero-stats { gap: 1.5rem; }
    .clock-display { width: 200px; height: 200px; }
    .clock-time { font-size: 4rem; }
    .clock-time .decimal { font-size: 2rem; }
    .sticky-nav ul { gap: 0; flex-wrap: wrap; justify-content: center; }
    .sticky-nav a { padding: 0.75rem 0.8rem; font-size: 0.75rem; }
  }