/* ==========================================================================
   Court of Attrition - Stylesheet
   Aesthetic: Courtroom drama meets editorial poster design
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@300;400;500;600;700&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    /* Colors derived from CoA logo palette */
    --navy-deep: #0d1b3d;
    --navy-mid: #142755;
    --navy-light: #1e3a6f;
    --blue-jester: #6b8cc7;
    --blue-bright: #4a6fa5;
    --cream: #ede4b8;
    --cream-light: #f5edc4;
    --gavel-brown: #6b4a2b;
    --gavel-dark: #3d2817;
    --gold: #c9a85a;
    --gold-bright: #e0bd6a;
    --red-objection: #d63838;
    --red-deep: #8b1f1f;
    --green-archive: #5fa86b;
    --green-deep: #2e5f3a;

    /* UI tokens */
    --bg-overlay: rgba(13, 27, 61, 0.78);
    --bg-overlay-deep: rgba(13, 27, 61, 0.92);
    --card-bg: rgba(20, 39, 85, 0.85);
    --card-border: rgba(201, 168, 90, 0.35);
    --text-primary: #f5edc4;
    --text-secondary: #c9bb8a;
    --text-muted: #8a8569;

    /* Type scale */
    --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
    --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Crimson Pro', Georgia, serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;

    /* Layout */
    --header-height: 72px;
    --max-width: 1400px;
    --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-text: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--navy-deep);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold-bright);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cream-light);
}

/* ---------- Stage / Page Backdrop ---------- */
.stage {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 27, 61, 0.65) 0%,
        rgba(13, 27, 61, 0.55) 40%,
        rgba(13, 27, 61, 0.85) 100%
    );
}

.stage--station { background-image: url('../images/stationbackground.jpg'); }
.stage--courtroom { background-image: url('../images/courtroombackgroundoverview.jpg'); }
.stage--lobby { background-image: url('../images/lobbybackground.jpg'); }

/* Subtle grain overlay for atmosphere */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0 0.15 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.18;
    mix-blend-mode: overlay;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 27, 61, 0.92);
    border-bottom: 2px solid var(--gold);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold) 20%,
        var(--gold-bright) 50%,
        var(--gold) 80%,
        transparent 100%);
    opacity: 0.3;
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--cream-light);
    font-family: var(--font-display);
    letter-spacing: 0.06em;
}

.nav__logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.nav__brand-text {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--cream-light);
    text-shadow: 1px 1px 0 var(--navy-deep);
}

.nav__brand-text span {
    color: var(--gold-bright);
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    margin-top: 2px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav__link {
    display: block;
    padding: 0.6rem 1rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.nav__link:hover {
    color: var(--gold-bright);
    border-color: var(--gold);
    background: rgba(201, 168, 90, 0.08);
}

.nav__link.is-active {
    color: var(--navy-deep);
    background: var(--gold-bright);
    border-color: var(--gold-bright);
}

.nav__link.is-active::before {
    content: '▸ ';
}

/* Mobile menu toggle */
.nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold-bright);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
}

@media (max-width: 860px) {
    .nav__toggle { display: flex; align-items: center; justify-content: center; }
    .nav__links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        background: rgba(13, 27, 61, 0.98);
        border-bottom: 2px solid var(--gold);
        padding: 0.5rem 1rem 1rem;
        gap: 0.25rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    .nav__links.is-open {
        max-height: 600px;
        padding: 0.5rem 1rem 1rem;
    }
    .nav__links:not(.is-open) {
        padding-top: 0;
        padding-bottom: 0;
    }
    .nav__link {
        width: 100%;
        text-align: left;
    }
    .nav__brand-text { font-size: 1.1rem; }
    .nav__brand-text span { font-size: 0.6rem; }
}

/* ---------- Layout Containers ---------- */
.page {
    min-height: calc(100vh - var(--header-height));
    padding: 3rem 1.5rem 4rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.container--narrow {
    max-width: 900px;
}

.container--medium {
    max-width: 1140px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.8rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    line-height: 1;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn--primary {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    color: var(--navy-deep);
    box-shadow: 4px 4px 0 var(--navy-deep), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn--primary:hover {
    color: var(--navy-deep);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--navy-deep), 0 12px 30px rgba(0, 0, 0, 0.5);
    background: var(--cream-light);
}

.btn--secondary {
    background: var(--navy-mid);
    border-color: var(--cream);
    color: var(--cream-light);
    box-shadow: 4px 4px 0 var(--gold), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn--secondary:hover {
    color: var(--gold-bright);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--gold), 0 12px 30px rgba(0, 0, 0, 0.5);
    background: var(--navy-light);
}

.btn--ghost {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold-bright);
}

.btn--ghost:hover {
    background: var(--gold);
    color: var(--navy-deep);
}

.btn__icon { font-size: 1.3em; line-height: 1; }

/* ---------- Section Headings ---------- */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--cream-light);
    text-shadow: var(--shadow-text);
    line-height: 0.95;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--gold-bright);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.section-divider {
    height: 3px;
    background: linear-gradient(90deg,
        var(--gold-bright) 0%,
        var(--gold-bright) 80px,
        var(--gold) 80px,
        var(--gold) 84px,
        transparent 84px);
    margin: 1rem 0 2.5rem;
}

