/*
 * Frontier Cinematic
 * Final presentation layer for the public Goblins & Gunslingers site.
 * Banner and card artwork remain source assets; this file only controls layout,
 * depth, color, and motion-friendly presentation.
 */

:root {
    --fc-bg: #07090a;
    --fc-bg-raised: #0d1011;
    --fc-surface: rgba(17, 19, 19, 0.88);
    --fc-surface-solid: #111313;
    --fc-ink: #f7edd8;
    --fc-soft: #d8ccb5;
    --fc-muted: #a99f8c;
    --fc-gold: #ddb55d;
    --fc-gold-bright: #f4d486;
    --fc-teal: #56c7c5;
    --fc-rust: #cf6846;
    --fc-violet: #8d78c9;
    --fc-green: #79b878;
    --fc-line: rgba(221, 181, 93, 0.18);
    --fc-line-strong: rgba(221, 181, 93, 0.38);
    --fc-radius-sm: 4px;
    --fc-radius: 6px;
    --fc-radius-lg: 8px;
    --fc-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    --fc-ease: cubic-bezier(0.2, 0.75, 0.2, 1);

    /* Keep the established gx vocabulary, but make it consistent site-wide. */
    --gx-bg-0: var(--fc-bg);
    --gx-bg-1: var(--fc-bg-raised);
    --gx-bg-2: #151818;
    --gx-ink: var(--fc-ink);
    --gx-ink-soft: var(--fc-soft);
    --gx-muted: var(--fc-muted);
    --gx-gold: var(--fc-gold);
    --gx-gold-hi: var(--fc-gold-bright);
    --gx-rust: var(--fc-rust);
    --gx-teal: var(--fc-teal);
    --gx-violet: var(--fc-violet);
    --gx-panel: var(--fc-surface);
    --gx-card: rgba(20, 23, 23, 0.9);
    --gx-hairline: var(--fc-line);
    --gx-hairline-strong: var(--fc-line-strong);
    --gx-radius-sm: var(--fc-radius-sm);
    --gx-radius: var(--fc-radius);
    --gx-radius-lg: var(--fc-radius-lg);
    --gx-display-xl: 4.15rem;
    --gx-display: 3.2rem;
    --gx-h2: 2.35rem;
    --gx-h3: 1.45rem;
}

html {
    background: var(--fc-bg);
}

body:not(.in-game):not(.admin-shell) {
    background:
        linear-gradient(115deg, rgba(86, 199, 197, 0.035), transparent 31%),
        linear-gradient(245deg, rgba(141, 120, 201, 0.03), transparent 34%),
        linear-gradient(180deg, #0a0c0d 0%, var(--fc-bg) 48%, #080707 100%);
    color: var(--fc-ink);
}

body:not(.in-game):not(.admin-shell)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 9%, rgba(86, 199, 197, 0.025) 9% 9.1%, transparent 9.1% 91%, rgba(207, 104, 70, 0.025) 91% 91.1%, transparent 91.1%),
        linear-gradient(180deg, transparent 0 72%, rgba(221, 181, 93, 0.025) 100%);
}

main {
    position: relative;
    overflow: clip;
}

.container,
.gx-container {
    width: min(1240px, calc(100% - 3rem));
    margin-inline: auto;
}

.section-title,
.gx-section-title {
    font-size: 2.35rem;
    line-height: 1.16;
    letter-spacing: 0;
}

.section-subtitle,
.gx-section-sub {
    font-size: 1.08rem;
    line-height: 1.72;
}

/* --------------------------------------------------------------------------
   Navigation and identity
   -------------------------------------------------------------------------- */

.main-nav {
    min-height: 74px;
    background: rgba(8, 10, 10, 0.78);
    border-bottom: 1px solid var(--fc-line);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    backdrop-filter: blur(22px) saturate(1.3);
    transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.main-nav.scrolled,
.main-nav.fc-scrolled {
    background: rgba(6, 8, 8, 0.94);
    border-bottom-color: var(--fc-line-strong);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.52);
}

.main-nav .nav-inner {
    width: min(1400px, calc(100% - 2.5rem));
    min-height: 74px;
    gap: 0.75rem;
}

.nav-logo {
    min-width: 230px;
    height: 50px;
    gap: 0.55rem;
}

.nav-logo .nav-logo-mana-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
}

.frontier-wordmark {
    display: block;
    width: min(250px, 22vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.72));
}

