:root {
    --site-bg: #f7f8ff;
    --site-surface: #fff;
    --site-text: #171721;
    --site-muted: #707184;
    --site-line: rgba(25, 25, 40, .08);

    --purple: #5b4dff;
    --purple-dark: #473af4;
    --pink: #ff4e91;
    --orange: #ff8a3d;
    --yellow: #ffe67d;
    --blue: #8ee7ff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--site-bg);
    color: var(--site-text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.intro-lock {
    overflow: hidden;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.header-inner,
.quick-games-inner,
.footer-main,
.footer-bottom,
.global-footer-ad,
.hero-layout,
.home-intro-layout {
    padding-left: 12px;
    padding-right: 12px;
}

/* =========================================================
    HEADER
    ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--site-line);
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(31, 35, 80, .05);
}

.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #171721;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.045em;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        #5b4dff,
        #9b45ff,
        #ff4e91
    );
    color: #fff;
    box-shadow: 0 8px 22px rgba(91, 77, 255, .25);
    font-size: 17px;
}

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

/* =========================================================
    HEADER AD
    ========================================================= */

.header-ad {
    flex: 1 1 auto;
    min-width: 280px;
    max-width: 1150px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
    border: 1px dashed rgba(91, 77, 255, .20);
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,.92),
        rgba(247,246,255,.96)
    );
    color: #aaa9ba;
    text-align: center;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.header-ad small {
    display: block;
    margin-top: 3px;
    color: #bbbaca;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

/* =========================================================
    NAVIGATION
    ========================================================= */

.main-navigation {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
}

.main-navigation a {
    padding: 12px 16px;
    border-radius: 12px;
    color: #656679;
    font-size: 14px;
    font-weight: 800;
    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.main-navigation a:hover {
    background: #f2f1ff;
    color: var(--purple);
}

.header-play {
    padding: 12px 18px !important;
    background: var(--purple) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(91, 77, 255, .22);
}

.header-play:hover {
    background: var(--purple-dark) !important;
    transform: translateY(-1px);
}

/* =========================================================
    QUICK GAME STRIP
    ========================================================= */

.quick-games {
    overflow: hidden;
    border-top: 1px solid rgba(25, 25, 40, .055);
    background: linear-gradient(
        90deg,
        rgba(255,245,197,.45),
        rgba(238,249,255,.55),
        rgba(247,239,255,.55)
    );
}

.quick-games-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.quick-games-label {
    flex: 0 0 auto;
    color: #77788a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    white-space: nowrap;
    text-transform: uppercase;
}

.quick-games-marquee {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    padding: 4px 0;

    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 18px,
        #000 calc(100% - 18px),
        transparent 100%
    );

    mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 18px,
        #000 calc(100% - 18px),
        transparent 100%
    );
}

.quick-games-track {
    --marquee-duration: 40s;
    width: max-content;
    display: flex;
    align-items: center;
    animation:
        quick-games-scroll
        var(--marquee-duration)
        linear
        infinite;
    will-change: transform;
}

.quick-games-marquee:hover .quick-games-track {
    animation-play-state: paused;
}

.quick-games-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 12px;
}

@keyframes quick-games-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* =========================================================
    QUICK GAME CARD
    ========================================================= */

.quick-game {
    flex: 0 0 auto;
    min-width: 176px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border: 1px solid rgba(25,25,40,.06);
    border-radius: 15px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 7px 20px rgba(31,35,80,.055);
    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.quick-game:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 12px 25px rgba(31,35,80,.1);
}

.quick-game-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(
        145deg,
        #ffe67d,
        #fff5c5
    );
    font-size: 25px;
}

.quick-game:nth-child(6n+2) .quick-game-icon {
    background: linear-gradient(
        145deg,
        #8ee7ff,
        #d8f7ff
    );
}

.quick-game:nth-child(6n+3) .quick-game-icon {
    background: linear-gradient(
        145deg,
        #bba0ff,
        #e8dcff
    );
}

.quick-game:nth-child(6n+4) .quick-game-icon {
    background: linear-gradient(
        145deg,
        #ff9dbf,
        #ffe0ea
    );
}

