/* Urban Ground Pickleball Tournament — public website.
   Night-match look: deep navy, white type, the logo's green as an electric accent. */

@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 900; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); }

:root {
  --bg: #050C16;
  --bg-2: #081626;
  --navy: #0D233A;
  --navy-2: #12304F;
  --line: rgba(244, 246, 248, .09);
  --line-2: rgba(244, 246, 248, .16);
  --card: rgba(255, 255, 255, .035);
  --card-2: rgba(255, 255, 255, .06);
  --text: #F4F6F8;
  --muted: #9AACC0;
  --dim: #6E8198;
  --green: #79B53B;
  --lime: #A6E35F;
  --lime-glow: rgba(166, 227, 95, .35);
  --amber: #FFC94D;
  --red: #FF6B5E;
  --gold: #E9C46A;
  --silver: #C9D3DD;
  --bronze: #D49A6A;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --r: 18px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--bg); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; letter-spacing: .02em; }

/* ---------------------------------------------------------------- type */
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; line-height: .92; margin: 0; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.1; }
h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 7vw, 76px); line-height: .95; letter-spacing: .005em; }
h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 52px); line-height: .98; }
h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 24px; letter-spacing: .01em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: 14px; color: var(--lime); }
.kicker::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; }
.accent { color: var(--lime); }
.outline { color: transparent; -webkit-text-stroke: 1.5px rgba(244, 246, 248, .85); }

