.roulette {
    animation-name: roulette-float;
}

/* Jogos publicados pelo painel */
.home-api-game { flex: 0 0 calc((100% - 84px) / 7); min-width: 0; }
.home-api-game .compact-game { width: 100%; height: 100%; min-height: 220px; flex: none; }
.home-game-cover { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.home-api-game .compact-game::after { z-index: 1; inset: auto 0 0; width: 100%; height: 62%; border-radius: 0; background: linear-gradient(transparent,rgba(2,8,4,.97)); opacity: 1; filter: none; }
@media (max-width: 620px) {
    .home-api-game { flex-basis: calc((100% - 14px) / 3); }
    .home-api-game .compact-game { min-height: 165px; }
}

@keyframes roulette-float {
    0%, 100% {
        transform: rotateX(58deg) rotateZ(-16deg) translateY(0);
    }

    50% {
        transform: rotateX(58deg) rotateZ(-16deg) translateY(-10px);
    }
}

.mobile-app-nav {
    display: none;
}

body { padding-top: 82px; }
.site-header { position: fixed; right: 0; left: 0; width: 100%; padding-right: 30px; padding-left: 30px; }
.ticker-top { position: fixed; z-index: 19; top: 82px; right: 0; left: 0; width: 100%; }
.ticker-top + .hero-carousel { margin-top: 45px; }
.carousel-arrow { z-index: 20 !important; pointer-events: auto; }
.carousel-footer > span { display: none !important; }
.brand-raven { width: 50px; height: 50px; align-items: center; flex: 0 0 50px; }
.brand-raven img { display: block; width: 50px; height: 50px; object-fit: contain; }

.header-actions a,
.cta-section > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.balance-pill {
    display: flex !important;
    flex-direction: row;
    align-items: center !important;
    gap: 9px;
    min-width: 126px;
    padding: 6px 11px 6px 7px;
    border: 1px solid rgba(112,229,140,.18);
    border-radius: 10px;
    background: rgba(33,92,49,.15);
    color: #edf9ef;
}

.wallet-icon { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; color: var(--green); }
.wallet-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.balance-pill > span:last-child { display: flex; flex-direction: column; align-items: flex-start; }
.balance-pill small { color: #789081; font-size: 6px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.balance-pill strong { margin-top: 2px; color: #f0faf2; font: 700 12px "Space Grotesk", sans-serif; }

.games-showcase.section-shell {
    width: 100%;
    max-width: none;
    padding-right: 30px;
    padding-left: 30px;
}

@media (min-width: 1001px) {
    .promo-section.section-shell,
    .vip-section.section-shell,
    .cta-section.section-shell {
        width: 100%;
        max-width: none;
        padding-right: 30px;
        padding-left: 30px;
    }

    .cta-section.section-shell {
        width: calc(100% - 60px);
        margin-right: 30px;
        margin-left: 30px;
    }

    .footer-main,
    .footer-bottom {
        width: 100%;
        max-width: none;
        padding-right: 30px;
        padding-left: 30px;
    }
}

.showcase-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    max-width: none;
    margin-bottom: 38px;
}

.showcase-title h2 {
    margin-top: 9px;
    font-size: 43px;
}

.showcase-title > span {
    color: #64796d;
    font-size: 10px;
}

.game-category + .game-category {
    margin-top: 38px;
}

.category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.category-heading h3 {
    margin: 0;
    font: 700 18px "Space Grotesk", sans-serif;
    letter-spacing: -.025em;
}

.category-heading a {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.category-heading a b {
    margin-left: 7px;
}

.category-actions { display: flex; align-items: center; gap: 7px; }
.rail-arrow { width: 29px; height: 29px; padding: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #0c1c13; color: #9bb0a2; font: 500 20px/1 "Space Grotesk",sans-serif; cursor: pointer; transition: .2s ease; }
.rail-arrow:hover { border-color: rgba(112,229,140,.35); color: var(--green); background: #10271a; }

.game-rail {
    display: flex;
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 2px 13px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(112,229,140,.28) transparent;
    touch-action: auto;
}

.game-rail::-webkit-scrollbar {
    height: 4px;
}

.game-rail::-webkit-scrollbar-track {
    background: transparent;
}

.game-rail::-webkit-scrollbar-thumb {
    border-radius: 9px;
    background: rgba(112,229,140,.28);
}

.compact-game {
    position: relative;
    isolation: isolate;
    aspect-ratio: .72;
    min-width: 0;
    overflow: hidden;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 15px;
    color: white;
    text-align: left;
    background:
        radial-gradient(circle at 75% 22%, color-mix(in srgb, var(--card-glow) 58%, transparent), transparent 37%),
        linear-gradient(145deg, color-mix(in srgb, var(--card-bg) 85%, #17221b), #07100b 115%);
    box-shadow: inset 0 -55px 55px rgba(0,0,0,.38), 0 10px 24px rgba(0,0,0,.2);
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    flex: 0 0 calc((100% - 84px) / 7);
    scroll-snap-align: start;
}

.compact-game::before,
.compact-game::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: "";
}

.compact-game::before {
    width: 120%;
    height: 70%;
    top: 22%;
    left: -35%;
    border: 1px solid color-mix(in srgb, var(--card-glow) 38%, transparent);
    transform: rotate(-22deg);
}

.compact-game::after {
    width: 88%;
    height: 48%;
    top: 9%;
    right: -28%;
    background: var(--card-glow);
    opacity: .12;
    filter: blur(24px);
}

.compact-game:hover {
    z-index: 2;
    border-color: color-mix(in srgb, var(--card-glow) 55%, transparent);
    box-shadow: 0 16px 35px rgba(0,0,0,.42), 0 0 24px color-mix(in srgb, var(--card-glow) 20%, transparent);
    transform: translateY(-6px);
}

.game-symbol {
    position: absolute;
    top: 24%;
    right: 8%;
    left: 8%;
    display: grid;
    place-items: center;
    color: #fff;
    font: 800 clamp(34px, 4.4vw, 76px)/1 "Space Grotesk", sans-serif;
    text-align: center;
    filter: drop-shadow(0 10px 12px rgba(0,0,0,.42));
    transform: rotate(-3deg);
}

.compact-game > strong,
.compact-game > small {
    position: absolute;
    right: 12px;
    left: 12px;
    z-index: 2;
}

.compact-game > strong {
    bottom: 27px;
    overflow: hidden;
    font: 700 13px/1.15 "Space Grotesk", sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-game > small {
    bottom: 11px;
    color: rgba(255,255,255,.52);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .1em;
}

.game-badge {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    border-radius: 99px;
    background: #ff3158;
    box-shadow: 0 5px 13px rgba(255,49,88,.28);
    font-size: 7px;
    font-weight: 900;
}

.live-now {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #7e9387;
    font-size: 9px;
}

.live-now i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.compact-game.win > strong {
    color: #b2f3c1;
}

@media (max-width: 1200px) and (min-width: 621px) {
    .compact-game {
        flex-basis: calc((100% - 56px) / 5);
    }
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

@media (max-width: 620px) {
    body {
        padding-top: 70px;
        padding-bottom: 82px;
    }

    .ticker-top { top: 70px; }

    .site-header .menu-button {
        display: none;
    }

    .brand-raven { width: 43px; height: 43px; flex-basis: 43px; }
    .brand-raven img { width: 43px; height: 43px; }

    .balance-pill { min-width: 102px; padding: 5px 8px 5px 5px; gap: 7px; }
    .balance-pill strong { font-size: 11px; }
    .wallet-icon { width: 25px; height: 25px; flex-basis: 25px; }

    .mobile-app-nav {
        position: fixed;
        z-index: 100;
        right: 10px;
        bottom: max(9px, env(safe-area-inset-bottom));
        left: 10px;
        display: grid !important;
        grid-template-columns: repeat(5, 1fr);
        min-height: 67px;
        padding: 7px 6px;
        border: 1px solid rgba(126, 229, 151, .18);
        border-radius: 20px;
        background: rgba(7, 20, 12, .93);
        box-shadow: 0 16px 45px rgba(0, 0, 0, .65), inset 0 1px rgba(255, 255, 255, .035);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
    }

    .mobile-app-nav a,
    .mobile-app-nav button {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        padding: 0;
        border: 0;
        color: #6f8577;
        text-decoration: none;
        background: transparent;
        cursor: pointer;
        transition: color .25s ease, transform .25s ease;
    }

    .mobile-app-nav small {
        font-size: 8px;
        font-weight: 700;
        letter-spacing: .02em;
    }

    .app-nav-icon {
        display: grid;
        place-items: center;
        width: 27px;
        height: 27px;
        font: 700 20px/1 "Space Grotesk", sans-serif;
    }

    .mobile-app-nav a.active {
        color: var(--green);
    }

    .mobile-app-nav a.active::after {
        position: absolute;
        bottom: -2px;
        width: 16px;
        height: 2px;
        border-radius: 9px;
        background: var(--green);
        box-shadow: 0 0 12px var(--green);
        content: "";
    }

    .mobile-app-nav .app-nav-main {
        color: #07120d;
        transform: translateY(-17px);
    }

    .mobile-app-nav .app-nav-main .app-nav-icon {
        width: 48px;
        height: 48px;
        border: 5px solid #08150d;
        border-radius: 50%;
        background: linear-gradient(145deg, #91f3a8, #36bd60);
        box-shadow: 0 8px 23px rgba(55, 205, 95, .35);
    }

    .mobile-app-nav .app-nav-main small {
        color: #8da095;
    }

    .toast {
        bottom: 94px;
    }

    main,
    footer,
    .site-header,
    .hero,
    .section-shell,
    .promo-section,
    .vip-section {
        width: 100%;
        max-width: 100vw;
        overflow-x: clip;
    }

    .hero-visual {
        width: 100%;
        max-width: 100%;
    }

    .orbit,
    .roulette,
    .floating-card,
    .promo-visual {
        max-width: calc(100vw - 30px);
    }

    .footer-main,
    .footer-bottom {
        max-width: 100%;
    }

    .games-showcase.section-shell {
        padding: 58px 10px 75px;
    }

    .showcase-title {
        align-items: start;
        margin-bottom: 28px;
    }

    .showcase-title h2 {
        font-size: 30px;
    }

    .showcase-title > span {
        display: none;
    }

    .game-category + .game-category {
        margin-top: 31px;
    }

    .category-heading {
        margin: 0 3px 11px;
    }

    .category-heading h3 {
        font-size: 15px;
    }

    .category-heading a,
    .live-now {
        font-size: 8px;
    }

    .category-actions { gap: 4px; }
    .rail-arrow { display: none; }

    .game-rail {
        gap: 7px;
        padding-right: 0;
        padding-bottom: 9px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .game-rail::-webkit-scrollbar {
        display: none;
    }

    .compact-game {
        flex: 0 0 calc((100% - 14px) / 3);
        min-width: 0;
        padding: 8px;
        border-radius: 10px;
    }

    .compact-game:hover {
        transform: none;
    }

    .game-symbol {
        top: 25%;
        font-size: clamp(27px, 12vw, 47px);
    }

    .compact-game > strong,
    .compact-game > small {
        right: 7px;
        left: 7px;
    }

    .compact-game > strong {
        bottom: 20px;
        font-size: 9px;
    }

    .compact-game > small {
        bottom: 7px;
        font-size: 5px;
    }

    .game-badge {
        top: 6px;
        left: 6px;
        padding: 4px 6px;
        font-size: 5px;
    }
}