/* ---------- Card ---------- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border-top: 2px solid var(--gold-bright);
    border-left: 2px solid var(--gold-bright);
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-bottom: 2px solid var(--gold-bright);
    border-right: 2px solid var(--gold-bright);
}

/* ---------- HOME PAGE ---------- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height) - 4rem);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    padding: 1.5rem 0;
}

.hero__content {
    z-index: 2;
    position: relative;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    line-height: 0.85;
    color: var(--cream-light);
    text-shadow:
        3px 3px 0 var(--navy-deep),
        6px 6px 0 rgba(0, 0, 0, 0.4);
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.hero__title-line {
    display: block;
}

.hero__title-accent {
    color: var(--gold-bright);
    text-shadow:
        3px 3px 0 var(--red-deep),
        6px 6px 0 rgba(0, 0, 0, 0.4);
}

.hero__title-image {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(4px 4px 0 var(--navy-deep)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

@media (max-width: 960px) {
    .hero__title-image {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero__description {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--cream);
    max-width: 540px;
    margin-bottom: 2rem;
    text-shadow:
        1px 1px 0 var(--navy-deep),
        -1px 1px 0 var(--navy-deep),
        1px -1px 0 var(--navy-deep),
        -1px -1px 0 var(--navy-deep);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__visual {
    position: relative;
    height: calc(100vh - var(--header-height) - 4rem);
    min-height: 580px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero__characters {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.7));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
    }
    .hero__content { order: 1; }
    .hero__visual {
        order: 2;
        height: 60vh;
        min-height: 420px;
        margin-top: 1rem;
    }
    .hero__description { margin-left: auto; margin-right: auto; }
    .hero__actions { justify-content: center; }
}

/* Feature strip below hero */
.feature-strip {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.feature {
    background: rgba(13, 27, 61, 0.85);
    border-left: 4px solid var(--gold-bright);
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    backdrop-filter: blur(6px);
}

.feature__icon {
    color: var(--gold-bright);
    line-height: 1;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature__icon svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--cream-light);
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.feature__text {
    font-size: 0.95rem;
    color: var(--cream);
    line-height: 1.5;
}

/* News section */
.news-section {
    margin-top: 4rem;
}

.news-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.news-section__heading {
    flex: 1 1 auto;
}

.news-list {
    display: grid;
    gap: 1.5rem;
}

.news-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-left: 5px solid var(--gold-bright);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.75rem 2rem;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.75rem;
    align-items: start;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.news-item:hover {
    border-color: var(--gold-bright);
    transform: translateY(-2px);
}

.news-item__date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.25rem;
    border-right: 1px dashed var(--card-border);
    padding-right: 1.5rem;
    height: 100%;
}

.news-item__tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 0.4rem;
}

.news-item__date-line {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--cream-light);
    line-height: 1;
    letter-spacing: 0.04em;
}

.news-item__date-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    letter-spacing: 0.1em;
}

.news-item__body {
    min-width: 0;
}

.news-item__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--cream-light);
    line-height: 1.05;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.news-item__title-accent {
    color: var(--gold-bright);
}

.news-item__text {
    color: var(--cream);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.news-item__action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-bright);
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--gold);
    transition: all 0.2s ease;
}

.news-item__action:hover {
    background: var(--gold-bright);
    color: var(--navy-deep);
}

@media (max-width: 720px) {
    .news-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    .news-item__date {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        border-right: none;
        border-bottom: 1px dashed var(--card-border);
        padding-right: 0;
        padding-bottom: 0.75rem;
        flex-wrap: wrap;
    }
    .news-item__tag { margin-bottom: 0; }
    .news-item__title { font-size: 1.35rem; }
}

/* ---------- ABOUT PAGE ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}

.about-content p {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--cream);
    text-shadow:
        1px 1px 0 var(--navy-deep),
        -1px 1px 0 var(--navy-deep),
        1px -1px 0 var(--navy-deep),
        -1px -1px 0 var(--navy-deep);
}

/* Intro paragraph utility for body text that sits over backdrops */
.lead {
    max-width: 720px;
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-shadow:
        1px 1px 0 var(--navy-deep),
        -1px 1px 0 var(--navy-deep),
        1px -1px 0 var(--navy-deep),
        -1px -1px 0 var(--navy-deep);
}

