:root {
    --ef-bg: #e7edf1;
    --ef-surface: #ffffff;
    --ef-text: #15202b;
    --ef-muted: #5c6d7c;
    --ef-line: rgba(18, 40, 58, 0.12);
    --ef-nav: rgba(247, 250, 252, 0.88);
    --ef-shadow: 0 18px 40px rgba(21, 40, 58, 0.08);
    --ef-radius: 18px;
}

[data-bs-theme=dark] {
    --ef-bg: #070b10;
    --ef-surface: #121a22;
    --ef-text: #e7eef4;
    --ef-muted: #93a4b5;
    --ef-line: rgba(176, 206, 224, 0.14);
    --ef-nav: rgba(7, 11, 16, 0.82);
    --ef-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

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

body {
    display: flex;
    flex-direction: column;
    color: var(--ef-text);
    background:
        radial-gradient(980px 420px at 100% -10%, rgba(var(--bs-primary-rgb), 0.16), transparent 60%),
        radial-gradient(720px 360px at -10% 20%, rgba(var(--bs-primary-rgb), 0.08), transparent 55%),
        var(--ef-bg);
    font-family: Manrope, sans-serif;
    line-height: 1.6;
    cursor: url("../img/cursor-rocket.svg") 3 3, auto;
}

a,
button,
.btn,
.nav-link,
summary,
[role="button"] {
    cursor: url("../img/cursor-rocket.svg") 3 3, pointer;
}

#app {
    flex: 1 0 auto;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
.ef-brand-text strong,
.ef-address {
    font-family: "Space Grotesk", Manrope, sans-serif;
    letter-spacing: -0.03em;
}

.content {
    margin-top: 2rem;
    margin-bottom: 4.5rem;
}

.content > h1,
.ef-panel h2,
.ef-section-head h2,
.ef-discord h2,
.ef-footer h2 {
    font-weight: 700;
}

.content > h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.ef-nav {
    background: var(--ef-nav);
    border-bottom: 1px solid var(--ef-line);
    backdrop-filter: blur(18px);
    z-index: 1030;
}

.ef-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 1rem;
    color: var(--ef-text);
}

.ef-logo {
    width: auto;
    height: 44px;
    max-width: 120px;
    object-fit: contain;
}

.ef-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.ef-brand-text strong {
    font-size: 1.05rem;
}

.ef-brand-text small {
    color: var(--ef-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ef-nav .nav-link {
    color: var(--ef-muted);
    font-weight: 700;
    border-radius: 999px;
}

.ef-nav .nav-link:hover,
.ef-nav .nav-link:focus,
.ef-nav .nav-link.active {
    color: var(--ef-text);
    background: rgba(var(--bs-primary-rgb), 0.12);
}

.ef-nav .container,
.ef-nav .navbar-collapse,
.ef-nav .navbar-nav,
.ef-nav-tools {
    align-items: center;
}

.ef-nav .nav-item {
    display: flex;
    align-items: center;
}

.ef-nav .nav-link,
.ef-nav .ef-nav-join {
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.ef-nav-tools {
    display: flex;
    gap: 0.35rem;
}

.ef-nav-join {
    white-space: nowrap;
}

.dropdown-menu {
    border: 1px solid var(--ef-line);
    border-radius: 14px;
    box-shadow: var(--ef-shadow);
    padding: 0.4rem;
}

.dropdown-item {
    border-radius: 10px;
}

.notifications-dropdown .dropdown-menu {
    min-width: 320px;
}

.ef-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(560px, 86vh, 820px);
    overflow: hidden;
    color: #f4f7fb;
    background: #070b10 center / cover no-repeat;
}

.ef-hero-video,
.ef-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ef-hero-video {
    object-fit: cover;
}

.ef-hero-shade {
    background:
        linear-gradient(180deg, rgba(7, 11, 16, 0.2) 0%, rgba(7, 11, 16, 0.28) 42%, rgba(7, 11, 16, 0.92) 100%),
        linear-gradient(90deg, rgba(7, 11, 16, 0.78), rgba(7, 11, 16, 0.18) 58%, rgba(7, 11, 16, 0.55));
}

.ef-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 4.5rem;
    padding-bottom: 3.25rem;
}

.ef-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 380px);
    gap: 2rem;
    align-items: end;
}