/* ---------------------------------------------------------------- top bars & header */
.ribbon { position: relative; z-index: 60; text-align: center; font-weight: 700; font-size: 13.5px; letter-spacing: .04em; padding: 8px var(--gutter); }
.ribbon.test { background: #8A1C12; color: #fff; }
.ribbon.preview { background: linear-gradient(90deg, var(--lime), #D7F7A8); color: var(--bg); }
.ribbon.invalid { background: var(--amber); color: #2A1B00; }

.site-header { position: sticky; top: 0; z-index: 50; transition: background .35s var(--ease), border-color .35s; border-bottom: 1px solid transparent; }
.site-header.solid, body:not(.has-hero) .site-header { background: rgba(5, 12, 22, .82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); }
.site-header .inner { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: 46px; border-radius: 10px; display: block; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.brand .t1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 19px; line-height: 1; letter-spacing: .02em; display: block; }
.brand .t2 { font-size: 12px; color: var(--muted); letter-spacing: .04em; display: block; margin-top: 3px; }
.nav { display: none; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: #D4DEE8; padding: 9px 12px; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap; }
.nav a:hover { color: #fff; background: var(--card-2); }
.nav a[aria-current="page"] { color: var(--bg); background: var(--lime); }
.header-cta { display: none; }
.presented { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.presented .lbl { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; line-height: 1.1; text-align: right; }
.plate { flex: none; background: #fff; border-radius: 10px; padding: 6px 10px; display: inline-block; line-height: 0; vertical-align: middle; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.plate img { display: block; height: 30px; width: auto; max-width: 120px; object-fit: contain; }
.plate .word { display: block; line-height: 1; font-family: var(--display); font-weight: 800; color: var(--bg); text-transform: uppercase; font-size: 18px; letter-spacing: .04em; }
.menu-btn { margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.site-header .presented { margin-left: auto; }
.site-header .presented + .menu-btn { margin-left: 0; }
@media (max-width: 1599px) { .brand .t2 { display: none; } }
.brand .t1 { white-space: nowrap; }
@media (min-width: 1240px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .site-header .presented { margin-left: 8px; order: 3; }
}

.mobile-menu { position: fixed; inset: 0; z-index: 45; background: rgba(5, 12, 22, .97); backdrop-filter: blur(10px); padding: 96px var(--gutter) 32px; display: flex; flex-direction: column; gap: 4px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); overflow-y: auto; }
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
.mobile-menu a { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 34px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a[aria-current="page"] { color: var(--lime); }
.mobile-menu a::after { content: '→'; font-family: var(--body); font-size: 20px; color: var(--dim); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(100svh, 940px); margin-top: -71px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero.compact { min-height: min(78svh, 760px); }
.hero-media { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(1200px 600px at 75% 15%, rgba(121, 181, 59, .28), transparent 60%),
  radial-gradient(900px 600px at 10% 90%, rgba(29, 66, 104, .9), transparent 65%),
  linear-gradient(180deg, #0B1C30 0%, #050C16 100%); }
.hero-photo { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover; object-position: center 40%; transform-origin: 60% 45%; animation: kenburns 38s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, 1%); } }
.hero-media.has-photo .hero-court { display: none; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media video.ready { opacity: 1; }
.hero-court { position: absolute; left: 50%; bottom: -8%; width: min(1400px, 160vw); transform: translateX(-50%) perspective(900px) rotateX(58deg); opacity: .55; }
.hero-court rect, .hero-court line { stroke: var(--lime); stroke-width: 3; fill: none; filter: drop-shadow(0 0 6px var(--lime-glow)); }
.hero-court .net { stroke: #fff; stroke-width: 4; opacity: .7; }
.hero-media.has-video .hero-court { display: none; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(5, 12, 22, .88) 0%, rgba(5, 12, 22, .55) 45%, rgba(5, 12, 22, .2) 100%),
  linear-gradient(180deg, rgba(5, 12, 22, .6) 0%, rgba(5, 12, 22, .15) 35%, rgba(5, 12, 22, .7) 75%, var(--bg) 100%); }
@media (max-width: 760px) { .hero-photo { object-position: 58% 45%; } }
@media (max-width: 760px) { .hero-shade { background: linear-gradient(180deg, rgba(5, 12, 22, .7) 0%, rgba(5, 12, 22, .55) 40%, rgba(5, 12, 22, .85) 75%, var(--bg) 100%); } }
.hero-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 150px var(--gutter) clamp(36px, 7vh, 72px); }
.hero-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .86; margin: 18px 0 18px; letter-spacing: -.005em; }
.hero-title .l1 { display: block; font-size: clamp(26px, 4.4vw, 46px); font-weight: 800; letter-spacing: .14em; color: var(--lime); }
.hero-title .l2 { display: block; font-size: clamp(64px, 13.5vw, 172px); }
.hero-title .l3 { display: block; font-size: clamp(40px, 8vw, 104px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(16px, 2vw, 21px); color: #DDE6EE; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: 34px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--lime); color: var(--bg); box-shadow: 0 10px 34px var(--lime-glow); }
.btn.ghost { background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.wa { background: #25D366; color: #052E14; }

/* countdown */
.countdown { display: flex; gap: 10px; }
.countdown .u { min-width: clamp(68px, 9vw, 96px); padding: 12px 8px 10px; border-radius: 16px; background: rgba(5, 12, 22, .55); border: 1px solid var(--line-2); backdrop-filter: blur(10px); text-align: center; }
.countdown .n { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1; }
.countdown .l { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 700; }
.cd-label { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(166, 227, 95, .14); border: 1px solid rgba(166, 227, 95, .5); font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 18px; color: var(--lime); }
.live-pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 var(--lime-glow); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(166, 227, 95, .6); } 70% { box-shadow: 0 0 0 14px rgba(166, 227, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(166, 227, 95, 0); } }

.hero-sponsor { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 20px; border-radius: 18px; background: rgba(5, 12, 22, .55); border: 1px solid var(--line-2); backdrop-filter: blur(10px); text-decoration: none; }
.hero-sponsor .lbl { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero-sponsor .plate img { height: 48px; width: auto; max-width: 190px; }
.hero-sponsor .plate .word { font-size: 26px; }

.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lime); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- sections */
main { display: block; }
.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.section.tight { padding: clamp(36px, 6vw, 64px) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: clamp(24px, 4vw, 42px); }
.section-head p { margin: 8px 0 0; }
.link-more { text-decoration: none; font-weight: 700; color: var(--lime); display: inline-flex; gap: 8px; align-items: center; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-head { padding: 120px 0 clamp(26px, 4vw, 44px); background: radial-gradient(900px 340px at 85% 0%, rgba(121, 181, 59, .2), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); margin-top: -71px; }
.page-head h1 { margin-top: 12px; }
.page-head .lead { margin: 10px 0 0; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stats .s { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .stats .s { border-bottom: 0; } .stats .s:last-child { border-right: 0; } }
.stats .n { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 6vw, 72px); line-height: 1; }
.stats .n em { font-style: normal; color: var(--lime); }
.stats .l { display: block; font-family: var(--display); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 14px; color: var(--muted); margin-top: 6px; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: 1fr 1fr; } .g4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.4vw, 26px); position: relative; }
.card.glow { background: linear-gradient(180deg, rgba(166, 227, 95, .09), rgba(255, 255, 255, .02)); border-color: rgba(166, 227, 95, .28); }
.card h3:first-child { margin-top: 0; }

.announce { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line-2); font-weight: 600; font-size: 16.5px; }
.announce::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.announce.important { background: rgba(255, 201, 77, .12); border-color: rgba(255, 201, 77, .5); }
.announce.important::before { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.announce + .announce { margin-top: 10px; }

/* status chips */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; }
.chip.st-upcoming { background: rgba(255, 255, 255, .06); color: #C9D5E1; border-color: var(--line-2); }
.chip.st-called { background: rgba(255, 201, 77, .14); color: var(--amber); border-color: rgba(255, 201, 77, .45); }
.chip.st-live { background: var(--lime); color: var(--bg); }
.chip.st-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.chip.st-done { background: rgba(255, 255, 255, .1); color: #E5ECF2; }
.chip.prov { background: rgba(120, 170, 230, .15); color: #A9CCF2; border-color: rgba(120, 170, 230, .35); }
.chip.final { background: rgba(166, 227, 95, .15); color: var(--lime); border-color: rgba(166, 227, 95, .4); }
.chip.warn { background: rgba(255, 201, 77, .14); color: var(--amber); border-color: rgba(255, 201, 77, .45); }
.chip.red { background: rgba(255, 107, 94, .14); color: var(--red); border-color: rgba(255, 107, 94, .4); }

/* courts */
.court { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(18, 48, 79, .55), rgba(8, 22, 38, .7)); }
.court-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.court-no { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; }
.court-no b { color: var(--lime); }
.court-tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.court .slot { padding: 16px 20px; }
.court .slot + .slot { border-top: 1px solid var(--line); }
.court .slot-lbl { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.court .note { padding: 10px 20px; font-weight: 700; font-size: 14.5px; }
.court .note.held { background: rgba(255, 201, 77, .14); color: var(--amber); }
.court .note.change { background: rgba(120, 170, 230, .14); color: #A9CCF2; }
.vs { display: grid; gap: 4px; }
.vs .team { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1.05; }
.vs .team a { text-decoration: none; }
.vs .team a:hover { color: var(--lime); }
.vs .v { font-size: 12px; letter-spacing: .2em; color: var(--dim); font-weight: 800; }
.vs .players { font-size: 13.5px; color: var(--muted); }
.court .empty { color: var(--dim); font-weight: 600; }

/* match rows */
.matches { border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; background: var(--card); }
.mrow { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 18px; align-items: center; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow.focus { background: rgba(166, 227, 95, .06); }
.mrow .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--dim); margin-bottom: 6px; letter-spacing: .02em; }
.mrow .tm { display: flex; justify-content: space-between; gap: 12px; font-weight: 650; font-size: 16px; padding: 2px 0; }
.mrow .tm a { text-decoration: none; }
.mrow .tm a:hover { color: var(--lime); }
.mrow .tm.win { color: #fff; font-weight: 800; }
.mrow .tm.win .nm::after { content: ' ●'; color: var(--lime); font-size: 10px; vertical-align: 2px; }
.mrow .tm .sc { font-family: var(--display); font-weight: 800; font-size: 20px; min-width: 28px; text-align: right; }
.mrow .tm.lose { color: var(--muted); }
.mrow .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mrow .slotname { color: var(--dim); font-weight: 600; }
.mrow .tag { font-size: 12px; color: var(--muted); font-weight: 600; }
.mrow .left { min-width: 0; }

/* standings */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.tabs a, .tabs button { font: inherit; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 17px; padding: 9px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); color: var(--text); text-decoration: none; cursor: pointer; }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.st { width: 100%; border-collapse: collapse; font-size: 15px; }
table.st th { text-align: right; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
table.st th:nth-child(1), table.st th:nth-child(2) { text-align: left; }
table.st td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
table.st td.name { text-align: left; }
table.st td.name a { text-decoration: none; font-weight: 700; }
table.st td.name a:hover { color: var(--lime); }
table.st .rk { text-align: left; width: 46px; }
.rkb { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-family: var(--display); font-weight: 800; font-size: 18px; background: var(--card-2); }
tr.q-champ .rkb { background: var(--lime); color: var(--bg); }
tr.q-riser .rkb { background: var(--navy-2); color: #A9CCF2; box-shadow: inset 0 0 0 1px rgba(120, 170, 230, .4); }
table.st .why { font-size: 12.5px; color: var(--dim); margin-top: 3px; font-weight: 500; }
table.st td.pts { font-family: var(--display); font-weight: 800; font-size: 19px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 7px; vertical-align: -1px; }
.legend .c { background: var(--lime); }
.legend .r { background: var(--navy-2); box-shadow: inset 0 0 0 1px rgba(120, 170, 230, .5); }
.group-card h3 { font-size: 30px; }
.group-card .gmeta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* brackets */
.bracket { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 1040px) { .bracket { grid-template-columns: repeat(4, 1fr); align-items: stretch; } .bracket .round { display: flex; flex-direction: column; } .bracket .round .stack { flex: 1; } }
.bracket .round h3 { font-size: 16px; letter-spacing: .16em; color: var(--muted); }
.bracket .stack { display: flex; flex-direction: column; gap: 12px; justify-content: space-around; }
.bm { border-radius: 14px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.bm.live { border-color: rgba(166, 227, 95, .55); box-shadow: 0 0 0 1px rgba(166, 227, 95, .2), 0 10px 30px rgba(166, 227, 95, .1); }
.bm.final { border-color: rgba(233, 196, 106, .5); background: linear-gradient(180deg, rgba(233, 196, 106, .1), rgba(255, 255, 255, .02)); }
.bm-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 12px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; border-bottom: 1px solid var(--line); }
.bm-team { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; font-weight: 650; font-size: 15px; }
.bm-team + .bm-team { border-top: 1px solid var(--line); }
.bm-team a { text-decoration: none; }
.bm-team.win { color: #fff; font-weight: 800; background: rgba(166, 227, 95, .07); }
.bm-team.win .sc { color: var(--lime); }
.bm-team.lose { color: var(--muted); }
.bm-team .sc { font-family: var(--display); font-weight: 800; font-size: 18px; }
.bm-team .slotname { color: var(--dim); font-weight: 600; font-size: 14px; }

/* podium */
.podium { display: grid; gap: 12px; }
.place { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.place .medal { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 24px; color: var(--bg); }
.p1 .medal { background: radial-gradient(circle at 30% 30%, #FFF0C2, var(--gold)); box-shadow: 0 0 30px rgba(233, 196, 106, .45); }
.p2 .medal { background: radial-gradient(circle at 30% 30%, #fff, var(--silver)); }
.p3 .medal { background: radial-gradient(circle at 30% 30%, #FFE1C7, var(--bronze)); }
.place .who { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1.05; }
.place .who a { text-decoration: none; }
.place .lbl { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* team page */
.team-hero { border-radius: 26px; overflow: hidden; position: relative; padding: clamp(24px, 4vw, 44px); background: radial-gradient(700px 300px at 100% 0%, rgba(166, 227, 95, .25), transparent 70%), linear-gradient(135deg, var(--navy-2), var(--bg-2)); border: 1px solid var(--line-2); }
.team-hero .gbadge { position: absolute; right: clamp(16px, 3vw, 34px); top: clamp(10px, 2vw, 20px); font-family: var(--display); font-weight: 900; font-size: clamp(90px, 16vw, 190px); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(166, 227, 95, .35); pointer-events: none; }
.team-hero h1 { font-size: clamp(40px, 7vw, 82px); margin: 10px 0 8px; max-width: 80%; }
.team-hero .players { font-size: clamp(17px, 2.2vw, 22px); color: #D9E3EC; font-weight: 600; }
.team-stats { display: flex; gap: clamp(18px, 4vw, 44px); flex-wrap: wrap; margin-top: 26px; }
.team-stats .n { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 5vw, 54px); line-height: 1; }
.team-stats .l { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.team-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.now-card { border-radius: 22px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line-2); background: var(--card); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.now-card.live { border-color: rgba(166, 227, 95, .6); background: linear-gradient(135deg, rgba(166, 227, 95, .16), rgba(255, 255, 255, .02)); }
.now-card.called { border-color: rgba(255, 201, 77, .55); background: linear-gradient(135deg, rgba(255, 201, 77, .14), rgba(255, 255, 255, .02)); }
.now-card .big { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 7vw, 76px); line-height: .9; }
.now-card .big small { display: block; font-size: 14px; letter-spacing: .2em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.now-card .txt { flex: 1; min-width: 220px; font-size: 17px; }
.now-card .txt b { font-family: var(--display); font-size: 24px; text-transform: uppercase; }

/* find */
.search { width: 100%; font: inherit; font-size: 20px; padding: 18px 22px; border-radius: 18px; border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); }
.search::placeholder { color: var(--dim); }
.search:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(166, 227, 95, .18); }
.tlink { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.tlink:hover { border-color: var(--lime); transform: translateY(-2px); }
.tlink + .tlink { margin-top: 10px; }
.tlink .n { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1.1; }
.tlink .s { font-size: 14px; color: var(--muted); }
.tlink .go { color: var(--lime); font-size: 22px; }

/* format / journey */
.night { border-radius: 24px; padding: clamp(24px, 3.5vw, 38px); border: 1px solid var(--line-2); position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(18, 48, 79, .7), rgba(8, 22, 38, .4)); }
.night .num { position: absolute; right: 20px; top: 6px; font-family: var(--display); font-weight: 900; font-size: 150px; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(244, 246, 248, .08); }
.night h3 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 10px; }
.night ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.night li { display: flex; gap: 12px; align-items: baseline; color: #D9E3EC; }
.night li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); transform: translateY(-2px); }
.times-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.time-pill { padding: 10px 16px; border-radius: 14px; background: rgba(5, 12, 22, .5); border: 1px solid var(--line); }
.time-pill b { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.time-pill span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.journey { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.journey .stp { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 16px; }
.journey .stp.gold { border-color: rgba(233, 196, 106, .6); color: var(--gold); }
.journey .arr { color: var(--dim); }

/* sponsor sections */
.sponsor-band { border-radius: 28px; overflow: hidden; position: relative; padding: clamp(28px, 5vw, 64px); background: radial-gradient(800px 400px at 90% 10%, rgba(166, 227, 95, .32), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(29, 66, 104, .9), transparent 70%), var(--bg-2); border: 1px solid rgba(166, 227, 95, .3); }
.sponsor-band h2 { max-width: 760px; }
.sponsor-band .lead { margin: 14px 0 0; }
.presented-big { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.presented-big .plate { padding: 18px 28px; border-radius: 18px; }
.presented-big .plate img { height: 90px; width: auto; max-width: 320px; }
.presented-big .plate .word { font-size: 40px; }

.placements { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .placements { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .placements { grid-template-columns: repeat(4, 1fr); } }
.pl { border-radius: 20px; padding: 22px; background: var(--card); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.pl:hover { border-color: rgba(166, 227, 95, .5); transform: translateY(-3px); }
.pl .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(166, 227, 95, .12); color: var(--lime); margin-bottom: 16px; }
.pl .ic svg { width: 24px; height: 24px; }
.pl h3 { font-size: 22px; margin-bottom: 6px; }
.pl p { margin: 0; color: var(--muted); font-size: 15px; }

.mock-grid { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) { .mock-grid { grid-template-columns: 1.6fr 1fr; } }
.led-mock { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; padding: 14px; background: #02060C; border: 10px solid #1A1F26; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px var(--line-2), 0 0 80px rgba(166, 227, 95, .12); overflow: hidden; }
.led-mock .scr { position: absolute; inset: 14px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; transition: opacity .6s; }
.led-mock .lt { display: flex; align-items: center; gap: 10px; }
.led-mock .lt img { width: 34px; height: 34px; border-radius: 6px; }
.led-mock .lt .tt { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(14px, 1.6vw, 20px); line-height: 1; }
.led-mock .lt .tt small { display: block; color: var(--lime); font-size: .62em; letter-spacing: .1em; margin-top: 3px; }
.led-mock .lt .plate { margin-left: auto; padding: 4px 8px; border-radius: 6px; }
.led-mock .lt .plate img { height: 22px; width: auto; max-width: 90px; }
.led-mock .lt .plate .word { font-size: 13px; }
.led-mock .cg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.led-mock .c { background: var(--navy); border-radius: 8px; padding: 8px; font-size: clamp(9px, 1.1vw, 13px); }
.led-mock .c b { display: block; font-family: var(--display); font-size: 1.5em; text-transform: uppercase; }
.led-mock .c .k { color: var(--lime); font-weight: 800; letter-spacing: .1em; font-size: .75em; }
.led-mock .c .k.n { color: var(--amber); }
.led-mock .c .tm { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.15em; line-height: 1.1; }
.led-mock .lb { display: flex; align-items: center; gap: 8px; background: var(--navy-2); border-radius: 8px; padding: 6px 10px; font-size: clamp(9px, 1vw, 12px); color: var(--muted); }
.led-mock .lb .plate { margin-left: auto; padding: 3px 7px; border-radius: 5px; }
.led-mock .lb .plate img { height: 16px; width: auto; max-width: 70px; }
.led-mock .lb .plate .word { font-size: 11px; }
.led-mock .ad { position: absolute; inset: 14px; border-radius: 6px; display: grid; place-items: center; text-align: center; opacity: 0; transition: opacity .6s; background: radial-gradient(circle at 50% 40%, rgba(166, 227, 95, .35), transparent 60%), linear-gradient(135deg, #0D233A, #050C16); }
.led-mock .ad img, .led-mock .ad video { max-width: 100%; max-height: 100%; object-fit: contain; }
.led-mock .ad .word { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 5vw, 64px); line-height: .95; }
.led-mock .ad .word small { display: block; font-size: .3em; letter-spacing: .3em; color: var(--lime); margin-top: 10px; }
.led-mock.show-ad .ad { opacity: 1; }
.led-mock.show-ad .scr { opacity: 0; }
.led-cap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.phone-mock { width: min(300px, 80vw); margin: 0 auto; aspect-ratio: 9 / 19; border-radius: 42px; border: 10px solid #1A1F26; background: var(--bg); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px var(--line-2); position: relative; }
.phone-mock .ph-h { display: flex; align-items: center; gap: 8px; padding: 26px 12px 10px; background: rgba(5, 12, 22, .9); border-bottom: 1px solid var(--line); }
.phone-mock .ph-h img { width: 30px; height: 30px; border-radius: 6px; }
.phone-mock .ph-h .tt { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 13px; line-height: 1; }
.phone-mock .ph-h .plate { margin-left: auto; padding: 3px 7px; border-radius: 6px; }
.phone-mock .ph-h .plate img { height: 18px; width: auto; max-width: 70px; border-radius: 0; width: auto; height: auto; }
.phone-mock .ph-h .plate .word { font-size: 11px; }
.phone-mock .ph-b { padding: 14px 12px; }
.phone-mock .tcard { border-radius: 16px; padding: 14px; background: radial-gradient(240px 120px at 100% 0%, rgba(166, 227, 95, .3), transparent 70%), var(--navy-2); }
.phone-mock .tcard .k { font-size: 9px; letter-spacing: .16em; color: var(--lime); font-weight: 800; }
.phone-mock .tcard .n { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: .95; margin: 6px 0; }
.phone-mock .tcard .p { font-size: 11px; color: var(--muted); }
.phone-mock .row2 { display: flex; gap: 6px; margin-top: 10px; }
.phone-mock .row2 span { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--card-2); font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1; }
.phone-mock .row2 small { display: block; font-family: var(--body); font-size: 8px; letter-spacing: .12em; color: var(--muted); margin-top: 4px; }
.phone-mock .pnow { margin-top: 10px; border-radius: 14px; padding: 10px; border: 1px solid rgba(166, 227, 95, .5); background: rgba(166, 227, 95, .1); font-size: 11px; }
.phone-mock .pnow b { font-family: var(--display); font-size: 22px; display: block; }
.phone-mock .pfoot { position: absolute; left: 12px; right: 12px; bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.phone-mock .pfoot .plate { padding: 3px 7px; border-radius: 6px; }
.phone-mock .pfoot .plate img { height: 16px; width: auto; max-width: 60px; }
.phone-mock .pfoot .plate .word { font-size: 10px; }

.contact-card { border-radius: 22px; padding: 24px; background: var(--card); border: 1px solid var(--line-2); }
.contact-card .nm { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 28px; line-height: 1; }
.contact-card .ph { font-size: 18px; color: var(--muted); margin: 8px 0 16px; font-weight: 600; letter-spacing: .02em; }
.contact-card .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.fineprint { font-size: 12.5px; color: var(--dim); margin-top: 18px; }

.partners { display: flex; flex-wrap: wrap; gap: 12px; }
.partners a, .partners span.p { display: flex; align-items: center; justify-content: center; height: 72px; min-width: 140px; padding: 10px 18px; border-radius: 16px; background: #fff; color: var(--bg); text-decoration: none; font-weight: 800; }
.partners img { height: 48px; width: auto; max-width: 140px; object-fit: contain; }

/* rules */
.rules { max-width: 820px; }
.rules section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.rules h2 { font-size: clamp(28px, 4vw, 40px); }
.rules h3 { font-size: 20px; margin-top: 18px; color: var(--lime); }
.rules ul { padding-left: 20px; }
.rules li { margin-bottom: 8px; color: #D9E3EC; }
.rules p { color: #D9E3EC; }
.rules table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.rules th { text-align: left; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.rules td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.ex { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 14px 0; }
@media (min-width: 720px) { .ex { grid-template-columns: 1fr 1fr; } }
.ex .ok span { display: inline-block; margin: 4px 6px 4px 0; padding: 4px 12px; border-radius: 10px; background: rgba(166, 227, 95, .14); color: var(--lime); font-weight: 800; font-family: var(--display); font-size: 19px; }
.ex .bad li b { color: var(--red); font-family: var(--display); font-size: 18px; }

/* spacing helpers (no inline styles: the site's security policy forbids them) */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.mb-s { margin-bottom: 8px; }
.spacer-m { height: 28px; }
.sponsor-band.slim { padding: 22px 28px; }

/* status & footer */
.conn { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.conn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.conn-live .dot { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.conn-reconnecting { color: var(--amber); }
.conn-reconnecting .dot { background: var(--amber); }
.conn-offline { color: var(--red); font-weight: 700; }
.conn-offline .dot { background: var(--red); }
.conn-bar { position: fixed; right: 14px; bottom: 14px; z-index: 40; padding: 8px 14px; border-radius: 999px; background: rgba(5, 12, 22, .85); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }

.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #02060C); padding: clamp(48px, 7vw, 80px) 0 40px; margin-top: 40px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand img { width: 120px; height: 120px; border-radius: 18px; }
.foot-brand p { color: var(--muted); max-width: 360px; }
.site-footer h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #D9E3EC; }
.site-footer a:hover { color: var(--lime); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* reveal on scroll (only on navigation, never on live data refresh) */
.anim .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.anim .rv.in { opacity: 1; transform: none; }
.anim .hero-inner > * { animation: rise .9s var(--ease) both; }
.anim .hero-inner > *:nth-child(2) { animation-delay: .08s; }
.anim .hero-inner > *:nth-child(3) { animation-delay: .16s; }
.anim .hero-inner > *:nth-child(4) { animation-delay: .24s; }
.anim .hero-inner > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* phones: compact header lockup, short preview ribbon, live indicator shrinks to a dot */
@media (max-width: 640px) {
  .site-header .presented .lbl { display: none; }
  .site-header .plate img { height: 24px; max-width: 96px; }
  .site-header .plate .word { font-size: 14px; }
  .brand .t1 { font-size: 16px; }
  .ribbon .long { display: none; }
  .conn-bar { right: 10px; bottom: 10px; }
  .conn-bar:has(.conn-live) { padding: 9px; }
  .conn-bar:has(.conn-live) .conn { font-size: 0; gap: 0; }
}
