.home-page {
    min-height: 100vh;
    color: #161622;
    background: #f8f9ff;
}

/* =========================================================
   HERO
   ========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0 68px;
    background:
        radial-gradient(circle at 8% 20%, rgba(255,216,92,.7), transparent 28%),
        radial-gradient(circle at 92% 10%, rgba(114,213,255,.65), transparent 30%),
        radial-gradient(circle at 70% 90%, rgba(187,129,255,.45), transparent 35%),
        linear-gradient(
            135deg,
            #fff9df 0%,
            #eef9ff 45%,
            #f7efff 100%
        );
}

.home-hero .container,
.home-intro .container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.hero-layout {
    display: grid;
    grid-template-columns:
        minmax(320px,.64fr)
        minmax(760px,1.36fr);
    gap: 30px;
    align-items: center;
}

.hero-copy {
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 9px 14px;
    border: 1px solid rgba(80,71,255,.15);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 8px 30px rgba(67,62,150,.08);
    color: #5146ff;
    font-size: 12px;
    font-weight: 900;
}

.home-hero h1 {
    max-width: 700px;
    margin: 0;
    color: #12121d;
    font-size: clamp(54px,5.6vw,90px);
    line-height: .9;
    letter-spacing: -.07em;
}

.home-hero h1 span {
    background: linear-gradient(
        90deg,
        #5b4dff,
        #9b45ff,
        #ff4e91,
        #ff8a3d
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero p {
    max-width: 590px;
    margin: 22px 0;
    color: #666779;
    font-size: 17px;
    line-height: 1.62;
}

/* =========================================================
   HERO BUTTONS
   ========================================================= */

.hero-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 14px;
    background: #574bff;
    color: #fff;
    box-shadow: 0 12px 30px rgba(87,75,255,.28);
    font-weight: 900;
    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.cta:hover {
    transform: translateY(-2px);
    background: #473af4;
    box-shadow: 0 16px 35px rgba(87,75,255,.32);
}

.hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 20px;
    border: 1px solid #dedff0;
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    color: #292938;
    font-weight: 800;
    transition:
        transform .2s ease,
        background .2s ease;
}

.hero-secondary:hover {
    transform: translateY(-2px);
    background: #fff;
}

/* =========================================================
   HERO STATS
   ========================================================= */

.hero-stats {
    display: flex;
    gap: 22px;
    margin-top: 27px;
    flex-wrap: wrap;
}

.hero-stat strong {
    display: block;
    color: #171721;
    font-size: 19px;
}

.hero-stat span {
    display: block;
    margin-top: 2px;
    color: #77788a;
    font-size: 11px;
}

/* =========================================================
   HERO POPULAR GAMES
   ========================================================= */

