/*
 * GOLF MATCH ZONE Â· COMPONENTES
 * Cargar despuÃ©s de app.css. No minificar este archivo fuente.
 *
 * Ã�NDICE
 * 01 Tema general: colores, tipografÃ­a y presentaciÃ³n compartida.
 * 02 Competiciones individuales.
 * 03 Tarjetas de resultados.
 * 04 GestiÃ³n de torneos, galerÃ­a y salidas.
 * 05 Formulario y estadÃ­sticas de partidas entre amigos.
 * 06 MenÃºs de acciones y navegaciÃ³n mÃ³vil.
 * 07 Tarjetas de eventos y ayudas (i).
 * 08 Componentes compartidos: formularios, acciones, cabeceras y superficies.
 *
 * Las clases gmz-use-* del elemento HTML delimitan dÃ³nde se aplicaban
 * los antiguos archivos. :where() mantiene su especificidad original.
 * Conservar el orden de las secciones: las Ãºltimas completan las anteriores.
 */

/* ================================================================
 * 01 Â· TEMA GENERAL
 * ================================================================ */

/* ============================================================
   GOLFMATCHZONE Â· DESIGN SYSTEM
   Capa visual para Web JSP/Tomcat
   Cargar DESPUÃ‰S del app.css existente.
   ============================================================ */

:root {
    --ga-navy: #063443;
    --ga-navy-2: #052b37;
    --ga-green: #24b94f;
    --ga-green-2: #63db48;
    --ga-green-soft: #e9f8ed;
    --ga-green-light: #63db48;
    --ga-bg: #f3f6f7;
    --ga-card: #ffffff;
    --ga-ink: #102a31;
    --ga-muted: #6b7d82;
    --ga-line: #e1e8ea;
    --ga-danger: #ef4444;
    --ga-warning: #f3a712;
    --ga-radius: 16px;
    --ga-radius-sm: 11px;
    --ga-shadow: 0 8px 28px rgba(4, 43, 55, .08);
    --ga-shadow-hover: 0 14px 34px rgba(4, 43, 55, .13);

    /* Compatibilidad con variables existentes */
    --alava: var(--ga-green);
    --alava-dark: #14823a;
    --golf: var(--ga-green);
    --golf-dark: var(--ga-navy);
    --grass: var(--ga-green-2);
    --bg: var(--ga-bg);
    --ink: var(--ga-ink);
    --muted: var(--ga-muted);
    --card: var(--ga-card);
    --line: var(--ga-line);
    --shadow: var(--ga-shadow);
}

html,
body {
    background: var(--ga-bg);
    color: var(--ga-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    background:
        radial-gradient(circle at 88% -10%, rgba(36, 185, 79, .08), transparent 26rem),
        var(--ga-bg);
}

a {
    transition: .18s ease
}

.content {
    padding: 28px clamp(18px, 3vw, 36px)
}

.content>* {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto
}

/* ---------- CABECERA ---------- */
.topbar {
    height: 72px;
    padding: 0 clamp(16px, 3vw, 34px);
    background: linear-gradient(100deg, var(--ga-navy-2), var(--ga-navy));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 6px 24px rgba(2, 35, 45, .16);
}

.brand {
    gap: 10px;
    letter-spacing: -.2px
}

.brand-mark {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 13px;
    overflow: hidden;
    background: #fff url("../img/icon-192.png") center/cover no-repeat;
    color: transparent;
    font-size: 0;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
}

.brand>div:last-child {
    font-size: 18px;
    font-weight: 800
}

.brand small {
    opacity: .72;
    letter-spacing: .2px
}

.season-chip {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
}

/* ---------- LAYOUT / MENÃš ---------- */
.layout {
    grid-template-columns: 238px minmax(0, 1fr);
    min-height: calc(100vh - 72px)
}

.sidebar {
    background: linear-gradient(180deg, #063744, #052c37);
    border-right: 1px solid rgba(255, 255, 255, .05);
    padding: 20px 12px;
}

.userbox {
    border-bottom-color: rgba(255, 255, 255, .1)
}

.nav a {
    border-radius: 12px;
    padding: 12px 13px;
    color: #dbe8eb;
    font-weight: 650;
}

.nav a:hover,
.nav a.active {
    background: linear-gradient(90deg, rgba(36, 185, 79, .95), rgba(99, 219, 72, .9));
    box-shadow: 0 8px 20px rgba(36, 185, 79, .18);
}

/* ---------- ENCABEZADOS ---------- */
.page-heading {
    margin-bottom: 20px
}

.page-heading h1,
.toolbar h1 {
    margin: .15rem 0 .3rem;
    color: var(--ga-navy);
    font-size: clamp(25px, 3vw, 36px);
    letter-spacing: -.7px;
}

.eyebrow {
    color: var(--ga-green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.muted {
    color: var(--ga-muted)
}

/* ---------- HERO ---------- */
.hero {
    border: 0;
    border-radius: 22px;
    background:
        linear-gradient(115deg, rgba(5, 49, 62, .96), rgba(5, 57, 64, .86)),
        radial-gradient(circle at 78% 20%, rgba(99, 219, 72, .28), transparent 34%);
    box-shadow: var(--ga-shadow);
}

.hero::after {
    content: "";
    opacity: 0
}

.hero h1 {
    letter-spacing: -1px
}

/* ---------- TARJETAS ---------- */
.card,
.tv-panel,
.login-card,
.legal-card {
    border: 1px solid var(--ga-line);
    border-radius: var(--ga-radius);
    background: var(--ga-card);
    box-shadow: var(--ga-shadow);
}

.card {
    padding: 20px
}

.card:hover {
    box-shadow: var(--ga-shadow-hover)
}

.card h2,
.card h3 {
    color: var(--ga-navy)
}

.accent-title {
    color: var(--ga-navy)
}

/* ---------- BOTONES ---------- */
.btn {
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn-primary,
.btn-alava {
    color: #fff;
    background: linear-gradient(135deg, var(--ga-green), #1da744);
    box-shadow: 0 8px 18px rgba(36, 185, 79, .20);
}

.btn-primary:hover:not(:disabled),
.btn-alava:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 11px 23px rgba(36, 185, 79, .28);
}

.btn-light {
    background: #fff;
    border: 1px solid var(--ga-line);
    color: var(--ga-navy);
}

.btn-danger {
    background: #fff2f2;
    color: #b42318;
    border: 1px solid #ffd6d6
}

/* ---------- FORMULARIOS ---------- */
.field label {
    color: #40565d;
    font-size: 12px
}

.field input,
.field select,
.field textarea,
input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    border: 1px solid #d6e0e2;
    border-radius: 11px;
    background: #fff;
    color: var(--ga-ink);
    min-height: 43px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--ga-green);
    box-shadow: 0 0 0 4px rgba(36, 185, 79, .11);
}

/* ---------- TABLAS ---------- */
.table-wrap {
    border: 1px solid var(--ga-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--ga-shadow);
}

table {
    background: #fff
}

th {
    color: #52656b;
    background: #f7f9fa;
    border-bottom: 1px solid var(--ga-line);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .45px;
}

td {
    border-bottom: 1px solid #edf1f2
}

tr:hover td {
    background: #fbfdfd
}

/* ---------- BADGES ---------- */
.badge {
    border-radius: 999px;
    padding: 5px 10px
}

.badge-green {
    color: #157f35;
    background: #e3f8e8
}

.badge-alava {
    color: #157f35;
    background: #e3f8e8
}

.badge-gray {
    color: #65777c;
    background: #eef2f3
}

.badge-live,
.badge-red {
    color: #fff;
    background: var(--ga-danger)
}

/* ---------- CLASIFICACIÃ“N ---------- */
.standings {
    gap: 8px
}

.standing {
    border-left: 0;
    border: 1px solid var(--ga-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(4, 43, 55, .04);
}

.standing:first-child {
    border-color: #b9e8c6;
    background: linear-gradient(90deg, #f0fbf3, #fff)
}

.standing strong {
    color: var(--ga-navy)
}

/* ---------- CAPITANES / CLUBES ---------- */
.captain-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.captain-admin-card {
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--captain-club-color, var(--ga-green));
}

.captain-admin-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--captain-club-color, var(--ga-green));
    opacity: .75;
}

.captain-club-logo,
.club-logo {
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .08));
}

/* ---------- PARTIDOS / LIVE ---------- */
.live-match {
    border: 1px solid var(--ga-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(4, 43, 55, .05);
}

.live-result {
    color: var(--ga-navy);
    font-size: 24px
}

.match-card,
.public-match-card {
    border: 1px solid var(--ga-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--ga-shadow);
}

.match-status-live {
    color: #fff;
    background: var(--ga-danger);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 900;
}

/* ---------- LOGIN ---------- */
.login-page {
    background:
        radial-gradient(circle at 70% 10%, rgba(99, 219, 72, .22), transparent 30rem),
        linear-gradient(145deg, #052c38, #064454 58%, #0a3841);
}

.login-card {
    border-top: 0;
    max-width: 460px
}

.login-logo-img {
    content: url("../img/icon-512.png");
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(2, 38, 47, .22);
}

.login-heading h1 {
    color: var(--ga-navy)
}

.login-tournament {
    border-left-color: var(--ga-green);
    background: #f6fbf7
}

.login-tournament-code {
    background: var(--ga-green)
}

.login-submit {
    box-shadow: 0 9px 20px rgba(36, 185, 79, .24)
}

/* ---------- TV ---------- */
.tv-body {
    background: #071f27
}

.tv-top {
    background: linear-gradient(100deg, var(--ga-navy-2), var(--ga-navy))
}

.tv-panel {
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(155deg, #0a303a, #08262f);
}

.tv-standing {
    border-left-color: var(--ga-green);
    background: #103b3f
}

.tv-standing strong {
    color: #fff
}

/* ---------- FOOTER ---------- */
.app-footer-card {
    border: 1px solid var(--ga-line);
    border-left: 0;
    background: #fff;
    box-shadow: 0 6px 22px rgba(4, 43, 55, .06);
}

.app-footer-icon {
    background: linear-gradient(145deg, var(--ga-navy), var(--ga-green))
}

.app-footer-copy strong {
    color: var(--ga-navy)
}

.app-footer-legal {
    color: var(--ga-navy);
    border-color: #d8e5e8;
    background: #f8fafb
}

.app-footer-legal:hover {
    background: var(--ga-navy);
    border-color: var(--ga-navy);
    color: #fff
}

/* ---------- MÃ“VIL: apariencia de app ---------- */
@media (max-width:900px) {
    .topbar {
        height: 64px;
        padding: 0 12px
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 12px
    }

    .brand>div:last-child {
        font-size: 15px
    }

    .layout {
        display: block;
        min-height: calc(100vh - 64px)
    }

    .content {
        padding: 18px 14px 88px
    }

    .sidebar {
        background: linear-gradient(180deg, var(--ga-navy), var(--ga-navy-2));
    }

    .mobile-toggle {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, .16);
        background: rgba(255, 255, 255, .08);
    }

    .mobile-toggle span {
        background: #fff
    }

    .grid,
    .form-row {
        gap: 12px
    }

    .span-4,
    .span-5,
    .span-6,
    .span-7,
    .span-8,
    .span-12,
    .field,
    .field.small {
        grid-column: 1/-1;
    }

    .card {
        padding: 16px;
        border-radius: 14px
    }

    .page-heading h1,
    .toolbar h1 {
        font-size: 27px
    }

    .btn {
        min-height: 46px
    }

    table {
        min-width: 680px
    }

    .table-wrap {
        border-radius: 12px
    }

    .captain-card-grid {
        grid-template-columns: 1fr
    }

    .hero {
        padding: 24px 20px;
        border-radius: 18px
    }
}

@media (max-width:600px) {
    .season-chip {
        display: none
    }

    .page-heading,
    .toolbar {
        align-items: flex-start
    }

    .page-heading-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px
    }

    .page-heading-actions .btn {
        width: 100%
    }

    .live-match {
        padding: 12px
    }

    .score-summary {
        font-size: 30px
    }
}

/* ---------- NAVEGACIÃ“N INFERIOR opcional ----------
   AÃ±adir un contenedor .mobile-bottom-nav en JSP pÃºblicas
   para conseguir el acabado app de la referencia.
*/
.mobile-bottom-nav {
    display: none
}

@media (max-width:900px) {
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        min-height: 67px;
        padding: 7px max(6px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
        border-top: 1px solid var(--ga-line);
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(14px);
        box-shadow: 0 -8px 24px rgba(4, 43, 55, .08);
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: #718186;
        font-size: 10px;
        font-weight: 700;
    }

    .mobile-bottom-nav a.active {
        color: var(--ga-green)
    }

    .mobile-bottom-nav .nav-icon {
        font-size: 21px;
        line-height: 1
    }
}

/* ============================================================
   AJUSTES GOLFMATCHZONE Â· DASHBOARD / NAVEGACIÃ“N
   ============================================================ */

/* Hero oscuro: tÃ­tulos y textos siempre legibles */
.hero,
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero p,
.hero span,
.hero strong,
.hero small,
.hero .muted,
.hero .eyebrow {
    color: #ffffff;
}

.hero .eyebrow {
    color: var(--ga-green-light, #63DB48);
}

.hero p,
.hero .muted,
.hero small {
    color: rgba(255, 255, 255, .78);
}

/* Enlaces y botones dentro del hero mantienen su estilo propio */
.hero .btn-light {
    color: var(--ga-navy);
    background: #ffffff;
}

.hero .btn-primary,
.hero .btn-alava {
    color: #ffffff;
}

/* MenÃº lateral: texto blanco tambiÃ©n en hover/activo */
.nav a:hover,
.nav a.active,
.nav a:hover *,
.nav a.active * {
    color: #ffffff !important;
}

.nav a:hover svg,
.nav a.active svg {
    color: #ffffff !important;
    fill: currentColor;
}

/* Si el menÃº usa iconos de fuente o spans */
.nav a:hover i,
.nav a.active i,
.nav a:hover .nav-icon,
.nav a.active .nav-icon {
    color: #ffffff !important;
}

/* ---------- EQUIPOS / IDENTIDAD DE TORNEO ---------- */
.team-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px
}

.team-admin-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
    border: 1px solid var(--ga-line);
    border-top: 4px solid var(--team-color, var(--ga-green));
    border-radius: var(--ga-radius);
    background: #fff;
    box-shadow: var(--ga-shadow);
    transition: transform .16s ease, box-shadow .16s ease
}

.team-admin-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ga-shadow-hover)
}

.team-card-top {
    display: flex;
    align-items: center;
    gap: 14px
}

.team-logo-wrap {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border-radius: 16px;
    background: #f4f8f8;
    border: 1px solid var(--ga-line);
    display: grid;
    place-items: center;
    overflow: hidden
}

.team-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px
}

.team-logo-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--ga-navy), #0a5960);
    color: #fff;
    font-size: 24px;
    font-weight: 900
}

.team-card-title {
    min-width: 0
}

.team-card-title h2 {
    margin: 3px 0 2px
}

.team-card-title p {
    margin: 0;
    color: var(--ga-muted)
}

.team-code {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .8px;
    color: var(--ga-green)
}

.team-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px
}

.team-meta-grid>div {
    padding: 10px 11px;
    border-radius: 11px;
    background: #f7f9fa;
    border: 1px solid var(--ga-line)
}

.team-meta-grid span {
    display: block;
    color: var(--ga-muted);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .45px
}

.team-meta-grid strong {
    display: block;
    margin-top: 3px;
    color: var(--ga-navy)
}

.tournament-brand-section {
    background: linear-gradient(145deg, #f8fbfb, #f0faf3);
    border: 1px solid #dceae0;
    border-radius: 15px;
    padding: 15px;
    margin: 14px 0
}

.tournament-logo-preview {
    width: 100%;
    min-height: 112px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px dashed #cad9dc;
    border-radius: 14px;
    margin: 12px 0;
    overflow: hidden
}

.tournament-logo-preview img {
    max-width: 220px;
    max-height: 100px;
    object-fit: contain;
    padding: 8px
}

.tournament-logo-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center
}

.participant-card-static {
    cursor: default
}

@media(max-width:600px) {
    .team-card-grid {
        grid-template-columns: 1fr
    }

    .tournament-logo-form {
        grid-template-columns: 1fr
    }

    .tournament-logo-form .btn {
        width: 100%
    }
}

/* ============================================================
   CONTRASTE FINAL GOLFMATCHZONE Â· SUPERFICIES OSCURAS
   Evita texto negro/gris oscuro sobre azul petrÃ³leo.
   ============================================================ */
:root {
    --ga-on-dark: #f7fbfc;
    --ga-on-dark-soft: #d7e4e7;
    --ga-on-dark-muted: #b7cbd0;
}

/* Cabecera GolfMatchZone */
.topbar .brand,
.topbar .brand>div,
.topbar .brand strong,
.topbar .brand small,
.topbar .season-chip {
    color: var(--ga-on-dark) !important
}

.topbar .brand small {
    color: var(--ga-on-dark-soft) !important
}

.topbar .season-chip {
    background: rgba(255, 255, 255, .10) !important;
    border-color: rgba(255, 255, 255, .16) !important;
}

/* MenÃº lateral */
.sidebar,
.sidebar .userbox,
.sidebar .userbox b,
.sidebar .userbox small,
.sidebar .userbox .muted {
    color: var(--ga-on-dark) !important
}

.sidebar .userbox .muted,
.sidebar .userbox small {
    color: var(--ga-on-dark-muted) !important
}

.nav a {
    color: var(--ga-on-dark-soft) !important
}

.nav a:hover,
.nav a.active,
.nav a:hover *,
.nav a.active * {
    color: #fff !important
}

/* Heroes y banners oscuros */
.hero,
.dashboard-hero,
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6,
.hero p,
.hero span,
.hero strong,
.hero small,
.hero .muted,
.dashboard-hero h1,
.dashboard-hero h2,
.dashboard-hero h3,
.dashboard-hero p,
.dashboard-hero span,
.dashboard-hero strong,
.dashboard-hero small {
    color: var(--ga-on-dark) !important;
}

.hero p,
.hero small,
.hero .muted,
.dashboard-hero p,
.dashboard-hero small {
    color: var(--ga-on-dark-soft) !important
}

.hero .eyebrow,
.dashboard-hero .eyebrow {
    color: var(--ga-green-2) !important
}

.hero .btn-light,
.dashboard-hero .btn-light {
    color: var(--ga-navy) !important
}

/* PÃ¡gina pÃºblica: cabecera oscura */
.public-hero,
.public-hero h1,
.public-hero h2,
.public-hero h3,
.public-hero p,
.public-hero strong {
    color: var(--ga-on-dark) !important
}

.public-hero p,
.public-brand p {
    color: var(--ga-on-dark-soft) !important
}

.public-brand span {
    color: #bff3ca !important
}

/* TV: cualquier texto que dependa de estilos globales queda protegido */
.tv-v2-header,
.tv-v2-panel,
.tv-detail-stage,
.tv-v2-header h1,
.tv-v2-header h2,
.tv-v2-header h3,
.tv-v2-panel h1,
.tv-v2-panel h2,
.tv-v2-panel h3,
.tv-detail-stage h1,
.tv-detail-stage h2,
.tv-detail-stage h3 {
    color: var(--tv-text, var(--ga-on-dark))
}

.tv-v2-header .muted,
.tv-v2-panel .muted,
.tv-detail-stage .muted {
    color: var(--tv-muted, var(--ga-on-dark-muted)) !important
}

/* Marcador central de un partido */
.match-current-score,
.match-current-score strong {
    color: #fff !important
}

.match-current-score span,
.match-current-score small {
    color: rgba(255, 255, 255, .76) !important
}

/* ============================================================
   GOLF MATCH ZONE Â· MULTIIDIOMA / SUPERUSUARIO
   ============================================================ */
.language-switch {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.language-switch a {
    min-width: 30px;
    padding: 0 6px;
}

.login-superuser-hint {
    margin: 10px 0 14px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #f4f8f8;
    color: var(--ga-muted, #6b7d82);
    font-size: 12px;
    line-height: 1.4;
}

.superuser-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr);
    gap: 18px;
    align-items: start;
}

.stack-form {
    display: grid;
    gap: 13px
}

.stack-form hr {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--ga-line, #e1e8ea);
    margin: 4px 0
}

.inline-actions {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap
}

.inline-actions .inline {
    margin: 0
}

@media(max-width:980px) {
    .superuser-grid {
        grid-template-columns: 1fr
    }

    .topbar-actions .language-switch {
        max-width: 210px
    }
}

@media(max-width:600px) {
    .language-switch a {
        min-width: 27px;
        padding: 0 5px;
        font-size: 10px
    }

    .language-switch-login {
        left: 12px;
        right: 12px;
        justify-content: center
    }

    .login-card {
        padding-top: 62px
    }
}

/* ============================================================
   SUPERUSUARIO Â· FILTROS Y PUBLICACIÃ“N DE TORNEOS
   ============================================================ */
.superuser-filter-card {
    margin-bottom: 18px;
    padding: 16px 18px;
}

.superuser-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(145px, .7fr) minmax(145px, .7fr) minmax(150px, .7fr) auto;
    gap: 12px;
    align-items: end;
}

.superuser-filter-form .field {
    margin: 0
}

.superuser-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 1px;
}

.superuser-filter-actions .btn {
    white-space: nowrap
}

.superuser-tournament-table td {
    vertical-align: middle
}

.superuser-tournament-table .action-menu-cell {
    vertical-align: middle
}

.superuser-tournament-table .action-menu {
    margin-left: auto
}

.superuser-tournament-table .action-menu-trigger {
    min-width: 108px
}

/* El catÃ¡logo maestro de sedes/clubes ya no tiene color competitivo.
   La identidad cromÃ¡tica pertenece Ãºnicamente a los EQUIPOS. */
.club-admin-card {
    border-top-color: var(--ga-green) !important;
}

.club-admin-card::after {
    background: var(--ga-green) !important;
}

@media(max-width:1180px) {
    .superuser-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .superuser-filter-name {
        grid-column: 1/-1
    }

    .superuser-filter-actions {
        grid-column: 1/-1
    }
}

@media(max-width:650px) {
    .superuser-filter-form {
        grid-template-columns: 1fr
    }

    .superuser-filter-name,
    .superuser-filter-actions {
        grid-column: auto
    }

    .superuser-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .superuser-filter-actions .btn {
        width: 100%
    }
}

/* ============================================================
   GOLF MATCH ZONE Â· REFINO V4
   Sedes en lÃ­neas Â· sidebar plegable Â· Starting List oficial
   ============================================================ */

/* El menÃº lateral puede plegarse tambiÃ©n en escritorio. */
.topbar .mobile-toggle {
    display: inline-flex;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
}

.topbar .mobile-toggle span {
    background: #fff
}

@media (min-width:901px) {
    .layout {
        grid-template-columns: 238px minmax(0, 1fr);
        transition: grid-template-columns .2s ease;
    }

    .sidebar {
        min-width: 0;
        transition: opacity .16s ease, transform .2s ease, padding .2s ease;
    }

    body.sidebar-collapsed .layout {
        grid-template-columns: 0 minmax(0, 1fr)
    }

    body.sidebar-collapsed .sidebar {
        opacity: 0;
        transform: translateX(-16px);
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
        pointer-events: none;
    }

    body.sidebar-collapsed .content {
        max-width: none
    }
}

/* CatÃ¡logo maestro de sedes: formato de filas, no tarjetas. */
.venue-management-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
    gap: 18px;
    align-items: start;
}

.venue-filter-card {
    margin-bottom: 16px;
    padding: 16px 18px
}

.venue-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, .75fr)) auto;
    gap: 11px;
    align-items: end;
}

.venue-filter-grid .field {
    margin: 0
}

.venue-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.venue-list-panel {
    padding: 0;
    overflow: hidden
}

.venue-list-panel .section-head {
    padding: 16px 18px 10px
}

.venue-table-wrap {
    border: 0;
    border-radius: 0;
    box-shadow: none
}

.venue-table {
    min-width: 780px
}

.venue-table th {
    white-space: nowrap
}

.venue-table td {
    vertical-align: middle;
    padding-top: 12px;
    padding-bottom: 12px
}

.venue-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 230px
}

.course-card {
    border-top: 3px solid var(--course-tee-accent, var(--ga-green)) !important
}

.course-card-head {
    gap: 8px
}

.course-card-head>div:first-child {
    margin-right: auto
}

.course-card-head h3 {
    margin: 0
}

.course-rating-badge {
    display: flex;
    flex-direction: column;
    min-width: 54px;
    padding: 6px 9px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--course-tee-accent, var(--ga-green)) 15%, #fff);
    color: var(--ga-navy);
    line-height: 1.05
}

.course-rating-badge small {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em
}

.course-rating-badge b {
    margin-top: 3px;
    font-size: 14px
}

.venue-name-cell>div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.2
}

.venue-name-cell>div:last-child b {
    display: block;
    color: var(--ga-navy)
}

.venue-name-cell>div:last-child small {
    display: block;
    color: var(--ga-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em
}

.venue-logo-wrap {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid var(--ga-line);
    border-radius: 12px;
    background: #f7fafb;
    display: grid;
    place-items: center;
    overflow: hidden
}

.venue-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px
}

.venue-address-line {
    display: block;
    max-width: 310px;
    line-height: 1.35
}

.venue-map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: var(--ga-green);
    font-size: 11px;
    font-weight: 800
}

.venue-editor-panel {
    position: sticky;
    top: 88px
}

.venue-editor-form {
    display: grid;
    gap: 12px
}

.superadmin-overview {
    display: grid;
    gap: 18px
}

.superadmin-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px
}

.superadmin-metric {
    display: flex;
    min-height: 138px;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    border: 1px solid var(--ga-line);
    border-radius: 14px;
    background: #fff;
    color: var(--ga-navy);
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(6, 52, 67, .05)
}

.superadmin-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(6, 52, 67, .1)
}

.superadmin-metric span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ga-muted)
}

.superadmin-metric strong {
    font-size: 34px;
    line-height: 1;
    color: var(--ga-navy)
}

.superadmin-metric small {
    margin-top: auto;
    color: var(--ga-muted);
    font-weight: 700
}

.superadmin-metric.is-premium {
    border-color: #e8c76e;
    background: #fffaf0
}

.superadmin-bars {
    display: grid;
    gap: 18px;
    padding-top: 8px
}

.superadmin-bars>div {
    display: grid;
    grid-template-columns: 180px 1fr 70px;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--ga-navy)
}

.superadmin-bars i {
    height: 12px;
    overflow: hidden;
    border-radius: 99px;
    background: #e8eeed
}

.superadmin-bars b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ga-green), #63db48)
}

.superadmin-bars strong {
    text-align: right
}

@media(max-width:1050px) {
    .superadmin-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:580px) {
    .superadmin-metrics {
        grid-template-columns: 1fr
    }

    .superadmin-bars>div {
        grid-template-columns: 1fr
    }

    .superadmin-bars strong {
        text-align: left
    }
}

.app-footer-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(4, 43, 55, .12)
}

/* Starting List: el torneo es el protagonista. */
.starting-head-v2 {
    align-items: flex-start;
    gap: 18px;
}

.starting-brand-v2 {
    align-items: flex-start;
    flex: 1 1 auto
}

.starting-tournament-logo {
    width: 82px !important;
    height: 82px !important;
    flex-basis: 82px !important;
    border-radius: 16px;
    background: #f5f8f8;
    border: 1px solid var(--ga-line);
    padding: 6px
}

.starting-title-block>span {
    display: block;
    color: var(--ga-green) !important;
    font-size: 10px !important;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase
}

.starting-title-block h1 {
    margin: 3px 0 2px !important;
    color: var(--ga-navy);
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1px
}

.starting-title-block p {
    margin: 0;
    color: var(--ga-muted);
    font-size: 13px;
    font-weight: 700
}

.starting-team-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 390px
}

.starting-team-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid var(--ga-line);
    border-radius: 10px;
    background: #fff
}

.starting-team-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain
}

.starting-team-logo span {
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ga-navy);
    font-size: 10px;
    font-weight: 800
}

.starting-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px
}

.starting-signatures {
    margin-top: 28px;
    break-inside: avoid
}

.starting-signatures h2 {
    margin: 0 0 12px;
    color: var(--ga-navy);
    font-size: 15px
}

.starting-signature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.starting-signature-box {
    min-height: 110px;
    padding: 16px 14px 12px;
    border: 1px solid var(--ga-line);
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px
}

.signature-line {
    height: 46px;
    border-bottom: 1px solid #8d999c;
    margin-bottom: 7px
}

.starting-signature-box b {
    color: var(--ga-navy);
    font-size: 11px
}

