html,
body.home-page {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body.home-page {
    --home-bg: #02070a;
    --home-panel: rgba(6, 15, 20, .88);
    --home-panel-strong: rgba(8, 17, 23, .96);
    --home-line: rgba(176, 255, 59, .22);
    --home-soft-line: rgba(255, 255, 255, .11);
    --home-green: #72d900;
    --home-green-2: #9aff12;
    --home-white: #f7f8f2;
    --home-muted: #c1c8c8;
    --home-gold: #ffb33d;
    background:
        radial-gradient(circle at 75% 18%, rgba(114, 217, 0, .12), transparent 25rem),
        radial-gradient(circle at 8% 50%, rgba(70, 119, 148, .15), transparent 28rem),
        var(--home-bg);
    color: var(--home-white);
}

.home-page main {
    min-height: 0;
}

.home-page .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 78px;
    padding: 0 46px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(1, 5, 8, .92);
    backdrop-filter: blur(12px);
}

.home-page .brand {
    gap: 13px;
    color: var(--home-white);
}

.home-page .brand-mark {
    width: 54px;
    height: 60px;
    border-radius: 0;
    background: transparent;
}

.home-page .brand-emblem svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 16px rgba(114, 217, 0, .45));
}

.home-page .brand-emblem path:first-child {
    fill: #0c1413;
    stroke: #d9e9d8;
    stroke-width: 3;
}

.home-page .brand-emblem path:nth-child(2) {
    fill: #76dd00;
}

.home-page .brand-emblem path:last-child {
    fill: #051006;
}

.home-page .brand-word {
    font-family: Impact, "Arial Black", system-ui, sans-serif;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: 0;
}

.home-page .brand-word strong {
    color: var(--home-green);
}

.home-page .main-nav {
    gap: 23px;
    font-weight: 700;
    color: var(--home-white);
}

.home-page .main-nav a,
.home-page .link-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--home-white);
    font-size: .94rem;
}

.home-page .main-nav a:not(.nav-auth) {
    padding: 0 2px;
}

.home-page .main-nav a:not(.nav-auth):hover,
.home-page .main-nav a.is-active {
    color: #ffffff;
    background: transparent;
}

.home-page .main-nav a.is-active {
    position: relative;
}

.home-page .main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 2px;
    height: 3px;
    border-radius: 2px;
    background: var(--home-green-2);
}

.home-page .nav-auth {
    min-width: 136px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(3, 7, 11, .65);
}

.home-page .nav-register {
    border-color: rgba(114, 217, 0, .9);
    background: linear-gradient(180deg, #70d600, #3c9200);
    box-shadow: 0 0 22px rgba(114, 217, 0, .22);
}

.home-page .nav-user {
    color: var(--home-green-2);
    font-weight: 800;
}

.asylum-hero {
    position: relative;
    min-height: 715px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(1, 5, 8, .96) 0%, rgba(1, 5, 8, .72) 31%, rgba(1, 5, 8, .18) 66%, rgba(1, 5, 8, .42) 100%),
        linear-gradient(0deg, #02070a 0%, rgba(2, 7, 10, .05) 23%, rgba(2, 7, 10, 0) 55%),
        url("../img/chateau.png") center center / cover no-repeat;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 80px));
    min-height: 715px;
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 56px 0 30px;
}

.hero-copy {
    width: min(640px, 100%);
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
    overflow-wrap: normal;
}

.hero-copy h1 {
    margin: 0 0 24px;
    color: #ffffff;
    font-family: Impact, "Arial Black", system-ui, sans-serif;
    font-size: 6.2rem;
    line-height: .92;
    letter-spacing: 0;
    text-shadow: 0 5px 0 rgba(0, 0, 0, .38), 0 0 24px rgba(0, 0, 0, .55);
}

.hero-copy h1 span {
    color: var(--home-green);
}

.hero-kicker {
    margin: 0 0 16px;
    font-size: 1.75rem;
    font-weight: 900;
    color: #ffffff;
}

.hero-kicker strong,
.community-cta h2 span {
    color: var(--home-green);
}

