::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4B5563;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

/* Hero CTA — layout/typography kept; colors = blue gradient (pre-gold version) */
.hero-rtp-generate-btn,
#heroRtpGenerateBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    line-height: 1.25;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    background-color: #0369a1;
    background-image: linear-gradient(
        to top,
        #075985 0%,
        #0369a1 22%,
        #0284c7 48%,
        #0ea5e9 78%,
        #38bdf8 100%
    );
    border: 1px solid rgba(125, 211, 252, 0.45);
    box-shadow:
        0 0 22px rgba(14, 165, 233, 0.5),
        0 4px 14px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-rtp-generate-btn:hover,
#heroRtpGenerateBtn:hover {
    background-image: linear-gradient(
        to top,
        #0c4a6e 0%,
        #0284c7 35%,
        #0ea5e9 65%,
        #7dd3fc 100%
    );
    border-color: rgba(186, 230, 253, 0.65);
    box-shadow:
        0 0 28px rgba(56, 189, 248, 0.55),
        0 4px 16px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-rtp-generate-btn:active,
#heroRtpGenerateBtn:active {
    transform: scale(0.98);
}

/* Narrow screens: smaller type + wrapping so long SEO button labels fit; solid tap target */
@media (max-width: 767px) {
    .hero-rtp-generate-btn,
    #heroRtpGenerateBtn {
        min-height: 2.75rem;
        padding: 0.7rem 0.875rem;
        font-size: 0.875rem;
        line-height: 1.35;
        letter-spacing: 0.04em;
        white-space: normal;
        word-break: break-word;
        text-wrap: balance;
    }
}

@media (min-width: 768px) {
    .hero-rtp-generate-btn,
    #heroRtpGenerateBtn {
        font-size: 1.25rem;
        padding-top: 0.95rem;
        padding-bottom: 0.95rem;
    }
}

/* Form + hero stats: single panel (matches hero CTA stack in reference) */
.hero-form-panel {
    width: 100%;
    max-width: 36rem;
    padding: 1rem 1rem 0.75rem;
    border-radius: 1rem;
    background: rgba(26, 34, 53, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.32);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.35) inset,
        0 12px 40px -16px rgba(0, 0, 0, 0.55);
}

@media (min-width: 768px) {
    .hero-form-panel {
        padding: 1.2rem 1.25rem 0.85rem;
    }
}

.hero-input-with-prefix {
    display: flex;
    align-items: stretch;
    border-radius: 0.375rem;
    border: 1px solid rgba(55, 65, 81, 0.95);
    background-color: #0b0f19;
    overflow: hidden;
}

.hero-input-with-prefix:focus-within {
    border-color: rgba(14, 165, 233, 0.65);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2);
}

.hero-input-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 0.7rem;
    color: #d1d5db;
    border-right: 1px solid rgba(75, 85, 99, 0.85);
    background: rgba(0, 0, 0, 0.22);
}

.hero-input-prefix-svg {
    width: 1.125rem;
    height: 1.125rem;
}

.hero-input-affixed {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #f9fafb;
    outline: none;
}

.hero-input-affixed::placeholder {
    color: #6b7280;
}

.hero-form-panel .hero-stats-bar {
    margin-top: 0.85rem;
    margin-bottom: 0;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(75, 85, 99, 0.45);
}

.hero-form-panel .hero-stats-list {
    background: transparent;
    padding: 0.2rem 0;
}

/* Hero stats row under CTA — wraps 1–3 items; dividers when single row fits */
.hero-stats-bar {
    margin-top: 0.125rem;
}

.hero-stats-list {
    list-style: none;
    margin: 0;
    padding: 0.3rem 0.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem 0.5rem;
    background: rgba(26, 34, 53, 0.92);
    border: none;
    border-radius: 0;
}

.hero-stats-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    flex: 0 0 auto;
    max-width: 100%;
    padding: 0.2rem 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #f9fafb;
    line-height: 1.25;
    text-align: left;
}

