.stats-v2 {
    position: relative;
    padding: 8px 0 40px;
    overflow: visible;
    width: 100%;
}

.stats-v2 .sv2-ambient- {
    position: absolute;
    inset: -80px -40px auto;
    height: 420px;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 60% at 12% 20%, color-mix(in srgb, var(--first-color) 28%, transparent), transparent 70%),
        radial-gradient(ellipse 45% 55% at 88% 8%, color-mix(in srgb, var(--second-color) 24%, transparent), transparent 72%),
        radial-gradient(ellipse 35% 50% at 50% 0%, color-mix(in srgb, var(--third-color) 16%, transparent), transparent 70%);
    filter: blur(8px);
    opacity: 0.9;
    z-index: 0;
}

.stats-v2 > .row {
    position: relative;
    z-index: 1;
}

.stats-v2 .sv2-section {
    position: relative;
    margin: 0 auto 28px;
    padding: 28px 28px 32px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 18px 50px -28px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: visible;
}

.stats-v2 .sv2-section-from_app .sv2-kpi-grid { width:300px; margin:auto; }
.stats-v2 .sv2-section-from_app .sv2-kpi { background:none; box-shadow: none; border: none;  }

.stats-v2 .sv2-title {
    margin: 0 0 8px;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #111827;
    text-align: center;
}

.stats-v2 .sv2-lead {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.stats-v2 .sv2-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.25rem;
    color: #fff;
    background: var(--second-color);
    box-shadow: 0 10px 24px -12px var(--second-color);
}

.stats-v2 .sv2-tone-1 .sv2-ico,
.stats-v2 .sv2-kpi.sv2-tone-1 .sv2-kpi-orb,
.stats-v2 .sv2-dot.sv2-tone-1 {
    background: var(--first-color);
    box-shadow: 0 10px 24px -12px var(--first-color);
}

.stats-v2 .sv2-tone-2 .sv2-ico,
.stats-v2 .sv2-kpi.sv2-tone-2 .sv2-kpi-orb,
.stats-v2 .sv2-dot.sv2-tone-2 {
    background: var(--second-color);
}

.stats-v2 .sv2-tone-3 .sv2-ico,
.stats-v2 .sv2-kpi.sv2-tone-3 .sv2-kpi-orb {
    background: var(--third-color);
    box-shadow: 0 10px 24px -12px var(--third-color);
}

.stats-v2 .sv2-kpi-grid {
    display: block;
    width: 100%;
}

.stats-v2 .sv2-kpi-grid.is-one .sv2-kpi {
    width: 100%;
}

.stats-v2 .sv2-kpi-grid:not(.is-one) .sv2-kpi {
    float: left;
    width: 48%;
    margin-right: 4%;
}

.stats-v2 .sv2-kpi-grid:not(.is-one) .sv2-kpi:last-child {
    margin-right: 0;
}

.stats-v2 .sv2-kpi-grid:not(.is-one):after {
    content: "";
    display: table;
    clear: both;
}

.stats-v2 .sv2-kpi {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88));
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.45);
}

.stats-v2 .sv2-kpi-orb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.8rem;
    background: var(--first-color);
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--first-color) 14%, transparent);
    animation: sv2-pulse 3.2s ease-in-out infinite;
}

.stats-v2 .sv2-kpi.sv2-tone-2 .sv2-kpi-orb {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--second-color) 14%, transparent);
}

.stats-v2 .sv2-kpi.sv2-tone-3 .sv2-kpi-orb {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--third-color) 14%, transparent);
}

.stats-v2 .sv2-kpi-orb .sv2-ico {
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    color: inherit;
    font-size: inherit;
}