.ef-hero-solo {
    grid-template-columns: minmax(0, 760px);
}

.ef-hero h1 {
    margin: 0 0 0.9rem;
    color: #fff;
    font-size: clamp(3.2rem, 8vw, 6.4rem);
    font-weight: 700;
    line-height: 0.92;
}

.ef-lead {
    max-width: 38rem;
    margin-bottom: 1.5rem;
    color: rgba(244, 247, 251, 0.84);
    font-size: 1.12rem;
}

.ef-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ef-kicker {
    margin-bottom: 0.7rem;
    color: var(--bs-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ef-hero .ef-kicker {
    color: #fff;
}

.ef-glass {
    padding: 1.25rem;
    color: #e8eef3;
    background: rgba(8, 14, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.ef-server + .ef-server {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ef-server-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.ef-server-top h2,
.ef-glass h2 {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
}

.ef-pill {
    flex: 0 0 auto;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ef-pill-on {
    color: #083028;
    background: #8ee0c2;
}

.ef-pill-off {
    color: #fff;
    background: #9b3b3b;
}

.ef-glass .progress {
    height: 0.45rem;
    background: rgba(255, 255, 255, 0.12);
}

.ef-players,
.ef-address {
    margin: 0.7rem 0;
    color: rgba(244, 247, 251, 0.86);
}

.ef-btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.ef-btn-ghost:hover,
.ef-btn-ghost:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
}

.ef-section {
    padding: clamp(2.5rem, 6vw, 4.75rem) 0;
}

.ef-section-tight {
    padding-top: 0;
}

.ef-section-head {
    max-width: 40rem;
    margin-bottom: 1.5rem;
}

.ef-section-head h2,
.ef-panel h2,
.ef-discord h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.ef-section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    max-width: none;
}

.ef-more {
    color: var(--ef-text);
    font-weight: 800;
}

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

.ef-feature,
.ef-post,
.ef-panel,
.card {
    background: var(--ef-surface);
    border: 1px solid var(--ef-line);
    border-radius: var(--ef-radius);
    box-shadow: var(--ef-shadow);
}

.ef-feature,
.ef-post {
    padding: 1.2rem 1.2rem 1.3rem;
}

.ef-feature i {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 0.9rem;
    place-items: center;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 12px;
    font-size: 1.15rem;
}

.ef-feature h3,
.ef-post h3 {
    margin-bottom: 0.4rem;
    font-size: 1.12rem;
}

.ef-feature p,
.ef-post p,
.ef-panel p,
.ef-footer p {
    color: var(--ef-muted);
}

.ef-feature p:last-child,
.ef-post p:last-child {
    margin-bottom: 0;
}

.ef-panel {
    padding: clamp(1.25rem, 2vw, 2rem);
}

.ef-panel h2 {
    margin-bottom: 0.9rem;
}

.ef-panel code {
    color: var(--ef-text);
    background: rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 8px;
}

.ef-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.8fr);
    gap: 1.25rem;
    align-items: start;
}

.ef-split-solo {
    grid-template-columns: 1fr;
}

.ef-discord h2 {
    margin-bottom: 1rem;
}

.discord-wrapper,
.ef-video {
    overflow: hidden;
    background: #111820;
    border-radius: 14px;
}

.discord,
.discord-wrapper iframe {
    display: block;
    width: 100%;
    height: 460px;
    border: 0;
}

.ef-banner {
    display: block;
    overflow: hidden;
    border: 1px solid var(--ef-line);
    border-radius: 22px;
    box-shadow: var(--ef-shadow);
}

.ef-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.ef-post img {
    width: 100%;
    height: 180px;
    margin-bottom: 0.9rem;
    object-fit: cover;
    border-radius: 12px;
}

.ef-post h3 a {
    color: var(--ef-text);
}

.ef-post-date {
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
}

.ef-ratings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ef-ratings a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 1rem;
    background: var(--ef-surface);
    border: 1px solid var(--ef-line);
    border-radius: 16px;
}

.ef-ratings img {
    width: auto;
    max-width: 100%;
    max-height: 58px;
}

.card {
    color: var(--ef-text);
}

.card-body {
    padding: clamp(1.1rem, 2vw, 1.5rem);
}

.btn {
    border-radius: 12px;
    font-weight: 800;
}

.btn-primary,
.btn-outline-primary {
    box-shadow: none;
}

.btn-primary:hover,
.btn-outline-primary:hover {
    transform: translateY(-1px);
}

.form-control,
.form-select {
    color: var(--ef-text);
    background: var(--ef-surface);
    border-color: var(--ef-line);
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    color: var(--ef-text);
    background: var(--ef-surface);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.16);
}

