:root {
    --red: #d72a35;
    --gold: #d8a753;
    --gold-soft: #f1d29a;
    --blue: #3e6cff;
    --ink: #f7f1e8;
    --surface: #07080c;
    --display: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --rail-width: 250px;
    --mobile-header-height: 64px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    background: var(--surface);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    color: var(--ink);
    background: var(--surface);
    font-family: var(--sans);
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
    cursor: pointer;
}

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

svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.background {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
}

.background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.08) brightness(.82);
}

.background-shade,
.background-noise {
    position: absolute;
    inset: 0;
}

.background-shade {
    background:
        linear-gradient(90deg, rgba(3, 6, 15, .38), rgba(7, 7, 11, .12) 22%, rgba(8, 6, 9, .12) 78%, rgba(18, 3, 5, .42)),
        radial-gradient(circle at 50% 18%, transparent, rgba(3, 4, 8, .26) 76%);
}

.background-noise {
    opacity: .032;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.scroll-progress {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, .05);
}

.scroll-progress span {
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
    box-shadow: 0 0 12px rgba(215, 42, 53, .62);
}

.mobile-header {
    display: none;
}

.side-rail {
    position: fixed;
    z-index: 60;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-width);
    padding: 42px 14px 124px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.side-rail::after {
    display: none;
}

.mobile-logo img {
    width: 100%;
    max-height: 106px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .48));
}

.main-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-nav > a {
    position: relative;
    width: 100%;
    min-height: 78px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 30px 1fr 17px;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    border: 1px solid rgba(216, 167, 83, .3);
    background: linear-gradient(105deg, rgba(57, 8, 13, .9), rgba(19, 15, 17, .96) 76%);
    box-shadow: inset 3px 0 var(--gold), 0 10px 24px rgba(0, 0, 0, .2);
    color: #fff4e4;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.main-nav > a::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-105%);
    background: linear-gradient(100deg, rgba(159, 22, 33, .42), transparent 68%);
    transition: transform .32s ease;
}

.main-nav > a:hover {
    transform: translateX(4px);
    border-color: rgba(235, 191, 111, .62);
    background: linear-gradient(105deg, rgba(82, 10, 17, .96), rgba(26, 18, 20, .98) 76%);
}

.main-nav > a:hover::before {
    transform: translateX(0);
}

.main-nav > a > i {
    position: relative;
    z-index: 1;
    width: 26px;
    text-align: center;
    font-size: 21px;
    color: var(--gold);
}

