:root {
  --bg: #070707;
  --bg-2: #0d0d0d;
  --panel: #111214;
  --panel-2: #17181b;
  --line: rgba(255, 132, 0, .28);
  --orange: #ff7900;
  --orange-2: #ff9d1c;
  --gold: #ffc400;
  --silver: #c7cbd1;
  --bronze: #d77a31;
  --white: #f7f7f4;
  --muted: #a4a7ad;
  --green: #a4e346;
  --danger: #ff6b5e;
  --shadow: 0 22px 60px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 0%, rgba(255, 121, 0, .10), transparent 30%),
    linear-gradient(180deg, #060606, #0b0b0c 55%, #050505);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
}

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 5, .82);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: inherit; text-decoration: none; display: inline-grid; gap: 1px; line-height: 1; }
.brand-main { font-size: 26px; font-weight: 900; letter-spacing: -1.4px; }
.brand-m { color: var(--orange); font-size: 32px; }
.brand-dash { color: var(--orange); }
.brand-sub { font-size: 10px; font-weight: 800; letter-spacing: 5px; padding-left: 4px; color: #d9d9d9; }
.brand-sub b { color: var(--orange); }
.header-meta { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; background: var(--orange); border-radius: 999px; box-shadow: 0 0 15px var(--orange); }

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: grid;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(0,0,0,.12), rgba(0,0,0,.72)),
    repeating-linear-gradient(115deg, transparent 0 32px, rgba(255,121,0,.03) 33px 34px);
}
.court-lines {
  position: absolute;
  left: 42%; right: -10%; bottom: -70px; height: 240px;
  transform: perspective(500px) rotateX(62deg);
  border: 2px solid rgba(255, 121, 0, .35);
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(255,121,0,.45) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 48%, rgba(255,121,0,.32) 49%, transparent 50%);
  box-shadow: 0 0 60px rgba(255,121,0,.12);
}
.hero-content { position: relative; z-index: 2; padding: 72px 0 76px; }
.eyebrow, .section-kicker { color: var(--orange); font-size: 12px; letter-spacing: .22em; font-weight: 900; }
.hero h1 { margin: 10px 0 10px; font-size: clamp(50px, 7vw, 88px); line-height: .9; letter-spacing: -4px; text-transform: uppercase; max-width: 820px; }
.hero h1 span { color: var(--orange); font-style: italic; }
.hero p { max-width: 610px; margin: 24px 0 0; color: #c4c5c7; font-size: clamp(16px, 2vw, 20px); line-height: 1.6; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.primary-btn { color: #0b0b0b; background: var(--orange); text-decoration: none; font-weight: 900; padding: 13px 19px; border-radius: 9px; box-shadow: 0 0 28px rgba(255,121,0,.28); }
.rule-chip { border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.04); color: #ddd; border-radius: 999px; padding: 10px 13px; font-size: 12px; font-weight: 700; }
.racket-mark { color: var(--orange); position: absolute; z-index: 1; right: max(2vw, 20px); top: 72px; width: 260px; transform: rotate(14deg); opacity: .62; filter: drop-shadow(0 0 25px rgba(255,121,0,.24)); }

.dashboard { padding: 46px 0 80px; }
.tabs-wrap { display: flex; justify-content: center; margin-top: -69px; position: relative; z-index: 3; }
.tabs { background: rgba(13,13,14,.96); border: 1px solid rgba(255,255,255,.09); padding: 6px; border-radius: 16px; box-shadow: var(--shadow); display: inline-flex; gap: 5px; }
.tab { border: 0; background: transparent; color: #a9aaad; border-radius: 11px; padding: 12px 24px; cursor: pointer; font: inherit; font-weight: 800; transition: .2s ease; }
.tab:hover { color: #fff; }
.tab.active { background: var(--orange); color: #0b0b0b; box-shadow: 0 8px 24px rgba(255,121,0,.2); }

.period-heading { margin-top: 54px; display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.period-heading h2 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -2px; margin: 7px 0 6px; text-transform: uppercase; }
.period-heading p { margin: 0; color: var(--muted); }
.period-badge { color: var(--orange); font-weight: 950; font-size: 24px; border: 1px solid var(--line); background: rgba(255,121,0,.06); border-radius: 12px; padding: 10px 14px; }

.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.summary-card { display: flex; gap: 14px; align-items: center; background: linear-gradient(145deg, #151618, #0d0e0f); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 18px; min-height: 92px; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.summary-card.leader-card { border-color: rgba(255,121,0,.34); box-shadow: inset 0 0 28px rgba(255,121,0,.04), 0 12px 28px rgba(0,0,0,.18); }
.summary-icon { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--orange); background: rgba(255,121,0,.08); border: 1px solid rgba(255,121,0,.18); font-size: 20px; }
.summary-card span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.summary-card strong { display: block; margin-top: 3px; font-size: 21px; letter-spacing: -.4px; }

.podium { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.podium-card { position: relative; min-height: 148px; background: linear-gradient(155deg, #171719, #0d0e0f); border: 1px solid rgba(255,255,255,.07); border-radius: 18px; padding: 20px; overflow: hidden; }
.podium-card::after { content:""; position:absolute; inset:auto -30px -55px auto; width:150px; height:150px; border-radius:50%; border: 18px solid rgba(255,121,0,.05); }
.podium-card.first { min-height: 176px; border-color: rgba(255,196,0,.45); background: radial-gradient(circle at 80% 20%, rgba(255,196,0,.10), transparent 38%), linear-gradient(155deg, #191816, #0d0e0f); }
.podium-rank { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; font-weight:950; color:#111; background: var(--silver); }
.podium-card.first .podium-rank { background: var(--gold); box-shadow: 0 0 22px rgba(255,196,0,.22); }
.podium-card.third .podium-rank { background: var(--bronze); }
.podium-name { font-size: 27px; font-weight: 950; margin-top: 15px; letter-spacing: -.7px; }
.podium-stats { margin-top: 7px; color: var(--muted); font-size: 13px; display:flex; gap:14px; flex-wrap:wrap; }
.podium-score { position: absolute; right: 18px; top: 18px; color: var(--orange); font-size: 22px; font-weight: 950; }

.leaderboard-panel, .info-panel { background: rgba(15,16,17,.96); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; box-shadow: var(--shadow); }
.leaderboard-panel { margin-top: 22px; overflow: hidden; }
.panel-head { padding: 22px 24px 18px; display:flex; justify-content:space-between; align-items:end; gap:20px; border-bottom:1px solid rgba(255,255,255,.07); }
.panel-head h3, .info-panel h3 { margin: 5px 0 0; font-size: 25px; letter-spacing: -.6px; }
.legend { color: var(--muted); display:flex; gap:14px; font-size:12px; }
.dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:4px; }
.dot.gold { background:var(--gold); } .dot.green { background:var(--green); }
.table-scroll { overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:1040px; }
th { padding: 14px 13px; text-align:left; color:#95989d; font-size:10px; letter-spacing:.08em; text-transform:uppercase; background:#0b0c0d; white-space:nowrap; }
td { padding: 16px 13px; border-top:1px solid rgba(255,255,255,.055); font-size:13px; white-space:nowrap; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background:rgba(255,255,255,.025); }
.sticky-rank, .sticky-player { position:sticky; z-index:2; background:#0b0c0d; }
.sticky-rank { left:0; width:62px; }
.sticky-player { left:62px; min-width:120px; box-shadow: 8px 0 18px rgba(0,0,0,.16); }
tbody .sticky-rank, tbody .sticky-player { background:#0f1011; }
tbody tr:hover .sticky-rank, tbody tr:hover .sticky-player { background:#131416; }
.player-name { font-weight:900; font-size:14px; }
.rank-pill { width:31px; height:31px; display:inline-grid; place-items:center; border:1px solid rgba(255,255,255,.14); border-radius:9px; font-weight:950; }
.rank-1 .rank-pill { background:var(--gold); color:#17120a; border-color:var(--gold); }
.rank-2 .rank-pill { background:var(--silver); color:#151515; border-color:var(--silver); }
.rank-3 .rank-pill { background:var(--bronze); color:#17100b; border-color:var(--bronze); }
.score { font-weight:950; font-size:15px; color:var(--orange-2); }
.attendance { font-variant-numeric: tabular-nums; }
.status { display:inline-flex; padding:5px 8px; border-radius:999px; font-size:10px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.status.eligible { color:var(--green); background:rgba(164,227,70,.09); border:1px solid rgba(164,227,70,.16); }
.status.not-eligible { color:var(--danger); background:rgba(255,107,94,.08); border:1px solid rgba(255,107,94,.16); }
.table-note { margin:0; color:#8d9096; font-size:12px; padding:14px 24px 18px; border-top:1px solid rgba(255,255,255,.05); line-height:1.5; }

.lower-grid { margin-top:22px; display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.info-panel { padding:24px; }
.session-list { margin-top:18px; display:grid; gap:10px; }
.session-item { display:grid; grid-template-columns:70px 1fr auto; gap:14px; align-items:center; padding:14px 0; border-top:1px solid rgba(255,255,255,.06); }
.session-date { color:var(--orange); font-weight:900; font-size:12px; text-transform:uppercase; }
.session-venue strong { display:block; font-size:14px; }
.session-venue span, .session-scoring { color:var(--muted); font-size:11px; }
.overall-note { color:var(--muted); line-height:1.7; border-left:2px solid var(--orange); padding-left:16px; margin-top:18px; }
.formula { margin:18px 0; padding:16px; border:1px solid rgba(255,121,0,.18); border-radius:12px; background:rgba(255,121,0,.05); color:#f0d6bd; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size:12px; line-height:1.7; }
.rules-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.rules-grid div { padding:12px; border-radius:11px; background:#0d0e0f; border:1px solid rgba(255,255,255,.055); }
.rules-grid span { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
.rules-grid strong { display:block; margin-top:4px; color:var(--orange-2); }
.rules-panel p { color:var(--muted); font-size:12px; margin-bottom:0; }

.site-footer { border-top:1px solid rgba(255,255,255,.07); background:#050505; }
.footer-inner { padding:32px 0; display:flex; justify-content:space-between; align-items:center; gap:20px; }
.footer-brand { font-size:20px; font-weight:900; }
.footer-brand span { color:var(--orange); letter-spacing:.12em; font-size:11px; margin-left:8px; }
.site-footer p { color:#777; font-size:12px; margin:5px 0 0; }
.footer-tag { color:var(--orange); font-style:italic; font-weight:950; letter-spacing:.08em; font-size:13px; }

@media (max-width: 900px) {
  .racket-mark { right:-70px; opacity:.3; }
  .summary-grid { grid-template-columns:1fr 1fr; }
  .lower-grid { grid-template-columns:1fr; }
}

@media (max-width: 620px) {
  .container { width:min(100% - 22px, 1180px); }
  .header-inner { min-height:64px; }
  .header-meta { display:none; }
  .hero { min-height:390px; }
  .hero-content { padding-top:54px; }
  .hero h1 { letter-spacing:-2.5px; }
  .tabs-wrap { justify-content:stretch; }
  .tabs { width:100%; }
  .tab { flex:1; padding:11px 8px; }
  .period-heading { align-items:start; }
  .period-badge { display:none; }
  .summary-grid { grid-template-columns:1fr 1fr; gap:9px; }
  .summary-card { padding:13px; min-height:78px; }
  .summary-icon { display:none; }
  .summary-card strong { font-size:17px; }
  .podium { grid-template-columns:1fr; }
  .podium-card, .podium-card.first { min-height:132px; }
  .podium-card.first { order:-1; }
  .panel-head { align-items:start; flex-direction:column; }
  .legend { flex-wrap:wrap; }
  .session-item { grid-template-columns:62px 1fr; }
  .session-scoring { grid-column:2; }
  .rules-grid { grid-template-columns:1fr 1fr; }
  .footer-inner { align-items:flex-start; flex-direction:column; }
}
