/* ============ World Padel Paquetes Tour ============ */
:root {
  --navy-950: #06122b;
  --navy-900: #0a1a3a;
  --navy-800: #11285a;
  --court-1: #0c2f7a;
  --court-2: #1a4fc4;
  --lime: #c8f53a;
  --lime-600: #a3d10f;
  --lime-50: #f5fde0;
  --bg: #f3f5fa;
  --card: #ffffff;
  --text: #0f1a2e;
  --muted: #64708a;
  --line: #e4e8f0;
  --line-2: #eef1f6;
  --green: #11a36b;
  --green-50: #e8f8f1;
  --red: #e0443a;
  --red-50: #fdeeed;
  --amber: #f0a020;
  --gold: #f2b416;
  --silver: #a9b4c4;
  --bronze: #d08a4e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 58, .06);
  --shadow: 0 1px 2px rgba(10, 26, 58, .05), 0 8px 24px -8px rgba(10, 26, 58, .12);
  --shadow-lg: 0 20px 40px -16px rgba(10, 26, 58, .35);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--court-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.main { padding-top: 32px; padding-bottom: 56px; min-height: 55vh; }
.muted { color: var(--muted); }
.center { text-align: center; }
h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 6px; }
h2 { font-size: 1.3rem; font-weight: 800; margin: 0; }
h3 { font-size: 1.05rem; font-weight: 700; }

/* ---------- Pelota ---------- */
.ball {
  --s: 30px;
  width: var(--s); height: var(--s); flex: none; border-radius: 50%; position: relative; overflow: hidden;
  background: radial-gradient(circle at 32% 30%, #ecff9e, var(--lime) 45%, var(--lime-600));
  box-shadow: inset -3px -4px 6px rgba(0, 0, 0, .12), 0 2px 8px rgba(200, 245, 58, .35);
}
.ball::before, .ball::after {
  content: ""; position: absolute; width: 100%; height: 100%; border: calc(var(--s) * .07) solid rgba(255, 255, 255, .9); border-radius: 50%;
}
.ball::before { left: -62%; }
.ball::after { right: -62%; }
.ball-sm { --s: 18px; }
.ball-lg { --s: 64px; margin: 0 auto 14px; display: block; }

/* ---------- Cabecera ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 26, 58, .92); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-top { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: rgba(255, 255, 255, .65); font-weight: 600; }
.brand-text strong { font-size: 1.12rem; font-weight: 800; color: var(--lime); letter-spacing: -.01em; }
.brand-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 99px; background: rgba(200, 245, 58, .15); color: var(--lime); border: 1px solid rgba(200, 245, 58, .3); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav form { margin: 0; }
.nav a, .nav .nav-link {
  color: rgba(255, 255, 255, .82); text-decoration: none; padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: .92rem;
  background: none; border: 0; font-family: inherit; cursor: pointer; transition: background .15s, color .15s;
}
.nav a:hover, .nav .nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .12); color: #fff; }
.nav .nav-muted { color: rgba(255, 255, 255, .6); }
.nav .nav-cta { background: var(--lime); color: var(--navy-900); margin-left: 6px; }
.nav .nav-cta:hover { background: #d8ff5a; color: var(--navy-900); }

/* ---------- Pista (fondo) ---------- */
.court {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.28) calc(50% - 1px), rgba(255,255,255,.28) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(255,255,255,.18) calc(50% - 1px), rgba(255,255,255,.18) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent 21%, rgba(255,255,255,.18) 21%, rgba(255,255,255,.18) calc(21% + 2px), transparent calc(21% + 2px), transparent calc(79% - 2px), rgba(255,255,255,.18) calc(79% - 2px), rgba(255,255,255,.18) 79%, transparent 79%),
    radial-gradient(circle at 88% 12%, rgba(200,245,58,.28), transparent 38%),
    radial-gradient(circle at 5% 100%, rgba(80,140,255,.35), transparent 45%),
    linear-gradient(135deg, var(--court-1), var(--court-2));
}
.court::after { /* red/cristal sutil */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,18,43,.25), transparent 35%, transparent 70%, rgba(6,18,43,.35));
}

