
:root {
    --background-color: #111;
    --background-accent-color: #333;
    --accent-color: #B72714;
    --secondary-color: #e00000;
    --text-color: #eee;
    --text-color-muted: #999;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background:
    radial-gradient(circle at top left,
        var(--accent-color) 0%,
        var(--secondary-color) 20%,
        transparent 40%
    ),
    linear-gradient(var(--background-color), var(--background-accent-color));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    gap: 20px;
}

* {
    box-sizing: border-box;
    font-family: "Asap", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    margin: 0;
    padding: 0;
}

@keyframes hero-reveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Headers */
header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid #888;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-color);
    position: fixed;
    padding: 10px 20px;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    z-index: 10;
}

header img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
}

.brand-link {
    text-decoration: none;
    color: inherit;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    min-width: 0;
}

.brand h2 {
    font-size: 1.5em;
    color: var(--primary-color);
    font-weight: 700;
}

.links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
}

.links a {
    color: var(--primary-color);
    transition: color 0.3s ease;
    text-align: center;
}

@media (max-width: 700px) {
    header {
        flex-direction: column;
        justify-content: center;
    }

    .brand,
    .links {
        width: 100%;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem !important;
    }
}

.links a:hover {
    color: var(--accent-color);
}

.active-alerts-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 90px 10px 0;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--background-accent-color);
    border: 1px solid #888;
    color: var(--text-color);
    width: calc(100% - 20px);
}

.active-alerts-label-wrap,
.active-alerts-ticker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.active-alerts-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.active-alerts-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2em;
    padding: 0.25em 0.6em;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
}

.active-alerts-ticker-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.active-alerts-ticker {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    width: calc(100% - 20px);
}

@media (prefers-reduced-motion: no-preference) {
    .hero {
        animation: hero-reveal 700ms ease-out both;
        will-change: opacity, transform;
    }

    .hero > * {
        opacity: 0;
        transform: translateY(18px);
        animation: hero-reveal 700ms ease-out both;
    }

    .hero > *:nth-child(1) {
        animation-delay: 90ms;
    }

    .hero > *:nth-child(2) {
        animation-delay: 180ms;
    }

    .hero > *:nth-child(3) {
        animation-delay: 270ms;
    }

    .hero > *:nth-child(4) {
        animation-delay: 360ms;
    }

    @supports (animation-timeline: view()) {
        .hero,
        .hero > * {
            animation-timeline: view();
            animation-range: entry 0% cover 28%;
        }
    }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bolder;
    width: 100%;
    text-align: left;
}

.hero h1 b {
    font-weight: bolder;
}

.card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid #888;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 25px;
}

@media (max-width: 700px) {
    .active-alerts-banner {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 165px !important;
        padding: 10px 14px;
    }

    .active-alerts-label-wrap,
    .active-alerts-ticker-wrap {
        justify-content: space-between;
    }

    .active-alerts-ticker {
        white-space: normal;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }
}

.socials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 1.8vw, 20px);
    margin-top: 20px;
    width: min(100%, 860px);
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1vw, 10px);
    padding: clamp(10px, 2.2vw, 30px) clamp(8px, 1.9vw, 22px);
    border-radius: 10px;
    background-color: transparent;
    border: 1px solid #888;
    color: var(--text-color);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
}

.social-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.social-card i {
    font-size: clamp(1.35rem, 3vw, 2.5rem);
    color: var(--accent-color);
}

.social-card h3 {
    font-size: clamp(0.85rem, 1.7vw, 1.2rem);
    font-weight: 700;
    text-align: center;
}

.social-card p {
    font-size: clamp(0.7rem, 1.4vw, 1rem);
    color: var(--text-color-muted);
    text-align: center;
    overflow-wrap: anywhere;
}

footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

.changelog-item {
    width: calc(100% - 20px);
    color: var(--text-color);
    display: block;
    margin-bottom: 20px;
}

.changelog-item h2 {
    font-size: 1.5rem;
    font-weight: bolder;
    margin-bottom: 6px;
}

.changelog-item ul {
    margin-top: 10px;
    padding-left: 20px;
}

.changelog-item li {
    margin-bottom: 6px;
}