.main-nav > a span {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.main-nav > a small,
.main-nav > a strong {
    display: block;
    text-transform: uppercase;
}

.main-nav > a small {
    margin-bottom: 6px;
    color: #9c908c;
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .14em;
}

.main-nav > a strong {
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .12em;
}

.main-nav > a .nav-arrow {
    width: auto;
    font-size: 13px;
    color: var(--gold-soft);
}

.main-nav > a.download-link {
    background: linear-gradient(105deg, rgba(69, 46, 16, .92), rgba(23, 17, 13, .97) 78%);
}

.rail-socials {
    position: static;
    width: 100%;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.rail-socials a,
.footer-socials a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(216, 167, 83, .24);
    background: rgba(255, 255, 255, .025);
    color: #a9a09c;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.rail-socials a:hover,
.footer-socials a:hover {
    color: var(--gold-soft);
    border-color: rgba(216, 167, 83, .56);
    transform: translateY(-2px);
}

.rail-socials i,
.footer-socials i {
    font-size: 16px;
}

.menu-toggle,
.menu-overlay {
    display: none;
}

.content-shell {
    position: relative;
    z-index: 1;
    margin-left: var(--rail-width);
}

.promo-stream {
    width: min(1000px, calc(100% - 24px));
    margin: 0 auto;
}

.promo-page {
    position: relative;
    margin: 0;
    scroll-margin-top: 0;
    background: transparent;
    box-shadow: none;
}

.promo-page + .promo-page {
    margin-top: 0;
}

.promo-page > img,
.promo-media {
    width: 100%;
    height: auto;
    vertical-align: top;
}

.promo-media-video {
    display: block;
    object-fit: cover;
}

.promo-media-fallback {
    display: none;
}

.promo-page-main.video-fallback .promo-media-video {
    display: none;
}

.promo-page-main.video-fallback .promo-media-fallback {
    display: block;
}

.promo-page-wide {
    overflow: hidden;
}

.promo-page-wide > img {
    object-fit: contain;
    filter: none;
}

.promo-end {
    min-height: 550px;
    padding: 72px 36px 112px;
    display: grid;
    place-content: center;
    justify-items: center;
    border-top: 1px solid rgba(216, 167, 83, .32);
    background:
        linear-gradient(rgba(7, 7, 10, .76), rgba(7, 7, 10, .96)),
        url("../images/footer-section.png") center / cover;
    text-align: center;
}

.promo-end > img {
    width: min(470px, 90%);
}

.promo-end > p {
    margin: -7px 0 30px;
    color: var(--gold-soft);
    font: 500 26px/1 var(--display);
}

.footer-actions {
    display: flex;
    gap: 12px;
}

.end-button {
    width: 230px;
    min-height: 62px;
    padding: 0 17px;
    display: grid;
    grid-template-columns: 24px 1fr 16px;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(216, 167, 83, .38);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.end-button-red {
    background: linear-gradient(90deg, #3c080d, #7b151e);
}

.end-button-gold {
    background: linear-gradient(90deg, #22180d, #685027);
}

.end-button i {
    font-size: 17px;
    color: var(--gold-soft);
}

.footer-socials {
    margin-top: 26px;
    display: flex;
    gap: 8px;
}

.promo-end > small {
    margin-top: 22px;
    color: #6e686b;
    font-size: 8px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.discord-banner {
    position: fixed;
    z-index: 63;
    left: 24px;
    right: auto;
    bottom: 24px;
    width: 306px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(216, 167, 83, .72);
    border-radius: 1px;
    background:
        radial-gradient(circle at 18% 38%, rgba(21, 91, 140, .3), transparent 28%),
        radial-gradient(circle at 74% 35%, rgba(155, 17, 27, .3), transparent 34%),
        linear-gradient(115deg, rgba(5, 13, 23, .98), rgba(10, 8, 10, .99) 48%, rgba(54, 9, 12, .98));
    background-size: 190% 100%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .56), 0 0 27px rgba(181, 29, 39, .22), inset 0 1px rgba(245, 207, 143, .1);
    animation: discord-panel-in .65s cubic-bezier(.2, .8, .2, 1) both, discord-panel-border 3.6s ease-in-out .65s infinite, discord-panel-color 5.4s ease-in-out .65s infinite;
}

.discord-banner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(to bottom, transparent, #a7131d 20%, #f4d594 50%, #d7a44e 80%, transparent);
    box-shadow: 0 0 16px rgba(215, 42, 53, .72);
    pointer-events: none;
    animation: discord-edge-signal 2.8s ease-in-out infinite;
}

.discord-banner::after {
    content: "";
    position: absolute;
    left: -45%;
    top: 0;
    width: 45%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b31924 35%, #ffe4ad 50%, #d8a753 65%, transparent);
    box-shadow: 0 0 11px rgba(215, 42, 53, .58);
    animation: discord-top-scan 3.2s ease-in-out infinite;
}

.discord-banner-main {
    position: relative;
    min-height: 74px;
    padding: 8px 14px 8px 8px;
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 8px;
}

.discord-logo {
    position: relative;
    width: 76px;
    height: 56px;
    display: grid;
    place-items: center;
}

.discord-logo::before {
    content: "";
    position: absolute;
    inset: 5px 8px;
    border-radius: 50%;
    background: conic-gradient(from 30deg, rgba(28, 115, 183, .72), rgba(16, 45, 84, .22), rgba(197, 20, 31, .82), rgba(89, 8, 13, .26), rgba(28, 115, 183, .72));
    filter: blur(7px);
    opacity: .82;
    animation: discord-logo-aura 4s linear infinite;
}

.discord-logo img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(215, 42, 53, .5)) drop-shadow(0 0 8px rgba(43, 120, 191, .36));
}

.discord-banner-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.discord-banner-copy strong {
    overflow: hidden;
    color: #f5c86f;
    font: 700 20px/1 var(--display);
    letter-spacing: .035em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 0 #4e2107, 0 0 12px rgba(215, 42, 53, .34);
    animation: discord-title-signal 3s ease-in-out infinite;
}

.discord-banner-copy small {
    color: #d5cbc0;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.discord-banner-cta {
    position: relative;
    min-height: 36px;
    display: grid;
    grid-template-columns: .9fr 1.4fr;
    align-items: center;
    overflow: hidden;
    border-top: 1px solid rgba(222, 176, 94, .76);
    color: #fff5e2;
    background: #09090c;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
    box-shadow: inset 0 1px rgba(255, 224, 169, .1);
}

.discord-banner-cta::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: -35%;
    width: 26%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 230, 180, .28), transparent);
    animation: discord-cta-sweep 3.4s ease-in-out infinite;
}

