/* SWG+ game-home redesign: cinematic entry, fast routes, and readable live proof. */
.game-home {
    --game-ink: #050914;
    --game-panel: rgba(7, 15, 27, 0.9);
    --game-panel-soft: rgba(11, 24, 39, 0.72);
    --game-line: rgba(172, 208, 225, 0.2);
    --game-line-hot: rgba(91, 214, 255, 0.6);
    --game-cyan: #5bd6ff;
    --game-gold: #f6c95f;
    --game-teal: #4ff0d0;
    --game-green: #5dff9d;
    --game-text: #f2f8ff;
    --game-muted: #9db3c5;
    --game-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.game-home .container {
    width: min(1360px, calc(100% - 24px));
    background: transparent;
    overflow: visible;
}

.game-home main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: clamp(2.4rem, 5vw, 5rem);
    padding: 1rem 0 4rem;
}

.game-home main > section,
.game-home main > section > *,
.game-home .entry-grid > *,
.game-home .video-layout > *,
.game-home .game-section-heading > * {
    min-width: 0;
}

.game-home main > section {
    margin-top: 0 !important;
}

.game-home img,
.game-home iframe,
.game-home video {
    max-width: 100%;
}

.game-hero {
    position: relative;
    isolation: isolate;
    min-height: min(870px, 90vh);
    padding: 0 clamp(1rem, 3.5vw, 3.25rem) 1.25rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(91, 214, 255, 0.22);
}

.game-hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(3, 7, 17, 0.98) 0%, rgba(3, 7, 17, 0.86) 34%, rgba(3, 7, 17, 0.3) 72%, rgba(3, 7, 17, 0.8) 100%),
        linear-gradient(180deg, rgba(3, 7, 17, 0.24) 35%, rgba(3, 7, 17, 0.98) 100%),
        url("/images/mfalcon.jpg") 68% 35% / cover no-repeat;
    transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.04);
    filter: saturate(1.18) contrast(1.1);
    transition: transform 120ms linear;
}

.game-hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 34%, rgba(91, 214, 255, 0.18), transparent 18rem),
        linear-gradient(120deg, transparent 0 43%, rgba(91, 214, 255, 0.1) 45%, transparent 48% 100%);
    mix-blend-mode: screen;
}

.game-hero-scanlines {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 5px);
    opacity: 0.34;
}

.game-hero .shared-primary-nav {
    width: min(1240px, 100%);
    padding: 1rem 0;
    border-bottom-color: rgba(242, 248, 255, 0.22);
}

.game-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.62fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: center;
    width: min(1180px, 100%);
    min-height: 635px;
    margin: 0 auto;
    padding: 4rem 0 3.5rem;
}

.game-hero-copy {
    max-width: 720px;
}

.game-hero-eyebrow,
.eyebrow,
.game-section-heading .eyebrow {
    margin: 0 0 0.9rem;
    color: var(--game-gold);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.game-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(93, 255, 157, 0.3);
    border-radius: 999px;
    background: rgba(3, 11, 16, 0.62);
    color: var(--game-green);
}

.game-hero-copy h1 {
    max-width: 10ch;
    margin: 0;
    color: var(--game-text);
    font-size: clamp(3.4rem, 8.5vw, 8.5rem);
    line-height: 0.88;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(91, 214, 255, 0.2);
}

.game-hero-copy h1 span {
    color: var(--game-gold);
}

.game-hero-lede {
    max-width: 61ch;
    margin: 1.35rem 0 0;
    color: rgba(242, 248, 255, 0.8);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.72;
}

.game-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.7rem;
}

.game-hero-actions .button {
    min-height: 48px;
}

.game-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.4rem;
    margin-top: 1.65rem;
    color: rgba(242, 248, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.game-hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.game-hero-proof strong,
.entry-card-index,
.mission-brief-topline strong {
    color: var(--game-gold);
}

.mission-brief {
    position: relative;
    min-height: 480px;
    padding: 1.25rem;
    border: 1px solid rgba(91, 214, 255, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(91, 214, 255, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(8, 21, 34, 0.85), rgba(3, 8, 17, 0.94));
    box-shadow: var(--game-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.mission-brief::before,
.video-player-frame::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--game-cyan), var(--game-gold), transparent);
}

.mission-brief-topline,
.video-player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--game-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mission-orbit {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 2rem auto 1rem;
    border: 1px solid rgba(91, 214, 255, 0.32);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(91, 214, 255, 0.2) 0 3%, transparent 4%),
        radial-gradient(circle, transparent 0 56%, rgba(91, 214, 255, 0.12) 57% 58%, transparent 59%),
        radial-gradient(circle, transparent 0 77%, rgba(246, 201, 95, 0.2) 78% 79%, transparent 80%);
    box-shadow: 0 0 46px rgba(91, 214, 255, 0.14), inset 0 0 34px rgba(91, 214, 255, 0.12);
    animation: missionOrbit 20s linear infinite;
}