.quick-game:nth-child(6n+5) .quick-game-icon {
    background: linear-gradient(
        145deg,
        #a9edc0,
        #e3f8ea
    );
}

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

.quick-game strong {
    display: block;
    max-width: 120px;
    overflow: hidden;
    color: #20202c;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-game small {
    display: block;
    margin-top: 2px;
    color: #8a8b9c;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.quick-games-all {
    flex: 0 0 auto;
    padding: 11px 15px;
    border-radius: 13px;
    background: #171721;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    transition:
        transform .18s ease,
        background .18s ease;
}

.quick-games-all:hover {
    transform: translateY(-2px);
    background: var(--purple);
}

/* =========================================================
    MAIN
    ========================================================= */

main {
    min-height: calc(100vh - 86px);
}

/* =========================================================
    FOOTER
    ========================================================= */

.site-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--site-line);
    background:
        radial-gradient(
            circle at 8% 20%,
            rgba(255,230,125,.28),
            transparent 24%
        ),
        radial-gradient(
            circle at 92% 20%,
            rgba(142,231,255,.25),
            transparent 25%
        ),
        radial-gradient(
            circle at 70% 100%,
            rgba(187,129,255,.18),
            transparent 30%
        ),
        #fafaff;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(300px,1.2fr) 1fr;
    gap: 70px;
    padding-top: 60px;
    padding-bottom: 45px;
}

.footer-brand {
    max-width: 520px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    font-size: 21px;
    font-weight: 950;
    letter-spacing: -.045em;
}

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

.footer-brand p {
    max-width: 470px;
    margin: 0;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.footer-column strong {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-column nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-column a {
    color: #737486;
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease;
}

.footer-column a:hover {
    color: var(--purple);
}

.footer-bottom {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid var(--site-line);
    color: #9192a3;
    font-size: 12px;
}

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

.footer-badge {
    padding: 7px 10px;
    border: 1px solid rgba(91,77,255,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    color: #77788a;
    font-size: 10px;
    font-weight: 800;
}

/* =========================================================
    FOOTER AD
    ========================================================= */

.global-footer-ad {
    padding-top: 25px;
}

.global-ad-slot {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(91,77,255,.22);
    border-radius: 18px;
    background: rgba(255,255,255,.68);
    color: #aaa9ba;
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.global-ad-slot small {
    display: block;
    margin-top: 4px;
    color: #bbbaca;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

/* =========================================================
    GAME PORTAL INTRO
    ========================================================= */

.site-intro {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(255,230,125,.95),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 10%,
            rgba(142,231,255,.95),
            transparent 29%
        ),
        radial-gradient(
            circle at 50% 105%,
            rgba(187,129,255,.80),
            transparent 39%
        ),
        radial-gradient(
            circle at 70% 55%,
            rgba(255,157,191,.30),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #fff9df,
            #eef9ff 48%,
            #f7efff
        );

    opacity: 1;
    visibility: visible;
    transform: scale(1);
    isolation: isolate;

    transition:
        opacity .40s ease,
        transform .40s cubic-bezier(.7,0,.2,1),
        visibility .40s ease;
}

.site-intro.is-leaving {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.10);
    pointer-events: none;
}

/* =========================================================
    INTRO GLOW
    ========================================================= */

.intro-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .35;
    pointer-events: none;
    animation: introGlow 1.4s ease-in-out infinite alternate;
}

.intro-glow-one {
    top: -190px;
    left: -160px;
    background: #ffe67d;
}

.intro-glow-two {
    top: -180px;
    right: -140px;
    background: #8ee7ff;
}

.intro-glow-three {
    left: 37%;
    bottom: -280px;
    background: #bba0ff;
}

@keyframes introGlow {
    from {
        transform: scale(.88);
    }

    to {
        transform: scale(1.18);
    }
}

/* =========================================================
    INTRO ICON SEA
    ========================================================= */

.intro-icons {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.intro-game {
    --x: 50%;
    --y: 50%;
    --size: 58px;
    --rotation: 0deg;
    --delay: 0s;

    position: absolute;
    left: var(--x);
    top: var(--y);

    width: var(--size);
    height: var(--size);

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.9);
    border-radius: calc(var(--size) * .28);

    background: rgba(255,255,255,.72);

    box-shadow:
        0 14px 36px rgba(31,35,80,.11),
        inset 0 0 0 1px rgba(255,255,255,.4);

    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);

    font-size: calc(var(--size) * .51);

    opacity: 0;

    transform:
        translate(-50%,-50%)
        scale(.12)
        rotate(var(--rotation));

    animation:
        introGameAppear .43s var(--delay) cubic-bezier(.17,.84,.44,1.35) forwards,
        introGameFloat .75s calc(var(--delay) + .36s) ease-in-out infinite alternate;
}

.intro-game:nth-child(6n+1) {
    background: rgba(255,239,157,.84);
}

.intro-game:nth-child(6n+2) {
    background: rgba(193,239,255,.84);
}

.intro-game:nth-child(6n+3) {
    background: rgba(220,202,255,.84);
}

.intro-game:nth-child(6n+4) {
    background: rgba(255,204,224,.84);
}

.intro-game:nth-child(6n+5) {
    background: rgba(198,243,213,.84);
}

.intro-game:nth-child(6n+6) {
    background: rgba(255,218,181,.84);
}

@keyframes introGameAppear {
    0% {
        opacity: 0;
        transform:
            translate(-50%,-50%)
            scale(.1)
            rotate(calc(var(--rotation) - 18deg));
    }

    70% {
        opacity: 1;
        transform:
            translate(-50%,-50%)
            scale(1.16)
            rotate(calc(var(--rotation) + 4deg));
    }

    100% {
        opacity: .96;
        transform:
            translate(-50%,-50%)
            scale(1)
            rotate(var(--rotation));
    }
}

@keyframes introGameFloat {
    from {
        transform:
            translate(-50%,-56%)
            scale(1)
            rotate(calc(var(--rotation) - 3deg));
    }

    to {
        transform:
            translate(-50%,-44%)
            scale(1.04)
            rotate(calc(var(--rotation) + 4deg));
    }
}

/* =========================================================
    INTRO CENTER
    ========================================================= */

.intro-center {
    position: relative;
    z-index: 10;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 35px 55px;

    text-align: center;
    border-radius: 40px;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.88),
            rgba(255,255,255,.40) 58%,
            transparent 73%
        );
}