.nav-logo.has-frontier-wordmark > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.nav-links a {
    border-radius: var(--fc-radius-sm);
    color: var(--fc-soft);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--fc-gold-bright);
    background: rgba(221, 181, 93, 0.055);
}

.nav-links a.nav-play-link {
    border-radius: var(--fc-radius);
    background: linear-gradient(135deg, var(--fc-gold-bright), var(--fc-gold) 58%, #aa7730);
    color: #171006 !important;
}

.theme-toggle,
.nav-toggle {
    border-radius: var(--fc-radius);
}

@media (min-width: 1320px) {
    .main-nav .nav-toggle {
        display: none !important;
    }

    .main-nav .nav-links {
        position: static !important;
        inset: auto !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.05rem !important;
        overflow: visible !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .main-nav .nav-links a {
        min-height: 38px;
        padding: 0.62rem 0.48rem;
        border: 0;
        font-size: 0.7rem;
        letter-spacing: 0.035em;
        white-space: nowrap;
    }

    .main-nav .nav-links a.nav-play-link {
        margin-left: 0.35rem;
        padding-inline: 0.85rem;
        font-size: 0.68rem;
    }
}

@media (max-width: 1319px) {
    .main-nav .nav-toggle {
        display: flex !important;
        margin-left: auto;
    }

    .main-nav .nav-links {
        width: min(88vw, 390px);
        padding: 5.5rem 1.35rem 1.5rem;
        background:
            linear-gradient(155deg, rgba(86, 199, 197, 0.06), transparent 34%),
            #0b0d0d;
    }
}

/* --------------------------------------------------------------------------
   Full-bleed heroes and layered atmosphere
   -------------------------------------------------------------------------- */

.gx-hero,
.page-hero,
.page-hero-tall,
.pw-hero,
.guides-hero,
.press-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--fc-line);
    background: #080a0a;
}

.page-hero,
.page-hero-tall,
.guides-hero,
.press-hero {
    min-height: 500px;
    padding-top: 74px;
    display: flex;
    align-items: flex-end;
}

.home-hero {
    height: min(78dvh, 760px);
    min-height: 650px;
    max-height: 760px;
}

.gx-hero-bg,
.page-hero-bg,
.pw-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -4;
}

.gx-hero-bg img,
.page-hero-bg-img,
.pw-hero-bg img,
.guides-hero > img,
.press-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, var(--fc-hero-y, 0), 0) scale(1.09);
    transform-origin: center center;
    will-change: transform;
    filter: saturate(0.96) contrast(1.05);
}

.gx-hero-scrim,
.hero-overlay,
.pw-hero-scrim,
.fpd-hero-scrim {
    background:
        linear-gradient(90deg, rgba(5, 7, 7, 0.88) 0%, rgba(5, 7, 7, 0.55) 42%, rgba(5, 7, 7, 0.2) 72%, rgba(5, 7, 7, 0.5) 100%),
        linear-gradient(180deg, rgba(5, 7, 7, 0.12) 0%, rgba(5, 7, 7, 0.08) 48%, rgba(5, 7, 7, 0.94) 100%);
}

.fc-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.fc-atmosphere::before {
    content: "";
    position: absolute;
    inset: 35% -10% -18%;
    opacity: 0.32;
    background:
        linear-gradient(175deg, transparent 0 33%, rgba(197, 208, 198, 0.11) 46%, transparent 65%),
        linear-gradient(188deg, transparent 0 48%, rgba(86, 199, 197, 0.08) 57%, transparent 75%);
    transform: translate3d(0, var(--fc-haze-y, 0), 0) scale(1.12);
    will-change: transform;
}

.fc-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image:
        radial-gradient(circle, rgba(244, 212, 134, 0.78) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(86, 199, 197, 0.5) 0 0.7px, transparent 1.1px);
    background-position: 12px 18px, 70px 90px;
    background-size: 148px 132px, 210px 188px;
    transform: translate3d(var(--fc-dust-x, 0), var(--fc-dust-y, 0), 0);
    will-change: transform;
}

.page-hero-content {
    position: relative;
    width: min(1240px, calc(100% - 3rem));
    max-width: none;
    margin-inline: auto;
    padding: 4.5rem 0 4rem;
    text-align: left;
}

.page-hero-content h1,
.gx-hero h1,
.pw-hero-content h1,
.guides-hero h1,
.press-hero h1 {
    max-width: 900px;
    margin-inline: 0;
    font-size: 3.55rem;
    line-height: 1.04;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow: 0 5px 28px rgba(0, 0, 0, 0.82);
}