.about-quote {
    border-left: 4px solid var(--gold);
    padding: 0.5rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(13, 27, 61, 0.5);
    font-style: italic;
    font-size: 1.05rem;
}

.about-character {
    position: relative;
    height: 540px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

/* Sticky behavior reserved for the About page only,
   where the long staff/rules content benefits from a persistent companion sprite. */
.about-grid > .about-character {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.about-character img {
    max-height: 100%;
    width: auto;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
}

@media (max-width: 960px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-character,
    .about-grid > .about-character {
        position: relative;
        top: 0;
        height: 220px;
        order: -1;
        margin-bottom: -1rem;
    }
    .about-character img {
        max-height: 220px;
    }
}

@media (max-width: 480px) {
    .about-character {
        height: 180px;
    }
    .about-character img {
        max-height: 180px;
    }
}

/* Staff list */
.staff-section {
    margin-top: 4rem;
}

.staff-group {
    margin-bottom: 2.5rem;
}

.staff-group__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold-bright);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.staff-group__title::before {
    content: '';
    width: 8px;
    height: 24px;
    background: var(--gold-bright);
}

.staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    list-style: none;
}

.staff-list li {
    background: rgba(13, 27, 61, 0.6);
    border: 1px solid var(--card-border);
    padding: 0.85rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.staff-name {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--cream-light);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.staff-role {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Rules */
.rules-list {
    list-style: none;
    counter-reset: rule;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.rules-list li {
    counter-increment: rule;
    padding: 1rem 1rem 1rem 3.25rem;
    background: rgba(13, 27, 61, 0.6);
    border: 1px solid var(--card-border);
    position: relative;
    font-size: 1rem;
}

.rules-list li::before {
    content: counter(rule, decimal-leading-zero);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold-bright);
    line-height: 1;
}

/* ---------- DOWNLOAD PAGE ---------- */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.download-card {
    padding: 2.5rem;
}

.download-card__label {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.78rem;
    color: var(--gold-bright);
    margin-bottom: 0.75rem;
}

.download-card__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--cream-light);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.download-card__description {
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.download-card__list {
    list-style: none;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: rgba(13, 27, 61, 0.65);
    border: 1px dashed var(--card-border);
}

.download-card__list li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 0.98rem;
    color: var(--cream);
}

.download-card__list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--gold-bright);
    font-size: 0.7rem;
    top: 0.7rem;
}

.download-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.platform-note {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(214, 56, 56, 0.1);
    border-left: 3px solid var(--red-objection);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.platform-note svg {
    width: 18px;
    height: 18px;
    stroke: var(--red-objection);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-top: 1px;
}

@media (max-width: 960px) {
    .download-grid { grid-template-columns: 1fr; }
}

/* ---------- GUIDES PAGE ---------- */
.guides-list {
    display: grid;
    gap: 1.75rem;
    margin-top: 2rem;
}

.guide {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 2rem;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-left: 5px solid var(--gold);
    padding: 1.75rem 2rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(6px);
}

.guide:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--gold-bright);
}

/* Role color modifiers */
.guide--foundations {
    border-left-color: var(--gold-bright);
}
.guide--foundations:hover {
    border-color: var(--gold-bright);
}
.guide--foundations .guide__number {
    color: var(--gold-bright);
}

.guide--defense {
    border-left-color: var(--blue-jester);
}
.guide--defense:hover {
    border-color: var(--blue-jester);
}
.guide--defense .guide__number {
    color: var(--blue-jester);
}

.guide--prosecution {
    border-left-color: var(--red-objection);
}
.guide--prosecution:hover {
    border-color: var(--red-objection);
}
.guide--prosecution .guide__number {
    color: var(--red-objection);
}

.guide--judge {
    border-left-color: #9aa3b3;
}
.guide--judge:hover {
    border-color: #9aa3b3;
}
.guide--judge .guide__number {
    color: #c4ccd9;
}

.guide__sprite {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide__sprite img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.guide__content {
    min-width: 0;
}

.guide__number {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gold-bright);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.guide__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--cream-light);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.guide__author {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--gold-bright);
    margin-bottom: 0.65rem;
}

.guide__description {
    color: var(--cream);
    font-size: 1rem;
    line-height: 1.55;
}

.guide__action {
    align-self: center;
}

@media (max-width: 760px) {
    .guide {
        grid-template-columns: 110px 1fr;
        padding: 1.25rem;
        gap: 1rem;
    }
    .guide__sprite {
        height: 130px;
    }
    .guide__action {
        grid-column: 1 / -1;
        justify-self: stretch;
    }
    .guide__action .btn { width: 100%; }
    .guide__title { font-size: 1.3rem; }
}

