:root {
    --page-bg: #8db1c4;
    --surface: #ffffff;
    --surface-soft: #f5f7f8;
    --dark: #42535c;
    --text: #383838;
    --muted: #5c6870;
    --line: #e5e5e5;
    --accent: #5865f2;
    --blue: #5865f2;
    --blue-hover: #4752c4;
    --white: #ffffff;
    --wrap: 1120px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--page-bg);
}

body {
    background: var(--page-bg);
    color: var(--text);
    font-family: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.wrap {
    width: min(var(--wrap), calc(100% - 40px));
    margin-inline: auto;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-content: center;
    gap: 15px;
    background: var(--page-bg);
    text-align: center;
    transition: 0.35s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preload-logo-img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(24, 36, 44, 0.3));
}

header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(32, 40, 44, 0.78), rgba(32, 40, 44, 0.14));
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55));
}

.nav-links,
.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-links a {
    padding: 8px 11px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 700;
    transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #ffffff;
}

.nav-links i {
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.18s ease;
}

.nav-links a:hover i,
.nav-links a:focus-visible i {
    color: var(--accent);
}

.btn {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 3px;
    background: rgba(76, 88, 94, 0.82);
    color: #ffffff;
    font: 700 11px "Ubuntu", sans-serif;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
    transition: 0.18s ease;
}

.btn:hover {
    background: #5a686f;
    transform: translateY(-1px);
}

.btn-red {
    border-color: var(--blue);
    background: var(--blue);
}

.btn-red:hover {
    border-color: var(--blue-hover);
    background: var(--blue-hover);
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background-color: var(--dark);
    background-image: var(--hero-bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(32, 40, 44, 0.78) 0%, rgba(32, 40, 44, 0.34) 45%, rgba(32, 40, 44, 0.17) 72%),
        linear-gradient(0deg, rgba(46, 53, 57, 0.88) 0%, transparent 38%);
}

.hero::after {
    display: none;
}

.hero-content {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 230px 1fr;
    align-items: center;
    padding-top: 76px;
}

.hero-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.hero-menu a {
    position: relative;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    transition: color 0.18s ease;
}

.hero-menu a::before {
    content: "";
    position: absolute;
    left: -23px;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0;
    transform: translate3d(-5px, -50%, 0) scaleX(0.35);
    transform-origin: right center;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.hero-menu a:hover,
.hero-menu a:focus-visible {
    color: #ffffff;
}

.hero-menu a:hover::before,
.hero-menu a:focus-visible::before {
    opacity: 1;
    transform: translate3d(0, -50%, 0) scaleX(1);
}

.hero-status {
    justify-self: end;
    min-width: 250px;
    margin: 0 5.5% 0 0;
    text-align: left;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.status-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-color);
    box-shadow: 0 0 12px var(--status-color);
}

.player-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 3px;
}

.player-count {
    color: #ffffff;
    font-size: 44px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.player-max {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 700;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: grid;
    justify-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    transform: translateX(-50%);
}

.scroll-cue i {
    font-size: 12px;
    animation: float 1.8s infinite;
}

@keyframes float {
    50% {
        transform: translateY(5px);
    }
}

.how {
    position: relative;
    padding: 80px 0 90px;
    background: var(--page-bg);
}

.how .wrap {
    padding: clamp(34px, 5vw, 58px);
    border-radius: 5px;
    background: var(--surface);
    box-shadow: 0 10px 40px rgba(24, 36, 44, 0.2);
}

.how-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: end;
    gap: 34px;
    margin-bottom: 48px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    padding: 5px 12px;
    border-radius: 3px;
    background: var(--accent);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.how h1 {
    max-width: 520px;
    color: var(--dark);
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.055em;
}

.how-intro {
    max-width: 570px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface-soft);
    overflow: hidden;
}

.step {
    position: relative;
    min-height: 250px;
    padding: 32px 33px 36px;
    border-right: 1px solid var(--line);
    background: #ffffff;
}

.step:last-child {
    border-right: 0;
}

.step-no {
    display: block;
    margin-bottom: 43px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.step h2 {
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.step p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.step-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.step-link i {
    color: var(--accent);
    transition: 0.2s;
}

.step-link:hover i {
    transform: translateX(4px);
}

footer {
    padding: 42px 0 20px;
    border-top: 1px solid #d8e1e5;
    background: #f7f9fa;
    color: #5c6870;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo-img {
    display: block;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    object-fit: contain;
}

.footer-brand p {
    max-width: 320px;
    margin-bottom: 12px;
    font-size: 12.5px;
}

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

.social-link {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e1e5;
    border-radius: 3px;
    background: #edf2f4;
    color: #63717a;
    transition: 0.18s ease;
}

.social-link:hover {
    border-color: rgba(88, 101, 242, 0.35);
    background: rgba(88, 101, 242, 0.08);
    color: var(--accent);
}

.social-link .fa-discord {
    color: #7b85f5;
}

.footer-col h5 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
    list-style: none;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid #d8e1e5;
    font-size: 12px;
}

.credits-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.credit-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border: 1px solid #d8e1e5;
    border-radius: 3px;
    background: #edf2f4;
    color: #53616a;
    font-size: 11.5px;
}

.credit-chip i {
    color: #aeb7ff;
}

.credit-chip::before,
.credit-chip::after {
    position: absolute;
    left: 50%;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.credit-chip::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 9px);
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    background: #161a1d;
    color: #f0f1f4;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    font: 500 10.5px/1.25 "Ubuntu", sans-serif;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transform: translateX(-50%) translateY(5px);
}

.credit-chip::before {
    content: "";
    bottom: calc(100% + 4px);
    width: 8px;
    height: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: #161a1d;
    transform: translateX(-50%) translateY(5px) rotate(45deg);
}

.credit-chip:hover::after,
.credit-chip:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.credit-chip:hover::before,
.credit-chip:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) rotate(45deg);
}

@media (max-width: 900px) {
    header {
        position: fixed;
        background: rgba(46, 53, 57, 0.94);
        backdrop-filter: blur(12px);
    }

    .nav-links {
        display: none;
    }

    .hero {
        background-position: 58% center;
    }

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

    .hero-menu {
        align-self: center;
    }

    .hero-status {
        position: absolute;
        right: 24px;
        bottom: 100px;
        min-width: 0;
        margin: 0;
    }

    .how-head {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .step {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .step:last-child {
        border-bottom: 0;
    }

    .step-no {
        margin-bottom: 22px;
    }

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

@media (max-width: 600px) {
    .wrap {
        width: min(100% - 30px, var(--wrap));
    }

    .header-actions .btn:first-child {
        display: none;
    }

    .hero {
        background-position: 51% center;
    }

    .hero::before {
        background:
            linear-gradient(90deg, rgba(32, 40, 44, 0.76), rgba(32, 40, 44, 0.18)),
            linear-gradient(0deg, rgba(46, 53, 57, 0.88), transparent 45%);
    }

    .hero-menu a {
        font-size: 12px;
    }

    .hero-status {
        left: 15px;
        right: auto;
        bottom: 76px;
    }

    .player-count {
        font-size: 36px;
    }

    .scroll-cue {
        display: none;
    }

    .how {
        padding: 28px 0;
    }

    .how .wrap {
        padding: 30px 22px;
    }

    .how h1 {
        font-size: 45px;
    }

    .how-intro {
        font-size: 15px;
    }

    .step {
        padding: 28px 22px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
