:root {
    color-scheme: dark;
    --accent: #c2a3ff;
    --mx: 50%;
    --my: 50%;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #101017;
    color: #f4f2fa;
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
    overflow-x: clip;
    -webkit-user-select: none;
    user-select: none;
}

body:not(.entered) {
    overflow: hidden;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at center, #302343, #101017 70%);
    cursor: pointer;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.click-prompt {
    padding: 24px;
    border: 0;
    background: transparent;
    color: #f4f2fa;
    font-size: clamp(32px, 6vw, 48px);
    text-shadow: 0 0 25px #b18afc88;
    animation: prompt-pulse 2.5s ease-in-out infinite;
}

.entered .preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entered .click-prompt {
    animation: prompt-exit 0.7s ease forwards;
}

@keyframes prompt-exit {
    to {
        opacity: 0;
        transform: scale(1.15);
        filter: blur(8px);
    }
}

@keyframes prompt-pulse {
    0%, 100% {
        opacity: 0.65;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: #8763bc;
}

.atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 55%, #302343, transparent 65%), #101017;
}

.atmosphere video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2.8s ease;
}

.entered .atmosphere video {
    opacity: 0.28;
    animation: background-reveal 3.2s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes background-reveal {
    from {
        transform: scale(1.08);
        filter: blur(10px);
    }
    to {
        transform: scale(1);
        filter: blur(0);
    }
}

.veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #0c0c13cc, #0c0c1373),
        linear-gradient(0deg, #101017, transparent 60%);
}

.aurora {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx) var(--my), #ac7cf018, transparent 75%);
}

#stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.65;
}

.page {
    width: min(1160px, 100% - 96px);
    margin: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 2.7px;
    font-weight: 650;
}

.wordmark b {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -3px;
    color: var(--accent);
}

.motion-toggle {
    border: 1px solid #ffffff19;
    background: #ffffff04;
    border-radius: 30px;
    padding: 9px 14px;
    color: #a6a2b5;
    font-size: 11px;
}

.motion-toggle span {
    color: var(--accent);
    margin-left: 6px;
}

main {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 90px;
    padding: 65px 0 100px;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--accent);
}

h1 {
    font-size: clamp(60px, 7.1vw, 96px);
    letter-spacing: -6px;
    line-height: 1.1;
    font-weight: 550;
    margin: 25px 0;
}

h1 > span {
    font-weight: 300;
    color: #d4c8e9;
}

h1 i {
    font-style: normal;
    color: var(--accent);
    text-shadow: 0 0 35px #b18afc66;
}

.subtitle {
    font-size: 18px;
    line-height: 1.8;
    font-weight: 300;
    color: #a6a2b5;
    margin: 0;
}

.identity {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-top: 45px;
}

.identity img {
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #c2a3ff55;
    padding: 3px;
}

.identity strong {
    display: block;
    font-size: 12px;
    font-weight: 500;
}

.identity small {
    display: block;
    font-size: 11px;
    color: #817c90;
    margin-top: 5px;
}

.section-label {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    letter-spacing: 2px;
    color: #898296;
    margin-bottom: 18px;
}

