:root {
    --bg: #0c1018;
    --panel: rgba(16, 23, 36, 0.86);
    --text: #eef3ff;
    --muted: #9aa7bb;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #ff5f45;
    --accent-2: #5fd6ff;
    --added: #7df3bd;
    --changed: #7cd9ff;
    --fixed: #ff9a7a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(95, 214, 255, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 95, 69, 0.18), transparent 32%),
        linear-gradient(180deg, #0b1018 0%, #121b2a 100%);
}

.changelog-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.hero-card,
.message-card,
.entry-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.hero-card {
    padding: 28px;
}

.support-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
}

.brand-red {
    color: #ff4c4c;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 176, 79, 0.28);
    background: rgba(255, 176, 79, 0.1);
    color: #ffd28f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 0.95;
}

.lead {
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 70ch;
}

.project-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.project-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.project-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(95, 214, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
}

.project-pill.is-active {
    border-color: rgba(95, 214, 255, 0.26);
    background: rgba(95, 214, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.project-pill-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.message-card {
    margin-top: 20px;
    padding: 18px 20px;
    color: var(--muted);
}

.message-card-error {
    border-color: rgba(255, 95, 69, 0.32);
    background: rgba(255, 95, 69, 0.12);
    color: #ffc3b6;
}

.empty-card {
    text-align: center;
}

.entries-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.entry-card {
    padding: 24px;
    transform: translateY(0);
    opacity: 1;
    animation: entry-rise 0.48s ease forwards;
    animation-delay: var(--entry-delay, 0ms);
}

.entry-card.is-pinned {
    border-color: rgba(255, 203, 102, 0.28);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 203, 102, 0.14);
}

.entry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.entry-kicker {
    margin-bottom: 8px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.entry-head h2 {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.entry-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.entry-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.entry-badge-indev {
    color: #ffd0ee;
    border-color: rgba(255, 95, 180, 0.26);
    background: rgba(255, 95, 180, 0.14);
}

.entry-badge-pinned {
    color: #ffe0a2;
    border-color: rgba(255, 188, 92, 0.3);
    background: rgba(255, 188, 92, 0.12);
}

.change-block + .change-block {
    margin-top: 14px;
}

.change-block {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.change-block h3 {
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.change-block-added h3 {
    color: var(--added);
}

.change-block-changed h3 {
    color: var(--changed);
}

.change-block-fixed h3 {
    color: var(--fixed);
}

.change-block ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text);
    line-height: 1.7;
}

.change-block li + li {
    margin-top: 6px;
}

body.changelog-loading .project-pill {
    pointer-events: none;
    opacity: 0.7;
}

@keyframes entry-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

@media (max-width: 900px) {
    .hero-card,
    .entry-card,
    .message-card {
        padding: 20px;
    }

    .entry-head,
    .support-card-top {
        flex-direction: column;
    }

    .entry-badges {
        justify-content: flex-start;
    }

    .entry-head h2 {
        font-size: 24px;
    }
}