.page-hero-content p {
    max-width: 660px;
    margin-inline: 0;
    color: var(--fc-soft);
    font-size: 1.18rem;
    line-height: 1.72;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.86);
}

.home-hero .gx-container {
    position: relative;
    z-index: 2;
}

.home-hero-inner {
    max-width: 820px;
}

.home-scroll-hint {
    bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Page rhythm, sections, and action surfaces
   -------------------------------------------------------------------------- */

.fc-band {
    position: relative;
    isolation: isolate;
}

.fc-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: transparent;
}

.fc-band:nth-of-type(even)::before {
    background:
        linear-gradient(110deg, rgba(86, 199, 197, 0.028), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0));
    border-block: 1px solid rgba(86, 199, 197, 0.075);
}

.gx-section,
.gallery-section,
.card-types-section,
.card-back-section,
.faction-nav-section,
.faction-guide-section,
.lore-intro,
.faction-lore,
.rpg-section,
.rules-content,
.store-cta,
.factions-cta {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.gx-section-tight {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
}

.gx-card,
.gx-panel,
.home-showcase-shot,
.home-server-card,
.home-pillar,
.blog-card,
.related-post-card,
.card-type-detail,
.lore-faction-block,
.faction-card,
.guide-card,
.store-product-card {
    border-radius: var(--fc-radius-lg);
}

.gx-card,
.gx-panel,
.blog-card,
.related-post-card,
.card-type-detail,
.lore-faction-block,
.faction-card,
.guide-card,
.store-product-card {
    background:
        linear-gradient(145deg, rgba(86, 199, 197, 0.03), transparent 32%),
        var(--fc-surface);
    border-color: var(--fc-line);
    box-shadow: 0 15px 46px rgba(0, 0, 0, 0.24);
}

.gx-card:hover,
.blog-card:hover,
.related-post-card:hover,
.faction-card:hover,
.guide-card:hover,
.store-product-card:hover {
    border-color: var(--fc-line-strong);
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.42), 0 0 28px rgba(86, 199, 197, 0.07);
}