.hero-text {
    width: min(495px, 100%);
    color: #ffffff;
    font-size: 1.18rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
}

.home-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 29px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #ffffff;
    font-weight: 900;
    font-size: .98rem;
}

.home-page .btn-primary {
    border-color: rgba(154, 255, 18, .9);
    background: linear-gradient(180deg, #77df00, #368d00);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 24px rgba(114, 217, 0, .24);
}

.home-page .btn-ghost,
.home-page .btn-outline-green {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(8, 14, 20, .58);
}

.home-page .btn-outline-green {
    border-color: rgba(114, 217, 0, .9);
    color: #cbff7a;
}

.home-page .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.home-page .btn-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.home-page .btn-rocket {
    width: 22px;
    height: 22px;
    display: block;
    mix-blend-mode: screen;
}

.hero-stats {
    width: min(680px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 29px;
    border: 1px solid var(--home-soft-line);
    border-radius: 8px;
    background: rgba(0, 6, 10, .72);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.hero-stats div {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 10px;
    align-items: center;
    min-height: 80px;
    padding: 15px 18px;
    border-right: 1px solid var(--home-soft-line);
}

.hero-stats div:last-child {
    border-right: 0;
}

.stat-icon,
.feature-icon,
.community-icon {
    color: var(--home-green-2);
    font-family: Impact, "Arial Black", system-ui, sans-serif;
    letter-spacing: 0;
    text-shadow: 0 0 18px rgba(114, 217, 0, .55);
}

.stat-icon {
    grid-row: span 2;
    font-size: 1.05rem;
}

.hero-stats strong {
    display: block;
    font-size: .92rem;
}

.hero-stats small {
    display: block;
    color: var(--home-muted);
    font-size: .8rem;
}

.feature-strip,
.games-section,
.community-cta,
.home-footer .footer-grid {
    width: min(1200px, calc(100% - 80px));
    margin-left: auto;
    margin-right: auto;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: -8px;
    padding: 30px 0;
    border: 1px solid var(--home-soft-line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(10, 22, 29, .95), rgba(3, 10, 14, .92));
    box-shadow: 0 22px 60px rgba(0, 0, 0, .38);
}

.feature-strip article {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 104px;
    padding: 0 34px;
    border-right: 1px solid var(--home-soft-line);
}

.feature-strip article:last-child {
    border-right: 0;
}

.feature-icon {
    font-size: 3rem;
    text-align: center;
}

.feature-strip h2,
.leaderboard-preview h3 {
    margin: 0 0 9px;
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
}

.feature-strip p,
.section-subtitle,
.game-info p,
.community-cta p,
.footer-brand p {
    color: var(--home-muted);
    line-height: 1.55;
}

.feature-strip p {
    font-size: .92rem;
}

.games-section {
    padding: 34px 0 0;
}

.section-title {
    display: grid;
    grid-template-columns: 90px auto 90px;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.section-title span {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--home-green), transparent);
}

.section-title h2 {
    margin: 0;
    font-family: Impact, "Arial Black", system-ui, sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.section-subtitle {
    margin: 12px 0 18px;
    text-align: center;
}

.game-showcase {
    display: grid;
    grid-template-columns: minmax(330px, 1.1fr) minmax(280px, .78fr) minmax(230px, .52fr);
    gap: 32px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(9, 24, 28, .9), rgba(3, 11, 13, .95));
    box-shadow: 0 0 34px rgba(114, 217, 0, .08);
}

.game-cover {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: #081015;
}

.game-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid rgba(114, 217, 0, .62);
    border-radius: 6px;
    background: rgba(114, 217, 0, .16);
    color: #d8ff92;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.game-info h3 {
    margin: 18px 0 15px;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.1;
}

.game-info h3 span {
    font-size: 1.55rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 24px 0 18px;
}

.tags span {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 5px;
    background: rgba(255, 255, 255, .06);
    color: #d5dddd;
    font-size: .78rem;
}

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

.game-actions .btn {
    min-height: 46px;
    padding: 0 20px;
    font-size: .82rem;
}

.leaderboard-preview {
    align-self: stretch;
    padding: 21px 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(8, 17, 23, .84);
}

.leaderboard-preview h3 {
    margin-bottom: 22px;
}

.leaderboard-preview ol {
    display: grid;
    gap: 13px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.leaderboard-preview li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 8px;
    align-items: center;
    color: #dce2e2;
    font-size: .86rem;
}

.leaderboard-preview li span {
    color: var(--home-gold);
    font-weight: 900;
}

.leaderboard-preview li em {
    color: var(--home-green-2);
    font-style: normal;
    font-weight: 900;
}

.leaderboard-preview .you-row strong {
    color: var(--home-green-2);
}

.leaderboard-preview .btn-full {
    width: 100%;
    min-height: 45px;
    padding: 0 12px;
    font-size: .82rem;
}

.community-cta {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 28px;
    align-items: center;
    margin-top: 22px;
    padding: 24px 38px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(12, 30, 26, .92), rgba(4, 12, 16, .95));
}