.hero-games {
    width: 100%;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 30px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 30px 70px rgba(47,48,100,.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-games-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.hero-games-header small {
    display: block;
    margin-bottom: 4px;
    color: #695bff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero-games-header h2 {
    margin: 0;
    color: #171721;
    font-size: 30px;
    letter-spacing: -.045em;
}

.hero-games-header > a {
    color: #6458f5;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

/* =========================================================
   24 GAMES - 6 COLUMNS x 4 ROWS
   ========================================================= */

.hero-games-grid {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 10px;
}

.hero-game-card {
    position: relative;
    min-width: 0;
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 14px;
    border: 1px solid rgba(25,25,40,.05);
    border-radius: 18px;
    color: #171721;
    box-shadow: 0 8px 25px rgba(31,35,80,.07);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.hero-game-card:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 18px 38px rgba(31,35,80,.16);
    filter: saturate(1.08);
}

/* HERO GAME COLORS */

.hero-game-card:nth-child(8n+1) {
    background: linear-gradient(145deg,#ffe67d,#fff6c7);
}

.hero-game-card:nth-child(8n+2) {
    background: linear-gradient(145deg,#8ee7ff,#ddf8ff);
}

.hero-game-card:nth-child(8n+3) {
    background: linear-gradient(145deg,#bba0ff,#eadfff);
}

.hero-game-card:nth-child(8n+4) {
    background: linear-gradient(145deg,#ff9dbf,#ffe3ec);
}

.hero-game-card:nth-child(8n+5) {
    background: linear-gradient(145deg,#a9edc0,#e3f8ea);
}

.hero-game-card:nth-child(8n+6) {
    background: linear-gradient(145deg,#ffc284,#fff0d8);
}

.hero-game-card:nth-child(8n+7) {
    background: linear-gradient(145deg,#8fc6ff,#e0efff);
}

.hero-game-card:nth-child(8n+8) {
    background: linear-gradient(145deg,#ffb0f0,#ffe5fa);
}

/* HERO GAME ICON */

.hero-game-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,.7);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
    font-size: 33px;
}

.hero-game-play {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.78);
    color: #272738;
    box-shadow: 0 6px 15px rgba(31,35,80,.08);
    font-size: 11px;
    font-weight: 900;
}

.hero-game-category {
    margin-bottom: 4px;
    overflow: hidden;
    color: rgba(22,22,34,.55);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .09em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-game-card h3 {
    margin: 0;
    overflow: hidden;
    color: #171721;
    font-size: 14px;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   LOWER CONTENT
   ========================================================= */

.home-intro {
    padding: 58px 0 68px;
    background:
        radial-gradient(
            circle at 15% 30%,
            rgba(255,221,90,.35),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 40%,
            rgba(118,178,255,.35),
            transparent 30%
        ),
        #f5f6ff;
}

.home-intro-layout {
    display: block;
}

.home-intro-box {
    max-width: 980px;
    margin-bottom: 26px;
}

.home-intro small {
    color: #6758ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-intro h2 {
    max-width: 900px;
    margin: 9px 0 15px;
    color: #171721;
    font-size: clamp(40px,4.5vw,62px);
    line-height: .96;
    letter-spacing: -.055em;
}

.home-intro p {
    max-width: 900px;
    margin: 0;
    color: #676879;
    font-size: 17px;
    line-height: 1.7;
}

/* =========================================================
   MORE GAMES
   ========================================================= */

.intro-games {
    width: 100%;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 28px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 25px 60px rgba(31,35,80,.10);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.intro-games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 17px;
}

.intro-games-header strong {
    color: #171721;
    font-size: 21px;
    letter-spacing: -.02em;
}

.intro-games-header a {
    color: #5b4dff;
    font-size: 12px;
    font-weight: 900;
}

/* =========================================================
   MORE GAMES - 6 COLUMNS
   ========================================================= */

.intro-games-grid {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 10px;
}

.intro-game-card {
    position: relative;
    min-width: 0;
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid rgba(25,25,40,.05);
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(31,35,80,.055);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.intro-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 32px rgba(31,35,80,.14);
    filter: saturate(1.08);
}

/* MORE GAME COLORS */

.intro-game-card:nth-child(8n+1) {
    background: linear-gradient(145deg,#fff0a4,#fff9dc);
}

.intro-game-card:nth-child(8n+2) {
    background: linear-gradient(145deg,#b8efff,#e8faff);
}

.intro-game-card:nth-child(8n+3) {
    background: linear-gradient(145deg,#d1bdff,#f0eaff);
}

.intro-game-card:nth-child(8n+4) {
    background: linear-gradient(145deg,#ffc2d6,#fff0f5);
}

.intro-game-card:nth-child(8n+5) {
    background: linear-gradient(145deg,#b8efca,#e8f8ed);
}

.intro-game-card:nth-child(8n+6) {
    background: linear-gradient(145deg,#ffc999,#fff0df);
}

.intro-game-card:nth-child(8n+7) {
    background: linear-gradient(145deg,#b6d8ff,#edf5ff);
}

.intro-game-card:nth-child(8n+8) {
    background: linear-gradient(145deg,#f0b8ff,#faeaff);
}

.intro-game-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
    font-size: 29px;
}

.intro-game-content {
    min-width: 0;
}

.intro-game-content small {
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    color: rgba(22,22,34,.52);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.intro-game-content strong {
    display: block;
    overflow: hidden;
    color: #171721;
    font-size: 13px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.intro-game-arrow {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    margin-left: auto;
    border-radius: 50%;
    background: rgba(255,255,255,.58);
    color: rgba(23,23,33,.42);
    font-size: 14px;
    font-weight: 900;
    transition:
        color .2s ease,
        transform .2s ease,
        background .2s ease;
}

.intro-game-card:hover .intro-game-arrow {
    color: #5b4dff;
    background: rgba(255,255,255,.9);
    transform: translateX(3px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {
    .hero-layout {
        grid-template-columns:
            minmax(280px,.55fr)
            minmax(650px,1.45fr);
        gap: 20px;
    }

    .home-hero h1 {
        font-size: clamp(50px,5.8vw,74px);
    }

    .hero-games-grid {
        grid-template-columns: repeat(6,minmax(0,1fr));
        gap: 8px;
    }

    .hero-game-card {
        min-height: 132px;
        padding: 11px;
    }

    .hero-game-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 29px;
    }

    .hero-game-play {
        top: 9px;
        right: 9px;
        width: 27px;
        height: 27px;
        font-size: 9px;
    }

    .hero-game-card h3 {
        font-size: 12px;
    }

    /* MORE GAMES STILL 6 COLUMNS */

    .intro-games-grid {
        grid-template-columns: repeat(6,minmax(0,1fr));
        gap: 8px;
    }

    .intro-game-card {
        min-height: 80px;
        gap: 8px;
        padding: 9px;
    }

    .intro-game-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 26px;
    }

    .intro-game-content strong {
        font-size: 12px;
    }

    .intro-game-arrow {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
        font-size: 12px;
    }
}

/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 1000px) {
    .home-hero {
        padding: 50px 0 56px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-copy {
        max-width: 800px;
    }

    .hero-games {
        max-width: none;
    }

    .home-hero h1 {
        max-width: 750px;
    }

    .hero-games-grid {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }

    .hero-game-card {
        min-height: 138px;
        padding: 12px;
    }

    .hero-game-icon {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .hero-game-card h3 {
        font-size: 13px;
    }

    .intro-games-grid {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }

    .intro-game-card {
        min-height: 82px;
        padding: 10px;
    }

    .intro-game-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 27px;
    }

    .intro-game-content strong {
        font-size: 12px;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 760px) {
    .hero-games-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .intro-games-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .home-intro {
        padding: 50px 0 58px;
    }

    .home-intro-box {
        margin-bottom: 24px;
    }

    .intro-games {
        padding: 18px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .home-hero {
        padding: 34px 0 40px;
    }

    .hero-layout {
        gap: 26px;
    }

    .home-hero h1 {
        font-size: clamp(44px,14vw,64px);
    }

    .home-hero p {
        margin: 17px 0;
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
    }

    .cta,
    .hero-secondary {
        flex: 1;
        min-width: 145px;
    }

    .hero-stats {
        gap: 15px;
        margin-top: 21px;
    }

    .hero-stat {
        min-width: 90px;
    }

    .hero-games {
        padding: 14px;
        border-radius: 21px;
    }

    .hero-games-header {
        margin-bottom: 13px;
    }

    .hero-games-header h2 {
        font-size: 24px;
    }

    .hero-games-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
    }

    .hero-game-card {
        min-height: 138px;
        padding: 12px;
        border-radius: 16px;
    }

    .hero-game-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 29px;
    }

    .hero-game-play {
        top: 9px;
        right: 9px;
        width: 27px;
        height: 27px;
    }

    .hero-game-card h3 {
        font-size: 13px;
    }

    .hero-game-category {
        font-size: 7px;
    }

    .home-intro {
        padding: 44px 0;
    }

    .home-intro h2 {
        font-size: clamp(36px,12vw,52px);
    }

    .home-intro p {
        font-size: 15px;
    }

    .intro-games {
        padding: 13px;
        border-radius: 20px;
    }

    .intro-games-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
    }

    .intro-game-card {
        min-height: 78px;
        gap: 9px;
        padding: 10px;
        border-radius: 14px;
    }

    .intro-game-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 13px;
        font-size: 27px;
    }

    .intro-game-content strong {
        font-size: 13px;
    }

    .intro-game-arrow {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }
}

@media (max-width: 430px) {
    .hero-games-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .hero-game-card {
        min-height: 132px;
    }

    .hero-game-category {
        font-size: 7px;
    }

    .intro-games-grid {
        grid-template-columns: 1fr;
    }

    .intro-game-card {
        min-height: 74px;
    }
}