/* Resource highlight */
.resource-highlight {
    margin-top: 3.5rem;
    padding: 2.25rem 2rem;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(13, 27, 61, 0.85) 60%);
    border: 1px solid var(--gold);
    border-left: 6px solid var(--gold);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.resource-highlight--vcl {
    background: linear-gradient(135deg,
        rgba(224, 189, 106, 0.15) 0%,
        rgba(13, 27, 61, 0.85) 60%);
    border-color: var(--gold-bright);
    border-left-color: var(--gold-bright);
}

.resource-highlight--vcl .resource-highlight__label {
    color: var(--gold-bright);
}

.resource-highlight--library {
    background: linear-gradient(135deg,
        rgba(95, 168, 107, 0.15) 0%,
        rgba(13, 27, 61, 0.85) 60%);
    border-color: var(--green-archive);
    border-left-color: var(--green-archive);
}

.resource-highlight--library .resource-highlight__label {
    color: var(--green-archive);
}

.resource-highlight__label {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.78rem;
    color: var(--gold-bright);
    margin-bottom: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-highlight__label svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.resource-highlight h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--cream-light);
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.resource-highlight p {
    color: var(--cream);
    line-height: 1.6;
}

@media (max-width: 720px) {
    .resource-highlight {
        grid-template-columns: 1fr;
    }
    .resource-highlight .btn { width: 100%; }
}

/* ---------- FAQ PAGE ---------- */
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 720px) 320px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 960px) {
    .faq-grid { grid-template-columns: 1fr; }
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item[open] {
    border-color: var(--gold-bright);
}

.faq-item summary {
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--cream-light);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover {
    background: rgba(201, 168, 90, 0.08);
}

.faq-item summary::after {
    content: '+';
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold-bright);
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--cream);
    border-top: 1px solid var(--card-border);
    padding-top: 1.25rem;
    margin-top: 0.25rem;
}

/* ---------- DISCORD PAGE ---------- */
.discord-hero {
    min-height: calc(100vh - var(--header-height) - 200px);
    display: grid;
    grid-template-columns: minmax(0, 720px) 320px;
    gap: 3rem;
    align-items: center;
}

.discord-content {
    z-index: 2;
}

.discord-content h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.9;
    color: var(--cream-light);
    text-shadow: var(--shadow-text);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.discord-content h1 span {
    color: #5865F2;
    text-shadow: 3px 3px 0 var(--navy-deep);
}

.discord-content p {
    font-size: 1.15rem;
    color: var(--cream);
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 540px;
    text-shadow:
        1px 1px 0 var(--navy-deep),
        -1px 1px 0 var(--navy-deep),
        1px -1px 0 var(--navy-deep),
        -1px -1px 0 var(--navy-deep);
}

.discord-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    max-width: 540px;
}

.discord-stat {
    padding: 1rem;
    background: rgba(13, 27, 61, 0.7);
    border: 1px solid var(--card-border);
    text-align: center;
}

.discord-stat__value {
    color: var(--gold-bright);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.discord-stat__value svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.discord-stat__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0.4rem;
}

@media (max-width: 960px) {
    .discord-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .discord-content p { margin-left: auto; margin-right: auto; }
    .discord-stats {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Discord button override */
.btn--discord {
    background: #5865F2;
    border-color: #5865F2;
    color: white;
    box-shadow: 4px 4px 0 var(--navy-deep), 0 8px 20px rgba(88, 101, 242, 0.4);
}

.btn--discord:hover {
    background: #4752c4;
    border-color: #4752c4;
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--navy-deep), 0 12px 30px rgba(88, 101, 242, 0.6);
}

/* ---------- Footer ---------- */
.site-footer {
    background: rgba(8, 16, 36, 0.96);
    border-top: 2px solid var(--gold);
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 5;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold) 20%,
        var(--gold-bright) 50%,
        var(--gold) 80%,
        transparent 100%);
    opacity: 0.3;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 720px;
}

.footer-text strong {
    color: var(--cream-light);
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-bright);
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.footer-links a:hover {
    border-bottom-color: var(--gold-bright);
}

@media (max-width: 760px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand { justify-content: center; }
    .footer-links { justify-content: center; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeUp 0.45s ease-out backwards;
}

.fade-in--1 { animation-delay: 0.02s; }
.fade-in--2 { animation-delay: 0.08s; }
.fade-in--3 { animation-delay: 0.14s; }
.fade-in--4 { animation-delay: 0.20s; }
.fade-in--5 { animation-delay: 0.26s; }

.slide-in-left { animation: slideInLeft 0.8s ease-out 0.1s backwards; }
.slide-in-right { animation: slideInRight 0.9s ease-out 0.3s backwards; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero__characters { animation: none; }
}
