/* 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; }