.stats-v2 .sv2-kpi-label {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stats-v2 .sv2-kpi-label:empty {
    display: none;
}

.stats-v2 .sv2-kpi-value {
    display: block;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.stats-v2 .sv2-kpi-pct {
    display: inline-block;
    margin-top: 8px;
    font-size: 1.35rem;
    font-weight: 600;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.stats-v2 .sv2-pair {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    margin-bottom: 28px;
}

.stats-v2 .sv2-pair:before,
.stats-v2 .sv2-pair:after {
    display: none;
}

.stats-v2 .sv2-pair-col {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    float: none;
    min-width: 0;
}

.stats-v2 .sv2-pair .sv2-section {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 100%;
    margin-bottom: 0;
    height: auto;
    overflow: visible;
}

.stats-v2 .sv2-pair .sv2-kpi-grid {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.stats-v2 .sv2-section .sv2-pair {
    margin-bottom: 0;
}

.stats-v2 .sv2-tiles {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 16px;
}

.stats-v2 .sv2-tile {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 180px;
    -ms-flex: 1 1 180px;
    flex: 1 1 180px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 20px 18px 18px;
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(15, 23, 42, 0.06);
    text-align: left;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.stats-v2 .sv2-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -24px rgba(15, 23, 42, 0.45);
}

.stats-v2 .sv2-tile-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.stats-v2 .sv2-tile-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.stats-v2 .sv2-tile-value {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.stats-v2 .sv2-tile-bar {
    height: 8px;
    margin: 14px 0 8px;
    border-radius: 99px;
    background: #e8eef5;
    overflow: hidden;
}

.stats-v2 .sv2-tile-bar span {
    display: block;
    width: var(--sv2-w);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--first-color), var(--second-color));
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-v2.is-animating .sv2-section:not(.sv2-in) .sv2-tile-bar span {
    width: 0;
}

.stats-v2 .sv2-tile-pct {
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
}

.stats-v2 .sv2-split {
    display: grid;
    grid-template-columns: 1fr minmax(90px, 1.2fr) 1fr;
    align-items: center;
    gap: 12px;
}

.stats-v2 .sv2-split-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.stats-v2 .sv2-split-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.stats-v2 .sv2-split-num {
    margin: 4px 0 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.stats-v2 .sv2-split-meta .sv2-ico {
    margin-bottom: 6px;
}

.stats-v2 .sv2-split-track {
    height: 14px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--second-color) 18%, #e8eef5);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.stats-v2 .sv2-split-fill {
    display: block;
    width: var(--sv2-w);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--first-color), var(--second-color));
    box-shadow: 0 0 18px color-mix(in srgb, var(--first-color) 55%, transparent);
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-v2.is-animating .sv2-section:not(.sv2-in) .sv2-split-fill {
    width: 0;
}

.stats-v2 .sv2-ring {
    position: relative;
    width: 124px;
    height: 124px;
    filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--first-color) 25%, transparent));
}

.stats-v2 .sv2-ring.sv2-tone-2 {
    filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--second-color) 25%, transparent));
}

.stats-v2 .sv2-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.stats-v2 .sv2-ring-track,
.stats-v2 .sv2-ring-value {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.stats-v2 .sv2-ring-track {
    stroke: #e8eef5;
}

.stats-v2 .sv2-ring-value {
    stroke: var(--first-color);
    stroke-dasharray: var(--sv2-c);
    stroke-dashoffset: var(--sv2-off);
    transition: stroke-dashoffset 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-v2 .sv2-ring.sv2-tone-2 .sv2-ring-value {
    stroke: var(--second-color);
}

.stats-v2.is-animating .sv2-section:not(.sv2-in) .sv2-ring-value {
    stroke-dashoffset: var(--sv2-c);
}

.stats-v2 .sv2-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.stats-v2 .sv2-days {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-height: 240px;
    padding: 8px 4px 0;
    overflow-x: auto;
}

.stats-v2 .sv2-day {
    flex: 1 0 28px;
    min-width: 28px;
    text-align: center;
}

.stats-v2 .sv2-day-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 200px;
}

.stats-v2 .sv2-day-val {
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.stats-v2.is-animating .sv2-section:not(.sv2-in) .sv2-day-val {
    opacity: 0;
    transform: translateY(6px);
}

.stats-v2 .sv2-day-bar {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    max-width: 28px;
    height: var(--sv2-h);
    border-radius: 10px 10px 4px 4px;
    overflow: hidden;
    background: color-mix(in srgb, var(--second-color) 16%, #e8eef5);
    transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-v2.is-animating .sv2-section:not(.sv2-in) .sv2-day-bar {
    height: 0;
}

.stats-v2 .sv2-day-fill,
.stats-v2 .sv2-day-female,
.stats-v2 .sv2-day-male {
    display: block;
    width: 100%;
}

.stats-v2 .sv2-day-fill {
    height: 100%;
    background: linear-gradient(180deg, var(--first-color), var(--second-color));
}

.stats-v2 .sv2-day-female {
    background: var(--second-color);
}

.stats-v2 .sv2-day-male {
    background: var(--third-color);
}

.stats-v2 .sv2-day.is-peak .sv2-day-bar {
    box-shadow: 0 0 24px color-mix(in srgb, var(--first-color) 55%, transparent);
}

.stats-v2 .sv2-day-label {
    margin: 8px 0 0;
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
}

.stats-v2 .sv2-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.stats-v2 .sv2-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
}

.stats-v2 .sv2-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.stats-v2 .sv2-timeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 8px 8px 0;
}

.stats-v2 .sv2-timeline-item {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(15, 23, 42, 0.06);
    text-align: center;
}

.stats-v2 .sv2-timeline-line {
    width: 64px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--first-color), var(--second-color));
    box-shadow: 0 0 16px color-mix(in srgb, var(--first-color) 40%, transparent);
}