/* ---------- Hero ---------- */
.hero { padding: 54px 0 64px; }
.hero-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero-text { max-width: 640px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 10px 0 10px; text-shadow: 0 2px 20px rgba(0, 0, 0, .2); }
.hero-sub { margin: 0; font-size: 1.08rem; color: rgba(255, 255, 255, .85); }
.kicker { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-900); background: var(--lime); padding: 5px 12px; border-radius: 99px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chip { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.hero-actions { margin-top: 20px; }
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stat {
  min-width: 118px; padding: 16px 18px; border-radius: var(--radius); text-align: left;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px);
}
.hero-stat .n { display: block; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--lime); font-variant-numeric: tabular-nums; }
.hero-stat .l { display: block; margin-top: 6px; font-size: .82rem; color: rgba(255, 255, 255, .8); font-weight: 600; }
.hero + .main { padding-top: 0; }
.hero + .main > .tabs, .hero + .main > .section-head:first-child { margin-top: -26px; position: relative; z-index: 2; }

/* ---------- Encabezados de página / sección ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head p { margin: 0; color: var(--muted); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 36px 0 16px; }
.section-head:first-child { margin-top: 0; }
.hero + .main > .section-head:first-child {
  background: var(--card); padding: 14px 20px; border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- Tarjetas ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.card-flush { padding: 6px 8px 14px; }
.card-flush .legend { padding: 0 14px; }
.card h2 { margin-bottom: 18px; }
.empty { text-align: center; padding: 48px 24px; }
.empty h3 { margin: 0 0 6px; font-size: 1.2rem; }
.empty p { margin: 0 0 18px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); align-items: start; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* Tarjeta de liga */
.league-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.league-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.league-card-top { height: 92px; display: flex; align-items: flex-start; justify-content: space-between; padding: 14px; }
.league-card-top > * { position: relative; z-index: 1; }
.league-card-ball { --s: 34px; transition: transform .5s ease; }
.league-card:hover .league-card-ball { transform: translate(-6px, 8px) rotate(200deg); }
.league-card-body { padding: 18px 20px 20px; }
.league-card-body h3 { margin: 0 0 4px; font-size: 1.2rem; }
.league-card-go {
  position: absolute; right: 18px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--navy-900); font-weight: 800; transition: background .18s, transform .18s;
}
.league-card:hover .league-card-go { background: var(--lime); transform: translateX(3px); }
.status { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--navy-900); display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--silver); }
.status-live::before { background: var(--green); box-shadow: 0 0 0 3px rgba(17, 163, 107, .2); animation: pulse 1.6s infinite; }
.status-done::before { background: var(--gold); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(17, 163, 107, 0); } }
.progress-row { display: flex; align-items: center; gap: 10px; margin: 16px 50px 6px 0; }
.progress-row strong { font-size: .85rem; }
.progress { flex: 1; height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--lime-600), var(--lime)); }

