:root {
    --local-color: #00c38e;   /* Verde esmeralda */
    --visitor-color: #fdb913; /* Amarillo/Naranja */
    --bg-track: #f0f2f5;
    --text-main: #1a1a1a;
    --text-label: #64748b;
}

.stats-container {
    max-width: 550px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.stat-row {
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInRow 0.5s ease-out forwards;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-label);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    width: 50px;
    color: #334155;
}

.stat-value.left { text-align: left; }
.stat-value.right { text-align: right; }

/* Resaltado del ganador */
.is-winner-local { color: var(--local-color) !important; }
.is-winner-visitor { color: var(--visitor-color) !important; }

/* Barra de progreso */
.stat-bar-bg {
    height: 10px;
    background: var(--bg-track);
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    width: 0; 
    transition: width 1s cubic-bezier(0.1, 0.5, 0.5, 1);
}

.bar-fill.local {
    background: var(--local-color);
    border-right: 1.5px solid #fff;
}

.bar-fill.visitor {
    background: var(--visitor-color);
}

/* Animaciones */
@keyframes fadeInRow {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Retraso de animación para efecto cascada (hasta 15 elementos) */
.stat-row:nth-child(1) { animation-delay: 0.05s; }
.stat-row:nth-child(2) { animation-delay: 0.10s; }
.stat-row:nth-child(3) { animation-delay: 0.15s; }
.stat-row:nth-child(4) { animation-delay: 0.20s; }
.stat-row:nth-child(5) { animation-delay: 0.25s; }
.stat-row:nth-child(6) { animation-delay: 0.30s; }
.stat-row:nth-child(7) { animation-delay: 0.35s; }
.stat-row:nth-child(8) { animation-delay: 0.40s; }
.stat-row:nth-child(9) { animation-delay: 0.45s; }
.stat-row:nth-child(10) { animation-delay: 0.50s; }
.stat-row:nth-child(11) { animation-delay: 0.55s; }
.stat-row:nth-child(12) { animation-delay: 0.60s; }