.table {
    --bs-table-color: var(--ef-text);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--ef-line);
    --bs-table-striped-bg: rgba(var(--bs-primary-rgb), 0.06);
    --bs-table-hover-bg: rgba(var(--bs-primary-rgb), 0.08);
}

.alert,
.modal-content,
.list-group-item {
    border-color: var(--ef-line);
}

.alert,
.modal-content {
    border-radius: 16px;
}

.modal-content,
.list-group-item {
    color: var(--ef-text);
    background: var(--ef-surface);
}

.page-link {
    color: var(--ef-text);
    background: var(--ef-surface);
    border-color: var(--ef-line);
}

.link-primary:hover,
.link-primary:focus {
    color: var(--bs-primary) !important;
}

.ef-footer {
    padding: 3.5rem 0 1.5rem;
    color: #93a4b5;
    background: #081018;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ef-footer h2 {
    margin-bottom: 0.8rem;
    color: #f4f7fb;
    font-size: 1.15rem;
}

.ef-footer p {
    color: #93a4b5;
}

.ef-footer a {
    color: #f4f7fb;
}

.ef-footer a:hover {
    color: var(--bs-primary);
}

.ef-footer-links {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ef-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ef-social a {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    color: #f4f7fb;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    font-size: 1.15rem;
}

.ef-social a:hover {
    color: #081018;
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.ef-footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ef-footer-bar p {
    margin: 0;
}

@media (max-width: 991.98px) {
    .ef-nav .navbar-collapse {
        margin-top: 0.8rem;
        padding: 0.75rem;
        background: var(--ef-surface);
        border: 1px solid var(--ef-line);
        border-radius: 16px;
    }

    .ef-nav-tools,
    .ef-nav-tools .navbar-nav {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .ef-nav-join {
        width: 100%;
    }

    .ef-hero {
        align-items: center;
        min-height: 0;
    }

    .ef-hero-layout,
    .ef-split,
    .ef-ratings,
    .ef-section-head-row,
    .ef-footer-bar {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

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

    .ef-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.2rem);
    }
}

@media (max-width: 767.98px) {
    .ef-features,
    .ef-news {
        grid-template-columns: 1fr;
    }

    .ef-brand-text small {
        display: none;
    }

    .discord,
    .discord-wrapper iframe {
        height: 380px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ef-hero-video,
    .ef-screen-video {
        display: none;
    }

    .ef-canopy-planet,
    .ef-canopy-glass::after,
    .ef-hud,
    .ef-window,
    .ef-sun,
    .ef-moon,
    .ef-planet,
    .ef-bay,
    .ef-bridge .ef-nav .container {
        transform: none !important;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

:root {
    --px: 0;
    --py: 0;
}

body.ef-bridge {
    color: #e7eef4;
    background: #07090c;
}

.ef-bridge .ef-home {
    color: #e7eef4;
    background:
        linear-gradient(180deg, rgba(6, 8, 10, 0.25), rgba(6, 8, 10, 0.86)),
        url("../img/console-metal.jpg") center top / cover no-repeat;
}

.ef-bridge .ef-nav {
    background:
        linear-gradient(180deg, rgba(8, 10, 12, 0.15), rgba(8, 10, 12, 0.72)),
        url("../img/console-metal.jpg") center / cover;
    border-bottom: 1px solid rgba(214, 168, 92, 0.38);
}

.ef-bridge .ef-nav .container {
    transform: translate3d(calc(var(--px) * 8px), calc(var(--py) * 5px), 0);
    transition: transform 0.35s ease-out;
}

.ef-bridge .ef-brand,
.ef-bridge .ef-brand-text strong,
.ef-bridge .ef-nav .nav-link {
    color: #d7e0e6;
}

.ef-bridge .ef-brand-text small,
.ef-bridge .ef-kicker {
    color: #e7b15a;
}

.ef-bridge .ef-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.15rem;
    padding: 0 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #303840, #15191d);
    border: 1px solid rgba(214, 168, 92, 0.32);
    border-radius: 9px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 3px 0 #07090b;
}

.ef-bridge .ef-nav .nav-link::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #465058;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7);
}

.ef-bridge .ef-nav .nav-link:hover,
.ef-bridge .ef-nav .nav-link:focus {
    color: #fff;
    background: linear-gradient(180deg, #3a444d, #1b2126);
    transform: none;
}

.ef-bridge .ef-nav .nav-link:hover::before,
.ef-bridge .ef-nav .nav-link:focus::before,
.ef-bridge .ef-nav .nav-link.active::before {
    background: #8dffc0;
    box-shadow: 0 0 8px #8dffc0;
}

.ef-bridge .ef-nav .nav-link:active,
.ef-bridge .ef-nav .nav-link.is-down,
.ef-bridge .ef-nav .nav-link.active {
    color: #fff;
    background: linear-gradient(180deg, #1a2025, #101418);
    transform: none;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.55);
}

.ef-bridge .dropdown-menu {
    color: #e7eef4;
    background: #12181e;
    border-color: rgba(214, 168, 92, 0.32);
}

.ef-bridge .dropdown-item {
    color: #d5dde4;
}

.ef-bridge .dropdown-item:hover,
.ef-bridge .dropdown-item:focus {
    color: #fff;
    background: rgba(224, 146, 58, 0.18);
}

.ef-canopy {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: calc(100svh - 74px);
    overflow: hidden;
    color: #f4f7fb;
    background: #05070a;
    isolation: isolate;
}

.ef-canopy-sky,
.ef-canopy-glass,
.ef-window {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ef-canopy-sky {
    inset: -8%;
    z-index: 0;
}

.ef-nebula {
    position: absolute;
    inset: -4%;
    background: url("../img/space-nebula.jpg") center / cover no-repeat;
    animation: ef-drift 160s ease-in-out infinite alternate;
}

.ef-nebula-back {
    opacity: 0.55;
    mix-blend-mode: screen;
    animation-name: ef-drift-far;
    animation-duration: 240s;
    animation-direction: alternate-reverse;
    filter: saturate(1.3);
}

.ef-sun {
    position: absolute;
    z-index: 1;
    top: 10%;
    left: 46%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 6%, #ffe7b0 16%, rgba(255, 150, 40, 0.55) 38%, transparent 70%);
    filter: blur(0.4px);
    transform: translate3d(calc(var(--px) * -20px), calc(var(--py) * -13px), 0);
    transition: transform 0.5s ease-out;
}

.ef-planet {
    position: absolute;
    z-index: 2;
    left: -2%;
    bottom: -20%;
    width: min(940px, 66vw);
    aspect-ratio: 1;
    transform: translate3d(calc(var(--px) * -48px), calc(var(--py) * -32px), 0);
    transition: transform 0.9s ease-out;
}

.ef-planet-ball {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #041018;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.ef-spin {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: left center;
    background-size: 50% 100%;
    animation: ef-roll 520s linear infinite;
}

.ef-spin-ground {
    background-image: url("../img/planet-alien.jpg");
}

.ef-spin-storms,
.ef-spin-storms-alt {
    background-image: url("../img/planet-storms.jpg");
    mix-blend-mode: screen;
}

.ef-spin-storms {
    opacity: 0.72;
    animation-duration: 110s;
}

.ef-spin-storms-alt {
    opacity: 0.38;
    animation-duration: 76s;
    animation-direction: reverse;
}

.ef-glint {
    position: absolute;
    z-index: 2;
    left: 46%;
    top: 32%;
    width: 36%;
    height: 8%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.92), rgba(255, 214, 140, 0.4) 32%, transparent 70%);
    mix-blend-mode: screen;
    pointer-events: none;
    animation: ef-glint 42s ease-in-out infinite;
}

.ef-bolts {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ef-bolt {
    fill: none;
    stroke: #fff6c2;
    stroke-width: 0.7;
    stroke-linejoin: round;
    opacity: 0;
    filter: drop-shadow(0 0 1.5px #fff);
    animation: ef-flash 7s infinite;
}

.ef-bolt:nth-child(2) { animation-delay: 1.8s; animation-duration: 9s; }
.ef-bolt:nth-child(3) { animation-delay: 3.6s; animation-duration: 6.4s; }
.ef-bolt:nth-child(4) { animation-delay: 5.1s; animation-duration: 8.2s; }

.ef-planet-shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 50%;
    background:
        linear-gradient(128deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.72) 30%, rgba(0, 0, 0, 0.18) 48%, transparent 62%),
        radial-gradient(circle at 48% 48%, transparent 46%, rgba(0, 0, 0, 0.55) 78%, #000 100%);
    pointer-events: none;
}

.ef-planet-atm {
    position: absolute;
    inset: -1.2%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 70%, rgba(150, 210, 255, 0.16) 72.2%, rgba(255, 196, 130, 0.38) 73.6%, transparent 75.4%);
    pointer-events: none;
}

.ef-moon {
    position: absolute;
    z-index: 1;
    top: 14%;
    right: 11%;
    width: 86px;
    height: 76px;
    transform: translate3d(calc(var(--px) * -30px), calc(var(--py) * -18px), 0);
    transition: transform 0.7s ease-out;
}

.ef-moon-rock {
    width: 100%;
    height: 100%;
    background: url("../img/moon-phobos.jpg") center 42% / 168% no-repeat;
    border-radius: 48% 46% 50% 44%;
    animation: ef-tumble 96s linear infinite;
}

.ef-moon-shade {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(128deg, rgba(0, 0, 0, 0.62), transparent 58%);
    pointer-events: none;
}

@keyframes ef-roll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@keyframes ef-drift-far {
    from { transform: translate3d(calc(var(--px) * -6px), calc(var(--py) * -4px), 0) scale(1.08); }
    to { transform: translate3d(calc(-2% + var(--px) * -6px), calc(-0.8% + var(--py) * -4px), 0) scale(1.12); }
}

@keyframes ef-drift {
    from { transform: translate3d(calc(var(--px) * -16px), calc(var(--py) * -10px), 0) scale(1.06); }
    to { transform: translate3d(calc(-2.5% + var(--px) * -16px), calc(-1% + var(--py) * -10px), 0) scale(1.1); }
}

@keyframes ef-glint {
    0%, 100% { opacity: 0.35; transform: rotate(-28deg) translateX(-12%); }
    50% { opacity: 0.95; transform: rotate(-14deg) translateX(14%); }
}

@keyframes ef-flash {
    0%, 91%, 100% { opacity: 0; }
    92% { opacity: 1; }
    93% { opacity: 0.15; }
    94% { opacity: 0.9; }
    95.5% { opacity: 0; }
}

@keyframes ef-tumble {
    to { transform: rotate(360deg); }
}

.ef-canopy-glass {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(5, 7, 10, 0.28), transparent 22% 58%, rgba(5, 7, 10, 0.78)),
        radial-gradient(120% 90% at 50% 45%, transparent 46%, rgba(0, 0, 0, 0.5));
}

.ef-canopy-glass::after {
    content: "";
    position: absolute;
    inset: -15%;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.08) 49%, transparent 56%);
    transform: translate3d(calc(var(--px) * 54px), calc(var(--py) * 34px), 0);
    transition: transform 0.18s ease-out;
}

