/*!
 * Utilities
 */

.community-stats {
    display: grid;
    gap: 10px;
}

.community-stat {
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 16px;
}

.community-stat__icon {
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9px;
    color: #a8332f;
    display: flex;
    flex: 0 0 auto;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.community-stat__icon svg {
    height: 20px;
    width: 20px;
}

.community-stat.is-live .community-stat__icon {
    background: rgba(46, 204, 113, 0.14);
    color: #239c58;
}

.community-stat__value {
    flex: 1 1 auto;
    align-items: center;
    display: flex;
    font-size: 26px;
    font-weight: 700;
    gap: 8px;
    line-height: 1.1;
}

.community-stat__label {
    font-size: 13px;
    opacity: 0.75;
    text-align: right;
}

/* Only rendered when the count is above zero. */
.community-stat__pulse {
    animation: community-pulse 2s ease-in-out infinite;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    height: 9px;
    width: 9px;
}

@keyframes community-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55); }
    50%      { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
}

.community-note {
    font-size: 11.5px;
    margin-top: 12px;
    opacity: 0.6;
}

/* ---------- Scroll reveal ----------
   Starting state is set by script, so nothing is stuck hidden without JS. */
[data-reveal].reveal-armed {
    opacity: 0;
    transform: translateY(18px);
}

[data-reveal].reveal-armed.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal].reveal-armed,
    [data-reveal].reveal-armed.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

:root {
    --site-shell: 1140px;
    --site-shell-nav: 1280px;
}

@media (min-width: 1400px) {
    html {
        scrollbar-gutter: stable;
    }

    .site-canvas {
        margin: 0 auto;
        width: var(--site-canvas-width);
        zoom: var(--canvas-zoom, 1);
    }

    :root {
        --site-canvas-width: 1920px;
        --site-shell: 1300px;
        --site-shell-nav: 1200px;
    }
}


@media (min-width: 1200px) {
    .container {
        max-width: var(--site-shell);
    }
}

.factions-container {
    max-width: var(--site-shell);
}

#homepage-header .homepage-nav-shell {
    max-width: var(--site-shell-nav);
}
