:root {
    --home-bg: #03050a;
    --home-panel: rgba(10, 15, 28, .78);
    --home-panel-strong: rgba(12, 18, 34, .94);
    --home-line: rgba(158, 195, 255, .28);
    --home-blue: #9cc7ff;
    --home-gold: #f6cf72;
    --home-red: #ff3d4f;
    --home-green: #66f09a;
    --home-text: #f4f7ff;
    --home-muted: #bbc7db;
}

.top-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    padding: 14px 22px;
    background: linear-gradient(180deg, rgba(2, 5, 12, .42), rgba(2, 5, 12, .12), transparent) !important;
    backdrop-filter: blur(12px);
}

.nav-list {
    width: min(1180px, 100%);
    min-height: 54px;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(156, 194, 255, .16);
    border-radius: 8px;
    background: rgba(4, 8, 17, .58);
    box-shadow: 0 18px 42px rgba(0,0,0,.35);
}

.nav-list::before {
    content: "Blade & Soul";
    margin-right: auto;
    padding-left: 14px;
    color: var(--home-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(126, 177, 255, .52);
}

.nav-link {
    min-width: auto;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 8px;
    border-color: transparent;
    color: rgba(236, 242, 255, .82);
    background: transparent;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #fff7df;
    background: rgba(255,255,255,.08);
    border-color: rgba(246, 207, 114, .46);
    box-shadow: none;
}

.page {
    width: 100%;
    padding: 0 0 46px;
}

.hero {
    position: relative;
    display: grid;
    align-items: end;
    width: 100%;
    min-height: min(760px, 100vh);
    margin: 0 0 0;
    padding: 128px max(22px, calc((100vw - 1180px) / 2)) 76px;
    overflow: hidden;
    text-align: left;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 28% 18%, rgba(126,177,255,.24), transparent 34rem),
        linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(3,5,10,.12) 100%) !important;
    background-color: transparent !important;
    box-shadow: none;
    backdrop-filter: none !important;
}

.hero::before {
    display: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 22% 28%, rgba(126,177,255,.22), transparent 38rem),
        linear-gradient(180deg, transparent 0%, rgba(3,5,10,.14) 100%);
}

.hero > * {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero > .hero-eyebrow,
.hero > .brand,
.hero > .hero-text,
.hero > .actions,
.hero > .notice {
    margin-left: 0;
}

.hero > .hero-eyebrow {
    margin-top: auto;
}

.hero > .hero-text,
.hero > .actions,
.hero > .notice {
    width: min(720px, 100%);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--home-gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--home-gold);
    box-shadow: 0 0 12px rgba(246,207,114,.7);
}

.brand {
    position: relative;
    width: max-content;
    max-width: 100%;
    margin-bottom: clamp(54px, 5vw, 72px);
    font-size: clamp(52px, 7vw, 88px);
    line-height: 1;
    letter-spacing: clamp(2px, .58vw, 6px);
    white-space: nowrap;
    color: #f6f9ff;
    text-shadow:
        0 0 20px rgba(120, 180, 255, .58),
        0 16px 42px rgba(0,0,0,.82);
}

.brand-amp {
    position: relative;
    display: inline-block;
}

.brand-sub {
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    transform: translateX(-50%);
    color: var(--home-gold);
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1;
    letter-spacing: clamp(8px, 1.45vw, 18px);
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow:
        0 0 18px rgba(246,207,114,.45),
        0 10px 28px rgba(0,0,0,.55);
}

.hero-text {
    margin: 0;
    color: rgba(244,247,255,.86);
    font-size: clamp(16px, 1.45vw, 18px);
    line-height: 1.68;
    font-weight: 650;
    text-shadow: 0 2px 18px rgba(0,0,0,.65);
    text-wrap: balance;
}

.actions {
    justify-content: flex-start;
    margin-top: 28px;
    gap: 12px;
}

.btn {
    min-width: 150px;
    min-height: 46px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.btn.download {
    color: #140d05;
    border-color: rgba(255, 221, 140, .82);
    background: linear-gradient(180deg, #ffe08a, #c98a25);
    box-shadow: 0 18px 36px rgba(246, 177, 58, .24);
}

.btn.discord,
.btn.fanpage {
    background: rgba(10, 18, 34, .66);
    backdrop-filter: blur(10px);
}

.notice {
    margin-top: 18px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
}

.quick-panel {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: -44px auto 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.quick-card,
.rank-box {
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(18, 27, 48, .9), rgba(7, 11, 22, .92));
    box-shadow: 0 24px 60px rgba(0,0,0,.34);
}

.quick-card {
    min-height: 126px;
    padding: 18px;
}

.quick-card strong {
    display: block;
    color: var(--home-blue);
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.quick-card span {
    color: var(--home-muted);
    font-weight: 650;
    line-height: 1.55;
}

#rank {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.rank-title {
    margin-top: 14px;
}

.rank-title h2 {
    color: #f4f7ff;
}

.rank-box {
    width: 100%;
    padding: 18px;
}

.table-wrap {
    border-radius: 8px;
}

.footer {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(156,194,255,.16);
}

@media (max-width: 900px) {
    .top-nav {
        position: sticky;
        padding: 10px;
    }

    .nav-list::before {
        width: 100%;
        margin: 0 0 6px;
        text-align: center;
        padding-left: 0;
    }

    .nav-link {
        padding-inline: 10px;
        font-size: 13px;
    }

    .hero {
        min-height: 690px;
        padding-top: 80px;
        align-items: end;
    }

    .hero::before {
        inset: 86px 0 auto;
        width: 100%;
        height: 360px;
        background-position: center top;
        opacity: .76;
    }

    .hero::after {
        background:
            radial-gradient(circle at 50% 30%, rgba(126,177,255,.12), transparent 34rem),
            linear-gradient(180deg, rgba(3,5,10,.03) 0%, rgba(3,5,10,.16) 44%, rgba(3,5,10,.3) 100%);
    }

    .quick-panel {
        grid-template-columns: 1fr;
    }

    .quick-card {
        min-height: auto;
    }

}

@media (max-width: 720px) {
    .nav-list li {
        width: calc(50% - 4px);
    }

    .nav-link {
        justify-content: center;
        width: 100%;
    }

    .hero {
        padding: 330px 18px 58px;
        min-height: 690px;
    }

    .hero::before {
        top: 76px;
        height: 330px;
        width: 112%;
        left: -6%;
        right: auto;
    }

    .brand {
        font-size: clamp(38px, 12vw, 58px);
        letter-spacing: clamp(1px, .8vw, 3px);
        margin-bottom: 48px;
    }

    .brand-sub {
        font-size: clamp(22px, 7vw, 30px);
        letter-spacing: clamp(6px, 2.6vw, 10px);
    }

    .hero-eyebrow {
        font-size: 12px;
        letter-spacing: 1.2px;
    }

    .hero-text {
        font-size: 15px;
        line-height: 1.6;
    }

    .quick-panel {
        margin-top: -34px;
    }

    .actions .btn {
        width: 100%;
        min-width: 0;
        padding-inline: 14px;
    }
}