.ef-window {
    z-index: 2;
    transform: translate3d(calc(var(--px) * 14px), calc(var(--py) * 8px), 0);
    transition: transform 0.28s ease-out;
}

.ef-rail-top,
.ef-rail-left,
.ef-rail-right,
.ef-rail-sill {
    position: absolute;
    background: #101418;
    box-shadow: inset 0 0 0 1px rgba(214, 168, 92, 0.28);
}

.ef-rail-top {
    top: 0;
    right: 0;
    left: 0;
    height: 18px;
    background: linear-gradient(180deg, #1c242c, #0c1014);
}

.ef-rail-left,
.ef-rail-right {
    top: 0;
    bottom: 46px;
    width: 34px;
    background: linear-gradient(90deg, #0c1014, #24303a 46%, #0c1014);
}

.ef-rail-left { left: 0; }
.ef-rail-right { right: 0; }

.ef-rail-sill {
    right: 0;
    bottom: 0;
    left: 0;
    height: 52px;
    background:
        radial-gradient(circle at 8% 48%, #8dffc0 0 3px, transparent 4px),
        radial-gradient(circle at 11% 48%, #e7b15a 0 3px, transparent 4px),
        radial-gradient(circle at 14% 48%, #8ec8ff 0 3px, transparent 4px),
        linear-gradient(180deg, #3a3124, #14110d 28%, #07080a);
    box-shadow: inset 0 1px 0 rgba(232, 196, 140, 0.5);
}

.ef-hud {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 4.5rem 0 4.75rem;
    transform: translate3d(calc(var(--px) * 22px), calc(var(--py) * 14px), 0);
    transition: transform 0.22s ease-out;
}

.ef-canopy h1,
.ef-mark {
    margin: 0 0 0.85rem;
    color: #f5f8fb;
    font-size: clamp(3rem, 7vw, 5.6rem);
    font-weight: 700;
    line-height: 0.92;
    text-shadow:
        1px -1px 0 #fff4dc,
        -1px 1px 0 #d5dee6,
        -2px 3px 0 #b4c0ca,
        -3px 5px 0 #8c9aa6,
        -4px 7px 0 #667480,
        -5px 9px 0 #46525c,
        -6px 12px 0 #2c3640,
        -8px 16px 22px rgba(0, 0, 0, 0.62);
}

.ef-mark {
    position: relative;
    display: inline-block;
}

.ef-mark::after {
    content: attr(data-depth);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    color: transparent;
    transform: translate(-7px, 12px);
    text-shadow: -1px 1px 0 rgba(255, 214, 150, 0.18);
}

.ef-mfd {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 24, 28, 0.9), rgba(6, 10, 14, 0.94));
    border: 1px solid rgba(126, 210, 196, 0.4);
    border-radius: 18px;
    box-shadow: inset 0 0 32px rgba(70, 180, 160, 0.12), 0 8px 0 rgba(0, 0, 0, 0.4);
}

.ef-mfd::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, rgba(180, 255, 236, 0.05) 0 1px, transparent 1px 4px);
}

.ef-mfd > * {
    position: relative;
    z-index: 1;
}

.ef-monitors {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ef-screen {
    padding: 0.7rem 0.7rem 0.75rem;
}

.ef-screen .ef-kicker {
    margin: 0 0.35rem 0.45rem;
}

.ef-screen-glass {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #05080c center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(180, 255, 236, 0.22);
}

.ef-screen-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ef-screen-glass::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 34%),
        repeating-linear-gradient(to bottom, rgba(180, 255, 236, 0.045) 0 1px, transparent 1px 4px);
}

.ef-bay {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    transform: translate3d(calc(var(--px) * 12px), calc(var(--py) * 8px), 0);
    transition: transform 0.12s ease-out;
    border-radius: 22px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.ef-bay-hull {
    display: block;
    width: 100%;
    height: auto;
}

.ef-bay .ef-screen-glass {
    position: absolute;
    left: 21%;
    top: 24%;
    width: 61%;
    height: 46%;
    aspect-ratio: auto;
    border-radius: 6px;
    clip-path: polygon(15% 0, 82% 0, 100% 100%, 2% 100%);
}

.ef-bay .ef-screen-glass::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%),
        repeating-linear-gradient(to bottom, rgba(180, 255, 236, 0.05) 0 1px, transparent 1px 3px);
}

