/* Arde Baqueira Golf Cup · PWA jugadores (mobile first) */
:root {
  --navy-950: #0F1F30;
  --navy-900: #152A40;
  --navy: #2B4A6B;
  --navy-600: #3C6187;
  --steel: #A4BDCC;
  --steel-100: #E4ECF1;
  --steel-50: #F1F5F8;
  --red: #9B2C2E;
  --red-50: #FBEDED;
  --gold: #B8892B;
  /* Ryder: Seniors (equipo B) en rojo y Juniors (equipo A) en azul, como sus escudos */
  --ry-s: #1D4A96; --ry-s-50: #E6EDF8; --ry-j: #B0232E; --ry-j-50: #FBE8E9;
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --border: #E3E8ED;
  --text: #17222D;
  --muted: #6A7785;
  --ok: #217A4B; --ok-50: #E6F4EC;
  --warn: #B26B00; --warn-50: #FDF3E1;
  --bad: #B42318; --bad-50: #FDECEA;
  --radius: 16px;
  --tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
.ic { flex-shrink: 0; }
[hidden] { display: none !important; }

#app { max-width: 560px; margin: 0 auto; min-height: 100%; position: relative; background: var(--bg); }

/* ---------- Barra superior ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20; background: var(--navy-900); color: #fff;
  padding: calc(var(--safe-t) + 10px) 16px 10px; display: flex; align-items: center; gap: 12px; min-height: 56px;
}
.appbar img { width: 34px; height: 34px; border-radius: 9px; background: #fff; }
.appbar h1 { font-size: 17px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .sub { display: block; font-size: 11.5px; font-weight: 500; color: var(--steel); }
.appbar .back, .appbar .act { width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; }

.view { padding: 16px 16px calc(var(--tabbar) + var(--safe-b) + 34px); } /* 34px: deja sitio al botón Jugar grande al final */
.view.no-tabs { padding-bottom: calc(var(--safe-b) + 24px); }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; z-index: 30;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8693A0; font-size: 11px; font-weight: 600; }
.tabbar a.on { color: var(--navy); }
/* Jugar: botón rojo más grande que el resto, sobresaliendo de la barra */
.tabbar a.tab-play { color: var(--red); font-weight: 700; }
.tabbar a.tab-play span.f { width: 50px; height: 50px; margin: -26px 0 1px; border-radius: 16px; background: var(--red); color: #fff; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(155,44,46,.4); }
.tabbar a.tab-play.on { font-weight: 800; }
.tabbar a.tab-play.on span.f { box-shadow: 0 0 0 3px rgba(155,44,46,.2), 0 6px 16px rgba(155,44,46,.4); }
/* Integrado en la barra cuando debajo hay contenido (ver playFit en app.js): mismo tamaño que el resto, con su fondo rojo */
.tabbar a.tab-play span.f { transition: width .18s ease, height .18s ease, margin .18s ease, border-radius .18s ease, box-shadow .18s ease, border-width .18s ease; }
.tabbar a.tab-play span.f svg { transition: width .18s ease, height .18s ease; }
.tabbar a.tab-play.flat span.f { width: 44px; height: 27px; margin: 0; border-radius: 9px; border-width: 0; box-shadow: 0 2px 6px rgba(155,44,46,.28); }
.tabbar a.tab-play.flat span.f svg { width: 19px; height: 19px; }
.tabbar a.tab-play.flat.on span.f { box-shadow: 0 0 0 3px rgba(155,44,46,.18), 0 2px 6px rgba(155,44,46,.28); }
@media (prefers-reduced-motion: reduce) { .tabbar a.tab-play span.f, .tabbar a.tab-play span.f svg { transition: none; } }


/* ---------- Tarjetas/cajas ---------- */
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; }
.box-head h2 { font-size: 15px; font-weight: 700; }
.box-head a, .box-head .muted { font-size: 13px; font-weight: 600; }
.box-body { padding: 0 16px 16px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin: 22px 4px 8px; }