.discord-banner-cta > span,
.discord-banner-cta > strong {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
}

.discord-banner-cta > span {
    padding: 0 12px;
    color: #dcecff;
    background: linear-gradient(100deg, #09253c, #0c456c);
    border-right: 1px solid rgba(219, 171, 87, .62);
}

.discord-banner-cta > span i {
    font-size: 13px;
}

.discord-banner-cta > strong {
    padding: 0 12px;
    justify-content: space-between;
    color: #fff0cf;
    background: linear-gradient(100deg, #650b12, #9d1822 56%, #8a6226);
}

.discord-banner-cta > strong i {
    font-size: 10px;
    animation: discord-arrow-step 2.6s ease-in-out infinite;
}

.discord-banner-cta:hover > span {
    background: linear-gradient(100deg, #0b3151, #12618e);
}

.discord-banner-cta:hover > strong {
    background: linear-gradient(100deg, #7b0d15, #bd202c 56%, #ad7e32);
}

@keyframes discord-panel-in {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes discord-panel-border {
    0%, 100% { border-color: rgba(181, 126, 51, .58); box-shadow: 0 18px 45px rgba(0, 0, 0, .56), 0 0 20px rgba(161, 20, 30, .18), inset 0 1px rgba(236, 188, 105, .08); }
    50% { border-color: rgba(239, 199, 125, .96); box-shadow: 0 18px 45px rgba(0, 0, 0, .56), 0 0 34px rgba(200, 31, 41, .34), inset 0 1px rgba(255, 224, 167, .15); }
}

@keyframes discord-panel-color {
    0%, 100% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes discord-edge-signal {
    0%, 100% { opacity: .45; transform: scaleY(.48); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes discord-top-scan {
    0%, 12% { left: -45%; opacity: 0; }
    36%, 64% { opacity: 1; }
    88%, 100% { left: 100%; opacity: 0; }
}

@keyframes discord-logo-aura {
    to { transform: rotate(360deg); }
}

@keyframes discord-title-signal {
    0%, 100% { color: #ead1a5; text-shadow: 0 0 6px rgba(185, 32, 41, .2); }
    50% { color: #fff3d8; text-shadow: 0 0 15px rgba(226, 166, 72, .48); }
}

@keyframes discord-cta-sweep {
    0%, 18% { left: -35%; opacity: 0; }
    38%, 64% { opacity: 1; }
    84%, 100% { left: 112%; opacity: 0; }
}

@keyframes discord-arrow-step {
    0%, 100% { transform: translate(0, 0); opacity: .55; }
    50% { transform: translate(3px, -3px) scale(1.12); opacity: 1; }
}

@media (max-width: 800px) {
    body {
        padding-bottom: 82px;
    }

    .background video {
        filter: saturate(1.06) contrast(1.06) brightness(.76);
    }

    .mobile-header {
        position: fixed;
        z-index: 70;
        top: 0;
        left: 0;
        right: 0;
        height: var(--mobile-header-height);
        padding: 0 12px 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(216, 167, 83, .28);
        background: rgba(7, 7, 10, .98);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
    }

    .mobile-header::after {
        content: "";
        position: absolute;
        left: 10%;
        right: 10%;
        bottom: -1px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--red), var(--gold), var(--blue), transparent);
        opacity: .72;
    }

    .mobile-logo {
        width: 132px;
    }

    .menu-toggle {
        position: relative;
        z-index: 72;
        width: 46px;
        height: 46px;
        padding: 0;
        display: grid;
        place-content: center;
        gap: 5px;
        border: 1px solid rgba(216, 167, 83, .42);
        background: rgba(13, 11, 14, .9);
    }

    .menu-toggle span {
        width: 20px;
        height: 1px;
        background: var(--gold-soft);
        transition: transform .23s ease, opacity .23s ease;
    }

    .menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .side-rail {
        position: fixed;
        z-index: 68;
        top: var(--mobile-header-height);
        left: 0;
        bottom: 0;
        width: min(320px, 88vw);
        padding: 22px 16px 96px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        transform: translateX(-105%);
        border-right: 1px solid rgba(216, 167, 83, .24);
        background: linear-gradient(rgba(7, 7, 10, .84), rgba(7, 7, 10, .94));
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 18px 0 45px rgba(0, 0, 0, .52);
        overflow-y: auto;
        transition: transform .28s ease;
    }

    .menu-open .side-rail {
        transform: translateX(0);
    }

    .side-rail::after {
        display: none;
    }

    .main-nav > a {
        min-height: 70px;
        grid-template-columns: 28px 1fr 16px;
        padding: 0 15px;
    }

    .main-nav > a:hover {
        transform: none;
    }

    .main-nav > a > i {
        font-size: 19px;
    }

    .main-nav > a small {
        font-size: 7px;
    }

    .main-nav > a strong {
        font-size: 10px;
    }

    .rail-socials {
        position: static;
        margin-top: auto;
        padding-top: 20px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .rail-socials a {
        width: 100%;
        height: 44px;
    }

    .menu-overlay {
        position: fixed;
        z-index: 64;
        inset: var(--mobile-header-height) 0 0;
        display: block;
        visibility: hidden;
        opacity: 0;
        border: 0;
        background: rgba(2, 3, 6, .74);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        transition: opacity .25s ease, visibility .25s ease;
    }

    .menu-open .menu-overlay {
        visibility: visible;
        opacity: 1;
    }

    .content-shell {
        margin-left: 0;
        padding-top: var(--mobile-header-height);
    }

    .promo-stream {
        width: 100%;
    }

    .promo-page {
        scroll-margin-top: var(--mobile-header-height);
        box-shadow: none;
    }

    .promo-end {
        min-height: 500px;
        padding: 62px 16px 96px;
    }

    .promo-end > img {
        width: min(410px, 96%);
    }

    .promo-end > p {
        font-size: 22px;
    }

    .footer-actions {
        width: min(100%, 360px);
        display: grid;
    }

    .end-button {
        width: 100%;
    }

    .discord-banner {
        left: 12px;
        right: auto;
        bottom: 12px;
        width: min(306px, calc(100vw - 24px));
    }

    .discord-banner-main {
        min-height: 68px;
        grid-template-columns: 68px 1fr;
    }

    .discord-logo {
        width: 68px;
        height: 50px;
    }

    .discord-banner-copy strong {
        font-size: 18px;
    }

    .discord-banner-cta {
        min-height: 35px;
    }
}

@media (max-width: 420px) {
    .mobile-logo {
        width: 120px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