.starting-signature-box small {
    min-height: 14px;
    color: var(--ga-muted)
}

.starting-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px
}

.starting-footer img {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    object-fit: cover
}

@media (max-width:1180px) {
    .venue-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .venue-filter-name,
    .venue-filter-actions {
        grid-column: 1/-1
    }

    .venue-management-layout {
        grid-template-columns: 1fr
    }

    .venue-editor-panel {
        position: static
    }
}

@media (max-width:760px) {
    .venue-filter-grid {
        grid-template-columns: 1fr
    }

    .venue-filter-name,
    .venue-filter-actions {
        grid-column: auto
    }

    .venue-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .starting-team-logos {
        justify-content: flex-start;
        max-width: none
    }

    .starting-signature-grid {
        grid-template-columns: 1fr
    }
}

@media print {
    .starting-head-v2 {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important
    }

    .starting-team-logos {
        display: flex !important
    }

    .starting-actions,
    .no-print {
        display: none !important
    }

    .starting-title-block h1 {
        font-size: 26px !important
    }

    .starting-tournament-logo {
        width: 64px !important;
        height: 64px !important;
        flex-basis: 64px !important
    }

    .starting-team-logo {
        padding: 3px 5px
    }

    .starting-team-logo img {
        width: 26px;
        height: 26px
    }

    .starting-signature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .starting-signature-box {
        min-height: 92px;
        border-color: #aaa
    }

    .signature-line {
        height: 40px
    }

    .starting-footer img {
        width: 22px;
        height: 22px
    }
}

/* ============================================================
   SPONSORS / GALERIA / HANDICAP Â· GOLF MATCH ZONE
   ============================================================ */
.sponsor-logo-cell {
    width: 76px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ga-line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden
}

.sponsor-logo-cell img {
    max-width: 68px;
    max-height: 42px;
    object-fit: contain
}

.sponsor-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 10px
}

.sponsor-strip a,
.sponsor-name {
    min-width: 88px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--ga-line);
    border-radius: 12px;
    background: #fff;
    color: var(--ga-navy);
    font-weight: 800
}

.sponsor-strip img {
    max-width: 110px;
    max-height: 48px;
    object-fit: contain
}

.public-extras {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: stretch;
    margin: 16px 0
}

.public-sponsors {
    padding: 16px 18px;
    border: 1px solid var(--ga-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--ga-shadow)
}

.public-gallery-cta {
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ga-navy), #0a5960);
    color: #fff;
    box-shadow: var(--ga-shadow)
}

.public-gallery-cta>span {
    font-size: 27px;
    color: var(--ga-green-light)
}

.public-gallery-cta>div {
    display: flex;
    flex-direction: column;
    flex: 1
}

.public-gallery-cta small {
    color: rgba(255, 255, 255, .74);
    margin-top: 2px
}

.public-gallery-cta b {
    font-size: 22px
}

.gallery-admin-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    align-items: start
}

.gallery-albums {
    position: sticky;
    top: 88px
}

.compact-form {
    display: grid;
    gap: 10px
}

.compact-form textarea {
    min-height: 82px
}

.album-list {
    display: grid;
    gap: 7px;
    margin: 16px 0
}

.album-list a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--ga-line);
    border-radius: 10px;
    color: var(--ga-navy);
    background: #fafcfc
}

.album-list a.active {
    border-color: var(--ga-green);
    background: #edf9f0
}

.album-list small {
    color: var(--ga-muted)
}

.gallery-upload-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px
}

.gallery-upload-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 9px;
    min-width: min(100%, 520px)
}

.gallery-upload-form .btn {
    grid-column: 1/-1
}

.gallery-grid-admin,
.public-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px
}

.gallery-photo-admin {
    padding: 0;
    overflow: hidden
}

.gallery-photo-admin>img,
.public-gallery-photo img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #edf1f2
}

.gallery-photo-body {
    padding: 14px
}

.gallery-photo-body p {
    min-height: 1.4em
}

.gallery-comments {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ga-line)
}

.gallery-comment {
    padding: 9px 0;
    border-bottom: 1px solid #edf1f2
}

.gallery-comment:last-child {
    border-bottom: 0
}

.gallery-comment-head {
    display: flex;
    justify-content: space-between;
    gap: 10px
}

.gallery-comment small {
    color: var(--ga-muted)
}

.public-gallery-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 18px 50px
}

.public-gallery-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px
}

.public-gallery-photo {
    overflow: hidden;
    padding: 0
}

.public-gallery-photo-body {
    padding: 14px
}

.public-gallery-photo h3 {
    margin: 0 0 5px;
    color: var(--ga-navy)
}

.gallery-photo-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 18px
}

.gallery-photo-detail>img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 16px;
    background: #0d272e
}

.gallery-comment-form {
    display: grid;
    gap: 10px;
    margin-top: 14px
}

.moderation-tournament {
    margin-bottom: 18px
}

.moderation-section {
    margin-top: 14px
}

.moderation-thumb {
    width: 70px;
    height: 52px;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid var(--ga-line);
    background: #fff
}

.moderation-copy {
    max-width: 520px;
    white-space: normal
}

.moderation-empty {
    padding: 20px;
    color: var(--ga-muted);
    text-align: center
}

.handicap-rules {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #bfe5c8;
    border-radius: 14px;
    background: #f2fbf4
}

.handicap-rules[hidden] {
    display: none
}

.handicap-rules h3 {
    margin: 0 0 5px;
    color: var(--ga-navy)
}

.handicap-rule-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(2, minmax(130px, 1fr));
    gap: 10px;
    align-items: end;
    margin-top: 12px
}

.handicap-rule-grid .rule-head {
    font-size: 11px;
    font-weight: 900;
    color: var(--ga-muted);
    text-transform: uppercase;
    letter-spacing: .4px
}

.handicap-note {
    padding: 10px 12px;
    border-left: 4px solid var(--ga-green);
    border-radius: 8px;
    background: #edf9f0;
    color: var(--ga-navy)
}

.match-handicap-info {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #bee4c7;
    border-radius: 11px;
    background: #f1faf3;
    color: var(--ga-navy)
}

.net-score {
    display: block;
    margin-top: 3px;
    color: var(--ga-green);
    font-weight: 900
}

.net-score::before {
    content: "NET ";
    font-size: 9px;
    letter-spacing: .4px;
    color: var(--ga-muted)
}

@media(max-width:900px) {
    .public-extras {
        grid-template-columns: 1fr
    }

    .public-gallery-cta {
        min-width: 0
    }

    .gallery-admin-layout {
        grid-template-columns: 1fr
    }

    .gallery-albums {
        position: static
    }

    .gallery-upload-card {
        display: block
    }

    .gallery-upload-form {
        margin-top: 14px
    }

    .gallery-photo-detail {
        grid-template-columns: 1fr
    }

    .handicap-rule-grid {
        grid-template-columns: 1fr 1fr
    }

    .handicap-rule-grid .rule-head:first-child {
        display: none
    }
}

@media(max-width:600px) {

    .gallery-upload-form,
    .handicap-rule-grid {
        grid-template-columns: 1fr
    }

    .public-gallery-head {
        align-items: flex-start;
        flex-direction: column
    }

    .sponsor-strip a,
    .sponsor-name {
        min-width: 72px
    }

    .gallery-grid-admin,
    .public-gallery-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:430px) {

    .gallery-grid-admin,
    .public-gallery-grid {
        grid-template-columns: 1fr
    }
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0
}

.gallery-tabs a {
    padding: 9px 13px;
    border: 1px solid var(--ga-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ga-navy);
    font-weight: 800
}

.gallery-tabs a.active {
    background: var(--ga-green);
    border-color: var(--ga-green);
    color: #fff
}

.gallery-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px
}

.gallery-public-card {
    overflow: hidden;
    border: 1px solid var(--ga-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--ga-shadow)
}

.gallery-public-card>img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #edf1f2
}

.gallery-public-copy {
    padding: 14px
}

.gallery-public-copy h3 {
    margin: 0 0 5px;
    color: var(--ga-navy)
}

.gallery-public-copy details {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--ga-line)
}

.gallery-public-copy summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--ga-navy)
}

.gallery-public-comments {
    display: grid;
    gap: 9px;
    margin-top: 10px
}

.gallery-public-comments blockquote {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f8f8
}

.gallery-public-comments blockquote strong,
.gallery-public-comments blockquote span,
.gallery-public-comments blockquote small {
    display: block
}

.gallery-public-comments blockquote small {
    margin-top: 4px;
    color: var(--ga-muted)
}

.gallery-public-comments form {
    display: grid;
    gap: 8px
}

.gallery-public-comments textarea {
    min-height: 74px
}

/* ============================================================
   GOLF MATCH ZONE Â· APROVECHAMIENTO DE ANCHO CON MENÃš PLEGADO
   Cuando el usuario oculta la navegaciÃ³n lateral, el contenido deja
   de estar limitado al ancho estÃ¡ndar y aprovecha prÃ¡cticamente toda
   la ventana. Se conserva un mÃ¡ximo cÃ³modo en monitores ultraanchos.
   ============================================================ */
@media (min-width:901px) {
    body.sidebar-collapsed .content {
        width: 100%;
        padding-left: clamp(18px, 2vw, 34px);
        padding-right: clamp(18px, 2vw, 34px);
    }

    body.sidebar-collapsed .content>* {
        width: 100%;
        max-width: 1800px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width:1900px) {
    body.sidebar-collapsed .content>* {
        max-width: 1860px
    }
}

/* ============================================================
   V6 Â· ACCESO PÃšBLICO + SPONSORS TV
   ============================================================ */
.login-public-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.login-public-actions[hidden],
.login-public-live[hidden] {
    display: none !important
}

.login-public-tv {
    background: #f7fafb;
    border-color: #d6e2e5
}

.tournament-public-access {
    background: linear-gradient(180deg, #f8fcf9, #fff)
}

.tournament-public-toggle {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 14px;
    border: 1px solid var(--ga-line);
    border-radius: 13px;
    background: #fff;
    margin: 9px 0;
    cursor: pointer
}

.tournament-public-toggle input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--ga-green)
}

.tournament-public-toggle span {
    display: grid;
    gap: 2px
}

.tournament-public-toggle strong {
    color: var(--ga-navy)
}

.tournament-public-toggle small {
    color: var(--ga-muted)
}

.superuser-public-state {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 5px
}

.public-sponsors-marquee {
    overflow: hidden
}

.sponsor-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent)
}

.sponsor-marquee-track {
    display: flex;
    align-items: center;
    gap: 26px;
    width: max-content;
    animation: gmzSponsorScroll 28s linear infinite;
    padding: 7px 0
}

.sponsor-marquee-track:hover {
    animation-play-state: paused
}

.sponsor-marquee-track a,
.sponsor-marquee-track .sponsor-name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 64px
}

.sponsor-marquee-track img {
    max-height: 52px;
    max-width: 150px;
    object-fit: contain
}

@keyframes gmzSponsorScroll {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

.tv-sponsor-band {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin: 14px 0;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    overflow: hidden
}

.tv-sponsor-label {
    display: grid;
    gap: 3px
}

.tv-sponsor-label strong {
    color: #fff;
    font-size: 18px
}

.tv-sponsor-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent)
}

.tv-sponsor-track {
    display: flex;
    align-items: center;
    gap: 34px;
    width: max-content;
    animation: gmzTvSponsorScroll 24s linear infinite
}

.tv-sponsor-item {
    width: 155px;
    height: 72px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center
}

.tv-sponsor-item img {
    max-width: 135px;
    max-height: 56px;
    object-fit: contain
}

.tv-sponsor-item strong {
    color: var(--ga-navy);
    text-align: center;
    font-size: 14px
}

@keyframes gmzTvSponsorScroll {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

.tv-standing-virtual {
    display: block !important;
    color: var(--ga-muted) !important;
    margin-top: 4px
}

.tv-standing-virtual b {
    color: var(--ga-green);
    font-weight: 900
}

.tv-v2-standing-points {
    display: grid;
    text-align: right;
    line-height: 1
}

.tv-v2-standing-points small {
    font-size: 9px;
    color: var(--ga-muted);
    font-weight: 800;
    margin-bottom: 3px;
    text-transform: uppercase
}

.tv-scoreboard-shell.has-sponsors .tv-detail-stage {
    margin-top: 14px
}

.tv-scoreboard-shell.has-sponsors .tv-match-detail-top {
    min-height: 0
}

.tv-scoreboard-shell.has-sponsors .tv-match-player-list {
    margin-top: 6px
}

@media(max-width:900px) {
    .login-public-actions {
        grid-template-columns: 1fr
    }

    .tv-sponsor-band {
        grid-template-columns: 1fr
    }

    .tv-sponsor-label {
        text-align: center
    }

    .tv-sponsor-item {
        width: 120px;
        height: 58px
    }

    .tv-sponsor-item img {
        max-width: 105px;
        max-height: 45px
    }
}

/* ============================================================
   V6.1 Â· AVISO DE ACCESO PÃšBLICO NO DISPONIBLE
   ============================================================ */
.public-unavailable-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 76% 10%, rgba(99, 219, 72, .18), transparent 28rem),
        linear-gradient(145deg, #052b37, #063f4d 62%, #062f39);
}

.public-unavailable-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
}

.public-unavailable-card {
    width: min(100%, 560px);
    padding: 34px 34px 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.public-unavailable-logo {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(4, 43, 55, .18);
}

.public-unavailable-channel {
    display: inline-flex;
    margin-top: 18px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #e9f8ed;
    color: #16853a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.public-unavailable-card h1 {
    margin: 16px 0 10px;
    color: var(--ga-navy);
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.05;
    letter-spacing: -.8px;
}

.public-unavailable-message {
    margin: 0 auto;
    max-width: 470px;
    color: var(--ga-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.public-unavailable-help {
    margin: 11px auto 0;
    max-width: 470px;
    color: var(--ga-muted);
    line-height: 1.5;
}

.public-unavailable-back {
    margin-top: 22px;
    min-width: 190px;
}

.public-unavailable-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--ga-line);
}

.public-unavailable-brand strong {
    color: var(--ga-navy)
}

.public-unavailable-brand span {
    color: var(--ga-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

@media(max-width:600px) {
    .public-unavailable-card {
        padding: 28px 20px 23px;
        border-radius: 19px
    }

    .public-unavailable-logo {
        width: 82px;
        height: 82px;
        border-radius: 19px
    }
}

/* ============================================================
   GALERÃ�A PRIVADA DEL TORNEO
   ============================================================ */
.gallery-private-heading {
    margin-bottom: 14px
}

.gallery-private-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    border-left: 4px solid var(--ga-green);
    background: #f5fbf7
}

.gallery-private-notice>span {
    font-size: 24px;
    line-height: 1.1
}

.gallery-private-notice p {
    margin: 4px 0 0;
    color: var(--ga-muted)
}

.gallery-private-tabs {
    margin: 0 0 16px
}

.gallery-private-upload {
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(360px, 1.25fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 16px
}

.gallery-private-upload h2 {
    margin: .2rem 0 .3rem
}

.gallery-private-upload-form {
    min-width: 0;
    grid-template-columns: 1fr 1fr
}

.gallery-private-upload-form textarea {
    grid-column: 1/-1;
    min-height: 82px
}

.gallery-private-upload-form input[type=file] {
    grid-column: 1/-1
}

.gallery-album-description {
    margin: 0 0 12px
}

.gallery-private-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr))
}

.gallery-private-card>img {
    aspect-ratio: 4/3;
    object-fit: cover
}

@media(max-width:900px) {
    .gallery-private-upload {
        grid-template-columns: 1fr
    }

    .gallery-private-upload-form {
        grid-template-columns: 1fr
    }

    .gallery-private-upload-form textarea,
    .gallery-private-upload-form input[type=file] {
        grid-column: 1/-1
    }
}

/* ============================================================
   V6.3 Â· MOBILE WEB HARDENING / RESPONSIVE
   Objetivo: que la gestiÃ³n web completa sea operativa desde mÃ³vil
   sin depender todavÃ­a de que Flutter cubra toda la administraciÃ³n.
   ============================================================ */

html,
body {
    max-width: 100%;
    overflow-x: hidden
}

body.nav-open {
    overflow: hidden
}

/* Todos los contenedores principales pueden encoger sin provocar overflow. */
.layout,
.content,
.content>*,
.card,
.table-wrap,
.toolbar,
.page-heading,
.form-grid,
.grid,
.gallery-admin-layout,
.gallery-private-upload {
    min-width: 0;
}

/* Scroll tÃ¡ctil correcto en tablas que no puedan convertirse en tarjetas. */
.table-wrap,
.venue-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

.table-wrap table,
.venue-table-wrap table {
    margin: 0
}

/* Facilita seguir una fila en tablas anchas. */
@media(max-width:900px) {

    .table-wrap table,
    .venue-table-wrap table {
        min-width: 720px
    }

    .table-wrap th,
    .venue-table-wrap th {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .table-wrap td,
    .table-wrap th,
    .venue-table-wrap td,
    .venue-table-wrap th {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Drawer mÃ³vil: ocupa ancho Ãºtil pero deja contexto visual. */
@media(max-width:900px) {
    .topbar {
        position: sticky;
        top: 0;
        z-index: 1200;
        height: 62px;
    }

    .layout {
        display: block
    }

    .sidebar {
        position: fixed;
        top: 62px;
        bottom: 0;
        left: 0;
        z-index: 1250;
        width: min(86vw, 330px);
        max-width: 330px;
        transform: translateX(-105%);
        transition: transform .2s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 18px 0 42px rgba(2, 35, 45, .22);
    }

    body.nav-open .sidebar {
        transform: translateX(0)
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 62px 0 0;
        z-index: 1240;
        display: block;
        border: 0;
        background: rgba(3, 24, 30, .46);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .18s ease, visibility .18s ease;
    }

    body.nav-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .content {
        width: 100%;
        max-width: none;
        padding: 16px 12px 88px;
    }

    .content>* {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .topbar-actions {
        min-width: 0;
        gap: 7px
    }

    .season-chip {
        display: none
    }

    .language-switch {
        max-width: 188px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .language-switch::-webkit-scrollbar {
        display: none
    }

    .language-switch a {
        flex: 0 0 auto
    }

    .mobile-toggle {
        flex: 0 0 42px
    }

    .brand {
        min-width: 0
    }

    .brand>div:last-child {
        min-width: 0;
        max-width: 42vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand small {
        display: none
    }
}

/* Cabeceras y toolbars: acciones tocables y sin salir de pantalla. */
@media(max-width:760px) {

    .page-heading,
    .toolbar,
    .section-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .page-heading-actions,
    .toolbar-actions,
    .actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-heading-actions .btn,
    .toolbar-actions .btn {
        flex: 1 1 150px;
    }

    .btn {
        min-height: 46px;
        padding: 11px 14px;
    }

    button,
    .btn,
    a.btn,
    select,
    input,
    textarea {
        touch-action: manipulation;
    }
}

/* Formularios de administraciÃ³n: una columna real en telÃ©fono. */
@media(max-width:700px) {

    .form-row,
    .form-grid,
    .grid,
    .venue-filter-grid,
    .handicap-rule-grid,
    .gallery-upload-form,
    .gallery-private-upload-form {
        grid-template-columns: 1fr !important;
    }

    .form-row>*,
    .form-grid>*,
    .grid>*,
    .venue-filter-grid>*,
    .handicap-rule-grid>*,
    .gallery-upload-form>*,
    .gallery-private-upload-form>* {
        grid-column: 1/-1 !important;
        min-width: 0;
    }

    .field input,
    .field select,
    .field textarea,
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    input[type="file"],
    select,
    textarea {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        /* evita zoom automÃ¡tico en iPhone */
    }

    textarea {
        min-height: 96px
    }
}

/* Tarjetas: menos espacio desperdiciado en mÃ³vil. */
@media(max-width:600px) {
    .card {
        padding: 14px;
        border-radius: 13px
    }

    .hero {
        padding: 18px 15px;
        border-radius: 16px
    }

    .page-heading h1,
    .toolbar h1 {
        font-size: 25px;
        line-height: 1.08
    }

    .page-heading p,
    .toolbar p {
        line-height: 1.4
    }

    .gallery-private-grid,
    .gallery-grid-admin,
    .gallery-public-grid {
        grid-template-columns: 1fr !important
    }

    .gallery-private-card>img,
    .gallery-photo-admin>img {
        max-height: none
    }

    .sponsor-strip {
        gap: 8px
    }

    .sponsor-strip a,
    .sponsor-name {
        flex: 1 1 120px
    }
}

/* Sedes: tabla navegable + editor debajo, sin panel pegado. */
@media(max-width:760px) {
    .venue-management-layout {
        display: block
    }

    .venue-list-panel {
        margin-bottom: 14px
    }

    .venue-editor-panel {
        position: static
    }

    .venue-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* MenÃºs de acciones/hamburguesa: abrir por encima del resto. */
.action-menu,
.actions-menu,
.dropdown-menu,
.row-action-menu {
    z-index: 1300;
}

@media(max-width:760px) {

    .action-menu,
    .actions-menu,
    .dropdown-menu,
    .row-action-menu {
        max-width: calc(100vw - 24px);
    }
}

/* Starting list web en mÃ³vil: cabecera y logos compactos. */
@media(max-width:700px) {
    .starting-head-v2 {
        display: block
    }

    .starting-brand-v2 {
        width: 100%
    }

    .starting-tournament-logo {
        width: 58px !important;
        height: 58px !important;
        flex-basis: 58px !important;
    }

    .starting-title-block h1 {
        font-size: 26px !important
    }

    .starting-team-logos {
        margin-top: 12px;
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .starting-team-logo {
        flex: 0 0 auto
    }
}

/* Footer compacto y sin forzar anchura. */
@media(max-width:650px) {
    .app-footer {
        padding: 0 12px 14px
    }

    .app-footer-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .app-footer-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Login: ocupa bien pantallas pequeÃ±as y respeta safe areas. */
@media(max-width:600px) {
    .login-page {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }

    .login-card {
        width: 100%;
        max-width: 100%;
        margin: 14px auto;
        padding: 18px 15px;
    }

    .login-logo-img {
        width: 84px;
        height: 84px;
        border-radius: 20px
    }

    .login-heading h1 {
        font-size: 27px
    }
}

/* Ã�reas pÃºblicas: nada de anchos fijos en telÃ©fono. */
@media(max-width:700px) {

    .public-shell,
    .public-gallery-shell,
    .public-wrap,
    .public-container {
        width: 100% !important;
        max-width: none !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .public-sponsors-marquee,
    .sponsor-marquee {
        max-width: 100%
    }
}

/* Modal/paneles emergentes, si una pÃ¡gina los usa. */
@media(max-width:700px) {

    .modal,
    .modal-dialog,
    .dialog,
    .overlay-panel {
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - 20px) !important;
    }
}

/* Safe-area para iPhone con notch / barra inferior. */
@supports(padding:max(0px)) {
    @media(max-width:900px) {
        .topbar {
            padding-left: max(12px, env(safe-area-inset-left));
            padding-right: max(12px, env(safe-area-inset-right));
        }

        .content {
            padding-left: max(12px, env(safe-area-inset-left));
            padding-right: max(12px, env(safe-area-inset-right));
            padding-bottom: max(88px, calc(70px + env(safe-area-inset-bottom)));
        }

        .sidebar {
            padding-left: max(12px, env(safe-area-inset-left));
            padding-bottom: max(18px, env(safe-area-inset-bottom));
        }
    }
}

/* ============================================================
   V6.4 Â· MOBILE OPERABILITY PASS
   Dashboard Â· Equipos Â· Jugadores Â· Partidos Â· Resultado
   Â· GalerÃ­a Â· Sponsors Â· Superadmin
   ============================================================ */

/* En mÃ³vil las tablas operativas mÃ¡s usadas dejan de ser una tabla de
   escritorio desplazable y se comportan como tarjetas etiquetadas. */
@media(max-width:760px) {

    .players-table-wrap,
    .match-program-panel>.table-wrap,
    .sponsor-table-wrap,
    .superuser-grid .table-wrap {
        overflow: visible;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .players-management-table,
    .match-management-table,
    .sponsor-management-table,
    .superuser-tournament-table,
    .players-management-table tbody,
    .match-management-table tbody,
    .sponsor-management-table tbody,
    .superuser-tournament-table tbody,
    .players-management-table tr,
    .match-management-table tr,
    .sponsor-management-table tr,
    .superuser-tournament-table tr,
    .players-management-table td,
    .match-management-table td,
    .sponsor-management-table td,
    .superuser-tournament-table td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .players-management-table thead,
    .match-management-table thead,
    .sponsor-management-table thead,
    .superuser-tournament-table thead {
        display: none
    }

    .players-management-table tr,
    .match-management-table tr,
    .sponsor-management-table tr,
    .superuser-tournament-table tr {
        position: relative;
        margin: 0 0 12px;
        padding: 7px 11px;
        overflow: visible;
        border: 1px solid var(--ga-line);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 5px 16px rgba(4, 43, 55, .05);
    }

    .players-management-table tr.my-match-row,
    .match-management-table tr.my-match-row {
        border-left: 4px solid var(--ga-green);
    }

    .players-management-table td,
    .match-management-table td,
    .sponsor-management-table td,
    .superuser-tournament-table td {
        display: grid;
        grid-template-columns: minmax(88px, 30%) minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        min-height: 39px;
        padding: 8px 2px;
        overflow: visible;
        border: 0;
        border-bottom: 1px solid #edf1f2;
        background: transparent !important;
    }

    .players-management-table td:last-child,
    .match-management-table td:last-child,
    .sponsor-management-table td:last-child,
    .superuser-tournament-table td:last-child {
        border-bottom: 0
    }

    .players-management-table td::before,
    .match-management-table td::before,
    .sponsor-management-table td::before,
    .superuser-tournament-table td::before {
        content: attr(data-label) !important;
        color: var(--ga-muted) !important;
        font-size: 10px !important;
        font-weight: 900 !important;
        line-height: 1.2;
        letter-spacing: .045em !important;
        text-transform: uppercase !important;
    }

    /* Filas vacÃ­as no necesitan pseudoetiquetas. */
    .players-management-table .empty-cell,
    .match-management-table .empty-cell,
    .sponsor-management-table .empty-table-row td,
    .superuser-tournament-table .empty-cell {
        display: block !important;
        padding: 16px 8px !important;
        text-align: center;
    }

    .players-management-table .empty-cell::before,
    .match-management-table .empty-cell::before,
    .sponsor-management-table .empty-table-row td::before,
    .superuser-tournament-table .empty-cell::before {
        display: none
    }

    .mobile-actions-cell {
        grid-template-columns: minmax(88px, 30%) minmax(0, 1fr) !important;
        overflow: visible !important;
    }

    .mobile-actions-cell .action-menu,
    .mobile-actions-cell .row-actions {
        justify-self: end;
        width: auto;
        max-width: 100%;
    }

    .mobile-actions-cell .action-menu-trigger {
        width: auto !important;
        min-width: 44px !important;
        min-height: 42px;
    }

    .mobile-actions-cell .action-menu-items {
        right: 0;
        left: auto;
        width: min(250px, calc(100vw - 42px));
        min-width: 210px;
        z-index: 1500;
    }

    /* El viejo CSS de Players tenÃ­a textos de etiquetas por nth-child y quedÃ³
     desfasado al aÃ±adir HCP. data-label es ahora la Ãºnica fuente. */
    .players-management-table td:nth-child(n)::before {
        content: attr(data-label) !important
    }
}

/* ---------- DASHBOARD ---------- */
@media(max-width:760px) {
    .dashboard-hero {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .dashboard-hero-actions,
    .player-dashboard-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dashboard-hero-actions .btn,
    .player-dashboard-actions .btn {
        width: 100%;
        margin: 0
    }

    .player-dashboard-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .admin-day-dashboard {
        margin: 14px 0;
        padding: 14px
    }

    .admin-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px
    }

    .admin-kpi {
        padding: 11px 12px
    }

    .admin-kpi strong {
        font-size: 24px
    }

    .admin-dashboard-grid,
    .dashboard-main-grid {
        grid-template-columns: 1fr !important
    }

    .dashboard-main-grid>.span-5,
    .dashboard-main-grid>.span-7 {
        grid-column: 1/-1 !important
    }

    .audit-item {
        grid-template-columns: 1fr;
        gap: 3px
    }

    .audit-item time {
        font-size: 9px
    }

    .live-ranking-grid {
        grid-template-columns: 1fr
    }

    .dashboard-match-card {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 5px 9px;
        padding: 11px;
    }

    .dashboard-match-card>.match-order {
        grid-column: 1;
        grid-row: 1/3;
        align-self: center
    }

    .dashboard-match-card>div {
        grid-column: 2;
        grid-row: 1/3
    }

    .dashboard-match-card>.badge {
        grid-column: 3;
        grid-row: 1;
        justify-self: end
    }

    .dashboard-match-card>strong {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
        color: var(--ga-navy);
        font-size: 16px
    }
}

@media(max-width:430px) {
    .admin-kpi-grid {
        grid-template-columns: 1fr 1fr
    }

    .live-ranking-item {
        grid-template-columns: 26px 34px minmax(0, 1fr) auto;
        padding: 9px
    }

    .live-ranking-item img {
        width: 32px;
        height: 32px
    }
}

/* ---------- EQUIPOS ---------- */
@media(max-width:760px) {
    .team-card-grid {
        grid-template-columns: 1fr !important
    }

    .team-admin-card {
        padding: 13px
    }

    .team-logo-wrap {
        width: 58px;
        height: 58px;
        flex: 0 0 58px
    }

    .team-admin-copy h3 {
        font-size: 17px;
        margin: 2px 0
    }

    .team-admin-card>.table-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 11px;
    }

    .team-admin-card>.table-actions .btn,
    .team-admin-card>.table-actions form,
    .team-admin-card>.table-actions form .btn {
        width: 100%;
        margin: 0
    }

    #team-form {
        scroll-margin-top: 76px
    }

    #team-form input[type=color] {
        height: 48px;
        padding: 4px
    }
}

/* ---------- JUGADORES ---------- */
@media(max-width:760px) {
    .players-management-grid {
        display: block;
        margin-top: 14px
    }

    .players-list-panel,
    .player-editor-panel,
    .player-import-card {
        margin-bottom: 14px
    }

    .players-management-table .person-cell {
        align-items: center
    }

    .players-management-table .avatar-wrap {
        width: 42px;
        height: 42px
    }

    .players-management-table .club-code {
        overflow-wrap: anywhere
    }

    .players-management-table .action-menu {
        margin-left: auto
    }

    .filter-grid,
    .import-credentials-grid {
        grid-template-columns: 1fr !important
    }

    .filter-actions,
    .player-import-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px
    }

    .filter-actions .btn,
    .player-import-actions .btn {
        width: 100%;
        margin: 0
    }

    .player-editor-panel {
        position: static !important;
        scroll-margin-top: 76px
    }

    .player-editor-form {
        grid-template-columns: 1fr !important
    }

    .player-editor-panel .check-grid {
        grid-template-columns: 1fr !important
    }

    .player-access-head {
        display: block
    }

    .profile-preview {
        grid-template-columns: 70px minmax(0, 1fr) !important
    }
}

@media(max-width:430px) {
    .players-management-table td {
        grid-template-columns: 78px minmax(0, 1fr)
    }

    .filter-actions,
    .player-import-actions {
        grid-template-columns: 1fr
    }
}

/* ---------- PARTIDOS / PROGRAMA ---------- */
@media(max-width:760px) {
    .matches-management-grid {
        display: block !important
    }

    .match-program-panel,
    .match-editor-panel {
        width: 100%;
        margin-bottom: 14px;
        position: static !important
    }

    .match-management-table {
        min-width: 0 !important
    }

    .match-management-table .match-order {
        font-size: 16px
    }

    .match-management-table .club-versus {
        justify-content: flex-end;
        flex-wrap: wrap;
        text-align: right
    }

    .match-management-table .match-start-mini {
        align-items: flex-end;
        text-align: right;
        white-space: normal
    }

    .match-management-table .lineup-mini {
        gap: 4px;
        text-align: right
    }

    .match-management-table .lineup-mini span {
        overflow-wrap: anywhere
    }

    .program-generator-form {
        grid-template-columns: 1fr !important
    }

    .lineup-control-grid {
        grid-template-columns: 1fr !important
    }

    .match-editor-panel {
        scroll-margin-top: 76px
    }
}

@media(max-width:430px) {
    .match-management-table td {
        grid-template-columns: 76px minmax(0, 1fr)
    }
}

/* ---------- RESULTADO DE PARTIDO ---------- */
@media(max-width:760px) {
    .match-heading .page-heading-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px
    }

    .match-lineup-banner {
        grid-template-columns: 1fr;
        margin: 12px 0 14px
    }

    .match-team,
    .match-current-score {
        padding: 14px 12px
    }

    .match-current-score {
        order: -1;
        border-bottom: 4px solid var(--ga-green)
    }

    .match-current-score strong {
        font-size: 32px
    }

    .match-player-list {
        gap: 8px
    }

    .match-player {
        padding: 8px
    }

    .match-player-avatar-wrap {
        width: 40px;
        height: 40px;
        flex: 0 0 40px
    }

    .match-summary-card {
        grid-column: 1/-1 !important;
        order: -1
    }

    .match-summary-card .score-summary {
        margin: 10px 0 3px
    }

    .result-entry-table {
        font-size: 12px
    }

    .result-entry-table input[type=number] {
        width: 58px;
        min-width: 58px;
        min-height: 42px;
        font-size: 16px;
        padding: 5px
    }

    .result-entry-table input[type=checkbox] {
        width: 22px;
        height: 22px
    }

    .result-entry-table th,
    .result-entry-table td {
        padding: 7px 6px;
        white-space: nowrap
    }

    .result-entry-table th:first-child,
    .result-entry-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 4;
        background: #fff;
        box-shadow: 4px 0 8px rgba(4, 43, 55, .05)
    }

    .result-entry-table thead th:first-child {
        background: #f7f9fa;
        z-index: 5
    }

    .fourball-entry-table {
        min-width: 930px !important
    }

    .result-entry-table:not(.fourball-entry-table) {
        min-width: 680px !important
    }

    .score-form-actions {
        position: sticky;
        bottom: calc(env(safe-area-inset-bottom) + 8px);
        z-index: 25;
        display: grid;
        grid-template-columns: 1fr;
        padding: 10px;
        margin: 12px -4px 0;
        border: 1px solid var(--ga-line);
        border-radius: 13px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 -6px 22px rgba(4, 43, 55, .1);
        backdrop-filter: blur(10px);
    }

    .score-form-actions .btn {
        width: 100%;
        min-height: 50px;
        font-size: 15px
    }

    .score-form-actions .muted {
        text-align: center
    }
}

/* ---------- GALERÃ�A PRIVADA ---------- */
@media(max-width:760px) {
    .gallery-private-notice {
        padding: 12px;
        margin-bottom: 12px
    }

    .gallery-private-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 7px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-private-tabs>* {
        flex: 0 0 auto
    }

    .gallery-private-upload {
        display: block
    }

    .gallery-private-upload>div:first-child {
        margin-bottom: 12px
    }

    .gallery-private-grid {
        grid-template-columns: 1fr !important
    }

    .gallery-private-card {
        overflow: hidden
    }

    .gallery-photo-body {
        padding: 12px
    }

    .gallery-comment {
        padding: 9px
    }

    .gallery-comment-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px
    }

    .gallery-comment-form .btn {
        width: 100%
    }
}

/* ---------- SPONSORS ---------- */
@media(max-width:760px) {
    .sponsor-list-panel {
        margin-top: 14px
    }

    .sponsor-management-table .sponsor-logo-cell {
        width: 68px;
        height: 46px;
        justify-self: end
    }

    .sponsor-management-table small {
        display: block;
        margin-top: 2px;
        color: var(--ga-muted)
    }

    .sponsor-management-table .row-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        width: 100%
    }

    .sponsor-management-table .row-actions .btn,
    .sponsor-management-table .row-actions form,
    .sponsor-management-table .row-actions form .btn {
        width: 100%;
        margin: 0
    }
}

@media(max-width:430px) {
    .sponsor-management-table td {
        grid-template-columns: 82px minmax(0, 1fr)
    }
}

/* ---------- SUPERADMIN ---------- */
@media(max-width:900px) {
    .superuser-grid {
        grid-template-columns: 1fr !important
    }

    .superuser-grid>aside {
        order: -1
    }

    .superuser-grid>aside .card {
        position: static !important
    }
}

@media(max-width:760px) {
    .superuser-filter-form {
        grid-template-columns: 1fr !important
    }

    .superuser-filter-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px
    }

    .superuser-filter-actions .btn {
        width: 100%;
        margin: 0
    }

    .superuser-tournament-table .table-subline {
        display: block;
        margin-top: 2px;
        color: var(--ga-muted)
    }

    .superuser-tournament-table .action-menu {
        margin-left: auto;
        width: auto;
        min-width: 0
    }

    .superuser-tournament-table .action-menu-trigger {
        min-width: 44px;
        width: auto
    }

    .superuser-public-state {
        margin: 8px 0;
        padding: 6px 0;
        border-top: 1px solid var(--ga-line);
        border-bottom: 1px solid var(--ga-line)
    }

    #admin-editor,
    #superuser-create {
        scroll-margin-top: 76px
    }
}

