:root {
    --azul-qualita: #1a5fb4;
    --azul-oscuro: #0f3d7a;
    --azul-claro: #4a9eff;
    --verde-qualita: #6bbf2a;
    --verde-oscuro: #4a9418;
    --verde-claro: #9ad94d;
    --fondo: #eef4fb;
    --tarjeta: #ffffff;
    --texto: #1a2b42;
    --texto-suave: #5a6b82;
    --borde: rgba(26, 95, 180, 0.12);
    --sombra: 0 12px 40px rgba(15, 61, 122, 0.12);
    --radio: 18px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--fondo);
    color: var(--texto);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(107, 191, 42, 0.12), transparent 35%),
        radial-gradient(circle at 90% 0%, rgba(26, 95, 180, 0.15), transparent 40%),
        linear-gradient(180deg, #f7fbff 0%, var(--fondo) 100%);
    z-index: -1;
}

a { color: var(--azul-qualita); text-decoration: none; }
a:hover { color: var(--azul-oscuro); }

.container-polla {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.hero {
    background: linear-gradient(145deg, var(--azul-oscuro) 0%, #164f9c 42%, var(--azul-qualita) 68%, var(--verde-qualita) 100%);
    border-radius: calc(var(--radio) + 8px);
    padding: 1.65rem 1.75rem 1.5rem;
    color: #fff;
    box-shadow: 0 18px 48px rgba(15, 61, 122, 0.22);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    left: -60px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
    position: relative;
    z-index: 1;
}

.brand-text {
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 240px;
}

.brand img {
    height: 52px;
    width: auto;
    background: #fff;
    border-radius: 14px;
    padding: 7px 11px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.brand-fallback {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff;
    color: var(--azul-qualita);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.hero h1 {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero p {
    margin: 0.3rem 0 0;
    opacity: 0.92;
    font-size: clamp(0.88rem, 2.5vw, 1rem);
    line-height: 1.35;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.hero-chips {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip-icon {
    opacity: 0.95;
}

.match-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: calc(var(--radio) + 2px);
    padding: 1.15rem 1.25rem 1.25rem;
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 1;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
    text-align: center;
}

.match-team.local,
.match-team.visitante {
    align-items: center;
    text-align: center;
}

.match-team-flag {
    width: 72px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.match-team-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.match-team-flag.sin-bandera {
    display: none;
}

.match-team-name {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    font-weight: 800;
    line-height: 1.25;
    max-width: 100%;
    word-break: break-word;
    hyphens: auto;
}

.match-team-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.72;
}

.match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0 0.25rem;
}

.match-vs {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    opacity: 0.75;
}

.score-display {
    min-width: 108px;
    text-align: center;
    font-size: clamp(1.55rem, 4.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.97);
    color: var(--azul-oscuro);
    border-radius: 16px;
    padding: 0.45rem 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 0 0 3px var(--verde-qualita);
    line-height: 1.1;
    white-space: nowrap;
}

.score-display.final {
    background: linear-gradient(180deg, #fff 0%, #f0ffe6 100%);
}

.match-fecha {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.92rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.match-fecha-icon {
    font-size: 1rem;
    line-height: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin: 1.25rem 0 1.5rem;
}

.stat-card {
    background: var(--tarjeta);
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 1rem 1.1rem;
    box-shadow: 0 4px 18px rgba(15, 61, 122, 0.06);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.stat-card-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 95, 180, 0.1), rgba(107, 191, 42, 0.12));
    font-size: 1.15rem;
}

.stat-card-body {
    min-width: 0;
}

.stat-card-premio {
    background: linear-gradient(180deg, #ffffff 0%, #f7fcf2 100%);
    border-color: rgba(107, 191, 42, 0.22);
}

.stat-card-premio .stat-card-icon {
    background: linear-gradient(135deg, rgba(107, 191, 42, 0.18), rgba(107, 191, 42, 0.08));
}

.stat-card .label {
    color: var(--texto-suave);
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    line-height: 1.25;
}

.stat-card .value {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 800;
    color: var(--azul-oscuro);
    line-height: 1.15;
}

.stat-card .value.green { color: var(--verde-oscuro); }

/* Legacy team-name (admin u otros) */
.team-name {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    text-align: center;
}

.team-name.local { text-align: right; }
.team-name.visitante { text-align: left; }

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.section-title h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--azul-oscuro);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.card-polla {
    background: var(--tarjeta);
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 1.25rem;
    box-shadow: 0 6px 20px rgba(15, 61, 122, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.card-polla:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 61, 122, 0.12);
}

.card-polla.winner {
    border: 2px solid var(--verde-qualita);
    background: linear-gradient(180deg, #ffffff 0%, #f4ffe8 100%);
}

.card-polla.winner::before {
    content: '🏆 Ganador';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--verde-qualita);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.card-polla.pending {
    border-style: dashed;
    opacity: 0.85;
}

.person-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--azul-oscuro);
}

.mini-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--azul-qualita);
}

.mini-score span.sep {
    color: var(--verde-qualita);
    font-size: 1.5rem;
}

.pending-text {
    text-align: center;
    color: var(--texto-suave);
    font-style: italic;
    padding: 0.75rem 0;
}

.panel {
    background: var(--tarjeta);
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 1.5rem;
    box-shadow: var(--sombra);
    margin-top: 1.5rem;
}

.panel h3 {
    margin: 0 0 1rem;
    color: var(--azul-oscuro);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: end;
}

label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--texto-suave);
    margin-bottom: 0.4rem;
}

