/* ── Screen-reader only (SEO H1, form labels) ───────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Base reset & polish ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
svg { display: block; }

[x-cloak] { display: none !important; }



/* ── Banner slider only (jangan ganggu Hot Games coverflow) ── */
.swiper-fade {
    width: 100% !important;
    overflow: hidden;
    border-radius: 0.5rem;
}

.swiper-fade .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-fade .swiper-slide {
    flex-shrink: 0;
    width: 100% !important;
}

.swiper-fade .swiper-slide img {
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.skeleton-img {
    border-radius: 0.5rem;
}

.h-85 { height: 21rem; }

.swiper-pagination-bullet {
    background: var(--color-2) !important;
    opacity: 0.4;
}

.swiper-pagination-bullet-active { opacity: 1 !important; }

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-2) !important;
    width: 36px !important;
    height: 36px !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.25rem !important;
}

/* ── Game cards & grids ──────────────────────────────── */
.grid img,
.feature-card img,
.skeleton-img-wrapper img {
    object-fit: cover;
}

.lebihCuanSwiper .skeleton-img-wrapper img,
.baru-rilis-grid .skeleton-img-wrapper img,
.hot-rtp-grid .skeleton-img-wrapper img {
    object-fit: contain;
}

.aspect-\[33\/20\] { aspect-ratio: 33 / 20; }

/* ── Mobile bottom nav safe area ─────────────────────── */
.mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ── Modals ──────────────────────────────────────────── */
.fixed.inset-0.z-\[9999\] {
    background: rgba(4, 8, 31, 0.75);
}

/* ── Announcement marquee ────────────────────────────── */
marquee, .pengumuman + marquee {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ── Activity feed & jackpot ─────────────────────────── */
#jackpot-mobile,
#jackpot-desktop {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* ── Social floating menu ────────────────────────────── */
.menu-toggle {
    pointer-events: auto;
}

.menu-toggle .toggle-icon img {
    width: 26px !important;
    height: 26px !important;
}

.menu-area li a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* ── Utility fallbacks (if Tailwind chunk missing) ───── */
.container { width: 100%; margin-inline: auto; padding-inline: 1rem; }
.max-w-6xl { max-width: 72rem; }

/* Ruang bawah konten mobile — cukup untuk bottom nav, tidak terlalu tinggi */
.pb-20 { padding-bottom: 3.75rem; }

@media (min-width: 1024px) {
    .lg\:pb-0 { padding-bottom: 0 !important; }
    .lg\:block { display: block !important; }
    .lg\:hidden { display: none !important; }
}

@media (max-width: 1023px) {
    .lg\:hidden.block,
    section.lg\:hidden { display: block !important; }
    .hidden.lg\:block { display: none !important; }
}

/* ── Prose spacing ───────────────────────────────────── */
section { scroll-margin-top: 4rem; }

.site-footer__copyright {
    letter-spacing: 0.03em;
}