.hero {
  border-radius: 20px; padding: 18px; color: #fff; margin-bottom: 14px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2B4A6B 0%, #152A40 70%);
}
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(164,189,204,.25), transparent 70%); }
.hero .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.hero .label { font-size: 12px; color: var(--steel); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hero .pos { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.hero .pos small { font-size: 16px; font-weight: 600; color: var(--steel); margin-left: 4px; }
.hero .score { text-align: right; }
.hero .score b { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; }
.hero .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; position: relative; z-index: 1; }
.hero .chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 99px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; }
.progress { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.progress .lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--steel); font-weight: 600; margin-bottom: 6px; }
.progress .lbl b { color: #fff; }
.meter { height: 6px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.meter.done i { background: #6FD39B; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* ---------- Listas ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li, .rows > a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); color: inherit; }
.rows > :first-child { border-top: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rows .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .rank-avg { font-weight: 500; color: #4A5663; }
.rows .rank-avg b { font-weight: 700; color: var(--text); }
.rows .end { text-align: right; flex-shrink: 0; }
.rows .end b { display: block; font-size: 18px; font-weight: 800; }
.rows .end small { font-size: 11.5px; color: var(--muted); }
.rows > .me { background: #F4F8FB; box-shadow: inset 3px 0 0 var(--red); }
.rows > .dim { opacity: .62; }

.badge-pos { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--steel-50); color: var(--navy); flex-shrink: 0; }
.badge-pos.p1 { background: #F5E6B8; color: #7A5A0C; } .badge-pos.p2 { background: #E3E7EB; color: #45505C; } .badge-pos.p3 { background: #F2DCCB; color: #7C4520; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--steel-100); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.pts-badge { min-width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--steel-50); color: var(--navy); flex-shrink: 0; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--ok-50); color: var(--ok); }
.pill-warn { background: var(--warn-50); color: var(--warn); }
.pill-bad { background: var(--bad-50); color: var(--bad); }
.pill-muted { background: var(--steel-50); color: var(--muted); }
.pill-gold { background: #F7ECD2; color: #7A5A0C; }
.pill-red { background: var(--red); color: #fff; }
.tee-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid #9AA5B1; vertical-align: -1px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 13px; border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-soft { background: var(--steel-50); color: var(--navy); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-ok { background: var(--ok-50); color: var(--ok); }
.btn-bad { background: var(--bad-50); color: var(--bad); }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

/* ---------- Formularios ---------- */
.field { margin-bottom: 14px; }
.field > label, .label { display: block; font-size: 13px; font-weight: 700; color: #34414E; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input, select.input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 13px; border: 1px solid #D3DBE3; background: #fff; font: inherit; font-size: 16px; color: var(--text); appearance: none; -webkit-appearance: none;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A7785' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,74,107,.14); }
.seg { display: flex; background: var(--steel-50); border-radius: 13px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 42px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(16,32,48,.12); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chips button.on { border-color: var(--navy); background: #EEF3F8; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.chips button small { font-weight: 600; color: var(--muted); }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.toggle .grow { flex: 1; }
.toggle .t { font-weight: 700; }
.toggle .s { font-size: 12.5px; color: var(--muted); }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #CBD4DD; transition: .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .45; }

/* ---------- Introducción hoyo a hoyo ---------- */
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex-shrink: 0; width: 44px; border-radius: 11px; border: 1px solid var(--border); background: #fff; padding: 5px 0; cursor: pointer; text-align: center; }
.strip button small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.strip button b { display: block; font-size: 15px; font-weight: 800; }
.strip button.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.strip button.done b { color: var(--navy); }
.strip button.p0 b { color: var(--bad); }
.strip button.p3 b, .strip button.p4 b { color: var(--ok); }

.hole { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px; text-align: center; }
.hole-top { display: flex; justify-content: space-between; align-items: center; }
.hole-no { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: left; }
.hole-no b { display: block; font-size: 30px; color: var(--text); letter-spacing: -.02em; }
.hole-info { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hole-info span { background: var(--steel-50); border-radius: 9px; padding: 5px 9px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.hole-info span.recv { background: var(--red-50); color: var(--red); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 22px 0 10px; }
.stepper button { width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--steel-50); color: var(--navy); font-size: 34px; font-weight: 600; cursor: pointer; display: grid; place-items: center; }
.stepper button:active { transform: scale(.94); }
.stepper .val { font-size: 64px; font-weight: 800; width: 90px; letter-spacing: -.04em; line-height: 1; }
.stepper .val.x { color: var(--muted); font-size: 44px; }
.hole-pts { font-size: 14px; color: var(--muted); font-weight: 600; min-height: 22px; }
.hole-pts b { color: var(--text); font-size: 18px; }
.quick { display: flex; gap: 6px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.quick button { border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 7px 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.quick button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.totals { display: flex; justify-content: space-between; align-items: center; background: var(--navy-900); color: #fff; border-radius: 14px; padding: 12px 16px; margin: 12px 0; }
.totals b { font-size: 22px; }
.totals small { color: var(--steel); font-size: 12px; display: block; }

table.sc { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13px; }
table.sc th, table.sc td { text-align: center; padding: 6px 2px; border-bottom: 1px solid var(--border); }
table.sc th { font-size: 11px; color: var(--muted); font-weight: 700; }
table.sc td:first-child, table.sc th:first-child { text-align: left; padding-left: 0; }
table.sc .sum td { font-weight: 800; background: var(--steel-50); }
.sc-wrap { overflow-x: auto; }

table.st { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.st th { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 700; padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--border); }
table.st td { padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--border); }
table.st th:nth-child(2), table.st td:nth-child(2) { text-align: left; }
table.st tr.me td { background: #F4F8FB; }
table.st tr.cut td { border-bottom: 2px dashed var(--red); }
table.st tr.out td { color: var(--muted); }

.bracket-round { margin-bottom: 16px; }
.bm { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.bm .r { display: flex; justify-content: space-between; padding: 10px 14px; font-weight: 600; }
.bm .r + .r { border-top: 1px solid var(--border); }
.bm .r.w { font-weight: 800; background: var(--ok-50); color: var(--ok); }
.bm .r.me { box-shadow: inset 3px 0 0 var(--red); }
.bm .m { font-size: 12px; color: var(--muted); padding: 6px 14px; background: #F8FAFB; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }
.tbd { color: #9EA9B4; font-style: italic; font-weight: 500; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 13px; font-size: 13.5px; font-weight: 500; margin-bottom: 14px; }
.notice.info { background: var(--steel-50); color: var(--navy); }
.notice.warn { background: var(--warn-50); color: #7A4A00; }
.notice.bad { background: var(--bad-50); color: var(--bad); }
.notice.ok { background: var(--ok-50); color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; font-size: 14px; }

/* ---------- Login ---------- */
.login { position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #132C4C; isolation: isolate; }
/* Ilustración ajustada a la altura y prolongada a los lados (overflow visible) en pantallas anchas */
.login-scene { position: fixed; top: 0; left: 50%; height: 100%; width: auto; aspect-ratio: 400 / 820; min-width: 100%; transform: translateX(-50%); overflow: visible; z-index: -1; }
@media (min-aspect-ratio: 400/820) { .login-scene { min-width: 0; } }
.login-deco { position: fixed; z-index: -1; pointer-events: none; }
.login-deco.tl { top: 0; left: 0; width: min(38vw, 220px); height: min(48vh, 320px); background: linear-gradient(135deg, rgba(255,255,255,.2) 0 22%, transparent 22% 30%, rgba(159,187,208,.22) 30% 46%, transparent 46%); }
.login-deco.br { right: 0; bottom: 0; width: min(34vw, 200px); height: min(30vh, 220px); background: linear-gradient(315deg, rgba(255,255,255,.16) 0 18%, transparent 18% 26%, rgba(159,187,208,.2) 26% 42%, transparent 42%); }
.login.has-photo .login-deco { display: block; }
.login.has-photo { background: #132C4C url('../img/login-bg.jpg') center / cover no-repeat; }
.login.has-photo .login-scene { display: none; }
.login.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19,44,76,.65) 0%, rgba(19,44,76,.15) 45%, rgba(10,25,15,.35) 100%); }
.login-inner { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: calc(var(--safe-t) + 36px) 20px calc(var(--safe-b) + 36px); max-width: 440px; margin: 0 auto; }
.login-brand { text-align: center; color: #fff; }
.login-logo { width: 124px; height: 124px; margin: 0 auto 20px; padding: 10px; border-radius: 30px; background: #fff; box-shadow: 0 18px 40px rgba(8,22,40,.35), 0 0 0 1px rgba(255,255,255,.6) inset; }
.login-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.login-brand h1 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(8,22,40,.45); }
.login-year { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0 0; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.login-year::before, .login-year::after { content: ""; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7)); }
.login-year::after { transform: scaleX(-1); }
.login-card { background: rgba(247,249,252,.93); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid rgba(255,255,255,.7); border-radius: 28px; padding: 26px 22px 20px; box-shadow: 0 24px 60px rgba(8,22,40,.35); }
.login-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #1E3A5F; margin: 0 4px 8px; }
.login-input { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 18px; margin-bottom: 18px; border-radius: 999px; background: #EDF1F6; border: 1px solid #D9E1EA; color: #5B6B7C; transition: border-color .15s, box-shadow .15s, background .15s; }
.login-input:focus-within { background: #fff; border-color: #0E3A70; box-shadow: 0 0 0 4px rgba(14,58,112,.12); color: #0E3A70; }
.login-input input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); outline: none; }
.login-input input::placeholder { color: #9AA6B2; }
.login-eye { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: #5B6B7C; display: grid; place-items: center; cursor: pointer; }
.login-eye:hover { background: rgba(14,58,112,.08); color: #0E3A70; }
.login-btn { width: 100%; height: 58px; margin-top: 6px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #154A8A 0%, #0E3A70 100%); color: #fff; font: inherit; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: 0 10px 24px rgba(14,58,112,.35); transition: transform .1s, box-shadow .15s; }
.login-btn:hover { box-shadow: 0 12px 28px rgba(14,58,112,.45); }
.login-btn:active { transform: scale(.985); }
.login-btn .ic { transition: transform .2s; }
.login-btn:hover .ic { transform: translateX(3px); }
.login-btn:disabled { opacity: .75; cursor: default; }
.login-btn.loading .ic { display: none; }
.login-btn.loading::after { content: ""; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.login-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 2px; color: #5B6B7C; font-size: 13px; text-align: left; }
.login-hint .ic { color: #7B8A99; }
.login-error { display: flex; gap: 8px; align-items: center; padding: 11px 14px; margin: -4px 0 14px; border-radius: 14px; background: var(--bad-50); color: var(--bad); font-size: 13.5px; font-weight: 600; }
@media (max-height: 640px) { .login-logo { width: 92px; height: 92px; border-radius: 24px; } .login-inner { gap: 20px; } .login-brand h1 { font-size: 23px; } }

/* ---------- Varios ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 16px); transform: translate(-50%, 20px); opacity: 0; transition: .2s; z-index: 60; background: var(--navy-950); color: #fff; padding: 12px 18px; border-radius: 13px; font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--steel-100); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, #E9EEF2 0%, #F4F7F9 50%, #E9EEF2 100%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 14px; }
@keyframes sh { to { background-position: -200% 0; } }
.offline-bar { background: var(--warn); color: #fff; text-align: center; font-size: 12.5px; font-weight: 700; padding: 6px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(15,31,48,.5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); max-height: 85vh; overflow-y: auto; }
.sheet h3 { font-size: 17px; margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.kv:first-child { border-top: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; }
.muted { color: var(--muted); }
.mt { margin-top: 14px; }
.center { text-align: center; }
.sticky-foot { position: sticky; bottom: calc(var(--safe-b) + 10px); margin-top: 16px; }
/* Con el menú inferior visible, los botones fijos quedan justo encima de él */
.view:not(.no-tabs) .sticky-foot { bottom: calc(var(--tabbar) + var(--safe-b) + 10px); }
.hole-no .leg { display: block; font-size: 11.5px; color: var(--red); letter-spacing: .02em; text-transform: none; margin-top: 2px; }
.strip button.gap { margin-left: 8px; }
.chips button:disabled { opacity: .4; cursor: default; }
.season-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.season-bar > span { width: 40px; height: 40px; border-radius: 12px; background: var(--steel-50); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.season-bar select.input { height: 44px; font-weight: 700; }

/* Fotos de perfil */
.avatar { overflow: hidden; }
.avatar.has-photo { background: var(--steel-100); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rows .avatar + .grow, .badge-pos + .avatar { margin-left: -2px; }
.st-who { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.hero-who { display: flex; align-items: center; gap: 14px; }
.hero-avatar { border: 2px solid rgba(255,255,255,.7); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.photo-edit { position: relative; flex-shrink: 0; }
.photo-edit.busy .avatar { opacity: .5; }
.photo-edit.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border: 3px solid var(--steel-100); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
.photo-btn { position: absolute; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.photo-btn.edit { right: -4px; bottom: -4px; background: var(--navy); color: #fff; }
.photo-btn.edit input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-btn.remove { right: -4px; top: -4px; width: 26px; height: 26px; background: var(--bad); color: #fff; }

/* Mantenimiento */
.login-card.maint { text-align: center; }
.maint-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--warn-50); color: var(--warn); }
.login-card.maint h2 { font-size: 19px; margin-bottom: 8px; }
.login-card.maint p { margin: 0 0 18px; color: #5B6B7C; font-size: 14.5px; line-height: 1.5; }
.login-card.maint .login-hint { margin: 14px 0 0; justify-content: center; }
.rfeg { display: flex; align-items: center; gap: 14px; }
.rfeg-hcp { min-width: 72px; height: 72px; border-radius: 18px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

/* Eventos */
.rows > .ev-absent .avatar, .rows > .ev-absent .grow { opacity: .5; }
.rules ul { margin: 0; padding-left: 18px; }
.rules li { margin-bottom: 6px; }
.rules p { margin: 0 0 8px; }
.sec-title { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 20px 4px 8px; }

/* ---------- Portada ---------- */
.view.bare { padding-top: 0; padding-left: 0; padding-right: 0; }
.home-hero {
  position: relative; min-height: 230px; padding: calc(var(--safe-t) + 14px) 18px 18px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(15,31,48,.55) 0%, rgba(15,31,48,.05) 38%, rgba(15,31,48,.15) 60%, rgba(15,31,48,.82) 100%), url(../img/login-bg.jpg) center 47% / cover no-repeat, var(--navy-900);
}
.skel-hero { background: linear-gradient(180deg, var(--navy-900), var(--navy)); }
.home-top {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 25;
  display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-t) + 14px) 18px 10px;
  background: linear-gradient(180deg, rgba(15,31,48,.35), rgba(15,31,48,0)); transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.home-hero { padding-top: calc(var(--safe-t) + 118px); }
.home-top.solid { background: rgba(21,42,64,.9); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); padding-top: calc(var(--safe-t) + 8px); padding-bottom: 8px; box-shadow: 0 6px 20px rgba(15,31,48,.25); }
.home-top img, .home-top .avatar, .home-top .home-burger, .home-top b, .home-top small { transition: all .25s ease; }
.home-top.solid .home-brand img { width: 36px; height: 36px; border-radius: 10px; }
.home-top.solid .home-brand b { font-size: 15px; }
.home-top.solid .home-brand small { font-size: 10px; }
.home-top.solid .avatar { width: 34px !important; height: 34px !important; font-size: 12px !important; border-width: 2px; }
.home-top.solid .home-burger { width: 36px; height: 36px; background: rgba(255,255,255,.12); }
.home-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.home-brand img { width: 46px; height: 46px; border-radius: 12px; background: #fff; padding: 2px; object-fit: contain; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.home-brand b { display: block; white-space: nowrap; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; }
.home-brand small { display: block; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; opacity: .85; }
/* Foto de perfil: grande con la etiqueta «Perfil» encima; al hacer scroll, pequeña con el texto a la izquierda */
.home-me { position: relative; display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.home-me-tag {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 1; padding: 2px 9px; border-radius: 99px;
  background: var(--red, #8f3434); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: all .25s ease;
}
.home-me .avatar { border: 3px solid rgba(255,255,255,.9); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.home-top.solid .home-me-tag { position: static; transform: none; padding: 0; background: none; box-shadow: none; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.home-hello h1 { font-size: 27px; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.home-hello p { margin: 2px 0 0; font-size: 14.5px; opacity: .95; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.home-chips { display: flex; flex-wrap: nowrap; align-items: center; gap: 5px; margin-top: 2px; padding: 8px 10px 0 0; overflow-x: auto; scrollbar-width: none; }
.home-chips::-webkit-scrollbar { display: none; }
.home-chips > * { flex: 0 0 auto; white-space: nowrap; }
/* Hándicaps a la izquierda y medallero pegado a la derecha, en la misma línea */
.home-line { display: flex; align-items: flex-end; gap: 8px; }
.home-line .home-chips { flex: 1 1 auto; min-width: 0; }
.home-line .home-badges { flex: 0 0 auto; margin: 0 0 0 auto; padding: 4px 9px 2px; border-radius: 99px; }
/* Foto de la portada: proporcional al ancho de la pantalla, hasta 85 px */
.home-top:not(.solid) .home-me .avatar { width: min(22vw, 85px) !important; height: min(22vw, 85px) !important; font-size: min(7.5vw, 29px) !important; }
.home-chips button { font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.28); padding: 3px 5px 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
button.chip { font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
/* Informe de hándicap */
.hcp-rep-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hcp-rep-head small { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.hcp-rep-head h3 { font-size: 24px; margin: 2px 0 0; }
.hcp-rep-head .act { border: 0; background: var(--steel-50); border-radius: 12px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.hcp-rep-ini { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; color: var(--muted); }
.hcp-rep-ini small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hcp-rep-ini b { font-size: 20px; color: var(--text); }
.hcp-rep-ini .pill { margin-left: auto; }
.hcp-rep-calc { background: var(--steel-50); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.hcp-rep-calc > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.hcp-rep-calc span { color: var(--muted); }
.hcp-rep-calc span small { display: block; font-size: 11.5px; }
.hcp-rep-calc .tot { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; font-size: 15px; }
.hcp-rep-calc .tot span { color: var(--text); font-weight: 700; }
.hcp-rep-calc .tot b { color: var(--red); font-size: 18px; }
.hcp-rep-note { font-size: 12.5px; margin: 0 0 12px; }
.hcp-rep-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 4px 2px 6px; font-size: 13px; }
.hcp-rep-title span { color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.hcp-key { width: 12px; height: 12px; border-radius: 3px; background: var(--red-50); border: 1px solid var(--red); display: inline-block; }
table.hcp-rep { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.hcp-rep th { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--border); }
table.hcp-rep th:nth-child(-n+2), table.hcp-rep td:nth-child(-n+2) { text-align: left; }
table.hcp-rep td { padding: 7px 4px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; white-space: nowrap; }
table.hcp-rep td:nth-child(2) { white-space: normal; width: 100%; }
table.hcp-rep td small { display: block; color: var(--muted); font-size: 11px; }
table.hcp-rep tr.on td { background: var(--red-50); }
table.hcp-rep tr.on .dif { color: var(--red); font-weight: 800; }
.hcp-rep-legend { font-size: 11.5px; margin: 10px 2px 0; line-height: 1.5; }
.home-chips > span { background: rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.28); padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.home-body { padding: 14px 14px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.home-alert { margin: 0; color: inherit; }
.home-alert > span { flex: 1; }

.tiles-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; overflow: hidden; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 150px; padding: 16px; border-radius: 18px; color: #fff;
  background: linear-gradient(150deg, var(--navy-600), var(--navy-900)); box-shadow: 0 6px 18px rgba(21,42,64,.18); isolation: isolate; transition: transform .15s ease;
}
.tile:active { transform: scale(.98); }
.tile h3 { font-size: 19px; font-weight: 800; line-height: 1.15; }
.tile p { margin: 0; font-size: 13px; line-height: 1.4; opacity: .92; max-width: 32ch; }
.tile-ic { margin-bottom: 6px; opacity: .95; }
.tile-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid rgba(255,255,255,.85); border-radius: 99px; font-size: 13px; font-weight: 700; background: rgba(15,31,48,.15); }
.tile-arrow { margin-top: auto; align-self: flex-end; opacity: .9; }
.tile-tag { position: absolute; top: 14px; right: 14px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
/* Destacado (evento o mi temporada): cielo del atardecer */
.tile-feature { min-height: 190px; padding: 20px; }
.tile-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(21,42,64,.96) 0%, rgba(43,74,107,.8) 48%, rgba(43,74,107,.1) 100%), url(../img/login-bg.jpg) 100% 42% / 210% auto no-repeat; }
.tile-feature h3 { font-size: 25px; }
.tile-feature p { font-size: 14px; margin-bottom: 12px; }
/* Fotos: la bandera del green y la bola */
.tile-photo { min-height: 215px; }
.tile-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.tile-ranking::before { background: linear-gradient(180deg, rgba(21,42,64,.88) 0%, rgba(21,42,64,.55) 50%, rgba(21,42,64,.92) 100%), url(../img/login-bg.jpg) 92% 52% / 330% auto no-repeat; }
.tile-match::before { background: linear-gradient(180deg, rgba(17,60,40,.9) 0%, rgba(17,60,40,.45) 50%, rgba(10,40,26,.92) 100%), url(../img/login-bg.jpg) 0% 93% / 300% auto no-repeat; }
.tile-sm { min-height: 120px; padding: 14px; }
.tile-sm h3 { font-size: 16px; }
.tile-sm p { font-size: 12.5px; }
.tile-dark { background: linear-gradient(150deg, var(--navy), var(--navy-950)); }
.tile-light { background: linear-gradient(150deg, #FFFFFF, var(--steel-50)); color: var(--navy-900); border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(21,42,64,.06); }
.tile-light p { color: var(--muted); opacity: 1; }
.tile-light .tile-ic, .tile-light .tile-arrow { color: var(--navy); }
.tile-sm::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 86px; height: 86px; border-radius: 22px; background: currentColor; opacity: .06; transform: rotate(-12deg); z-index: -1; }
@media (max-width: 360px) { .tiles-2 { grid-template-columns: 1fr; } }

/* ---------- Calendario ---------- */
.cal .cal-date { width: 46px; height: 50px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; align-content: center; line-height: 1; flex-shrink: 0; }
.cal .cal-date b { font-size: 19px; font-weight: 800; }
.cal .cal-date small { font-size: 11px; text-transform: uppercase; margin-top: 3px; opacity: .85; }
.cal .cal-date.past { background: var(--steel-100); color: var(--muted); }
.cal .dim .t { color: var(--muted); }
.cal .s::first-letter { text-transform: uppercase; }
.tile-cta { white-space: nowrap; max-width: 100%; }
.cal .t, .cal .s { white-space: normal; }

/* ---------- Menú lateral ---------- */
.home-actions { display: flex; align-items: center; gap: 8px; }
.home-top:not(.solid) { padding-left: 16px; padding-right: 16px; }
.home-burger { width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(15,31,48,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; cursor: pointer; }
.menu-bg { position: fixed; inset: 0; z-index: 60; background: rgba(15,31,48,0); transition: background .22s ease; }
.menu-bg.show { background: rgba(15,31,48,.5); }
.menu {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; display: flex; flex-direction: column;
  padding-top: var(--safe-t); padding-bottom: var(--safe-b); box-shadow: -12px 0 32px rgba(15,31,48,.25); transform: translateX(100%); transition: transform .22s ease;
}
.menu-bg.show .menu { transform: none; }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px; background: linear-gradient(150deg, var(--navy), var(--navy-950)); color: #fff; }
.menu-head .grow { flex: 1; min-width: 0; }
.menu-head b { display: block; font-size: 16px; }
.menu-head small { display: block; font-size: 12.5px; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-close { width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.menu-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 18px; border: 0; background: none; color: var(--text); font-size: 15.5px; font-weight: 600; text-align: left; cursor: pointer; }
.menu-item span { flex: 1; min-width: 0; }
.menu-item small { color: var(--muted); font-size: 12px; font-weight: 500; }
.menu-item .ic { color: var(--navy); }
.menu-item:active { background: var(--steel-50); }
.menu-item.on { color: var(--red); background: var(--red-50); box-shadow: inset 3px 0 0 var(--red); }
.menu-group > .menu-item > .ic:last-child { color: var(--muted); transition: transform .18s ease; }
.menu-group.open > .menu-item > .ic:last-child { transform: rotate(90deg); }
.menu-group > .menu-list { display: none; }
.menu-group.open > .menu-list { display: block; }
.menu-list.lv1 .menu-item { padding: 10px 18px 10px 52px; font-size: 14.5px; font-weight: 500; }
.menu-list.lv2 .menu-item { padding-left: 68px; font-size: 14px; }
.menu-logout { border-top: 1px solid var(--border); color: var(--bad); }
.menu-logout .ic { color: var(--bad); }

/* Barra inferior: Inicio · Pool · JUGAR · Match · Live (el perfil está en el avatar y en el menú) */
.tabbar.tabbar-main { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Live */
.live .live-day { padding: 8px 16px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--steel-50); border-top: 1px solid var(--border); }
.live .t b { font-weight: 700; }
.live .t b.win { color: var(--ok); }

/* ---------- Palmarés ---------- */
.badges { display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; vertical-align: middle; }
.badge-h { position: relative; display: inline-flex; line-height: 0; cursor: default; }
.badge-h[role="button"] { cursor: pointer; }
.badge-h svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.badge-h b { position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--navy-900); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; display: grid; place-items: center; border: 1.5px solid #fff; }
.rows .t .badges { gap: 6px; margin-left: 4px; }
.rows .t .badge-h b { min-width: 14px; height: 14px; font-size: 9px; top: -6px; right: -7px; }
.home-badges, .hero-badges { margin-top: 10px; display: inline-flex; padding: 7px 12px 6px; border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.hero-badges { position: relative; z-index: 1; }
.honour-sheet { text-align: center; }
.honour-sheet h3 { margin: 8px 0 2px; }
.honour-years { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.honour-years span { background: var(--steel-50); border: 1px solid var(--border); border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: 13px; }
.honour-title { display: flex; align-items: center; gap: 8px; }
.honour-year { width: 52px; font-weight: 800; color: var(--navy); font-size: 16px; }
.honour-list .t span.me, .honour-list .s span.me { color: var(--red); }
.honour-list .s { white-space: normal; }

/* ---------- Jugar: elegir Pool o Match ---------- */
.play-hero { min-height: 220px; }
.play-tile { min-height: 230px; padding: 20px; }
.play-tile h3 { font-size: 30px; letter-spacing: -.02em; text-transform: uppercase; }
.play-tile p { font-size: 14px; max-width: 30ch; }
.play-sub { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.play-badge { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.95); display: grid; place-items: center; margin-bottom: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.play-meta { margin-top: 8px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); padding: 3px 10px; border-radius: 99px; }
.play-tile .tile-cta { margin-top: 14px; background: #fff; color: var(--navy-900); border-color: #fff; }
.tile-match.play-tile .tile-cta { color: #0F3D27; }

/* Portada: accesos rápidos a jugar, Sotogrande y Ryder */
.play-quick { min-height: 150px; padding: 14px; }
.play-quick .play-badge { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 6px; }
.play-quick small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.play-quick h3 { font-size: 24px; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; }
.play-quick p { font-size: 12.5px; }
.play-quick .tile-tag { top: 12px; right: 12px; font-size: 10.5px; padding: 2px 8px; }
.tile-soto { background: linear-gradient(150deg, #4E8A35, #1F4D22); }
.tile-ryder { background: linear-gradient(150deg, #2B4A6B, #0F1F30); }
.tile-soto .tile-ic, .tile-ryder .tile-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.95); display: grid; place-items: center; }
.tile-sm .tile-tag { top: 12px; right: 12px; font-size: 10.5px; padding: 2px 8px; }
.tile-season { min-height: 160px; }
.tile-season::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(21,42,64,.96) 0%, rgba(43,74,107,.8) 48%, rgba(43,74,107,.1) 100%), url(../img/login-bg.jpg) 100% 42% / 210% auto no-repeat; }

/* ---------- Jugar Pool: asistente de partida ---------- */
.wiz-steps { display: flex; align-items: flex-start; justify-content: center; gap: 4px; margin: 0 -4px 18px; }
.wiz-step { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px; cursor: pointer; color: var(--muted); }
.wiz-step:disabled { cursor: default; opacity: .55; }
.wiz-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; border: 2px solid var(--border); background: #fff; color: var(--muted); }
.wiz-step.cur .wiz-dot { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 4px rgba(155,44,46,.15); }
.wiz-step.ok .wiz-dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.wiz-step small { font-size: 12px; font-weight: 700; }
.wiz-step.cur small { color: var(--red); }
.wiz-line { flex: 1; max-width: 46px; height: 2px; background: var(--border); margin-top: 19px; }
.wiz-q { font-size: 19px; text-align: center; margin: 4px 0 16px; }
.wiz-sub { font-size: 16px; margin: 18px 0 8px; }
.num-pick { display: flex; justify-content: center; gap: 16px; margin-bottom: 18px; }
.num-pick button { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #C6CED6; background: #fff; font-size: 24px; font-weight: 700; color: var(--muted); cursor: pointer; }
.num-pick button.on { border-color: var(--red); background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(155,44,46,.3); }
.num-pick button:disabled { opacity: .35; cursor: default; }
.holder { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--steel-50); border: 1px solid var(--border); margin-bottom: 12px; }
.holder small { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.holder b { display: block; font-size: 18px; }
.holder .slot { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.player-pick .seg { margin-top: 8px; }
.seg-sm button { height: 36px; font-size: 12.5px; }
.seg button:disabled { opacity: .4; cursor: default; }
.kind-list { display: grid; gap: 8px; }
.kind { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.kind b { display: block; font-size: 14.5px; }
.kind small { display: block; color: var(--muted); font-size: 12.5px; }
.kind .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #C6CED6; flex-shrink: 0; }
.kind.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #F4F8FB; }
.kind.on .radio { border: 6px solid var(--navy); }
.kind:disabled { opacity: .45; cursor: default; }
.opt-official { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: #fff; margin-bottom: 14px; }
.opt-official .s { font-size: 12.5px; color: var(--muted); }
.marker-pick { width: auto; max-width: 150px; height: 40px; padding: 0 10px; }
.field label .ic { vertical-align: -3px; margin-right: 2px; }
.holder .grow { flex: 1; min-width: 0; }
.course-find { margin-bottom: 8px; }
.fmt-card .box-body { padding-top: 14px; }
.fmt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.fmt-head b { font-size: 16px; }
.fmt-marker { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.fmt-marker span { font-weight: 700; font-size: 13.5px; color: var(--muted); }
.hcp-list .hcp-formula { color: #8A96A3; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.fmt-tees { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.fmt-tees > span { font-weight: 700; font-size: 13.5px; color: var(--muted); }
.fmt-tees .chips button { padding: 7px 11px; font-size: 13px; }
.hcp-list .s { white-space: normal; }

/* Selector con buscador (estilo bootstrap-select) */
.combo { position: relative; }
.combo-btn { display: flex; align-items: center; text-align: left; cursor: pointer; min-height: 50px; height: auto; padding-top: 7px; padding-bottom: 7px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A7785' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.combo-btn.empty { color: var(--muted); }
.combo-btn[aria-expanded="true"] { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,74,107,.14); }
.combo-val { min-width: 0; }
.combo-val b, .combo-val small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-val b { font-weight: 700; }
.combo-val small { font-size: 12px; color: var(--muted); }
.combo-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 34px rgba(16,32,48,.18); overflow: hidden; }
.combo-find { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--muted); }
.combo-q { flex: 1; border: 0; outline: none; font: inherit; font-size: 16px; background: transparent; color: var(--text); min-width: 0; }
.combo-list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0; }
.combo-gl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 14px 4px; }
.combo-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 14px; cursor: pointer; font: inherit; color: var(--text); }
.combo-opt b { display: block; font-size: 14.5px; }
.combo-opt small { display: block; font-size: 12px; color: var(--muted); }
.combo-opt:hover, .combo-opt.hl { background: var(--steel-50); }
.combo-opt.on { color: var(--navy); background: #EEF3F8; }
.combo-opt .ic { color: var(--navy); flex-shrink: 0; }
.combo-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 13.5px; }
.fmt-del { margin-bottom: 12px; }
.kind-wrap.on .kind-nine { margin: 8px 0 2px 46px; }
.fmt-marker.first { margin-top: 0; padding-top: 0; border-top: 0; }
.fmt-marker + .fmt-marker { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.fmt-marker > span:first-child { color: var(--text); flex: 1; }
.fmt-marker .mk-l { font-weight: 600; font-size: 12.5px; }

/* ---------- Marcador de la partida ---------- */
.notice.live { background: #E0262B; color: #fff; border-color: #E0262B; box-shadow: 0 6px 16px rgba(224,38,43,.3); }
.notice.live svg, .notice.live b { color: #fff; }
.play-continue { background: linear-gradient(150deg, var(--red), #6E1E20); min-height: 0; }
.sc-hero { position: relative; color: #fff; padding: calc(var(--safe-t) + 12px) 16px 18px;
  background: linear-gradient(180deg, rgba(15,31,48,.55), rgba(15,31,48,.85)), url(../img/login-bg.jpg) center 55% / cover no-repeat, var(--navy-900); }
.sc-top { display: flex; justify-content: space-between; }
.sc-back { width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sc-title { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.sc-title h1 { font-size: 24px; font-weight: 800; }
.sc-title p { margin: 2px 0 0; font-size: 13px; opacity: .9; }
.sc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13px; font-weight: 600; }
.sc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sc-body { padding: 14px 14px calc(var(--safe-b) + 24px); margin-top: -10px; border-radius: 18px 18px 0 0; background: var(--bg); position: relative; }
.sc-tabs { margin-bottom: 12px; }
.sc-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sc-box { overflow: hidden; }
.sc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sc-table th { font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 10px 4px 8px; border-bottom: 1px solid var(--border); }
.sc-table td { text-align: center; padding: 5px 4px; border-bottom: 1px solid var(--border); font-size: 14px; position: relative; }
.sc-table tr:last-child td { border-bottom: 0; }
.sc-table .sc-hole { font-weight: 800; color: var(--navy); }
.sc-col { text-align: center; }
.sc-col .avatar { margin: 0 auto 2px; }
.sc-col span { display: block; color: var(--text); font-size: 12.5px; max-width: 92px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-col small { font-weight: 600; font-size: 10.5px; }
.sc-cell { position: relative; width: 56px; height: 40px; border-radius: 11px; border: 1.5px solid var(--border); background: #fff; font-size: 17px; font-weight: 800; color: var(--text); cursor: pointer; }
.sc-cell.empty { background: var(--steel-50); }
.sc-cell.ok { border-color: #9BD3B3; background: var(--ok-50); }
.sc-cell.wait { border-color: var(--navy-600); }
.sc-cell.diff { border-color: var(--bad); background: var(--bad-50); color: var(--bad); }
.sc-cell:disabled { opacity: .7; cursor: default; }
.sc-dots { position: absolute; top: 1px; right: 5px; font-style: normal; font-size: 10px; letter-spacing: -1px; color: var(--red); }
.sc-other { position: absolute; right: 0; bottom: 3px; font-size: 10px; color: var(--bad); font-weight: 700; }
.sc-na { color: #C2CAD3; }
.sc-legend { font-size: 11.5px; margin: -4px 4px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.sc-key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid; margin-left: 6px; }
.sc-key.ok { border-color: #9BD3B3; background: var(--ok-50); } .sc-key.wait { border-color: var(--navy-600); } .sc-key.diff { border-color: var(--bad); background: var(--bad-50); }
.sc-foot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--border); margin-bottom: 10px; }
.sc-foot b { display: block; font-size: 14.5px; }
.sc-foot small { color: var(--muted); font-size: 12.5px; }
.sc-foot.ready { border-color: #9BD3B3; background: var(--ok-50); }
.sc-foot.bad small { color: var(--bad); }
.sc-foot.done { background: var(--ok-50); border-color: #9BD3B3; color: var(--ok); }
.sc-foot.done a { font-weight: 700; }
.sc-info summary { padding: 14px 16px; font-weight: 700; cursor: pointer; }
.sc-pad-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.sc-pad-head small { color: var(--muted); font-weight: 600; }
.sc-pad-head h3 { font-size: 22px; margin: 0; }
.sc-pad-info { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sc-pad-info span { background: var(--steel-50); border-radius: 99px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.sc-pad-info .recv { background: var(--red-50); color: var(--red); }
.sc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sc-keys button { height: 58px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; font-size: 22px; font-weight: 800; cursor: pointer; display: grid; place-items: center; align-content: center; line-height: 1; }
.sc-keys button small { font-size: 10.5px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.sc-keys button.par { border-color: var(--navy); }
.sc-keys button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.sc-keys button.on small { color: rgba(255,255,255,.8); }
.sc-done { text-align: center; }
.sc-done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 4px auto 10px; }
.sc-done h3 { font-size: 20px; margin: 0; }
.sc-done .box { text-align: left; margin-top: 14px; }
.sc-sum { width: 100%; border-collapse: collapse; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sc-sum th { font-size: 12px; color: var(--muted); padding: 6px; }
.sc-sum td { padding: 10px 6px; border-top: 1px solid var(--border); }
.sc-sum tr:last-child td { background: #F1F6FB; font-weight: 800; }
.live-round .box-head { color: inherit; }
.live-round h2 { display: flex; align-items: center; gap: 6px; }

/* ---------- Live: tarjeta de un partido (sólo lectura) ---------- */
.live-round[data-act] { cursor: pointer; }
.live-round[data-act]:active { transform: scale(.995); }
.live-sheet { max-height: 92vh; }
.lc-players { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 12px; }
.lc-p { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--steel-50); }
.lc-p .grow { min-width: 0; }
.lc-p b { display: block; font-size: 14.5px; }
.lc-p small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-p .end { text-align: right; }
.lc-p .end b { font-size: 20px; }
.lc-wrap { overflow-x: auto; margin: 0 -4px; }
table.lc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.lc-table th { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; padding: 6px 4px; border-bottom: 1px solid var(--border); text-align: center; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.lc-table td { text-align: center; padding: 5px 4px; border-bottom: 1px solid var(--border); font-size: 13px; }
table.lc-table td small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.2; margin-top: 2px; }
table.lc-table td small i { font-style: normal; color: var(--red); margin-left: 2px; }
table.lc-table td.hn { font-weight: 800; color: var(--navy); }
table.lc-table td.par { color: var(--muted); }
table.lc-table td.na { color: #C3CCD5; }
table.lc-table tr.sub td { background: var(--steel-50); font-weight: 700; }
table.lc-table tr.sub td:first-child { text-transform: uppercase; font-size: 11px; color: var(--muted); }
/* Golpes respecto al par: círculo (birdie), doble círculo (eagle), cuadrado (bogey), doble cuadrado (doble bogey o más) */
.ls { display: inline-grid; place-items: center; width: 26px; height: 26px; font-weight: 800; font-size: 13.5px; line-height: 1; color: var(--text); }
.ls.eagle { border-radius: 50%; border: 1.5px solid var(--red); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--red); color: var(--red); }
.ls.birdie { border-radius: 50%; border: 1.5px solid var(--red); color: var(--red); }
.ls.bogey { border: 1.5px solid var(--navy); border-radius: 3px; }
.ls.dbogey { border: 1.5px solid var(--navy); border-radius: 3px; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--navy); }
.ls.pick { color: var(--muted); }
.lc-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 11.5px; color: var(--muted); margin: 12px 2px 0; }
.lc-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lc-legend .ls { width: 20px; height: 20px; font-size: 11px; }

/* ---------- Cargando ---------- */
.loader { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: 13.5px; padding: 6px 0 16px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--steel-100); border-top-color: var(--red); animation: spin .8s linear infinite; flex-shrink: 0; }
.spin-light { width: 16px; height: 16px; border-width: 2.5px; border-color: rgba(255,255,255,.3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
#net-busy { position: fixed; left: 50%; top: calc(var(--safe-t) + 10px); z-index: 70; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 99px;
  background: rgba(15,31,48,.9); color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: 0 6px 18px rgba(15,31,48,.25);
  opacity: 0; transform: translate(-50%, -12px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
#net-busy.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2s; } #net-busy { transition: none; } }

/* ---------- Estadísticas ---------- */
.home-chips .chip-ic { display: inline-grid; place-items: center; width: 30px; border-radius: 99px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
a.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.st-seasons { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.st-seasons .combo { flex: 1; min-width: 0; }
.st-seasons > button { flex-shrink: 0; border: 1px solid var(--border); background: #fff; border-radius: 99px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.st-seasons > button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.st-tabs { margin-bottom: 14px; }
.st-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.st-tiles.st-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.st-tile span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.st-tile b { display: block; font-size: 22px; font-weight: 700; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-two .st-tile b { font-size: 15px; white-space: normal; }
.st-tile small { display: block; font-size: 11.5px; color: var(--muted); }
.st-note { font-size: 12.5px; margin: 0 2px 10px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.ch-ax { font-size: 10px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.ch-lbl { font-size: 11px; fill: var(--text); font-weight: 700; }
.ch-tip { position: absolute; top: -6px; background: var(--navy-950); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.st-stack { display: flex; height: 18px; border-radius: 6px; overflow: hidden; gap: 2px; background: #fff; }
.st-stack span { display: block; min-width: 3px; }
.st-legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.st-legend li { display: grid; grid-template-columns: 12px 1fr auto 52px; align-items: center; gap: 8px; font-size: 13px; }
.st-legend i { width: 12px; height: 12px; border-radius: 3px; }
.st-legend b { font-variant-numeric: tabular-nums; }
.st-legend small { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.st-par { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-par > div { background: var(--steel-50); border-radius: 12px; padding: 10px; text-align: center; }
.st-par span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.st-par b { display: block; font-size: 20px; }
.st-par small { display: block; font-size: 11px; color: var(--muted); }
.hbars { display: grid; gap: 8px; }
.hb { display: grid; grid-template-columns: 96px 1fr 60px; align-items: center; gap: 8px; font-size: 13px; }
.hb-l small { display: block; font-size: 11px; color: var(--muted); }
.hb-t { height: 12px; background: var(--steel-50); border-radius: 0 4px 4px 0; }
.hb-b { display: block; height: 100%; max-width: 100%; background: var(--navy); border-radius: 0 4px 4px 0; }
.hb > b { text-align: right; font-variant-numeric: tabular-nums; }
.st-table-wrap { overflow-x: auto; }
table.st-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.st-table th { font-size: 10.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
table.st-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
table.st-table th:first-child, table.st-table td:first-child { text-align: left; padding-left: 16px; }
table.st-table td small { display: block; font-size: 11px; color: var(--muted); }
table.st-courses td:first-child { white-space: normal; min-width: 104px; }
table.st-courses th, table.st-courses td { padding-left: 4px; padding-right: 4px; }
table.st-courses td:last-child, table.st-courses th:last-child { padding-right: 16px; }

/* Clasificaciones en la portada: icono en el recuadro blanco de los botones de jugar */
.play-badge-ic { color: var(--navy); }
.tile-match .play-badge-ic { color: #0F3D27; }
.play-quick { min-height: 162px; }

/* Palmarés detallado y medallero */
.honour-mine li { gap: 12px; }
.honour-mine .honour-year, .honour-list .honour-year { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.medal-list .badges { margin-top: 4px; }
.medal-list .end b { font-size: 18px; }

/* Visor del informe */
.rep-viewer { position: fixed; inset: 0; z-index: 80; background: #1b2633; display: flex; flex-direction: column; color: #fff; }
.rep-viewer header { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-t) + 10px) 14px 10px; background: var(--navy-950); }
.rep-viewer header .act { width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.rep-viewer header b { display: block; font-size: 16px; }
.rep-viewer header small { display: block; font-size: 12px; opacity: .7; }
.rep-pages { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; -webkit-overflow-scrolling: touch; }
.rep-pages img { width: 100%; max-width: 1100px; margin: 0 auto; display: block; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.35); background: #fff; cursor: zoom-in; }
.rep-pages img.zoom { width: 260%; max-width: none; margin: 0; cursor: zoom-out; }
.rep-viewer footer { display: flex; gap: 8px; padding: 10px 14px calc(var(--safe-b) + 10px); background: var(--navy-950); }
.rep-viewer footer .btn { flex: 1; white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.rep-viewer footer .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: transparent; }

/* ---------- Match en vivo ---------- */
.match-banner { background: var(--navy-900); color: #fff; border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; text-align: center; }
.match-banner.up { background: linear-gradient(135deg, #1F5A3A, #2B6B47); }
.match-banner.down { background: linear-gradient(135deg, #6E2223, #9B2C2E); }
.match-banner .mb-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.match-banner .mb-score span { font-weight: 700; font-size: 13.5px; }
.match-banner .mb-score span:first-child { text-align: left; }
.match-banner .mb-score span:last-child { text-align: right; }
.match-banner .mb-score small { display: block; font-weight: 600; opacity: .7; font-size: 11px; }
.match-banner .mb-score b { font-size: 19px; }
.match-banner > small { display: block; opacity: .8; font-size: 12px; margin-top: 4px; }
.match-banner .mb-done { margin-top: 8px; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.match-banner .mb-done.warn { color: #FFD9A0; }
.sc-table .sc-m { text-align: center; font-size: 11px; min-width: 44px; }
.sc-table .sc-m b { display: block; font-size: 12px; }
.sc-table .sc-m small { display: block; color: var(--muted); font-size: 10.5px; }
.sc-m .win, .match-table .win { color: var(--ok); }
.sc-m .lose, .match-table .lose { color: var(--red); }
.sc-m .half { color: var(--muted); }
.match-table tr.pend td { color: #B8C2CC; }
.match-table .dot { font-style: normal; color: var(--red); font-size: 10px; margin-left: 1px; vertical-align: super; }
.live-match { padding: 0 16px 6px; font-weight: 700; color: var(--navy); font-size: 14px; }
.match-adv { margin: 10px 0 0; font-size: 14px; }
.match-adv small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
@media (max-width: 359px) { .home-top.solid .home-me-tag { display: none; } }
button.chip-link { flex: 0 0 auto; padding: 2px 3px 2px 7px; border-radius: 99px; border: 1px solid var(--border); background: var(--steel-50); color: var(--navy); font-size: 12px; font-weight: 700; }
.prof-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.prof-head .grow { flex: 1; min-width: 0; }
.prof-head h2 { margin: 0; }
/* Posición en la Pool y en el Match, a la derecha de la cabecera del perfil */
.prof-pos { display: flex; gap: 5px; flex: 0 0 auto; align-self: center; margin-right: 2px; }
.prof-pos a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 52px; height: 52px; padding: 5px; box-sizing: border-box; border-radius: 10px; background: var(--navy); color: #fff; text-decoration: none; box-shadow: 0 3px 8px rgba(21,42,64,.18); }
.prof-pos a + a { background: var(--red); box-shadow: 0 3px 8px rgba(155,44,46,.2); }
.prof-pos small { font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; line-height: 1; }
.prof-pos b { font-size: 21px; font-weight: 800; line-height: 1; }
.prof-pos i { font-style: normal; font-size: 13px; vertical-align: super; }
/* Ficha del jugador: hándicaps y palmarés reducido en la misma línea */
.hero-line { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.hero-line .chips { margin-top: 0; flex: 1 1 auto; min-width: 0; }
.hero-line .hero-badges { flex: 0 0 auto; margin: 0 0 0 auto; padding: 4px 9px 2px; border-radius: 99px; }
/* Tarjetas entregadas y computables, bien visibles */
.card-count { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 10px; }
@media (min-width: 700px) { .card-count > button { padding: 12px 16px 13px; } .cc-nums { gap: 4px 22px; } }
.card-count > button { container-type: inline-size; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; font: inherit; text-align: left; cursor: pointer; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px 11px; }
.card-count > button.done { border-color: var(--ok); }
.card-count small { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cc-nums { display: flex; gap: 14px; margin-top: 4px; }
.cc-nums span { display: flex; flex-direction: column; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.cc-nums b { font-size: 28px; font-weight: 800; line-height: 1.05; color: var(--navy-900); letter-spacing: -.02em; }
.cc-nums span + span b { color: var(--red); }
.cc-min { margin-top: auto; padding-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.card-count .done .cc-min { color: var(--ok); }
table.hcp-rep tr[data-card] { cursor: pointer; }
.pc-filters { display: flex; gap: 8px; padding: 0 14px 10px; }
.pc-filters #pc-holes { flex: 3; }
.pc-filters #pc-sort { flex: 2; }
.pc-filters .seg button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 4px; white-space: nowrap; }
/* Ranking de la Pool: descarga del informe encima de la clasificación */
.rank-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.rank-tools span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.rank-tools .btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.cc-range em { font-style: normal; display: flex; align-items: baseline; gap: 4px; font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.2; }
.cc-range i { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
/* Máx / Avg / Mín siempre en su propia línea debajo, igual en móvil y en ordenador */
.cc-nums { flex-wrap: wrap; }
.cc-nums .cc-range { flex: 1 0 100%; flex-direction: row; justify-content: space-between; gap: 8px; margin: 4px 0 0; }
@container (max-width: 230px) {
  .cc-nums { gap: 4px 10px; }
  .cc-nums span { font-size: 10.5px; }
  .cc-range em { font-size: 14px; gap: 3px; }
  .cc-range i { font-size: 9px; letter-spacing: .03em; }
}
.cc-range em.avg { color: var(--red); }
/* Pestaña Live: punto rojo parpadeando mientras haya partidos en juego */
.tabbar .tab-ic { position: relative; display: inline-flex; }
.live-dot { position: absolute; top: -2px; right: -5px; width: 10px; height: 10px; border-radius: 50%; background: #E0262B; border: 2px solid #fff; animation: live-blink 1.1s ease-in-out infinite; }
.live-dot[hidden] { display: none; }
@keyframes live-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
/* Franja de partido en curso: «Continuar partido» a la derecha */
.notice.live { align-items: center; }
.notice.live .live-go { margin-left: auto; flex: 0 0 auto; font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tile-tag.tile-tag-live { background: #E0262B; color: #fff; }
/* Clasificación del torneo individual (Sotogrande) */
.ev-board tr[data-evp] { cursor: pointer; }
.ev-board td { vertical-align: middle; line-height: 1.25; }
.vs { display: inline-block; min-width: 26px; padding: 0 4px; border-radius: 5px; font-size: 11px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.vs-under { background: var(--ok-50); color: var(--ok); }
.vs-over { background: var(--red-50); color: var(--red); }
.vs-even { background: var(--steel-50); color: #111; }
.ev-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ev-tot > div { background: var(--steel-50); border-radius: 12px; padding: 8px 10px; }
.ev-tot small { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ev-tot b { font-size: 22px; font-weight: 800; }
.ev-tot b .vs { font-size: 15px; padding: 2px 8px; }
.ev-tot span { font-size: 12px; color: var(--muted); margin-left: 3px; }
.ev-dots { display: block; color: var(--red); font-style: normal; font-size: 10px; line-height: .6; }

/* Directorio de jugadores */
.dir-find { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 0 12px; margin-bottom: 10px; color: var(--muted); }
.dir-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 44px; font: inherit; font-size: 15px; color: var(--text); }
.rows > .dir-row { align-items: flex-start; }
.dir-row .avatar { margin-top: 2px; }
.dir-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.dir-meta a { display: inline-flex; align-items: center; gap: 4px; color: var(--navy); font-weight: 700; }
.dir-meta i, .dir-err { font-style: normal; color: #9AA5B1; }
.dir-err { font-size: 11.5px; margin-top: 3px; color: #B5651D; }
.dir-hcp { flex-shrink: 0; display: grid; grid-template-columns: auto auto; gap: 2px 10px; text-align: center; align-items: end; }
.dir-hcp small { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dir-hcp b { display: block; font-size: 17px; font-weight: 800; }
.dir-ref { grid-column: 2; justify-self: center; display: inline-grid; place-items: center; width: 30px; height: 26px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--navy); cursor: pointer; }
.dir-ref:disabled { opacity: .6; }
.dir-ref.spin svg { animation: dirspin 1s linear infinite; }
@keyframes dirspin { to { transform: rotate(360deg); } }
.card-joker { margin-top: 4px; }
.card-joker .pill { white-space: normal; font-size: 11px; }
.sc-table .sc-sep td { background: var(--steel-50); color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 6px 12px; }
.sc-table .sc-na { color: #C3CBD3; background: #FAFBFC; }

/* Mis tarjetas: pestañas y matches como duelo */
.mc-tabs { margin-bottom: 14px; }
.mc-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.mc-tabs a.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(16,32,48,.12); }
.md { overflow: hidden; }
.md-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.md-head b { display: block; font-size: 14px; }
.md-head small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-head .grow { min-width: 0; }
.md-tag { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--steel-50); color: var(--navy); font-weight: 800; font-size: 12px; }
.md-body { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; padding: 12px 14px; }
.md-p { display: flex; align-items: center; gap: 8px; min-width: 0; }
.md-p:last-child { flex-direction: row-reverse; text-align: right; }
.md-p > div { min-width: 0; }
.md-p b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-p small { display: block; font-size: 11.5px; color: var(--muted); }
.md-res { position: relative; min-width: 86px; padding: 8px 12px; text-align: center; color: #fff; background: #8A96A3; border-radius: 6px; }
.md-res b { display: block; font-size: 18px; font-weight: 900; line-height: 1.1; }
.md-res small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .92; }
.md-res.win { background: #2E7D4F; }
.md-res.lose { background: #C9473F; }
.md-res.even { background: #6B7886; }
.md-res.todo { background: var(--steel-50); color: var(--muted); }
.md-res.todo b { font-size: 13px; }
.md-res.to-left { border-radius: 0 6px 6px 0; margin-left: 12px; }
.md-res.to-right { border-radius: 6px 0 0 6px; margin-right: 12px; }
.md-res.to-left::before, .md-res.to-right::after { content: ""; position: absolute; top: 0; bottom: 0; width: 13px; background: inherit; }
.md-res.to-left::before { right: 100%; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.md-res.to-right::after { left: 100%; clip-path: polygon(0 0, 100% 50%, 0 100%); }
/* Portada: acceso a Mi temporada (simulador y estadísticas), compacto debajo de Sotogrande y Ryder */
.home-cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 14.5px; font-weight: 700; box-shadow: 0 6px 16px rgba(21,42,64,.22); }
.home-cta:active { background: var(--navy-900); }
.home-cta .ic:last-child { margin-left: 2px; opacity: .85; }

/* ---------- Partido en el que apunta el titular: hoyo a hoyo / por jugador ---------- */
.sc-view { margin: -2px 0 12px; }
.sc-view button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.hv-strip { display: flex; gap: 5px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.hv-strip::-webkit-scrollbar { display: none; }
.hv-strip i { flex: 0 0 1px; background: var(--border); margin: 4px 2px; }
.hv-strip button { flex: 0 0 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; font-weight: 800; font-size: 13px; color: var(--muted); cursor: pointer; }
.hv-strip button.done { background: var(--ok-50); border-color: #9BD3B3; color: var(--ok); }
.hv-strip button.cur { background: var(--navy); border-color: var(--navy); color: #fff; }
.hv-box { overflow: hidden; }
.hv-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 10px; background: var(--steel-50); border-bottom: 1px solid var(--border); }
.hv-nav > button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.hv-nav > button:disabled { opacity: .35; cursor: default; }
.hv-title { text-align: center; line-height: 1.1; }
.hv-title small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hv-title b { display: block; font-size: 30px; font-weight: 800; color: var(--navy); }
.hv-title span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.hv-list { list-style: none; margin: 0; padding: 0; }
.hv-p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.hv-p:last-child { border-bottom: 0; }
.hv-p .grow { flex: 1; min-width: 0; }
.hv-p b { position: relative; display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 18px; }
.hv-p b .sc-dots { top: -2px; right: auto; margin-left: 4px; position: relative; }
.hv-p small { display: block; font-size: 12px; color: var(--muted); }
.hv-p.off { opacity: .5; }
.hv-step { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hv-step button { width: 42px; height: 46px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; font-size: 22px; font-weight: 700; color: var(--navy); cursor: pointer; }
.hv-step .hv-val { width: 52px; font-size: 22px; font-weight: 800; color: var(--text); background: var(--ok-50); border-color: #9BD3B3; }
.hv-step .hv-val.empty { background: var(--steel-50); border-color: var(--border); color: var(--muted); }
.hv-step button:disabled { opacity: .55; cursor: default; }
.hv-match { padding: 10px 14px; font-size: 13px; background: var(--steel-50); border-top: 1px solid var(--border); color: var(--muted); }
.hv-match b { color: var(--text); }
/* Fija arriba al bajar por la tarjeta: siempre se ve de quién es */
.pv-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 15;
  padding: calc(var(--safe-t) + 8px) 14px 10px; margin: 0 -14px; background: var(--bg); box-shadow: 0 6px 10px -8px rgba(16,32,48,.25); }
.pv-chips::-webkit-scrollbar { display: none; }
.pv-chips button { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; text-align: left; }
.pv-chips button b { display: block; font-size: 13.5px; line-height: 1.15; }
.pv-chips button small { display: block; font-size: 11px; color: var(--muted); }
.pv-chips button.on { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 4px 10px rgba(43,74,107,.3); }
.pv-chips button.on small { color: rgba(255,255,255,.8); }
.pv-chips button.on .avatar { box-shadow: 0 0 0 2px #fff; }
.pv-head { padding: 12px 14px 4px; }
.pv-head b { display: block; font-size: 15px; }
.pv-head small { color: var(--muted); font-size: 12px; }
.pv-table tr.pv-sum td { background: var(--steel-50); font-weight: 800; }
.pv-table tr.pv-sum td:first-child { text-align: left; padding-left: 14px; text-transform: uppercase; font-size: 11px; color: var(--muted); }

/* ---------- Jugar Pool: jugadores del partido (lista + ventana para añadir varios) ---------- */
.pick-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.pick-row .grow, .pick-opt .grow { flex: 1; min-width: 0; }
.pick-row b { display: block; font-size: 16px; }
.pick-row small { color: var(--muted); font-size: 12.5px; }
.pick-row .slot { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.pick-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--steel-50); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.pick-empty { width: 100%; display: flex; align-items: center; gap: 8px; padding: 16px; border-radius: 16px; border: 1.5px dashed #C6CED6; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.pick-add { margin-bottom: 14px; }
.pick-sheet { display: flex; flex-direction: column; }
.pick-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pick-top small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.pick-find { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; position: sticky; top: -18px; background: #fff; z-index: 1; }
.pick-opts { list-style: none; margin: 0; padding: 0; }
.pick-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 6px; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; cursor: pointer; }
.pick-opt b { display: block; font-size: 15px; }
.pick-opt small { color: var(--muted); font-size: 12px; }
.pick-opt:disabled { opacity: .4; cursor: default; }
.pick-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #C6CED6; display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.pick-opt.on { background: #EEF3F8; }
.pick-opt.on .pick-check { background: var(--navy); border-color: var(--navy); color: #fff; }
.pick-foot { position: sticky; bottom: calc(-18px - var(--safe-b)); background: #fff; padding: 12px 0 4px; margin-top: 4px; }

/* ---------- Marcador: estilo de tarjeta (pestaña activa rellena, filas alternas, columnas separadas) ---------- */
.sc-tabs { background: #E9EEF3; border-radius: 16px; padding: 4px; }
.sc-tabs button { border-radius: 13px; height: 44px; font-weight: 700; color: var(--navy); }
.sc-tabs button.on { background: var(--navy-900); color: #fff; box-shadow: 0 4px 12px rgba(21,42,64,.3); }
.sc-box { border-radius: 18px; box-shadow: 0 4px 16px rgba(16,32,48,.06); }
.sc-table th { font-size: 13px; color: var(--navy); font-weight: 700; padding: 12px 4px 10px; background: #fff; }
.sc-table th + th, .sc-table td + td { border-left: 1px solid var(--border); }
.sc-table tbody tr:nth-child(odd) td { background: #F6F8FB; }
.sc-table td { padding: 6px 4px; font-size: 15px; color: var(--text); }
.sc-table td.muted { color: var(--text); }
.sc-table .sc-hole { font-size: 17px; color: var(--navy-900); }
.sc-col .avatar { box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(16,32,48,.18); margin-bottom: 4px; }
.sc-col span { color: var(--navy-900); font-weight: 800; font-size: 13px; text-transform: uppercase; }
.sc-col small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.sc-cell { width: 60px; height: 42px; border-radius: 12px; font-size: 19px; box-shadow: 0 1px 2px rgba(16,32,48,.06); }
.sc-cell.ok { background: #E3F4E8; border-color: #A9DCB9; }
.sc-cell.x { background: #E8ECF2; border-color: #B9C3CF; color: var(--navy-900); }
.sc-cell.empty { background: #fff; border-style: dashed; border-color: #C9D2DB; }
.sc-dots { top: 3px; right: 6px; font-size: 13px; color: #E0262B; }
.sc-table tr.sc-sep td { background: #E9EEF3 !important; }
.pv-table tr.pv-sum td { background: #E9EEF3 !important; color: var(--navy-900); }
/* Leyenda en una caja, con los colores de las casillas */
.sc-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin: 12px 0 14px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; font-size: 12.5px; color: var(--text); box-shadow: 0 2px 8px rgba(16,32,48,.05); }
.sc-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sc-legend .sep { width: 1px; height: 18px; background: var(--border); }
.sc-legend b { font-weight: 800; color: var(--navy-900); }
.sc-key { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid; margin: 0; }
.sc-key.ok { background: #2FA05A; border-color: #2FA05A; }
.sc-key.wait { border-color: var(--navy-900); background: #fff; }
.sc-key.diff { border-color: #E0262B; background: #fff; }
.sc-key.empty { border: 2px dashed #B9C3CF; background: #fff; }
.sc-key.dot { width: 8px; height: 8px; border: 0; background: #E0262B; }

/* ---------- Match: tú en azul, el rival en rojo (estilo marcador de Ryder) ---------- */
:root { --mx-blue: #1E4FA3; --mx-red: #C8202F; --mx-blue-50: #E8EEF9; --mx-red-50: #FBE9EA; }
.match-banner.mx, .match-banner.mx.up, .match-banner.mx.down { background: #fff; color: var(--text); padding: 0; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 6px 18px -10px rgba(16,32,48,.35); }
.mx-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; min-height: 112px; }
.mx-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 12px 8px; min-width: 0; position: relative; }
.mx-side b { font-size: 14px; font-weight: 800; text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-side small { font-size: 11px; font-weight: 600; color: var(--muted); }
.mx-side .avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.mx-side.blue { --c: var(--mx-blue); }
.mx-side.red { --c: var(--mx-red); }
.mx-side.blue b { color: var(--mx-blue); }
.mx-side.red b { color: var(--mx-red); }
/* Quien gana: su lado en color, con la punta de flecha hacia el rival */
.mx-side.lead { background: var(--c); }
.mx-side.lead b, .mx-side.lead small { color: #fff; }
.mx-side.lead small { opacity: .85; }
.mx-side.lead .avatar { box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.mx-side.blue.lead { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); padding-right: 26px; }
.mx-side.red.lead { clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%); padding-left: 26px; }
.mx-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 6px; min-width: 92px; color: var(--navy-900); }
.mx-mid b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.mx-mid b i { font-style: normal; font-size: 18px; font-weight: 800; margin-left: 2px; vertical-align: top; position: relative; top: 3px; }
.mx-mid small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.mx-mid.blue b { color: var(--mx-blue); }
.mx-mid.red b { color: var(--mx-red); }
.mx-sub { margin: 0; padding: 8px 12px; font-size: 12px; color: var(--muted); text-align: center; border-top: 1px solid var(--border); background: #F8FAFC; }
.match-banner.mx .mb-done { color: var(--navy-900); margin: 0 12px 10px; }
.match-banner.mx .mb-done.warn { color: #A15C00; }
.match-banner.mx > .btn { margin: 0 12px 12px !important; width: calc(100% - 24px); }

/* Tabla hoyo a hoyo */
.mx-box { overflow: hidden; }
.mx-table { width: 100%; border-collapse: collapse; text-align: center; font-variant-numeric: tabular-nums; }
.mx-table th { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 4px; border-bottom: 1px solid var(--border); }
.mx-table th.mx-th span { display: block; max-width: 84px; margin: 3px auto 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-table th.mx-th.blue { color: var(--mx-blue); box-shadow: inset 0 -3px 0 var(--mx-blue); }
.mx-table th.mx-th.red { color: var(--mx-red); box-shadow: inset 0 -3px 0 var(--mx-red); }
.mx-table td { padding: 5px 4px; border-bottom: 1px solid #EEF1F5; font-size: 16px; }
.mx-table tbody tr:nth-child(odd) td { background: #FAFBFD; }
.mx-table td.hn { font-weight: 800; color: var(--navy-900); }
.mx-table td.par { color: var(--muted); }
.mx-table tr.pend td { color: #B8C2CC; }
.mx-s { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 34px; padding: 0 8px; border-radius: 9px; font-weight: 600; position: relative; }
.mx-s.half { background: #E9EDF2; }
.mx-s.won { color: #fff; font-weight: 800; border-radius: 0; min-width: 62px; }
.mx-s.won.blue { background: var(--mx-blue); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); padding-right: 16px; border-radius: 8px 0 0 8px; }
.mx-s.won.red { background: var(--mx-red); clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); padding-left: 16px; }
.mx-s .dot { font-style: normal; color: #9AA6B2; font-size: 10px; margin-left: 1px; vertical-align: super; position: relative; top: -4px; }
.mx-s.won .dot { color: rgba(255,255,255,.8); }
/* «Va»: flecha del color de quien va ganando */
.mx-va { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 58px; padding: 0 10px; font-size: 12.5px; font-weight: 800; color: #fff; }
.mx-va.as { background: #E9EDF2; color: var(--navy-900); border-radius: 99px; min-width: 44px; }
.mx-va.blue { background: var(--mx-blue); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); padding-right: 16px; }
.mx-va.red { background: var(--mx-red); clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); padding-left: 16px; }
.mx-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin: 0; padding: 12px 16px 6px; font-size: 12px; font-weight: 700; color: var(--navy-900); }
.mx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mx-key { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.mx-key.blue { background: var(--mx-blue); } .mx-key.red { background: var(--mx-red); } .mx-key.half { background: #E9EDF2; }

/* Match: pestañas y resultado fijos arriba al bajar; pegados se compactan */
.sc-stick { position: sticky; top: 0; z-index: 20; margin: 0 -14px; padding: 0 14px 2px; background: var(--bg); }
.sc-stick .match-banner { margin-bottom: 10px; transition: box-shadow .2s; }
.sc-stick.stuck { padding-top: calc(var(--safe-t) + 8px); box-shadow: 0 8px 12px -10px rgba(16,32,48,.35); }
.sc-stick.stuck .sc-tabs { margin-bottom: 8px; }
.sc-stick.stuck .sc-tabs button { height: 36px; }
.sc-stick.stuck .mx-score { min-height: 0; }
.sc-stick.stuck .mx-side { flex-direction: row; gap: 8px; padding: 8px 10px; }
.sc-stick.stuck .mx-side.red { flex-direction: row-reverse; }
.sc-stick.stuck .mx-side .avatar { width: 30px !important; height: 30px !important; font-size: 10px !important; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--c); }
.sc-stick.stuck .mx-side.lead .avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.sc-stick.stuck .mx-side small, .sc-stick.stuck .mx-sub { display: none; }
.sc-stick.stuck .mx-mid { padding: 4px 6px; min-width: 76px; }
.sc-stick.stuck .mx-mid b { font-size: 26px; }
.sc-stick.stuck .mx-mid b i { font-size: 13px; top: 1px; }
.sc-stick.stuck .mx-mid small { font-size: 9.5px; margin-top: 2px; }
/* Las pestañas de jugador («Por jugador») se fijan justo debajo */
.sc-body .sc-stick ~ * .pv-chips, .sc-body .sc-stick ~ .pv-chips { top: var(--stick-h, 0px); padding-top: 8px; }
/* Leyenda: las muestras no se estiran con la fila; «Sin apuntar» es un cuadradito punteado */
.sc-legend .sc-key { flex: none; align-self: center; }
.sc-legend .sc-key.empty { width: 12px; height: 12px; padding: 0; margin: 0; min-height: 0; border-radius: 3px; border: 1.5px dashed #9AA6B2; background: #fff; box-sizing: border-box; }

/* ---------- Hándicaps por campo ---------- */
.rank-hc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 12px; border-radius: 14px; background: #fff; border: 1px solid var(--border); color: var(--navy-900); box-shadow: var(--shadow, 0 1px 3px rgba(16,32,48,.06)); }
.rank-hc > .ic:first-child { color: var(--mx-blue); flex: none; }
.rank-hc b { display: block; font-size: 14.5px; }
.rank-hc small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.rank-hc .grow { flex: 1; min-width: 0; }
.hc-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 12px; margin-bottom: 8px; }
.hc-sel { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.hc-sel .avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.hc-sel.blue { --c: var(--mx-blue); } .hc-sel.red { --c: var(--mx-red); }
.hc-sel select { width: 100%; height: 40px; font-weight: 800; font-size: 13.5px; color: var(--c); border-color: var(--c); padding-left: 10px; padding-right: 30px; background-position: right 8px center; }
.hc-x { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.hc-sum { margin: 4px 4px 12px; font-size: 13.5px; color: var(--navy-900); line-height: 1.4; text-align: center; }
.hc-box { overflow: hidden; }
.hc-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hc-t th { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 10px 6px; border-bottom: 1px solid var(--border); text-align: center; }
.hc-t th:first-child { text-align: left; padding-left: 12px; }
.hc-t th.blue { color: var(--mx-blue); box-shadow: inset 0 -3px 0 var(--mx-blue); }
.hc-t th.red { color: var(--mx-red); box-shadow: inset 0 -3px 0 var(--mx-red); }
.hc-t td { padding: 7px 6px; border-bottom: 1px solid #EEF1F5; text-align: center; }
.hc-t tbody tr:nth-child(odd) td { background: #FAFBFD; }
.hc-t td.hc-c { text-align: left; padding-left: 12px; }
.hc-c b { display: block; font-size: 13px; color: var(--navy-900); line-height: 1.2; }
.hc-c small { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); margin-top: 2px; }
.hc-ph { display: inline-grid; place-items: center; min-width: 38px; height: 32px; border-radius: 9px; font-size: 17px; font-weight: 800; }
.hc-ph.blue { color: var(--mx-blue); background: var(--mx-blue-50); } .hc-ph.red { color: var(--mx-red); background: var(--mx-red-50); }
/* Scratch: el de menor hándicap de juego */
.hc-ph.scr { box-shadow: inset 0 0 0 2px currentColor; position: relative; }
.hc-ph.scr::after { content: "S"; position: absolute; top: -6px; right: -6px; width: 15px; height: 15px; border-radius: 50%; background: var(--navy-900); color: #fff; font-size: 9px; display: grid; place-items: center; }
.hc-rec small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.hc-tag { display: inline-block; padding: 4px 8px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #fff; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.hc-tag.blue { background: var(--mx-blue); } .hc-tag.red { background: var(--mx-red); } .hc-tag.as { background: #E9EDF2; color: var(--navy-900); }
.hc-note { margin: 0; padding: 10px 12px 12px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.hc-h { margin: 20px 4px 8px; font-size: 16px; color: var(--navy-900); }
/* Tabla cruzada: primera columna fija al desplazar en horizontal */
.hc-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.hc-mx { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; min-width: 100%; }
.hc-mx th, .hc-mx td { padding: 8px 9px; text-align: center; border-bottom: 1px solid #EEF1F5; white-space: nowrap; font-size: 13.5px; }
.hc-mx th { font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; max-width: 88px; overflow: hidden; text-overflow: ellipsis; background: #F6F8FB; }
.hc-mx .sticky { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; box-shadow: 1px 0 0 var(--border); }
.hc-mx th.sticky { background: #F6F8FB; z-index: 2; }
.hc-mx td.sticky b { display: block; font-size: 12.5px; color: var(--navy-900); }
.hc-mx td.sticky small { display: block; font-size: 10.5px; color: var(--muted); }
.hc-mx tbody tr { cursor: pointer; }
.hc-mx tr.is-a td { background: var(--mx-blue-50); color: var(--mx-blue); font-weight: 800; }
.hc-mx tr.is-b td { background: var(--mx-red-50); color: var(--mx-red); font-weight: 800; }
.hc-mx tr.is-a td.sticky b { color: var(--mx-blue); } .hc-mx tr.is-b td.sticky b { color: var(--mx-red); }
.hc-mx th:not(.sticky) { white-space: normal; min-width: 74px; max-width: 96px; line-height: 1.2; vertical-align: bottom; text-transform: none; font-size: 10.5px; }
/* Acceso «Hándicaps por campo» en Match: mismo estilo que el botón de Simulador / Estadísticas, en azul oscuro */
.rank-hc { background: var(--navy-900); border: 0; color: #fff; box-shadow: 0 6px 16px rgba(21,42,64,.28); }
.rank-hc:active { background: var(--navy-950, #0F1F30); }
.rank-hc > .ic:first-child { color: #fff; }
.rank-hc small { color: rgba(255,255,255,.82); }
.rank-hc > .ic:last-child { opacity: .85; }
/* Informe del hándicap: las vueltas con tarjeta se pueden abrir */
table.hcp-rep tr.link td b .ic { vertical-align: -2px; margin-left: 3px; color: var(--muted); }
table.hcp-rep tr.link:active td { background: var(--steel-100, #E4ECF1); }
.hcp-rep-tip { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 10px 2px 0; }

/* ---------- Perfil: cabecera con foto de campo y palmarés ---------- */
.pf-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 18px 14px; margin-bottom: 14px; border-radius: 20px;
  background: linear-gradient(110deg, #FFFFFF 0%, #F1F5FA 55%, #E8EFF7 100%); border: 1px solid var(--border); box-shadow: 0 8px 22px -12px rgba(16,32,48,.3); }
/* Foto de campo a la derecha, fundida con el fondo claro */
.pf-bg { position: absolute; inset: 0 0 0 38%; background: url(../img/login-bg.jpg) center 55% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 60%); }
.pf-card > :not(.pf-bg) { position: relative; }
.pf-photo { flex: none; }
.pf-photo .avatar { box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(16,32,48,.25); }
.pf-photo .photo-btn.edit { width: 32px; height: 32px; right: -2px; bottom: -2px; background: var(--navy-900); border-width: 2.5px; }
.pf-info { flex: 1; min-width: 0; }
.pf-info h2 { margin: 0; font-size: 23px; font-weight: 800; line-height: 1.05; color: var(--navy-900); text-transform: uppercase; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-full { font-size: 14px; color: #5B6878; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-hcp { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 6px 10px 6px 12px; border: 0; border-radius: 99px; background: #DCE7F3; color: var(--navy-900); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.pf-hcp:active { background: #CCDBEC; }
.pf-pos { flex: none; display: flex; gap: 6px; }
.pf-pos a { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 66px; border-radius: 12px; color: #fff; text-decoration: none;
  border: 2px solid rgba(255,255,255,.85); box-shadow: 0 6px 14px rgba(16,32,48,.3); }
.pf-pos a.pool { background: var(--navy-900); }
.pf-pos a.match { background: var(--red); }
.pf-pos small { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.pf-pos b { font-size: 25px; font-weight: 800; line-height: 1; margin-top: 4px; }
.pf-pos b i { font-style: normal; font-size: 14px; vertical-align: top; position: relative; top: 1px; }
/* Subrayado curvo bajo la posición */
.pf-pos b::after { content: ""; display: block; width: 26px; height: 6px; margin: 3px auto 0; border-bottom: 2.5px solid rgba(255,255,255,.9); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.pf-tip { font-size: 12px; margin: -6px 4px 12px; }
@media (max-width: 370px) { .pf-photo .avatar { width: 68px !important; height: 68px !important; } .pf-info h2 { font-size: 19px; } .pf-pos a { width: 48px; height: 60px; } .pf-pos b { font-size: 21px; } }

/* Palmarés del perfil */
.pf-hon .box-head a { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: var(--navy-900); }
.pf-hon .badges { gap: 18px; padding: 4px 0 2px; }
.pf-hon .badge-h b { top: -6px; right: -8px; min-width: 20px; height: 20px; font-size: 11.5px; }
.pf-hon .honour-mine li { padding: 12px 16px; gap: 14px; }
.pf-hon .honour-mine li > svg, .pf-hon .honour-mine li > .honour svg { width: 30px; height: 30px; flex: none; }
.pf-hon .honour-mine .t { font-size: 16px; font-weight: 800; color: var(--navy-900); }
.pf-hon .honour-mine .s { font-size: 13px; color: #5B6878; }
.pf-hon .honour-year { width: auto; font-size: 18px; color: var(--navy-900); }
.pf-card { gap: 10px; padding: 16px 12px; }
.pf-info h2 { font-size: 21px; }
.pf-info h2.long { font-size: 17px; }
.pf-full { font-size: 13px; }
.pf-hcp { font-size: 13px; padding: 5px 8px 5px 11px; }
.pf-pos { gap: 5px; }
.pf-pos a { width: 48px; height: 62px; }
.pf-pos b { font-size: 23px; }
.pf-pos b::after { width: 24px; height: 4px; border-bottom-width: 2.5px; }
@media (min-width: 430px) { .pf-photo .avatar { width: 88px !important; height: 88px !important; } .pf-info h2 { font-size: 26px; } .pf-pos a { width: 58px; height: 70px; } }
.pf-bg { inset: 0 0 0 46%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 25%, #000 62%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 25%, #000 62%); }
/* Botones redondos de la foto: sin el relleno propio de <button>, el icono queda centrado */
.photo-btn { padding: 0; line-height: 0; box-sizing: border-box; }
.photo-btn .ic { display: block; margin: 0; }
.photo-btn.remove { width: 28px; height: 28px; }
/* Lápiz y X de la foto del perfil: mismo tamaño */
.pf-photo .photo-btn.edit, .pf-photo .photo-btn.remove { width: 28px; height: 28px; border-width: 2px; }
.pf-photo .photo-btn.edit { right: -2px; bottom: -2px; }
.pf-photo .photo-btn.remove { right: -2px; top: -2px; }
.pf-photo .photo-btn .ic { width: 13px; height: 13px; }

/* ---------- Reglamento ---------- */
.rl-tabs { position: sticky; top: calc(var(--safe-t) + 56px); z-index: 12; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin: 0 0 14px;
  background: #E9EEF3; border-radius: 16px; box-shadow: 0 6px 12px -10px rgba(16,32,48,.4); }
.rl-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 6px 4px; border: 0; border-radius: 13px;
  background: transparent; color: var(--navy); font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.15; cursor: pointer; }
.rl-tabs button.on { background: var(--navy-900); color: #fff; box-shadow: 0 4px 12px rgba(21,42,64,.3); }
.rl-sec { padding: 16px 16px 14px; }
.rl-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; font-weight: 800; color: var(--navy-900); letter-spacing: -.01em; }
.rl-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 14px; font-weight: 800; }
.rl-body { font-size: 14.5px; line-height: 1.5; color: var(--text); }
.rl-p { margin: 0 0 10px; }
.rl-list { list-style: none; margin: 0; padding: 0; }
.rl-list > li { position: relative; padding: 9px 0 9px 18px; border-top: 1px solid #EEF1F5; }
.rl-list > li:first-child { border-top: 0; padding-top: 2px; }
.rl-list > li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--steel, #A4BDCC); }
.rl-list > li:first-child::before { top: 10px; }
/* Punto con etiqueta: la clave arriba en pequeño y el texto debajo */
.rl-list > li.kv { padding-left: 0; }
.rl-list > li.kv::before { display: none; }
.rl-k { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--red); margin-bottom: 2px; }
.rl-v b { color: var(--navy-900); }
.rl-sub { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.rl-sub li { position: relative; padding: 7px 10px 7px 30px; border-radius: 10px; background: #F4F7FA; font-size: 14px; }
.rl-sub li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
/* Fórmula o dato destacado */
.rl-note { margin: 2px 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--navy-900); color: #fff; font-weight: 700; font-size: 14.5px; line-height: 1.45; text-align: center; box-shadow: 0 6px 14px -8px rgba(21,42,64,.6); }
.rl-note b { color: #FFD27A; }
/* Premios */
.rl-prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.rl-prize { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: 14px; background: #F4F7FA; border: 1px solid var(--border); text-align: center; }
.rl-prize small { font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.rl-prize b { font-size: 18px; font-weight: 800; color: var(--navy-900); }
.rl-prize.p1 { background: #FFF6DB; border-color: #F2D27A; }
.rl-prize.p2 { background: #F1F3F6; border-color: #CDD5DE; }
.rl-prize.p3 { background: #FBEFE5; border-color: #E8C2A0; }
.rl-prize.spoon b { font-size: 13px; color: var(--muted); }
.rl-medal { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--navy); }
.rl-medal.m1 { background: linear-gradient(135deg, #F6C94A, #D9A21B); }
.rl-medal.m2 { background: linear-gradient(135deg, #C9D1DA, #9AA6B2); }
.rl-medal.m3 { background: linear-gradient(135deg, #E2A06B, #B8733F); }
.rl-medal.spoon { background: #fff; border: 1px solid var(--border); }
.rl-list > li, .rl-sub li { display: block; }
.rl-v { display: block; }

/* Portada: clasificaciones Pool y Match como botones compactos (estilo Simulador / Estadísticas) */
.rank-cta { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 10px 10px 11px; border-radius: 14px; background: var(--navy); color: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(21,42,64,.22); }
.rank-cta:active { background: var(--navy-900); }
.rank-cta .rc-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.rank-cta .rc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.rank-cta small { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.rank-cta b { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.rank-cta em { font-style: normal; font-size: 11.5px; opacity: .85; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-cta em b { font-size: inherit; text-transform: none; letter-spacing: 0; }
.rank-cta > .ic:last-child { flex: none; opacity: .7; }

/* ---------- Match: resultados de la clasificación (estilo TCL) ---------- */
.rr-list { list-style: none; margin: 0; padding: 0; }
.rr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px 8px; padding: 12px 12px 10px; border-top: 1px solid #EEF1F5; cursor: pointer; }
.rr:first-child { border-top: 0; }
.rr:active { background: #F6F8FB; }
.rr-p { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rr-p.r { flex-direction: row-reverse; text-align: right; }
.rr-p > div { min-width: 0; }
.rr-p b { display: block; font-size: 14px; font-weight: 800; color: var(--navy-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-p small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.rr-res { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; height: 44px; padding: 0 14px; color: #fff; }
.rr-res b { font-size: 19px; font-weight: 800; line-height: 1; }
.rr-res b i { font-style: normal; font-size: 12px; margin: 0 1px; }
.rr-res small { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; opacity: .9; }
/* Flecha hacia el ganador: a la izquierda si gana el azul, a la derecha si gana el rojo */
.rr-res.blue { background: var(--mx-blue); } .rr-res.red { background: var(--mx-red); }
.rr-res.to-l { clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); padding-left: 22px; }
.rr-res.to-r { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-right: 22px; }
.rr-res.as { background: #E9EDF2; color: var(--navy-900); border-radius: 10px; }
.rr-meta { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); text-align: center; }
li.tap[data-mcard] { cursor: pointer; }

/* ---------- Tarjeta de un match (estilo TCL) ---------- */
.mc-sheet { padding-top: 14px; }
.mc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mc-head h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--navy-900); }
.mc-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.mc-result { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.mc-result.halved { grid-template-columns: 1fr auto 1fr; }
.mc-side { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; min-width: 0; }
.mc-side.red { flex-direction: row-reverse; text-align: right; }
.mc-who { min-width: 0; }
.mc-who b { display: block; font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-who small { display: block; font-size: 12px; font-weight: 600; margin-top: 2px; }
.mc-side.blue .mc-who { color: var(--mx-blue); } .mc-side.red .mc-who { color: var(--mx-red); }
.mc-side.win.blue { background: var(--mx-blue); } .mc-side.win.red { background: var(--mx-red); }
.mc-side.win .mc-who { color: #fff; }
.mc-score { display: flex; flex-direction: column; align-items: center; color: #fff; flex: none; }
.mc-score b { font-size: 26px; font-weight: 800; line-height: 1; }
.mc-score b i { font-style: normal; font-size: 14px; margin: 0 1px; }
.mc-score small { font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; opacity: .9; }
.mc-score.mid { color: var(--navy-900); padding: 0 8px; justify-content: center; }
.mc-box { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.mc-t { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; text-align: center; }
.mc-t th, .mc-t td { padding: 9px 0; font-size: 13.5px; }
.mc-t th:first-child, .mc-t td:first-child { width: 64px; text-align: left; padding-left: 10px; }
.mc-t th:last-child, .mc-t td:last-child { width: 34px; }
.mc-t thead th { color: #fff; font-weight: 800; }
.mc-t.h-blue thead th { background: var(--mx-blue); } .mc-t.h-red thead th { background: var(--mx-red); } .mc-t.h-as thead th { background: var(--navy-900); }
.mc-t tbody tr + tr td { border-top: 1px solid #EEF1F5; }
.mc-t tr.par td { color: var(--muted); }
.mc-t tr.par td:first-child, .mc-t tr.cl td:first-child { color: var(--text); font-weight: 600; }
.mc-t tr.pl td:first-child { font-weight: 800; font-size: 12.5px; line-height: 1.1; word-break: break-word; }
.mc-t tr.pl.blue td { color: var(--mx-blue); } .mc-t tr.pl.red td { color: var(--mx-red); }
.mc-t tr.pl td { position: relative; font-weight: 700; }
.mc-s { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.mc-s em { font-style: normal; color: #B8C2CC; }
.mc-s.won { color: #fff; }
.mc-s.won.blue { background: var(--mx-blue); } .mc-s.won.red { background: var(--mx-red); }
.mc-dot { position: absolute; top: 2px; left: 50%; transform: translateX(-14px); font-style: normal; font-size: 9px; line-height: 1; color: var(--text); letter-spacing: -1px; }
.mc-note .mc-dot { position: static; transform: none; }
.mc-t tr.cl td { font-size: 11px; font-weight: 800; color: var(--muted); }
.mc-t td.mc-cl.blue { color: var(--mx-blue); } .mc-t td.mc-cl.red { color: var(--mx-red); }
.mc-note { font-size: 11.5px; color: var(--muted); margin: 0 2px 4px; line-height: 1.45; }
.mc-t th:first-child, .mc-t td:first-child { width: 70px; }
.mc-t tr.pl td:first-child { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
.rr { gap: 6px; padding: 12px 10px 10px; }
.rr-p { gap: 6px; }
.rr-p .avatar { width: 30px !important; height: 30px !important; font-size: 10px !important; }
.rr-p b { font-size: 13px; letter-spacing: -.01em; }
.rr-res { min-width: 68px; padding: 0 10px; }
.rr-res.to-l { padding-left: 18px; } .rr-res.to-r { padding-right: 18px; }

/* Portada: Sotogrande y Ryder más bajos (icono pequeño, flecha en la esquina) */
.tile-sm.tile-soto, .tile-sm.tile-ryder { min-height: 0; padding: 12px 12px 12px; gap: 2px; }
.tile-soto .tile-ic, .tile-ryder .tile-ic { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 4px; }
.tile-soto .tile-ic svg, .tile-ryder .tile-ic svg { width: 20px; height: 20px; }
.tile-sm.tile-soto h3, .tile-sm.tile-ryder h3 { font-size: 16px; }
.tile-sm.tile-soto p, .tile-sm.tile-ryder p { font-size: 12px; line-height: 1.35; padding-right: 20px; }
.tile-sm.tile-soto .tile-arrow, .tile-sm.tile-ryder .tile-arrow { position: absolute; right: 10px; bottom: 10px; margin: 0; }
.tile-sm.tile-soto .tile-arrow .ic, .tile-sm.tile-ryder .tile-arrow .ic { width: 17px; height: 17px; }
.tile-sm.tile-soto .tile-tag, .tile-sm.tile-ryder .tile-tag { top: 10px; right: 10px; }

/* Tras validar: lo que aún queda por validar en el partido */
.sc-pend { margin-top: 14px; padding: 12px; border-radius: 14px; background: #FFF4E5; border: 1px solid #F3D19C; text-align: left; }
.sc-pend h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; font-weight: 800; color: #8A5300; }
.sc-pend-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 12px; margin-top: 6px; border: 0; border-radius: 11px; background: var(--red); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.sc-pend-btn b { display: block; font-size: 14.5px; }
.sc-pend-btn small { display: block; font-size: 12px; opacity: .85; margin-top: 1px; }
.sc-pend-btn.off { background: #fff; color: var(--muted); border: 1px dashed #D9C08F; cursor: default; }
.sc-pend-btn.off b { color: var(--text); }
.sc-done > .sc-pend { margin: 0 0 16px; }

/* Pool: puntos para subir la media en esta tarjeta */
/* Objetivo para subir la media (Pool) */
.tg-card { margin: 0 12px 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #1B2F55, #2C4A80); color: #fff; box-shadow: 0 6px 16px rgba(27,47,85,.22); }
.tg-card.ok { background: linear-gradient(135deg, #1A6B41, #2E9460); box-shadow: 0 6px 16px rgba(33,122,75,.25); }
.tg-card.first, .tg-card.muted { display: flex; gap: 10px; align-items: center; box-shadow: none; }
.tg-card.first { background: #FFF6DB; color: var(--navy-900); }
.tg-card.muted { background: #EEF3FA; color: var(--navy-900); }
.tg-card.first small, .tg-card.muted small { display: block; color: var(--muted); font-size: 12px; }
.tg-top { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.tg-big { flex: none; width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.35); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.tg-big b { font-size: 30px; font-weight: 800; margin: 2px 0; }
.tg-big small { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.tg-txt { min-width: 0; }
.tg-txt > b { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.tg-txt small { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.tg-avg { display: block; font-size: 20px; font-weight: 800; margin-top: 2px; }
.tg-avg i { font-style: normal; opacity: .6; font-weight: 600; }
.tg-avg em { font-style: normal; color: #FFD66B; }
.tg-card.ok .tg-avg em { color: #C9F5DA; }
.tg-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; }
.tg-leg { flex: none; width: 62px; font-weight: 700; opacity: .9; }
.tg-track { flex: 1; min-width: 40px; height: 10px; border-radius: 6px; background: rgba(255,255,255,.2); overflow: hidden; }
.tg-track span { display: block; height: 100%; border-radius: 6px; background: #FFD66B; transition: width .3s; }
.tg-row.ok .tg-track span { background: #8FE3B1; }
.tg-num { flex: none; font-weight: 800; font-size: 14px; }
.tg-num small { font-weight: 600; opacity: .7; font-size: 11px; }
.tg-side { flex: none; text-align: right; white-space: nowrap; }
.tg-num { white-space: nowrap; }
.tg-side i { font-style: normal; opacity: .75; }
.tg-side .ic { vertical-align: -2px; }
.tg-rank { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12px; font-weight: 800; vertical-align: 3px; white-space: nowrap; }
.tg-rank.up { background: #FFD66B; color: #1B2F55; }
.tg-card.ok .tg-rank.up { background: #C9F5DA; color: #135C36; }
.tg-next { margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.2); font-size: 12px; opacity: .95; }
.tg-big .ic { margin-bottom: 2px; }
/* Versión corta bajo cada jugador en «Hoyo a hoyo» */
.tg-mini { flex: 0 0 100%; display: flex; align-items: center; gap: 8px; margin: 2px 0 0 44px; max-width: calc(100% - 44px); font-size: 11px; color: var(--navy-900); }
.tg-mini.first { color: #8A6500; }
.tg-chip { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; font-size: 12px; }
.tg-mini.ok .tg-chip { background: var(--ok); }
.tg-mini .tg-row { flex: 1; min-width: 0; margin: 0; gap: 6px; font-size: 11px; }
.tg-mini .tg-track { height: 7px; background: #E3E9F2; }
.tg-mini .tg-track span { background: var(--red); }
.tg-mini .tg-row.ok .tg-track span { background: var(--ok); }
.tg-mini .tg-leg { display: none; }
.tg-mini .tg-num { display: none; }
.tg-mini .tg-side { white-space: nowrap; font-size: 12px; color: var(--muted); }
.tg-mini .tg-side b { display: inline; padding: 0; color: var(--red); font-size: 13px; }
.tg-mini .tg-row.ok .tg-side { color: var(--ok); font-weight: 700; }

.tg-mini .tg-rank { margin: 0; vertical-align: 0; background: #E3E9F2; color: var(--navy-900); font-size: 11px; padding: 1px 6px; }
.tg-mini .tg-rank.up { background: var(--ok-50); color: var(--ok); }
.tg-live { flex: none; font-weight: 800; font-size: 12px; color: var(--ok); }
.tg-mini.up .tg-chip { background: var(--ok); }

/* Pestaña Live con partidos en juego: icono en rojo con onda, texto en rojo */
.tabbar a.tab-live.live-on { color: #E0262B; font-weight: 800; }
.tabbar a.tab-live.live-on .tab-ic { padding: 5px; margin: -5px; border-radius: 50%; background: rgba(224,38,43,.12); }
.tabbar a.tab-live.live-on .tab-ic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #E0262B; animation: live-ring 1.6s ease-out infinite; }
.tabbar a.tab-live.live-on .live-dot { top: -1px; right: -2px; }
@keyframes live-ring { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tabbar a.tab-live.live-on .tab-ic::after { animation: none; opacity: .5; } }

/* Jugar: 4 tarjetas en rejilla 2×2 */
.play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.play-4 { min-height: 190px; padding: 14px; }
.play-4 .play-badge { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 6px; }
.play-4 small { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.play-4 h3 { font-size: 22px; line-height: 1.05; }
.play-4 p { font-size: 12.5px; line-height: 1.35; }
.play-4 .tile-cta { margin-top: auto; padding: 6px 11px; font-size: 12px; }
.play-4 .tile-tag { top: 12px; right: 12px; font-size: 10px; padding: 2px 7px; }
.play-4.tile-soto .tile-cta { color: #1F4D22; }
.play-4.tile-ryder .tile-cta { color: #0F1F30; }

/* Perfil: comodines */
.jk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jk { border: 1px solid var(--border); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.jk-name { font-size: 11.5px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.jk-n { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1; }
.jk-n small { font-size: 13px; color: var(--muted); font-weight: 700; }
.jk-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.jk-dots i { width: 11px; height: 11px; border-radius: 4px; background: var(--ok-50); border: 1.5px solid #9BD3B3; }
.jk-dots i.used { background: var(--navy); border-color: var(--navy); }
.jk-dots i.over { background: var(--red); border-color: var(--red); }
.jk-left { font-size: 11.5px; color: var(--muted); }
.jk-left b { color: var(--ok); }
.jk.out .jk-n, .jk.out .jk-left { color: var(--red); }
.jk-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.jk-note b { color: var(--text); }

/* Perfil: notificaciones push */
.push-state { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.push-state > .ic { flex: none; margin-top: 1px; }
.push-state.ok { background: var(--ok-50); color: var(--ok); }
.push-state.ok span { color: var(--text); }
.push-state.warn { background: #FFF6DB; color: #8A6500; }
.push-state.warn span, .push-state.bad span { color: var(--text); }
.push-state.bad { background: #FDECEC; color: var(--red); }
.push-kinds { margin-top: 4px; }
.push-kinds .toggle { padding: 10px 0; border-bottom: 1px solid var(--border); }
.push-kinds .toggle:last-child { border-bottom: 0; }
.push-btns { display: flex; gap: 8px; margin-top: 10px; }
.push-btns .btn { flex: 1; }

.push-diag{margin-top:12px;padding-top:10px;border-top:1px solid var(--line, rgba(0,0,0,.08));font-size:12px;line-height:1.5}
.push-diag a{font-weight:600}
.st-seasons > button.st-all { border-radius: 12px; padding: 0 18px; font-size: 14px; }

/* Home · tarjeta Jugar Pool: medalla con el puesto en el ranking */
.rank-medal { position: absolute; top: 12px; right: 12px; min-width: 62px; padding: 7px 10px 8px; border-radius: 16px; text-align: center; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.35); line-height: 1; }
.rank-medal small { display: block; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 3px; }
.rank-medal b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.rank-medal b i { font-style: normal; font-size: 16px; vertical-align: top; margin-left: 1px; }
.rank-medal em { display: block; font-style: normal; font-size: 10.5px; font-weight: 700; opacity: .8; margin-top: 3px; }
.rank-medal.rm-1 { background: linear-gradient(145deg, #FFE27A, #F2B620 55%, #C98B0B); border-color: #FFE9A3; color: #4A3200; }
.rank-medal.rm-2 { background: linear-gradient(145deg, #F4F6F8, #C9D0D8 55%, #9AA5B1); border-color: #FFFFFF; color: #26303B; }
.rank-medal.rm-3 { background: linear-gradient(145deg, #F1B98A, #CD7F32 55%, #9C5A1E); border-color: #F6CDA8; color: #3B1F06; }
.play-quick.has-rank .tile-tag { top: auto; bottom: 12px; }

.rank-medal.rm-spoon { background: linear-gradient(145deg, #E9CFA4, #C49A63 55%, #8E6538); border-color: #F3DDB8; color: #2E1C0A; padding-bottom: 4px; }
.rank-medal .rm-spoon-ic { display: grid; place-items: center; height: 18px; margin-top: 1px; }
.rank-medal .rm-spoon-ic svg { transform: rotate(90deg); }

/* Simulador / Estadísticas: portada con 4 herramientas (fondos ilustrados) */
.tools-grid { margin-bottom: 12px; }
.tool-tile { display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; }
.tool-tile .play-badge { position: absolute; top: 14px; left: 14px; color: var(--navy); }
.tool-tile h3 { font-size: 19px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.tool-tile p { font-size: 12.5px; font-weight: 600; opacity: .95; margin: 2px 0 0; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.tool-sim::before { background: linear-gradient(180deg, rgba(14,34,54,.1) 0%, rgba(14,34,54,.1) 50%, rgba(8,24,16,.95) 88%), url(../img/herramientas/simulador.jpg?v=3) 30% center / cover no-repeat; }
.tool-inf::before { background: linear-gradient(180deg, rgba(18,58,42,.05) 0%, rgba(18,58,42,.15) 50%, rgba(10,36,24,.96) 88%), url(../img/herramientas/informes.jpg?v=3) center / cover no-repeat; }
.tool-calc::before { background: linear-gradient(180deg, rgba(60,38,14,.05) 0%, rgba(60,38,14,.15) 50%, rgba(46,28,8,.96) 88%), url(../img/herramientas/calculadora.jpg?v=3) center / cover no-repeat; }
.tool-est::before { background: linear-gradient(180deg, rgba(58,15,26,.05) 0%, rgba(58,15,26,.15) 50%, rgba(34,10,18,.96) 88%), url(../img/herramientas/estadisticas.jpg?v=3) center / cover no-repeat; }
.tool-sim .tile-cta { color: #0E2236; } .tool-inf .tile-cta { color: #123A2A; } .tool-calc .tile-cta { color: #5A3B1A; } .tool-est .tile-cta { color: #5A1422; }
.tools-season { margin-top: 2px; }

/* Simulador */
.sim-now { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 12px; }
.sim-pick { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0 6px; }
.sim-step { width: 48px; height: 48px; border-radius: 14px; padding: 0; justify-content: center; }
.sim-val { text-align: center; min-width: 90px; }
.sim-val b { display: block; font-size: 44px; font-weight: 800; line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.sim-val small { color: var(--muted); font-size: 12px; font-weight: 600; }
.sim-range { width: 100%; margin: 8px 0 14px; accent-color: var(--navy); }
.sim-cards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 13px; }
.sim-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); background: var(--steel-50); color: var(--navy); border-radius: 99px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.sim-result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.sim-big { background: var(--navy); color: #fff; border-radius: 18px; padding: 14px 16px; }
.sim-big small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.sim-big b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0; }
.sim-diff { font-size: 12.5px; font-weight: 700; opacity: .85; }
.sim-diff.up { color: #8EE59B; opacity: 1; } .sim-diff.down { color: #FF9C8F; opacity: 1; }
.sim-legs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sim-legs div { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.sim-legs span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.sim-legs b { font-size: 20px; font-weight: 800; color: var(--navy); }
.sim-legs small { display: block; font-size: 11.5px; color: var(--muted); }
.sim-need { display: flex; gap: 8px; }
.sim-need span { background: var(--steel-50); border-radius: 10px; padding: 5px 9px; font-size: 12px; color: var(--muted); text-align: center; }
.sim-need b { display: block; font-size: 17px; color: var(--navy); }
.sim-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--border); }
.sim-row:first-child { border-top: 0; }
.sim-row .badge-pos { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
.sim-row.me { background: #FFF6DA; font-weight: 800; }

/* Informes */
.rep-list { display: grid; gap: 10px; }
.rep-item { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; font: inherit; color: var(--navy); cursor: pointer; box-shadow: 0 2px 8px rgba(16,32,48,.05); }
.rep-item .rep-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--navy); color: #fff; flex-shrink: 0; }
.rep-item b { display: block; font-size: 16px; }
.rep-item small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.rep-item:disabled { opacity: .6; }

/* Calculadora */
.calc-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; }
.calc-row input { flex: 1; accent-color: var(--navy); }
.calc-row b { min-width: 28px; text-align: right; font-size: 18px; color: var(--navy); }
.calc-out { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.calc-k { text-align: center; min-width: 74px; }
.calc-k b { display: block; font-size: 38px; font-weight: 800; color: var(--navy); line-height: 1; }
.calc-k span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.calc-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.calc-dots i { width: 14px; height: 14px; border-radius: 4px; background: var(--steel-50); border: 1px solid var(--border); }
.calc-dots i.on { background: #E3A21C; border-color: #C98B0B; }
.calc-rule div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.calc-rule div:first-child { border-top: 0; }
.calc-rule span { color: var(--muted); text-align: right; }
.rep-item .grow { flex: 1; min-width: 0; }
.st-player { margin-bottom: 8px; }

/* Calculadora: resumen virtual y listas editables de computables */
.cv-box { margin-bottom: 12px; }
.cv-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cv-sum > div { background: var(--steel-50); border-radius: 12px; padding: 8px 10px; }
.cv-sum > div.cv-main { background: var(--navy); color: #fff; }
.cv-sum small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.cv-sum b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.cv-sum em { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; }
.cv-sum em.up { color: #1B8A4B; } .cv-sum em.down { color: var(--bad); }
.cv-sum .cv-main em.up { color: #8EE59B; } .cv-sum .cv-main em.down { color: #FF9C8F; }
.cv-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12px; }
.cv-actions .btn { flex-shrink: 0; }
.cv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; align-items: start; }
.cv-h { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 2px 6px; }
.cv-list { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.cv-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-top: 1px solid var(--border); }
.cv-row:first-child { border-top: 0; }
.cv-info { flex: 1; min-width: 0; line-height: 1.2; }
.cv-info b { display: block; font-size: 12.5px; }
.cv-info small { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-in { width: 50px; height: 36px; border: 1px solid var(--border); border-radius: 9px; text-align: center; font: inherit; font-weight: 800; font-size: 16px; color: var(--navy); background: var(--steel-50); -moz-appearance: textfield; }
.cv-in::-webkit-outer-spin-button, .cv-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cv-row.edited .cv-in { background: #FFF1C9; border-color: #E3A21C; color: #7A4A00; }
.cv-row.out { opacity: .45; }
.cv-row.out .cv-info b::after { content: " · ya no cuenta"; font-weight: 600; color: var(--bad); }
.cv-note { font-size: 11.5px; color: var(--ok); font-weight: 600; margin: 6px 2px 0; }
.cv-step { font-size: 11.5px; color: var(--muted); margin: 6px 2px 0; }
.cv-empty { font-size: 12.5px; color: var(--muted); padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }

/* Simulador: Próxima vuelta arriba; Actual | Proyectado lado a lado (3 columnas en pantallas anchas) */
.sm-hero { margin-bottom: 12px; }
.sm-hero .row { gap: 10px; }
.sm-card { padding: 12px 12px 10px; margin-bottom: 10px; }
.sm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sm-head h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--navy); flex: 1; min-width: 0; }
.sm-head h3 small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.sm-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--steel-50); color: var(--navy); flex-shrink: 0; }
.sm-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sm-inputs label small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin: 0 2px 4px; }
.sm-inputs .sm-course { grid-column: 1 / -1; }
.sm-inputs select.input { height: 46px; font-weight: 700; }
.sm-inputs select.input.on { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,74,107,.14); background-color: #F3F7FB; }
.sm-hint { margin: 10px 0 0; }
.sm-hint-t { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.sm-hint-s { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.sm-needs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sm-need { border: 1px solid var(--border); background: #F3F7FB; border-radius: 12px; padding: 8px 10px; text-align: left; font: inherit; cursor: pointer; color: var(--navy); }
.sm-need small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.sm-need b { font-size: 18px; font-weight: 800; }
.sm-need:disabled { opacity: .55; cursor: default; }
.sm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; margin-bottom: 12px; }
.sm-pair .sm-card { margin-bottom: 0; }
.sm-kv { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 6px; padding: 6px 0; }
.sm-kv > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.sm-kv > b { font-size: 17px; font-weight: 800; color: var(--navy); text-align: right; }
.sm-kv > .pill { grid-column: 2; justify-self: end; font-size: 10.5px; padding: 1px 7px; }
.sm-sep { border-top: 1px solid var(--border); margin: 4px 0; }
.sm-proj { background: var(--navy); border-color: var(--navy); color: #fff; }
.sm-proj .sm-head h3 { color: #fff; }
.sm-proj .sm-ic { background: rgba(255,255,255,.14); color: #fff; }
.sm-proj .sm-kv > span { color: rgba(255,255,255,.7); }
.sm-proj .sm-kv > b { color: #fff; }
.sm-proj .sm-sep { border-color: rgba(255,255,255,.16); }
.sm-proj .pill-ok { background: rgba(142,229,155,.18); color: #8EE59B; }
.sm-proj .pill-bad { background: rgba(255,156,143,.18); color: #FF9C8F; }
.sm-edit input, .sm-edit select { width: 86px; height: 34px; justify-self: end; border-radius: 10px; border: 1px dashed rgba(255,255,255,.45); background: rgba(255,255,255,.1); color: #fff;
  font: inherit; font-size: 17px; font-weight: 800; text-align: right; padding: 0 8px; -moz-appearance: textfield; -webkit-appearance: none; appearance: none; }
.sm-edit select { text-align-last: right; cursor: pointer; }
.sm-edit select option { color: #111; }
.sm-edit input::placeholder { color: rgba(255,255,255,.4); }
.sm-edit input::-webkit-outer-spin-button, .sm-edit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sm-edit input:focus, .sm-edit select:focus { outline: none; border-style: solid; border-color: #fff; }
/* Reset de Simulador y Calculadora: rojo cuando hay algo que deshacer */
.btn[data-act="sxReset"]:not(:disabled), .btn[data-act="calcReset"]:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(224,38,43,.28); }
.btn[data-act="sxReset"]:not(:disabled) .ic, .btn[data-act="calcReset"]:not(:disabled) .ic { color: #fff; }
.sm-kv > .sm-mm { grid-column: 1 / -1; justify-self: end; font-size: 11px; font-weight: 700; color: var(--navy); }
.sm-mm i { font-style: normal; font-weight: 800; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* Objetivo de la tarjeta: botón para ocultarlo / mostrarlo (preferencia del jugador en su móvil) */
.tg-card { position: relative; }
.tg-hide { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; border-radius: 50%; padding: 0; cursor: pointer; }
.tg-card .tg-txt > b { padding-right: 30px; }
.tg-hide .ic { color: #fff; }
.tg-show { display: none; align-items: center; gap: 6px; margin: 0 12px 12px; width: calc(100% - 24px); border: 1px dashed var(--border); background: var(--steel-50); color: var(--navy); border-radius: 12px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; justify-content: center; }
html.tg-hidden .tg-card, html.tg-hidden .tg-mini { display: none !important; }
html.tg-hidden .tg-show { display: inline-flex; }

/* ---------- Cuadro del match: pestañas, rondas y columnas deslizables ---------- */
.bk-side { margin: 4px 0 10px; }
.bk-side button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.bk-rounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.bk-rounds button { border: 0; border-radius: 12px; background: var(--steel-100); color: var(--muted); padding: 8px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; }
.bk-rounds button b { font-size: 14px; }
.bk-rounds button small { font-size: 11px; font-weight: 600; opacity: .8; }
.bk-rounds button.on { background: var(--navy-900); color: #fff; }
.bk-board { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px; background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); border-radius: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bk-board::-webkit-scrollbar { display: none; }
.bk-col { flex: 0 0 calc(50% - 11px); display: flex; flex-direction: column; scroll-snap-align: start; scroll-margin-left: 14px; }
.bk-pad { flex: 0 0 calc(50% + 4px); }
.bk-h { color: #fff; font-weight: 700; font-size: 14px; margin: 0 0 6px; letter-spacing: .2px; }
.bk-body { flex: 1; display: flex; flex-direction: column; position: relative; }
.bk-pair { flex: 1; display: flex; flex-direction: column; position: relative; }
.bk-slot { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; padding: 5px 0; }
.bk-pair::after { content: ''; position: absolute; right: -11px; top: 25%; bottom: 25%; width: 11px; border: 2px solid rgba(255,255,255,.3); border-left: 0; border-radius: 0 6px 6px 0; }
.bk-in > .bk-slot::before, .bk-slot.bk-in::before { content: ''; position: absolute; left: -11px; top: 50%; width: 11px; border-top: 2px solid rgba(255,255,255,.3); }
.bk-last .bk-3p { position: absolute; left: 0; right: 0; bottom: 0; }
.bk-3p .bk-h { font-size: 12px; color: var(--steel); }
.bk-board .bm { margin: 0; border: 0; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.bk-board .bm .r { padding: 9px 10px; font-size: 13.5px; gap: 6px; align-items: center; }
.bk-board .bm .r > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-board .bm .r svg { flex: 0 0 auto; }
.bk-board .bm .m { padding: 5px 10px; font-size: 11px; flex-wrap: wrap; gap: 2px 6px; }

/* Visor de informes con el móvil en horizontal: cabecera y pie compactos para dejar sitio a la página */
@media (orientation: landscape) and (max-height: 540px) {
  .rep-viewer header { padding: 6px calc(env(safe-area-inset-right, 0px) + 12px) 6px calc(env(safe-area-inset-left, 0px) + 12px); }
  .rep-viewer header small { display: none; }
  .rep-viewer header .act { width: 32px; height: 32px; }
  .rep-pages { padding: 8px calc(env(safe-area-inset-right, 0px) + 8px) 8px calc(env(safe-area-inset-left, 0px) + 8px); gap: 8px; }
  .rep-pages img.zoom { width: 180%; }
  .rep-viewer footer { padding: 6px calc(env(safe-area-inset-right, 0px) + 12px) calc(var(--safe-b) + 6px) calc(env(safe-area-inset-left, 0px) + 12px); }
  .rep-viewer footer .btn { height: 36px; min-height: 36px; font-size: 13px; }
}

/* ---------- Selector de rueda (puntos del simulador) ---------- */
.sm-inputs .sm-pick { height: 46px; width: 100%; font-weight: 700; text-align: left; cursor: pointer; color: var(--text); font-size: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A7785' stroke-width='2.5'%3E%3Cpath d='m7 15 5 5 5-5M7 9l5-5 5 5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.sm-inputs .sm-pick.on { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,74,107,.14); background-color: #F3F7FB; }
.wheel { position: relative; height: 220px; margin: 4px 0 16px; }
.wheel-band { position: absolute; left: 0; right: 0; top: 88px; height: 44px; border-radius: 12px; background: var(--steel-50); border: 1px solid var(--border); pointer-events: none; }
.wheel-list { position: relative; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; padding: 88px 0; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 35%, #000 65%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 35%, #000 65%, transparent 100%); }
.wheel-list::-webkit-scrollbar { display: none; }
.wheel-it { height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; scroll-snap-align: center; font-size: 20px; font-weight: 600; color: var(--muted); cursor: pointer; transition: font-size .12s, color .12s; user-select: none; -webkit-user-select: none; font-variant-numeric: tabular-nums; }
.wheel-it small { font-size: 13px; font-weight: 600; }
.wheel-it.near { font-size: 22px; color: #3d4a57; }
.wheel-it.on { font-size: 28px; font-weight: 800; color: var(--navy-900); }

/* ---------- Informes anuales (acordeón en Informes) ---------- */
.rep-acc { margin-top: 10px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 2px 8px rgba(16,32,48,.05); overflow: hidden; }
.rep-acc > summary { display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; list-style: none; color: var(--navy); }
.rep-acc summary::-webkit-details-marker { display: none; }
.rep-acc > summary .rep-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--gold); color: #fff; flex-shrink: 0; }
.rep-acc > summary .grow { flex: 1; min-width: 0; }
.rep-acc > summary b { display: block; font-size: 16px; }
.rep-acc > summary small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.rep-acc summary > svg:last-child { transition: transform .2s; flex-shrink: 0; color: var(--muted); }
.rep-acc[open] > summary > svg:last-child, .rep-year[open] > summary > svg:last-child { transform: rotate(90deg); }
.rep-acc-body { border-top: 1px solid var(--border); padding: 6px 12px 12px; }
.rep-acc-body .loader { padding: 14px 4px; }
.rep-year { border-bottom: 1px solid var(--border); }
.rep-year:last-child { border-bottom: 0; }
.rep-year > summary { display: flex; align-items: center; gap: 10px; padding: 12px 4px; cursor: pointer; list-style: none; }
.rep-year > summary b { font-size: 17px; color: var(--navy-900); }
.rep-year > summary .muted { flex: 1; font-size: 12.5px; }
.rep-year > summary > svg { transition: transform .2s; color: var(--muted); }
.rep-doc { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 0 8px; border-radius: 12px; background: var(--steel-50); color: var(--navy); width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.rep-doc:disabled { opacity: .7; }
.rep-doc .grow { flex: 1; min-width: 0; }
.rep-doc b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-doc small { display: block; font-size: 12px; color: var(--muted); }
.rep-doc-t { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .4px; }
.rep-empty { padding: 14px 4px; font-size: 13.5px; }

/* ---------- Menú lateral por secciones (Información general / Competiciones / Mi juego) ---------- */
.menu-sec { margin-top: 6px; }
.menu-sec > .menu-item { padding: 14px 18px 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--navy); }
.menu-sec > .menu-item span { border-bottom: 1.5px solid var(--navy); padding-bottom: 6px; }
.menu-sec > .menu-item > .ic:last-child { margin-bottom: 6px; }
.menu-sec > .menu-list.lv1 > li > .menu-item { padding: 11px 18px 11px 22px; font-size: 15px; font-weight: 600; }
.menu-sec .menu-list.lv2 .menu-item { padding: 9px 18px 9px 56px; font-size: 14px; font-weight: 500; }

/* Calculadora: − / + en cada tarjeta computable (debajo de la fecha y el campo) */
.cv-row { flex-wrap: wrap; row-gap: 6px; }
.cv-row .cv-info { flex: 1 1 100%; }
.cv-stepper { flex: 1 1 100%; display: flex; align-items: center; gap: 6px; }
.cv-stepper .cv-in { flex: 1; width: auto; min-width: 0; }
.cv-stp { flex: 0 0 40px; height: 36px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; padding: 0; }
.cv-stp:active { background: var(--steel-100); }
.cv-row.edited .cv-stp { border-color: #E3A21C; }
/* Sin zoom por doble toque en iPhone al pulsar seguido botones o enlaces */
button, a, input, select, .btn, [data-act] { touch-action: manipulation; }
.cv-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cv-cols > div { min-width: 0; }
.cv-stepper .cv-in { width: 100%; }

/* Simulador: − / + a los lados del selector de puntos (el centro abre la rueda) */
.sm-fld small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin: 0 2px 4px; }
.sm-step { display: flex; align-items: center; gap: 5px; }
.sm-step .sm-pick { flex: 1; min-width: 0; padding: 0 8px; text-align: center; background-image: none; }
.sm-stp { flex: 0 0 38px; height: 46px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; padding: 0; }
.sm-stp:active { background: var(--steel-100); }
.sm-inputs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sm-step { gap: 4px; }
.sm-stp { flex-basis: 34px; }
.sm-step .sm-pick { white-space: nowrap; padding: 0 4px; font-size: 15px; }
.sm-hero + .st-player { margin-bottom: 12px; }

/* Simulador · Proyectado: − / + en el puesto objetivo (línea propia, la columna es estrecha) */
.sm-tp-step { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; }
.sm-tp-step select { flex: 1; width: auto; min-width: 0; text-align: center; text-align-last: center; }
.sm-proj .sm-stp { flex: 0 0 36px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.sm-proj .sm-stp:active { background: rgba(255,255,255,.22); }
.sm-tp-val { flex: 1; min-width: 0; height: 34px; border-radius: 10px; border: 1px dashed rgba(255,255,255,.45); background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; padding: 0 6px; }
.sm-tp-val.on { border-style: solid; border-color: #fff; }

/* Selector con foto del jugador (simulador) */
.combo-av { flex-shrink: 0; display: inline-flex; }
.combo-btn .combo-av { margin-right: 10px; }

/* Ryder: suplentes de cada equipo */
.ev-subs-h { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 16px 2px; border-top: 1px solid var(--border); }

/* Escudos de los equipos de la Ryder junto al nombre */
.team-h { display: flex; align-items: center; gap: 10px; }
.team-logo { width: 34px; height: auto; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(16,32,48,.18)); }

/* Fechas: texto fijo (no se toca) y botón de calendario con el selector real invisible encima (móvil y escritorio) */
.date-pick { position: relative; }
.date-pick .date-txt { display: flex; align-items: center; padding-right: 60px; cursor: default; -webkit-user-select: none; user-select: none; }
.date-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 46px; height: 40px; border-radius: 10px; background: var(--steel-50); color: var(--navy); display: grid; place-items: center; cursor: pointer; overflow: hidden; margin: 0; }
.date-btn:active { background: var(--steel-100); }
.date-btn input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; font-size: 16px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.date-btn input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }

/* Fila resaltada al llegar desde una notificación */
@keyframes flashRow { 0%, 60% { background: #FFF1C9; box-shadow: inset 4px 0 0 #E3A21C; } 100% { background: transparent; box-shadow: inset 4px 0 0 transparent; } }
.flash-row { animation: flashRow 2.6s ease-out 2; }

/* Calculadora: siguiente tarjeta virtual (Next) */
.cv-next-wrap { margin-top: 8px; }
.cv-next-tg { width: 100%; justify-content: center; }
.cv-next { background: #fff; border: 2px dashed var(--navy-600); border-radius: 14px; padding: 8px; }
.cv-next-wrap.counts .cv-next { border-style: solid; border-color: var(--ok); background: #F4FBF6; }
.cv-next-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cv-next-h b { background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.cv-next-h span { flex: 1; font-size: 12px; color: var(--muted); font-weight: 600; }
.cv-next-x { border: 0; background: none; color: var(--muted); padding: 2px; cursor: pointer; display: grid; place-items: center; }
.cv-next-info { font-size: 11.5px; line-height: 1.35; color: var(--text); margin-top: 6px; display: grid; gap: 3px; }
.cv-next-st { font-weight: 700; color: var(--muted); }
.cv-next-wrap.counts .cv-next-st { color: var(--ok); }
/* Botón «Next computable» con el estilo del botón azul de Inicio */
.cv-next-tg { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border: 0; border-radius: 14px; background: var(--navy); color: #fff;
  font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 6px 16px rgba(21,42,64,.22); cursor: pointer; padding: 0 8px; }
.cv-next-tg:active { background: var(--navy-900); }
.cv-next-tg { font-size: 11.5px; letter-spacing: .02em; white-space: normal; line-height: 1.15; height: auto; min-height: 44px; padding: 6px 8px; text-align: center; gap: 5px; }
.cv-next-tg .ic { flex-shrink: 0; }

/* Aviso de versión nueva */
.upd-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar) + var(--safe-b) + 12px); max-width: 536px; margin: 0 auto; z-index: 70; display: flex; align-items: center; gap: 10px;
  background: var(--navy-900); color: #fff; border-radius: 16px; padding: 10px 10px 10px 12px; box-shadow: 0 10px 28px rgba(15,31,48,.35); animation: updIn .3s ease-out; }
@keyframes updIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.upd-bar .upd-ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex-shrink: 0; }
.upd-bar .grow { flex: 1; min-width: 0; line-height: 1.2; }
.upd-bar b { display: block; font-size: 14px; }
.upd-bar small { display: block; font-size: 11.5px; opacity: .75; }
.upd-btn { border: 0; border-radius: 10px; background: #fff; color: var(--navy-900); font: inherit; font-size: 13px; font-weight: 800; padding: 9px 12px; cursor: pointer; white-space: nowrap; }
.upd-x { border: 0; background: none; color: rgba(255,255,255,.7); padding: 4px; cursor: pointer; display: grid; place-items: center; }
.menu-logout .menu-ver { color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Arde Ryder: cabecera con escudos, pestañas y equipos ---------- */
.ry-hero { position: relative; margin: -16px -16px 0; padding: 18px 16px 14px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(244,247,246,.80) 0%, rgba(244,247,246,.86) 55%, var(--bg) 100%), url(../img/login-bg.jpg) center 46% / cover no-repeat; }
.ry-hero h1 { font-size: 32px; font-weight: 900; letter-spacing: -.01em; color: var(--navy-900); text-transform: uppercase; line-height: 1; margin: 0; }
.ry-vs { margin-top: 6px; font-size: 12px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: #3b4652; padding-bottom: 10px; border-bottom: 1px solid rgba(21,42,64,.12); display: inline-block; }
.ry-shields { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 6px; }
.ry-shields > i { width: 1px; align-self: stretch; background: rgba(21,42,64,.18); margin: 6px 4px; }
.ry-side { display: flex; align-items: center; gap: 8px; }
.ry-side b { font-size: 17px; font-weight: 900; line-height: 1.05; color: #0E5132; text-transform: uppercase; text-align: right; }
.ry-side.r b { text-align: left; }
.ry-shield { width: 92px; height: auto; filter: drop-shadow(0 6px 10px rgba(14,81,50,.25)); }
.ry-when { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ry-tabs { display: flex; background: #fff; border-radius: 999px; padding: 4px; gap: 4px; margin: 6px 0 14px; box-shadow: 0 4px 14px rgba(16,32,48,.08); }
.ry-tabs button { flex: 1; height: 40px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--navy-900); cursor: pointer; }
.ry-tabs button.on { background: var(--navy-900); color: #fff; box-shadow: 0 4px 12px rgba(21,42,64,.3); }
.ry-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 10px; align-items: start; }
.ry-team { background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 4px 16px rgba(16,32,48,.07); display: flex; flex-direction: column; }
.ry-th { background: #0E5132; color: #fff; border-radius: 10px; text-align: center; font-weight: 800; font-size: 15px; padding: 9px 6px; }
.ry-list { list-style: none; margin: 4px 0 0; padding: 0; }
.ry-list li { display: flex; gap: 6px; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.ry-list li:last-child { border-bottom: 0; }
.ry-list li .n { font-weight: 700; color: var(--navy-900); font-size: 14px; min-width: 18px; }
.ry-list li .grow { min-width: 0; }
.ry-list li b { display: block; font-size: 14px; font-weight: 700; color: var(--navy-900); line-height: 1.2; overflow-wrap: anywhere; }
.ry-list li small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ry-list li .pill { margin-top: 4px; font-size: 10.5px; }
.ry-list li.me b { color: var(--red); }
.ry-list li.out b { text-decoration: line-through; opacity: .6; }
.ry-empty { padding: 18px 6px; text-align: center; color: var(--muted); font-size: 13px; }
.ry-tot { background: #E7F3EA; border-radius: 12px; padding: 8px 12px; margin-top: 6px; display: grid; gap: 2px; }
.ry-tot div { display: flex; justify-content: space-between; align-items: baseline; color: #0E5132; }
.ry-tot span { font-size: 13.5px; font-weight: 700; }
.ry-tot b { font-size: 19px; font-weight: 900; }
.ry-subs { margin-top: 8px; border: 0; border-radius: 10px; background: var(--steel-100); color: var(--navy-900); font: inherit; font-weight: 800; font-size: 15px; height: 42px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ry-subs span { background: #0E5132; color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.ry-hist { display: grid; gap: 8px; }
.ry-hy { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 3px 12px rgba(16,32,48,.06); }
.ry-hl { width: 48px; height: auto; flex-shrink: 0; }
.ry-hy .grow { min-width: 0; }
a.ry-hy-go { color: inherit; text-decoration: none; }
a.ry-hy-go > svg:last-child { color: var(--muted); flex-shrink: 0; }
.ry-hy small.ry-tie { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.ry-hy-t { display: flex; align-items: baseline; gap: 8px; }
.ry-hy-t b { font-size: 20px; font-weight: 900; color: var(--navy-900); }
.ry-hy-t span { font-weight: 800; color: #0E5132; font-size: 14px; }
.ry-hy small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ry-rules h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #0E5132; margin: 12px 0 2px; }
.ry-rules p { margin: 0; font-size: 14px; }
.ry-sheet-h { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ry-sheet-h h3 { margin: 0; }
.ry-sl { width: 46px; height: auto; }
.ry-sublist { margin-bottom: 12px; }
.ry-sublist small.cov { color: #0E5132; font-weight: 700; }

/* Eslogan de la portada: letra de pincel legible (Courgette) con trazo afilado debajo.
   Va fuera del flujo para que el logo se centre sólo con «Arde Baqueira / Golf Cup». */
.home-brand > span { position: relative; }
.home-slogan { position: absolute; left: 0; top: calc(100% + 12px); display: block; padding-bottom: 9px; font-family: "Courgette", "Brush Script MT", cursive; font-style: normal; font-size: 20px; line-height: 1;
  letter-spacing: 0; text-transform: none; white-space: nowrap; color: #fff; transform: rotate(-3deg); transform-origin: left center; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.home-slogan svg { position: absolute; left: 6px; bottom: -3px; width: 104%; height: 9px; fill: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.3)); }
.home-top.solid .home-slogan { display: none; }

/* Inicio · tarjeta Ryder: campo aclarado con los escudos Seniors y Juniors (como la cabecera de la Ryder) */
.tile-sm.tile-ryder { color: #0E5132;
  background: url(../img/ryder/juniors.png?v=1) right 10px bottom 6px / auto 54% no-repeat, url(../img/ryder/seniors.png?v=1) right 52px bottom 6px / auto 54% no-repeat,
    linear-gradient(180deg, rgba(244,247,246,.72), rgba(244,247,246,.86)), url(../img/login-bg.jpg) center 46% / cover no-repeat;
  box-shadow: 0 6px 18px rgba(14,81,50,.16); }
.tile-sm.tile-ryder .tile-ic { background: #0E5132; color: #fff; }
.tile-sm.tile-ryder .tile-ic svg { filter: brightness(1.15); }
.tile-sm.tile-ryder h3 { color: #0E5132; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.tile-sm.tile-ryder .tile-arrow { display: none; }
/* Ryder · Equipos: columnas de igual altura; totales y «Suplentes» alineados abajo aunque algún nombre ocupe 2 líneas */
.ry-cols { align-items: stretch; }
.ry-team .ry-list, .ry-team .ry-empty { flex: 1 1 auto; }

/* Jugar · Ryder finalizada (sin otra prevista): tarjeta informativa, no pulsable */
.ry-done { cursor: default; }
.ry-done:active { transform: none; }
.ry-done .ry-win { margin-top: auto; background: #fff; color: #0E5132; border-radius: 99px; padding: 6px 11px; font-size: 12px; font-weight: 900; letter-spacing: .04em; }
/* Reglamento PDF de la Ryder (pestaña Reglas) */
.rep-doc.ry-pdf { background: #fff; border: 1px solid var(--steel-100, #e3e8ef); box-shadow: 0 1px 2px rgba(15, 30, 60, .06); margin-bottom: 12px; padding: 12px; }
.ry-age-low { color: #C62828; font-weight: 700; }
.ry-age-exc { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; background: var(--steel-100); color: var(--navy); font-size: 11px; font-weight: 700; }
/* Ryder: pestaña Partidos */
.ry-tabs button { font-size: 13.5px; }
.ry-stake { text-align: center; font-size: 13.5px; color: var(--navy-900); margin: 0 0 12px; }
.ry-stake b { color: #0E5132; }
.ry-day { margin-bottom: 16px; }
.ry-day-h { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 6px; }
.ry-day-h b { font-size: 16px; color: var(--navy-900); }
.ry-day-h span { font-size: 13px; color: var(--steel-500, #6b7a89); }
.ry-segs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ry-seg { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: #E6F0EA; color: #0E5132; }
.ry-match { background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(16,32,48,.06); }
.ry-mhead { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.ry-mn { width: 22px; height: 22px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.ry-mrow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto minmax(0, 1fr) 28px; align-items: center; gap: 6px; }
.ry-ml { width: 28px; height: auto; }
.ry-mvs { font-size: 11px; font-weight: 800; color: var(--steel-500, #6b7a89); text-transform: uppercase; }
.ry-mside > div { font-size: 13.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ry-mside.r { text-align: right; }
.ry-mside small { margin-left: 5px; color: var(--steel-500, #6b7a89); font-size: 11.5px; }
.ry-mside .me b { color: #0E5132; }
/* Ryder: enfrentamientos enlazados y tarjeta del partido */
a.ry-match { display: block; color: inherit; text-decoration: none; }
.ry-mhead > svg { margin-left: auto; color: var(--steel-500, #6b7a89); }
.ry-role { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #0E5132; color: #fff; }
.ry-role.v { background: var(--navy-900); }
.ry-st { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--steel-100); color: var(--navy-900); }
.ry-st.live { background: #FFF1D6; color: #8A5A00; }
.ry-st.ok { background: #E6F0EA; color: #0E5132; }
.ry-mres { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 8px; }
.ry-mres em, .rm-gs em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: var(--steel-100); color: var(--navy-900); }
.ry-mres em.b, .rm-gs em.b { background: var(--ry-s); color: #fff; }
.ry-mres em.a, .rm-gs em.a { background: var(--ry-j); color: #fff; }
.rm-head { background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(16,32,48,.07); }
.rm-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--steel-500, #6b7a89); margin-bottom: 8px; }
.rm-meta .pill { margin-left: auto; }
.rm-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.rm-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rm-side.r { flex-direction: row-reverse; text-align: right; }
.rm-logo { width: 38px; height: auto; flex-shrink: 0; }
.rm-ps { min-width: 0; }
.rm-ps > div { line-height: 1.2; margin: 2px 0; }
.rm-ps b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-ps small { font-size: 11px; color: var(--steel-500, #6b7a89); white-space: nowrap; }
.rm-ps .me b { color: #0E5132; }
.rm-ps .tee { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: -1px; border: 1px solid rgba(0,0,0,.2); }
.rm-x { font-size: 11px; font-weight: 800; color: var(--steel-500, #6b7a89); text-transform: uppercase; }
.rm-roles { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--steel-100); font-size: 12px; color: var(--steel-500, #6b7a89); }
.rm-roles span { display: inline-flex; align-items: center; gap: 4px; }
.rm-roles b { color: var(--navy-900); }
.rm-tabs { margin-top: 0; }
.rm-validate { background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(16,32,48,.07); }
.rm-validate p { margin: 0 0 10px; font-size: 13.5px; }
.rm-validate .btn + .btn { margin-top: 8px; }
.rm-strip { display: flex; gap: 4px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 4px; scrollbar-width: none; }
.rm-strip::-webkit-scrollbar { display: none; }
.rm-strip button { flex: 0 0 34px; height: 34px; border-radius: 10px; border: 1px solid var(--steel-100); background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--navy-900); }
.rm-strip button.sep { margin-left: 8px; }
.rm-strip button.f { background: var(--steel-100); }
.rm-strip button.wB { background: var(--ry-s); color: #fff; border-color: var(--ry-s); }
.rm-strip button.wA { background: var(--ry-j); color: #fff; border-color: var(--ry-j); }
.rm-strip button.wH { background: var(--steel-100); }
.rm-strip button.dead { opacity: .35; }
.rm-strip button.on { outline: 3px solid var(--navy-900); outline-offset: 1px; }
.rm-hole { background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(16,32,48,.07); }
.rm-hh { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.rm-hh b { font-size: 18px; color: var(--navy-900); }
.rm-hh span { font-size: 13px; color: var(--steel-500, #6b7a89); }
.rm-hh em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #E6F0EA; color: #0E5132; }
.rm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--steel-100); }
.rm-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rm-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-mini { width: 22px; height: auto; flex-shrink: 0; }
.rm-dots { font-style: normal; color: #C62828; font-size: 18px; line-height: 1; letter-spacing: -2px; }
.rm-step { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rm-b { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--steel-100); color: var(--navy-900); display: grid; place-items: center; }
.rm-v { min-width: 30px; text-align: center; font-size: 22px; font-weight: 800; color: var(--navy-900); }
.rm-v.x { color: #C62828; }
.rm-pu { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--steel-100); background: #fff; font: inherit; font-size: 12px; font-weight: 800; color: var(--steel-500, #6b7a89); }
.rm-pu.on { background: #C62828; border-color: #C62828; color: #fff; }
.rm-live { margin-top: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px; background: var(--steel-100); color: var(--navy-900); }
.rm-live.b, .rm-res.b, .rm-mres.b { background: var(--ry-s-50); color: var(--ry-s); }
.rm-live.a, .rm-res.a, .rm-mres.a { background: var(--ry-j-50); color: var(--ry-j); }
.rm-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.rm-nav .btn { flex: 0 0 auto; }
.rm-help { font-size: 11.5px; margin: 8px 0 0; }
.rm-seg { background: #fff; border-radius: 14px; padding: 10px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(16,32,48,.06); }
.rm-seg-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.rm-seg-h span { color: var(--steel-500, #6b7a89); font-size: 12px; }
.rm-res { font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: var(--steel-100); margin-bottom: 6px; }
.rm-tw { overflow-x: auto; }
.rm-t { width: 100%; border-collapse: collapse; font-size: 12.5px; text-align: center; }
.rm-t th { font-size: 11.5px; color: var(--navy-900); padding: 4px 0; }
.rm-t td { padding: 4px 0; border-top: 1px solid var(--steel-100); position: relative; min-width: 24px; }
.rm-t td.n { text-align: left; font-weight: 700; max-width: 86px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 4px; }
.rm-t td.n small { color: #C62828; font-weight: 700; }
.rm-t tr.sub td { color: var(--steel-500, #6b7a89); font-size: 10.5px; border: 0; padding: 0; }
.rm-t td i { position: absolute; top: 0; right: 1px; font-style: normal; color: #C62828; font-size: 11px; line-height: 1; }
.rm-t td.dead { color: #b9c2cc; }
.rm-t tr.won td { font-weight: 800; font-size: 11.5px; }
.rm-t tr.won td.wB { color: var(--ry-s); }
.rm-t tr.won td.wA { color: #8A6A00; }
.rm-sub { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--steel-500, #6b7a89); margin: 6px 2px 6px; letter-spacing: .03em; }
.rm-mres { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--steel-100); margin-top: 6px; font-size: 13px; }
.rm-mres small { grid-column: 1 / -1; font-size: 11.5px; opacity: .8; }
.rm-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 12px; margin: 12px 0; box-shadow: 0 2px 10px rgba(16,32,48,.07); }
.rm-score.sm { margin-top: 0; }
.rm-sc { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rm-sc b { font-size: 30px; line-height: 1; color: var(--navy-900); }
.rm-sc span { font-size: 12px; font-weight: 700; color: var(--steel-500, #6b7a89); text-transform: uppercase; }
.rm-mid { display: flex; flex-direction: column; align-items: center; color: var(--steel-500, #6b7a89); }
.rm-mid b { font-size: 18px; color: #0E5132; }
.rm-mid small { font-size: 11px; }
.rm-gm { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; color: inherit; text-decoration: none; box-shadow: 0 1px 6px rgba(16,32,48,.06); }
.rm-gm.cur { outline: 2px solid var(--navy-900); }
.rm-gn { display: flex; gap: 6px; align-items: baseline; font-size: 13px; font-weight: 700; flex-wrap: wrap; }
.rm-gn i { font-style: normal; font-size: 10.5px; color: var(--steel-500, #6b7a89); text-transform: uppercase; }
.rm-gs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

/* Ryder: ficha (Equipos / Histórico / Reglas) separada de Jugar → Ryder (Partidos / Clasificación) */
.ry-play-link { margin: 0 0 12px; }
.ry-hs { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.ry-hs span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.ry-hs span.w { color: var(--navy-900); }
.ry-hs b { font-size: 18px; font-weight: 900; }
.ry-hs i { font-style: normal; color: var(--muted); }
.ry-hs em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #FFF1D6; color: #8A5A00; }
.ry-hsl { width: 20px; height: 20px; object-fit: contain; }
.rm-gs .ry-st { margin-left: 4px; }

/* Ryder: anotar como en el Match (Hoyo a hoyo / Por jugador) */
.rm-pav { width: 34px; height: 34px; object-fit: contain; flex: none; }
.pv-chips .rm-pav { width: 26px; height: 26px; }
.hv-strip button.dead { background: var(--steel-50); color: #B5BFCA; border-style: dashed; }
.pv-table tr.rm-dead td { opacity: .45; }
.pv-table td.rm-hw { font-weight: 900; }
.pv-table td.rm-hw.b { color: var(--ry-s); }
.pv-table td.rm-hw.a { color: var(--ry-j); }
.pv-table tr.rm-pvseg td { text-align: left; font-size: 12px; padding: 8px 10px; }
.pv-table tr.rm-pvseg span.b { color: var(--ry-s); }
.pv-table tr.rm-pvseg span.a { color: var(--ry-j); }

/* Ryder «Por jugador»: selector en dos columnas (equipo arriba, sus jugadores debajo) */
.rm-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.rm-pcol { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rm-pick button { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; padding: 6px 10px 6px 6px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; text-align: left; color: var(--text); }
.rm-pick button span { min-width: 0; }
.rm-pick button b { display: block; font-size: 13.5px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-pick button small { display: block; font-size: 11px; color: var(--muted); }
.rm-pick .rm-pteam { background: var(--steel-50); border-width: 2px; }
.rm-pick .rm-pteam b { text-transform: uppercase; letter-spacing: .02em; }
.rm-pick .rm-pp { margin-left: 12px; width: calc(100% - 12px); }
.rm-pick button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.rm-pick button.on small { color: rgba(255,255,255,.8); }
.rm-pick .rm-pav { width: 30px; height: 30px; }
.sc-cell.rm-best { display: inline-grid; place-items: center; align-content: center; line-height: 1; cursor: default; vertical-align: middle; }
.sc-cell.rm-best small { font-size: 9px; font-weight: 700; color: var(--muted); max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }

/* Ryder: pestañas de tramo (Fourball 1-9 / Greensome 10-18) y resumen de hándicaps del tramo */
.rm-segtabs { margin: 14px 0 12px; }
.rm-segtabs button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding-top: 7px; padding-bottom: 7px; line-height: 1.1; }
.rm-segtabs button b { font-size: 14.5px; }
.rm-segtabs button small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; opacity: .8; }
.rm-sdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.rm-sum .box-body { padding: 12px 14px; }
.rm-sum-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rm-sum-h b { font-size: 16px; color: var(--navy-900); }
.rm-sum-m { font-size: 12.5px; color: var(--muted); margin: 3px 0 8px; }
.rm-hcps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.rm-hcps li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.rm-hcps li .grow { flex: 1; min-width: 0; font-weight: 700; }
.rm-hcps li .grow small { font-weight: 500; color: var(--muted); }
.rm-hcps li em { font-style: normal; font-size: 12px; color: var(--muted); }
.rm-hcps li b { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--red-50); color: var(--red); }
.rm-hcps li b.sc { background: var(--steel-100); color: var(--navy-900); }
.rm-hcps li small:last-child { flex-basis: 100%; text-align: right; font-size: 11px; color: var(--muted); margin-top: -3px; }
.rm-sum-r { margin-top: 9px; font-weight: 800; font-size: 14px; }
.rm-sum-r.b { color: var(--navy-900); }
.rm-sum-r.a { color: #A07400; }
.rm-sum-r small { font-weight: 500; color: var(--muted); }
.ry-role.due { background: var(--red); color: #fff; }
.pill-navy { background: #E3EAF3; color: var(--navy-900); }
.rm-sdot.sub { background: #F0A92B; }

/* Ryder: colores de equipo (Seniors rojo, Juniors azul) y cabecera del enfrentamiento por tramo */
.rm-t tr.won td.wA { color: var(--ry-j); }
.rm-sc:first-child b { color: var(--ry-s); }
.rm-sc:last-child b { color: var(--ry-j); }
.ry-side:not(.r) b { color: var(--ry-s); }
.ry-side.r b { color: var(--ry-j); }
.ry-team:first-child .ry-th { background: var(--ry-s); }
.ry-team:last-child .ry-th { background: var(--ry-j); }
.ry-hs span.w:first-child { color: var(--ry-s); }
.ry-hs span.w:last-child { color: var(--ry-j); }
.rm-pick .tB.rm-pcol .rm-pteam { border-color: #EBC3C6; }
.rm-pick .tA.rm-pcol .rm-pteam { border-color: #C3D2EA; }
.rm-pick .tB .rm-pteam.on { background: var(--ry-s); border-color: var(--ry-s); }
.rm-pick .tA .rm-pteam.on { background: var(--ry-j); border-color: var(--ry-j); }
.rm-fmt { font-size: 12.5px; color: var(--muted); margin: -2px 0 8px; }
.rm-fmt b { color: var(--navy-900); }
.rm-side.tB .rm-ps b { color: var(--ry-s); }
.rm-side.tA .rm-ps b { color: var(--ry-j); }
.rm-ps .me b { text-decoration: underline; text-underline-offset: 3px; }
.rm-ps > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; }
.rm-side.r .rm-ps > div { justify-content: flex-end; }
.rm-ps > div > b:first-child { flex-basis: 100%; }
.rm-stk { display: inline-block; font-size: 10.5px !important; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: #FDECD8; color: #9A4B00 !important; line-height: 1.35; }
.rm-stk.sc { background: var(--steel-100); color: var(--navy-900) !important; }
.rm-here { font-size: 10.5px !important; color: var(--muted); }
.rm-pair { margin-top: 3px !important; padding-top: 3px; border-top: 1px dashed var(--border); }
.rm-pair small { font-weight: 700; }
.rm-lead { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; padding: 7px 10px; border-radius: 10px; font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: .01em; }
.rm-lead i { display: grid; place-items: center; font-style: normal; }
.rm-lead small { font-size: 11px; font-weight: 600; text-transform: none; opacity: .85; }
.rm-lead.b { background: var(--ry-s); color: #fff; justify-content: flex-start; }
.rm-lead.a { background: var(--ry-j); color: #fff; justify-content: flex-end; }
.rm-lead.h { background: var(--steel-50); color: var(--navy-900); }
.ry-mside:not(.r) b { color: var(--ry-s); }
.ry-mside.r b { color: var(--ry-j); }
.rm-gn span:first-child { color: var(--ry-s); }
.rm-gn span:last-child { color: var(--ry-j); }

/* Ryder: resultado de un tramo para consultar (lado ganador en su color, hoyos ganados en círculo, clasificación) */
.ryr { margin-bottom: 16px; }
.ryr-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 2px 6px; }
.ryr-h b { font-size: 15px; color: var(--navy-900); }
.ryr-h span { font-size: 11.5px; color: var(--muted); }
.ryr-top { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(16,32,48,.06); }
.ryr-side { display: flex; align-items: center; gap: 8px; padding: 11px 12px; min-width: 0; }
.ryr-side.tA { flex-direction: row-reverse; text-align: right; }
.ryr-names { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ryr-names b { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 2px; }
.ryr-names small { font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ryr-names small.ryr-pair { font-weight: 700; opacity: .85; }
.ryr-side.tB { color: var(--ry-s); }
.ryr-side.tA { color: var(--ry-j); }
.ryr-side.win { color: #fff; }
.ryr-side.tB.win { background: var(--ry-s); }
.ryr-side.tA.win { background: var(--ry-j); }
.ryr-res { display: flex; flex-direction: column; align-items: center; flex: none; }
.ryr-res b { font-size: 28px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.ryr-res b i { font-style: normal; font-size: 16px; margin: 0 1px; }
.ryr-res small { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; opacity: .9; }
.ryr-mid { text-align: center; font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.ryr-mid b { color: var(--navy-900); }
.ryr-tw { margin-top: 10px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(16,32,48,.06); }
.ryr-t { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.ryr-t th:first-child { width: 46px; text-align: left; padding-left: 8px; }
.ryr-t th:last-child, .ryr-t td.tot { width: 32px; }
.ryr-t thead th { background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 800; padding: 8px 0; text-align: center; }
.ryr-t thead th:first-child { text-align: left; }
.ryr-t.b thead th { background: var(--ry-s); }
.ryr-t.a thead th { background: var(--ry-j); }
.ryr-t tbody th { text-align: left; font-size: 11.5px; font-weight: 800; color: var(--muted); padding: 0 0 0 8px; }
.ryr-t td { text-align: center; padding: 7px 0; border-top: 1px solid var(--border); }
.ryr-t tbody th { border-top: 1px solid var(--border); }
.ryr-t tr.par td { color: var(--muted); }
.ryr-t td.tot { font-weight: 900; color: var(--navy-900); }
.ryr-t tr.tB td { color: var(--ry-s); font-weight: 700; }
.ryr-t tr.tA td { color: var(--ry-j); font-weight: 700; }
.ryr-t td span { position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.ryr-t tr.tB td span.win { background: var(--ry-s); color: #fff; }
.ryr-t tr.tA td span.win { background: var(--ry-j); color: #fff; }
.ryr-t td span i { position: absolute; top: -5px; right: -3px; font-style: normal; font-size: 9px; letter-spacing: -1px; color: var(--muted); }
.ryr-t td.dead { opacity: .35; }
.ryr-tl { width: 22px; height: auto; display: block; }
.ryr-t.ini th:first-child { width: 62px; }
.ryr-who { display: flex; align-items: center; gap: 4px; }
.ryr-who b { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.ryr-t tr.tB .ryr-who b { color: var(--ry-s); }
.ryr-t tr.tA .ryr-who b { color: var(--ry-j); }
.ryr-t tr.run td { font-size: 10.5px; padding: 8px 0; }
.ryr-t tr.run td b.b { color: var(--ry-s); }
.ryr-t tr.run td b.a { color: var(--ry-j); }
.ryr-t tr.run td b.h { color: var(--navy-900); }

/* Ryder: resultado con flecha hacia el ganador (Seniors rojo ←, Juniors azul →) y marcador en barra */
.ryb { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; height: 44px; padding: 0 14px; color: #fff; flex: none; }
.ryb b { font-size: 18px; font-weight: 900; line-height: 1; }
.ryb b i { font-style: normal; font-size: 12px; margin: 0 1px; }
.ryb small { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; opacity: .92; }
.ryb.b { background: var(--ry-s); clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); padding-left: 22px; }
.ryb.a { background: var(--ry-j); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-right: 22px; }
.ryb.h { background: #E9EDF2; color: var(--navy-900); border-radius: 10px; }
.ryb.p { background: var(--steel-50); color: var(--muted); border-radius: 10px; }
.ryb.live { opacity: .88; }
.ryb.sm { min-width: 60px; height: 34px; padding: 0 10px; }
.ryb.sm b { font-size: 14px; }
.ryb.sm small { font-size: 8px; margin-top: 2px; }
.ryb.sm.b { padding-left: 17px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.ryb.sm.a { padding-right: 17px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.ry-segrows { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.ry-segrow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.ry-segrow > span:first-child { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rm-gs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rm-gseg { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.rm-gseg > small { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rysb { display: grid; grid-template-columns: 1fr auto auto 1fr; gap: 6px; margin: 4px 0 6px; }
.rysb-t { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 12px; border-radius: 14px; color: #fff; }
.rysb-t b { font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rysb-t.b { background: var(--ry-s); border-radius: 14px 4px 4px 14px; }
.rysb-t.a { background: var(--ry-j); justify-content: flex-end; border-radius: 4px 14px 14px 4px; }
.rysb-l { width: 30px; height: auto; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.rysb-n { display: grid; place-items: center; min-width: 52px; padding: 0 10px; font-size: 26px; font-weight: 900; color: rgba(255,255,255,.75); border-radius: 4px; }
.rysb-n.b { background: #163A77; }
.rysb-n.a { background: #8A1B24; }
.rysb-n.lead { color: #fff; }
.rysb-n.b.lead { background: var(--ry-s); clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); padding-left: 20px; }
.rysb-n.a.lead { background: var(--ry-j); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); padding-right: 20px; }
/* Copa del ganador junto al nombre (hacia el centro): no se encoge; el nombre cede espacio si hace falta */
.rysb-cup { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #F2C230; color: #6B4A00; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.rysb-cup svg { width: 12px; height: 12px; }
.rysb.done { display: flex; }
.rysb.done .rysb-t { flex: 1 1 auto; gap: 5px; padding-left: 7px; padding-right: 7px; }
.rysb.done .rysb-n { flex: none; }
.rysb.done .rysb-t b { letter-spacing: 0; min-width: 0; font-size: 11.5px; }
.rysb.done .rysb-n { min-width: clamp(40px, 12vw, 72px); padding: 0 8px; font-size: clamp(22px, 6vw, 28px); }
.rysb.done .rysb-n.b.lead { padding-left: 16px; }
.rysb.done .rysb-n.a.lead { padding-right: 16px; }
.rysb-sub { text-align: center; font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.rysb-sub b { color: var(--navy-900); }
.pv-table td.rm-hw { font-size: 11.5px; }
.pv-table td.rm-hw.h { color: var(--navy-900); }
.rysb { gap: 4px; }
.rysb-t { padding: 9px 8px; gap: 6px; }
.rysb-t b { font-size: 12px; letter-spacing: .03em; }
.rysb-l { width: 24px; }
.rysb-n { min-width: 44px; padding: 0 8px; font-size: 24px; }
.rysb-n.b.lead { padding-left: 18px; }
.rysb-n.a.lead { padding-right: 18px; }

/* Ryder: cabecera compacta (golpes entre paréntesis, resultado con flecha en el centro) y ventana de hándicaps */
.rm-info { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.rm-meta .pill + .rm-info { margin-left: -2px; }
.rm-ps > div > b:first-child { font-size: 15px; }
.rm-n { font-weight: 700; opacity: .8; }
.rm-x .ryb { vertical-align: middle; }
.rm-vs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.rm-pair small { font-size: 12px; font-weight: 800; }
.rm-side.tB .rm-pair small { color: var(--ry-s); }
.rm-side.tA .rm-pair small { color: var(--ry-j); }
.rm-isheet h3 { margin: 0; }
.rm-it { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rm-it th { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.rm-it th:first-child, .rm-it td:first-child { text-align: left; }
.rm-it td { text-align: center; padding: 8px 4px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rm-it td small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; }
.rm-it tr.tB td:first-child b { color: var(--ry-s); }
.rm-it tr.tA td:first-child b { color: var(--ry-j); }
.rm-it tr.pair td { background: var(--steel-50); }
.rm-it td.g { font-weight: 900; color: var(--navy-900); }
.rm-it .tee { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); vertical-align: 0; }
.rm-iscr { margin: 12px 0 6px; font-size: 13.5px; line-height: 1.5; }
.rm-inote { font-size: 11.5px; color: var(--muted); margin: 6px 0 12px; line-height: 1.45; }
.rm-ps > div > b:first-child { font-size: 14px; white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.15; }
.rm-x .ryb.sm { min-width: 54px; padding-left: 8px; padding-right: 8px; }
.rm-x .ryb.sm.b { padding-left: 15px; }
.rm-x .ryb.sm.a { padding-right: 15px; }
.rm-vs { gap: 4px; }
.rm-side { gap: 6px; }
.rm-logo { width: 34px; }
.rm-it td.g18 { color: var(--muted); font-weight: 700; }
.rm-it th { white-space: normal; line-height: 1.15; }
.rm-it { font-size: 13px; }
.rm-it th { padding: 6px 3px; }
.rm-it td { padding: 8px 3px; }
.rm-it .nw, .rm-it td small { white-space: nowrap; }
.rm-it td:first-child b { white-space: nowrap; }

/* Ryder «Por jugador»: los jugadores (o las dos parejas) en una sola fila */
.rm-pick1 { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 12px; }
.rm-pick1 button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 7px 4px 6px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; color: var(--text); }
.rm-pick1 button b { max-width: 100%; font-size: 12.5px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.rm-pick1 button small { font-size: 10.5px; color: var(--muted); }
.rm-pick1 button.tB { border-color: #EBC3C6; }
.rm-pick1 button.tA { border-color: #C3D2EA; }
.rm-pick1 button.tB b { color: var(--ry-s); }
.rm-pick1 button.tA b { color: var(--ry-j); }
.rm-pick1 button.on.tB { background: var(--ry-s); border-color: var(--ry-s); }
.rm-pick1 button.on.tA { background: var(--ry-j); border-color: var(--ry-j); }
.rm-pick1 button.on b, .rm-pick1 button.on small { color: #fff; }
.rm-pick1 .rm-pav { width: 30px; height: 30px; }

/* Ryder: marcador proyectado (debajo del real, más discreto) */
.rysb-proj { margin: 4px 0 14px; padding: 10px 10px 2px; border-radius: 16px; border: 1.5px dashed var(--border); background: #fff; }
.rysb-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 2px 6px; }
.rysb-ph b { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-900); }
.rysb-ph span { font-size: 12px; color: var(--muted); text-align: right; }
.rysb.proj { margin: 0 0 6px; opacity: .9; }
.rysb.proj .rysb-t { padding: 6px 8px; }
.rysb.proj .rysb-t b { font-size: 11px; }
.rysb.proj .rysb-l { width: 20px; }
.rysb.proj .rysb-n { font-size: 20px; min-width: 40px; }
.rysb-proj .rysb-sub { font-size: 11px; margin-bottom: 8px; }

/* Ryder: Clasificación como pestaña de arriba y ventana con la tarjeta de cada enfrentamiento */
button.rm-gm { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.rm-segtabs button { min-width: 0; }
.rm-segtabs button b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rms-h { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.rms-h b { display: block; font-size: 15px; line-height: 1.25; }
.rms-h b i { font-style: normal; font-weight: 600; color: var(--muted); font-size: 12px; margin: 0 3px; }
.rms-h .cB { color: var(--ry-s); } .rms-h .cA { color: var(--ry-j); }
.rms-h small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.rms-tabs { margin: 10px 0 12px; }
.rms #rms-body { margin-top: 10px; }
.rms .btn + .btn, .rms #rms-body + .btn { margin-top: 8px; }
.rm-segtabs button { line-height: 1.25; }
.rm-segtabs button b, .rm-segtabs button small { line-height: 1.3; padding-bottom: 2px; overflow: visible; text-overflow: clip; }
.rm-segtabs button { height: auto; min-height: 48px; padding: 6px 4px; }
.rm-segtabs button b, .rm-segtabs button small { padding-bottom: 0; }
/* Tarjeta de resultado: misma altura de filas aunque el tramo no haya empezado */
.ryr-t tr.tB td, .ryr-t tr.tA td, .ryr-t tr.tB th, .ryr-t tr.tA th { height: 42px; }
.ryr-t tr.run td, .ryr-t tr.run th { height: 32px; }

/* Jugar: las cuatro tarjetas en una sola columna, cada una en su línea y más bajas */
.play-grid { grid-template-columns: 1fr; gap: 10px; }
.play-grid .play-4 {
  min-height: 104px; padding: 14px 14px 14px 16px; display: grid; align-items: center; column-gap: 14px; row-gap: 1px;
  grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr;
  grid-template-areas: "b s s" "b h c" "b p c";
}
.play-grid .play-4 .play-badge { grid-area: b; align-self: center; width: 46px; height: 46px; margin: 0; }
.play-grid .play-4 small { grid-area: s; }
.play-grid .play-4 h3 { grid-area: h; font-size: 21px; }
.play-grid .play-4 p { grid-area: p; align-self: start; max-width: none; font-size: 12.5px; }
.play-grid .play-4 .tile-cta, .play-grid .play-4 .ry-win { grid-area: c; align-self: end; justify-self: end; margin: 0; }
.play-grid .play-4 .tile-tag { top: 12px; right: 12px; }
.play-grid .tile-ranking::before { background-position: 92% 50%; background-size: 160% auto; }
.play-grid .tile-match::before { background-position: 0% 88%; background-size: 160% auto; }
/* Jugar: Pool en amarillo (estrella amarilla) y Match en rojo (estrella roja), sin foto de fondo */
.play-grid .tile-ranking::before, .play-grid .tile-match::before { background: none; }
.play-grid .tile-ranking { background: linear-gradient(150deg, #E3A72F, #A86E0C); }
.play-grid .tile-match { background: linear-gradient(150deg, #CC3333, #8E1B1F); }
.play-grid .tile-ranking .tile-cta { color: #8A5A08; }
.play-grid .tile-match .tile-cta { color: #8E1B1F; }
.play-grid .tile-match .tile-tag { background: #fff; color: #8E1B1F; }
/* Ryder · hoyo a hoyo: cada hoyo del color del equipo que lo gana; empatado (AS) en gris. El actual lleva un anillo. */
.hv-strip button.done.wB { background: var(--ry-s); border-color: var(--ry-s); color: #fff; }
.hv-strip button.done.wA { background: var(--ry-j); border-color: var(--ry-j); color: #fff; }
.hv-strip button.done.wH { background: #8E99A6; border-color: #8E99A6; color: #fff; }
.hv-strip button.cur.wB, .hv-strip button.cur.wA, .hv-strip button.cur.wH { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy-900); }
.hv-strip { padding: 5px 5px 10px; }

/* Eslogan de la portada: Kaushan Script (Google Fonts, licencia OFL: libre también para uso comercial), completa en la app */
@font-face { font-family: "Kaushan Script"; src: url(../fonts/kaushan-script.woff2) format("woff2"); font-display: swap; }
.home-slogan { font-family: "Kaushan Script", "Brush Script MT", cursive; font-size: 20px; }
/* Cuadro del match: los cruces terminados abren su tarjeta */
.bm.bm-open { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.bm.bm-open:active { transform: scale(.98); }
@media (hover: hover) { .bm.bm-open:hover { box-shadow: 0 0 0 2px rgba(255,255,255,.55); } }
/* Match · últimos resultados en acordeón (eliminatorias / fase de grupos) */
.rr-acc { padding: 0; overflow: hidden; margin-bottom: 10px; }
.rr-acc > summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.rr-acc > summary::-webkit-details-marker { display: none; }
.rr-acc > summary b { font-size: 16px; color: var(--navy-900); }
.rr-acc > summary .muted { flex: 1; font-size: 12.5px; }
.rr-acc > summary > svg { transition: transform .2s; color: var(--muted); }
.rr-acc[open] > summary > svg { transform: rotate(90deg); }
.rr-acc[open] > summary { border-bottom: 1px solid var(--border); }
/* Inicio: botones de Clasificación Pool / Match más altos (aprovechan el hueco libre de la portada) */
.rank-cta { min-height: 78px; padding: 14px 12px 14px 14px; gap: 11px; border-radius: 16px; }
.rank-cta .rc-ic { width: 42px; height: 42px; border-radius: 12px; }
.rank-cta .rc-ic .ic { width: 22px; height: 22px; }
.rank-cta small { font-size: 10.5px; }
.rank-cta b { font-size: 19px; margin-top: 2px; }
/* Sotogrande · partidos (Jugar → Sotogrande) */
.soto-pls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 10px; }
.soto-pls > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.soto-pls > div b { font-size: 14px; color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soto-pls > div small { margin-left: auto; color: var(--muted); font-size: 12px; }
.soto-pls > div.me b { color: var(--red); }
.soto-tit { font-style: normal; font-size: 12px; color: var(--red); }
.soto-ok { color: var(--ok); font-weight: 700; }
.soto-pend { color: var(--warn, #B7791F); font-weight: 700; }
.soto-ldot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #E0262B; margin-right: 4px; vertical-align: middle; animation: live-blink 1.1s ease-in-out infinite; }
.soto-live { display: block; font-size: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.hv-strip .hv-sep { flex: 0 0 1px; align-self: stretch; margin: 4px 3px; background: var(--border); }
/* Sotogrande · golpes en modo lectura (quien no apunta) */
.hv-step span.hv-val { display: grid; place-items: center; min-width: 52px; height: 46px; padding: 0 10px; border-radius: 12px; background: var(--ok-50); color: var(--navy-900); font-size: 20px; font-weight: 800; }
.hv-step span.hv-val.empty { background: var(--steel-50); color: var(--muted); }
/* Sotogrande: ganador de la edición e histórico */
.soto-win { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #4E8A35, #1F4D22); box-shadow: 0 6px 18px rgba(31,77,34,.25); }
.soto-win .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.soto-win small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.soto-win b { font-size: 22px; font-weight: 900; text-transform: uppercase; line-height: 1.1; }
.soto-win span { font-size: 12.5px; opacity: .9; }
.soto-win .av { border: 2px solid #fff; }
.ev-board tr.soto-winrow td { background: #EEF6E8; }
.soto-hrow { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; width: 100%; }
li.soto-hrow { padding: 12px 16px; }
.soto-hw { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 13px; color: #1F4D22; background: #E6F0E1; padding: 4px 10px; border-radius: 999px; }

/* Tarjetas de un jugador en Sotogrande (formato match play, individual) */
.evc-top { display: grid; grid-template-columns: 1.25fr 1fr; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(16,32,48,.06); margin: 4px 0 16px; }
.evc-me { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--navy); color: #fff; min-width: 0; }
.evc-me .ryr-names small { opacity: .9; }
.evc-days { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 14px; }
.evc-days > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); }
.evc-days > div b { color: var(--navy-900); font-size: 16px; font-weight: 900; }
.evc-days > div.tot { border-top: 1px solid var(--border); padding-top: 5px; margin-top: 2px; align-items: center; }
.evc-day { margin-bottom: 18px; }
.evc-day .ryr-h span { display: inline-flex; align-items: center; gap: 4px; }
.evc-sum { display: flex; gap: 6px; }
.evc-sum > div { flex: 1; background: var(--steel-50); border-radius: 10px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.evc-sum b { font-size: 17px; font-weight: 900; color: var(--navy-900); line-height: 1.15; }
.evc-sum small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.evc-sum .vs { font-size: 13px; padding: 1px 8px; }
.evc-t tr.si td { color: var(--muted); font-size: 11px; padding: 4px 0; }
.evc-t tr.gs td, .evc-t tr.gs th { height: 42px; }
.evc-t th:first-child { width: 54px; }
.evc-t tr.gs td { position: relative; }
.evc-t tr.gs td .ls { width: 25px; height: 25px; font-size: 13px; }
.evc-t .evc-dot { position: absolute; top: 1px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 9px; line-height: 1; letter-spacing: -1px; color: var(--muted); }
.evc-t tr.pt td { font-weight: 800; color: var(--navy-900); }
.evc-t tr.pt td.good { color: var(--red); }
.evc-t tr.pt td.zero { color: var(--muted); font-weight: 600; }
.evc-skip { background: var(--steel-50); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.evc-skip b { color: var(--navy-900); }
.evc-tabs { margin: 0 0 14px; }
.evc-tabs button { display: flex; flex-direction: column; align-items: center; line-height: 1.2; padding-top: 7px; padding-bottom: 7px; }
.evc-tabs button small { font-size: 11px; font-weight: 600; opacity: .75; }
.soto-now-tabs { margin: 0 0 14px; }
/* Ryder terminada: cartel de campeones en el color del ganador */
.ry-champ { margin: 4px 0 14px; padding: 16px 14px 15px; border-radius: 18px; border: 3px solid #E2B94B; text-align: center; color: #fff; background: var(--ry-j); }
.ry-champ.b { background: var(--ry-s); }
.ry-champ small { display: block; color: #F2C94C; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.ry-champ b { display: block; margin: 4px 0 6px; font-size: clamp(26px, 8vw, 34px); font-weight: 900; line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
.ry-champ b span { font-size: .85em; margin-right: 4px; }
.ry-champ p { margin: 0; font-size: 14px; opacity: .95; }
/* Ryder terminada: marcador más grande y cartel de campeones más discreto */
.rysb.done .rysb-t { padding-top: 16px; padding-bottom: 16px; }
.rysb.done .rysb-l { width: clamp(24px, 6.5vw, 40px); }
.rysb.done .rysb-t b { font-size: clamp(11.5px, 3vw, 14px); }
.rysb.done { gap: 4px; }
.rysb.done .rysb-n { min-width: clamp(38px, 12vw, 84px); padding: 0 6px; font-size: clamp(26px, 7.2vw, 38px); }
.rysb.done .rysb-cup { width: 24px; height: 24px; }
.rysb.done .rysb-cup svg { width: 14px; height: 14px; }
.ry-champ { margin: 2px 0 12px; padding: 9px 12px 10px; border-radius: 14px; border-width: 2px; }
.ry-champ small { font-size: 10.5px; letter-spacing: .18em; }
.ry-champ b { margin: 2px 0 3px; font-size: clamp(19px, 5.5vw, 23px); }
.ry-champ p { font-size: 12.5px; }
.rysb.done .rysb-n.dec { font-size: clamp(22px, 6vw, 38px); padding: 0 4px; }
.rysb.done .rysb-n.b.lead.dec { padding-left: 13px; }
.rysb.done .rysb-n.a.lead.dec { padding-right: 13px; }
@media (max-width: 379px) { .rysb.done .rysb-l { width: 21px; } .rysb.done .rysb-t { gap: 4px; padding-left: 5px; padding-right: 5px; } .rysb.done .rysb-t b { font-size: 11px; } .rysb.done .rysb-cup { width: 20px; height: 20px; } }
/* Tirar para actualizar (app instalada) */
.ptr { position: fixed; left: 50%; top: calc(var(--safe-t) + 4px); z-index: 80; width: 38px; height: 38px; margin-top: -38px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--navy-900, #13263F); box-shadow: 0 2px 10px rgba(0,0,0,.2); opacity: 0; transition: opacity .15s; pointer-events: none; }
.ptr.go { color: #fff; background: var(--navy-900, #13263F); }
.ptr.spin svg { animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
.rysb.done .lose { background: #fff; box-shadow: inset 0 0 0 1.5px currentColor; }
.rysb.done .b.lose { color: var(--ry-s); }
.rysb.done .a.lose { color: var(--ry-j); }
/* Clasificación de la Ryder: enfrentamiento en una fila, Seniors | resultado | Juniors; el ganador con el fondo de su color */
.rmx { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); width: 100%; margin: 0 0 6px; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: 0 1px 6px rgba(16,32,48,.06); font: inherit; text-align: left; color: inherit; cursor: pointer; }
.rmx-s { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; padding: 9px 10px; }
.rmx-s.tB { color: var(--ry-s); }
.rmx-s.tA { color: var(--ry-j); align-items: flex-end; text-align: right; }
.rmx-s.win.tB { background: var(--ry-s); color: #fff; }
.rmx-s.win.tA { background: var(--ry-j); color: #fff; }
.rmx-s.lead.tB { background: var(--ry-s-50); }
.rmx-s.lead.tA { background: var(--ry-j-50); }
.rmx-s span { display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.rmx-s.tA span { flex-direction: row-reverse; }
.rmx-s b { font-size: 13px; font-weight: 800; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmx-s span.pr small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.rmx-s em { flex: none; font-style: normal; font-size: 10.5px; font-weight: 800; line-height: 1; padding: 3px 5px; border-radius: 6px; }
.rmx-s.tB em { background: var(--ry-s-50); color: var(--ry-s); }
.rmx-s.tA em { background: var(--ry-j-50); color: var(--ry-j); }
.rmx-s.lead em { background: #fff; }
.rmx-s.win em { background: rgba(255,255,255,.2); color: #fff; }
.rmx-c { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 6px; }
.rmx-c > small { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.rmx-c .ry-st { font-size: 10px; }
/* Cabecera de cada bloque (día y modalidad) en la Clasificación de la Ryder */
.rmx-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.rmx-h b { flex: none; padding: 4px 10px; border-radius: 8px; background: var(--navy-900); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.rmx-h span { display: flex; align-items: baseline; gap: 6px; flex: none; font-size: 15px; font-weight: 900; color: var(--navy-900); text-transform: uppercase; letter-spacing: .02em; }
.rmx-h small { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: none; letter-spacing: 0; }
.rmx-h .rmx-line { flex: 1; min-width: 8px; height: 2px; border-radius: 2px; background: var(--steel-100, #dfe5ec); }
.rmx-h .rmx-tot { flex: none; display: flex; gap: 0; text-transform: none; letter-spacing: 0; flex-direction: column; align-items: center; min-width: 54px; padding: 3px 8px; border-radius: 8px; line-height: 1.1; }
.rmx-h .rmx-tot b { color: inherit; text-transform: none; font-size: 14px; font-weight: 900; padding: 0; background: none; letter-spacing: .02em; }
.rmx-h .rmx-tot small { color: inherit; letter-spacing: 0; font-size: 10px; font-weight: 700; opacity: .9; }
.rmx-h .rmx-tot.b { background: var(--ry-s); color: #fff; }
.rmx-h .rmx-tot.a { background: var(--ry-j); color: #fff; }
.rmx-h .rmx-tot.h { background: var(--steel-100, #e6ebf1); color: var(--navy-900); }
/* Hándicap (índice) de cada hoyo en las tarjetas */
table.lc-table td.si, .mx-table td.si { color: var(--muted); font-size: 11px; }
.mc-t tr.si td { color: var(--muted); font-size: 11px; padding-top: 2px; padding-bottom: 2px; }
.mc-t tr.si td:first-child { color: var(--text); font-weight: 600; }
.ryr-t tr.si td { color: var(--muted); font-size: 11px; padding-top: 2px; padding-bottom: 2px; }
.rms-info { flex: none; display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
  color: var(--navy-900); font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; cursor: pointer; }
.rms-h .grow { min-width: 0; flex: 1; }
.rm-irecv { display: block; padding-left: 10px; } .rm-irecv small { color: var(--muted); }
/* Fourball: tarjeta de los cuatro jugadores */
.ryr-sub { margin: 12px 2px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ryr-t.pl th:first-child { width: 64px; }
.ryr-pn { display: block; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.ryr-t.pl tr.tB th { color: var(--ry-s); } .ryr-t.pl tr.tA th { color: var(--ry-j); }
.ryr-t.pl td { padding: 5px 0; }
.ryr-t.pl tr.tB td span.cnt { box-shadow: inset 0 0 0 2px var(--ry-s); }
.ryr-t.pl tr.tA td span.cnt { box-shadow: inset 0 0 0 2px var(--ry-j); }
/* Golpe que recibe en el hoyo: punto verde bien visible */
.ryr-t td span i { top: -4px; right: -5px; font-size: 0; width: 9px; height: 9px; border-radius: 50%; background: #1E9E55; box-shadow: 0 0 0 1.5px #fff; letter-spacing: 0; }
.ryr-t td span i.x2 { width: 9px; box-shadow: 0 0 0 1.5px #fff, -7px 0 0 0 #1E9E55, -7px 0 0 1.5px #fff; }
.rmx-blk { margin-top: 22px; }
.rmx-blk.day { margin-top: 34px; }
.rmx-blk:first-of-type { margin-top: 10px; }
.rmx-f { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 2px; }
.rmx-f span { padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 900; letter-spacing: .02em; }
.rmx-f .tB { background: var(--ry-s-50); color: var(--ry-s); }
.rmx-f .tA { background: var(--ry-j-50); color: var(--ry-j); text-align: right; }

/* Marcador de la Pool: vista elegida bien marcada, puntos del hoyo y total, tarjetas destacadas, entregar y anular discreto */
.sc-view { background: #DCE3EA; }
.sc-view button.on { background: var(--navy); color: #fff; box-shadow: 0 3px 8px rgba(43,74,107,.3); }
.hv-pts { display: flex; gap: 5px; flex-shrink: 0; }
.hv-pts span { width: 44px; height: 46px; border-radius: 12px; border: 1.5px solid #9BD3B3; background: var(--ok-50); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hv-p .hv-pts b { padding: 0; font-size: 19px; font-weight: 800; line-height: 1; overflow: visible; color: var(--text); }
.hv-p .hv-pts small { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.hv-pts span.good { background: #CDEFD9; border-color: #1E9E55; }
.hv-pts span.good b { color: #157A41; }
.hv-pts span.zero { background: #FDECEC; border-color: #F1B5B5; }
.hv-pts span.zero b { color: var(--bad); }
.hv-pts span.empty { background: var(--steel-50); border-color: var(--border); }
.hv-pts span.empty b { color: var(--muted); }
.hv-pts span.tot { background: var(--navy); border-color: var(--navy); }
.hv-p .hv-pts span.tot b, .hv-p .hv-pts span.tot small { color: #fff; }
@media (max-width: 379px) { .hv-pts span { width: 38px; } .hv-step button { width: 36px; } .hv-step .hv-val { width: 44px; } }
.sc-body .sc-foot:not(.done) { background: #FFF6DD; border: 1.5px solid #F2C94C; }
.sc-body .sc-foot.ready:not(.done) { background: var(--ok-50); border-color: #1E9E55; }
.sc-submit { display: flex; flex-direction: column; align-items: center; gap: 2px; height: auto; padding: 12px 14px; margin: 4px 0 12px; border-radius: 14px;
  background: var(--steel-50); color: var(--muted); border: 1.5px dashed var(--border); font-weight: 800; font-size: 16px; }
.sc-submit small { font-size: 12px; font-weight: 600; }
.sc-submit svg { display: none; }
.sc-submit.on { background: var(--red, #B0232E); color: #fff; border: 0; box-shadow: 0 6px 14px rgba(176,35,46,.3); }
.sc-submit.on small { color: rgba(255,255,255,.85); }
.sc-sub { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border-radius: 14px; background: var(--ok-50); border: 1.5px solid #1E9E55; color: var(--ok); }
.sc-sub b { display: block; font-size: 14.5px; }
.sc-sub small { color: var(--muted); font-size: 12.5px; }
.sc-link { border: 0; background: none; color: var(--navy); font-weight: 700; font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 4px; white-space: nowrap; }
.sc-cancel { display: flex; align-items: center; gap: 5px; margin: 18px auto 6px; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 6px 10px; opacity: .8; }

/* Ficha del jugador: Target para subir la media global y accesos al Simulador y la Calculadora */
.cc-tg { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; padding: 5px 9px; border-radius: 9px; background: var(--navy); color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; }
.cc-tg i { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cc-tg b { color: #fff; font-size: 17px; font-weight: 800; line-height: 1; }
.cc-tg em { font-style: normal; font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.pl-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pl-tools .btn { display: flex; align-items: center; justify-content: center; gap: 6px; }

/* Sotogrande · histórico: jugadores del partido que abren su tarjeta, y tarjeta con estilo Sotogrande (verde + amarillo) */
.soto-pls-go > a { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; margin: -2px -4px; border-radius: 10px; color: inherit; text-decoration: none; background: #F3F8EF; }
.soto-pls-go > a b { font-size: 14px; color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soto-pls-go > a small { margin-left: auto; color: var(--muted); font-size: 12px; }
.soto-pls-go > a .ic { flex-shrink: 0; color: #4E8A35; }
.soto-pls-go > a.me b { color: var(--red); }
.soto-card-hero { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 12px; border-radius: 16px; color: #fff; background: linear-gradient(150deg, #4E8A35, #1F4D22); }
.soto-card-hero > div:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.soto-card-hero small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #F6C619; }
.soto-card-hero b { font-size: 18px; font-weight: 900; line-height: 1.15; }
.soto-card-hero span { font-size: 12.5px; opacity: .9; }
.soto-card-tot { flex-shrink: 0; min-width: 74px; padding: 8px 10px; border-radius: 13px; background: #F6C619; color: #1F4D22; text-align: center; }
.soto-card-tot b { display: block; font-size: 28px; line-height: 1; }
.soto-card-tot small { color: #1F4D22; font-size: 10px; letter-spacing: .04em; }
.soto-sc { border: 2px solid #F6C619; }
.soto-sc .box-head { background: #F6C619; }
.soto-sc .box-head h2 { color: #1F4D22; }
.soto-sc table.sc th { background: #F6C619; color: #1F4D22; }
.soto-sc table.sc th:first-child, .soto-sc table.sc tr.sum td:first-child { padding-left: 6px; }
.soto-sc table.sc tr.sum td { background: #FFF4C2; color: #1F4D22; }
.soto-sc .totals { background: linear-gradient(150deg, #4E8A35, #1F4D22); }
.soto-sc .totals b { color: #F6C619; }
/* Cajas estrechas (móvil): que «Mín» no se salga de la caja con medias de dos cifras y decimales */
@container (max-width: 180px) {
  .cc-range em { font-size: 13px; gap: 2px; }
  .cc-range i { font-size: 8.5px; letter-spacing: 0; }
  .cc-tg b { font-size: 15px; }
}
.soto-sc .soto-sc-logo { justify-content: center; padding: 12px 16px 10px; }
.soto-sc .soto-sc-logo img { display: block; height: 26px; width: auto; max-width: 70%; }

/* Sotogrande · tarjetas de un jugador (desde la clasificación): colores y logo de Sotogrande, como su tarjeta */
.soto-evc .evc-me { background: linear-gradient(150deg, #4E8A35, #1F4D22); }
.soto-evc .evc-me .ryr-res b { color: #F6C619; }
.soto-evc .evc-tabs button.on { background: #F6C619; color: #1F4D22; }
.evc-soto { border: 2px solid #F6C619; border-radius: 16px; overflow: hidden; background: #fff; margin-bottom: 12px; }
.evc-soto .soto-sc-logo { display: flex; justify-content: center; background: #F6C619; padding: 12px 16px 10px; }
.evc-soto .soto-sc-logo img { display: block; height: 24px; width: auto; max-width: 70%; }
.evc-soto #evc-body { padding: 12px 10px 2px; }
.evc-soto .evc-day { margin-bottom: 10px; }
.soto-evc .ryr-t thead th { background: #F6C619; color: #1F4D22; }
.soto-evc .evc-t tr.pt td, .soto-evc .evc-t tr.pt th { background: #FFF4C2; color: #1F4D22; }
.soto-evc .evc-t tr.pt td.good { color: var(--red); }
.soto-evc .evc-t tr.pt td.zero { color: var(--muted); }
.soto-evc .ryr-t td.tot { color: #1F4D22; }

/* Tarjeta de juego: lo que juega cada uno (1×9, 2×9, 1×18) y su hándicap de juego (HPJ) destacado */
.hv-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hv-name b { min-width: 0; padding-right: 0; }
.hv-name .sc-dots { position: relative; top: -2px; margin-left: 4px; }
.sc-kind { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--bg, #eef1f5); color: var(--navy); border: 1px solid var(--border); line-height: 1.3; }
.sc-hpj { display: inline-block; margin-top: 3px; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--navy); border-radius: 6px; padding: 1px 7px; letter-spacing: .02em; }
.pv-head .sc-hpj { margin: 0 4px 0 0; }
.pv-chips button small.pv-hpj { font-weight: 800; color: var(--navy); font-size: 12px; }
.pv-chips button.on small.pv-hpj { color: #fff; }
.pl-tools.pl-tools3 { grid-template-columns: 1fr auto 1fr; }
.pl-tools.pl-tools3 .btn { padding-left: 14px; padding-right: 14px; }
.pl-tools.mt-tools { margin-bottom: 14px; }