select, input[type="number"], input[type="text"], input[type="password"], textarea {
    width: 100%;
    border: 1px solid #cfd9e8;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    background: #fbfdff;
    color: var(--texto);
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: var(--azul-claro);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

.score-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.score-input-group input {
    width: 70px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0.65rem 0.35rem;
}

/* ===== Formulario de registro público ===== */
.panel-registro {
    padding: 1.35rem 1.5rem 1.5rem;
    border: 1px solid rgba(26, 95, 180, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.panel-registro-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.panel-registro-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(26, 95, 180, 0.12), rgba(107, 191, 42, 0.15));
    font-size: 1.35rem;
}

.panel-registro-header h3 {
    margin: 0 0 0.35rem;
    color: var(--azul-oscuro);
    font-size: 1.2rem;
}

.panel-registro-header p {
    margin: 0;
    color: var(--texto-suave);
    font-size: 0.94rem;
    line-height: 1.45;
}

.form-registro {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.form-registro-campo select {
    font-size: 1rem;
    font-weight: 600;
}

.form-registro-marcador {
    background: linear-gradient(180deg, #f3f8ff 0%, #eef6ef 100%);
    border: 1px solid rgba(26, 95, 180, 0.12);
    border-radius: 16px;
    padding: 1rem 1rem 1.15rem;
}

.form-registro-marcador-label {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--texto-suave);
    margin-bottom: 0.85rem;
}

.score-board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.65rem 0.5rem;
}

.score-board-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.score-board-team-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--azul-oscuro);
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    word-break: break-word;
}

.score-board-team.local .score-board-team-name {
    color: var(--azul-qualita);
}

.score-board-team.visitante .score-board-team-name {
    color: var(--verde-oscuro);
}

.score-board-sep {
    align-self: center;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--verde-qualita);
    line-height: 1;
    padding-top: 1.4rem;
}

.score-board .score-input-group input {
    width: 64px;
    min-height: 52px;
    border-radius: 14px;
    border: 2px solid rgba(26, 95, 180, 0.15);
    background: #fff;
    font-size: 1.55rem;
}

.score-board .btn-score {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(26, 95, 180, 0.22);
    touch-action: manipulation;
}

.score-board input[type="number"]::-webkit-outer-spin-button,
.score-board input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.score-board input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.btn-registro-submit {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
    border-radius: 14px;
}

.alert-pendientes {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0;
}

.alert-pendientes-titulo {
    font-weight: 800;
    color: var(--azul-oscuro);
}

.alert-pendientes-lista {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--texto-suave);
}

.btn-score {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--azul-claro), var(--azul-qualita));
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
}

.btn-score:active { transform: scale(0.96); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--azul-qualita), var(--verde-qualita));
    color: #fff;
    box-shadow: 0 8px 20px rgba(26, 95, 180, 0.25);
}

.btn-secondary {
    background: #eef3fa;
    color: var(--azul-oscuro);
    border: 1px solid var(--borde);
}

.btn-ghost-light {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}

.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert {
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.alert-info {
    background: #e8f2ff;
    border: 1px solid #bfd9ff;
    color: #1e4a80;
}

.alert-success {
    background: #ebf9df;
    border: 1px solid #bde59a;
    color: #356a12;
}

.alert-warning {
    background: #fff7df;
    border: 1px solid #f5df9a;
    color: #8a6510;
}

.winners-box {
    background: linear-gradient(135deg, #1a5fb4 0%, #6bbf2a 100%);
    color: #fff;
    border-radius: calc(var(--radio) + 4px);
    padding: 1.75rem;
    margin-top: 1.5rem;
    box-shadow: var(--sombra);
}

.winners-box h2 {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
}

.winner-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.footer-links {
    text-align: center;
    margin-top: 2rem;
    color: var(--texto-suave);
    font-size: 0.9rem;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--azul-oscuro);
    color: #fff;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    box-shadow: var(--sombra);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s ease;
    z-index: 1000;
    max-width: 320px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.hidden { display: none !important; }

.admin-pronosticos-wrap {
    overflow-x: auto;
    border: 1px solid var(--borde);
    border-radius: 14px;
    background: #fafcff;
}

.admin-pronosticos-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.admin-pronosticos-table th,
.admin-pronosticos-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--borde);
    vertical-align: middle;
}

.admin-pronosticos-table th {
    text-align: left;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--texto-suave);
    background: rgba(26, 95, 180, 0.05);
}