.link-card {
    --cx: 50%;
    --cy: 50%;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
    padding: 22px 24px;
    margin: 10px 0;
    border: 1px solid #ffffff12;
    border-radius: 14px;
    background: linear-gradient(120deg, #ffffff08, #ffffff02);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
    transition:
        transform 0.25s,
        border-color 0.25s,
        box-shadow 0.25s;
}

.link-card:before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(220px circle at var(--cx) var(--cy), #c2a3ff18, transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: #c2a3ff66;
    box-shadow: 0 12px 35px #00000020;
}

.link-card:hover:before {
    opacity: 1;
}

.discord {
    border-color: #c2a3ff35;
    background: linear-gradient(120deg, #b28afc13, #ffffff03);
}

.icon {
    --icon-rgb: 194, 163, 255;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: #c2a3ff0a;
    border: 1px solid #c2a3ff18;
    border-radius: 11px;
    color: #cdb7f1;
    font-size: 25px;
    flex-shrink: 0;
    transition:
        background-color 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.discord .icon {
    --icon-rgb: 88, 101, 242;
}

.link-card[href*="steamcommunity.com"] .icon {
    --icon-rgb: 102, 192, 244;
}

.link-card[href*="t.me/"] .icon {
    --icon-rgb: 38, 165, 228;
}

.link-card[href*="open.spotify.com"] .icon {
    --icon-rgb: 29, 185, 84;
}

.link-card:hover .icon,
.link-card:focus-visible .icon {
    background-color: rgba(var(--icon-rgb), 0.22);
    border-color: rgba(var(--icon-rgb), 0.65);
    box-shadow:
        0 0 18px rgba(var(--icon-rgb), 0.3),
        inset 0 0 12px rgba(var(--icon-rgb), 0.12);
}

.icon img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.link-card:hover .icon img {
    transform: scale(1.1);
}

.card-text {
    flex: 1;
}

.card-text strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.card-text small {
    display: block;
    font-size: 11px;
    color: #a6a2b5;
    margin-top: 6px;
}

.arrow {
    font-size: 23px;
    color: #80758e;
    transition:
        color 0.25s,
        transform 0.25s;
}

.link-card:hover .arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.note {
    font-size: 10px;
    letter-spacing: 0.4px;
    color: #858092;
    margin-top: 23px;
}

footer {
    min-height: 72px;
    border-top: 1px solid #ffffff0c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #777181;
    font-size: 10px;
}

footer > span:last-child {
    font-size: 8px;
    letter-spacing: 2px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 10px);
    background: #282033;
    border: 1px solid #c2a3ff44;
    border-radius: 30px;
    padding: 13px 22px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s,
        transform 0.2s;
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

body:not(.entered) .page {
    visibility: hidden;
}

.entered header {
    animation: enter-top 1.8s 0.25s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.entered .intro > * {
    animation: enter-left 2s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.entered .intro > :nth-child(1) {
    animation-delay: 0.35s;
}
.entered .intro > :nth-child(2) {
    animation-delay: 0.5s;
}
.entered .intro > :nth-child(3) {
    animation-delay: 0.65s;
}
.entered .intro > :nth-child(4) {
    animation-delay: 0.8s;
}

.entered .connections > * {
    animation: enter-right 2s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.entered .connections > :nth-child(1) {
    animation-delay: 0.45s;
}
.entered .connections > :nth-child(2) {
    animation-delay: 0.6s;
}
.entered .connections > :nth-child(3) {
    animation-delay: 0.78s;
}
.entered .connections > :nth-child(4) {
    animation-delay: 0.96s;
}
.entered .connections > :nth-child(5) {
    animation-delay: 1.14s;
}
.entered .connections > :nth-child(6) {
    animation-delay: 1.3s;
}

.entered footer {
    animation: enter-bottom 2s 1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes enter-left {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translateX(-100vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }

}

@keyframes enter-right {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translateX(100vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes enter-top {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(-100vh);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes enter-bottom {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(100vh);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (max-width: 900px) {
    .page {
        width: calc(100% - 48px);
    }
    main {
        gap: 35px;
        grid-template-columns: 1.1fr 1fr;
    }
    h1 {
        font-size: 62px;
        letter-spacing: -4px;
    }
    .link-card {
        padding: 18px;
    }
    .subtitle {
        font-size: 16px;
    }

}

@media (max-width: 650px) {
    .page {
        width: calc(100% - 40px);
    }
    header {
        height: 85px;
    }
    main {
        grid-template-columns: 1fr;
        padding: 40px 0 45px;
        gap: 45px;
    }
    .eyebrow {
        font-size: 8px;
        letter-spacing: 2px;
    }
    h1 {
        font-size: clamp(52px, 12vw, 76px);
        margin: 20px 0;
    }
    .identity {
        margin-top: 25px;
    }
    .link-card {
        padding: 18px 20px;
    }
    footer {
        min-height: 65px;
    }
    footer > span:last-child {
        letter-spacing: 1px;
        font-size: 7px;
    }
    .toast {
        white-space: nowrap;
    }

}

body.effects-off .aurora,
body.effects-off #stars {
    opacity: 0;
}

body.effects-off *,
body.effects-off *:before {
    animation: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before {
        animation: none !important;
        transition: none !important;
    }
    .aurora,
    #stars {
        display: none;
    }

}