.hero-stats-ic {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.hero-stats-svg {
    width: 1.125rem;
    height: 1.125rem;
}

.hero-stats-item--live .hero-stats-ic {
    color: #22c55e;
}

.hero-stats-item--stack .hero-stats-ic {
    color: #facc15;
}

.hero-stats-item--bolt .hero-stats-ic {
    color: #fbbf24;
}

.hero-stats-txt {
    word-break: break-word;
}

@media (min-width: 768px) {
    .hero-stats-list {
        flex-wrap: nowrap;
        gap: 0;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .hero-stats-item {
        flex: 0 0 auto;
        width: auto;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .hero-stats-item:not(:last-child) {
        border-right: 1px solid rgba(107, 114, 128, 0.55);
        margin-right: 0.35rem;
        padding-right: 0.5rem;
    }
}

/* Live RTP strip below hero form panel / stats */
.hero-live-rtp-bar--after-stats {
    margin-top: 0.65rem;
}

.hero-rtp-trust-row--after-stats {
    margin-top: 0.65rem;
}

/* Trust-only under hero: shown below form on small screens; hidden md+ where trust renders in the banner column.
   (Tailwind md:hidden is not in the purged landing bundle unless rebuilt with that class scanned.) */
@media (min-width: 768px) {
    .hero-trust-under-hero--hide-md-up {
        display: none !important;
    }
}

.hero-live-rtp-bar {
    width: 100%;
    box-sizing: border-box;
}

.hero-live-rtp-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    padding: 0.65rem 1rem;
    background: #0a0e1a;
    border: 1px solid rgba(30, 58, 95, 0.9);
    border-radius: 14px;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: #f9fafb;
}

.hero-live-rtp-label {
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-right: 0.15rem;
}

.hero-live-rtp-sep {
    width: 1px;
    height: 1.75rem;
    background: rgba(107, 114, 128, 0.65);
    flex-shrink: 0;
    margin: 0 0.15rem;
}

.hero-live-rtp-item {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
}

.hero-live-rtp-logo {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.hero-live-rtp-name {
    color: #f9fafb;
}

.hero-live-rtp-val {
    color: #00e676;
}

.hero-live-rtp-arrow {
    font-size: 1.05em;
    line-height: 1;
}

.hero-live-rtp-arrow--up {
    color: #00e676;
}

.hero-live-rtp-arrow--down {
    color: #ff5252;
}

/* Live RTP: compact on phones / small tablets */
@media (max-width: 767px) {
    .hero-live-rtp-inner {
        padding: 0.5rem 0.65rem;
        font-size: 0.875rem;
        line-height: 1.3;
        gap: 0.3rem 0.4rem;
        border-radius: 11px;
    }

    .hero-live-rtp-label {
        letter-spacing: 0.01em;
    }

    .hero-live-rtp-item {
        gap: 0.25rem 0.35rem;
    }

    .hero-live-rtp-sep {
        height: 1.25rem;
        margin: 0 0.08rem;
    }

    .hero-live-rtp-logo {
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 4px;
    }

    .hero-live-rtp-arrow {
        font-size: 1em;
    }

    .hero-live-rtp-bar--after-stats {
        margin-top: 0.5rem;
    }
}

@media (max-width: 400px) {
    .hero-live-rtp-inner {
        padding: 0.42rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.22rem 0.3rem;
        border-radius: 10px;
    }

    .hero-live-rtp-sep {
        height: 1.05rem;
    }

    .hero-live-rtp-logo {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Trust banner under hero (social proof) */
/* Embedded under hero form column: no extra page gap */
.trust-strip--in-hero {
    margin: 0.5rem 0 0;
}

.trust-strip {
    position: relative;
    overflow: visible;
    margin: 0.35rem 0 0.15rem;
    background: none;
    border: none;
}

.trust-strip__pattern {
    display: none;
}

.trust-strip__glow {
    display: none;
}

.trust-strip__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
}

.trust-strip__laurel {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #c9a227;
}

.trust-strip-laurel-svg {
    width: 2rem;
    height: 4.75rem;
    display: block;
}

.trust-strip-laurel-svg--flip {
    transform: scaleX(-1);
}

.trust-strip__main {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 36rem;
    text-align: center;
}

.trust-strip__headline {
    margin: 0 0 0.85rem;
    font-size: clamp(0.7rem, 2.8vw, 1.125rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.trust-strip__head-muted {
    color: #f8fafc;
}

.trust-strip__head-gold {
    color: #f5d547;
    text-shadow: 0 0 18px rgba(245, 213, 71, 0.35);
    margin: 0 0.2em;
}

.trust-strip__row2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 0.85rem;
}

.trust-strip__avatars {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.trust-strip__avatar {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 9999px;
    border: 2px solid rgba(30, 41, 59, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    background: #1e293b;
}

.trust-strip__avatar--overlap {
    margin-left: -0.65rem;
}

.trust-strip__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trust-strip__avatar-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #64748b, #334155);
}

.trust-strip__avatar-fallback--1 {
    background: linear-gradient(145deg, #b91c1c, #7f1d1d);
}

.trust-strip__avatar-fallback--2 {
    background: linear-gradient(145deg, #dc2626, #991b1b);
}

.trust-strip__avatar-fallback--3 {
    background: linear-gradient(145deg, #84cc16, #4d7c0f);
}

.trust-strip__avatar-fallback--4 {
    background: linear-gradient(145deg, #65a30d, #3f6212);
}

.trust-strip__pill {
    padding: 0.4rem 1rem 0.42rem;
    font-size: clamp(0.62rem, 2.2vw, 0.8125rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.55);
    border-radius: 9999px;
    background: rgba(8, 20, 35, 0.75);
    box-shadow:
        0 0 14px rgba(34, 211, 238, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

@media (max-width: 639px) {
    .trust-strip__inner {
        gap: 0.5rem;
    }

    .trust-strip-laurel-svg {
        width: 1.5rem;
        height: 3.5rem;
    }

    .trust-strip__headline {
        margin-bottom: 0.65rem;
        letter-spacing: 0.03em;
    }

    .trust-strip__avatar {
        width: 2.35rem;
        height: 2.35rem;
    }

    .trust-strip__avatar--overlap {
        margin-left: -0.55rem;
    }

    .trust-strip__pill {
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .trust-strip {
        margin-top: 0.2rem;
    }

    .trust-strip__row2 {
        flex-direction: column;
        gap: 0.55rem;
    }

    .trust-strip__avatar--overlap {
        margin-left: -0.5rem;
    }

    .trust-strip__avatars {
        padding: 0 0.25rem;
    }
}

/* Games filter row: always glass + neon frame (independent of “panel boxes” SEO toggle) */
@keyframes games-filter-shimmer {
    0% {
        transform: translateX(-120%) skewX(-14deg);
        opacity: 0.35;
    }
    12% {
        opacity: 0.85;
    }
    100% {
        transform: translateX(220%) skewX(-14deg);
        opacity: 0.35;
    }
}

.games-filter-panel {
    --games-filter-shimmer-duration: 4.2s;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 0.75rem 0.85rem;
    border-radius: 1rem;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(
            155deg,
            rgba(18, 45, 95, 0.78) 0%,
            rgba(10, 35, 82, 0.82) 42%,
            rgba(14, 55, 112, 0.76) 100%
        );
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow:
        0 0 0 1px rgba(14, 165, 233, 0.2),
        0 4px 28px -6px rgba(0, 0, 0, 0.5),
        0 0 56px -12px rgba(14, 165, 233, 0.35),
        inset 0 1px 0 rgba(125, 211, 252, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.games-filter-panel::before {
    content: "";
    position: absolute;
    top: -10%;
    left: 0;
    width: 45%;
    height: 120%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(125, 211, 252, 0.07) 35%,
        rgba(186, 230, 253, 0.22) 50%,
        rgba(125, 211, 252, 0.07) 65%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    animation: games-filter-shimmer var(--games-filter-shimmer-duration) ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .games-filter-panel::before {
        animation: none;
        opacity: 0;
    }
}

.games-filter-panel > * {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .games-filter-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        padding: 0.85rem 1rem;
        border-radius: 1.125rem;
    }
}

.games-filter-field {
    display: flex;
    align-items: stretch;
    min-width: 0;
    border-radius: 0.65rem;
    border: 1px solid rgba(56, 130, 200, 0.45);
    background: rgba(6, 22, 52, 0.78);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.games-filter-field:focus-within {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.18), 0 0 20px -6px rgba(14, 165, 233, 0.35);
}

.games-filter-field--search {
    padding: 0;
}

.games-filter-field__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 0.65rem;
    color: rgba(224, 242, 254, 0.92);
    background: rgba(8, 30, 62, 0.65);
    border-right: 1px solid rgba(56, 130, 200, 0.4);
}

.games-filter-field__icon-svg {
    width: 1.125rem;
    height: 1.125rem;
    display: block;
}

.games-filter-field__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.35;
    color: #f1f5f9;
    outline: none;
}

.games-filter-field__input::placeholder {
    color: rgba(148, 163, 184, 0.9);
}

.games-filter-field--select {
    position: relative;
    padding: 0;
}

.games-filter-field--select::after {
    content: "";
    position: absolute;
    right: 0.7rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: -0.2rem;
    border-right: 2px solid rgba(226, 232, 240, 0.85);
    border-bottom: 2px solid rgba(226, 232, 240, 0.85);
    transform: rotate(45deg);
    pointer-events: none;
    opacity: 0.9;
}

.games-filter-select {
    width: 100%;
    margin: 0;
    padding: 0.55rem 2.25rem 0.55rem 0.75rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.875rem;
    line-height: 1.35;
    color: #e2e8f0;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.games-filter-select option {
    background: #0f172a;
    color: #e2e8f0;
}

/* Solid bar: backdrop-filter on sticky headers forces costly repaints while scrolling */
.glass {
    background: rgba(26, 34, 53, 0.94);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

/* Configurable header background (URLs set from SEO settings via inline @media rules).
   100% 100% fills the bar and maps the whole image into it (no hidden edges). Unlike cover,
   nothing is cropped; if the bar and image aspect ratios differ, the art stretches slightly. */
.site-header--bg {
    background-color: rgba(26, 34, 53, 0.88);
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

/* Full-page body background (URLs from SEO settings; inline @media sets image). */
.site-body--bg {
    background-color: #0f1419;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* At least one viewport tall so cover is visible even when content is short */
    min-height: 100vh;
    min-height: 100dvh;
}

/* Game card overlay: title above MAINKAN / POLA AI (line-clamp fallback for CDN Tailwind) */
.game-card-overlay-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Landing game card v2: neon panel, badges, RTP bar, MAIN SEKARANG */
.game-card--v2 {
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow:
        0 0 0 1px rgba(14, 165, 233, 0.2),
        0 0 18px -4px rgba(34, 211, 238, 0.35),
        0 0 32px -8px rgba(59, 130, 246, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card-v2-overlay {
    opacity: 0;
    pointer-events: none;
}

.game-card--v2.card-open .game-card-v2-overlay {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .game-card--v2 .game-card-v2__media:hover .game-card-v2-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

.game-card-v2__badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .game-card-v2__badge {
        font-size: 0.5625rem;
        padding: 0.2rem 0.55rem;
    }
}

.game-card-v2__badge--ai-pick {
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(45, 212, 191, 0.75);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.35);
}

.game-card-v2__badge--hot {
    color: #fff7ed;
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
    border: 1px solid rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.45);
}

.game-card-v2__rtp-value-num {
    font-size: clamp(1.35rem, 4.2vw, 1.85rem);
    line-height: 1.05;
    color: var(--rtp-pct-color);
    text-shadow: 0 0 14px var(--rtp-glow);
}

.game-card-v2__progress-track {
    height: 0.45rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--rtp-track-border);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.game-card-v2__progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--rtp-seg-active), var(--rtp-seg-sheen));
    box-shadow: 0 0 12px var(--rtp-glow);
    transition: width 0.35s ease;
}

.game-card-v2__cta {
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.35);
    text-decoration: none;
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.game-card-v2__cta:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

/* While scrolling: pause decorative motion (RTP bars + hero dot) */
html.page-scrolling #gamesGrid .rtp-chevron-seg--on {
    animation-play-state: paused;
}

html.page-scrolling .hero-live-pulse {
    animation-play-state: paused;
}

/* Search refresh: keep old cards visible until new data arrives (no empty flash) */
#gamesGrid.games-grid--refreshing {
    opacity: 0.65;
    pointer-events: none;
    filter: saturate(0.9);
    transition: opacity 0.22s ease, filter 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
    #gamesGrid.games-grid--refreshing {
        transition: none;
    }
}

/* Hero banner: square carousel, drag (mouse) + native scroll (touch) */
.hero-banner-viewport {
    touch-action: manipulation;
}

.hero-banner-scroll {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.hero-banner-scroll.hero-banner-scroll--dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.hero-banner-slide {
    scroll-snap-align: start;
}

/* Fill the slide (no letterboxing). Bias X slightly for common wide banners with art left / empty right. */
.hero-banner-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    object-position: 38% 50%;
}

/* Hero banner: neon only on the gradient ring — no outer wash; inner area is flat (no dim overlay) */
.hero-banner-neon-frame {
    --neon-pad: 4px;
    --neon-radius: 1rem;
    position: relative;
    padding: var(--neon-pad);
    border-radius: var(--neon-radius);
    background: conic-gradient(
        from 0deg at 50% 50%,
        #2dd4bf 0deg,
        #38bdf8 52deg,
        #3b82f6 108deg,
        #6366f1 156deg,
        #7c3aed 202deg,
        #a855f7 248deg,
        #e879f9 292deg,
        #f43f5e 328deg,
        #2dd4bf 360deg
    );
    /* Glow — a bit stronger than “moderate”, still avoids heavy blur */
    box-shadow:
        0 0 3px rgba(255, 255, 255, 0.5),
        0 0 14px rgba(34, 211, 238, 0.62),
        0 0 28px rgba(59, 130, 246, 0.45),
        0 0 48px rgba(139, 92, 246, 0.28),
        0 0 64px rgba(236, 72, 153, 0.12),
        0 6px 24px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-banner-neon-frame .hero-banner-viewport {
    border-radius: calc(var(--neon-radius) - var(--neon-pad));
    background-color: #0b0f19;
    box-shadow: none;
}

.hero-banner-neon-frame .hero-banner-slide {
    background-color: #0b0f19;
}

/* Placeholder slide: with or without neon wrapper */
.hero-banner-slide--placeholder {
    background-color: transparent;
    background-image: linear-gradient(to top right, #2a6496, #0ea5e9);
}

.hero-banner-viewport--plain {
    background-color: #0b0f19;
    border: 1px solid rgba(55, 65, 81, 0.95);
}

.hero-banner-viewport--plain .hero-banner-slide {
    background-color: #0b0f19;
}

/* Square side = min(slot width, slot height): matches row height with left column, fits remaining width */
.hero-banner-viewport.hero-banner-match {
    width: min(100%, 20rem);
    max-width: 100%;
    aspect-ratio: 1;
    height: auto;
}

/* cqmin needs a sized grid cell; on mobile stack use fixed max width only */
@supports (width: 1cqmin) {
    @media (min-width: 768px) {
        .hero-banner-viewport.hero-banner-match {
            /* Cap side length so the banner does not scale up with a very tall hero row */
            width: min(100%, 100cqmin, 22rem);
        }
    }
}

/* Trust-only: strip sits inside the banner viewport under the carousel (desktop). */
.hero-banner-viewport.hero-banner-viewport--stack-trust {
    display: flex;
    flex-direction: column;
    aspect-ratio: unset;
    height: auto;
}

.hero-banner-viewport.hero-banner-viewport--stack-trust .hero-banner-carousel-slot {
    width: 100%;
    aspect-ratio: 1;
    flex-shrink: 0;
    min-height: 0;
}

.hero-banner-viewport.hero-banner-viewport--stack-trust .hero-banner-scroll {
    height: 100%;
}

.hero-banner-trust-below {
    background-color: #0b0f19;
}

@media (prefers-reduced-motion: reduce) {
    .hero-banner-scroll {
        scroll-behavior: auto;
        scroll-snap-type: proximity;
    }
}

/* Provider carousel: smooth inertial feel + snap */
.provider-carousel {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
}

@media (prefers-reduced-motion: reduce) {
    .provider-carousel {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }
}

.provider-carousel-item {
    scroll-snap-align: start;
}

/* Provider strip panel (disable via .provider-strip-wrap--flush + setting) */
.provider-strip-wrap {
    background: rgba(26, 34, 53, 0.92);
    background-color: #1a2235;
}

.provider-strip-wrap.provider-strip-wrap--flush {
    background: transparent;
}

/* Symmetric padding around the carousel row; nav arrows use top:50% of this block */
.provider-strip-body {
    position: relative;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .provider-strip-body {
        padding-top: 1.375rem;
        padding-bottom: 1.375rem;
    }
}

/* Each provider chip: black → dark blue (left → right) */
#providerScroll.provider-strip-scroll .provider-carousel-item {
    background-image: linear-gradient(
        90deg,
        #000000 0%,
        #080d14 36%,
        #0c1f2e 68%,
        #0a3d5c 100%
    );
    background-color: #0b0f19;
}

/* Edge fades — match panel strip */
.provider-strip-fade--left {
    background: linear-gradient(
        to right,
        rgba(26, 34, 53, 0.97) 0%,
        rgba(26, 34, 53, 0.55) 50%,
        transparent 100%
    );
}

.provider-strip-fade--right {
    background: linear-gradient(
        to left,
        rgba(26, 34, 53, 0.97) 0%,
        rgba(26, 34, 53, 0.5) 52%,
        transparent 100%
    );
}

.provider-strip-wrap--flush .provider-strip-fade--left {
    background: linear-gradient(
        to right,
        rgba(11, 15, 25, 0.98) 0%,
        rgba(11, 15, 25, 0.55) 50%,
        transparent 100%
    );
}

.provider-strip-wrap--flush .provider-strip-fade--right {
    background: linear-gradient(
        to left,
        rgba(11, 15, 25, 0.98) 0%,
        rgba(11, 15, 25, 0.5) 52%,
        transparent 100%
    );
}

/* “Provider Terpercaya” pill — centered on strip top edge.
   Uses plain CSS: prebuilt tailwind.landing.min.css often omits left-1/2 / -translate-x-1/2, so utility centering did not apply. */
.provider-strip-badge {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 30;
    pointer-events: none;
    box-sizing: border-box;
    width: max-content;
    max-width: min(100% - 1rem, 22rem);
    margin: 0;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    font-size: clamp(0.5625rem, 2.4vw + 0.2rem, 0.8125rem);
    line-height: 1.25;
    white-space: nowrap;
    color: #fff;
    /* Badge: bright blues reach closer to the left edge */
    background-color: #0c2744;
    background-image: linear-gradient(
        90deg,
        #0c1f2e 0%,
        #0c4a6e 14%,
        #0369a1 38%,
        #0284c7 68%,
        #0ea5e9 100%
    );
    border: 1px solid rgba(125, 211, 252, 0.5);
    box-shadow:
        0 0 16px rgba(14, 165, 233, 0.38),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) {
    .provider-strip-badge {
        padding: 0.3rem 1rem;
        max-width: min(100% - 2rem, 26rem);
        letter-spacing: 0.08em;
    }
}

/* Mobile: two equal columns + fixed logo box so images don’t change chip width */
@media (max-width: 767px) {
    #providerScroll {
        gap: 0.75rem;
    }

    #providerScroll .provider-carousel-item {
        flex: 0 0 calc((100% - 0.75rem) / 2);
        max-width: calc((100% - 0.75rem) / 2);
        min-width: 0;
    }

    #providerScroll .provider-logo-box {
        height: 3.25rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #providerScroll .provider-logo-box img {
        max-height: 2.5rem;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}

@media (min-width: 768px) {
    #providerScroll .provider-carousel-item {
        flex: 0 0 auto;
        max-width: none;
    }
}

/* RTP: thick chevron segments with visible gaps (like >>>>) */
/* Inactive chevrons: neutral slate so “off” reads clearly vs tier color */
/* Six RTP tiers (aligned with server engine bands); colors stay near red / yellow / green family */
.rtp-strip.rtp-tier-vlow,
.game-card-v2__rtp-block.rtp-tier-vlow {
    --rtp-seg-active: #ef4444;
    --rtp-seg-inactive: rgba(71, 85, 105, 0.55);
    --rtp-track-border: rgba(248, 113, 113, 0.65);
    --rtp-pct-color: #f87171;
    --rtp-glow: rgba(248, 113, 113, 0.4);
    --rtp-seg-sheen: #fca5a5;
}

.rtp-strip.rtp-tier-low,
.game-card-v2__rtp-block.rtp-tier-low {
    --rtp-seg-active: #f97316;
    --rtp-seg-inactive: rgba(71, 85, 105, 0.55);
    --rtp-track-border: rgba(251, 146, 60, 0.65);
    --rtp-pct-color: #fb923c;
    --rtp-glow: rgba(251, 146, 60, 0.4);
    --rtp-seg-sheen: #fdba74;
}

.rtp-strip.rtp-tier-mid,
.game-card-v2__rtp-block.rtp-tier-mid {
    --rtp-seg-active: #eab308;
    --rtp-seg-inactive: rgba(71, 85, 105, 0.55);
    --rtp-track-border: rgba(250, 204, 21, 0.65);
    --rtp-pct-color: #facc15;
    --rtp-glow: rgba(250, 204, 21, 0.4);
    --rtp-seg-sheen: #fde047;
}

.rtp-strip.rtp-tier-mhigh,
.game-card-v2__rtp-block.rtp-tier-mhigh {
    --rtp-seg-active: #84cc16;
    --rtp-seg-inactive: rgba(71, 85, 105, 0.55);
    --rtp-track-border: rgba(163, 230, 53, 0.65);
    --rtp-pct-color: #bef264;
    --rtp-glow: rgba(163, 230, 53, 0.4);
    --rtp-seg-sheen: #d9f99d;
}

.rtp-strip.rtp-tier-high,
.game-card-v2__rtp-block.rtp-tier-high {
    --rtp-seg-active: #22c55e;
    --rtp-seg-inactive: rgba(71, 85, 105, 0.55);
    --rtp-track-border: rgba(34, 197, 94, 0.65);
    --rtp-pct-color: #4ade80;
    --rtp-glow: rgba(34, 197, 94, 0.45);
    --rtp-seg-sheen: #86efac;
}

.rtp-strip.rtp-tier-vhigh,
.game-card-v2__rtp-block.rtp-tier-vhigh {
    --rtp-seg-active: #10b981;
    --rtp-seg-inactive: rgba(71, 85, 105, 0.55);
    --rtp-track-border: rgba(16, 185, 129, 0.65);
    --rtp-pct-color: #34d399;
    --rtp-glow: rgba(16, 185, 129, 0.45);
    --rtp-seg-sheen: #6ee7b7;
}

/*
 * Shimmer: only animate background-position (compositor-friendly).
 * Avoid animating filter() here — with many cards × segments it tanks scroll FPS.
 */
@keyframes rtpShimmerLR {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.rtp-chevron-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
    margin: 0 0.4rem 0.15rem;
    padding: 8px 8px;
    border: 1px solid var(--rtp-track-border);
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.85);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    min-width: 0;
}

/*
 * Interlocking chevron: concave left (notch →), convex right tip.
 * Matches “pushed together they’d mesh” look; small gap separates segments.
 */
.rtp-chevron-seg {
    flex: 1 1 0;
    min-width: 0;
    height: 14px;
    background: var(--rtp-seg-inactive);
    clip-path: polygon(
        0% 0%,
        18% 50%,
        0% 100%,
        78% 100%,
        100% 50%,
        78% 0%
    );
    transition: background 0.2s ease, filter 0.2s ease;
}

.rtp-chevron-seg--on {
    background: linear-gradient(
        100deg,
        var(--rtp-seg-active) 0%,
        var(--rtp-seg-active) 36%,
        var(--rtp-seg-sheen) 50%,
        var(--rtp-seg-active) 64%,
        var(--rtp-seg-active) 100%
    );
    background-size: 260% 100%;
    filter: drop-shadow(0 0 3px var(--rtp-glow));
    animation: rtpShimmerLR 3.6s ease-in-out infinite;
    animation-delay: var(--rtp-sh-delay, 0s);
}

.rtp-value-below {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--rtp-pct-color);
    line-height: 1.2;
    margin-top: 2px;
}

@media (min-width: 768px) {
    .rtp-chevron-track {
        gap: 3px;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 9px 11px;
    }

    .rtp-chevron-seg {
        height: 16px;
    }

    .rtp-value-below {
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rtp-chevron-seg--on {
        animation: none;
        background: var(--rtp-seg-active);
        filter: drop-shadow(0 0 3px var(--rtp-glow));
    }
}