.community-icon {
    font-size: 2.4rem;
    text-align: center;
}

.community-cta h2 {
    margin: 0 0 8px;
    font-size: 1.55rem;
}

.community-cta .btn {
    min-width: 278px;
    min-height: 56px;
    font-size: .92rem;
}

.home-footer {
    display: block;
    margin-top: 38px;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    border-bottom: 0;
    background: rgba(1, 7, 10, .96);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .85fr 1.15fr;
    gap: 72px;
    padding: 38px 0 34px;
}

.home-footer section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-footer h2 {
    margin: 0 0 17px;
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
}

.home-footer a {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--home-muted);
}

.footer-brand .brand {
    margin-bottom: 18px;
}

.footer-brand p {
    margin: 0 0 23px;
}

.social-row {
    display: flex;
    gap: 12px;
}

.social-row span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    color: #dce5e5;
    font-size: .68rem;
    font-weight: 900;
    background: rgba(255, 255, 255, .04);
}

.footer-stats p {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    margin: 0 0 15px;
}

.footer-stats strong {
    color: var(--home-green-2);
    font-size: 1.2rem;
}

.copyright {
    margin: 0;
    padding: 22px 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: var(--home-muted);
    text-align: center;
}

@media (max-width: 1100px) {
    .home-page .site-header {
        min-height: auto;
        padding: 16px 28px;
    }

    .home-page .main-nav {
        gap: 12px;
    }

    .home-page .nav-auth {
        min-width: auto;
    }

    .game-showcase {
        grid-template-columns: 1fr;
    }

    .leaderboard-preview {
        align-self: auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 38px;
    }
}

@media (max-width: 820px) {
    .home-page .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-page .main-nav {
        justify-content: flex-start;
    }

    .hero-inner,
    .feature-strip,
    .games-section,
    .community-cta,
    .home-footer .footer-grid {
        width: min(100% - 32px, 1200px);
    }

    .hero-copy h1 {
        font-size: 4.15rem;
    }

    .hero-kicker {
        font-size: 1.35rem;
    }

    .hero-stats,
    .feature-strip,
    .community-cta,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats div,
    .feature-strip article {
        border-right: 0;
        border-bottom: 1px solid var(--home-soft-line);
    }

    .hero-stats div:last-child,
    .feature-strip article:last-child {
        border-bottom: 0;
    }

    .feature-strip {
        padding: 0;
    }

    .feature-strip article {
        padding: 24px;
    }

    .community-cta {
        justify-items: start;
        padding: 24px;
    }

    .community-cta .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .home-page .brand-word {
        font-size: 1.55rem;
    }

    .home-page .brand-mark {
        width: 44px;
        height: 50px;
    }

    .hero-copy h1 {
        font-size: 3.25rem;
    }

    .home-page .btn,
    .game-actions .btn {
        width: 100%;
    }

    .section-title {
        grid-template-columns: 42px auto 42px;
    }

    .game-showcase {
        padding: 12px;
    }
}