.gx-btn,
.btn {
    min-height: 46px;
    border-radius: var(--fc-radius);
    letter-spacing: 0.075em;
    transition: transform 180ms var(--fc-ease), border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.gx-btn:hover,
.btn:hover {
    transform: translateY(-2px);
}

.gx-btn-gold,
.btn-primary {
    background: linear-gradient(135deg, var(--fc-gold-bright), var(--fc-gold) 58%, #a8742f);
    color: #171006;
    border-color: rgba(255, 235, 180, 0.5);
    box-shadow: 0 10px 26px rgba(221, 181, 93, 0.18);
}

.gx-btn-ghost,
.btn-secondary {
    background: rgba(9, 12, 12, 0.58);
    color: var(--fc-ink);
    border-color: rgba(86, 199, 197, 0.22);
}

.gx-btn-ghost:hover,
.btn-secondary:hover {
    border-color: rgba(86, 199, 197, 0.55);
    box-shadow: 0 10px 28px rgba(86, 199, 197, 0.08);
}

/* Homepage: preserve the art-led composition while reducing the old card wall. */
.home-stats {
    background: #0b0e0e;
    border-color: rgba(86, 199, 197, 0.12);
}

.home-stats-grid .gx-stat:nth-child(2) .gx-stat-value,
.home-stats-grid .gx-stat:nth-child(4) .gx-stat-value {
    color: var(--fc-teal);
}

.home-marquee {
    min-height: 560px;
    display: flex;
    align-items: center;
}

.home-marquee-bg {
    transform: translate3d(0, var(--fc-marquee-y, 0), 0) scale(1.08);
    will-change: transform;
}

.home-showcase-shot {
    border-color: rgba(86, 199, 197, 0.2);
}

.home-feature-list li::before {
    background: var(--fc-teal);
    box-shadow: 0 0 12px rgba(86, 199, 197, 0.4);
}

.home-faction-tile {
    border-radius: var(--fc-radius-lg);
}

.home-faction-tile:nth-child(3n + 1):hover { border-color: var(--fc-gold); }
.home-faction-tile:nth-child(3n + 2):hover { border-color: var(--fc-teal); }
.home-faction-tile:nth-child(3n):hover { border-color: var(--fc-rust); }

/* Legacy gallery, faction, lore, and blog pages now share the current system. */
.gallery-controls {
    position: sticky;
    top: 86px;
    z-index: 30;
    padding: 1rem;
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius-lg);
    background: rgba(10, 13, 13, 0.9);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.filter-btn {
    min-height: 38px;
    border-radius: var(--fc-radius-sm);
    border-color: rgba(86, 199, 197, 0.16);
    background: rgba(86, 199, 197, 0.035);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: rgba(86, 199, 197, 0.5);
    color: #171006;
    background: rgba(86, 199, 197, 0.11);
}

.filter-btn.active {
    border-color: rgba(255, 235, 180, 0.52);
    background: linear-gradient(135deg, var(--fc-gold-bright), var(--fc-gold) 58%, #aa7730);
}

.gallery-search input,
.gx-input {
    border-radius: var(--fc-radius);
    border-color: rgba(86, 199, 197, 0.22);
    background: rgba(6, 9, 9, 0.78);
}

.card-type-detail,
.lore-faction-block {
    padding: 2rem;
    border: 1px solid var(--fc-line);
}

.card-type-detail:nth-child(even),
.lore-faction-block:nth-child(even) {
    background:
        linear-gradient(145deg, rgba(141, 120, 201, 0.045), transparent 34%),
        var(--fc-surface);
}

.card-type-image img,
.card-back-image img,
.lore-faction-image img,
.rpg-showcase img {
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.48));
    transition: transform 380ms var(--fc-ease), filter 380ms ease;
}

.card-type-detail:hover .card-type-image img,
.card-back-showcase:hover .card-back-image img {
    transform: translateY(-5px) rotate(0.5deg);
    filter: drop-shadow(0 30px 38px rgba(0, 0, 0, 0.58));
}

.frontier-briefing,
.blog-archive-intro {
    border-radius: 0;
    border-inline: 0;
    border-color: var(--fc-line);
    background:
        linear-gradient(90deg, rgba(86, 199, 197, 0.045), transparent 32%, rgba(207, 104, 70, 0.035)),
        #0b0e0e;
}

.briefing-panel,
.starter-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.briefing-panel {
    padding-right: 2.25rem;
    border-right: 1px solid var(--fc-line);
}

.blog-archive-intro {
    padding: 2.25rem 0;
    border-block: 1px solid var(--fc-line);
    box-shadow: none;
}

.blog-topic-chip {
    border-radius: var(--fc-radius);
    border-color: rgba(86, 199, 197, 0.17);
    background: rgba(86, 199, 197, 0.035);
}

.blog-topic-chip:hover {
    border-color: rgba(86, 199, 197, 0.45);
    background: rgba(86, 199, 197, 0.08);
}

.blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.blog-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
}

.blog-card::before,
.related-post-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(180deg, var(--fc-teal), transparent 72%);
}

.blog-card:nth-child(3n + 2)::before { background: linear-gradient(180deg, var(--fc-gold), transparent 72%); }
.blog-card:nth-child(3n)::before { background: linear-gradient(180deg, var(--fc-rust), transparent 72%); }

.post-main {
    position: relative;
    padding-top: 74px;
    isolation: isolate;
}

.post-main::before {
    content: "";
    position: absolute;
    inset: 74px 0 auto;
    z-index: -2;
    height: 410px;
    background: url('/assets/images/Banner5.avif') center / cover no-repeat;
    filter: saturate(0.92) contrast(1.06);
}

.post-main::after {
    content: "";
    position: absolute;
    inset: 74px 0 auto;
    z-index: -1;
    height: 412px;
    background:
        linear-gradient(90deg, rgba(5, 7, 7, 0.88), rgba(5, 7, 7, 0.44) 60%, rgba(5, 7, 7, 0.7)),
        linear-gradient(180deg, rgba(5, 7, 7, 0.18), var(--fc-bg) 100%);
}

.post-shell,
.post-body {
    width: min(860px, calc(100% - 3rem));
    margin-inline: auto;
}

.post-title {
    font-size: 3.2rem;
    letter-spacing: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.78);
}

.post-shell {
    position: relative;
    z-index: 1;
    padding-top: 8.5rem;
}

.post-body-content {
    color: var(--fc-soft);
    font-size: 1.08rem;
    line-height: 1.82;
}

.rules-cta-block {
    max-width: none !important;
    margin: 0 !important;
    padding: 4rem max(1.5rem, calc((100% - 820px) / 2)) !important;
    border: 0 !important;
    border-block: 1px solid var(--fc-line) !important;
    border-radius: 0 !important;
    background:
        linear-gradient(90deg, rgba(86, 199, 197, 0.05), transparent 32%, rgba(221, 181, 93, 0.045)) !important;
}

