.birthmap-page {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Hero ── */

.birthmap-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.birthmap-hero-left h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text-primary);
}

.birthmap-hero-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    max-width: 420px;
}

.birthmap-hero-counters {
    display: flex;
    gap: 28px;
    align-items: center;
}

.birthmap-big-counter,
.birthmap-small-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.birthmap-big-num {
    font-family: 'Space Mono', monospace;
    font-size: 36px;
    font-weight: 700;
    color: var(--emerald-light);
    line-height: 1;
}

.birthmap-big-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: center;
}

.birthmap-small-num {
    font-family: 'Space Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.birthmap-small-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Map ── */

.birthmap-map {
    position: relative;
    margin-bottom: 20px;
    padding: 16px;
    overflow: hidden;
}

.birthmap-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.birthmap-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, .1);
    border-top-color: var(--emerald);
    border-radius: 50%;
    animation: bmspin .8s linear infinite;
}

@keyframes bmspin {
    to { transform: rotate(360deg); }
}

#map-container {
    width: 100%;
    line-height: 0;
}

#map-container svg {
    width: 100%;
    height: auto;
    display: block;
}

.country {
    fill: rgba(255, 255, 255, .06);
    stroke: rgba(255, 255, 255, .12);
    stroke-width: .5;
    transition: fill 1.2s ease-out;
    cursor: pointer;
}

.country:hover {
    fill: rgba(255, 255, 255, .16);
    transition: fill .15s;
}

.country.flash {
    fill: rgba(52, 211, 153, .65);
    transition: fill 0s;
}

.birth-ping {
    fill: none;
    stroke: rgba(52, 211, 153, .7);
    stroke-width: 1.5;
    pointer-events: none;
}

/* ── Last birth banner ── */

.birthmap-last {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 13px;
    color: var(--emerald-light);
    font-weight: 600;
    opacity: 0;
    transition: opacity .25s;
    z-index: 2;
    pointer-events: none;
}

.birthmap-last.visible {
    opacity: 1;
}

/* ── Tooltip ── */

.birthmap-tooltip {
    position: fixed;
    padding: 6px 12px;
    background: rgba(0, 0, 0, .85);
    color: #fff;
    font-size: 12px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 100;
    white-space: nowrap;
}

.birthmap-tooltip.visible {
    opacity: 1;
}

/* ── Stats table ── */

.birthmap-stats {
    margin-bottom: 20px;
}

.birthmap-stats-header {
    margin-bottom: 14px;
}

.birthmap-stats-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.birthmap-table-wrap {
    max-height: 400px;
    overflow-y: auto;
}

.birthmap-table {
    width: 100%;
    border-collapse: collapse;
}

.birthmap-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    padding: 8px 12px;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
}

.birthmap-table td {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, .03);
}

.birthmap-table tr:hover td {
    background: rgba(255, 255, 255, .03);
}

.birthmap-table td:first-child {
    color: var(--text-muted);
    width: 40px;
}

.birthmap-table td:last-child {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    color: var(--emerald-light);
    text-align: right;
    width: 100px;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .birthmap-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .birthmap-hero-counters {
        width: 100%;
        justify-content: space-around;
    }

    .birthmap-big-num {
        font-size: 28px;
    }

    .birthmap-small-num {
        font-size: 18px;
    }

    .birthmap-map {
        padding: 10px;
    }

    .birthmap-table-wrap {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .birthmap-hero-left h2 {
        font-size: 18px;
    }

    .birthmap-big-num {
        font-size: 24px;
    }
}