@media(max-width:430px) {
    .superuser-tournament-table td {
        grid-template-columns: 80px minmax(0, 1fr)
    }

    .superuser-filter-actions {
        grid-template-columns: 1fr
    }
}

/* Evita que un details abierto quede visualmente detrÃ¡s de la tarjeta siguiente. */
@media(max-width:760px) {
    details.action-menu[open] {
        position: relative;
        z-index: 1490
    }

    tr:has(details.action-menu[open]) {
        z-index: 1480
    }
}

/* V7 seguridad: logout por POST protegido con CSRF, con aspecto de opciÃ³n de menÃº. */
.nav-logout-form {
    margin: 0;
    padding: 0
}

.nav-logout-button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #dbe8eb;
    cursor: pointer;
    text-align: left;
    border-radius: 12px;
    padding: 12px 13px;
    font: inherit;
    font-weight: 650;
}

.nav-logout-button:hover,
.nav-logout-button:focus-visible {
    color: #fff;
    background: linear-gradient(90deg, rgba(36, 185, 79, .95), rgba(99, 219, 72, .9));
    outline: none;
    box-shadow: 0 8px 20px rgba(36, 185, 79, .18);
}

/* ============================================================
   V8 Â· PALETA DE TORNEO + MATCH MÃ“VIL
   ============================================================ */