/* =========================================================
    INTRO PLAY
    ========================================================= */

.intro-play {
    position: relative;

    width: 100px;
    height: 100px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 29px;

    background: linear-gradient(
        135deg,
        #5b4dff,
        #9b45ff 48%,
        #ff4e91
    );

    color: #fff;

    box-shadow:
        0 25px 70px rgba(91,77,255,.38),
        0 0 0 0 rgba(91,77,255,.25);

    font-size: 40px;

    opacity: 0;

    animation:
        introPlayIn
        .45s
        .07s
        cubic-bezier(.17,.84,.44,1.35)
        forwards;
}

.intro-play::before,
.intro-play::after {
    content: "";
    position: absolute;
    border: 2px solid rgba(91,77,255,.20);
    border-radius: 36px;
    pointer-events: none;
}

.intro-play::before {
    inset: -11px;
    animation: introRing .72s .20s ease-out infinite;
}

.intro-play::after {
    inset: -22px;
    animation: introRing .72s .35s ease-out infinite;
}

@keyframes introPlayIn {
    from {
        opacity: 0;
        transform: scale(.1) rotate(-25deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes introRing {
    from {
        opacity: .75;
        transform: scale(.75);
    }

    to {
        opacity: 0;
        transform: scale(1.28);
    }
}

/* =========================================================
    INTRO BRAND
    ========================================================= */

.intro-brand {
    opacity: 0;
    color: #171721;

    font-size: clamp(34px,4vw,62px);
    font-weight: 950;
    line-height: .94;
    letter-spacing: -.06em;

    transform: translateY(14px);

    animation:
        introBrandIn
        .34s
        .20s
        ease
        forwards;
}

.intro-brand span {
    background: linear-gradient(
        90deg,
        #5b4dff,
        #9b45ff,
        #ff4e91,
        #ff8a3d
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

@keyframes introBrandIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
    INTRO TAGLINE
    ========================================================= */

.intro-tagline {
    margin-top: 9px;

    opacity: 0;

    color: #737486;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: .24em;
    text-transform: uppercase;

    animation:
        introTaglineIn
        .28s
        .36s
        ease
        forwards;
}

@keyframes introTaglineIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
    INTRO LOADER
    ========================================================= */

.intro-loader {
    width: 215px;
    height: 5px;

    margin-top: 20px;

    overflow: hidden;
    border-radius: 999px;

    background: rgba(91,77,255,.11);
}

.intro-loader span {
    display: block;

    width: 0;
    height: 100%;

    border-radius: inherit;

    background: linear-gradient(
        90deg,
        #5b4dff,
        #9b45ff,
        #ff4e91,
        #ff8a3d
    );

    animation:
        introLoading
        1.08s
        cubic-bezier(.25,.7,.25,1)
        forwards;
}

@keyframes introLoading {
    0% {
        width: 0;
    }

    20% {
        width: 19%;
    }

    45% {
        width: 48%;
    }

    70% {
        width: 76%;
    }

    100% {
        width: 100%;
    }
}

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

@media (max-width: 1250px) {
    .header-ad {
        max-width: 650px;
        min-width: 220px;
        margin: 0 5px;
    }
}

@media (max-width: 1050px) {
    .header-ad {
        max-width: 420px;
    }

    .main-navigation a {
        padding-left: 11px;
        padding-right: 11px;
    }
}

@media (max-width: 900px) {
    .header-ad {
        display: none;
    }
}

@media (max-width: 800px) {
    .header-inner {
        min-height: 76px;
    }

    .main-navigation a:not(.header-play) {
        display: none;
    }

    .quick-games-inner {
        min-height: 68px;
        gap: 8px;
    }

    .quick-game {
        min-width: 158px;
    }

    .quick-games-group {
        gap: 8px;
        padding-right: 8px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 45px;
        padding-bottom: 35px;
    }

    .footer-bottom {
        padding-top: 18px;
        padding-bottom: 18px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .intro-center {
        padding: 25px 30px;
    }

    .intro-play {
        width: 78px;
        height: 78px;
        border-radius: 22px;
        font-size: 31px;
    }

    .intro-brand {
        font-size: clamp(28px,9vw,42px);
    }

    .intro-tagline {
        font-size: 8px;
        letter-spacing: .17em;
    }

    .intro-loader {
        width: 155px;
    }

    .intro-game {
        --size: 44px !important;
    }
}

@media (max-width: 550px) {
    .header-inner,
    .quick-games-inner,
    .footer-main,
    .footer-bottom,
    .global-footer-ad,
    .hero-layout,
    .home-intro-layout {
        padding-left: 8px;
        padding-right: 8px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-mark {
        width: 37px;
        height: 37px;
    }

    .header-play {
        padding: 10px 12px !important;
        font-size: 11px !important;
    }

    .quick-games-label {
        display: none;
    }

    .quick-games-all {
        padding: 9px 11px;
        font-size: 9px;
    }

    .quick-game {
        min-width: 145px;
        gap: 8px;
        padding: 7px 9px;
    }

    .quick-game-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 22px;
    }

    .quick-game strong {
        max-width: 90px;
        font-size: 10px;
    }

    .quick-game small {
        font-size: 7px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

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

    .quick-games-track {
        animation: none;
    }

    .quick-games-marquee {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .quick-games-marquee::-webkit-scrollbar {
        display: none;
    }

    .quick-games-group[aria-hidden="true"] {
        display: none;
    }
}




.player-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 12px 13px;
    color: #77788a;
    font-size: 12px;
    font-weight: 700;
}

.player-stats strong {
    color: #171721;
    font-weight: 900;
}

@media (max-width: 650px) {
    .player-stats {
        gap: 8px 16px;
        flex-wrap: wrap;
        font-size: 11px;
    }
}