.mobile-cta-bar {
    border-top-color: var(--fc-line);
    background: rgba(7, 9, 9, 0.92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

/* --------------------------------------------------------------------------
   Motion: revealed only after JS has opted the page in.
   -------------------------------------------------------------------------- */

.frontier-scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1600;
    height: 2px;
    pointer-events: none;
    transform: scaleX(var(--fc-scroll-progress, 0));
    transform-origin: left center;
    background: linear-gradient(90deg, var(--fc-teal), var(--fc-gold-bright) 52%, var(--fc-rust));
    box-shadow: 0 0 12px rgba(86, 199, 197, 0.42);
}

.fc-motion .fc-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 650ms var(--fc-ease) var(--fc-delay, 0ms),
        transform 650ms var(--fc-ease) var(--fc-delay, 0ms);
}

.fc-motion .fc-reveal.fc-reveal-side {
    transform: translate3d(28px, 0, 0);
}

.fc-motion .fc-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.fc-motion .fc-stagger > * {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 560ms var(--fc-ease), transform 560ms var(--fc-ease);
}

.fc-motion .fc-stagger.is-visible > * {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.fc-motion .fc-stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.fc-motion .fc-stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.fc-motion .fc-stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.fc-motion .fc-stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.fc-motion .fc-stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }
.fc-motion .fc-stagger.is-visible > *:nth-child(n + 7) { transition-delay: 420ms; }

@keyframes fc-dust-drift {
    from { background-position: 12px 18px, 70px 90px; }
    to { background-position: 82px -48px, 4px 18px; }
}

.fc-motion .fc-atmosphere::after {
    animation: fc-dust-drift 28s linear infinite;
}

/* --------------------------------------------------------------------------
   Responsive and motion-safe behavior
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
    :root {
        --gx-display-xl: 3.4rem;
        --gx-display: 2.75rem;
        --gx-h2: 2rem;
    }

    .page-hero-content h1,
    .gx-hero h1,
    .pw-hero-content h1,
    .guides-hero h1,
    .press-hero h1,
    .post-title {
        font-size: 2.8rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .briefing-panel {
        padding-right: 0;
        padding-bottom: 2rem;
        border-right: 0;
        border-bottom: 1px solid var(--fc-line);
    }
}

@media (max-width: 700px) {
    :root {
        --gx-display-xl: 2.45rem;
        --gx-display: 2.2rem;
        --gx-h2: 1.75rem;
        --gx-h3: 1.3rem;
    }

    .container,
    .gx-container,
    .page-hero-content,
    .post-shell,
    .post-body {
        width: min(100% - 2rem, 1240px);
    }

    .main-nav .nav-inner {
        width: calc(100% - 1rem);
        min-height: 66px;
    }

    .nav-logo {
        min-width: 0;
        height: 44px;
    }

    .nav-logo .nav-logo-mana-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .frontier-wordmark {
        width: min(190px, 52vw);
    }

    .page-hero,
    .page-hero-tall,
    .guides-hero,
    .press-hero {
        min-height: 470px;
        padding-top: 66px;
    }

    .home-hero {
        height: auto;
        min-height: calc(100dvh - 24px);
        max-height: none;
        padding-block: 7rem 3rem;
    }

    .page-hero-content {
        padding-block: 3.25rem;
    }

    .page-hero-content h1,
    .gx-hero h1,
    .pw-hero-content h1,
    .guides-hero h1,
    .press-hero h1,
    .post-title {
        font-size: 2.25rem;
        overflow-wrap: anywhere;
    }

    .page-hero-content p {
        font-size: 1.05rem;
    }

    .gx-section,
    .gallery-section,
    .card-types-section,
    .card-back-section,
    .faction-nav-section,
    .faction-guide-section,
    .lore-intro,
    .faction-lore,
    .rpg-section,
    .rules-content,
    .store-cta,
    .factions-cta {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .gallery-controls {
        position: relative;
        top: auto;
        padding: 0.8rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .card-type-detail,
    .lore-faction-block {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .frontier-scroll-progress { display: none; }

    .fc-motion .fc-reveal,
    .fc-motion .fc-reveal.fc-reveal-side,
    .fc-motion .fc-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .fc-motion .fc-atmosphere::after {
        animation: none;
    }

    .gx-hero-bg img,
    .page-hero-bg-img,
    .pw-hero-bg img,
    .guides-hero > img,
    .press-hero > img,
    .home-marquee-bg {
        transform: none !important;
        will-change: auto;
    }
}
