:root {
    --links-bg: #050c12;
    --links-surface: #0b1822;
    --links-surface-2: #0f202b;
    --links-border: rgba(190, 221, 235, .14);
    --links-muted: #9db2be;
    --links-lime: #b6ff00;
    --links-cyan: #39e6ff;
}

html {
    scroll-behavior: smooth;
}

body.links-page {
    min-height: 100vh;
    color: #f5fbf8;
    background:
        radial-gradient(circle at 7% 2%, rgba(182, 255, 0, .12), transparent 29rem),
        radial-gradient(circle at 94% 18%, rgba(57, 230, 255, .08), transparent 30rem),
        var(--links-bg);
}

.links-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.links-header {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 50;
    width: min(1180px, calc(100% - 32px));
    margin: 0;
    transform: translateX(-50%);
}

.links-main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 64px) 0 86px;
}

.links-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 28px 54px;
    align-items: end;
    min-height: 540px;
    padding: clamp(32px, 7vw, 78px);
    overflow: hidden;
    border: 1px solid rgba(182, 255, 0, .25);
    border-radius: 34px;
    background:
        linear-gradient(120deg, rgba(15, 38, 43, .97), rgba(7, 18, 27, .98) 62%),
        var(--links-surface);
    box-shadow: 0 35px 95px rgba(0, 0, 0, .34);
}

.links-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .25;
    background:
        linear-gradient(125deg, transparent 42%, rgba(182, 255, 0, .13)),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 70px);
}

.links-profile {
    position: absolute;
    top: clamp(28px, 5vw, 55px);
    right: clamp(28px, 5vw, 56px);
    display: flex;
    align-items: center;
    gap: 13px;
}

.links-logo {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(182, 255, 0, .24);
    border-radius: 19px;
    background: rgba(5, 14, 20, .65);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
}

.links-logo img {
    width: 46px;
    height: 46px;
}

.links-online {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: #d9e7ed;
    background: rgba(5, 14, 20, .55);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .02em;
    backdrop-filter: blur(12px);
}

.links-online i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--links-lime);
    box-shadow: 0 0 0 5px rgba(182, 255, 0, .1);
}

.links-hero-copy {
    align-self: end;
    max-width: 720px;
}

.links-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--links-lime);
    font-size: .77rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.links-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.links-hero h1 {
    max-width: 800px;
    margin: 0;
    color: #f8fdfb;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(2.65rem, 6vw, 5.25rem);
    line-height: .98;
    letter-spacing: -.057em;
    text-wrap: balance;
}

.links-hero h1 em {
    color: var(--links-lime);
    font-style: normal;
}

.links-hero-copy > p:last-child {
    max-width: 710px;
    margin: 25px 0 0;
    color: #b2c4cd;
    font-size: clamp(1rem, 1.7vw, 1.16rem);
    line-height: 1.75;
}

.links-hero-actions {
    display: grid;
    gap: 12px;
    align-self: end;
}

.links-main-button {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    min-height: 88px;
    padding: 16px 20px;
    border-radius: 20px;
    color: #0a1700;
    background: var(--links-lime);
    box-shadow: 0 18px 45px rgba(182, 255, 0, .18);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.links-main-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 23px 56px rgba(182, 255, 0, .25);
}

.links-button-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: rgba(10, 23, 0, .1);
    font-size: 1.18rem;
}

.links-main-button span:not(.links-button-icon) {
    display: grid;
    gap: 2px;
}

.links-main-button small {
    color: rgba(10, 23, 0, .62);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.links-main-button strong {
    font-size: 1.05rem;
}

.links-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
    color: #edf7fa;
    background: rgba(255, 255, 255, .06);
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.links-share-button:hover {
    border-color: rgba(182, 255, 0, .36);
    background: rgba(182, 255, 0, .08);
}

.links-always-online {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 6px 0 -18px;
    color: #8198a4;
    font-size: .78rem;
}

.links-always-online i {
    color: var(--links-lime);
}

.links-hero-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(182, 255, 0, .15);
    border-radius: 50%;
}

.links-orbit-one {
    width: 410px;
    height: 410px;
    top: -230px;
    left: -90px;
}

.links-orbit-two {
    width: 270px;
    height: 270px;
    right: -100px;
    bottom: -110px;
    border-width: 50px;
    opacity: .32;
}

.links-section {
    padding: clamp(54px, 8vw, 92px) 0 0;
    scroll-margin-top: 100px;
}

.links-section-heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.links-section-number {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(182, 255, 0, .28);
    border-radius: 13px;
    color: var(--links-lime);
    background: rgba(182, 255, 0, .07);
    font-size: .75rem;
    font-weight: 900;
}