.ef-bridge .btn {
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 0 rgba(0, 0, 0, 0.45);
}

.ef-bridge .btn:hover,
.ef-bridge .ef-banner:hover,
.ef-bridge .ef-feature:hover,
.ef-bridge .ef-ratings a:hover {
    transform: translateY(-3px);
}

.ef-bridge .btn:active,
.ef-bridge .btn.is-down,
.ef-bridge .ef-banner:active,
.ef-bridge .ef-banner.is-down,
.ef-bridge .ef-feature.is-down,
.ef-bridge .ef-ratings a.is-down {
    transform: translateY(4px);
    filter: brightness(0.82);
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.6);
}

.ef-bridge .ef-nav .ef-nav-join:hover,
.ef-bridge .ef-nav .ef-nav-join:active,
.ef-bridge .ef-nav .ef-nav-join.is-down {
    transform: none;
}

.ef-bridge .ef-btn-ghost {
    background: linear-gradient(180deg, rgba(36, 44, 52, 0.9), rgba(14, 18, 22, 0.9));
    border-color: rgba(214, 168, 92, 0.4);
}

.ef-bridge .ef-section {
    background: transparent;
}

.ef-bridge .ef-section-head h2,
.ef-bridge .ef-panel h2,
.ef-bridge .ef-feature h3,
.ef-bridge .ef-post h3 a,
.ef-bridge .ef-discord h2,
.ef-bridge .ef-more {
    color: #f4f7fb;
}