.mission-orbit::before,
.mission-orbit::after {
    content: "";
    position: absolute;
    inset: 14%;
    border: 1px dashed rgba(246, 201, 95, 0.28);
    border-radius: 50%;
}

.mission-orbit::after {
    inset: 31%;
    border-color: rgba(79, 240, 208, 0.36);
}

.mission-orbit span,
.mission-orbit i,
.mission-orbit b {
    position: absolute;
    display: block;
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: var(--game-cyan);
    box-shadow: 0 0 18px var(--game-cyan);
}

.mission-orbit span { top: 9%; left: 62%; }
.mission-orbit i { top: 70%; left: 10%; background: var(--game-gold); box-shadow: 0 0 18px var(--game-gold); }
.mission-orbit b { top: 42%; right: 11%; background: var(--game-teal); box-shadow: 0 0 18px var(--game-teal); }

.mission-brief-copy {
    position: relative;
    z-index: 1;
}

.mission-brief-kicker {
    color: var(--game-cyan);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mission-brief h2 {
    margin: 0.45rem 0 0;
    color: var(--game-text);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: 0;
    text-transform: uppercase;
}

.mission-brief p {
    margin: 0.65rem 0 0;
    color: var(--game-muted);
    line-height: 1.55;
}

.mission-brief-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--game-line);
}

.mission-brief-stats div {
    display: grid;
    gap: 0.3rem;
}

