/* Grand Prix Hub · Fase 3 (primera parte): ligas privadas y pie de página con el aviso legal. */

/* ---------- Ligas privadas ---------- */
.gph-leagues { grid-column: 1 / -1; display: grid; gap: 16px; }
.gph-leagues > h2 { margin: 0; }
.gph-lg { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; background: var(--card); }
.gph-lg-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.gph-lg-head h3 { margin: 0; font: 700 22px 'Barlow Condensed', sans-serif; }
.gph-lg-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.gph-lg-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gph-lg-code span { font: 600 10px 'DM Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gph-lg-code b { font: 700 22px 'Barlow Condensed', sans-serif; letter-spacing: .14em; padding: 4px 10px; border: 1px dashed var(--line); border-radius: 8px; font-variant-numeric: tabular-nums; }
.gph-lg-code .outline-button { min-height: 40px; }
.gph-lg-table { margin: 0; padding: 0; list-style: none; display: grid; }
.gph-lg-table li {
  display: grid; grid-template-columns: 2em minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 9px 2px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.gph-lg-table li:first-child { border-top: 0; }
.gph-lg-table li b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gph-lg-table li span:not(.gph-lg-pos) { color: var(--muted); font-size: 12px; white-space: nowrap; }
.gph-lg-table li strong { font: 700 18px 'Barlow Condensed', sans-serif; white-space: nowrap; text-align: right; min-width: 3.5em; }
.gph-lg-pos { font: 700 16px 'Barlow Condensed', sans-serif; color: var(--muted); }
.gph-lg-table li:first-child .gph-lg-pos { color: var(--red); }
@media (max-width: 420px) { .gph-lg-table li { grid-template-columns: 1.6em minmax(0, 1fr) auto; } .gph-lg-table li span:not(.gph-lg-pos) { display: none; } }
.gph-lg-leave { justify-self: start; color: var(--muted); font-size: 12px; }
.gph-lg-leave[data-confirm="1"] { color: var(--red); font-weight: 700; }
.gph-lg-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gph-lg-form { display: grid; gap: 6px; }
.gph-lg-form label { font: 600 11px 'DM Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gph-lg-form > div { display: flex; gap: 8px; }
.gph-lg-form input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink);
  font: 500 15px 'DM Sans', sans-serif;
}
.gph-lg-form #lgCode { text-transform: uppercase; letter-spacing: .12em; }
.gph-lg-form input:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.gph-lg-form .primary-button { min-height: 44px; white-space: nowrap; }

/* ---------- Pie de página ---------- */
.gph-footer {
  margin: 40px 0 0; padding: 20px 0 8px; border-top: 1px solid var(--line);
  display: grid; gap: 6px; color: var(--muted); font-size: 12px; line-height: 1.55; max-width: 760px;
}
.gph-footer p { margin: 0; }
.gph-footer .text-button { font-size: 12px; font-weight: 700; padding: 0; color: var(--red); }
.gph-lg-form .primary-button { flex: 0 0 auto; width: auto; padding-inline: 18px; }

/* ---------- Inicio de sesión con Google ---------- */
.social-login.gph-google-only { grid-template-columns: 1fr; display: grid; }
.social-login.gph-google-only > button { width: 100%; }
.gph-google-slot { display: flex; justify-content: center; min-height: 44px; }

/* ---------- Avisos en el móvil ---------- */
#pushSettings { display: grid; gap: 6px; margin: 14px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); }
#pushSettings h3 { margin: 0; }
#pushSettings p { margin: 0; }
.gph-push-open { margin-left: 8px; }