.ef-bridge .ef-feature p,
.ef-bridge .ef-post p,
.ef-bridge .ef-panel p,
.ef-bridge .ef-post-date {
    color: #9eb0bd;
}

.ef-bridge .ef-feature,
.ef-bridge .ef-panel,
.ef-bridge .ef-post,
.ef-bridge .ef-ratings a {
    color: #e7eef4;
    background: rgba(8, 12, 16, 0.78);
    border-color: rgba(214, 168, 92, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 0 rgba(0, 0, 0, 0.28);
}

.ef-bridge .ef-feature {
    position: relative;
}

.ef-bridge .ef-feature::after {
    content: "";
    position: absolute;
    inset: 8px;
    pointer-events: none;
    border: 1px solid rgba(142, 200, 255, 0.16);
    border-radius: 12px;
}

.ef-bridge .ef-banner {
    border-color: rgba(214, 168, 92, 0.35);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
}

.ef-bridge .btn:focus-visible,
.ef-bridge .nav-link:focus-visible,
.ef-bridge .ef-banner:focus-visible {
    outline: 2px solid #e7b15a;
    outline-offset: 3px;
}

body:not(.ef-bridge) {
    background:
        radial-gradient(900px 320px at 100% -10%, rgba(var(--bs-primary-rgb), 0.14), transparent 60%),
        #0c1014;
    color: #e7eef4;
}

body:not(.ef-bridge) main.content,
body:not(.ef-bridge) .card,
body:not(.ef-bridge) .modal-content {
    position: relative;
    color: #e7eef4;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 18%),
        linear-gradient(165deg, #3c4651 0%, #2a333c 16%, #1a2128 48%, #12181e 100%);
    border: 1px solid rgba(214, 168, 92, 0.46);
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 -3px 0 rgba(0, 0, 0, 0.45),
        inset 8px 0 12px rgba(255, 255, 255, 0.04),
        inset -8px 0 12px rgba(0, 0, 0, 0.25),
        0 8px 0 #0b0e12,
        0 16px 28px rgba(0, 0, 0, 0.38);
}

body:not(.ef-bridge) main.content {
    margin-top: 1.35rem;
    padding: 1.5rem 1.25rem 1.75rem;
}

body:not(.ef-bridge) main.content::before,
body:not(.ef-bridge) .card::before,
body:not(.ef-bridge) .modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    pointer-events: none;
    background-image:
        radial-gradient(circle, #e7edf2 0 2px, #8b97a2 2.2px, #2a3138 3.6px, transparent 4.6px),
        radial-gradient(circle, #e7edf2 0 2px, #8b97a2 2.2px, #2a3138 3.6px, transparent 4.6px),
        radial-gradient(circle, #e7edf2 0 2px, #8b97a2 2.2px, #2a3138 3.6px, transparent 4.6px),
        radial-gradient(circle, #e7edf2 0 2px, #8b97a2 2.2px, #2a3138 3.6px, transparent 4.6px);
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-size: 34px 12px, 34px 12px, 12px 34px, 12px 34px;
    background-position: top 6px left 16px, bottom 6px left 16px, left 6px top 16px, right 6px top 16px;
}

body:not(.ef-bridge) main.content > h1,
body:not(.ef-bridge) main.content h2,
body:not(.ef-bridge) main.content h3,
body:not(.ef-bridge) .card,
body:not(.ef-bridge) .modal-content {
    color: #f4f7fb;
}

body:not(.ef-bridge) .card,
body:not(.ef-bridge) .modal-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 22%),
        linear-gradient(180deg, #46515c, #2c353e 20%, #171d24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -4px 0 rgba(0, 0, 0, 0.5),
        inset 0 18px 16px rgba(255, 255, 255, 0.04),
        0 6px 0 #0a0d10,
        0 12px 20px rgba(0, 0, 0, 0.35);
}

body:not(.ef-bridge) .card-body,
body:not(.ef-bridge) .modal-body {
    position: relative;
    z-index: 1;
    margin: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.03));
    box-shadow:
        inset 0 10px 16px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body:not(.ef-bridge) .card-header,
body:not(.ef-bridge) .modal-header,
body:not(.ef-bridge) .modal-footer {
    position: relative;
    z-index: 1;
    color: #f4f7fb;
    background: transparent;
    border-color: rgba(214, 168, 92, 0.28);
}

@media (max-width: 991.98px) {
    .ef-canopy {
        min-height: 0;
    }

    .ef-bridge .ef-nav .nav-link,
    .ef-nav .nav-link,
    .ef-nav .ef-nav-join {
        width: 100%;
        height: auto;
        min-height: 42px;
    }

    .ef-rail-left,
    .ef-rail-right {
        width: 16px;
    }

    .ef-rail-sill {
        height: 28px;
    }

    .ef-hud {
        padding: 2.4rem 0 2.6rem;
    }

    .ef-planet {
        left: -18%;
        bottom: -34%;
        width: 120vw;
    }

    .ef-sun {
        top: 16%;
        left: 46%;
        width: 110px;
        height: 110px;
    }
}