.links-section-heading .links-kicker {
    margin: 1px 0 5px;
    font-size: .68rem;
}

.links-section-heading h2 {
    margin: 0;
    color: #f6fcf9;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.links-grid-featured .link-card-map {
    grid-row: span 2;
    align-content: center;
    min-height: 230px;
    background:
        radial-gradient(circle at 90% 10%, rgba(182, 255, 0, .16), transparent 42%),
        linear-gradient(145deg, rgba(16, 40, 37, .98), rgba(8, 23, 31, .98));
}

.link-card {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 112px;
    padding: 21px;
    overflow: hidden;
    border: 1px solid var(--links-border);
    border-radius: 21px;
    color: inherit;
    background: linear-gradient(145deg, rgba(14, 32, 43, .94), rgba(7, 19, 28, .96));
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.link-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -90px;
    bottom: -90px;
    border: 24px solid rgba(182, 255, 0, .035);
    border-radius: 50%;
}

.link-card:hover {
    z-index: 2;
    transform: translateY(-3px);
    border-color: rgba(182, 255, 0, .3);
    background: linear-gradient(145deg, rgba(18, 42, 50, .98), rgba(8, 23, 32, .98));
}

.link-card > i:last-child,
.social-link > i:last-child,
.links-documents > a > i:last-child {
    color: #6f8794;
    font-size: .8rem;
    transition: color .2s ease, transform .2s ease;
}

.link-card:hover > i:last-child,
.social-link:hover > i:last-child,
.links-documents > a:hover > i:last-child {
    color: var(--links-lime);
    transform: translate(2px, -2px);
}

.link-card-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    color: #102000;
    background: var(--links-lime);
    font-size: 1.15rem;
}