.mission-brief-stats span {
    color: var(--game-muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mission-brief-stats strong {
    color: var(--game-text);
    font-size: 0.9rem;
}

.mission-brief-stats .is-online { color: var(--game-green); }
.mission-brief-stats .is-offline { color: #ff8d97; }

.mission-brief-link,
.entry-card-link,
.video-story-link,
.video-archive-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.35rem;
    color: var(--game-text);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mission-brief-link,
.video-story-link {
    width: 100%;
    padding-top: 0.8rem;
    border-top: 1px solid var(--game-line);
}

.mission-brief-link:hover,
.entry-card-link:hover,
.video-story-link:hover,
.video-archive-link:hover { color: var(--game-gold); }

.game-anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.4rem;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(242, 248, 255, 0.18);
}

.game-anchor-nav a {
    display: inline-flex;
    gap: 0.5rem;
    color: rgba(242, 248, 255, 0.66);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.game-anchor-nav a:hover { color: var(--game-cyan); }
.game-anchor-nav span { color: var(--game-gold); }

.game-home main > section {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.game-home .status-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0;
    padding: 0.7rem;
    border: 1px solid rgba(91, 214, 255, 0.18);
    border-radius: 8px;
    background: rgba(4, 11, 21, 0.82);
}

.game-home .status-card {
    min-height: 142px;
    padding: 1rem;
    border: 1px solid rgba(172, 208, 225, 0.12);
    border-radius: 6px;
    background: linear-gradient(150deg, rgba(91, 214, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.game-home .status-card h2 {
    margin: 0;
    color: var(--game-muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.game-home .status-indicator,
.game-home .players-online {
    margin-top: 0.7rem;
    font-size: 1.25rem;
}

.game-home .status-meta {
    margin-top: 0.65rem;
}

.entry-deck,
.video-deck,
.galaxy-manifesto {
    margin-top: 0 !important;
}

.game-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.35rem;
}

.game-section-heading h2 {
    max-width: 15ch;
    margin: 0;
    color: var(--game-text);
    font-size: clamp(2.1rem, 4.7vw, 4.6rem);
    line-height: 0.94;
    letter-spacing: -0.02em;
}

.game-section-heading > p {
    max-width: 42ch;
    margin: 0;
    color: var(--game-muted);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

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

.entry-card {
    position: relative;
    display: flex;
    min-height: 275px;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid var(--game-line);
    border-top: 2px solid var(--game-cyan);
    border-radius: 8px;
    background: var(--game-panel);
    box-shadow: var(--game-shadow);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.entry-card:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 248, 255, 0.45);
    background: rgba(11, 28, 45, 0.95);
}

.entry-card--gold { border-top-color: var(--game-gold); }
.entry-card--teal { border-top-color: var(--game-teal); }

.entry-card-index {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.entry-card-label {
    margin-top: 2.8rem;
    color: var(--game-cyan);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.entry-card h3 {
    margin: 0.45rem 0 0;
    color: var(--game-text);
    font-size: 1.45rem;
    letter-spacing: 0;
}

.entry-card p {
    margin: 0.65rem 0 0;
    color: var(--game-muted);
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.entry-card-link {
    margin-top: auto;
    color: var(--game-text);
}

.video-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.45fr);
    gap: 0.8rem;
}

.video-player-frame,
.video-story {
    position: relative;
    border: 1px solid var(--game-line);
    border-radius: 8px;
    background: var(--game-panel);
    box-shadow: var(--game-shadow);
    overflow: hidden;
}

.video-player-bar {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--game-line);
}

.video-player-bar > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--game-green);
}

.video-player {
    aspect-ratio: 16 / 9;
    background: #02050b;
}

.video-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-story {
    display: flex;
    flex-direction: column;
    padding: 1.35rem;
}

.video-story-kicker {
    color: var(--game-gold);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.video-story h3 {
    margin: 1.8rem 0 0;
    color: var(--game-text);
    font-size: 1.7rem;
}

.video-story p {
    margin: 0.75rem 0 0;
    color: var(--game-muted);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.video-story-link { margin-top: auto; }

.video-archive-link {
    margin-top: 1rem;
    color: var(--game-muted);
    font-size: 0.65rem;
}

.game-home .galaxy-manifesto {
    padding-top: 0;
}

.game-home .galaxy-manifesto .manifesto-intro h2 {
    font-size: clamp(2.1rem, 4.4vw, 4.4rem);
}

@keyframes missionOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
    .game-hero-content,
    .video-layout {
        grid-template-columns: 1fr;
    }

    .game-hero-content {
        min-height: 0;
        padding-top: 5rem;
    }

    .mission-brief {
        min-height: 0;
    }

    .mission-orbit {
        width: 140px;
        height: 140px;
        margin: 1.1rem auto;
    }

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

    .game-section-heading,
    .entry-grid,
    .video-layout {
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .game-home .container {
        width: min(100% - 16px, 1360px);
    }

    .game-hero {
        min-height: 0;
        padding-inline: 0.75rem;
    }

    .game-hero-backdrop {
        background:
            linear-gradient(180deg, rgba(3, 7, 17, 0.68), rgba(3, 7, 17, 0.97) 84%),
            url("/images/mfalcon.jpg") 70% center / cover no-repeat;
    }

    .game-hero .shared-primary-nav {
        align-items: flex-start;
        align-content: flex-start;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .game-hero .nav-brand {
        align-self: flex-start;
        width: auto;
        min-width: 0;
    }

    .game-hero .nav-links {
        align-items: center;
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
    }

    .game-hero-content {
        gap: 2rem;
        padding: 4rem 0 2.5rem;
    }

    .game-hero-copy h1 {
        font-size: clamp(3.2rem, 16vw, 5.5rem);
    }

    .game-hero-actions,
    .game-hero-actions .button {
        width: 100%;
    }

    .game-hero-proof,
    .game-anchor-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .mission-brief {
        padding: 1rem;
    }

    .game-anchor-nav {
        gap: 0.65rem;
        padding-bottom: 1rem;
    }

    .game-section-heading {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .game-section-heading h2 {
        max-width: 12ch;
    }

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

    .entry-card {
        min-height: 220px;
    }

    .entry-card-label {
        margin-top: 1.9rem;
    }

    .game-home .status-grid {
        grid-template-columns: 1fr;
    }

    .game-home main {
        gap: 3rem;
        padding-top: 0.75rem;
    }

    .game-home main > section {
        width: 100%;
    }

    .mission-brief-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mission-brief-stats strong {
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mission-orbit {
        animation: none;
    }

    .game-hero-backdrop {
        transform: scale(1.02);
    }
}
