/* PorTres — "Night court" design system (see notes/padel/DESIGN.md) */
:root {
  --ink: #070B16;
  --ink-2: #0A1022;
  --court: #0F1F4D;
  --court-2: #16296A;
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .28);
  --ball: #D9FF3F;
  --ball-glow: rgba(217, 255, 63, .35);
  --a: #4D8DFF;
  --b: #FF6B4A;
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .10);
  --glass-edge: rgba(255, 255, 255, .12);
  --text: #F4F6FB;
  --dim: #8C97B5;
  --radius: 22px;
  --wrap: 1180px;
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Floodlights + faint court lines behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 15% -10%, rgba(77, 141, 255, .22), transparent 60%),
    radial-gradient(50vw 35vw at 95% 0%, rgba(217, 255, 63, .07), transparent 60%),
    radial-gradient(80vw 50vw at 50% 110%, rgba(15, 31, 77, .9), transparent 70%),
    var(--ink);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ball); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ball); color: var(--ink); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ball); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 12px; }
.sr { 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 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-family: var(--font); font-stretch: 125%; font-weight: 900; letter-spacing: -.015em; line-height: 1.02; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.4vw, 5.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); letter-spacing: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
.num { font-stretch: 62%; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: .9; }
.label { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); }
.label.ball { color: var(--ball); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #C9D1E6; max-width: 40em; }
.dim { color: var(--dim); }
.hl { color: var(--ball); }
.ta { color: var(--a); }
.tb { color: var(--b); }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 22, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--glass-edge);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-stretch: 125%; font-weight: 900; font-size: 19px; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; }
.brand b { color: var(--ball); font-weight: 900; }
.nav nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav nav a { color: #C9D1E6; text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 12px; border-radius: 999px; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--text); background: var(--glass); }
.nav .lang { font-weight: 750; letter-spacing: .08em; font-size: 13px; }
.nav .btn { padding: 9px 16px; font-size: 14px; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .nav nav a.opt { display: none; }
}
@media (max-width: 520px) {
  .nav .wrap { gap: 10px; }
  .nav nav a.lang { padding: 8px 8px; }
  .brand span { font-size: 17px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-stretch: 112%; font-weight: 800; font-size: 16px; letter-spacing: .01em;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--spring), box-shadow .3s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-ball { background: var(--ball); color: var(--ink) !important; box-shadow: 0 0 0 1px rgba(217,255,63,.4), 0 10px 40px -8px var(--ball-glow); }
.btn-ball:hover { box-shadow: 0 0 0 1px rgba(217,255,63,.6), 0 14px 50px -6px rgba(217,255,63,.55); transform: translateY(-1px); }
.btn-glass { background: var(--glass-2); color: var(--text) !important; border: 1px solid var(--glass-edge); }
.btn-glass:hover { background: rgba(255,255,255,.14); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.appstore-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 18px; border-radius: 14px; background: #000; color: #fff !important; border: 1px solid rgba(255,255,255,.35); text-decoration: none; line-height: 1.1; }
.appstore-badge svg { width: 26px; height: 26px; fill: #fff; }
.appstore-badge small { display: block; font-size: 11px; opacity: .85; }
.appstore-badge strong { display: block; font-size: 19px; font-weight: 650; font-stretch: 100%; }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 30px 60px -30px rgba(0,0,0,.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* ---------- CourtCard ---------- */
.cc {
  --line-c: rgba(255,255,255,.22);
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 132px; padding: 18px 16px;
  border-radius: 18px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='white' stroke-opacity='.2' vector-effect='non-scaling-stroke'%3E%3Crect x='3' y='4' width='194' height='92' rx='2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M33.5 4v92M166.5 4v92M33.5 50h133' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3Cpath d='M100 1v98' stroke='white' stroke-opacity='.55' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    linear-gradient(90deg, rgba(77,141,255,.16), transparent 30%, transparent 70%, rgba(255,107,74,.14)),
    linear-gradient(180deg, #14296A, var(--court));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 4px rgba(255,255,255,.03), 0 20px 40px -24px rgba(0,0,0,.8);
  overflow: hidden;
}
.cc::after { /* glass edge highlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.14), transparent 28%, transparent 72%, rgba(255,255,255,.06));
}
.cc-tag { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.62); background: rgba(7,11,22,.55); padding: 2px 9px; border-radius: 999px; white-space: nowrap; z-index: 1; }
.cc-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 4px 0; position: relative; z-index: 1; }
.cc-side.a { align-items: flex-start; }
.cc-side.b { align-items: flex-end; text-align: right; }
.cc-p { font-weight: 700; font-size: 15px; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.cc-side.a .cc-p::before, .cc-side.b .cc-p::after { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cc-side.a .cc-p::before { background: var(--a); box-shadow: 0 0 10px var(--a); }
.cc-side.b .cc-p::after { background: var(--b); box-shadow: 0 0 10px var(--b); }
.cc-score { display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; position: relative; z-index: 1; }
.cc-score .num { font-size: 46px; min-width: 1.1ch; text-align: center; }
.cc-score .sep { width: 2px; height: 40px; background: rgba(255,255,255,.55); border-radius: 2px; }
.cc.done .cc-score .num.win { color: var(--ball); text-shadow: 0 0 22px var(--ball-glow); }
.cc-score input {
  width: 64px; height: 58px; text-align: center;
  font: 900 34px/1 var(--font); font-stretch: 62%; font-variant-numeric: tabular-nums;
  color: var(--text); background: rgba(7,11,22,.6); border: 1px solid rgba(255,255,255,.22); border-radius: 12px;
  -moz-appearance: textfield; appearance: textfield;
}
.cc-score input::-webkit-outer-spin-button, .cc-score input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cc-score input:focus { border-color: var(--ball); outline: none; box-shadow: 0 0 0 3px rgba(217,255,63,.25); }
.cc-score input.auto { color: #C9D1E6; }
.cc-score input.win { color: var(--ball); border-color: rgba(217,255,63,.6); }
@media (max-width: 420px) {
  .cc { padding: 16px 10px; }
  .cc-p { font-size: 14px; }
  .cc-score { gap: 6px; }
  .cc-score input { width: 52px; height: 52px; font-size: 30px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: url("/assets/img/hero.jpg") center / cover no-repeat; opacity: .38; mask-image: linear-gradient(180deg, #000 30%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 8.6vw, 6rem); margin-bottom: .32em; }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 1.5px rgba(244,246,251,.7); }
.hero .lede { margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-edge); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #C9D1E6; }
.kicker i { width: 12px; height: 12px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 12px var(--ball); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.badge-float { position: absolute; transform: rotate(-4deg); z-index: 2; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; background: rgba(217,255,63,.14); color: var(--ball); border: 1px solid rgba(217,255,63,.4); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ball); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,255,63,.7); } 50% { box-shadow: 0 0 0 7px rgba(217,255,63,0); } }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .label { display: block; margin-bottom: 14px; }
.lines-top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.feature { padding: 26px; position: relative; overflow: hidden; }
.feature .num.big { font-size: 64px; color: transparent; -webkit-text-stroke: 1.2px rgba(217,255,63,.75); position: absolute; right: 18px; top: 12px; }
.feature h3 { margin-top: 64px; }
.feature p { color: #C9D1E6; margin: 0; font-size: 16px; }

.strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; align-items: flex-end; }
.strip .stat { display: flex; flex-direction: column; gap: 6px; }
.strip .stat .num { font-size: clamp(56px, 9vw, 120px); }
.strip .stat .num.ball { color: var(--ball); text-shadow: 0 0 40px var(--ball-glow); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: #DCE2F1; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F4FFB5, var(--ball) 60%); box-shadow: 0 0 10px var(--ball-glow); }

/* Watch mock */
.watch { width: min(240px, 70%); margin: 0 auto; aspect-ratio: 41/50; border-radius: 34% / 28%; background: #000; border: 8px solid #1c2233; box-shadow: 0 0 0 2px #2b3348, 0 40px 80px -30px rgba(0,0,0,.9), 0 0 60px rgba(77,141,255,.18); display: grid; place-items: center; position: relative; }
.watch::after { content: ""; position: absolute; right: -16px; top: 26%; width: 8px; height: 18%; border-radius: 4px; background: #2b3348; }
.watch-face { text-align: center; }
.watch-face .label { font-size: 10px; }
.watch-face .num { font-size: 76px; display: flex; gap: 10px; align-items: center; }
.watch-face .num .sep { width: 3px; height: 50px; background: rgba(255,255,255,.4); }

/* Mini generator (home) */
.mini { padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .mini { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field > label, .field > .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
textarea, input[type="text"], input[type="number"], input[type="date"], select {
  font: inherit; font-size: 16px; color: var(--text);
  background: rgba(7, 11, 22, .55); border: 1px solid rgba(255,255,255,.18); border-radius: 14px;
  padding: 12px 14px; width: 100%;
}
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--ball); box-shadow: 0 0 0 3px rgba(217,255,63,.22); }
::placeholder { color: #6B7594; }
.hint { font-size: 14px; color: var(--dim); margin: 0; }

/* Segmented control + chips */
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(7,11,22,.55); border: 1px solid rgba(255,255,255,.14); }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 10px 12px; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: #C9D1E6; transition: background .2s, color .2s; white-space: nowrap; }
.seg input:checked + span { background: var(--ball); color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--ball); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(7,11,22,.55); border: 1px solid rgba(255,255,255,.18); }
.stepper button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--glass-2); color: var(--text); font-size: 22px; font-weight: 700; cursor: pointer; }
.stepper button:hover { background: rgba(255,255,255,.16); }
.stepper input { width: 58px; text-align: center; border: 0; background: transparent; font-weight: 900; font-stretch: 62%; font-size: 26px; padding: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #DCE2F1; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ball); margin-top: 2px; flex: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { padding: 0; border-radius: 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 750; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--ball); transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: #C9D1E6; }
.faq details > div p:last-child { margin: 0; }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; padding: 40px 20px 80px; }
.crumbs { font-size: 14px; color: var(--dim); margin: 0 0 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: #C9D1E6; text-decoration: none; }
.crumbs a:hover { color: var(--ball); }
.article h1 { font-size: clamp(2.1rem, 5.6vw, 3.8rem); }
.article .meta { color: var(--dim); font-size: 14.5px; margin-bottom: 30px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.article h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 1.8em; scroll-margin-top: 84px; }
.article h3 { margin-top: 1.5em; }
.article p, .article li { color: #DCE2F1; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .45em; }
.article li::marker { color: var(--ball); }
.article strong { color: var(--text); }
.article table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 15.5px; display: block; overflow-x: auto; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 700; }
.article .note { padding: 18px 20px; border-left: 3px solid var(--ball); background: rgba(217,255,63,.06); border-radius: 0 14px 14px 0; margin: 1.4em 0; }
.article .note p:last-child { margin: 0; }
.article .src { font-size: 14px; color: var(--dim); }
.article .src a { color: #C9D1E6; }
.article figure { margin: 1.6em 0; }
.article figcaption { font-size: 14px; color: var(--dim); margin-top: 8px; text-align: center; }
.toc { padding: 18px 22px; margin: 0 0 28px; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.toc a { color: #DCE2F1; text-decoration: none; }
.toc a:hover { color: var(--ball); }

.cta-box { margin: 2.2em 0; padding: 26px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.cta-box .icon { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(180deg, #14296A, var(--court)); display: grid; place-items: center; border: 1px solid var(--glass-edge); overflow: hidden; }
.cta-box .icon img, .cta-box .icon svg { width: 100%; height: 100%; object-fit: cover; }
.cta-box h3 { margin: 0 0 6px; }
.cta-box p { margin: 0 0 14px; color: #C9D1E6; }
.cta-box .row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .cta-box { grid-template-columns: 1fr; } }

.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.related a { padding: 18px 20px; text-decoration: none; color: var(--text); font-weight: 750; display: block; }
.related a span { display: block; font-weight: 400; color: var(--dim); font-size: 14.5px; margin-top: 4px; }
.related a:hover { border-color: rgba(217,255,63,.45); }

.guide-card { padding: 24px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--spring), border-color .2s; }
.guide-card:hover { transform: translateY(-3px); border-color: rgba(217,255,63,.45); }
.guide-card h3 { margin: 0; }
.guide-card p { margin: 0; color: #C9D1E6; font-size: 15.5px; }
.guide-card .go { margin-top: auto; color: var(--ball); font-weight: 750; font-size: 14px; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--glass-edge); padding: 48px 0 40px; margin-top: 40px; background: rgba(7,11,22,.6); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
footer.site h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); font-stretch: 100%; font-weight: 700; margin-bottom: 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a { color: #C9D1E6; text-decoration: none; font-size: 15px; }
footer.site a:hover { color: var(--ball); }
footer.site .fine { margin-top: 36px; font-size: 13.5px; color: var(--dim); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Tool ---------- */
.tool-hero { padding: clamp(32px, 5vw, 60px) 0 24px; }
.tool-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); }
.tool { display: grid; gap: 18px; }
.panel { padding: clamp(18px, 3vw, 28px); }
.setup { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
@media (max-width: 900px) { .setup { grid-template-columns: minmax(0, 1fr); } }
.setup .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .setup .two { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--glass-edge); font-size: 14px; font-weight: 600; max-width: 100%; }
.chip.a { border-color: rgba(77,141,255,.5); }
.chip.b { border-color: rgba(255,107,74,.5); }
.chip.warn { border-color: rgba(255,107,74,.7); color: #FFB3A3; }
.count { font-weight: 900; font-stretch: 62%; font-size: 22px; color: var(--ball); }
.msg { font-size: 15px; padding: 12px 14px; border-radius: 12px; background: rgba(255,107,74,.1); border: 1px solid rgba(255,107,74,.35); color: #FFD2C8; margin: 0 0 14px; }
.msg.ok { background: rgba(217,255,63,.08); border-color: rgba(217,255,63,.3); color: #EEFFB0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .spacer { flex: 1; }
.event-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.event-head h2 { margin: 0; }
.event-meta { color: var(--dim); font-size: 15px; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .event-layout { grid-template-columns: minmax(0, 1fr); } }
.round { margin-bottom: 26px; }
.round-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 12px; }
.round-head h3 { margin: 0; font-size: 20px; }
.round-head .num { font-size: 40px; color: var(--ball); }
.round-head .state { margin-left: auto; font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.round-head .state.ok { color: var(--ball); }
.courts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.resting { margin-top: 10px; font-size: 14.5px; color: var(--dim); }
.resting b { color: #C9D1E6; font-weight: 650; }
.board { position: sticky; top: 80px; padding: 20px; }
.board h3 { display: flex; align-items: center; gap: 10px; }
table.lb { width: 100%; border-collapse: collapse; font-size: 15px; }
table.lb th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); text-align: right; font-weight: 700; padding: 6px 6px; }
table.lb th:nth-child(2) { text-align: left; }
table.lb td { padding: 9px 6px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
table.lb td.name { text-align: left; font-weight: 650; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.lb td.pos { width: 34px; text-align: left; font-weight: 900; font-stretch: 62%; font-size: 22px; color: var(--dim); }
table.lb td.pts { font-weight: 900; font-stretch: 62%; font-size: 22px; }
table.lb tr.p1 td.pos, table.lb tr.p1 td.pts { color: var(--ball); text-shadow: 0 0 16px var(--ball-glow); }
table.lb tr.p2 td.pos, table.lb tr.p3 td.pos { color: var(--text); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 6px 0 18px; }
.podium .step { text-align: center; padding: 10px 6px; border-radius: 14px 14px 4px 4px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); border: 1px solid var(--glass-edge); min-width: 0; }
.podium .step .num { font-size: 34px; }
.podium .step .who { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .step.s1 { height: 128px; border-color: rgba(217,255,63,.55); box-shadow: 0 0 40px -6px var(--ball-glow); }
.podium .step.s1 .num { color: var(--ball); }
.podium .step.s2 { height: 104px; }
.podium .step.s3 { height: 88px; }
.share-box { display: flex; gap: 8px; margin-top: 12px; }
.share-box input { font-size: 13px; padding: 9px 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ball); color: var(--ink); font-weight: 800; padding: 12px 20px; border-radius: 999px; z-index: 80; transition: transform .45s var(--spring); box-shadow: 0 10px 40px -8px var(--ball-glow); }
.toast.show { transform: translate(-50%, 0); }
.print-only { display: none; }

/* Pair draw */
.pairs-out { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.pair-card { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; animation: dealIn .55s var(--spring) both; }
.pair-card .num { font-size: 44px; color: var(--ball); grid-row: span 2; }
.pair-card .who { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-card .lvl { font-size: 13px; color: var(--dim); }
@keyframes dealIn { from { opacity: 0; transform: translateY(14px) rotate(-2deg) scale(.96); } to { opacity: 1; transform: none; } }

/* Scroll reveal (progressive enhancement, no JS) */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before, .nav, footer.site, .no-print, .setup-panel, .toolbar, .seo, .board .share-box, .toast, .skip { display: none !important; }
  .print-only { display: block; }
  .glass, .board { background: none; border: 1px solid #999; box-shadow: none; backdrop-filter: none; position: static; }
  .event-layout { grid-template-columns: 1fr; }
  .cc { background: #fff; border: 1.5px solid #000; box-shadow: none; min-height: 0; padding: 18px 10px 10px; break-inside: avoid; }
  .cc::after { display: none; }
  .cc-tag { color: #000; background: #fff; border: 1px solid #000; }
  .cc-p { color: #000; }
  .cc-score input { color: #000; background: #fff; border: 1.5px solid #000; width: 46px; height: 40px; font-size: 22pt; }
  .cc-score .sep { background: #000; }
  .round { break-inside: avoid; }
  .round-head .num, table.lb tr.p1 td.pos, table.lb tr.p1 td.pts, .podium .step.s1 .num { color: #000; text-shadow: none; }
  table.lb td, table.lb th { color: #000; border-color: #bbb; }
  .label, .dim, .resting, .event-meta { color: #333; }
  a { color: #000; }
}

/* ---------- Hero photo + live stack ---------- */
.hero { min-height: min(86vh, 760px); display: flex; align-items: center; }
.hero > .wrap { width: 100%; }
.hero .hero-bg {
  opacity: 1; mask-image: none; -webkit-mask-image: none;
  background:
    linear-gradient(90deg, rgba(7,11,22,.94) 0%, rgba(7,11,22,.78) 38%, rgba(7,11,22,.30) 72%, rgba(7,11,22,.45) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(7,11,22,0) 32%),
    linear-gradient(180deg, rgba(7,11,22,.55) 0%, rgba(7,11,22,0) 20%),
    url("/assets/img/hero.jpg") 60% 40% / cover no-repeat,
    linear-gradient(180deg, #0B1640, var(--ink));
}
@media (max-width: 900px) {
  .hero .hero-bg { background:
    linear-gradient(180deg, rgba(7,11,22,.82) 0%, rgba(7,11,22,.72) 55%, var(--ink) 100%),
    url("/assets/img/hero.jpg") 62% 50% / cover no-repeat, var(--ink); }
}
.hero-stack { position: relative; display: grid; gap: 14px; max-width: 470px; justify-self: end; width: 100%; transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); transition: transform 1s var(--spring); }
.hero-stack:hover { transform: perspective(1400px) rotateY(-3deg); }
.hero-live { padding: 16px; display: grid; gap: 12px; background: linear-gradient(180deg, rgba(10,18,44,.72), rgba(10,18,44,.55)); }
.hero-live-head { display: flex; justify-content: space-between; align-items: center; }
.hero-board { padding: 14px 18px; width: 72%; margin-left: auto; background: linear-gradient(180deg, rgba(10,18,44,.75), rgba(10,18,44,.6)); }
.hero-board ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.hero-board li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; font-weight: 650; }
.hero-board li .num { font-size: 24px; color: var(--dim); }
.hero-board li .num.hl { color: var(--ball); text-shadow: 0 0 18px var(--ball-glow); }
.hero-board li:first-child .num:first-child { color: var(--ball); }
.hero-stack .badge-float { right: 18px; bottom: -14px; left: auto; top: auto; transform: rotate(3deg); }
.brand-icon { border-radius: 7px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.cta-box .icon img { border-radius: 16px; }
.cc-score input.warn { border-color: var(--b); box-shadow: 0 0 0 3px rgba(255,107,74,.25); }
@media (max-width: 900px) { .hero-stack { justify-self: stretch; max-width: none; transform: none; } .hero-stack:hover { transform: none; } .hero { min-height: 0; } }
@media (max-width: 520px) { .hero-board { width: 100%; } }

h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; }
  .hero-ctas > * { flex: 1 1 auto; }
  .nav .btn { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  .feature h3 { margin-top: 52px; }
  .feature .num.big { font-size: 52px; }
  .strip { justify-content: flex-start; gap: 18px 34px; }
  .strip .stat .num { font-size: 64px; }
}
.article blockquote { margin: 1.4em 0; padding: 18px 22px; border-left: 3px solid var(--ball); background: rgba(255,255,255,.05); border-radius: 0 14px 14px 0; color: #DCE2F1; font-style: normal; }
.article blockquote p:last-child { margin: 0; }
.article code { font-size: .9em; background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; }

/* ---- round robin ---- */
.rr-scroll { overflow-x: auto; margin: 16px 0 18px; }
.rr-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rr-table th, .rr-table td { padding: 12px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.rr-table thead th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 700; border-top: 0; white-space: nowrap; padding-top: 4px; }
.rr-table tbody th { width: 64px; font-weight: 900; font-stretch: 62%; font-size: 30px; line-height: 1; color: var(--ball); font-variant-numeric: tabular-nums; }
.rr-team { display: block; font-weight: 650; overflow-wrap: anywhere; }
.rr-vs { display: block; margin: 3px 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.rr-table td.rr-out { color: var(--dim); font-size: 14.5px; }
.rr-fair { margin: 10px 0 0; }
@media (max-width: 640px) {
  .rr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rr-table, .rr-table tbody, .rr-table tr, .rr-table th, .rr-table td { display: block; width: auto; }
  .rr-table tr { padding: 14px 0 10px; border-top: 1px solid var(--line); }
  .rr-table th, .rr-table td { border: 0; padding: 0; }
  .rr-table tbody th { font-size: 28px; margin-bottom: 8px; }
  .rr-table tbody th::before { content: attr(data-label) " "; font-size: 13px; font-stretch: 100%; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); vertical-align: middle; }
  .rr-table td { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 6px 0; }
  .rr-table td::before { content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
  .rr-m .rr-team, .rr-m .rr-vs { display: inline; }
  .rr-m .rr-vs { margin: 0 6px; }
}
@media print {
  .rr-scroll { overflow: visible; }
  .rr-table { font-size: 10.5pt; }
  .rr-table th, .rr-table td, .rr-table thead th, .rr-table td.rr-out, .rr-vs { color: #000; border-color: #999; }
  .rr-table tbody th { color: #000; font-size: 18pt; }
  .rr-table tr { break-inside: avoid; }
  .rr-fair { background: none; border: 0; padding: 0; color: #000; }
}
.rr-h1sub { display: block; margin-top: .4em; font-size: .4em; line-height: 1.2; font-weight: 700; font-stretch: 100%; letter-spacing: 0; text-transform: none; color: #C9D1E6; }
.rr-ref tbody th { font-size: 24px; }
.rr-ref thead th { white-space: normal; vertical-align: bottom; }
@media print { .rr-result .event-head .label { border: 0; } }
@media (max-width: 640px) {
  .rr-table.rr-ref { display: table; width: max-content; min-width: 100%; font-size: 13.5px; }
  .rr-table.rr-ref thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .rr-table.rr-ref tbody { display: table-row-group; }
  .rr-table.rr-ref tr { display: table-row; padding: 0; }
  .rr-table.rr-ref th, .rr-table.rr-ref td { display: table-cell; padding: 8px 9px; border-top: 1px solid var(--line); }
  .rr-table.rr-ref thead th { border-top: 0; white-space: normal; max-width: 84px; font-size: 10px; letter-spacing: .1em; vertical-align: bottom; }
  .rr-table.rr-ref tbody th { font-size: 20px; margin: 0; width: auto; }
  .rr-table.rr-ref tbody th::before, .rr-table.rr-ref td::before { content: none; }
}

/* ---- score keeper ---- */
.sk [hidden] { display: none !important; }
.sk-hero { padding-bottom: 18px; }
.sk { gap: 14px; grid-template-columns: minmax(0, 1fr); }
.sk-board { scroll-margin-top: 76px; }
.sk-board {
  position: relative; display: grid; gap: 12px; padding: 12px;
  border-radius: 28px; border: 1px solid var(--glass-edge);
  background: radial-gradient(120% 70% at 50% 0%, rgba(22,41,106,.55), transparent 70%), linear-gradient(180deg, #0C1534, #080D1D);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 30px 60px -30px rgba(0,0,0,.7);
}
.sk-top { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px; }
.sk-sets { border-collapse: separate; border-spacing: 5px 1px; margin: 0 0 0 -5px; flex: none; }
.sk-sets th { padding: 0; width: 12px; }
.sk-sets th i { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--a); box-shadow: 0 0 10px var(--a); }
.sk-sets tr.b th i { background: var(--b); box-shadow: 0 0 10px var(--b); }
.sk-sets td { font: 900 21px/1.05 var(--font); font-stretch: 62%; font-variant-numeric: tabular-nums; text-align: center; min-width: 1.15em; padding: 0; color: var(--dim); }
.sk-sets td.won { color: var(--text); }
.sk-sets td.cur { color: var(--ball); min-width: 1.5em; border-left: 1px solid var(--line); padding-left: 5px; }
.sk-sets td:first-of-type.cur { border-left: 0; padding-left: 0; }
.sk-sets sup { font-size: .55em; margin-left: 1px; vertical-align: .7em; color: var(--dim); }
.sk-call { flex: 1; display: flex; justify-content: center; min-width: 0; }
.sk-badge { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; line-height: 1.2; }
.sk-badge.plain { color: var(--dim); border: 1px solid var(--line); }
.sk-badge.on { color: var(--text); background: var(--glass-2); border: 1px solid var(--line-strong); }
.sk-badge.tb { color: var(--ball); border: 1px solid rgba(217,255,63,.5); background: rgba(217,255,63,.08); }
.sk-badge.hot { color: var(--ink); background: var(--ball); box-shadow: 0 0 24px var(--ball-glow); animation: pulse 1.6s ease-in-out infinite; }
.sk-icons { display: flex; gap: 6px; flex: none; }
.sk-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--glass-edge); color: var(--text); cursor: pointer; padding: 0; }
.sk-icon:hover { background: rgba(255,255,255,.16); }
.sk-icon svg { width: 20px; height: 20px; }
.sk-icon[aria-pressed="true"] { background: var(--ball); color: var(--ink); }

.sk-teams { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.sk-team {
  --c: var(--a); --tint: rgba(77,141,255,.10); --tint-hit: rgba(77,141,255,.32); --edge: rgba(77,141,255,.38);
  display: flex; flex-direction: column; min-width: 0; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, var(--tint), rgba(255,255,255,.02)); border: 1.5px solid var(--edge);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.sk-team.b { --c: var(--b); --tint: rgba(255,107,74,.10); --tint-hit: rgba(255,107,74,.32); --edge: rgba(255,107,74,.38); }
.sk-team.serving { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 40px -12px var(--c); }
.sk-team.hit { background: linear-gradient(180deg, var(--tint-hit), var(--tint)); transition: none; }
.sk-team-head { display: flex; align-items: center; gap: 6px; padding: 8px 8px 0 10px; }
.sk-ball { width: 18px; height: 18px; flex: none; opacity: .14; filter: grayscale(1); transition: opacity .3s, transform .45s var(--spring), filter .3s; transform: scale(.7); }
.sk-team.serving .sk-ball { opacity: 1; filter: none; transform: none; }
.sk .sk-name { flex: 1; min-width: 0; width: auto; padding: 7px 8px; border-radius: 10px; border: 1px solid transparent; background: transparent; font-weight: 750; font-size: 16px; color: var(--text); text-overflow: ellipsis; }
.sk .sk-name::placeholder { color: var(--text); opacity: .92; }
.sk .sk-name:hover { border-color: var(--line); }
.sk .sk-name:focus { border-color: var(--ball); background: rgba(7,11,22,.6); box-shadow: 0 0 0 3px rgba(217,255,63,.22); }
.sk-swap { flex: none; width: 36px; height: 32px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass-2); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.sk-swap svg { width: 16px; height: 16px; }
.sk-tap {
  flex: 1; width: 100%; min-height: clamp(260px, 64vw, 430px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 4px 8px 16px; margin: 0; border: 0; background: transparent; color: var(--c); font: inherit; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.sk-tap:focus-visible { outline: 3px solid var(--ball); outline-offset: -8px; border-radius: 22px; }
.sk-tap[aria-disabled="true"] { cursor: default; }
.sk-pts { font-size: clamp(108px, 34vw, 240px); line-height: .8; color: var(--c); text-shadow: 0 0 46px var(--tint-hit); letter-spacing: -.02em; }
.sk-team.adv .sk-pts { color: var(--ball); text-shadow: 0 0 46px var(--ball-glow); }
.sk-line { min-height: 2.5em; max-width: 100%; font-size: 13.5px; font-weight: 750; line-height: 1.25; color: var(--text); text-align: center; overflow-wrap: anywhere; display: flex; align-items: center; }
.sk-games { display: flex; align-items: baseline; gap: 8px; color: var(--text); }
.sk-games .label { font-size: 11px; }
.sk-games .num { font-size: 36px; }

.sk-bar { display: flex; gap: 10px; }
.sk-bar .btn { flex: 1 1 0; padding: 13px 14px; min-height: 50px; }
.sk-bar .btn svg, .sk-done-btns .btn svg { width: 18px; height: 18px; }
.sk-exit { justify-self: center; }

.sk-board.over .sk-teams, .sk-board.over .sk-bar { display: none; }
.sk-done { display: grid; place-items: center; padding: 8px 4px 6px; }
.sk-done-card { width: 100%; max-width: 560px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.sk-trophy { color: var(--ball); filter: drop-shadow(0 0 18px var(--ball-glow)); }
.sk-trophy svg { width: 46px; height: 46px; }
.sk-winner { margin: 0; font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 6vw, 38px); line-height: 1.05; overflow-wrap: anywhere; }
.sk-final { margin: 0; font-size: clamp(44px, 13vw, 76px); color: var(--ball); text-shadow: 0 0 30px var(--ball-glow); white-space: pre-wrap; word-spacing: .25em; }
.sk-done-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.sk-done-btns .btn { flex: 1 1 160px; max-width: 240px; }
.sk-handoff { width: 100%; margin-top: 10px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; text-align: left; padding: 18px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid var(--glass-edge); }
.sk-handoff img { border-radius: 13px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.sk-handoff h2 { font-size: 18px; letter-spacing: 0; line-height: 1.2; margin: 0 0 6px; }
.sk-handoff p { font-size: 14.5px; color: #C9D1E6; margin: 0 0 12px; }

.sk-settings { border-radius: 22px; }
.sk-settings summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 800; scroll-margin-top: 80px; }
.sk-settings summary::-webkit-details-marker { display: none; }
.sk-settings summary svg { width: 20px; height: 20px; flex: none; color: var(--ball); }
.sk-sum { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--dim); text-align: right; }
.sk-settings[open] .sk-sum { display: none; }
.sk-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; padding: 0 20px 20px; }
.sk-form .hint { margin-top: 2px; }
.sk-form #sk-form-note, .sk-form #sk-apply { grid-column: 1 / -1; }
.sk-form #sk-form-note:empty { display: none; }
.sk-form .seg input:disabled + span { opacity: .4; }
.sk-form .seg input:disabled { cursor: not-allowed; }
@media (max-width: 760px) { .sk-form { grid-template-columns: minmax(0, 1fr); } .sk-sum { display: none; } }
.sk-keys { margin: 0; }
.sk-keys kbd { font: 700 12.5px/1 var(--font); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--glass); color: var(--text); }
@media (hover: none) { .sk-keys { display: none; } }
.sk-copy { max-width: 780px; margin-top: 48px; }
.sk-copy h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 1.6em; }
.sk-copy p, .sk-copy li { color: #DCE2F1; }
.sk-copy ul { padding-left: 1.3em; }
.sk-copy li { margin-bottom: .55em; }
.sk-copy li::marker { color: var(--ball); }

@media (max-width: 420px) {
  .sk-board { padding: 10px; gap: 10px; border-radius: 24px; }
  .sk-teams { gap: 8px; }
  .sk-team { border-radius: 20px; }
  .sk-line { font-size: 12.5px; }
  .sk-badge { font-size: 11px; letter-spacing: .1em; padding: 6px 10px; }
}

/* TV / tablet mode: real fullscreen when the browser allows it, a fixed overlay otherwise. */
html.sk-tv-on, html.sk-tv-on body { overflow: hidden; }
.sk-board.is-tv {
  position: fixed; inset: 0; z-index: 200; width: auto; height: 100vh; height: 100dvh; border-radius: 0; border: 0;
  grid-template-rows: auto minmax(0, 1fr) auto auto; gap: clamp(10px, 2vh, 22px);
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: radial-gradient(120% 70% at 50% 0%, rgba(22,41,106,.6), transparent 70%), var(--ink);
}
.sk-board.is-tv.over { grid-template-rows: auto minmax(0, 1fr) auto; }
.sk-board.is-tv .sk-teams { min-height: 0; gap: clamp(8px, 1.6vw, 22px); }
.sk-board.is-tv .sk-team { min-height: 0; border-radius: clamp(20px, 3vw, 36px); }
.sk-board.is-tv .sk-tap { min-height: 0; }
.sk-board.is-tv .sk-pts { font-size: min(50vh, 27vw); }
.sk-board.is-tv .sk-sets td { font-size: clamp(24px, 4.6vh, 50px); }
.sk-board.is-tv .sk-sets th i { width: clamp(10px, 1.6vh, 16px); height: clamp(10px, 1.6vh, 16px); }
.sk-board.is-tv .sk-name { font-size: clamp(16px, min(3.4vh, 4.4vw), 34px); }
.sk-board.is-tv .sk-ball { width: clamp(18px, 3.4vh, 34px); height: clamp(18px, 3.4vh, 34px); }
.sk-board.is-tv .sk-line { font-size: clamp(13px, min(2.6vh, 3.6vw), 26px); }
.sk-board.is-tv .sk-games .num { font-size: clamp(36px, 8vh, 84px); }
.sk-board.is-tv .sk-games .label { font-size: clamp(11px, 1.8vh, 18px); }
.sk-board.is-tv .sk-badge { font-size: clamp(12px, min(2.2vh, 3.4vw), 22px); padding: .55em 1em; }
.sk-board.is-tv #sk-gear { display: none; }
.sk-board.is-tv .sk-bar { justify-content: center; }
.sk-board.is-tv .sk-bar .btn { flex: 0 1 240px; }
@media (orientation: portrait) { .sk-board.is-tv .sk-pts { font-size: min(30vh, 34vw); } }
.sk-board:fullscreen { width: 100%; height: 100%; }
html.sk-tv-on .toast { z-index: 300; }
@media (max-width: 420px) {
  /* Keeps "Pareja A/B" whole next to the serve-swap button on phones. */
  .sk-team-head { gap: 4px; padding: 8px 6px 0 8px; }
  .sk .sk-name { padding: 7px 4px; font-size: 15px; }
  .sk-swap { width: 30px; height: 30px; }
}

/* ---- live ---- */
/* /l/<id>: live results link (web/js/live.js). Phone/desktop page + full-screen TV mode (?tv=1). */
.lv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.lv-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #C9D1E6; background: rgba(217,255,63,.08); border: 1px solid rgba(217,255,63,.3); white-space: nowrap; }
.lv-pill[hidden] { display: none; }
.lv-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 0 var(--ball-glow); animation: lvPulse 1.8s ease-out infinite; flex: none; }
.lv-pill b { color: var(--ball); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; }
.lv-pill.done { background: var(--glass); border-color: var(--glass-edge); }
.lv-pill.done i { background: var(--dim); animation: none; }
.lv-pill.done b { color: var(--text); }
.lv-pill.off { background: rgba(255,107,74,.1); border-color: rgba(255,107,74,.4); }
.lv-pill.off i { background: var(--b); animation: none; }
.lv-pill.off b { color: #FFB4A3; }
@keyframes lvPulse { 0% { box-shadow: 0 0 0 0 rgba(217,255,63,.55); } 70% { box-shadow: 0 0 0 9px rgba(217,255,63,0); } 100% { box-shadow: 0 0 0 0 rgba(217,255,63,0); } }
@media (prefers-reduced-motion: reduce) { .lv-pill i { animation: none; } }
.lv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lv-actions[hidden] { display: none; }
.lv-status { font-size: 14.5px; padding: 11px 14px; border-radius: 14px; background: rgba(255,107,74,.08); border: 1px solid rgba(255,107,74,.3); color: #FFD2C8; }
.lv-status[hidden] { display: none; }
.lv-empty { text-align: center; padding: clamp(28px, 6vw, 56px) 20px; }
.lv-empty-t { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 700; margin: 0 0 6px; }
.lv-now { padding: 0; margin-bottom: 18px; }
.lv-now .round-head h3 { font-size: 22px; }
@media (max-width: 600px) {
  .lv-now .round-head { flex-wrap: wrap; row-gap: 4px; }
  .lv-now .round-head .state { flex-basis: 100%; margin-left: 0; }
}
.lv-note { margin: 12px 0 0; font-weight: 650; color: var(--ball); }
.lv-all { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.lv-all > summary { cursor: pointer; font-weight: 750; color: #C9D1E6; padding: 6px 0 14px; list-style: none; display: flex; align-items: center; gap: 10px; }
.lv-all > summary::-webkit-details-marker { display: none; }
.lv-all > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.lv-all[open] > summary::before { transform: rotate(45deg); }
table.lb td.pts .bye { display: block; font-size: 11px; font-weight: 600; font-stretch: 100%; color: var(--dim); }
@media (max-width: 860px) {
  .lv-hero + .tool .event-layout { grid-template-columns: minmax(0, 1fr); }
  .lv-hero + .tool .board { position: static; }
  .lv-final > .board { order: -1; }
}

/* TV mode */
html.lv-tv-on, html.lv-tv-on body { overflow: hidden; height: 100%; }
html.lv-tv-on .nav, html.lv-tv-on footer.site, html.lv-tv-on .skip, html.lv-tv-on #main > :not(.lv-tv) { display: none !important; }
.lv-tv[hidden] { display: none; }
.lv-tv {
  position: fixed; inset: 0; z-index: 200; overflow: hidden;
  background: radial-gradient(90% 70% at 30% -10%, rgba(22,41,106,.75), transparent 70%), radial-gradient(60% 50% at 100% 100%, rgba(217,255,63,.06), transparent 70%), var(--ink);
  --u: min(1vh, .56vw);
  font-size: calc(var(--u) * 2.4);
}
.lv-tv-grid {
  height: 100%; display: grid; gap: calc(var(--u) * 2.4) calc(var(--u) * 3);
  grid-template-columns: minmax(0, 1fr) calc(var(--u) * 44);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "head head" "main side";
  padding: max(calc(var(--u) * 3), env(safe-area-inset-top)) max(calc(var(--u) * 3.6), env(safe-area-inset-right)) max(calc(var(--u) * 3), env(safe-area-inset-bottom)) max(calc(var(--u) * 3.6), env(safe-area-inset-left));
}
.lv-tv-head { grid-area: head; display: flex; align-items: center; gap: calc(var(--u) * 2.4); min-width: 0; }
.lv-tv-titles { min-width: 0; flex: 1; }
.lv-tv-kicker { font-size: calc(var(--u) * 1.9); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ball); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tv-name { font-size: calc(var(--u) * 5.4); font-weight: 900; font-stretch: 75%; line-height: 1.02; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tv .lv-pill { font-size: calc(var(--u) * 2); padding: .45em 1em .45em .8em; gap: .6em; }
.lv-tv .lv-pill i { width: .7em; height: .7em; }
.lv-tv .lv-pill b { font-size: .85em; }
.lv-tv-exit { flex: none; width: calc(var(--u) * 5.4); height: calc(var(--u) * 5.4); border-radius: 50%; display: grid; place-items: center; font-size: calc(var(--u) * 3.4); line-height: 1; color: var(--text); text-decoration: none; background: var(--glass); border: 1px solid var(--glass-edge); opacity: .55; transition: opacity .2s; }
.lv-tv-exit:hover, .lv-tv-exit:focus-visible { opacity: 1; }
.lv-tv-main { grid-area: main; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: calc(var(--u) * 1.4); }
.lv-tv-stage { min-height: 0; position: relative; }
.lv-tv-slide { height: 100%; padding: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: calc(var(--u) * 2); animation: lvIn .6s var(--spring) both; }
@keyframes lvIn { from { opacity: 0; transform: translateY(calc(var(--u) * 1.6)); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lv-tv-slide { animation: none; } }
.lv-tv-sh { display: flex; align-items: baseline; gap: calc(var(--u) * 2); min-width: 0; }
.lv-tv-sh .num { font-size: calc(var(--u) * 9); color: var(--ball); text-shadow: 0 0 calc(var(--u) * 4) var(--ball-glow); }
.lv-tv-sh h2 { margin: 0; font-size: calc(var(--u) * 5); font-weight: 900; font-stretch: 80%; white-space: nowrap; }
.lv-tv-state { margin-left: auto; font-size: calc(var(--u) * 2.1); font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.lv-tv-state.ok { color: var(--ball); }
.lv-tv-courts { min-height: 0; display: grid; gap: calc(var(--u) * 2); grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); }
.lv-tv-courts .cc { min-height: 0; height: 100%; padding: calc(var(--u) * 2.4); border-radius: calc(var(--u) * 2.4); }
.lv-tv-courts .cc-tag { font-size: calc(var(--u) * 1.6); top: calc(var(--u) * 1.4); padding: .2em .9em; }
.lv-tv-courts .cc-side { gap: calc(var(--u) * 1); padding-top: calc(var(--u) * 2.4); }
.lv-tv-courts .cc-p { font-size: clamp(14px, calc(var(--u) * 7 / var(--k)), 64px); gap: .45em; }
.lv-tv-courts .cc-side.a .cc-p::before, .lv-tv-courts .cc-side.b .cc-p::after { width: .45em; height: .45em; }
.lv-tv-courts .cc-score { gap: calc(var(--u) * 1.6); padding-top: calc(var(--u) * 2.4); }
.lv-tv-courts .cc-score .num { font-size: clamp(36px, calc(var(--u) * 19 / var(--k)), 170px); }
.lv-tv-courts .cc-score .sep { height: calc(var(--u) * 12 / var(--k)); width: calc(var(--u) * .4); }
.lv-tv-courts.odd > .cc:last-child { grid-column: 1 / -1; justify-self: center; width: calc((100% - var(--u) * 2) / 2); }
.lv-tv-foot { margin: 0; font-size: calc(var(--u) * 2.6); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tv-foot b { color: var(--text); }
.lv-tv-foot.note b { color: var(--ball); }
.lv-tv-tables { min-height: 0; display: grid; gap: calc(var(--u) * 3); align-content: start; }
.lv-tv-tables.two { grid-template-columns: 1fr 1fr; }
.lv-tv-tables table.lb { font-size: clamp(14px, calc(var(--u) * 52 / var(--rows) * .42), calc(var(--u) * 4.2)); }
.lv-tv-tables table.lb { table-layout: fixed; }
.lv-tv-tables table.lb th { font-size: .5em; padding: .3em .45em; }
.lv-tv-tables table.lb :is(th, td):nth-child(1) { width: 12%; }
.lv-tv-tables table.lb :is(th, td):nth-child(3) { width: 14%; }
.lv-tv-tables table.lb :is(th, td):nth-child(7) { width: 11%; }
.lv-tv-tables table.lb :is(th, td):nth-child(4), .lv-tv-tables table.lb :is(th, td):nth-child(5), .lv-tv-tables table.lb :is(th, td):nth-child(6) { width: 8%; }
.lv-tv-tables table.lb td { padding: .28em .45em; }
.lv-tv-tables table.lb td.name { max-width: none; font-weight: 750; }
.lv-tv-tables table.lb td.pos, .lv-tv-tables table.lb td.pts { font-size: 1.45em; line-height: 1; }
.lv-tv-tables table.lb td.pts .bye { font-size: .38em; }
.lv-tv-tables table.lb td:nth-child(n+4) { color: #C9D1E6; }
.lv-tv-podium { min-height: 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: calc(var(--u) * 2.4); padding: 0 calc(var(--u) * 4); }
.lv-tv-podium .step { display: flex; flex-direction: column; align-items: stretch; text-align: center; min-width: 0; }
.lv-tv-podium .who { font-size: calc(var(--u) * 4.4); font-weight: 900; font-stretch: 80%; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tv-podium .pts { font-size: calc(var(--u) * 2.6); color: var(--dim); font-weight: 700; margin: calc(var(--u) * .6) 0 calc(var(--u) * 1.6); font-variant-numeric: tabular-nums; }
.lv-tv-podium .block { display: grid; place-items: center; border-radius: calc(var(--u) * 2) calc(var(--u) * 2) calc(var(--u) * .6) calc(var(--u) * .6); background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); border: 1px solid var(--glass-edge); }
.lv-tv-podium .block .num { font-size: calc(var(--u) * 12); }
.lv-tv-podium .s1 .block { height: calc(var(--u) * 40); border-color: rgba(217,255,63,.55); box-shadow: 0 0 calc(var(--u) * 8) calc(var(--u) * -1) var(--ball-glow); }
.lv-tv-podium .s1 .block .num, .lv-tv-podium .s1 .who { color: var(--ball); }
.lv-tv-podium .s1 .who { font-size: calc(var(--u) * 5.6); }
.lv-tv-podium .s2 .block { height: calc(var(--u) * 30); }
.lv-tv-podium .s3 .block { height: calc(var(--u) * 22); }
.lv-tv-dots { display: flex; gap: calc(var(--u) * 1); justify-content: center; min-height: calc(var(--u) * 1); }
.lv-tv-dots i { width: calc(var(--u) * 1); height: calc(var(--u) * 1); border-radius: 999px; background: rgba(255,255,255,.22); }
.lv-tv-dots i.on { background: var(--ball); width: calc(var(--u) * 3); }
.lv-tv-side { grid-area: side; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: calc(var(--u) * 1.2); padding: calc(var(--u) * 3); border-radius: calc(var(--u) * 3); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid var(--glass-edge); }
.lv-tv-qr { width: 100%; max-width: calc(var(--u) * 36); aspect-ratio: 1; border-radius: calc(var(--u) * 2); overflow: hidden; background: #fff; padding: calc(var(--u) * 1); box-shadow: 0 0 0 calc(var(--u) * .5) rgba(217,255,63,.5), 0 calc(var(--u) * 3) calc(var(--u) * 8) calc(var(--u) * -3) rgba(0,0,0,.7); }
.lv-tv-qr svg { display: block; width: 100%; height: 100%; }
.lv-tv-follow { margin-top: calc(var(--u) * 1.6); font-size: calc(var(--u) * 3.2); font-weight: 900; font-stretch: 80%; line-height: 1.1; }
.lv-tv-scan { font-size: calc(var(--u) * 2); color: var(--dim); }
.lv-tv-url { font-size: calc(var(--u) * 1.8); font-weight: 650; color: #C9D1E6; overflow-wrap: anywhere; padding: .35em .9em; border-radius: calc(var(--u) * 2); background: rgba(7,11,22,.5); border: 1px solid var(--glass-edge); }
.lv-tv-brand { margin-top: auto; display: flex; align-items: center; gap: .5em; font-size: calc(var(--u) * 2.2); font-weight: 900; letter-spacing: .04em; color: var(--text); }
.lv-tv-brand img { width: 1.4em; height: 1.4em; border-radius: .3em; }
.lv-tv-brand b { color: var(--ball); font-weight: 900; }
.lv-tv-msg { place-content: center; text-align: center; grid-template-rows: auto auto; }
.lv-tv-msg h2 { font-size: calc(var(--u) * 5); margin: 0; }
.lv-tv-msg p { font-size: calc(var(--u) * 2.6); color: var(--dim); }
@media (orientation: portrait) {
  .lv-tv { --u: min(.62vh, 1vw); }
  .lv-tv-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head" "main" "side"; }
  .lv-tv-side { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: auto; align-content: center; justify-items: start; text-align: left; gap: calc(var(--u) * 1) calc(var(--u) * 3.6); padding: calc(var(--u) * 2.4); }
  .lv-tv-qr { grid-row: 1 / span 4; width: calc(var(--u) * 24); }
  .lv-tv-follow { margin-top: 0; font-size: calc(var(--u) * 4); }
  .lv-tv-brand { margin-top: calc(var(--u) * 1); }
  .lv-tv-tables.two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lv-tv-courts { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(var(--n), minmax(0, 1fr)); --k: var(--kp); }
  .lv-tv-courts.odd > .cc:last-child { grid-column: auto; width: auto; }
  .lv-tv-tables.two table.lb + table.lb thead { display: none; }
  .lv-tv-tables table.lb { font-size: clamp(14px, calc(var(--u) * 100 / var(--n) * .42), calc(var(--u) * 4.6)); }
}
/* ---- /live ---- */
/* ---- waitlist ---- */
.waitlist { padding: clamp(18px, 3vw, 28px); max-width: 640px; }
.waitlist-wrap { margin-top: 26px; }
.wl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wl-row input[type="email"] { flex: 1 1 220px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(7,11,22,.6); color: var(--text); font: inherit; font-size: 17px; }
.wl-row input[type="email"]:focus { outline: none; border-color: var(--ball); box-shadow: 0 0 0 3px rgba(217,255,63,.22); }
.wl-row .btn { min-height: 52px; flex: 0 0 auto; }
.waitlist .seg span { white-space: normal; font-size: 14px; padding: 9px 10px; }
.wl-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wl-msg { margin: 6px 0 0; font-weight: 700; min-height: 1.4em; }
.wl-msg.is-ok { color: var(--ball); }
.wl-msg.is-bad { color: #FF8A7A; }
.wl-small { margin: 8px 0 0; font-size: 13.5px; color: var(--dim); }
.wl-small a { color: inherit; text-decoration: underline; }
.waitlist.is-done .field { display: none; }
.wl-ball svg { width: 30px; height: 30px; display: block; margin-bottom: 8px; }
@media (max-width: 520px) { .wl-row .btn { width: 100%; } }
.feature:has(.wl-ball) { min-height: 0; align-content: start; justify-content: start; }
.feature:has(.wl-ball) h3 { margin-top: 4px; }