.admin-pronosticos-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-pron-nombre {
    font-weight: 700;
    min-width: 140px;
}

.admin-pron-sep {
    width: 1rem;
    text-align: center;
    font-weight: 800;
    color: var(--verde-qualita);
}

.admin-pronosticos-table input[type="number"] {
    width: 72px;
    padding: 0.55rem 0.45rem;
    border: 1px solid var(--borde);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.chip-sm {
    font-size: 0.78rem;
    padding: 0.25rem 0.55rem;
}

.chip-ok {
    background: rgba(107, 191, 42, 0.15);
    color: var(--verde-oscuro);
}

.chip-pending {
    background: rgba(26, 95, 180, 0.08);
    color: var(--texto-suave);
}

.modo-registro-opciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.modo-registro-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border: 2px solid var(--borde);
    border-radius: 14px;
    background: #fafcff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modo-registro-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.modo-registro-card.activo {
    border-color: var(--verde-qualita);
    box-shadow: 0 0 0 3px rgba(107, 191, 42, 0.15);
    background: #f7fcf2;
}

.modo-registro-titulo {
    font-weight: 800;
    color: var(--azul-oscuro);
}

.modo-registro-desc {
    font-size: 0.92rem;
    color: var(--texto-suave);
    line-height: 1.45;
}

@media (max-width: 720px) {
    .container-polla {
        width: min(1100px, 94vw);
        padding: 1rem 0 2.5rem;
    }

    .hero {
        padding: 1.15rem 1rem 1.1rem;
        border-radius: 20px;
    }

    .hero-top {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        margin-bottom: 1rem;
    }

    .brand {
        flex: none;
    }

    .brand img,
    .brand-fallback {
        height: 46px;
        width: 46px;
    }

    .hero-chips {
        justify-content: flex-start;
        width: 100%;
    }

    .chip {
        font-size: 0.78rem;
        padding: 0.38rem 0.65rem;
        white-space: normal;
    }

    .match-banner {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0.5rem 0.65rem;
        padding: 1rem 0.75rem;
    }

    .match-team.local,
    .match-team.visitante {
        align-items: center;
        text-align: center;
    }

    .match-team-flag {
        width: 58px;
        height: 40px;
    }

    .match-team-name {
        font-size: 0.88rem;
        max-width: none;
        line-height: 1.2;
    }

    .match-team-label {
        font-size: 0.58rem;
    }

    .match-center {
        min-width: 0;
        padding: 0 0.15rem;
    }

    .match-vs {
        font-size: 0.62rem;
    }

    .score-display {
        min-width: 82px;
        font-size: 1.35rem;
        padding: 0.35rem 0.5rem;
        border-radius: 14px;
    }

    .match-fecha {
        margin-top: 0.75rem;
        font-size: 0.85rem;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        margin: 1rem 0 1.25rem;
    }

    .stat-card {
        padding: 0.85rem 0.95rem;
    }

    .stat-card-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .stat-card .value {
        font-size: 1.2rem;
    }

    .section-title {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .section-title h2 {
        font-size: 1.15rem;
    }

    .grid-cards {
        grid-template-columns: 1fr;
    }

    .team-name.local, .team-name.visitante { text-align: center; }

    .panel-registro {
        padding: 1.1rem 1rem 1.15rem;
    }

    .panel-registro-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .panel-registro-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .panel-registro-header h3 {
        font-size: 1.1rem;
    }

    .panel-registro-header p {
        font-size: 0.9rem;
    }

    .form-registro-marcador {
        padding: 0.9rem 0.75rem 1rem;
        border-radius: 14px;
    }

    .score-board {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        justify-items: center;
    }

    .score-board-sep {
        padding: 0;
        font-size: 1.5rem;
        order: 2;
    }

    .score-board-team.local {
        order: 1;
        width: 100%;
    }

    .score-board-team.visitante {
        order: 3;
        width: 100%;
    }

    .score-board-team {
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(26, 95, 180, 0.1);
        border-radius: 14px;
        padding: 0.75rem 0.65rem;
    }

    .score-board-team-name {
        font-size: 0.95rem;
    }

    .score-board .score-input-group {
        width: 100%;
        max-width: 220px;
    }

    .score-board .score-input-group input {
        flex: 1;
        width: auto;
        max-width: 88px;
        min-height: 56px;
        font-size: 1.75rem;
    }

    .score-board .btn-score {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .btn-registro-submit {
        min-height: 54px;
    }

    .alert-pendientes-lista {
        font-size: 0.86rem;
    }
}

@media (max-width: 400px) {
    .match-banner {
        gap: 0.4rem 0.45rem;
        padding: 0.9rem 0.55rem;
    }

    .match-team-name {
        font-size: 0.8rem;
    }

    .match-team-flag {
        width: 50px;
        height: 34px;
    }

    .score-display {
        min-width: 72px;
        font-size: 1.2rem;
    }

    .hero-chips .chip:nth-child(2) {
        flex: 1 1 auto;
    }

    .score-board .score-input-group {
        max-width: 100%;
    }
}