.stats-v2 .sv2-timeline-label {
    margin: 10px 0 4px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stats-v2 .sv2-timeline-date {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.stats-v2 .sv2-ages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-v2 .sv2-age-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 600;
}

.stats-v2 .sv2-age-label {
    color: #334155;
}

.stats-v2 .sv2-age-pct {
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.stats-v2 .sv2-age-track {
    display: flex;
    height: 14px;
    border-radius: 99px;
    background: #e8eef5;
    overflow: hidden;
}

.stats-v2 .sv2-age-fill {
    display: block;
    width: var(--sv2-w);
    height: 100%;
    transition: width 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-v2 .sv2-age-fill.sv2-tone-1 {
    background: var(--second-color);
}

.stats-v2 .sv2-age-fill.sv2-tone-2 {
    background: var(--third-color);
}

.stats-v2.is-animating .sv2-section:not(.sv2-in) .sv2-age-fill {
    width: 0;
}

.stats-v2 .sv2-ranks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-v2 .sv2-rank-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-weight: 600;
}

.stats-v2 .sv2-rank-name {
    color: #334155;
}

.stats-v2 .sv2-rank-hint {
    display: inline-block;
    margin-left: 8px;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.85rem;
}

.stats-v2 .sv2-rank-value {
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stats-v2 .sv2-rank-track {
    height: 12px;
    border-radius: 99px;
    background: #e8eef5;
    overflow: hidden;
}

.stats-v2 .sv2-rank-fill {
    display: block;
    width: var(--sv2-w);
    height: 100%;
    border-radius: inherit;
    transition: width 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-v2.is-animating .sv2-section:not(.sv2-in) .sv2-rank-fill {
    width: 0;
}

.stats-v2 .race-wrapper {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
}

.stats-v2 .race-chart-wrapper {
    background: transparent;
    padding: 10px 0 0;
}

.stats-v2 #show-other-voting-stats-quarters {
    margin: 6px 0 4px;
}

@keyframes sv2-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 991px) {
    .stats-v2 .sv2-split,
    .stats-v2 .sv2-timeline {
        grid-template-columns: 1fr;
    }

    .stats-v2 .sv2-split-track {
        order: 3;
        margin: 4px 18px 0;
    }

    .stats-v2 .sv2-timeline-line {
        width: 4px;
        height: 36px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .stats-v2 .sv2-section {
        padding: 22px 16px 24px;
        border-radius: 22px;
    }

    .stats-v2 .sv2-pair-col {
        width: 100%;
    }

    .stats-v2 .sv2-kpi-grid,
    .stats-v2 .sv2-tiles {
        display: block;
    }

    .stats-v2 .sv2-tile {
        margin-bottom: 12px;
    }

    .stats-v2 .sv2-kpi {
        padding: 16px;
    }

    .stats-v2 .sv2-kpi-orb {
        width: 58px;
        height: 58px;
        font-size: 1.4rem;
    }

    .stats-v2 .sv2-ring {
        width: 100px;
        height: 100px;
    }

    .stats-v2 .sv2-day {
        flex-basis: 22px;
        min-width: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stats-v2 .sv2-section,
    .stats-v2 .sv2-tile,
    .stats-v2 .sv2-tile-bar span,
    .stats-v2 .sv2-split-fill,
    .stats-v2 .sv2-ring-value,
    .stats-v2 .sv2-day-bar,
    .stats-v2 .sv2-age-fill,
    .stats-v2 .sv2-rank-fill,
    .stats-v2 .sv2-kpi-orb {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .stats-v2 .sv2-tile-bar span,
    .stats-v2 .sv2-split-fill,
    .stats-v2 .sv2-age-fill,
    .stats-v2 .sv2-rank-fill {
        width: var(--sv2-w) !important;
    }

    .stats-v2 .sv2-ring-value {
        stroke-dashoffset: var(--sv2-off) !important;
    }

    .stats-v2 .sv2-day-bar {
        height: var(--sv2-h) !important;
    }
}