/* Tarjetas de estadísticas (admin) */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; }
.stat-n { font-size: 1.8rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--muted); font-size: .88rem; font-weight: 600; }
.tone-blue .stat-icon { background: #e7efff; }
.tone-lime .stat-icon { background: var(--lime-50); }
.tone-green .stat-icon { background: var(--green-50); }
.tone-amber .stat-icon { background: #fff4e0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 99px;
  padding: 10px 18px; font: inherit; font-weight: 700; font-size: .93rem; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background .15s, transform .1s, box-shadow .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--navy-900); color: #fff; box-shadow: 0 4px 12px -4px rgba(10, 26, 58, .5); }
.btn-primary:hover { background: var(--navy-800); }
.btn-lime { background: var(--lime); color: var(--navy-900); box-shadow: 0 4px 14px -4px rgba(163, 209, 15, .7); }
.btn-lime:hover { background: #d8ff5a; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #cdd4e0; background: #fafbfd; }
.btn-danger { background: #fff; border-color: #f6c9c5; color: var(--red); }
.btn-danger:hover:not(:disabled) { background: var(--red-50); }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

/* ---------- Formularios ---------- */
label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field small { color: var(--muted); font-weight: 500; }
input[type=text], input[type=password], input[type=date], input[type=number], select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover { border-color: #d3d9e4; }
input:focus, select:focus { outline: none; border-color: var(--court-2); background: #fff; box-shadow: 0 0 0 4px rgba(26, 79, 196, .12); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.checklist { border: 1.5px solid var(--line); border-radius: var(--radius-sm); max-height: 340px; overflow: auto; }
.checklist label { display: flex; gap: 12px; align-items: center; font-weight: 500; padding: 10px 14px; margin: 0; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s; }
.checklist label:last-child { border-bottom: 0; }
.checklist label:hover { background: #f8fafd; }
.checklist label:has(input:checked) { background: var(--lime-50); }
.checklist input, .check-inline input { width: 18px; height: 18px; accent-color: var(--navy-900); flex: none; }
.check-inline { display: flex; gap: 10px; align-items: center; font-weight: 500; }

/* ---------- Alertas ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; border: 1px solid; font-weight: 500; }
.alert-icon { width: 22px; height: 22px; flex: none; }
.alert-icon svg { width: 100%; height: 100%; }
.alert-ok { background: var(--green-50); border-color: #b5e8d1; color: #0b7a50; }
.alert-error { background: var(--red-50); border-color: #f6c9c5; color: #b42e25; }
.alert-info { background: #eef4ff; border-color: #c9dafc; color: #1d4fb8; }
.errors { margin: 0; padding-left: 18px; }

/* ---------- Pestañas ---------- */
.tabs {
  display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 26px; background: var(--card); border-radius: 99px;
  box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 100%; overflow-x: auto;
}
.tabs a { padding: 10px 18px; border-radius: 99px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .92rem; white-space: nowrap; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--navy-900); color: #fff; }

/* ---------- Avatar / pareja ---------- */
.avatar {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: .78rem; font-weight: 800; letter-spacing: .02em; color: hsl(var(--h) 60% 28%);
  background: hsl(var(--h) 80% 92%); border: 2px solid #fff; box-shadow: 0 0 0 1px hsl(var(--h) 50% 85%);
}
.team { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.team-text { display: flex; flex-direction: column; min-width: 0; }
.team-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.team-players { font-size: .8rem; color: var(--muted); }

/* ---------- Podio ---------- */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 6px 0 26px; }
.podium-step { flex: 1; max-width: 230px; display: flex; flex-direction: column; }
.podium-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 26px 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
}
.podium-card .avatar { width: 54px; height: 54px; font-size: 1.05rem; margin-bottom: 4px; }
.podium-name { font-weight: 800; line-height: 1.25; word-break: break-word; }
.podium-pts { color: var(--muted); font-size: .9rem; }
.podium-pts strong { font-size: 1.5rem; color: var(--text); }
.podium-rec { font-size: .78rem; color: var(--muted); font-weight: 600; }
.podium-base { border-radius: 0 0 12px 12px; }
.step-1 .podium-base { height: 64px; background: linear-gradient(180deg, #ffd65a, var(--gold)); }
.step-2 .podium-base { height: 40px; background: linear-gradient(180deg, #d6dde8, var(--silver)); }
.step-3 .podium-base { height: 24px; background: linear-gradient(180deg, #eab089, var(--bronze)); }
.step-1 .podium-card { border-color: #f6dd8a; box-shadow: 0 16px 34px -14px rgba(242, 180, 22, .55); }
.medal {
  position: absolute; top: -16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .9rem; color: #fff; border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.medal-gold { background: var(--gold); }
.medal-silver { background: var(--silver); }
.medal-bronze { background: var(--bronze); }
@media (max-width: 560px) {
  .podium { gap: 8px; }
  .podium-card { padding: 22px 6px 12px; }
  .podium-card .avatar { width: 42px; height: 42px; }
  .podium-name { font-size: .85rem; }
}

/* ---------- Tablas ---------- */
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #f8fafd; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: center; width: 52px; font-variant-numeric: tabular-nums; }
.standings th.pts { color: var(--navy-900); }
.pos { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: .85rem; color: var(--muted); background: var(--line-2); }
.pos-gold { background: var(--gold); color: #fff; }
.pos-silver { background: var(--silver); color: #fff; }
.pos-bronze { background: var(--bronze); color: #fff; }
.pos-diff { color: var(--green); font-weight: 700; }
.neg-diff { color: var(--red); font-weight: 700; }
.pts-badge { display: inline-block; min-width: 40px; padding: 5px 10px; border-radius: 99px; background: var(--navy-900); color: var(--lime); font-weight: 800; }
.form { display: inline-flex; gap: 4px; }
.form-dot { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .68rem; font-weight: 800; color: #fff; }
.form-G { background: var(--green); }
.form-P { background: var(--red); }
.legend { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 720px) { .hide-sm { display: none; } }
@media (max-width: 420px) { .hide-xs { display: none; } .team-players { display: none; } }

/* ---------- Calendario ---------- */
.round-nav {
  position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 10px 12px; margin-bottom: 8px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.round-pill {
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; display: inline-grid; place-items: center;
  font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--muted); background: var(--line-2); transition: transform .12s, background .12s;
}
.round-pill:hover { transform: translateY(-2px); color: var(--text); }
.round-pill.done { background: var(--navy-900); color: #fff; }
.round-pill.next { background: var(--lime); color: var(--navy-900); box-shadow: 0 0 0 3px rgba(200, 245, 58, .35); }
.round-pill.mini { min-width: 12px; width: 12px; height: 12px; padding: 0; border-radius: 4px; vertical-align: -1px; }
.round-nav-legend { margin-left: auto; font-size: .75rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 640px) { .round-nav { top: 64px; } .round-nav-legend { display: none; } }

.leg-title { display: flex; align-items: center; gap: 12px; margin: 36px 0 14px; font-size: 1.15rem; }
.leg-title small { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--lime-50); color: #5b7a00; border: 1px solid #e3f5a8; }
.leg-title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--line), transparent); }

.round { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.round.is-next { border-color: #dcf28e; box-shadow: 0 0 0 4px rgba(200, 245, 58, .22), var(--shadow); }
.round-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.round-title { display: flex; align-items: center; gap: 12px; }
.round-title h4 { margin: 0; font-size: 1.02rem; }
.round-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--navy-900); color: var(--lime); font-size: 1.05rem; }
.round-sub { color: var(--muted); font-size: .84rem; }
.round-badge { font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: var(--line-2); color: var(--muted); }
.round-badge.complete { background: var(--green-50); color: var(--green); }
.round-badge.next { background: var(--lime); color: var(--navy-900); }

.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; padding: 16px; }
@media (max-width: 420px) { .sb-grid { grid-template-columns: 1fr; padding: 12px; } }

/* Marcador */
.sb { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.sb:hover { box-shadow: var(--shadow); }
.sb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.sb-row + .sb-row { border-top: 1px dashed var(--line); }
.sb-row .avatar { width: 32px; height: 32px; font-size: .72rem; }
.sb-row.win { background: linear-gradient(90deg, var(--lime-50), #fff 70%); }
.sb-row.win .team-name { color: var(--navy-900); }
.sb-row.lose .team-name { color: var(--muted); font-weight: 600; }
.sb-sets { display: flex; gap: 4px; align-items: center; flex: none; }
.sb-set {
  width: 30px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums;
  background: var(--line-2); color: var(--muted);
}
.sb-set.won { background: var(--navy-900); color: var(--lime); }
.sb-check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: .72rem; font-weight: 800; margin-left: 4px; }
.sb-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; background: #f9fafc; border-top: 1px solid var(--line-2); font-size: .8rem; color: var(--muted); font-weight: 600; min-height: 44px; }
.sb-state { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.dot-ok { background: var(--green); }
.resting { margin: 0; padding: 12px 18px; font-size: .86rem; color: var(--muted); background: #fbfcfe; border-top: 1px dashed var(--line); }
.resting strong { color: var(--text); }

/* ---------- Resultado de partido ---------- */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; text-align: center; margin-bottom: 22px; }
.versus .team { flex-direction: column; }
.versus .avatar { width: 56px; height: 56px; font-size: 1.05rem; }
.versus small { display: block; margin-top: 6px; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 700; }
.versus .vs { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--navy-900); color: var(--lime); font-size: .9rem; }
.sets-table { border-collapse: separate; border-spacing: 8px; margin: 0 auto 10px; }
.sets-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sets-table td:first-child { text-align: right; font-weight: 700; max-width: 200px; padding-right: 6px; }
.sets-table input { width: 66px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 800; padding: 6px; border-radius: 12px; }

/* ---------- Acceso ---------- */
.auth-box { max-width: 430px; margin: 24px auto; padding: 0; overflow: hidden; }
.auth-box > :not(form):not(.alert) { padding-left: 28px; padding-right: 28px; }
.auth-box h1 { padding-top: 28px; }
.auth-box form, .auth-box .alert { margin: 0 28px 28px; }
.auth-box .alert { margin-bottom: 18px; }
.auth-box::before { content: ""; display: block; height: 10px; background: linear-gradient(90deg, var(--court-1), var(--court-2), var(--lime)); }
.auth-box .btn { width: 100%; padding: 13px; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .6); font-size: .86rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 20px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .85); font-weight: 700; }

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

/* Sin flechas en los campos de juegos */
.sets-table input::-webkit-outer-spin-button, .sets-table input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sets-table input[type=number] { -moz-appearance: textfield; appearance: textfield; }