.tv-scoreboard-shell {
    --tv-bg: var(--gmz-secondary, #063443);
    --tv-surface: var(--gmz-surface, #FFFFFF);
    --tv-surface-soft: color-mix(in srgb, var(--gmz-surface, #FFFFFF) 92%, var(--gmz-background, #F3F6F7));
    --tv-accent: var(--gmz-accent, #63DB48);
    --tv-primary: var(--gmz-primary, #24B94F);
    color: var(--gmz-text, #102A31);
}

.tv-body {
    background: var(--gmz-background, #F3F6F7)
}

.public-shell {
    color: var(--gmz-text, #102A31)
}

.public-tournament-body {
    background: var(--gmz-background, #F3F6F7)
}

.public-hero {
    background: linear-gradient(125deg, var(--gmz-secondary, #063443), color-mix(in srgb, var(--gmz-secondary, #063443) 78%, var(--gmz-primary, #24B94F)));
}

.public-panel,
.public-extras {
    background: var(--gmz-surface, #FFFFFF)
}

.public-standing {
    border-left-color: var(--club-color, var(--gmz-primary, #24B94F)) !important
}

.public-match-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--team-a-color, #24B94F) 10%, transparent), transparent 28%, transparent 72%, color-mix(in srgb, var(--team-b-color, #063443) 10%, transparent)),
        var(--gmz-surface, #FFFFFF);
    border-left: 5px solid var(--team-a-color, #24B94F);
    border-right: 5px solid var(--team-b-color, #063443);
}

.match-team {
    border-top: 4px solid var(--team-color, var(--gmz-primary, #24B94F));
}

.match-final-standing {
    border-left-color: var(--club-color, var(--gmz-primary, #24B94F)) !important
}

.tournament-palette-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 12px
}

.tournament-palette-grid label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--ga-line, #e1e8ea);
    border-radius: 12px;
    background: #fff;
    font-weight: 700
}

.tournament-palette-grid input[type=color] {
    width: 54px;
    height: 38px;
    padding: 2px;
    border: 0;
    background: transparent;
    cursor: pointer
}

@media(max-width:760px) {
    .tournament-palette-grid {
        grid-template-columns: 1fr 1fr
    }

    .match-heading .muted {
        display: none
    }

    .match-lineup-banner {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px
    }

    .match-team {
        padding: 10px 12px;
        border-radius: 12px
    }

    .match-current-score {
        order: -1;
        padding: 10px 12px;
        border-radius: 12px
    }

    .match-current-score strong {
        font-size: 30px
    }

    .match-current-score small {
        display: none
    }

    .match-player-list {
        gap: 5px
    }

    .match-player {
        padding: 5px 0
    }

    .match-player-avatar-wrap {
        width: 34px;
        height: 34px
    }

    .match-summary-card {
        padding: 12px
    }

    .match-summary-card>span.eyebrow,
    .match-summary-card>hr,
    .match-summary-card h3,
    .match-summary-card p.muted {
        display: none
    }

    .match-summary-card .score-summary {
        font-size: 34px;
        margin: 0 0 6px
    }

    .match-summary-card .score-progress {
        margin: 0 0 8px;
        font-size: 13px
    }

    .match-start-summary {
        margin: 6px 0;
        padding: 8px 10px
    }

    .match-final-standing {
        padding: 8px 10px;
        margin: 5px 0
    }

    .final-result-callout {
        margin-top: 8px;
        padding: 10px 12px
    }

    .match-hole-table-wrap {
        overflow: visible !important;
        border: 0;
        background: transparent;
        box-shadow: none
    }

    .match-hole-table-wrap table,
    .match-hole-table-wrap tbody,
    .match-hole-table-wrap tr,
    .match-hole-table-wrap td {
        display: block;
        width: 100%;
        min-width: 0 !important
    }

    .match-hole-table-wrap thead {
        display: none
    }

    .match-hole-table-wrap tbody {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px
    }

    .match-hole-table-wrap tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 9px;
        border: 1px solid var(--ga-line, #e1e8ea);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 3px 12px rgba(4, 43, 55, .05)
    }

    .match-hole-table-wrap td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 6px 8px !important;
        border: 0 !important;
        background: transparent !important;
        text-align: right !important
    }

    .match-hole-table-wrap td::before {
        content: attr(data-label);
        font-size: 11px;
        line-height: 1.15;
        font-weight: 800;
        color: #61747a;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .match-hole-table-wrap td:first-child {
        grid-column: 1/-1;
        background: color-mix(in srgb, var(--gmz-primary, #24B94F) 10%, #fff) !important;
        border-radius: 8px;
        font-size: 18px
    }

    .match-hole-table-wrap td input[type=number] {
        width: 68px;
        min-height: 42px;
        margin-left: auto;
        text-align: center;
        font-size: 18px
    }

    .match-hole-table-wrap td input[type=checkbox] {
        width: 24px;
        height: 24px
    }

    .match-hole-table-wrap .net-score {
        font-size: 18px;
        font-weight: 900
    }

    .score-form-actions {
        position: sticky;
        bottom: 8px;
        z-index: 20;
        margin-top: 10px;
        padding: 8px;
        background: rgba(255, 255, 255, .94);
        backdrop-filter: blur(8px);
        border-radius: 12px;
        box-shadow: 0 5px 18px rgba(4, 43, 55, .12)
    }

    .score-form-actions .btn {
        width: 100%
    }

    .handicap-mode-note {
        padding: 8px 10px;
        font-size: 12px
    }
}

@media(max-width:480px) {
    .tournament-palette-grid {
        grid-template-columns: 1fr
    }

    .match-hole-table-wrap tr {
        grid-template-columns: 1fr 1fr
    }
}

/* Colores de los dos equipos en listados/resultados online. */
.match-management-table tbody tr {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--team-a-color, #24B94F) 7%, transparent), transparent 22%, transparent 78%, color-mix(in srgb, var(--team-b-color, #063443) 7%, transparent)),
        #fff;
}

@media(max-width:760px) {
    .match-management-table tbody tr {
        border-left: 5px solid var(--team-a-color, #24B94F) !important;
        border-right: 5px solid var(--team-b-color, #063443) !important;
    }
}

.tv-scoreboard-shell,
.public-shell {
    min-height: 100vh;
    background: var(--gmz-background, #F3F6F7)
}

@media(max-width:760px) {
    .match-summary-card .match-scoring-rule {
        display: none
    }

    .match-summary-card {
        order: -1
    }

    .match-content-grid {
        display: flex;
        flex-direction: column
    }

    .match-summary-card+* {
        order: 1
    }
}

.tv-scoreboard-shell {
    --tv-text: var(--gmz-text, #102A31);
    --tv-muted: color-mix(in srgb, var(--gmz-text, #102A31) 58%, var(--gmz-surface, #FFFFFF));
    --tv-line: color-mix(in srgb, var(--gmz-text, #102A31) 16%, var(--gmz-surface, #FFFFFF));
    --tv-accent-2: var(--gmz-primary, #24B94F);
}

.tv-match-detail {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--team-a-color, var(--tv-accent)) 7%, transparent), transparent 24%, transparent 76%, color-mix(in srgb, var(--team-b-color, var(--tv-accent-2)) 7%, transparent)),
        var(--tv-surface-soft);
}

/* V9 Â· jugadores globales y formatos sociales */
.global-player-picker {
    margin-bottom: 16px
}

.global-player-enroll-form {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) auto auto;
    gap: 10px;
    align-items: end
}

.global-player-enroll-form .field {
    min-width: 0
}

.compact-check {
    min-height: 44px;
    align-self: end
}

.player-email {
    display: block;
    color: var(--ga-muted, #6b7d82);
    overflow: hidden;
    text-overflow: ellipsis
}

.social-game-create {
    margin-bottom: 16px
}

.social-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 14px
}

.social-game-card {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.social-game-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px
}

.social-game-head h3 {
    margin: 7px 0 0
}

.social-game-players {
    display: grid;
    gap: 6px
}

.social-game-players span {
    padding: 8px 10px;
    border: 1px solid var(--ga-line, #e1e8ea);
    border-radius: 10px;
    background: #f8fafb
}

.social-game-result {
    font-size: 28px;
    font-weight: 900;
    color: var(--gmz-secondary, #063443);
    text-align: center
}

.social-game-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto
}

.social-game-actions form {
    margin: 0
}

.social-live-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px
}

.social-player-total {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--ga-line, #e1e8ea);
    border-radius: 13px;
    background: #fff;
    text-align: center
}

.social-player-total span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    color: var(--ga-muted, #6b7d82)
}

.social-player-total strong {
    display: block;
    font-size: 30px;
    line-height: 1.1;
    color: var(--gmz-secondary, #063443)
}

.social-hole-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 10px
}

.social-hole-card {
    padding: 12px
}

.social-hole-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px
}

.social-hole-title small {
    color: var(--ga-muted, #6b7d82)
}

.social-hole-inputs {
    display: grid;
    gap: 6px
}

.social-hole-inputs label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px auto;
    align-items: center;
    gap: 8px
}

.social-hole-inputs label>span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700
}

.social-hole-inputs input {
    width: 70px;
    min-height: 40px;
    text-align: center
}

.social-hole-inputs small {
    font-size: 10px;
    color: var(--ga-muted, #6b7d82)
}

.social-hole-points {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--gmz-primary, #24B94F)
}

.sticky-save-bar {
    position: sticky;
    bottom: 8px;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(4, 43, 55, .12)
}

@media(max-width:900px) {
    .social-hole-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:700px) {
    .global-player-enroll-form {
        grid-template-columns: 1fr
    }

    .social-games-grid {
        grid-template-columns: 1fr
    }

    .social-live-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .social-hole-grid {
        grid-template-columns: 1fr
    }

    .social-hole-card {
        padding: 10px
    }

    .social-hole-inputs label {
        grid-template-columns: minmax(0, 1fr) 68px auto
    }

    .sticky-save-bar .btn {
        width: 100%
    }
}

/* V10 Â· Partidas entre amigos */
.friend-game-list {
    display: grid;
    gap: 12px
}

.friend-game-card {
    display: grid;
    gap: 10px
}

.friend-game-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center
}

.friend-game-card-head>div {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

.friend-game-players {
    display: flex;
    gap: 7px;
    flex-wrap: wrap
}

.friend-game-players span {
    background: var(--gmz-surface, #fff);
    border: 1px solid rgba(6, 52, 67, .12);
    padding: 6px 9px;
    border-radius: 999px
}

.friend-live-score {
    display: grid;
    gap: 12px
}

.americana-score,
.pair-score {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.pair-score {
    grid-template-columns: repeat(2, 1fr)
}

.americana-score>div,
.pair-score>div {
    padding: 14px;
    border-radius: 14px;
    background: rgba(36, 185, 79, .08);
    text-align: center
}

.americana-score span,
.pair-score span {
    display: block;
    font-weight: 700
}

.americana-score strong,
.pair-score strong {
    font-size: 30px
}

.social-decision {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff4cf;
    font-weight: 700
}

.friend-holes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px
}

.friend-hole-card {
    border: 1px solid rgba(6, 52, 67, .13);
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    min-width: 0
}

.friend-hole-card header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px
}

.friend-hole-card header span {
    font-size: 12px;
    color: #61747a
}

.friend-hole-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
}

.friend-hole-inputs label {
    display: grid;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    min-width: 0
}

.friend-hole-inputs input {
    width: 100%;
    font-size: 16px
}

.friend-hole-inputs small {
    font-weight: 600;
    color: #566
}

.friend-hole-card footer {
    margin-top: 8px;
    font-weight: 800
}

.sticky-save {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    display: flex;
    justify-content: center;
    padding: 10px
}

.sticky-save .btn {
    min-width: 180px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .18)
}

@media(max-width:620px) {
    .friend-game-card-head {
        align-items: flex-start;
        flex-direction: column
    }

    .americana-score {
        grid-template-columns: 1fr
    }

    .pair-score {
        grid-template-columns: 1fr 1fr
    }

    .friend-holes-grid {
        grid-template-columns: 1fr
    }

    .friend-hole-inputs {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .friend-game-form {
        grid-template-columns: 1fr !important
    }
}

/* ============================================================
   V10.2 Â· CUENTAS GLOBALES + PARTIDAS ENTRE AMIGOS
   ============================================================ */
.login-register-box {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(6, 52, 67, .12);
    border-radius: 14px;
    background: rgba(99, 219, 72, .06);
    display: grid;
    gap: 9px;
    text-align: center
}

.login-register-box span {
    font-size: .92rem;
    color: var(--gmz-muted, #6b7b80)
}

.register-card {
    max-width: 660px
}

.register-form {
    gap: 13px
}

.register-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.register-login-link {
    text-align: center;
    margin-top: 16px;
    color: var(--gmz-muted, #6b7b80)
}

.register-login-link a {
    font-weight: 800
}

.friend-games-heading {
    align-items: flex-end
}

.friend-game-create {
    margin-bottom: 22px
}

.friend-game-form {
    display: grid;
    gap: 18px
}

.friend-game-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px
}

.friend-player-section {
    padding-top: 4px;
    border-top: 1px solid rgba(6, 52, 67, .10)
}

.friend-player-section h3 {
    margin: 0 0 12px
}

.friend-player-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px
}

.friend-social-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1fr);
    gap: 14px;
    align-items: end
}

.friend-message-toggle {
    min-height: 62px;
    margin: 0
}

.input-suffix {
    display: flex;
    align-items: center;
    gap: 8px
}

.input-suffix input {
    flex: 1
}

.input-suffix span {
    font-weight: 800;
    color: var(--gmz-muted, #6b7b80)
}

.friend-game-list-section {
    display: grid;
    gap: 12px
}

.friend-game-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.friend-game-card {
    display: grid;
    gap: 14px
}

.friend-game-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start
}

.friend-game-meta {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.friend-game-result {
    text-align: right;
    display: grid;
    gap: 2px
}

.friend-game-result span {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gmz-muted, #6b7b80);
    font-weight: 800
}

.friend-game-result b {
    font-size: 1.35rem
}

.friend-game-players {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
}

.friend-game-players>span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 11px;
    background: rgba(6, 52, 67, .045);
    min-width: 0
}

.friend-player-index {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gmz-primary, #24B94F);
    color: white;
    font-size: .78rem;
    font-weight: 900;
    flex: 0 0 24px
}

.friend-game-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
    border-top: 1px solid rgba(6, 52, 67, .08)
}

.friend-game-card-foot .actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.friend-game-card-foot form {
    margin: 0
}

.friend-empty {
    display: grid;
    gap: 5px;
    text-align: center;
    padding: 28px
}

@media(max-width:1050px) {
    .friend-game-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .friend-player-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:760px) {
    .register-two-cols {
        grid-template-columns: 1fr
    }

    .friend-games-heading {
        align-items: stretch
    }

    .friend-game-form-grid,
    .friend-player-grid,
    .friend-social-row,
    .friend-game-list {
        grid-template-columns: 1fr
    }

    .friend-game-card-head {
        align-items: center
    }

    .friend-game-players {
        grid-template-columns: 1fr
    }

    .friend-game-card-foot {
        align-items: stretch;
        flex-direction: column
    }

    .friend-game-card-foot .actions {
        width: 100%
    }

    .friend-game-card-foot .actions .btn {
        flex: 1
    }

    .friend-game-card-foot .actions form {
        flex: 1
    }

    .friend-game-card-foot .actions form .btn {
        width: 100%
    }
}

/* V10.2.2 - El logout es un POST, pero adopta exactamente la opciÃ³n de menÃº. */
.nav .nav-logout-form {
    display: block;
    margin: 0;
    padding: 0
}

.nav .nav-menu-item {
    width: 100%;
    box-sizing: border-box;
    margin: 5px 0;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #dce9e0;
    text-align: left;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    line-height: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.nav .nav-logout-button:hover,
.nav .nav-logout-button:focus-visible {
    color: #fff;
    background: linear-gradient(90deg, rgba(36, 185, 79, .95), rgba(99, 219, 72, .90));
    outline: none;
    box-shadow: 0 8px 20px rgba(36, 185, 79, .18);
}

/* ============================================================
   V10.3 Â· TARJETA RÃ�PIDA DE PARTIDAS ENTRE AMIGOS
   ============================================================ */
.friend-scorecard-form {
    display: grid;
    gap: 16px;
    margin-top: 14px;
    min-width: 0
}

.friend-scorecard-help {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(6, 52, 67, .10);
    border-radius: 13px;
    background: rgba(36, 185, 79, .055)
}

.friend-scorecard-help strong {
    color: var(--gmz-primary, #24B94F);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase
}

.friend-scorecard-help span {
    font-weight: 750
}

.friend-scorecard-help small {
    grid-column: 2;
    color: var(--gmz-muted, #6b7b80)
}

.friend-scorecard-block {
    padding: 0;
    overflow: hidden
}

.friend-scorecard-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(6, 52, 67, .09);
    background: linear-gradient(90deg, rgba(6, 52, 67, .035), rgba(36, 185, 79, .045))
}

.friend-scorecard-title>div {
    display: flex;
    align-items: center;
    gap: 9px
}

.friend-scorecard-title span {
    display: inline-grid;
    place-items: center;
    min-width: 48px;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--gmz-primary, #24B94F);
    color: #fff;
    font-size: .76rem;
    font-weight: 900
}

.friend-scorecard-title strong {
    font-size: 1rem
}

.friend-scorecard-title small {
    color: var(--gmz-muted, #6b7b80);
    font-weight: 650
}

.friend-scorecard-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable
}

.friend-scorecard-table {
    width: 100%;
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff
}

.friend-scorecard-table th,
.friend-scorecard-table td {
    height: 45px;
    padding: 5px;
    border-right: 1px solid rgba(6, 52, 67, .075);
    border-bottom: 1px solid rgba(6, 52, 67, .075);
    text-align: center;
    vertical-align: middle
}

.friend-scorecard-table tr>*:last-child {
    border-right: 0
}

.friend-scorecard-table tbody tr:last-child>* {
    border-bottom: 0
}

.friend-scorecard-hole-row th {
    height: 40px;
    background: #063443;
    color: #fff;
    font-size: .82rem;
    font-weight: 900
}

.friend-scorecard-meta-row th,
.friend-scorecard-meta-row td {
    height: 30px;
    background: #f4f8f6;
    color: #52686e;
    font-size: .7rem;
    font-weight: 850
}

.friend-scorecard-player-col {
    position: sticky;
    left: 0;
    z-index: 5;
    width: 205px;
    min-width: 205px;
    max-width: 205px;
    text-align: left !important;
    padding-left: 13px !important;
    box-shadow: 5px 0 10px rgba(6, 52, 67, .045)
}

.friend-scorecard-hole-row .friend-scorecard-player-col {
    z-index: 8;
    background: #063443
}

.friend-scorecard-meta-row .friend-scorecard-player-col {
    z-index: 7;
    background: #edf4f1
}

.friend-scorecard-player {
    background: #fff;
    line-height: 1.15
}

.friend-scorecard-player span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .77rem;
    font-weight: 900;
    white-space: nowrap
}

.friend-scorecard-player small {
    display: block;
    margin-top: 3px;
    color: var(--gmz-muted, #6b7b80);
    font-size: .66rem;
    font-weight: 700
}

.friend-score-cell {
    position: relative;
    width: 66px;
    min-width: 66px;
    background: #fff;
    transition: background-color .15s ease
}

.friend-score-input {
    width: 48px !important;
    min-width: 48px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 auto;
    padding: 4px 2px !important;
    border: 1px solid #cfdbdd !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #092e38 !important;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    -moz-appearance: textfield
}

.friend-score-input::-webkit-outer-spin-button,
.friend-score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.friend-score-input:focus {
    border-color: var(--gmz-primary, #24B94F) !important;
    outline: 3px solid rgba(36, 185, 79, .15) !important
}

.friend-score-input:disabled {
    opacity: .75;
    cursor: not-allowed
}

.friend-net-value {
    display: block;
    min-height: 11px;
    margin-top: 2px;
    color: #67797e;
    font-size: .59rem;
    font-weight: 750;
    line-height: 1
}

.friend-score-cell.score-under-par {
    background: rgba(36, 185, 79, .075)
}

.friend-score-cell.score-under-par .friend-score-input {
    border-color: rgba(36, 185, 79, .55) !important
}

.friend-score-cell.score-par {
    background: rgba(6, 52, 67, .025)
}

.friend-score-cell.score-over-par {
    background: rgba(231, 151, 50, .055)
}

.friend-scorecard-total-col {
    width: 74px;
    min-width: 74px;
    background: #f2f8f4 !important;
    font-weight: 900
}

.friend-scorecard-grand-total-col {
    width: 80px;
    min-width: 80px;
    background: rgba(36, 185, 79, .10) !important;
    font-weight: 950
}

.friend-scorecard-hole-row .friend-scorecard-total-col,
.friend-scorecard-hole-row .friend-scorecard-grand-total-col {
    background: #0d5364 !important;
    color: #fff
}

.friend-score-total-cell strong {
    display: block;
    font-size: 1.05rem;
    color: #062f3b
}

.friend-score-total-cell small {
    display: block;
    margin-top: 2px;
    color: #5e7379;
    font-size: .62rem;
    font-weight: 750
}

.friend-scorecard-save {
    margin-top: 0;
    padding: 8px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(6, 52, 67, .09);
    border-radius: 13px;
    backdrop-filter: blur(8px)
}

.friend-scorecard-form.is-dirty .friend-scorecard-save {
    box-shadow: 0 8px 28px rgba(4, 43, 55, .16)
}

@media(max-width:760px) {
    .friend-score-heading {
        align-items: stretch
    }

    .friend-scorecard-help {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 11px 12px
    }

    .friend-scorecard-help small {
        grid-column: 1
    }

    .friend-scorecard-title {
        align-items: flex-start;
        padding: 11px 12px
    }

    .friend-scorecard-title small {
        max-width: 48%;
        text-align: right
    }

    .friend-scorecard-table {
        min-width: 820px
    }

    .friend-scorecard-player-col {
        width: 150px;
        min-width: 150px;
        max-width: 150px;
        padding-left: 9px !important
    }

    .friend-scorecard-player span {
        font-size: .7rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical
    }

    .friend-score-cell {
        width: 62px;
        min-width: 62px
    }

    .friend-score-input {
        width: 46px !important;
        min-width: 46px !important
    }

    .friend-scorecard-total-col {
        width: 68px;
        min-width: 68px
    }

    .friend-scorecard-grand-total-col {
        width: 72px;
        min-width: 72px
    }

    .friend-scorecard-save .btn {
        width: 100%;
        min-height: 48px
    }
}

/* ============================================================
   V10.4.2 Â· JUGADORES AISLADOS POR TORNEO + CONTENCION DE FORMULARIOS
   ============================================================ */
.players-management-grid,
.players-management-grid>*,
.players-management-grid form,
.players-management-grid .field {
    min-width: 0;
    max-width: 100%;
}

.players-management-grid .field input,
.players-management-grid .field select,
.players-management-grid .field textarea,
.player-import-card input,
.player-import-card select,
.player-import-card textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media(max-width:760px) {

    .players-management-grid .card,
    .players-management-grid form,
    .players-management-grid .field {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================================
   V10.4.4 Â· UX deportiva inspirada en patrones de apps de golf
   ADMIN = compacto Â· PUBLIC = competiciÃ³n Â· TV = marcador
   ============================================================ */

/* Login: el acceso pÃºblico ocupa siempre la tarjeta completa. */
.login-public-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
}

.login-public-live {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
}

/* PUBLIC Â· cabecera y estado de competiciÃ³n */
.public-shell {
    width: min(1320px, calc(100% - 28px));
}

.public-hero-sport {
    position: relative;
    overflow: hidden;
    min-height: 122px;
    padding: 24px 26px;
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(6, 52, 67, .18);
}

.public-hero-sport:after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -110px;
    bottom: -210px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--gmz-primary, #24B94F) 42%, transparent);
    pointer-events: none;
}

.public-hero-sport .public-brand,
.public-hero-sport .public-top-actions {
    position: relative;
    z-index: 1;
}

.public-hero-sport .public-brand img {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .16);
}

.public-hero-sport .public-brand h1 {
    font-size: clamp(25px, 3.2vw, 44px);
    letter-spacing: -.035em;
}

.public-status-strip {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin: 14px 0;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--gmz-text, #102A31) 10%, transparent);
    border-radius: 14px;
    background: var(--gmz-surface, #fff);
    box-shadow: 0 6px 20px rgba(6, 52, 67, .045);
}

.public-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #f3f6f7;
    color: var(--gmz-text, #102A31);
    font-size: 11px;
    font-weight: 850;
}

.public-status-chip i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9aa9ae;
}

.public-status-chip b {
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #fff;
    text-align: center;
    font-size: 10px;
}

.public-status-chip.is-live {
    background: color-mix(in srgb, var(--gmz-primary, #24B94F) 12%, #fff);
}

.public-status-chip.is-live i {
    background: var(--gmz-primary, #24B94F);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--gmz-primary, #24B94F) 14%, transparent);
}

.public-status-chip.is-finished i {
    background: #e45555;
}

/* PUBLIC Â· clasificaciÃ³n oficial protagonista; virtual secundaria. */
.public-ranking-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: stretch;
}

.public-ranking-grid .public-official-panel {
    border-top: 0;
    border-left: 5px solid var(--gmz-primary, #24B94F);
    box-shadow: 0 10px 28px rgba(16,42,49,.08);
}

.public-ranking-grid .public-official-panel h2 {
    font-size: clamp(26px, 2vw, 34px);
    letter-spacing: -.035em;
}

.public-ranking-grid .public-live-panel {
    border-top: 0;
    border-left: 3px solid color-mix(in srgb, var(--gmz-primary, #24B94F) 45%, #d9e2dc);
    background: color-mix(in srgb, var(--gmz-surface, #fff) 94%, #eef4f0);
    opacity: .88;
}

.public-ranking-grid .public-live-panel h2 {
    font-size: 22px;
}

.public-standing-sport {
    grid-template-columns: 32px 52px minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 9px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--club-color, var(--gmz-primary, #24B94F)) 7%, var(--gmz-surface, #fff));
    transition: transform .15s ease, border-color .15s ease;
}

.public-standing-sport:hover {
    transform: translateY(-1px);
}

.public-standing-sport img {
    width: 46px;
    height: 46px;
    padding: 3px;
    border-radius: 9px;
    background: #fff;
}

.public-standing-sport b {
    font-size: 14px;
}

.public-standing-sport strong {
    font-size: 28px;
    letter-spacing: -.04em;
}

.public-standing-sport.is-official {
    min-height: 66px;
    background: color-mix(in srgb, var(--club-color, var(--gmz-primary, #24B94F)) 8%, var(--gmz-surface, #fff));
    border-width: 1px 1px 1px 4px;
}

.public-standing-sport.is-official img {
    width: 48px;
    height: 48px;
}

.public-standing-sport.is-official b {
    font-size: 14px;
    font-weight: 900;
}

.public-standing-sport.is-official strong {
    font-size: 30px;
    font-weight: 950;
}

.public-standing-sport.is-virtual {
    min-height: 50px;
    grid-template-columns: 26px 38px minmax(0, 1fr) auto;
    padding: 6px 10px;
    background: var(--gmz-surface, #fff);
}

.public-standing-sport.is-virtual img {
    width: 34px;
    height: 34px;
}

.public-standing-sport.is-virtual b {
    font-size: 12px;
}

.public-standing-sport.is-virtual strong {
    font-size: 19px;
}

.public-standing-position {
    color: color-mix(in srgb, var(--gmz-text, #102A31) 55%, transparent);
    font-size: 12px;
    font-weight: 900;
}

/* PUBLIC Â· partidos como marcador deportivo, no como formulario. */
.public-program-panel {
    padding: 20px;
    border-radius: 18px;
}

.public-program-head {
    align-items: center;
    margin-bottom: 12px;
}

.public-match-list-sport {
    gap: 12px;
}

.public-match-card-sport {
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--gmz-text, #102A31) 12%, transparent);
    border-left: 0;
    border-radius: 16px;
    background: var(--gmz-surface, #fff);
    box-shadow: 0 8px 24px rgba(6, 52, 67, .06);
}

.public-match-card-sport.is-live {
    background: var(--gmz-surface, #fff);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--gmz-primary, #24B94F) 12%, transparent);
}

.public-match-card-sport.is-live:before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--team-a-color), var(--gmz-primary, #24B94F) 48%, var(--team-b-color));
}

.public-match-card-sport.is-finished:before {
    content: "";
    display: block;
    height: 3px;
    background: color-mix(in srgb, var(--gmz-text, #102A31) 18%, transparent);
}

.public-match-meta {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--gmz-text, #102A31) 9%, transparent);
    background: color-mix(in srgb, var(--gmz-background, #F3F6F7) 58%, var(--gmz-surface, #fff));
}

.public-match-number {
    font-size: 11px;
    font-weight: 950;
    color: var(--gmz-secondary, #063443);
}

.public-match-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.public-match-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9aa7aa;
}

.public-match-status.is-live {
    background: rgba(36, 185, 79, .12);
    color: #0e7a31;
}

.public-match-status.is-live i {
    background: #20b54c;
}

.public-match-status.is-finished {
    background: rgba(228, 85, 85, .10);
    color: #a43b3b;
}

.public-match-status.is-finished i {
    background: #e45555;
}

.public-match-status.is-pending {
    background: #edf1f2;
    color: #66767a;
}

.public-match-start-line {
    margin-left: auto;
    color: color-mix(in srgb, var(--gmz-text, #102A31) 62%, transparent);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.public-match-start-line b {
    color: var(--gmz-text, #102A31);
    font-size: 12px;
}

.public-match-duel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, .32fr) minmax(0, 1fr);
    align-items: stretch;
}

.public-match-team {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px 16px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--team-a-color) 8%, var(--gmz-surface, #fff)), var(--gmz-surface, #fff));
}

.public-match-team-b {
    justify-content: flex-end;
    text-align: right;
    background: linear-gradient(270deg, color-mix(in srgb, var(--team-b-color) 8%, var(--gmz-surface, #fff)), var(--gmz-surface, #fff));
}

.public-match-team-logo {
    width: 54px;
    height: 54px;
    min-width: 54px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--gmz-text, #102A31) 11%, transparent);
    border-radius: 13px;
    background: #fff;
    overflow: hidden;
}

.public-match-team-logo img {
    width: 100%;
    height: 100%;
    padding: 5px;
    box-sizing: border-box;
    object-fit: contain;
}

.public-match-team-logo span {
    font-size: 18px;
    font-weight: 950;
    color: var(--gmz-secondary, #063443);
}

.public-match-team-copy {
    min-width: 0;
}

.public-match-team-copy strong,
.public-match-team-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.public-match-team-copy strong {
    font-size: clamp(14px, 1.2vw, 19px);
    line-height: 1.1;
    white-space: nowrap;
}

.public-match-team-copy small {
    margin-top: 5px;
    color: color-mix(in srgb, var(--gmz-text, #102A31) 60%, transparent);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
}

.public-match-score-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 12px 10px;
    border-left: 1px solid color-mix(in srgb, var(--gmz-text, #102A31) 9%, transparent);
    border-right: 1px solid color-mix(in srgb, var(--gmz-text, #102A31) 9%, transparent);
    background: color-mix(in srgb, var(--gmz-background, #F3F6F7) 46%, var(--gmz-surface, #fff));
    text-align: center;
}

.public-match-score-box span {
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--gmz-text, #102A31) 58%, transparent);
}

.public-match-score-leader {
    display: block;
    margin: 1px 0 2px;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .04em;
    line-height: 1.2;
    color: var(--gmz-text, #102A31) !important;
}

.public-match-score-leader b {
    font-size: 12px;
    font-weight: 950;
}

.public-match-card-sport.lead-a .public-match-team-a,
.public-match-card-sport.lead-b .public-match-team-b {
    background: color-mix(in srgb, var(--gmz-primary, #24B94F) 6%, transparent);
}

.public-match-score-box strong {
    font-size: clamp(25px, 2.4vw, 38px);
    line-height: 1;
    letter-spacing: -.05em;
    color: var(--gmz-text, #102A31);
    white-space: nowrap;
}

.public-match-score-box small {
    color: color-mix(in srgb, var(--gmz-text, #102A31) 55%, transparent);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.public-match-card-sport.lead-a .public-match-score-box {
    box-shadow: inset 5px 0 0 var(--team-a-color);
}

.public-match-card-sport.lead-b .public-match-score-box {
    box-shadow: inset -5px 0 0 var(--team-b-color);
}

.public-match-card-sport.is-square .public-match-score-box {
    box-shadow: inset 0 4px 0 var(--gmz-primary, #24B94F);
}

.public-match-card-actions {
    display: flex;
    justify-content: flex-end;
    padding: 7px 10px;
    border-top: 1px solid color-mix(in srgb, var(--gmz-text, #102A31) 8%, transparent);
    background: color-mix(in srgb, var(--gmz-background, #F3F6F7) 42%, var(--gmz-surface, #fff));
}

/* ADMIN Â· listado de partidos mÃ¡s denso, con lenguaje de "eventos". */
.match-program-panel {
    border-radius: 16px;
}

.match-program-panel .table-wrap {
    padding: 2px;
    background: #f4f6f7;
    border-radius: 13px;
}

.match-management-table {
    border-collapse: separate !important;
    border-spacing: 0 7px !important;
    min-width: 1020px;
    background: transparent !important;
}

.match-management-table thead th {
    padding: 7px 10px !important;
    border: 0 !important;
    background: transparent !important;
    color: #64747a !important;
    font-size: 9px !important;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.match-management-table tbody tr {
    background: #fff;
    box-shadow: 0 3px 12px rgba(6, 52, 67, .045);
}

.match-management-table tbody td {
    padding: 10px !important;
    border-top: 1px solid #e4e9ea !important;
    border-bottom: 1px solid #e4e9ea !important;
    border-left: 0 !important;
    border-right: 0 !important;
    vertical-align: middle !important;
}

.match-management-table tbody td:first-child {
    border-left: 4px solid #aeb8bb !important;
    border-radius: 10px 0 0 10px;
}

.match-management-table tbody td:last-child {
    border-right: 1px solid #e4e9ea !important;
    border-radius: 0 10px 10px 0;
}

.match-management-table tbody tr.status-progress td:first-child {
    border-left-color: #24B94F !important;
}

.match-management-table tbody tr.status-finished td:first-child {
    border-left-color: #e45555 !important;
}

.match-management-table tbody tr.status-pending td:first-child {
    border-left-color: #1eb5c7 !important;
}

.match-management-table .match-order {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f2f5f5;
    font-size: 12px;
    font-weight: 950;
}

.management-team-faceoff {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 240px;
}

.management-team-faceoff>span {
    color: #8a989c;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.management-team-token {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.management-team-token.team-b {
    justify-content: flex-end;
    text-align: right;
}

.management-team-token img {
    width: 31px;
    height: 31px;
    min-width: 31px;
    padding: 2px;
    border: 1px solid #e0e6e7;
    border-radius: 7px;
    background: #fff;
    object-fit: contain;
    box-sizing: border-box;
}

.management-team-token b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.management-team-token.team-a b {
    border-bottom: 2px solid var(--team-a-color);
}

.management-team-token.team-b b {
    border-bottom: 2px solid var(--team-b-color);
}

.match-management-table .lineup-mini {
    font-size: 10px;
    line-height: 1.45;
}

.match-management-table .match-start-mini b {
    font-size: 13px;
}

.match-management-table .match-start-mini small {
    font-size: 9px;
}

/* TV Â· la clasificaciÃ³n virtual es el dato principal y la oficial queda como referencia. */
.tv-v2-standing {
    min-height: 62px;
    border-radius: 13px;
}

.tv-standing-official {
    display: block !important;
    margin-top: 4px;
    color: var(--tv-muted) !important;
    font-size: 9px !important;
    font-weight: 800 !important;
}

.tv-standing-official b {
    color: var(--tv-text);
    font-size: 10px;
}

.tv-v2-standing-points {
    min-width: 70px;
    text-align: right;
    font-size: clamp(24px, 2vw, 34px) !important;
    font-weight: 950;
    letter-spacing: -.05em;
}

.tv-v2-standing-points small {
    font-size: 8px !important;
    letter-spacing: .045em;
    white-space: nowrap;
}

.tv-live-result-card {
    border-radius: 13px;
}

.tv-live-result-clubs {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    font-size: 11px;
    font-weight: 900;
}

.tv-live-result-clubs span:first-child {
    text-align: left;
}

.tv-live-result-clubs span:last-child {
    text-align: right;
}

.tv-live-result-value {
    font-size: clamp(24px, 2vw, 36px) !important;
    letter-spacing: -.05em;
}

@media(max-width:900px) {
    .public-ranking-grid {
        grid-template-columns: 1fr;
    }

    .public-match-duel {
        grid-template-columns: 1fr 112px 1fr;
    }

    .public-match-team {
        padding: 12px 10px;
        gap: 8px;
    }

    .public-match-team-logo {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 10px;
    }
}

@media(max-width:700px) {
    .public-shell {
        width: min(100% - 16px, 1320px);
        padding-top: 8px;
    }

    .public-hero-sport {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
        border-radius: 18px;
    }

    .public-hero-sport .public-brand img {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
        border-radius: 14px;
    }

    .public-top-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .public-status-strip {
        padding: 8px;
        gap: 6px;
    }

    .public-status-chip {
        flex: 1 1 auto;
        justify-content: center;
        padding: 6px 8px;
    }

    .public-program-panel {
        padding: 12px;
        border-radius: 15px;
    }

    .public-match-meta {
        flex-wrap: wrap;
    }

    .public-match-start-line {
        width: 100%;
        margin-left: 0;
        padding-top: 3px;
        border-top: 1px solid rgba(6, 52, 67, .07);
    }

    .public-match-duel {
        grid-template-columns: 1fr 92px 1fr;
    }

    .public-match-team {
        flex-direction: column;
        justify-content: flex-start;
        text-align: center;
        padding: 11px 6px;
    }

    .public-match-team-b {
        flex-direction: column-reverse;
        justify-content: flex-start;
        text-align: center;
    }

    .public-match-team-copy strong {
        white-space: normal;
        font-size: 12px;
    }

    .public-match-team-copy small {
        font-size: 9px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .public-match-team-logo {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .public-match-score-box {
        padding: 9px 4px;
    }

    .public-match-score-box strong {
        font-size: 25px;
    }

    .public-match-card-actions .btn {
        width: 100%;
    }
}

/* Dashboard del torneo: clasificaciÃ³n oficial primero, provisional despuÃ©s,
   con las mismas filas que la pÃ¡gina pÃºblica. Solo afecta al dashboard. */
.dashboard-standings-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 18px 0;
}

.dashboard-standings-panel {
    min-width: 0;
}

.dashboard-standings-panel .public-standings {
    max-width: 1040px;
    margin-top: 14px;
}

.dashboard-standings-panel-official {
    border-top: 4px solid var(--gmz-primary, #24B94F);
}

.dashboard-standings-panel-provisional {
    background: #fbfcfc;
}

@media (max-width: 560px) {
    .dashboard-standings-panel .public-standing-sport {
        grid-template-columns: 24px 38px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px;
    }

    .dashboard-standings-panel .public-standing-sport img,
    .dashboard-standings-panel .public-standing-sport.is-official img {
        width: 36px;
        height: 36px;
    }

    .dashboard-standings-panel .public-standing-sport.is-official strong {
        font-size: 23px;
    }
}

.dashboard-match-card {
    border-radius: 11px;
    box-shadow: 0 3px 12px rgba(6, 52, 67, .04);
}

.dashboard-match-card:hover {
    box-shadow: 0 8px 22px rgba(6, 52, 67, .08);
}

/* =========================================================
   V10.4.5 Â· PLAYER / MATCH PLAY SCORECARD
   ========================================================= */

/* El jugador llega a sus partidos desde una acciÃ³n principal del menÃº. */
.nav .nav-player-primary {
    background: color-mix(in srgb, var(--gmz-primary, #24B94F) 15%, transparent);
    border-left: 3px solid var(--gmz-primary, #24B94F);
    font-weight: 900;
}

.nav .nav-player-primary:hover {
    background: var(--gmz-primary, #24B94F);
    color: #fff;
}

/* Mis partidos: dos bloques claros (abiertos / finalizados) y tarjetas de marcador. */
.player-my-matches {
    min-width: 0;
}

.player-match-groups {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.player-match-group {
    padding: 16px;
    border-radius: 16px;
    overflow: hidden;
}

.player-match-group.is-open {
    border-top: 4px solid var(--gmz-primary, #24B94F);
}

.player-match-group.is-finished {
    border-top: 4px solid #8a989c;
}

.player-match-group-head {
    margin-bottom: 10px;
    align-items: center;
}

.player-match-count {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef3f4;
    color: var(--gmz-secondary, #063443);
    font-weight: 950;
}

.player-match-card-list {
    display: grid;
    gap: 10px;
}

.player-match-card {
    position: relative;
    border: 1px solid #dfe7e8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(6, 52, 67, .055);
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
}

.player-match-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 24px rgba(6, 52, 67, .09);
}

.player-match-card.is-live {
    box-shadow: inset 4px 0 0 var(--gmz-primary, #24B94F), 0 4px 14px rgba(6, 52, 67, .055);
}

.player-match-card-top {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    background: #f8fafb;
    border-bottom: 1px solid #e5ebec;
}

.player-match-start {
    margin-left: auto;
    font-size: 11px;
    font-weight: 850;
    color: #64767b;
    white-space: nowrap;
}

.player-match-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    align-items: stretch;
    min-height: 118px;
}

.player-match-side {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 3px 9px;
    padding: 12px;
    border-top: 4px solid var(--team-a-color);
}

.player-match-side.side-b {
    grid-template-columns: minmax(0, 1fr) 48px;
    text-align: right;
    border-top-color: var(--team-b-color);
}

.player-match-side img {
    grid-row: 1/3;
    width: 46px;
    height: 46px;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid #e1e7e8;
    background: #fff;
    object-fit: contain;
}

.player-match-side.side-b img {
    grid-column: 2;
}

.player-match-side strong {
    align-self: end;
    min-width: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-match-side span {
    align-self: start;
    min-width: 0;
    color: #68797e;
    font-size: 11px;
    line-height: 1.35;
}

.player-match-live-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 5px;
    background: var(--gmz-secondary, #063443);
    color: #fff;
    text-align: center;
}

.player-match-live-result small {
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .72;
}

.player-match-live-result b {
    font-size: 25px;
    line-height: 1;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.player-match-live-result em {
    font-style: normal;
    font-size: 9px;
    font-weight: 800;
    opacity: .75;
}

.player-match-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-top: 1px solid #e6ecee;
    background: #fbfcfc;
}

.player-match-card-foot>span {
    min-width: 0;
    color: #728287;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-match-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 82px;
    border: 1px dashed #d8e1e3;
    border-radius: 12px;
    background: #fafcfc;
    color: #718287;
}

.player-match-empty span {
    font-size: 22px;
}

.player-match-empty p {
    margin: 0;
}

/* HCP de juego y diferencia: visible antes de empezar a meter golpes. */
.handicap-mode-note {
    display: block;
}

.handicap-mode-heading {
    margin-bottom: 8px;
}

.handicap-player-allocation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 7px;
}

.handicap-player-allocation {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 7px 9px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .76);
    border-left: 3px solid var(--team-a-color, #24B94F);
    min-width: 0;
}

.handicap-player-allocation.side-b {
    border-left-color: var(--team-b-color, #063443);
}

.handicap-player-allocation b {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.handicap-player-allocation small {
    font-size: 9px;
    color: #607277;
}

.handicap-rounding-help {
    display: block;
    margin-top: 7px;
    color: #63767b;
    line-height: 1.35;
}

/* Indicador +1 / +2 justo al lado del resultado bruto que lo recibe. */
.score-entry-control {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
}

.stroke-allowance-badge {
    display: inline-grid;
    place-items: center;
    min-width: 25px;
    height: 25px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gmz-primary, #24B94F);
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(6, 52, 67, .14);
}

.hole-card-heading>span {
    display: none;
    color: #50656b;
    font-size: 10px;
    font-weight: 800;
}

/* Guardado automÃ¡tico por hoyo. */
.match-autosave-bar {
    position: sticky;
    top: 66px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 9px 11px;
    border: 1px solid #dce6e7;
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 15px rgba(6, 52, 67, .08);
    backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 800;
    color: #4d6268;
}

.autosave-state-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    background: #9aa7ab;
    box-shadow: 0 0 0 3px rgba(154, 167, 171, .14);
}

.match-autosave-bar.is-saving .autosave-state-dot {
    background: #e7a31a;
    animation: gmzAutoPulse .85s infinite alternate;
}

.match-autosave-bar.is-saved .autosave-state-dot,
.match-autosave-bar.is-final .autosave-state-dot {
    background: var(--gmz-primary, #24B94F);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gmz-primary, #24B94F) 18%, transparent);
}

.match-autosave-bar.is-error {
    border-color: #e3a6a6;
    background: #fff7f7;
    color: #a33131;
}

.match-autosave-bar.is-error .autosave-state-dot {
    background: #d94c4c;
}

@keyframes gmzAutoPulse {
    to {
        transform: scale(1.35);
        opacity: .55
    }
}

.match-hole-table-wrap tr.is-auto-saving {
    opacity: .72;
}

.match-hole-table-wrap tr.is-auto-saved {
    box-shadow: inset 4px 0 0 var(--gmz-primary, #24B94F), 0 4px 14px rgba(6, 52, 67, .07) !important;
}

.match-hole-table-wrap tr.is-auto-save-error {
    box-shadow: inset 4px 0 0 #d94c4c !important;
}

.match-score-form .score-form-actions {
    position: static !important;
    margin-top: 8px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.match-manual-save {
    opacity: .76;
}

@media(max-width:760px) {
    .player-match-group {
        padding: 10px;
    }

    .player-match-card-top {
        flex-wrap: wrap;
        padding: 8px;
    }

    .player-match-start {
        width: 100%;
        margin-left: 0;
    }

    .player-match-scoreboard {
        grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
        min-height: 130px;
    }

    .player-match-side,
    .player-match-side.side-b {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 9px 5px;
        text-align: center;
    }

    .player-match-side.side-b img {
        order: 0;
    }

    .player-match-side img {
        width: 43px;
        height: 43px;
        min-height: 43px;
    }

    .player-match-side strong {
        font-size: 11px;
        white-space: normal;
        line-height: 1.15;
    }

    .player-match-side span {
        font-size: 9px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .player-match-live-result b {
        font-size: 20px;
    }

    .player-match-card-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .player-match-card-foot .btn {
        width: 100%;
        min-height: 46px;
    }

    .handicap-player-allocation-grid {
        grid-template-columns: 1fr;
    }

    .match-autosave-bar {
        top: 58px;
        margin-bottom: 8px;
        font-size: 10px;
    }

    .match-hole-table-wrap .course-hole-meta-cell {
        display: none !important;
    }

    .match-hole-table-wrap td.hole-card-heading {
        display: flex !important;
        grid-column: 1/-1;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 10px !important;
    }

    .match-hole-table-wrap td.hole-card-heading::before {
        display: none !important;
        content: none !important;
    }

    .match-hole-table-wrap td.hole-card-heading>b {
        font-size: 18px;
    }

    .match-hole-table-wrap td.hole-card-heading>span {
        display: inline !important;
    }

    .match-hole-table-wrap td input[type=number] {
        width: 76px !important;
        min-height: 48px !important;
        font-size: 20px !important;
        font-weight: 850;
    }

    .score-entry-control {
        margin-left: auto;
    }

    .stroke-allowance-badge {
        min-width: 29px;
        height: 29px;
        font-size: 12px;
    }

    .match-score-form .score-form-actions .btn {
        min-height: 42px !important;
        font-size: 12px !important;
    }
}

/* ================================================================
   V10.5 â€” Responsive global, ayudas compactas y partidas entre amigos
   ================================================================ */
*,
*::before,
*::after {
    box-sizing: border-box
}

.card,
.field,
.editor-form,
.stack-form,
.inline-form,
.grid,
.table-wrap,
select,
input,
textarea,
button {
    min-width: 0;
    max-width: 100%
}

.field>select,
.field>input,
.field>textarea {
    width: 100%
}

[data-gmz-help] {
    display: none !important
}

.gmz-info-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    vertical-align: middle;
    margin-left: 6px
}

.gmz-info-button {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #ccd9dc;
    border-radius: 999px;
    background: #fff;
    color: var(--gmz-secondary, #063443);
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(6, 52, 67, .06)
}

.gmz-info-button:hover,
.gmz-info-button:focus-visible {
    border-color: var(--gmz-primary, #24b94f);
    color: var(--gmz-primary, #24b94f);
    outline: none
}

.gmz-info-popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 80;
    width: min(320px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #dbe5e7;
    background: #f8fbfb;
    color: #50646a;
    font-size: 12px;
    line-height: 1.45
}

.gmz-info-popover.is-open {
    display: block
}

.responsive-inline-form {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(130px, 1fr) auto;
    gap: 10px;
    align-items: end
}

.guest-player-list {
    display: grid;
    gap: 8px;
    margin-top: 14px
}

.guest-player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e1e8ea;
    border-radius: 12px;
    background: #fbfcfc
}

.guest-player-row>div {
    display: grid;
    gap: 2px
}

.guest-player-row small {
    color: #6c7d82
}

.optional-label {
    font-size: 10px;
    font-weight: 600;
    color: #7b898d
}

.friend-hole-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

.friend-hole-card {
    padding: 0 !important;
    overflow: hidden
}

.friend-hole-card>header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f6f9f9;
    border-bottom: 1px solid #e3eaec
}

.friend-hole-card>header>div:first-child {
    display: flex;
    align-items: center;
    gap: 8px
}

.hole-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--gmz-secondary, #063443);
    color: #fff;
    font-weight: 950
}

.hole-meta {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: #62757a
}

.hole-meta span {
    white-space: nowrap
}

.friend-hole-players {
    display: grid
}

.hole-player-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 1px solid #edf1f2
}

.hole-player-name {
    display: grid;
    min-width: 0
}

.hole-player-name b {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.hole-player-name small {
    font-size: 9px;
    color: #77878b
}

.hcp-stroke-badge {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gmz-primary, #24b94f);
    color: #fff;
    font-size: 11px;
    font-weight: 950
}

.hole-score-wrap {
    display: grid;
    justify-items: end;
    gap: 2px
}

.hole-score-wrap input {
    width: 62px !important;
    min-height: 44px;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    border-radius: 10px
}

.hole-score-wrap small {
    font-size: 8px;
    color: #62757a
}

.hole-concession {
    padding: 8px 12px;
    background: #fffbea;
    border-top: 1px solid #f0e6b5
}

.hole-concession label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    font-size: 10px;
    font-weight: 800
}

.hole-concession select {
    width: 100%;
    min-height: 38px
}

.friend-hole-card>footer {
    padding: 6px 12px;
    background: #fafcfc;
    text-align: right
}

.hole-save-state {
    font-size: 9px;
    font-weight: 850;
    color: #89969a
}

.hole-save-state.is-saving {
    color: #b67800
}

.hole-save-state.is-saved {
    color: var(--gmz-primary, #24b94f)
}

.hole-save-state.is-error {
    color: #b73232
}

.friend-manual-save {
    display: flex;
    justify-content: center;
    margin: 14px 0
}

.friend-manual-save .btn {
    font-size: 11px;
    opacity: .8
}

.sport-scoreboard {
    position: sticky;
    top: 66px;
    z-index: 18;
    padding: 10px !important;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    box-shadow: 0 7px 20px rgba(6, 52, 67, .10)
}

.match-individual-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    align-items: stretch
}

.match-player {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 12px;
    border-top: 4px solid #bec9cc
}

.match-player:last-child {
    text-align: right
}

.match-player.is-leading {
    border-top-color: var(--gmz-primary, #24b94f)
}

.match-player span {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7a898d
}

.match-player strong {
    font-size: 15px
}

.match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px;
    background: var(--gmz-secondary, #063443);
    color: #fff;
    border-radius: 10px
}

.match-center small {
    font-size: 8px;
    opacity: .7
}

.match-center b {
    font-size: 25px;
    line-height: 1.05
}

.sport-scoreboard .match-individual-score {
    grid-template-columns: minmax(0, 1fr) clamp(120px, 18vw, 220px) minmax(0, 1fr);
}

.sport-scoreboard .match-center,
.sport-scoreboard .match-player {
    min-width: 0;
}

.sport-scoreboard .match-center .match-leading-team {
    max-width: 100%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    margin: 4px 0;
}

.sport-scoreboard .match-player strong {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .sport-scoreboard .match-individual-score {
        grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    }

    .sport-scoreboard .match-center .match-leading-team {
        font-size: 10px;
    }
}

.match-center span {
    font-size: 8px;
    opacity: .75
}

.individual-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px
}

.individual-totals>div {
    display: grid;
    gap: 2px;
    padding: 8px;
    border-radius: 10px;
    background: #f5f8f8;
    text-align: center
}

.individual-totals span {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.individual-totals strong {
    font-size: 20px
}

.friend-result-line {
    text-align: center;
    font-weight: 900;
    margin-top: 7px
}

.superuser-global-users {
    grid-column: 1/-1
}

.superuser-global-users form {
    margin: 0
}

@media(max-width:900px) {
    .friend-hole-grid {
        grid-template-columns: 1fr
    }

    .responsive-inline-form {
        grid-template-columns: 1fr 1fr
    }

    .responsive-inline-form .btn {
        grid-column: 1/-1;
        width: 100%
    }

    .friend-game-form-grid,
    .friend-player-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
    }

    .superuser-grid {
        grid-template-columns: 1fr !important
    }
}

@media(max-width:680px) {
    body {
        overflow-x: hidden
    }

    .page-heading,
    .toolbar {
        gap: 10px
    }

    .page-heading-actions,
    .actions {
        flex-wrap: wrap
    }

    .page-heading-actions .btn,
    .form-actions .btn {
        min-height: 44px
    }

    .card {
        max-width: 100%;
        overflow-wrap: anywhere
    }

    .friend-game-form-grid,
    .friend-player-grid,
    .responsive-inline-form {
        grid-template-columns: 1fr !important
    }

    .responsive-inline-form .btn {
        grid-column: auto
    }

    .friend-social-row {
        grid-template-columns: 1fr !important
    }

    .sport-scoreboard {
        top: 58px;
        margin-left: -2px;
        margin-right: -2px
    }

    .match-individual-score {
        grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr)
    }

    .match-player {
        padding: 7px 5px
    }

    .match-player strong {
        font-size: 11px;
        line-height: 1.15
    }

    .match-center b {
        font-size: 20px
    }

    .friend-hole-grid {
        gap: 9px
    }

    .friend-hole-card>header {
        padding: 8px 9px
    }

    .hole-player-row {
        padding: 8px 9px;
        grid-template-columns: minmax(0, 1fr) auto auto
    }

    .hole-score-wrap input {
        width: 66px !important;
        min-height: 48px;
        font-size: 20px
    }

    .hole-concession label {
        grid-template-columns: 1fr
    }

    .guest-player-row {
        align-items: stretch;
        flex-direction: column
    }

    .guest-player-row form .btn {
        width: 100%
    }

    .management-table {
        width: 100%
    }

    .profile-account-layout {
        grid-template-columns: 1fr !important
    }

    .profile-photo-form {
        width: 100%
    }

    .profile-photo-form .btn {
        min-height: 44px
    }
}

/* =========================================================
   V10.5.1 Â· SUPERADMIN / USUARIOS GLOBALES
   ========================================================= */
.global-users-filter-form {
    grid-template-columns: minmax(190px, 1.25fr) minmax(160px, 1fr) minmax(150px, .75fr) minmax(145px, .7fr) minmax(95px, .45fr) auto;
}

.global-users-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start
}

.global-users-list-card {
    min-width: 0
}

.global-users-table td {
    vertical-align: middle
}

.global-users-table .action-menu {
    margin-left: auto
}

.global-users-table .action-menu-trigger {
    min-width: 108px
}

.global-user-editor {
    min-width: 0;
}

.global-user-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.global-user-license-field {
    grid-column: 1/-1
}

/* Partidas entre amigos: cada jugador y su recorrido se seleccionan en una misma fila. */
.friend-player-grid {
    grid-template-columns: 1fr !important
}

.friend-player-grid .player-slot {
    display: grid !important;
    grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr) 120px !important;
    gap: 12px;
    align-items: end;
    border-left: 4px solid transparent;
    border-radius: 12px;
    padding: 10px 12px 10px 14px
}

.friend-player-grid .player-slot[hidden] {
    display: none !important
}

.friend-player-grid .player-slot[data-membership="premium"] {
    border-left-color: #d7a928;
    background: linear-gradient(90deg, rgba(215, 169, 40, .17), rgba(255, 250, 240, .62) 48%, rgba(255, 255, 255, .92))
}

.friend-player-grid .player-slot[data-membership="premium"] .friend-player-select {
    border-color: #d7a928;
    background: #fffaf0
}

.friend-player-grid .player-slot[data-membership="free"] {
    border-left-color: var(--gmz-primary, #24b94f);
    background: linear-gradient(90deg, rgba(36, 185, 79, .16), rgba(244, 252, 246, .62) 48%, rgba(255, 255, 255, .92))
}

.friend-player-grid .player-slot[data-membership="free"] .friend-player-select {
    border-color: var(--gmz-primary, #24b94f);
    background: #f4fcf6
}

.friend-player-grid .player-slot[data-membership="guest"] {
    border-left-color: #9aa7aa;
    background: linear-gradient(90deg, rgba(154, 167, 170, .18), rgba(245, 247, 247, .68) 48%, rgba(255, 255, 255, .92))
}

.friend-player-grid .player-slot[data-membership="guest"] .friend-player-select {
    border-color: #aeb9bb;
    background: #f5f7f7
}

.friend-score-matrix-wrap {
    overflow: auto;
    border: 1px solid #dce6e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(6, 52, 67, .06)
}

.friend-score-matrix {
    border-collapse: separate;
    border-spacing: 0;
    width: max-content;
    min-width: 100%;
    font-size: 12px
}

.friend-score-matrix th,
.friend-score-matrix td {
    border-right: 1px solid #e7edef;
    border-bottom: 1px solid #e7edef
}

.friend-score-matrix tr:last-child th,
.friend-score-matrix tr:last-child td {
    border-bottom: 0
}

.friend-score-matrix th:last-child,
.friend-score-matrix td:last-child {
    border-right: 0
}

.friend-matrix-player-head,
.friend-matrix-hole-head {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #063443;
    color: #fff;
    text-align: center
}

.friend-matrix-player-head {
    left: 0;
    z-index: 6;
    min-width: 235px;
    padding: 12px 16px;
    text-align: left
}

.friend-matrix-hole-head {
    min-width: 67px;
    padding: 7px 4px
}

.friend-matrix-hole-head b,
.friend-matrix-hole-head small,
.friend-matrix-hole-head em {
    display: block
}

.friend-matrix-hole-head b {
    font-size: 16px
}

.friend-matrix-hole-head small {
    margin-top: 2px;
    font-size: 8px;
    font-style: normal;
    white-space: nowrap;
    color: #d4e8e7
}

.friend-matrix-hole-head .hole-save-state {
    margin-top: 3px;
    font-size: 8px;
    font-style: normal;
    color: #b9cccf
}

.friend-matrix-hole-head .hole-save-state.is-saved {
    color: #9ce2af
}

.friend-matrix-hole-head .hole-save-state.is-saving {
    color: #ffe48c
}

.friend-matrix-hole-head .hole-save-state.is-error {
    color: #ffb7b7
}

.friend-matrix-player {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 235px;
    padding: 10px 16px;
    text-align: left;
    background: #f6f9f9
}

.friend-matrix-player b,
.friend-matrix-player small {
    display: block
}

.friend-matrix-player b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.friend-matrix-player small {
    margin-top: 3px;
    font-size: 10px;
    color: #718287
}

.friend-matrix-score {
    min-width: 67px;
    padding: 6px 5px;
    text-align: center;
    background: #fff
}

.friend-matrix-score input {
    width: 48px !important;
    min-height: 40px !important;
    padding: 4px !important;
    border-radius: 9px !important;
    text-align: center;
    font-size: 17px;
    font-weight: 900
}

.friend-matrix-score small {
    display: block;
    min-height: 11px;
    margin-top: 2px;
    font-size: 9px;
    color: #708187;
    white-space: nowrap
}

.friend-score-matrix tbody tr:nth-child(even) .friend-matrix-player,
.friend-score-matrix tbody tr:nth-child(even) .friend-matrix-score {
    background: #fbfcfc
}

.friend-concessions {
    margin-top: 10px;
    border: 1px solid #eadfa9;
    border-radius: 12px;
    background: #fffbea
}

.friend-concessions summary {
    padding: 10px 13px;
    cursor: pointer;
    font-weight: 850;
    font-size: 12px
}

.friend-concessions>div {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 8px;
    padding: 0 12px 12px
}

.friend-concessions label {
    display: grid;
    gap: 3px;
    font-size: 10px;
    font-weight: 800
}

.friend-concessions select {
    min-height: 34px;
    font-size: 11px
}

.friend-game-setup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px 16px !important
}

.friend-game-setup-grid .field {
    min-width: 0
}

.friend-game-setup-grid .field label {
    white-space: nowrap
}

.friend-game-setup-grid .handicap-only,
.friend-game-setup-grid .bw-only {
    grid-column: auto !important
}

.friend-player-grid .player-slot {
    grid-template-columns: minmax(0, 1.5fr) minmax(210px, 1fr) 112px !important
}

.friend-score-matrix-wrap {
    overflow: hidden
}

.friend-score-matrix {
    width: 100%;
    min-width: 0;
    table-layout: fixed
}

.friend-matrix-player-head,
.friend-matrix-player {
    min-width: 185px;
    width: 185px
}

.friend-matrix-hole-head,
.friend-matrix-score {
    min-width: 0;
    width: auto
}

.friend-matrix-hole-head {
    padding: 6px 2px
}

.friend-matrix-hole-head b {
    font-size: 14px
}

.friend-matrix-hole-head small {
    font-size: 7px;
    letter-spacing: -.15px
}

.friend-matrix-hole-head .hole-save-state {
    font-size: 7px
}

.friend-matrix-score {
    padding: 5px 2px
}

.friend-matrix-score input {
    width: 38px !important;
    min-height: 38px !important;
    font-size: 16px
}

.friend-matrix-score small {
    font-size: 8px;
    letter-spacing: -.2px
}

.friend-membership-marker {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 7px;
    border-radius: 50%;
    background: #c2cbcd;
    vertical-align: middle;
    box-shadow: 0 0 0 3px rgba(154, 167, 170, .16)
}

.player-slot[data-membership="premium"] .friend-membership-marker {
    background: #d7a928;
    box-shadow: 0 0 0 3px rgba(215, 169, 40, .20)
}

.player-slot[data-membership="free"] .friend-membership-marker {
    background: var(--gmz-primary, #24b94f);
    box-shadow: 0 0 0 3px rgba(36, 185, 79, .18)
}

.player-slot[data-membership="guest"] .friend-membership-marker {
    background: #9aa7aa;
    box-shadow: 0 0 0 3px rgba(154, 167, 170, .18)
}

.friend-player-hcp label small {
    display: block;
    color: var(--gmz-muted, #6b7b80);
    font-weight: 650
}

@media(max-width:620px) {
    .friend-player-grid .player-slot {
        grid-template-columns: minmax(0, 1fr) 110px !important;
        gap: 8px
    }

    .friend-player-grid .course-option-help {
        grid-column: 1/-1
    }
}

@media(max-width:760px) {

    .friend-matrix-player-head,
    .friend-matrix-player {
        min-width: 155px;
        padding-left: 10px;
        padding-right: 10px
    }

    .friend-matrix-hole-head,
    .friend-matrix-score {
        min-width: 58px
    }

    .friend-matrix-score input {
        width: 43px !important
    }

    .friend-concessions>div {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:1100px) {
    .friend-game-setup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
    }

    .friend-player-grid .player-slot {
        grid-template-columns: minmax(0, 1.35fr) minmax(175px, 1fr) 100px !important
    }

    .friend-matrix-player-head,
    .friend-matrix-player {
        min-width: 145px;
        width: 145px
    }

    .friend-matrix-score input {
        width: 32px !important;
        min-height: 34px !important
    }
}

@media(max-width:760px) {
    .friend-game-setup-grid {
        grid-template-columns: 1fr !important
    }

    .friend-score-matrix-wrap {
        overflow: auto
    }

    .friend-score-matrix {
        width: max-content;
        min-width: 100%;
        table-layout: auto
    }

    .friend-matrix-player-head,
    .friend-matrix-player {
        min-width: 155px;
        width: 155px
    }

    .friend-matrix-hole-head,
    .friend-matrix-score {
        min-width: 58px
    }

    .friend-matrix-score input {
        width: 43px !important
    }
}

/* La afiliaciÃ³n se comunica con toda la franja del jugador, tambiÃ©n con reglas antiguas cargadas por el tema. */
.friend-player-grid .player-slot[data-membership="premium"] {
    border-left-color: #d7a928 !important;
    background: linear-gradient(90deg, rgba(215, 169, 40, .22), rgba(255, 250, 240, .76) 52%, #fff) !important
}

.friend-player-grid .player-slot[data-membership="free"] {
    border-left-color: var(--gmz-primary, #24b94f) !important;
    background: linear-gradient(90deg, rgba(36, 185, 79, .20), rgba(244, 252, 246, .74) 52%, #fff) !important
}

.friend-player-grid .player-slot[data-membership="guest"] {
    border-left-color: #9aa7aa !important;
    background: linear-gradient(90deg, rgba(154, 167, 170, .22), rgba(245, 247, 247, .76) 52%, #fff) !important
}

/* Nueva partida: los datos se leen y editan de un vistazo en escritorio. */
@media(min-width:780px) {
    .friend-game-form-grid {
        grid-template-columns: minmax(210px, 1.45fr) minmax(145px, .85fr) minmax(190px, 1.15fr) 145px 115px !important;
        gap: 12px !important
    }

    .friend-game-form-grid .handicap-only {
        grid-column: 2/span 1
    }

    .friend-game-form-grid .bw-only {
        grid-column: auto
    }

    .friend-player-grid .player-slot {
        grid-template-columns: minmax(260px, 1.65fr) minmax(220px, 1fr) 118px !important
    }
}

@media(min-width:1180px) {
    .friend-game-form-grid .handicap-only {
        grid-column: 1/span 1
    }
}

@media(max-width:779px) {
    .friend-game-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
    }

    .friend-player-grid .player-slot {
        grid-template-columns: minmax(0, 1.45fr) minmax(190px, 1fr) 105px !important
    }
}

@media(max-width:620px) {
    .friend-game-form-grid {
        grid-template-columns: 1fr !important
    }

    .friend-player-grid .player-slot {
        grid-template-columns: minmax(0, 1fr) 110px !important
    }

    .friend-player-grid .course-option-help {
        grid-column: 1/-1
    }
}

.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px
}

.pagination-status {
    font-size: 12px;
    font-weight: 800;
    color: var(--ga-muted)
}

.pagination-bar .is-disabled {
    pointer-events: none;
    opacity: .45
}

@media(max-width:1180px) {
    .global-users-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .global-users-filter-form .superuser-filter-actions {
        grid-column: 1/-1
    }

    .global-users-layout.has-editor {
        grid-template-columns: 1fr
    }

    .global-user-editor {
        position: static
    }
}

@media(max-width:760px) {
    .global-users-filter-form {
        grid-template-columns: 1fr !important
    }

    .global-users-filter-form .superuser-filter-actions {
        grid-column: auto
    }

    .global-users-list-card>.table-wrap {
        overflow: visible;
        border: 0;
        box-shadow: none;
        background: transparent
    }

    .global-users-table,
    .global-users-table tbody,
    .global-users-table tr,
    .global-users-table td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important
    }

    .global-users-table thead {
        display: none
    }

    .global-users-table tr {
        position: relative;
        margin: 0 0 12px;
        padding: 7px 11px;
        overflow: visible;
        border: 1px solid var(--ga-line);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 5px 16px rgba(4, 43, 55, .05)
    }

    .global-users-table td {
        display: grid;
        grid-template-columns: minmax(86px, 30%) minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        min-height: 39px;
        padding: 8px 2px;
        overflow: visible;
        border: 0;
        border-bottom: 1px solid #edf1f2;
        background: transparent !important
    }

    .global-users-table td:last-child {
        border-bottom: 0
    }

    .global-users-table td::before {
        content: attr(data-label);
        color: var(--ga-muted);
        font-size: 10px;
        font-weight: 900;
        line-height: 1.2;
        letter-spacing: .045em;
        text-transform: uppercase
    }

    .global-users-table .empty-cell {
        display: block !important;
        padding: 16px 8px !important;
        text-align: center
    }

    .global-users-table .empty-cell::before {
        display: none
    }

    .global-users-table .mobile-actions-cell {
        display: grid !important;
        grid-template-columns: minmax(86px, 30%) minmax(0, 1fr) !important;
        overflow: visible !important
    }

    .global-users-table .action-menu {
        justify-self: end;
        width: auto;
        max-width: 100%
    }

    .global-users-table .action-menu-trigger {
        width: 44px !important;
        min-width: 44px !important;
        min-height: 42px;
        padding: 0 !important;
        display: grid !important;
        place-items: center !important
    }

    .global-users-table .action-menu-label {
        display: none
    }

    .global-users-table .action-menu-items {
        right: 0;
        left: auto;
        width: min(250px, calc(100vw - 42px));
        min-width: 210px;
        z-index: 1500
    }

    .global-user-editor-grid {
        grid-template-columns: 1fr
    }

    .pagination-bar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        width: 100%
    }

    .pagination-bar .btn {
        width: 100%
    }
}

@media(max-width:480px) {
    .global-users-table td {
        grid-template-columns: 74px minmax(0, 1fr)
    }

    .pagination-bar {
        grid-template-columns: 1fr 1fr
    }

    .pagination-status {
        grid-column: 1/-1;
        grid-row: 1;
        text-align: center
    }
}

/* V10.5.2 - Red de amigos globales */
.badge-blue {
    background: #e8f2ff;
    color: #174f86;
    border-color: #c8def6
}

.badge-orange {
    background: #fff2dd;
    color: #87500d;
    border-color: #f2d2a2
}

.friends-search-form,
.friends-guest-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end
}

.friends-result-meta {
    margin: 14px 0 8px;
    color: var(--muted, #61747a);
    font-size: .9rem
}

.friends-directory-list {
    display: grid;
    gap: 8px
}

.friend-person-row,
.friend-network-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(6, 52, 67, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    min-width: 0
}

.friend-membership-card {
    border-left-width: 4px !important
}

.friend-membership-card.is-premium {
    border-color: #e1c45f;
    background: linear-gradient(120deg, rgba(215, 169, 40, .20), rgba(255, 250, 240, .92) 55%, #fff)
}

.friend-membership-card.is-free {
    border-color: var(--gmz-primary, #24b94f);
    background: linear-gradient(120deg, rgba(36, 185, 79, .18), rgba(244, 252, 246, .92) 55%, #fff)
}

.friend-membership-card.is-guest {
    border-color: #aeb9bb;
    background: linear-gradient(120deg, rgba(154, 167, 170, .20), rgba(245, 247, 247, .92) 55%, #fff)
}

.friend-person-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(36, 185, 79, .13);
    color: #063443;
    font-weight: 900;
    font-size: 1.05rem
}

.friend-person-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1
}

.friend-person-main strong,
.friend-person-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.friend-person-main small {
    color: var(--muted, #61747a)
}

.friend-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px
}

.friend-badges .badge {
    font-size: .66rem
}

.friend-person-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto
}

.friend-network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 10px
}

.friends-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 14px
}

.friends-pagination span {
    font-weight: 800;
    color: #063443
}

@media(max-width:640px) {

    .friends-search-form,
    .friends-guest-form {
        grid-template-columns: 1fr
    }

    .friends-search-form .btn,
    .friends-guest-form .btn {
        width: 100%
    }

    .friend-person-row,
    .friend-network-item {
        align-items: flex-start;
        flex-wrap: wrap
    }

    .friend-person-main {
        min-width: calc(100% - 58px)
    }

    .friend-person-actions {
        box-sizing: border-box;
        width: calc(100% - 54px);
        min-width: 0;
        margin-left: 54px
    }

    .friend-person-actions form,
    .friend-person-actions .btn {
        width: 100%
    }

    .friends-heading .btn {
        width: 100%
    }
}

/* Friend-games: formulario compacto sin afectar al resto de formularios. */
@media(min-width:1180px) {
    .friend-game-form .friend-game-setup-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px 16px !important
    }

    .friend-game-form .friend-player-grid {
        grid-template-columns: 1fr !important
    }

    .friend-game-form .friend-player-grid .player-slot {
        display: grid !important;
        grid-template-columns: minmax(0, 1.45fr) minmax(210px, 1fr) 112px !important;
        gap: 12px;
        align-items: end
    }
}

@media(min-width:761px) and (max-width:1179px) {
    .friend-game-form .friend-game-setup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px 14px !important
    }

    .friend-game-form .friend-player-grid {
        grid-template-columns: 1fr !important
    }

    .friend-game-form .friend-player-grid .player-slot {
        display: grid !important;
        grid-template-columns: minmax(0, 1.35fr) minmax(180px, 1fr) 104px !important;
        gap: 10px;
        align-items: end
    }
}

.impersonation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 24px;
    background: #fff1c2;
    color: #463608;
    border-bottom: 2px solid #d9a624
}

.impersonation-banner small {
    display: block;
    margin-top: 4px
}

.impersonation-banner form {
    margin: 0
}

.action-menu-button:disabled {
    opacity: .5;
    cursor: not-allowed
}

/* ================================================================
 * 02 Â· COMPETICIONES INDIVIDUALES
 * ================================================================ */



:where(html.gmz-use-individual-competitions) .ic-groups label {
    display: flex;
    flex-direction: column;
    gap: 4px
}





:where(html.gmz-use-individual-competitions) .ic-list-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #dce6e7;
    text-decoration: none
}

:where(html.gmz-use-individual-competitions) .ic-list-row small {
    display: block
}

:where(html.gmz-use-individual-competitions) .ic-table-wrap {
    overflow: auto;
    max-width: 100%
}

:where(html.gmz-use-individual-competitions) .ic-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px
}

:where(html.gmz-use-individual-competitions) .ic-table-wrap th,
:where(html.gmz-use-individual-competitions) .ic-table-wrap td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e8e9
}

:where(html.gmz-use-individual-competitions) .ic-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px
}

:where(html.gmz-use-individual-competitions) .ic-groups article {
    border: 1px solid #dce6e7;
    border-radius: 12px;
    padding: 16px
}

:where(html.gmz-use-individual-competitions) .ic-groups p {
    margin: 5px 0
}

:where(html.gmz-use-individual-competitions) .ic-groups form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px
}

:where(html.gmz-use-individual-competitions) .ic-groups input {
    max-width: 120px
}

:where(html.gmz-use-individual-competitions) .ic-global-row,
:where(html.gmz-use-individual-competitions) .ic-search {
    display: flex;
    align-items: end;
    gap: 12px;
    justify-content: space-between;
    padding: 8px 0
}

:where(html.gmz-use-individual-competitions) .ic-global-row span {
    overflow-wrap: anywhere
}



:where(html.gmz-use-individual-competitions) tr[data-card-href] {
    cursor: pointer
}

:where(html.gmz-use-individual-competitions) .friend-score-matrix th small {
    display: block;
    font-size: 10px
}

:where(html.gmz-use-individual-competitions) .ic-search label {
    flex: 1
}

:where(html.gmz-use-individual-competitions) .ic-search input {
    width: 100%
}

@media (max-width:700px) {
    

    :where(html.gmz-use-individual-competitions) .ic-groups {
        grid-template-columns: 1fr
    }

    :where(html.gmz-use-individual-competitions) .ic-list-row {
        grid-template-columns: 1fr auto
    }

    :where(html.gmz-use-individual-competitions) .ic-list-row>span:first-child {
        grid-column: 1/-1
    }
}

:where(html.gmz-use-individual-competitions) .ic-search input,
:where(html.gmz-use-individual-competitions) #free-editor input {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cbd9de;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    color: inherit
}

:where(html.gmz-use-individual-competitions) .ic-search label {
    font-size: 13px;
    font-weight: 600
}

:where(html.gmz-use-individual-competitions) .ic-table-wrap input {
    min-width: 0
}

/* ================================================================
 * 03 Â· TARJETAS DE RESULTADOS
 * ================================================================ */

:where(html.gmz-use-scorecard) .friend-score-matrix-wrap:has(.gmz-scorecard) {
    overflow-x: auto;
    width: 100%
}

:where(html.gmz-use-scorecard) .gmz-scorecard {
    width: 100%;
    min-width: 1060px !important;
    table-layout: fixed;
    border-collapse: collapse;
    background: #fff
}

:where(html.gmz-use-scorecard) .gmz-scorecard th,
:where(html.gmz-use-scorecard) .gmz-scorecard td {
    padding: 7px 3px;
    text-align: center;
    font-size: 12px;
    border: 0;
    border-bottom: 1px solid #e8e8e8
}

:where(html.gmz-use-scorecard) .gmz-scorecard th:first-child {
    width: 175px;
    min-width: 175px;
    text-align: left;
    padding-left: 12px
}

:where(html.gmz-use-scorecard) .gmz-scorecard thead th,
:where(html.gmz-use-scorecard) .gmz-scorecard thead td {
    background: #333;
    color: white;
    font-weight: 800;
    padding: 10px 2px
}

:where(html.gmz-use-scorecard) .gmz-scorecard .scorecard-total {
    background: #eef0ed;
    font-weight: 800;
    width: 48px
}

:where(html.gmz-use-scorecard) .gmz-scorecard .scorecard-course {
    background: #fff;
    color: #555
}

:where(html.gmz-use-scorecard) .gmz-scorecard .scorecard-course th {
    font-weight: 500
}

:where(html.gmz-use-scorecard) .gmz-scorecard .scorecard-net {
    color: #666;
    background: #fafafa
}

:where(html.gmz-use-scorecard) .gmz-scorecard .scorecard-net th {
    font-weight: 500;
    font-size: 11px
}

:where(html.gmz-use-scorecard) .gmz-scorecard .friend-matrix-score input {
    width: 100% !important;
    max-width: 44px;
    min-height: 38px !important;
    height: 38px;
    font-size: 16px;
    font-weight: 700;
    padding: 2px;
    text-align: center;
    background: transparent;
    color: inherit;
    border: 1px solid #ccd4d5;
    border-radius: 4px
}

:where(html.gmz-use-scorecard) .gmz-scorecard .friend-matrix-score small {
    font-size: 8px
}

:where(html.gmz-use-scorecard) .gmz-scorecard .friend-matrix-player {
    background: #f1f2f0
}

:where(html.gmz-use-scorecard) .gmz-scorecard tbody tr .friend-matrix-score.sc-eagle,
:where(html.gmz-use-scorecard) .scorecard-legend .sc-eagle {
    background: #eaa526;
    color: #17252a
}

:where(html.gmz-use-scorecard) .gmz-scorecard tbody tr .friend-matrix-score.sc-birdie,
:where(html.gmz-use-scorecard) .scorecard-legend .sc-birdie {
    background: #f35b59;
    color: #17252a
}

:where(html.gmz-use-scorecard) .gmz-scorecard tbody tr .friend-matrix-score.sc-par,
:where(html.gmz-use-scorecard) .scorecard-legend .sc-par {
    background: #43a4ee;
    color: #17252a
}

:where(html.gmz-use-scorecard) .gmz-scorecard tbody tr .friend-matrix-score.sc-bogey,
:where(html.gmz-use-scorecard) .scorecard-legend .sc-bogey {
    background: #78ba71;
    color: #17252a
}

:where(html.gmz-use-scorecard) .gmz-scorecard tbody tr .friend-matrix-score.sc-double,
:where(html.gmz-use-scorecard) .scorecard-legend .sc-double {
    background: #777;
    color: #fff
}

:where(html.gmz-use-scorecard) .gmz-scorecard tbody tr .friend-matrix-score.sc-triple,
:where(html.gmz-use-scorecard) .scorecard-legend .sc-triple {
    background: #222;
    color: #fff
}

:where(html.gmz-use-scorecard) .gmz-scorecard tbody tr .friend-matrix-score.sc-pickup,
:where(html.gmz-use-scorecard) .scorecard-legend .sc-pickup {
    background: #e6d6bd;
    color: #342811
}

:where(html.gmz-use-scorecard) .scorecard-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px 4px;
    font-size: 11px
}

:where(html.gmz-use-scorecard) .scorecard-legend span {
    display: flex;
    align-items: center;
    gap: 5px
}

:where(html.gmz-use-scorecard) .scorecard-legend i {
    width: 16px;
    height: 16px;
    display: inline-block
}

:where(html.gmz-use-scorecard) .scorecard-legend>small {
    flex-basis: 100%;
    color: #687777
}

@media (max-width:700px) {
    :where(html.gmz-use-scorecard) .gmz-scorecard {
        min-width: 1100px !important
    }

    :where(html.gmz-use-scorecard) .gmz-scorecard th:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        background: #f1f2f0
    }

    :where(html.gmz-use-scorecard) .gmz-scorecard thead th:first-child {
        background: #333
    }
}

:where(html.gmz-use-scorecard) .gmz-scorecard thead .scorecard-total {
    background: #333;
    color: #fff
}

:where(html.gmz-use-scorecard) .gmz-scorecard thead [hidden] {
    display: none !important
}

:where(html.gmz-use-scorecard) .gmz-page-tooltip {
    position: fixed;
    z-index: 10000;
    max-width: min(420px, calc(100vw - 24px));
    padding: 12px;
    border: 1px solid #ccd9dc;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 24px #06344326;
    color: #50646a;
    font-size: 13px;
    line-height: 1.5
}

:where(html.gmz-use-scorecard) .gmz-page-tooltip[hidden] {
    display: none
}

:where(html.gmz-use-scorecard) .gmz-page-tooltip strong,
:where(html.gmz-use-scorecard) .gmz-page-tooltip span,
:where(html.gmz-use-scorecard) .gmz-page-tooltip small {
    display: block
}

@media print {

    :where(html.gmz-use-scorecard) .gmz-page-tooltip,
    :where(html.gmz-use-scorecard) .gmz-info-button {
        display: none !important
    }
}

:where(html.gmz-use-scorecard) .match-current-score .match-leading-team {
    display: block;
    font-size: 18px;
    line-height: 1.3;
    color: #fff;
    margin: 4px 0 8px;
    overflow-wrap: anywhere
}

:where(html.gmz-use-scorecard) .gmz-scorecard .scorecard-progress td {
    font-weight: 700;
    vertical-align: top;
    background: #edf5f2
}

:where(html.gmz-use-scorecard) .gmz-scorecard .scorecard-progress small {
    font-size: 9px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    max-width: 75px;
    margin: auto
}

:where(html.gmz-use-scorecard) .gmz-scorecard .scorecard-progress th {
    white-space: normal
}

:where(html.gmz-use-scorecard) .gmz-scorecard .scorecard-nr {
    display: block;
    margin: 2px auto 0;
    padding: 1px 4px;
    border: 0;
    background: transparent;
    color: #536b76;
    font-size: 10px;
    cursor: pointer
}

:where(html.gmz-use-scorecard) .gmz-scorecard .scorecard-nr.is-selected {
    font-size: 15px;
    font-weight: 700;
    padding: 9px 4px;
    color: #342811
}

:where(html.gmz-use-scorecard) .gmz-scorecard input[hidden] {
    display: none !important
}

:where(html.gmz-use-scorecard) .gmz-scorecard .hole-actions summary {
    padding: 4px;
    min-width: 30px;
    min-height: 36px;
    color: inherit;
    background: transparent
}

:where(html.gmz-use-scorecard) .gmz-scorecard .hole-concession-label {
    display: block;
    font-size: 9px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
    color: #fff
}

:where(html.gmz-use-scorecard) .gmz-scorecard .hole-is-conceded {
    box-shadow: inset 0 -3px #e5b440
}

:where(html.gmz-use-scorecard) .gmz-scorecard .hole-actions .action-menu-items {
    color: #063443;
    text-transform: none;
    text-align: left
}

:where(html.gmz-use-scorecard) .friend-concessions[hidden],
:where(html.gmz-use-scorecard) .gmz-scorecard tr[hidden] {
    display: none !important
}

/* ================================================================
 * 04 Â· GESTIÃ“N DE TORNEOS, GALERÃ�A Y SALIDAS
 * ================================================================ */

/* Scoped corrections for tournament pages. */
:where(html.gmz-use-tournament-pages) .player-match-groups .player-match-card {
    display: block;
    padding: 0;
    min-width: 0
}

:where(html.gmz-use-tournament-pages) .player-match-groups .player-match-card-top,
:where(html.gmz-use-tournament-pages) .player-match-groups .player-match-card-foot {
    position: static;
    width: 100%
}

:where(html.gmz-use-tournament-pages) .player-match-groups .player-match-scoreboard {
    width: 100%;
    min-width: 0
}

:where(html.gmz-use-tournament-pages) .player-match-groups .player-match-side {
    min-width: 0
}

:where(html.gmz-use-tournament-pages) .player-match-groups .player-match-side strong {
    white-space: normal;
    overflow-wrap: anywhere
}

:where(html.gmz-use-tournament-pages) .gallery-album-editor {
    margin-bottom: 16px
}

:where(html.gmz-use-tournament-pages) .album-edit-fields {
    display: grid;
    grid-template-columns: 2fr 3fr 100px;
    gap: 12px;
    align-items: end
}

:where(html.gmz-use-tournament-pages) .album-edit-fields label {
    display: grid;
    gap: 6px
}

:where(html.gmz-use-tournament-pages) .album-edit-fields .check-row {
    display: flex;
    align-items: center
}

:where(html.gmz-use-tournament-pages) .album-edit-fields input:not([type=checkbox]),
:where(html.gmz-use-tournament-pages) .album-edit-fields textarea {
    width: 100%
}

:where(html.gmz-use-tournament-pages) .gmz-page-tooltip {
    position: fixed;
    z-index: 10000;
    max-width: min(360px, calc(100vw - 24px));
    padding: 12px;
    border: 1px solid #ccd9dc;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 24px #06344326;
    color: #50646a;
    font-size: 13px;
    line-height: 1.5
}

:where(html.gmz-use-tournament-pages) .gmz-page-tooltip[hidden] {
    display: none
}

:where(html.gmz-use-tournament-pages) .gmz-page-tooltip span,
:where(html.gmz-use-tournament-pages) .gmz-page-tooltip b {
    display: block
}

:where(html.gmz-use-tournament-pages) .starting-list-body .starting-table {
    display: table;
    table-layout: fixed;
    width: 100%;
    min-width: 0
}

:where(html.gmz-use-tournament-pages) .starting-list-body .starting-table th,
:where(html.gmz-use-tournament-pages) .starting-list-body .starting-table td {
    white-space: normal;
    overflow-wrap: anywhere
}

:where(html.gmz-use-tournament-pages) .starting-list-body .starting-table th:nth-child(1) {
    width: 5%
}

:where(html.gmz-use-tournament-pages) .starting-list-body .starting-table th:nth-child(2) {
    width: 9%
}

:where(html.gmz-use-tournament-pages) .starting-list-body .starting-table th:nth-child(3) {
    width: 6%
}

:where(html.gmz-use-tournament-pages) .starting-list-body .starting-table th:nth-child(4) {
    width: 14%
}

@media (max-width:700px) {
    :where(html.gmz-use-tournament-pages) .album-edit-fields {
        grid-template-columns: 1fr
    }

    :where(html.gmz-use-tournament-pages) .starting-list-body .starting-table th,
    :where(html.gmz-use-tournament-pages) .starting-list-body .starting-table td {
        padding: 6px 3px;
        font-size: 10px
    }
}

@media print {

    :where(html.gmz-use-tournament-pages) .starting-list-body,
    :where(html.gmz-use-tournament-pages) .starting-list-body .starting-shell {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important
    }

    :where(html.gmz-use-tournament-pages) .starting-list-body .starting-table {
        display: table !important;
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed;
        overflow: visible !important
    }

    :where(html.gmz-use-tournament-pages) .starting-list-body .starting-table th,
    :where(html.gmz-use-tournament-pages) .starting-list-body .starting-table td {
        white-space: normal !important;
        overflow-wrap: anywhere;
        font-size: 9pt;
        padding: 5px
    }

    :where(html.gmz-use-tournament-pages) .starting-list-body .starting-table tr {
        break-inside: avoid
    }

    :where(html.gmz-use-tournament-pages) .gmz-page-tooltip {
        display: none !important
    }
}

/* ================================================================
 * 05 Â· FORMULARIO friend-games
 * ================================================================ */

:where(html.gmz-page-friend-games) .fg-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px
}

:where(html.gmz-page-friend-games) .fg-stats-grid>div {
    padding: 14px;
    border: 1px solid #e4e9e7;
    border-radius: 12px;
    min-width: 0;
    overflow-wrap: anywhere
}

:where(html.gmz-page-friend-games) .fg-stats-grid h3 {
    font-size: 14px;
    margin: 0 0 12px
}

:where(html.gmz-page-friend-games) .fg-stat-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 12px
}

:where(html.gmz-page-friend-games) .fg-record-total {
    display: block;
    font-size: 24px;
    color: #068459
}

:where(html.gmz-page-friend-games) .fg-record-total small {
    display: block;
    font-size: 11px;
    color: #6b7b80
}

:where(html.gmz-page-friend-games) .fg-stats-grid p {
    font-size: 12px
}

@media (max-width:1000px) {
    :where(html.gmz-page-friend-games) .fg-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (max-width:560px) {
    :where(html.gmz-page-friend-games) .fg-stats-grid {
        grid-template-columns: 1fr
    }
}

:where(html.gmz-page-friend-games) .fg-final-result {
    margin-top: 6px;
    font-size: 12px;
    color: #063443
}

:where(html.gmz-page-friend-games) .fg-final-result span {
    font-size: 11px;
    color: #6b7b80
}

:where(html.gmz-page-friend-games) .fg-actions .action-menu-items {
    max-width: min(430px, calc(100vw - 32px))
}

:where(html.gmz-page-friend-games) .fg-actions .action-menu-item {
    white-space: normal;
    overflow-wrap: anywhere
}

:where(html.gmz-page-friend-games) .fg-list {
    margin-bottom: 18px;
    overflow: visible
}

:where(html.gmz-page-friend-games) .fg-list h2 {
    margin: 0
}

:where(html.gmz-page-friend-games) .fg-rows {
    display: grid
}

:where(html.gmz-page-friend-games) .fg-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid #e4e9e7
}

:where(html.gmz-page-friend-games) .fg-row time {
    flex: 0 0 95px;
    font-size: 12px;
    font-weight: 700
}

:where(html.gmz-page-friend-games) .fg-row small {
    display: block;
    font-size: 11px;
    color: #6b7b80;
    margin-top: 3px
}

:where(html.gmz-page-friend-games) .fg-row-main {
    flex: 1;
    min-width: 0
}

:where(html.gmz-page-friend-games) .fg-row-main>a {
    font-weight: 800;
    color: #063443
}

:where(html.gmz-page-friend-games) .fg-row-main small {
    line-height: 1.5
}

:where(html.gmz-page-friend-games) .fg-history {
    margin-top: 14px
}

:where(html.gmz-page-friend-games) .fg-history>summary {
    cursor: pointer;
    font-weight: 700;
    padding: 10px 0
}

:where(html.gmz-page-friend-games) .fg-actions {
    flex: 0 0 auto
}

:where(html.gmz-page-friend-games) .fg-actions .action-menu-items {
    min-width: 160px;
    z-index: 30
}

:where(html.gmz-page-friend-games) .fg-row .badge {
    font-size: 10px;
    white-space: nowrap
}

:where(html.gmz-page-friend-games) #new-friend-game {
max-width: 1100px
;
}

:where(html.gmz-page-friend-games) #new-friend-game .friend-game-form {
    display: grid;
    gap: 12px
}

:where(html.gmz-page-friend-games) #new-friend-game .field {
    min-width: 0;
    margin: 0
}





:where(html.gmz-page-friend-games) #new-friend-game .friend-game-setup-grid {
    display: grid !important;
    grid-template-columns: minmax(180px, 2fr) minmax(160px, 1.5fr) minmax(180px, 2fr) 138px 96px !important;
    gap: 10px !important
}

:where(html.gmz-page-friend-games) #new-friend-game .friend-player-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px
}

:where(html.gmz-page-friend-games) #new-friend-game .player-slot {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 80px !important;
    gap: 10px !important;
    padding: 7px 10px;
    border-radius: 8px
}

:where(html.gmz-page-friend-games) #new-friend-game .player-slot[hidden],
:where(html.gmz-page-friend-games) #new-friend-game [hidden] {
    display: none !important
}

:where(html.gmz-page-friend-games) #new-friend-game .friend-player-section h3 {
    font-size: 14px;
    margin: 10px 0 7px
}

:where(html.gmz-page-friend-games) #new-friend-game .friend-player-section>p,
:where(html.gmz-page-friend-games) #new-friend-game .field>small,
:where(html.gmz-page-friend-games) #new-friend-game .friend-player-hcp label small {
    display: none
}

:where(html.gmz-page-friend-games) #new-friend-game .friend-social-row {
    grid-template-columns: minmax(160px, 280px) minmax(0, 1fr) !important;
    gap: 12px
}

:where(html.gmz-page-friend-games) #new-friend-game .friend-message-toggle {
    min-height: 36px;
    padding: 8px;
    font-size: 12px
}

:where(html.gmz-page-friend-games) #new-friend-game .friend-network-link {
    margin-top: 8px
}

:where(html.gmz-page-friend-games) #new-friend-game .input-suffix {
    max-width: 100px
}

:where(html.gmz-page-friend-games) #new-friend-game .bw-only input {
    max-width: 80px
}

:where(html.gmz-page-friend-games) #new-friend-game .form-actions {
    display: flex;
    gap: 8px
}

@media (max-width:1100px) {
    :where(html.gmz-page-friend-games) #new-friend-game .friend-game-setup-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important
    }
}

@media (max-width:600px) {
    :where(html.gmz-page-friend-games) .fg-row {
        gap: 8px;
        flex-wrap: wrap
    }

    :where(html.gmz-page-friend-games) .fg-row time {
        flex-basis: 78px;
        font-size: 11px
    }

    :where(html.gmz-page-friend-games) .fg-row>.badge {
        display: none
    }

    :where(html.gmz-page-friend-games) .fg-row-main {
        flex-basis: calc(100% - 135px)
    }

    :where(html.gmz-page-friend-games) #new-friend-game .friend-game-setup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important
    }

    :where(html.gmz-page-friend-games) #new-friend-game .player-slot {
        grid-template-columns: minmax(0, 1fr) 90px !important;
        gap: 5px !important;
        padding: 6px
    }

    :where(html.gmz-page-friend-games) #new-friend-game .course-option-help {
        grid-column: auto !important
    }

    :where(html.gmz-page-friend-games) #new-friend-game .friend-social-row {
        grid-template-columns: 1fr !important
    }

    
}

/* Filas propias del editor: no dependen de las rejillas globales de formularios. */
:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-line {
    display: grid !important;
    gap: 10px 14px !important;
    width: 100%;
    align-items: end
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-identity {
    grid-template-columns: minmax(0, 1fr) 150px 110px !important
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-rules {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) !important
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options {
    grid-template-columns: 120px 120px 120px !important
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options:not(:has(.field:not([hidden]))) {
    display: none !important
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-player-line {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 80px !important;
    align-items: end;
    gap: 10px !important
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-line>.field,
:where(html.gmz-page-friend-games) #new-friend-game .fg-player-line>.field {
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    margin: 0 !important
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-player-line[hidden] {
    display: none !important
}

@media (max-width:600px) {
    :where(html.gmz-page-friend-games) #new-friend-game .fg-editor-identity {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 6px !important
    }

    /* La hora es un valor corto; en mÃ³vil no debe ocupar el ancho del formulario. */
    :where(html.gmz-page-friend-games) #new-friend-game input[name="startTime"] {
        width: 160px !important;
        max-width: 100% !important;
    }

    :where(html.gmz-page-friend-games) #new-friend-game .fg-editor-rules {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important
    }

    :where(html.gmz-page-friend-games) #new-friend-game .fg-player-line {
        grid-template-columns: minmax(0, 1fr) 90px !important;
        gap: 5px !important
    }

    :where(html.gmz-page-friend-games) #new-friend-game .fg-editor-line label {
        white-space: normal
    }
}

:where(html.gmz-page-friend-games) .fg-list .fg-row {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr) 90px 48px;
    gap: 14px;
    align-items: center
}

:where(html.gmz-page-friend-games) .fg-list .fg-row-main {
    overflow-wrap: anywhere
}

:where(html.gmz-page-friend-games) .fg-list .fg-row>.badge {
    justify-self: end
}

:where(html.gmz-page-friend-games) .fg-list .fg-actions {
    justify-self: end
}

@media (max-width:600px) {
    :where(html.gmz-page-friend-games) .fg-list .fg-row {
        grid-template-columns: 78px minmax(0, 1fr) 42px;
        gap: 8px
    }

    :where(html.gmz-page-friend-games) .fg-list .fg-row>.badge {
        display: none
    }
}

/* ================================================================
 * 06 Â· MENÃšS Y NAVEGACIÃ“N
 * ================================================================ */

:where(html.gmz-use-action-menus) .action-menu-items.gmz-floating-menu {
    position: fixed !important;
    inset: auto !important;
    left: var(--menu-left) !important;
    top: var(--menu-top) !important;
    right: auto !important;
    bottom: auto !important;
    width: var(--menu-width) !important;
    min-width: 0 !important;
    max-width: var(--menu-width) !important;
    max-height: var(--menu-height) !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    z-index: 10000 !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #063443;
    text-align: left
}

:where(html.gmz-use-action-menus) .gmz-floating-menu .action-menu-item {
    white-space: normal !important;
    overflow-wrap: anywhere;
    min-height: 44px;
    flex-shrink: 0
}

:where(html.gmz-use-action-menus) .gmz-floating-menu .action-menu-form {
    margin: 0;
    flex-shrink: 0
}

:where(html.gmz-use-action-menus) .gmz-floating-menu::backdrop {
    background: transparent;
    pointer-events: none
}

@media (max-width:900px) {
    :where(html.gmz-use-action-menus) .sidebar {
        left: auto !important;
        right: 0;
        transform: translateX(105%);
        box-shadow: -18px 0 42px rgba(2, 35, 45, .22)
    }

    :where(html.gmz-use-action-menus) body.nav-open .sidebar {
        transform: translateX(0)
    }
}

/* ================================================================
 * 07 Â· TARJETAS Y AYUDAS
 * ================================================================ */

/* Shared visual language for tournament and game listings. */
:where(html.gmz-use-event-cards) .gmz-event-card {
    border: 1px solid #dbe5e7;
    border-radius: 12px;
    background: var(--gmz-surface, #fff);
    padding: 14px 16px;
    margin-block: 10px;
    gap: 14px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(6, 52, 67, .04);
}

:where(html.gmz-use-event-cards) .gmz-event-card:hover {
    border-color: var(--gmz-primary, #24b94f);
}

:where(html.gmz-use-event-cards) .gmz-event-card:focus-visible {
    outline: 2px solid var(--gmz-primary, #24b94f);
    outline-offset: 3px;
}

:where(html.gmz-use-event-cards) .gmz-event-card small {
    display: block;
    margin-top: 4px;
    color: #50646a;
    line-height: 1.45;
}

:where(html.gmz-use-event-cards) .gmz-event-card .badge {
    justify-self: start;
    white-space: nowrap;
}

:where(html.gmz-use-event-cards) .gmz-event-card .action-menu {
    justify-self: end;
}

/* The information text appears below its button and supports keyboard focus. */
:where(html.gmz-use-event-cards) .gmz-info-wrap {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

:where(html.gmz-use-event-cards) .gmz-info-wrap .gmz-info-popover {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 80;
    width: max-content;
    max-width: min(320px, 75vw);
    box-shadow: 0 6px 20px rgba(6, 52, 67, .15);
}

:where(html.gmz-use-event-cards) [data-gmz-info-ready="1"] {
    display: none !important;
}

@media (max-width: 640px) {
    :where(html.gmz-use-event-cards) .gmz-event-card {
        padding: 12px;
        gap: 10px;
    }

    :where(html.gmz-use-event-cards) .gmz-event-card.ic-list-row {
        grid-template-columns: 1fr auto;
    }

    :where(html.gmz-use-event-cards) .gmz-event-card.ic-list-row> :first-child {
        grid-column: 1 / -1;
    }
}

:where(html.gmz-use-event-cards) .tournament-management-table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

:where(html.gmz-use-event-cards) .tournament-management-table .gmz-event-card>td {
    border-top: 1px solid #dbe5e7;
    border-bottom: 1px solid #dbe5e7;
    padding: 14px;
}

:where(html.gmz-use-event-cards) .tournament-management-table .gmz-event-card>td:first-child {
    border-left: 1px solid #dbe5e7;
    border-radius: 12px 0 0 12px;
}

:where(html.gmz-use-event-cards) .tournament-management-table .gmz-event-card>td:last-child {
    border-right: 1px solid #dbe5e7;
    border-radius: 0 12px 12px 0;
}

@media (max-width: 760px) {
    :where(html.gmz-use-event-cards) .tournament-management-table .gmz-event-card>td {
        border: 0;
        padding: 6px 0;
        border-radius: 0;
    }
}

:where(html.gmz-use-event-cards) .gmz-event-card.fg-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
}

@media (max-width: 640px) {
    :where(html.gmz-use-event-cards) .gmz-event-card.fg-row {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    :where(html.gmz-use-event-cards) .gmz-event-card.fg-row>time {
        grid-column: 1 / -1;
    }
}

/* Compact native date controls: retain a readable font and touch target on mobile. */
@media (max-width: 700px) {
    html body input[type="date"] {
        box-sizing: border-box;
        width: 100%;
        max-width: 13rem;
        min-width: 0;
        height: 44px;
        min-height: 44px;
        padding: 8px 10px;
        font-size: 16px;
        line-height: 1.25;
        flex: 0 1 13rem;
    }

    input[type="date"]::-webkit-date-and-time-value {
        text-align: left;
        min-height: 1.25em;
    }
}

/* The visible editor follows the application locale; the native control carries ISO. */
.localized-date {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 13rem;
    min-width: 0;
}
html body .localized-date .localized-date-text {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 8px 44px 8px 10px;
    font-size: 16px;
    line-height: 1.25;
}
html body .localized-date .localized-date-native {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1px;
    min-width: 0;
    height: 1px;
    min-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}
html body .localized-date-picker {
    position: absolute;
    right: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
}
.localized-date:focus-within { outline: 2px solid var(--fede-green, #5c9424); outline-offset: 2px; border-radius: 11px; }

/* Quick guest creation keeps the current game draft in place. */
.guest-quick-create, .guest-extra-fields { margin: 14px 0; }
.guest-quick-create { padding: 12px; border: 1px solid #d6e0e2; border-radius: 11px; }
.guest-quick-create summary, .guest-extra-fields summary { cursor: pointer; font-weight: 700; }
.guest-quick-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 12px; }
.guest-quick-fields label { display: grid; gap: 6px; flex: 1 1 160px; min-width: 0; }
.guest-quick-fields input { width: 100%; box-sizing: border-box; min-height: 44px; }
.guest-quick-fields button { min-height: 44px; }


/* ================================================================
 * 08 Â· SHARED PAGE COMPONENTS
 * Page classes define layout and domain-specific behavior. Edit the
 * primitives here instead of creating another page-specific control style.
 * ================================================================ */
:root {
    --gmz-control-height: 44px;
    --gmz-control-radius: 11px;
    --gmz-control-border: #d6e0e2;
    --gmz-field-gap: 6px;
    --gmz-layout-gap: 16px;
    --gmz-section-gap: 24px;
    --gmz-label-size: 13px;
}

.gmz-form { min-width: 0; }
.gmz-form :where(.field, label) { min-width: 0; }
html body .gmz-form :is(input:not([type]), input[type="text"], input[type="email"],
    input[type="password"], input[type="search"], input[type="tel"], input[type="url"],
    input[type="number"], input[type="date"], input[type="time"], select, textarea):where(:not(.localized-date *)) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: var(--gmz-control-height);
    height: var(--gmz-control-height);
    padding: 10px 12px;
    border: 1px solid var(--gmz-control-border);
    border-radius: var(--gmz-control-radius);
    background: var(--ga-card);
    color: var(--ga-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    box-shadow: none;
}
html body .gmz-form textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}
html body .gmz-form input[type="date"] { max-width: 13rem; }
html body .gmz-form :is(input, select, textarea):focus-visible {
    outline: 2px solid var(--ga-green);
    outline-offset: 2px;
    border-color: var(--ga-green);
}
html body .gmz-form :is(input, select, textarea):disabled {
    background-color: #f1f4f5;
    color: var(--ga-muted);
    cursor: not-allowed;
}
html body .gmz-form :is(.field > label, .gmz-form-grid > label, .guest-quick-fields > label) {
    font-size: var(--gmz-label-size);
    font-weight: 600;
    line-height: 1.4;
    color: #40565d;
    margin-bottom: var(--gmz-field-gap);
}
.gmz-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gmz-layout-gap);
    margin-bottom: var(--gmz-layout-gap);
}
.gmz-form-grid > .field { grid-column: auto; }
.gmz-form-grid > label {
    display: flex;
    flex-direction: column;
    gap: var(--gmz-field-gap);
}
.gmz-span-2 { grid-column: span 2; }
.guest-extra-fields .gmz-form-grid { margin-top: var(--gmz-layout-gap); }

/* Buttons share geometry. Their existing primary/danger/status colors remain semantic. */
html body .btn {
    box-sizing: border-box;
    min-height: var(--gmz-control-height);
    padding: 10px 16px;
    border-radius: var(--gmz-control-radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}
html body .btn-small { min-height: 36px; padding: 7px 10px; font-size: 13px; }
html body .btn:focus-visible { outline: 2px solid var(--ga-green); outline-offset: 3px; }
html body .btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Shared headers and action rows do not impose a page-specific column structure. */
.content .page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--gmz-layout-gap);
    margin-bottom: var(--gmz-section-gap);
}
.content .page-heading > div { min-width: 0; }
.content .page-heading h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; overflow-wrap: anywhere; }
.content .page-heading p { color: var(--ga-muted); line-height: 1.5; }
:is(.form-actions, .score-form-actions, .venue-filter-actions, .superuser-filter-actions) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.card, .login-card, .legal-card {
    border-color: var(--ga-line);
    border-radius: var(--ga-radius);
}

@media (max-width: 900px) {
    .gmz-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .gmz-form-grid { grid-template-columns: minmax(0, 1fr); }
    .gmz-span-2 { grid-column: auto; }
    .content .page-heading { align-items: flex-start; gap: 12px; }
    .content .page-heading > div { flex: 1 1 100%; }
    html body .btn-small { min-height: var(--gmz-control-height); }
}

@media (max-width: 600px) {
    :where(html.gmz-page-friend-games) #new-friend-game .fg-player-line > .field:first-child {
        grid-column: 1 / -1 !important;
    }
    :where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Links and POST buttons use the same full-width menu row. */
:where(html.gmz-use-action-menus) .gmz-floating-menu .action-menu-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}
:where(html.gmz-use-action-menus) .gmz-floating-menu .action-menu-form {
    width: 100%;
    min-width: 0;
}
.friend-person-actions > .action-menu > summary {
    width: 44px;
    min-width: 44px;
    padding: 8px;
}

/* Equipment labels may be custom and must wrap inside a mobile card. */
.bag-club-name { overflow-wrap: anywhere; }

/* Shared optional MyGame capture, inside the current round. */
.mygame-capture { min-width:0; margin-block:16px; }
.mygame-capture summary { cursor:pointer; min-height:44px; padding:12px 0; font-weight:700; overflow-wrap:anywhere; }
.mygame-capture [hidden] { display:none !important; }
.mygame-capture form { display:block; }
.mygame-capture .gmz-form-grid { margin-block:12px; }
.mygame-capture label { display:flex; flex-direction:column; min-width:0; gap:6px; }
.mygame-capture input,.mygame-capture select,.mygame-capture textarea { width:100%; max-width:100%; min-width:0; min-height:44px; box-sizing:border-box; }
.mygame-capture .btn { min-height:44px; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.mygame-capture .form-actions { display:flex; flex-wrap:wrap; gap:8px; margin-block:12px; }
.mygame-capture [aria-pressed="true"] { background:#063443; color:white; }
.mygame-status { overflow-wrap:anywhere; margin-block:8px; }
.mygame-shot-list { list-style:none; padding:0; margin-block:16px; }
.mygame-shot-list li { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding-block:8px; border-bottom:1px solid #dde5e8; }
.mygame-shot-list span { flex:1 1 160px; min-width:0; overflow-wrap:anywhere; }

.mygame-capture .mygame-context { grid-template-columns:repeat(2,minmax(0,1fr)); }

/* MyGame Phase 11b: contextual capture after shot type + bag club. */
.mygame-shot-primary {
    margin-block: 14px;
    padding: 14px;
    border: 1px solid #dbe5df;
    border-radius: 10px;
    background: #f8fbf9;
}
.mygame-section-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
}
.mygame-section-title strong { font-size: 15px; }
.mygame-section-title small,
.mygame-field-help { color: #65726a; line-height: 1.4; }
.mygame-primary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.mygame-shot-contextual { min-width: 0; }
.mygame-dynamic-grid { align-items: end; }
.mygame-visual-field {
    min-width: 0;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid #dbe5df;
    border-radius: 10px;
}
.mygame-visual-field legend {
    padding: 0 5px;
    font-weight: 800;
}
.mygame-direction-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 7px;
    margin-top: 10px;
}
.mygame-direction-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 7px 5px;
    border: 1px solid #ccd9d2;
    border-radius: 9px;
    background: #fff;
    color: #173c35;
    font: inherit;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.mygame-direction-choice:hover { border-color: #24b94f; }
.mygame-direction-choice:focus-visible { outline: 3px solid rgba(36,185,79,.25); outline-offset: 2px; }
.mygame-direction-choice[aria-pressed="true"] {
    border-color: #24b94f;
    background: #eaf8ee;
    color: #063443;
    box-shadow: inset 0 0 0 1px #24b94f;
    font-weight: 800;
}
.mygame-direction-icon {
    display: block;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}
.mygame-direction-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}
.mygame-direction-choice-extra { width: auto; min-width: 110px; min-height: 44px; }
.mygame-common-details { margin-block: 12px; }
.mygame-common-details > summary {
    min-height: 44px;
    padding: 10px 0;
    font-weight: 700;
}
@media (max-width: 560px) {
    .mygame-primary-grid { grid-template-columns: 1fr; }
    .mygame-shot-primary,.mygame-visual-field { padding: 10px; }
    .mygame-direction-grid { gap: 5px; }
    .mygame-direction-choice { min-height: 62px; padding-inline: 3px; }
}
.mygame-direction-extra:empty { display:none; }

/* MyGame phases 12-16: compact statistics dashboard, not a chart wall. */
.mygame-binary-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.mygame-binary-button{min-height:46px;border:1px solid #cfdadd;border-radius:10px;background:#fff;font:inherit;font-weight:700;cursor:pointer}
.mygame-binary-button[aria-pressed="true"]{background:#063443;color:#fff;border-color:#063443}
.mygame-page-heading p{margin:.35rem 0 0}
.mygame-period-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.mygame-period-filter label{display:flex;flex-direction:column;gap:6px}
.mygame-period-filter select{min-width:220px;min-height:44px}
.mygame-kpi-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.mygame-kpi-strip .card{display:flex;flex-direction:column;gap:5px;margin:0}
.mygame-kpi-strip strong{font-size:1.8rem;line-height:1}
.mygame-domain-card{margin-block:14px}
.mygame-domain-heading{display:flex;align-items:flex-start;gap:12px}
.mygame-domain-heading h2{margin:0 0 4px}
.mygame-domain-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#eef5f2;font-size:1.4rem;flex:0 0 auto}
.mygame-stats-table{min-width:980px}
.mygame-stats-table th,.mygame-stats-table td{vertical-align:top}
.mygame-sample{display:block;color:#65726a;margin-top:3px}
.mygame-dispersion{display:flex;width:150px;max-width:100%;height:12px;overflow:hidden;border-radius:999px;background:#e9eef0;margin-bottom:4px}
.mygame-dispersion .left{background:#c4cdd0}.mygame-dispersion .center{background:#24b94f}.mygame-dispersion .right{background:#78909c}
.mygame-method-note{margin:.8rem 0 0;font-size:.9rem}
.mygame-course-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
.mygame-course-card{border:1px solid #dce5e7;border-radius:12px;padding:14px;min-width:0}
.mygame-course-card h3{margin-top:0;overflow-wrap:anywhere}
.mygame-course-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mygame-course-kpis div{display:flex;flex-direction:column;gap:3px;background:#f7f9f9;border-radius:10px;padding:10px}
.mygame-course-kpis strong{font-size:1.35rem}
.mygame-trend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.mygame-trend-card{display:flex;flex-direction:column;gap:5px;border:1px solid #dce5e7;border-radius:12px;padding:12px}
.mygame-trend-card strong{font-size:1.45rem}
.mygame-sg-readiness{border-left:4px solid #24b94f}
.mygame-readiness-list{display:flex;flex-wrap:wrap;gap:8px 14px;margin:10px 0}
.mygame-readiness-list span{padding:6px 9px;background:#f4f8f6;border-radius:999px}
@media(max-width:720px){.mygame-kpi-strip{grid-template-columns:1fr}.mygame-course-kpis{grid-template-columns:1fr}.mygame-period-filter select{width:100%;min-width:0}.mygame-period-filter label{width:100%}}

/* Position-based navigation. It is rendered only for non-FULL_18 plans. */
.sequence-navigation-compact {
    display:grid;
    grid-template-columns:44px minmax(0,max-content) 44px;
    align-items:center;
    justify-content:start;
    gap:8px;
    margin-block:10px;
}
.sequence-navigation-compact .sequence-navigation-arrow {
    width:44px;
    min-width:44px;
    min-height:44px;
    padding:0;
    font-size:1.55rem;
    line-height:1;
}
.sequence-navigation-indicator {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 14px;
    border:1px solid var(--gmz-control-border,#d6e0e2);
    border-radius:12px;
    background:var(--gmz-surface,#fff);
    color:var(--gmz-text,#102a31);
    font-size:.95rem;
    white-space:nowrap;
}
.sequence-navigation-status {
    grid-column:1 / -1;
    min-height:0;
    overflow-wrap:anywhere;
}
.sequence-navigation-status:empty { display:none; }
.sequence-lap { display:block;font-size:10px;white-space:normal; }
.sequence-current { outline:2px solid #13883f;outline-offset:-2px; }
@media (max-width:560px) {
    .sequence-navigation-compact {
        grid-template-columns:44px minmax(0,1fr) 44px;
        width:100%;
    }
    .sequence-navigation-indicator {
        min-width:0;
        padding-inline:8px;
        font-size:.9rem;
        white-space:normal;
        text-align:center;
    }
}

/* MyGame V10.12: putting por hoyo y ayudas estadÃ­sticas tÃ¡ctiles. */
.mygame-putting-quick{margin:14px 0;padding:14px;border:1px solid #cfe0d6;border-radius:12px;background:#f7fbf8}
.mygame-putting-form{margin:0}
.mygame-putt-count{margin:12px 0;padding:0;border:0}
.mygame-putt-count legend{font-weight:800;margin-bottom:8px}
.mygame-putt-chips{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.mygame-putt-chips button{min-height:52px;border:1px solid #cbd8d1;border-radius:12px;background:#fff;color:#063443;font:inherit;font-size:1.05rem;font-weight:800;cursor:pointer}
.mygame-putt-chips button[aria-pressed="true"]{background:#063443;color:#fff;border-color:#063443;box-shadow:0 0 0 2px rgba(36,185,79,.18)}
.mygame-putting-distances{grid-template-columns:repeat(2,minmax(0,1fr))}
.mygame-putting-status{min-height:1.4em;margin:8px 0;color:#52645d}

.mygame-putting-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:14px 0}
.mygame-putting-kpis article{position:relative;display:grid;grid-template-columns:1fr auto;gap:4px 8px;align-items:start;padding:12px;border:1px solid #dbe5df;border-radius:12px;background:#f8fbf9;min-width:0}
.mygame-putting-kpis article>span:first-child{font-size:.9rem;color:#50615a}
.mygame-putting-kpis article>strong{grid-column:1;font-size:1.5rem;line-height:1.1}
.mygame-putting-kpis .mygame-putting-highlight{border-color:#24b94f;background:#eef9f1}
.mygame-putting-counts{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.mygame-putting-counts span{padding:7px 10px;border-radius:999px;background:#eef3f1}
.mygame-putting-table{min-width:620px}
.mygame-stat-heading{position:relative;display:flex;align-items:center;gap:6px;flex-wrap:wrap}

.mygame-info-button{display:inline-grid;place-items:center;width:26px;height:26px;min-width:26px;padding:0;border:1px solid #bdcbc4;border-radius:50%;background:#fff;color:#063443;font:inherit;font-size:.85rem;font-weight:900;line-height:1;cursor:pointer;vertical-align:middle}
.mygame-info-button:hover,.mygame-info-button:focus-visible{border-color:#24b94f;outline:2px solid rgba(36,185,79,.18);outline-offset:1px}
.mygame-info-popover{position:absolute;z-index:50;top:calc(100% + 6px);left:8px;right:8px;max-width:360px;padding:10px 12px;border:1px solid #cbd8d1;border-radius:10px;background:#fff;color:#173c35;font-size:.88rem;font-weight:400;line-height:1.4;box-shadow:0 8px 24px rgba(6,52,67,.16)}
th .mygame-info-popover{left:auto;right:auto;min-width:240px}
.mygame-course-kpis div,.mygame-stats-table th,.mygame-putting-kpis article,.mygame-stat-heading{position:relative}

@media(max-width:560px){
    .mygame-info-button{width:44px;height:44px;min-width:44px}
    .mygame-putt-chips{gap:5px}
    .mygame-putt-chips button{min-height:56px;padding:4px}
    .mygame-putting-distances{grid-template-columns:1fr}
    .mygame-putting-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    .mygame-info-popover{position:fixed;left:12px;right:12px;top:auto;bottom:18px;max-width:none;z-index:2000}
}

/* ================================================================
   V10.12.1 â€” Friend Games: alineaciÃ³n del editor y ayudas contextuales
   ================================================================ */
:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-line {
    align-items: start !important;
}

/* Etiqueta y ayuda comparten cabecera: la (i) ya no empuja el control hacia abajo. */
:where(html.gmz-page-friend-games) #new-friend-game .fg-field-label-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    margin-bottom: var(--gmz-field-gap, 6px);
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-field-label-row > label {
    margin: 0 !important;
    min-width: 0;
    line-height: 1.25;
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-field-label-row .gmz-info-wrap {
    flex: 0 0 auto;
    margin: 0;
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-field-label-row .gmz-info-button {
    width: 28px;
    height: 28px;
    min-height: 28px;
}

/* Todas las etiquetas del bloque de reglas parten de la misma altura visual. */
:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-rules > .field > label,
:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options > .field > label {
    display: flex;
    align-items: flex-end;
    min-height: 36px;
    margin-bottom: var(--gmz-field-gap, 6px);
    line-height: 1.25;
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-rules :is(select, input[type="text"], input[type="number"]),
:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options :is(select, input[type="text"], input[type="number"]) {
    min-height: var(--gmz-control-height, 44px);
}

/* Los parÃ¡metros que aparecen al cambiar de formato permanecen en una sola fila de escritorio. */
:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options {
    grid-template-columns: repeat(4, minmax(120px, 1fr)) !important;
    max-width: 700px;
    align-items: start !important;
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options .field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options .fg-field-label-row,
:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options > .field > label {
    width: 100%;
    min-height: 42px;
    align-items: flex-end;
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options .fg-field-label-row {
    align-items: center;
}

:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options .input-suffix,
:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options .bw-only input {
    width: 100%;
    max-width: 128px;
}

/* El estado de geolocalizaciÃ³n queda debajo del selector sin alterar la alineaciÃ³n del resto. */
:where(html.gmz-page-friend-games) #new-friend-game .friend-location-status:not([hidden]) {
    display: block;
    margin-top: 6px;
    line-height: 1.3;
}

@media (max-width: 760px) {
    :where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: none;
    }
}

@media (max-width: 600px) {
    :where(html.gmz-page-friend-games) #new-friend-game .fg-field-label-row,
    :where(html.gmz-page-friend-games) #new-friend-game .fg-editor-rules > .field > label,
    :where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options > .field > label,
    :where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options .fg-field-label-row {
        min-height: 0;
    }

    :where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    :where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options .input-suffix,
    :where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options .bw-only input {
        max-width: 140px;
    }
}

/* V10.12.2 â€” MyGame: el putting rÃ¡pido complementa, no sustituye, la captura de golpes. */
.mygame-shot-capture-title {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #dbe5df;
}

/* V11.1.0 - Strokes Gained Foundation selector/status. */
.mygame-sg-benchmark-form{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center;margin:.9rem 0}.mygame-sg-benchmark-form label{font-weight:700}.mygame-sg-benchmark-form select{min-width:min(100%,18rem);padding:.55rem .7rem;border:1px solid #cbd5dc;border-radius:.55rem;background:#fff}

/* MyGame V11.2.5 Â· FASE 5 â€” PAD rÃ¡pido para Strokes Gained. */
.mygame-shot-fast-flow{display:flex;flex-direction:column;gap:10px}
.mygame-fast-state-grid{grid-template-columns:minmax(110px,.85fr) minmax(0,1.15fr);gap:10px;margin-block:0 !important}
.mygame-fast-club{margin-block:2px 10px}
.mygame-fast-end-grid{align-items:end}
.mygame-fast-destination{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end;min-width:0}
.mygame-fast-destination label{min-width:0}
.mygame-holed-button{min-width:96px;padding-inline:10px}
.mygame-holed-button[aria-pressed="true"]{background:#063443;color:#fff;border-color:#063443}
.mygame-kind-secondary{grid-template-columns:minmax(0,1fr);margin-top:0 !important}
.mygame-shot-contextual>summary{display:flex;align-items:center}
.mygame-putting-start-state{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 10px;padding:9px 11px;border:1px solid #dbe5df;border-radius:10px;background:#fff}
.mygame-putting-start-state span{font-size:.86rem;color:#65726a}
.mygame-putting-start-state strong{font-size:1rem;color:#063443}
@media(max-width:560px){
    .mygame-fast-state-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
    .mygame-fast-destination{grid-template-columns:minmax(0,1fr)}
    .mygame-holed-button{width:100%}
}
@media(max-width:360px){
    .mygame-fast-state-grid{grid-template-columns:1fr}
}

/* V11.2.7 Â· Strokes Gained summary */
.mygame-sg-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.mygame-sg-heading h2{margin-bottom:.2rem}.mygame-sg-total{display:flex;flex-direction:column;align-items:flex-end;min-width:7rem}.mygame-sg-total span{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#60717a}.mygame-sg-total strong{font-size:2rem;line-height:1}.mygame-sg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin-top:1rem}.mygame-sg-card{border:1px solid #dbe5e1;border-radius:.8rem;padding:.8rem;background:#fbfdfc;display:flex;flex-direction:column;gap:.35rem}.mygame-sg-card>span{font-size:.84rem;font-weight:700;color:#40545c}.mygame-sg-card>strong{font-size:1.45rem}.mygame-sg-meta{display:flex;flex-wrap:wrap;gap:.55rem 1rem;align-items:center;margin-top:.85rem;font-size:.86rem;color:#60717a}.mygame-sg-maturity{display:inline-flex;align-items:center;gap:.3rem;padding:.25rem .5rem;border-radius:999px;background:#eef3f1}.gmz-info-dot{display:inline-flex;align-items:center;justify-content:center;width:1.05rem;height:1.05rem;border:1px solid currentColor;border-radius:50%;font-size:.72rem;font-weight:800;line-height:1;cursor:help;vertical-align:middle;opacity:.72}.mygame-sg-readiness .is-positive{color:#11783a}.mygame-sg-readiness .is-negative{color:#a33535}.maturity-consolidated{font-weight:700}.maturity-insufficient{opacity:.78}@media(max-width:760px){.mygame-sg-heading{align-items:center}.mygame-sg-total strong{font-size:1.65rem}.mygame-sg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mygame-sg-card{padding:.7rem}.mygame-sg-card>strong{font-size:1.25rem}}@media(max-width:390px){.mygame-sg-heading{align-items:flex-start}.mygame-sg-total{min-width:auto}.mygame-sg-grid{gap:.5rem}}

/* V11.2.9 Â· My Game â€” porcentaje de swing para wedges/medios golpes. */
.mygame-swing-percent{margin:-2px 0 8px;padding:8px 10px;border:1px solid #dbe5df;border-radius:10px;background:#fbfdfc}
.mygame-swing-percent legend{padding:0 4px;font-size:.86rem;font-weight:700;color:#40545c}
.mygame-swing-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.mygame-swing-choice{appearance:none;border:1px solid #bccbc4;border-radius:9px;background:#fff;color:#263933;font-weight:800;padding:9px 8px;min-height:40px;cursor:pointer}
.mygame-swing-choice[aria-pressed="true"]{background:#063443;color:#fff;border-color:#063443}
.mygame-swing-choice:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.mygame-swing-badge{display:inline-flex;align-items:center;padding:.12rem .38rem;border-radius:999px;background:#eef3f1;font-size:.76rem;font-weight:800;white-space:nowrap}
@media(max-width:360px){.mygame-swing-choice{padding-inline:5px}}

/* V11.4.0 - MyGame FASE 9: filtros SG compactos y selector de vuelta alineado. */
.mygame-round-control{display:flex;align-items:center;gap:.55rem;min-width:0}
.mygame-round-control select{flex:1;min-width:0}
.mygame-sg-reference-line{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin:.65rem 0}
.mygame-sg-reference-badge{font-weight:800}
.mygame-sg-filters{margin:.65rem 0 1rem;border-top:1px solid #e0e8eb;padding-top:.55rem}
.mygame-sg-filters summary{cursor:pointer;font-weight:800;color:#063443}
.mygame-sg-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.7rem;margin-top:.7rem;align-items:end}
.mygame-sg-filter-grid label{display:flex;flex-direction:column;gap:.3rem;min-width:0}
.mygame-sg-filter-grid select,.mygame-sg-filter-grid input{width:100%;min-width:0;min-height:42px}
.mygame-sg-filter-actions{display:flex;gap:.45rem;align-items:center;grid-column:1/-1}
@media(max-width:900px){.mygame-sg-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.mygame-period-filter{align-items:stretch}.mygame-round-control{width:100%}.mygame-round-control .gmz-info-dot{flex:0 0 auto}.mygame-sg-filter-grid{grid-template-columns:1fr}.mygame-sg-filter-actions{flex-wrap:wrap}.mygame-sg-benchmark-form{align-items:stretch}.mygame-sg-benchmark-form select{width:100%;min-width:0}}
.profile-mygame-ai-settings{display:grid;gap:.8rem}.profile-ai-form{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.profile-ai-status{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
@media(max-width:720px){.profile-ai-form{align-items:stretch}.profile-ai-form .btn{width:100%}}

/* V11.4.0 - evoluciÃ³n visual Match Play / Fourball mejor-peor. */
.match-progress-chart{margin-top:1rem}.match-progress-chart-heading{display:flex;justify-content:space-between;gap:.75rem;align-items:baseline;flex-wrap:wrap}.match-progress-chart-heading h3{margin:0}.match-progress-chart-wrap{overflow-x:auto}.match-progress-svg{display:block;width:100%;min-width:520px;height:auto;max-height:280px}.match-progress-zero{stroke:#64747c;stroke-width:1.5}.match-progress-grid{stroke:#dbe3e6;stroke-width:1}.match-progress-line{fill:none;stroke:#2474c6;stroke-width:3}.match-progress-point{fill:#2474c6}.match-progress-hole{font-size:12px;fill:#53646d}.match-progress-side{font-size:12px;font-weight:700;fill:#063443}
@media(max-width:720px){.match-progress-chart{padding:.8rem}.match-progress-svg{min-width:460px}}

/* V11.4.0 Â· evoluciÃ³n Match Play y probabilidad neutral durante el partido. */
.match-progress-slot:empty{display:none}
.match-progress-chart{margin-top:1rem}
.match-progress-probability{margin:.8rem 0 1rem;padding:.75rem;border:1px solid #dbe3e6;border-radius:12px;background:#f8fafb}
.match-progress-probability-heading{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin-bottom:.6rem}
.match-progress-probability-heading>small{margin-left:auto}
.match-progress-probability-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}
.match-progress-probability-grid>span{display:flex;flex-direction:column;gap:.15rem;align-items:center;justify-content:center;min-height:58px;padding:.45rem;border-radius:10px;background:#fff;border:1px solid #e4eaed;text-align:center}
.match-progress-probability-grid small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.match-progress-probability-grid b{font-size:1.18rem;color:#063443}
@media(max-width:720px){
  .match-progress-chart{margin-top:.75rem;padding:.8rem}
  .match-progress-probability-heading>small{width:100%;margin-left:0}
  .match-progress-probability-grid{grid-template-columns:1fr 1fr 1fr;gap:.35rem}
  .match-progress-probability-grid>span{padding:.4rem .25rem;min-height:54px}
  .match-progress-probability-grid small{font-size:.72rem}
  .match-progress-probability-grid b{font-size:1.02rem}
}

/* V11.8.0 Â· MyGame: distancias rÃ¡pidas y avance neto hacia el hoyo. */
.mygame-fast-end-grid{grid-template-columns:minmax(180px,1.35fr) minmax(110px,.8fr) minmax(110px,.8fr)}
.mygame-progress-field{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 12px;padding:10px 12px;border:1px solid #dbe5df;border-radius:10px;background:#f8fbf9}
.mygame-progress-field .mygame-field-label-row{display:flex;align-items:center;gap:6px;min-width:0}
.mygame-progress-field output{font-size:1.08rem;font-weight:800;color:#063443;white-space:nowrap}
.mygame-progress-field .mygame-info-wrap{display:inline-flex}
@media(max-width:700px){.mygame-fast-end-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mygame-fast-end-grid .mygame-fast-destination{grid-column:1/-1}.mygame-progress-field{align-items:flex-start}}
@media(max-width:420px){.mygame-fast-end-grid{grid-template-columns:1fr}.mygame-fast-end-grid .mygame-fast-destination{grid-column:auto}.mygame-progress-field{flex-direction:column}.mygame-progress-field output{font-size:1rem}}


/* ============================================================
   V11.10.2 Â· SUPERADMIN / TORNEOS A ANCHO COMPLETO
   ============================================================ */
.superuser-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
    align-items: start;
}
.superuser-grid > section,
.superuser-grid > aside { min-width: 0; width: 100%; }
.superuser-grid > aside { order: 2; }
.superuser-admin-editor { margin: 0; width: 100%; }
.superuser-admin-editor .muted { margin-bottom: 0; }
.superuser-admin-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
    gap: 28px;
    align-items: start;
    margin-top: 20px;
}
.superuser-current-organizers,
.superuser-add-organizer { min-width: 0; }
.superuser-current-organizers > label,
.superuser-add-organizer .field > label {
    display: block;
    margin-bottom: 9px;
    font-weight: 700;
}
.superuser-organizer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 0 0 9px;
    padding: 12px 14px;
    border: 1px solid var(--ga-line, #e1e8ea);
    border-radius: 12px;
    background: #fff;
}
.superuser-organizer-identity {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}
.superuser-organizer-identity b,
.superuser-organizer-identity small { overflow-wrap: anywhere; }
.superuser-add-organizer {
    display: grid;
    gap: 12px;
    padding-left: 28px;
    border-left: 1px solid var(--ga-line, #e1e8ea);
}
.superuser-add-organizer .field { margin: 0; min-width: 0; }
.superuser-add-organizer select { width: 100%; min-width: 0; }
.superuser-admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.superuser-admin-actions .btn {
    width: auto !important;
    min-width: 160px;
    white-space: nowrap;
}
@media(max-width:900px) {
    .superuser-grid > aside { order: 2 !important; }
    .superuser-admin-editor-grid { grid-template-columns: 1fr; gap: 18px; }
    .superuser-add-organizer {
        padding-left: 0;
        padding-top: 18px;
        border-left: 0;
        border-top: 1px solid var(--ga-line, #e1e8ea);
    }
}
@media(max-width:520px) {
    .superuser-organizer-row { grid-template-columns: 1fr; align-items: stretch; }
    .superuser-organizer-row .btn,
    .superuser-admin-actions,
    .superuser-admin-actions .btn { width: 100% !important; }
    .superuser-admin-actions { display: grid; grid-template-columns: 1fr; }
}

/* V11.15.1 Â· Modalidad Individual/Parejas */
:where(html.gmz-page-friend-games) #new-friend-game .friend-player-grid .friend-pair-group {
    display: contents;
}
:where(html.gmz-page-friend-games) #new-friend-game .friend-pair-heading {
    display: none;
}
:where(html.gmz-page-friend-games) #new-friend-game .friend-player-grid.pairs-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
:where(html.gmz-page-friend-games) #new-friend-game .friend-player-grid.pairs-mode .friend-pair-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--gmz-border, #d8e1e8);
    border-radius: 14px;
    background: var(--gmz-surface-soft, rgba(255,255,255,.55));
    min-width: 0;
}
:where(html.gmz-page-friend-games) #new-friend-game .friend-player-grid.pairs-mode .friend-pair-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 4px;
}
:where(html.gmz-page-friend-games) #new-friend-game .friend-player-grid.pairs-mode .friend-pair-heading small {
    opacity: .72;
    text-align: right;
}
:where(html.gmz-page-friend-games) #new-friend-game .friend-player-grid.pairs-mode .fg-player-line {
    width: 100%;
    min-width: 0;
}
:where(html.gmz-use-individual-competitions) [data-pairs-format-note] {
    display: block;
    margin-top: 5px;
    opacity: .72;
}
@media (max-width: 760px) {
    :where(html.gmz-page-friend-games) #new-friend-game .friend-player-grid.pairs-mode {
        grid-template-columns: minmax(0, 1fr);
    }
    :where(html.gmz-page-friend-games) #new-friend-game .friend-player-grid.pairs-mode .friend-pair-group {
        padding: 12px;
    }
}

/* V11.16.0 Â· Fourball Stroke/Medal + parejas en torneos */
.fourball-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.fourball-summary>div{min-width:0}
.fourball-individual-totals{opacity:.78}
.match-side-box[data-match-pair-side]{min-width:0}
.match-side-box[data-match-pair-side] .field select{max-width:100%;width:100%}
@media (max-width:720px){
  .fourball-summary{grid-template-columns:1fr}
  .fourball-summary strong{font-size:1.45rem}
  .fourball-individual-totals{font-size:.92rem}
  .matches-management-grid .match-side-box{padding:14px}
  .matches-management-grid .compact-form-row{grid-template-columns:1fr}
  [data-match-pair-side] h3{margin-bottom:10px}
}

/* =========================================================
   V11.25.8 Â· APROVECHAMIENTO DE ANCHO / CAPITÃ�N-JUGADOR
   ========================================================= */
@media (min-width: 1100px) {
    .content > * {
        width: 100%;
        max-width: none;
    }
    .global-users-filter-card,
    .global-users-layout,
    .global-users-list-card,
    .management-grid,
    .matches-management-grid,
    .players-management-grid {
        width: 100%;
        max-width: none;
    }
    .global-users-list-card > .table-wrap,
    .global-users-table {
        width: 100%;
    }
}

.captain-auto-player {
    padding: 14px 16px;
    border: 1px solid var(--ga-line);
    border-left: 4px solid var(--ga-green);
    border-radius: var(--ga-radius);
    background: rgba(36,185,79,.06);
}
.captain-auto-player strong,
.captain-auto-player small {
    display: block;
}
.captain-auto-player strong {
    margin: 2px 0 5px;
    color: var(--ga-navy);
}
.captain-auto-player small {
    color: var(--ga-muted);
    line-height: 1.45;
}

/* V11.27.0 - comparaciÃ³n SG por hÃ¡ndicap */
.mygame-sg-handicap-compare{margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(0,0,0,.10)}
.mygame-sg-handicap-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.mygame-sg-handicap-heading h3{margin:.1rem 0 .25rem}
.mygame-sg-hcp-summary{display:flex;gap:.75rem 1.25rem;flex-wrap:wrap;margin:.65rem 0 .8rem}
.mygame-sg-hcp-source{margin:.65rem 0 0;font-size:.85rem}
@media(max-width:700px){.mygame-sg-handicap-heading .mygame-sg-total{width:100%;text-align:left}.mygame-sg-hcp-summary{display:grid;grid-template-columns:1fr}}

/* V11.30.1 - Eclectic bruto con estÃ©tica de tarjeta GMZ */
.mygame-eclectic-section{border-left:4px solid var(--gmz-primary,#24B94F)}
.mygame-eclectic-card{margin-top:16px;border:1px solid rgba(6,52,67,.10);border-radius:14px;overflow:hidden;background:#fff}
.mygame-eclectic-table{min-width:1320px}
.mygame-eclectic-table .friend-scorecard-player-col{width:105px;min-width:105px;max-width:105px}
.mygame-eclectic-table .friend-score-cell strong{display:block;font-size:1.05rem}
.eclectic-date{display:block;margin-top:3px;font-size:.57rem;font-weight:700;color:#667a80;white-space:nowrap}
.mygame-eclectic-table td.eclectic-eagle{background:rgba(20,111,73,.20)}
.mygame-eclectic-table td.eclectic-birdie{background:rgba(36,185,79,.12)}
.mygame-eclectic-table td.eclectic-par{background:rgba(6,52,67,.025)}
.mygame-eclectic-table td.eclectic-bogey{background:rgba(231,151,50,.10)}
.mygame-eclectic-table td.eclectic-double{background:rgba(181,61,61,.10)}
.mygame-eclectic-legend{display:flex;flex-wrap:wrap;gap:8px;padding:10px 14px;background:#f8faf9}
.mygame-eclectic-legend span{padding:4px 8px;border-radius:999px;font-size:.68rem;font-weight:850}
.mygame-eclectic-legend .eclectic-eagle{background:rgba(20,111,73,.20)}
.mygame-eclectic-legend .eclectic-birdie{background:rgba(36,185,79,.12)}
.mygame-eclectic-legend .eclectic-par{background:rgba(6,52,67,.06)}
.mygame-eclectic-legend .eclectic-bogey{background:rgba(231,151,50,.12)}
.mygame-eclectic-legend .eclectic-double{background:rgba(181,61,61,.12)}

/* V11.32.1 - Barras por jugador: alineacion estable y responsive. */
.gmz-player-tee-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 12px;align-items:start}
.gmz-player-tee-grid .field{margin:0;display:flex;flex-direction:column;min-width:0}
.gmz-player-tee-grid .field label{min-height:1.35em;margin-bottom:6px;font-weight:600}
.gmz-player-tee-grid .field select{width:100%;margin:0}
@media(max-width:700px){.gmz-player-tee-grid{grid-template-columns:1fr;gap:12px}}


/* V13.0.1 Â· Bracket visual Match Play */
.gmz-bracket-shell{overflow:hidden}.gmz-bracket-title{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1rem}.gmz-bracket-title h2{margin-bottom:.2rem}.gmz-bracket-title p{margin:0;color:var(--muted,#667085)}
.gmz-bracket{display:flex;gap:2rem;overflow-x:auto;padding:.5rem .25rem 1.25rem;align-items:stretch;scroll-snap-type:x proximity}.gmz-bracket-round{min-width:260px;flex:1 0 260px;display:flex;flex-direction:column;scroll-snap-align:start}.gmz-bracket-round>h2{text-align:center;font-size:.82rem;letter-spacing:.09em;text-transform:uppercase;margin:0 0 .75rem;color:var(--muted,#667085)}.gmz-bracket-round-matches{display:flex;flex-direction:column;justify-content:space-around;gap:1.1rem;flex:1}.gmz-bracket-match{position:relative;border:1px solid #d9dee7;border-radius:12px;background:#fff;overflow:visible}.gmz-bracket-match:not(:last-child){}.gmz-bracket-round:not(:last-child) .gmz-bracket-match:after{content:"";position:absolute;right:-2rem;top:50%;width:2rem;border-top:2px solid #cbd2dc}.gmz-bracket-match-head{display:flex;justify-content:space-between;gap:.6rem;padding:.45rem .65rem;background:#f6f8fb;border-radius:12px 12px 0 0;font-size:.72rem;color:#667085}.gmz-bracket-match-head strong{color:#344054}.gmz-bracket-player{display:grid;grid-template-columns:28px minmax(0,1fr) 22px;align-items:center;min-height:43px;padding:.35rem .55rem;border-top:1px solid #edf0f4}.gmz-bracket-player.is-winner{font-weight:800;background:#edf8f0}.gmz-seed{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#eef1f5;color:#475467;font-size:.72rem;font-weight:700}.gmz-player-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gmz-win{font-size:1rem;text-align:center;color:#1f7a3f}.gmz-bracket-match.is-finished{border-color:#a9d6b6}.gmz-bracket-score-list{display:grid;gap:.65rem}.gmz-score-match{border:1px solid #d9dee7;border-radius:10px;padding:.7rem}.gmz-score-match summary{cursor:pointer;display:flex;gap:1rem;justify-content:space-between;flex-wrap:wrap}.gmz-score-match form{margin-top:1rem}.gmz-public-bracket-page{width:min(98%,1800px);margin:0 auto;padding:1.2rem}.gmz-public-bracket-header{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.gmz-public-bracket-header h1{font-size:clamp(1.6rem,3vw,3rem);margin:.15rem 0}.gmz-public-bracket-header p{margin:0;color:#667085}.gmz-kicker{font-size:.75rem;letter-spacing:.16em;font-weight:800;color:#667085}.gmz-live-pill{border-radius:999px;padding:.5rem .8rem;background:#edf8f0;color:#176b35;font-size:.75rem;font-weight:800;white-space:nowrap}.gmz-bracket-tv .gmz-public-bracket-page{width:99.2%;padding:.5rem}.gmz-bracket-tv .gmz-bracket{overflow:visible;gap:1.4rem}.gmz-bracket-tv .gmz-bracket-round{min-width:0;flex:1 1 0}.gmz-bracket-tv .gmz-bracket-round:not(:last-child) .gmz-bracket-match:after{right:-1.4rem;width:1.4rem}.gmz-bracket-tv .gmz-public-bracket-header{margin-bottom:.5rem}.gmz-bracket-tv .gmz-bracket-player{min-height:38px}
@media(max-width:720px){.gmz-bracket{gap:1rem}.gmz-bracket-round{min-width:86vw;flex-basis:86vw}.gmz-bracket-round:not(:last-child) .gmz-bracket-match:after{display:none}.gmz-public-bracket-header{align-items:flex-start;flex-direction:column}.gmz-live-pill{align-self:flex-start}.gmz-score-match summary{flex-direction:column;gap:.2rem}}

/* V13.1.1 Â· Team bracket pÃºblico / TV */
.gmz-team-bracket-path{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:3rem;align-items:center;margin:1rem 0 2rem}.gmz-team-round>h2{text-align:center;text-transform:uppercase;letter-spacing:.1em;font-size:.8rem;color:#667085}.gmz-team-round-list{display:flex;flex-direction:column;justify-content:space-around;gap:1.4rem}.gmz-team-tie{position:relative;background:#fff;border:1px solid #d9dee7;border-radius:14px;overflow:visible}.gmz-team-round:not(:last-child) .gmz-team-tie:after{content:"";position:absolute;right:-3rem;top:50%;width:3rem;border-top:2px solid #cbd2dc}.gmz-team-tie.is-finished{border-color:#a9d6b6}.gmz-team-tie-meta,.gmz-team-state{padding:.45rem .7rem;font-size:.7rem;color:#667085;background:#f7f8fa}.gmz-team-line{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:.5rem;padding:.75rem;border-top:1px solid #edf0f4;align-items:center}.gmz-team-line strong{text-align:right;font-size:1.25rem}.gmz-team-line.is-winner{font-weight:850;background:#edf8f0}.gmz-team-champion{padding:.7rem;text-align:center;font-weight:900;letter-spacing:.08em;background:#edf8f0;color:#176b35}.gmz-team-live>h2{margin-top:0}.gmz-team-live{display:grid;gap:1rem}.gmz-team-live-card{background:#fff;border:1px solid #d9dee7;border-radius:14px;overflow:hidden}.gmz-team-live-card>header{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem}.gmz-team-live-card h3{margin:.2rem 0 0;font-size:clamp(1rem,2vw,1.35rem)}.gmz-team-live-card h3 b{margin:0 .45rem;font-size:1.35em}.gmz-team-stage{font-size:.68rem;font-weight:850;letter-spacing:.1em;color:#667085}.gmz-team-progress{font-size:.78rem;font-weight:750;color:#475467;white-space:nowrap}.gmz-team-match-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #edf0f4}.gmz-team-match-group{padding:.8rem 1rem;border-right:1px solid #edf0f4}.gmz-team-match-group:last-child{border-right:0}.gmz-team-match-group h4{margin:.1rem 0 .5rem}.gmz-team-match-row{display:flex;justify-content:space-between;gap:.75rem;padding:.38rem 0;border-top:1px solid #f0f2f5;font-size:.82rem}.gmz-team-bracket-tv .gmz-public-bracket-page{width:99.2%;padding:.5rem}.gmz-team-bracket-tv .gmz-team-bracket-path{gap:2rem;margin:.3rem 0 1rem}.gmz-team-bracket-tv .gmz-team-round:not(:last-child) .gmz-team-tie:after{right:-2rem;width:2rem}.gmz-team-bracket-tv .gmz-team-live-card>header{padding:.6rem .8rem}.gmz-team-bracket-tv .gmz-team-match-group{padding:.5rem .7rem}
@media(max-width:760px){.gmz-team-bracket-path{grid-template-columns:1fr;gap:1rem}.gmz-team-round:not(:last-child) .gmz-team-tie:after{display:none}.gmz-team-match-grid{grid-template-columns:1fr}.gmz-team-match-group{border-right:0;border-bottom:1px solid #edf0f4}.gmz-team-live-card>header{align-items:flex-start;flex-direction:column}.gmz-team-progress{white-space:normal}}


/* =============================================================
   GMZ 13.1.8 â€” Botones de acciÃ³n: sistema visual verde unificado.
   Todas las variantes .btn (principal, light, secondary, danger,
   alava...) comparten apariencia sin alterar su comportamiento.
   Los estados deshabilitados mantienen una distinciÃ³n accesible.
   ============================================================= */
html body :is(a.btn, button.btn, input.btn, .btn),
html body :is(a.btn, button.btn, input.btn, .btn):link,
html body :is(a.btn, button.btn, input.btn, .btn):visited {
    color: #ffffff !important;
    background: linear-gradient(135deg, #24b94f 0%, #159b3e 100%) !important;
    border: 1px solid #148c37 !important;
    border-radius: 11px;
    font-family: inherit;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(20, 130, 57, .16);
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
html body :is(a.btn, button.btn, input.btn, .btn):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]) {
    color: #ffffff !important;
    background: linear-gradient(135deg, #189c40 0%, #10792f 100%) !important;
    border-color: #0e742d !important;
    box-shadow: 0 5px 16px rgba(20, 130, 57, .25);
}
html body :is(a.btn, button.btn, input.btn, .btn):focus-visible {
    outline: 3px solid #073d1d;
    outline-offset: 3px;
}
html body :is(a.btn, button.btn, input.btn, .btn):is(:disabled,[aria-disabled="true"]) {
    opacity: .52;
    cursor: not-allowed;
    box-shadow: none;
}
/* Acciones reales tambiÃ©n aparecen como opciones dentro de menÃºs JSP. */
html body :is(a.action-menu-item,button.action-menu-item,.action-menu-button):not(.action-menu-note) {
    background: #1b9d46 !important;
    border: 1px solid #137c36 !important;
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: none;
    text-decoration: none;
}
html body :is(a.action-menu-item,button.action-menu-item,.action-menu-button):is(:hover,:focus-visible):not(:disabled) {
    background: #127d36 !important;
    border-color: #0d642a !important;
    color: #ffffff !important;
}
html body .action-menu-items { gap: 4px; }
html body .action-menu-items .action-menu-item { margin: 2px 0; }
/* No convertimos en acciones primarias los toggles, chips, nÃºmeros de hoyo,
   botones informativos o controles de navegaciÃ³n con estado propio. */


/* =============================================================
   GMZ 13.1.8 â€” Tarjeta Ryder Cup en /public, PC + mÃ³vil.
   Replica geometrÃ­a y colores de TV; primera columna sticky.
   ============================================================= */
.public-match-scorecard {
    border-top: 1px solid rgba(6,52,67,.10);
    background: #f4f7f9;
}
.public-match-scorecard > summary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 8px 12px 8px auto;
    padding: 9px 14px;
    width: fit-content;
    max-width: calc(100% - 24px);
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.public-match-scorecard > summary::-webkit-details-marker { display: none; }
.public-match-scorecard > summary::marker { content: ''; }
.public-match-scorecard-chevron { display: inline-flex; font-size: 18px; line-height: .75; }
.public-match-scorecard[open] .public-match-scorecard-chevron { transform: rotate(180deg); }
.public-match-scorecard-content { padding: 0 12px 12px; }
.public-match-scorecard-content .public-match-card-actions {
    background: transparent;
    padding: 10px 0 0;
    border-top: 0;
}
.public-ryder-board {
    min-width: 0;
    border-radius: 13px;
    border: 1px solid #31475a;
    background: #14212d;
    padding: 12px;
    color: #f5f8fc;
}
.public-ryder-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px 15px; margin-bottom: 9px; }
.public-ryder-heading strong { font-size: 13px; font-weight: 900; letter-spacing: .08em; color: #f7fbff; }
.public-ryder-heading span { font-size: 10px; font-weight: 650; color: #c0d1df; }
.public-ryder-scroll { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.public-ryder-board .tv-ryder-table { width: 100%; min-width: 840px; border-collapse: collapse; table-layout: fixed; font-size: 12px; text-align: center; color: #f2f7fc; }
.public-ryder-board .tv-ryder-table tr > :is(th,td) {
    background: #1f3040;
    border: 1px solid #405368;
    color: #f1f6fc;
    padding: 8px 3px;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.public-ryder-board .tv-ryder-table thead tr:first-child th { background: #263b4e; color: #fff; font-weight: 900; }
.public-ryder-board .tv-ryder-table .tv-ryder-course-row > :is(td,th) { background: #243647; color: #c8d8e8; font-weight: 650; }
.public-ryder-board .tv-ryder-table tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 165px;
    min-width: 165px;
    max-width: 165px;
    background: #162533 !important;
    text-align: left;
    padding-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 900;
}
.public-ryder-board .tv-ryder-table thead tr:first-child > :first-child { z-index: 3; }
.public-ryder-board .tv-ryder-table .tv-ryder-player > th { color: var(--ryder-side-color, #f2f8ff); }
.public-ryder-board .tv-ryder-table .tv-ryder-player > td { color: #ffffff; font-weight: 800; background: #213445; }
.public-ryder-board .tv-ryder-table .tv-ryder-player > td > span { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 28px; color: #ffffff; }
.public-ryder-board .tv-ryder-table .tv-ryder-player > td.is-hole-winner > span {
    border-radius: 50%;
    background: var(--ryder-side-color, #2474b2);
    color: #ffffff;
    box-shadow: 0 0 0 2px #50667b;
}
.public-ryder-swipe-hint { color: #c0d1df; font-size: 11px; text-align: left; padding: 7px 0 1px; display: none; }
@media (max-width: 1100px) {
    .public-ryder-board .tv-ryder-table { width: max-content; min-width: 1020px; }
    .public-ryder-swipe-hint { display: block; }
}
@media (max-width: 600px) {
    .public-match-scorecard-content { padding: 0 6px 8px; }
    .public-ryder-board { padding: 9px 6px; }
    .public-ryder-board .tv-ryder-table { font-size: 11px; }
    .public-ryder-board .tv-ryder-table tr > :first-child { width: 130px; min-width: 130px; max-width: 130px; padding-left: 5px; }
    .public-ryder-board .tv-ryder-table tr > :is(th,td) { padding: 7px 2px; }
    .public-match-scorecard > summary { width: fit-content; }
}

/* Acciones iconogrÃ¡ficas: misma identidad, sin perder su tamaÃ±o propio. */
html body :is(.gmz-import-close,.gmz-info-button,.mygame-info-button,.mobile-toggle,.nav-logout-button) {
    background: #1aa247 !important;
    color: #fff !important;
    border-color: #12803a !important;
}
html body :is(.gmz-import-close,.gmz-info-button,.mygame-info-button,.mobile-toggle,.nav-logout-button):is(:hover,:focus-visible):not(:disabled) {
    background: #117b34 !important;
    color: #fff !important;
    border-color: #0b6528 !important;
}

/* V13.2.3 â€” Los campos de hÃ¡ndicap ocultos deben respetar hidden,
   incluso cuando .fg-editor-line / .fg-editor-options tienen display:grid !important.
   Prioridad explÃ­cita sobre las reglas antiguas, tambiÃ©n en responsive. */
:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-line[hidden],
:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options[hidden],
:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-options .field[hidden],
:where(html.gmz-page-friend-games) #new-friend-game [data-scramble-size][hidden] {
    display: none !important;
}

/* Si no hay hÃ¡ndicap, los jugadores ocupan dos columnas sin espacio vacÃ­o para HCP. */
:where(html.gmz-page-friend-games) #new-friend-game .friend-player-section.gmz-scratch-mode .fg-player-line {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important;
}
@media (max-width: 600px) {
    :where(html.gmz-page-friend-games) #new-friend-game .friend-player-section.gmz-scratch-mode .fg-player-line {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* V13.2.4 â€” La interfaz de formato separada no debe mostrar los campos
   histÃ³ricos (siguen habilitados para enviar el contrato anterior al servlet).
   En torneos entre amigos Scratch se oculta solo la asignaciÃ³n, no sus datos. */
:where(html.gmz-page-friend-games) #new-friend-game .fg-editor-rules > .field[hidden],
:where(html.gmz-page-friend-games) #new-friend-game [data-fourball-variant-wrap][hidden],
[data-individual-settings] [data-tournament-hcp-only][hidden] {
    display: none !important;
}

/* Colores de barras: texto explÃ­cito y contraste sobre cada pastilla. */
.course-tee-pill{display:inline-flex;align-items:center;justify-content:center;min-width:6.5em;padding:5px 12px;border:1px solid rgba(0,0,0,.18);border-radius:999px;font-size:.75rem;font-weight:800;line-height:1.4;letter-spacing:.025em;background:#edf0f2;color:#263238;white-space:nowrap}
.course-tee-pill--red{background:#b91c1c;color:#fff}
.course-tee-pill--yellow{background:#fde047;color:#302700}
.course-tee-pill--white{background:#fff;color:#25323a;border-color:#aab5bd}
.course-tee-pill--blue{background:#1d4ed8;color:#fff}
.course-tee-pill--black{background:#171717;color:#fff}
.course-tee-pill--green{background:#166534;color:#fff}
.course-tee-pill--gold{background:#d4af37;color:#302600}
.course-tee-pill--orange{background:#fb923c;color:#3b1c00}
.course-tee-pill--pink{background:#f9a8d4;color:#571333}
.course-tee-pill--purple{background:#7e22ce;color:#fff}

/* El texto de la etiqueta y su ayuda forman una sola unidad visual. */
.gmz-help-label-text{display:block;min-width:0}
.gmz-help-label-text>.gmz-info-wrap{display:inline-flex;vertical-align:middle;margin-left:6px}

/* Las celdas compactas de tarjeta no heredan el padding de un formulario ancho. */
html body .gmz-form .course-hole-horizontal input[type="number"]{width:100%;min-width:0;padding:7px 3px;text-align:center;font-size:16px;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}
.course-hole-horizontal input[type="number"]::-webkit-inner-spin-button,
.course-hole-horizontal input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

.login-wait-overlay[hidden]{display:none!important}
.login-wait-overlay{position:fixed;inset:0;z-index:20000;display:flex;align-items:center;justify-content:center;background:rgba(40,46,50,.65);cursor:wait;padding:24px;outline:none}
.login-wait-panel{display:flex;align-items:center;gap:16px;padding:24px 32px;border-radius:16px;background:#fff;color:#063443;box-shadow:0 12px 48px #0003;text-align:center}
.login-wait-clock{display:inline-block;font-size:40px;line-height:1;animation:login-wait-turn 1.6s linear infinite}
@keyframes login-wait-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.login-wait-clock{animation:none}}
/* Voice: no heredar del formulario el tamaÃ±o de los campos de texto. */
.mygame-capture .mygame-voice{border-color:var(--line,#dfe8e1);background:var(--card,#fff)}
.mygame-capture .mygame-voice-actions{align-items:flex-end;gap:8px;margin:12px 0 8px}
.mygame-capture .mygame-voice-actions>label:not(.mygame-voice-auto){flex:0 0 72px}
.mygame-capture .mygame-voice-actions .btn{min-height:44px;margin:0}
.mygame-capture .mygame-voice-actions .mygame-voice-auto{flex:1 0 100%;flex-direction:row;align-items:center;gap:8px;min-height:44px;margin:0;cursor:pointer;font-weight:400;line-height:1.4}
.mygame-capture .mygame-voice-auto input[type="checkbox"]{flex:0 0 18px;width:18px;height:18px;min-width:18px;min-height:18px;max-width:18px;margin:0;padding:0;accent-color:var(--golf,#1f6b2d)}
.mygame-capture .mygame-voice-auto span{min-width:0}
.mygame-capture .mygame-voice>small{display:block;color:var(--muted,#68766e);line-height:1.5}
.mygame-capture .mygame-voice [data-voice-status]:empty,.mygame-capture .mygame-voice [data-voice-list]:empty{display:none}
.mygame-section-nav{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1rem}
.mygame-section-link{display:inline-flex;align-items:center;min-height:2.5rem;padding:.5rem .85rem;border-radius:999px;background:var(--card-bg,#fff);border:1px solid var(--border-color,#d5e1e3);color:inherit;text-decoration:none;font-weight:600}
.mygame-section-link:hover,.mygame-section-link.is-active{background:#064854;color:#fff;border-color:#064854}
.mygame-section-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1rem}
.mygame-section-tile{display:flex;flex-direction:column;gap:.5rem;text-decoration:none;color:inherit;min-height:7rem}
.mygame-round-list{display:grid;gap:.65rem}
.mygame-round-link{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem;text-decoration:none;color:inherit;padding:.85rem}
@media(max-width:640px){.mygame-section-nav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.5rem}.mygame-section-link{white-space:nowrap;flex:none}}

.mygame-ai-review-mismatch{background:#fff3e8}.mygame-ai-card .table-scroll{overflow-x:auto;margin:12px 0}.mygame-ai-card .data-table{width:100%}.mygame-ai-card .mygame-ai-result>.btn{margin:8px 8px 0 0;white-space:normal}

@media (max-width: 760px), (pointer: coarse) {
    :root {
        --gmz-label-size: 16px;
        --gmz-control-height: 48px;
    }
    html body { font-size: 17px; }
    html body :is(.field > label, .btn, button, select, textarea) { font-size: 1rem; }
    html body :is(.btn, button):not(.localized-date-picker) { min-height: 44px; }
    html body input[type="date"]:not(.localized-date-native) {
        min-height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 760px) {
    html { font-size: 112.5%; }
    body.login-page .login-card { box-sizing: border-box; max-width: 100%; }
    .login-card .language-switch-login { display: flex; flex-wrap: wrap; }
    .login-card .language-switch-login a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        font-size: .9rem;
    }
    body .login-card :is(.login-footer, .login-legal-link, .login-forgot-password a,
        .login-heading p, .login-register-box p, .login-tournament-label),
    body .gmz-event-card :is(small, time, .badge),
    body .gmz-scorecard .scorecard-progress small { font-size: .9rem; line-height: 1.4; }
    html body .gmz-form :is(input:not([type]), input[type="email"], input[type="password"],
        input[type="text"], select, textarea),
    body .login-card .login-tournament-select { font-size: 1rem; }
}