.link-card-icon.is-blue { color: #03161c; background: #4edcff; }
.link-card-icon.is-violet { color: #100a20; background: #a78bfa; }
.link-card-icon.is-orange { color: #211000; background: #ffac4d; }
.link-card-icon.is-cyan { color: #03181b; background: #4cf4e5; }
.link-card-icon.is-pink { color: #210918; background: #ff7fcb; }
.link-card-icon.is-yellow { color: #241a00; background: #ffd95c; }
.link-card-icon.is-download { color: #06200e; background: #67df78; }
.link-card-icon.is-pwa { color: #04181b; background: #5cebf2; }

button.link-card {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

button.link-card.is-installed {
    border-color: rgba(182, 255, 0, 0.35);
}

.link-card-copy {
    display: grid;
    min-width: 0;
}

.link-card-copy small {
    margin-bottom: 3px;
    color: #829aa7;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.link-card-copy strong {
    color: #f3fafc;
    font-size: 1rem;
}

.link-card-copy em {
    margin-top: 5px;
    overflow: hidden;
    color: #96abb6;
    font-size: .79rem;
    font-style: normal;
    line-height: 1.45;
}

.links-account-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 14px;
    padding: 22px 24px;
    border: 1px solid rgba(182, 255, 0, .19);
    border-radius: 21px;
    background: rgba(182, 255, 0, .055);
}

.links-account-strip > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.links-account-strip > div > i {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 13px;
    color: var(--links-lime);
    background: rgba(182, 255, 0, .1);
}

.links-account-strip span {
    display: grid;
}

.links-account-strip small {
    color: #87a08e;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.links-account-strip strong {
    color: #eaf5ef;
    font-size: .9rem;
}

.links-account-strip nav {
    display: flex;
    gap: 8px;
}

.links-account-strip nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    color: #eaf5ef;
    background: rgba(255, 255, 255, .055);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

.links-account-strip nav a:last-child {
    border-color: var(--links-lime);
    color: #0a1700;
    background: var(--links-lime);
}

.links-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.social-link {
    --social: #8b9aa5;
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) auto;
    gap: 17px;
    align-items: center;
    min-height: 112px;
    padding: 21px;
    border: 1px solid color-mix(in srgb, var(--social) 28%, transparent);
    border-radius: 21px;
    color: inherit;
    background:
        radial-gradient(circle at 98% 4%, color-mix(in srgb, var(--social) 13%, transparent), transparent 40%),
        rgba(8, 21, 31, .92);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--social) 52%, transparent);
}

.social-link > i:first-child {
    display: grid;
    width: 55px;
    height: 55px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: var(--social);
    font-size: 1.3rem;
}

.social-link span {
    display: grid;
    min-width: 0;
}

.social-link small {
    color: #8298a5;
    font-size: .66rem;
}

.social-link strong {
    margin: 2px 0;
    color: #f3f9fc;
    font-size: 1rem;
}

.social-link em {
    color: var(--social);
    font-size: .76rem;
    font-style: normal;
    font-weight: 800;
}

.social-link.is-discord { --social: #5865f2; grid-column: 1 / -1; }
.social-link.is-instagram { --social: #e44586; }
.social-link.is-facebook { --social: #1877f2; }
.social-link.is-youtube { --social: #ff0033; }
.social-link.is-tiktok { --social: #1adad2; }
.social-link.is-x { --social: #a8b6bf; }
.social-link.is-patreon { --social: #ff6b4a; }

.links-section-last {
    padding-bottom: 10px;
}

.links-documents {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.links-documents > a {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    min-height: 100px;
    padding: 18px;
    border: 1px solid var(--links-border);
    border-radius: 19px;
    color: inherit;
    background: rgba(8, 21, 31, .9);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}

.links-documents > a:hover {
    transform: translateY(-3px);
    border-color: rgba(182, 255, 0, .3);
}

.links-documents > a > i:first-child {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border-radius: 13px;
    color: var(--links-lime);
    background: rgba(182, 255, 0, .09);
}

.links-documents span {
    display: grid;
    min-width: 0;
}

.links-documents strong {
    color: #eef8f3;
    font-size: .87rem;
}

.links-documents small {
    margin-top: 4px;
    color: #879ca7;
    font-size: .7rem;
    line-height: 1.4;
}

.links-footer {
    width: min(1180px, calc(100% - 32px));
    margin-bottom: 24px;
}

.links-toast {
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 24px;
    max-width: calc(100% - 32px);
    padding: 12px 17px;
    border: 1px solid rgba(182, 255, 0, .28);
    border-radius: 13px;
    color: #edf8f2;
    background: rgba(8, 22, 29, .96);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .42);
    font-size: .82rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: opacity .2s ease, transform .2s ease;
}

.links-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 900px) {
    .links-hero {
        grid-template-columns: 1fr;
        align-items: end;
        padding-top: 132px;
    }

    .links-hero-actions {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .links-share-button {
        min-width: 54px;
    }

    .links-share-button span {
        display: none;
    }

    .links-grid-featured .link-card-map {
        grid-row: auto;
        min-height: 112px;
    }

    .links-documents {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .links-main,
    .links-footer {
        width: min(100% - 20px, 1180px);
    }

    .links-page .links-header {
        left: 50%;
        width: calc(100% - 16px);
        margin: 0;
        transform: translateX(-50%);
    }

    .links-main {
        padding-top: 18px;
    }

    .links-hero {
        min-height: auto;
        padding: 124px 23px 30px;
        border-radius: 25px;
    }

    .links-profile {
        top: 25px;
        right: 23px;
        left: 23px;
        justify-content: space-between;
    }

    .links-logo {
        width: 58px;
        height: 58px;
    }

    .links-logo img {
        width: 42px;
        height: 42px;
    }

    .links-hero h1 {
        font-size: clamp(2.65rem, 13vw, 4.2rem);
    }

    .links-hero-copy > p:last-child {
        font-size: .96rem;
    }

    .links-hero-actions {
        grid-template-columns: 1fr;
    }

    .links-share-button span {
        display: inline;
    }

    .links-always-online {
        margin-bottom: 0;
        align-items: flex-start;
        line-height: 1.5;
    }

    .links-grid,
    .links-social-grid {
        grid-template-columns: 1fr;
    }

    .social-link.is-discord {
        grid-column: auto;
    }

    .links-account-strip {
        display: grid;
    }

    .links-account-strip nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 460px) {
    .links-page .home-header {
        border-radius: 20px;
    }

    .links-hero {
        padding-inline: 18px;
    }

    .links-hero h1 {
        font-size: clamp(2.45rem, 13.4vw, 3.5rem);
    }

    .links-main-button {
        grid-template-columns: 43px minmax(0, 1fr) auto;
        padding: 14px;
    }

    .links-button-icon {
        width: 43px;
        height: 43px;
    }

    .links-section-heading {
        gap: 12px;
    }

    .links-section-number {
        width: 39px;
        height: 39px;
    }

    .link-card,
    .social-link {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 13px;
        padding: 17px;
        border-radius: 18px;
    }

    .link-card-icon,
    .social-link > i:first-child {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .links-account-strip {
        padding: 18px;
    }

    .links-account-strip nav {
        grid-template-columns: 1fr;
    }
}

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

    .links-page *,
    .links-page *::before,
    .links-page *::after {
        transition-duration: .01ms !important;
    }
}
