/* ============================================================
   DESIGN TOKENS & COLOR SYSTEM (MODERN BLUE–PURPLE THEME)
   ============================================================ */

:root {
    /* Brand Accent (tetap hijau untuk CTA) */
    --accent: #2ecc71;
    --accent-soft: rgba(46, 204, 113, 0.15);
    --accent-hover: #3ce383;
    --danger: #ff4d6a;

    /* Background Layers */
    --bg-body: #020317;
    --bg-elevated: #05071c;
    --bg-card: #080a1e;
    --bg-header: #05061a;
    --bg-footer: #05061a;

    /* Text */
    --text-main: #f5f7ff;
    --text-muted: #a3a7c2;

    /* Borders */
    --border-subtle: #20243a;
    --border-strong: rgba(56, 69, 119, 0.95);

    /* Glows / Accents */
    --glow-blue-soft: rgba(37, 99, 235, 0.45);
    --glow-purple-soft: rgba(147, 51, 234, 0.35);

    /* Spacing & Layout */
    --radius-lg: 18px;
    --radius-full: 999px;

    /* Effects */
    --shadow-soft: 0 20px 50px rgba(3, 7, 18, 0.9);

    /* Sizes */
    --header-height-desktop: 70px;
    --header-height-mobile: 60px;
    --mobile-footer-height: 64px;

    /* Animations */
    --transition-fast: 0.18s ease-out;
}

/* ============================================================
   GLOBAL RESET & BASE STYLES
   ============================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* background seperti gambar: navy + glow biru + glow ungu */
    background:
        radial-gradient(circle at 78% 40%, rgba(46, 116, 255, 0.35) 0, rgba(4, 7, 23, 0) 42%),
        radial-gradient(circle at 20% 82%, rgba(168, 85, 247, 0.4) 0, rgba(5, 6, 23, 0) 40%),
        linear-gradient(to bottom, #04051b 0, #020316 55%, #020314 100%);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #2ecc71;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height-desktop);
    z-index: 1000;
    background: linear-gradient(to bottom,
            rgba(5, 7, 27, 0.98),
            rgba(5, 7, 27, 0.9));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.7);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo img {
    width: 150px;
    height: 60px;
    object-fit: cover;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.main-nav a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-muted);
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
    border: 1px solid transparent;
}

.main-nav a[aria-current="page"] {
    color: var(--text-main);
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.22), rgba(15, 23, 42, 0.96));
    border-color: rgba(129, 140, 248, 0.85);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.55);
}

.main-nav a:hover {
    color: var(--text-main);
    background: rgba(30, 64, 175, 0.22);
    border: 1px solid rgba(46, 204, 113, 0.85);
    transform: translateY(-1px);
}

.header-cta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    font-size: 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(46, 204, 113, 0.85);
    color: var(--text-main);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    cursor: pointer;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        color var(--transition-fast);
    white-space: nowrap;
}

.btn-pill--accent {
    border-color: rgba(46, 204, 113, 0.85);
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #020617;
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.55);
}

.btn-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(46, 204, 113, 0.85);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
}

.btn-pill--accent:hover {
    background: linear-gradient(135deg, var(--accent-hover), #a7f3d0);
    box-shadow: 0 18px 36px rgba(34, 197, 94, 0.7);
}

/* Hamburger button */

.header-mobile-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.96);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hamburger-icon {
    width: 22px;
    height: 22px;
}

.hamburger-icon .line {
    stroke: var(--text-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    transition:
        transform 0.2s ease-out,
        opacity 0.2s ease-out,
        stroke 0.2s ease-out;
}

/* animasi ketika open */
.header-mobile-toggle.is-open .line1 {
    transform-origin: 12px 7px;
    transform: translateY(5px) rotate(45deg);
}

.header-mobile-toggle.is-open .line2 {
    opacity: 0;
}

.header-mobile-toggle.is-open .line3 {
    transform-origin: 12px 17px;
    transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 900px) {
    .main-nav {
        position: fixed;
        inset: var(--header-height-mobile) 0 auto 0;
        /* dari bawah header, full lebar atas */
        display: none;
        /* default: hidden */
        flex-direction: column;
        padding: 12px 16px 16px;
        gap: 8px;
        background: linear-gradient(to bottom,
                rgba(5, 7, 27, 0.98),
                rgba(5, 7, 27, 0.96));
        border-bottom: 1px solid rgba(55, 65, 81, 0.85);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
        z-index: 998;
    }

    .main-nav.nav-open {
        display: flex;
        /* ditampilkan ketika hamburger di-klik */
    }
}


/* ============================================================
   BREADCRUMB NAVIGATION
   ============================================================ */

.breadcrumb-nav {
    position: sticky;
    top: var(--header-height-desktop);
    z-index: 999;

    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.breadcrumb-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 16px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    font-size: 10px;
    gap: 4px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 6px;
    transition:
        color var(--transition-fast),
        background var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--text-main);
    background: rgba(79, 70, 229, 0.22);
}

.breadcrumb-item[aria-current="page"] {
    color: var(--text-main);
    padding: 4px 8px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    display: inline-block;
    margin: 0 2px;
    color: var(--text-muted);
    opacity: 0.5;
}

@media (max-width: 900px) {
    .breadcrumb-nav {
        top: var(--header-height-mobile);
    }
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */

.scroll-to-top {
    position: fixed;
    bottom: 70px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #22c55e, #4ade80);
    border: none;
    color: #020617;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.55);
    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(34, 197, 94, 0.7);
}

.scroll-to-top.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   LAYOUT & GRID
   ============================================================ */

.page-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: calc(var(--header-height-desktop) + 18px) 16px 32px;
}

main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 20px;
    align-items: stretch;
}

.grid-1 {
    display: flex;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* Medium width */
@media (max-width: 1200px) {
    .grid-2 {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    }

    .grid-1 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 13px;
    }
}

/* Tablet & kecil */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card {
        order: 1;
    }

    .side-card {
        order: 2;
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-card {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 55%),
        radial-gradient(circle at bottom right, rgba(147, 51, 234, 0.25), transparent 55%),
        radial-gradient(circle at top, #101827 0, #050816 55%);
    border-radius: 24px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(129, 140, 248, 0.55);
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.95),
        0 0 40px rgba(37, 99, 235, 0.45);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    right: -140px;
    top: 120px;
    background: radial-gradient(circle,
            rgba(56, 189, 248, 0.25),
            rgba(0, 0, 0, 0));
    filter: blur(55px);
    pointer-events: none;
}


.hero-card--compact {
    padding: 16px 16px 18px;
}

.hero-title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 18px;
}


.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #020617;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(22, 163, 74, 0.7);
    transition:
        background var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), #a7f3d0);
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(22, 163, 74, 0.8);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid rgba(46, 204, 113, 0.85);
    transition: all .25s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(129, 140, 248, 0.7);
}


.hero-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* ← jadi kebawah */
    gap: 8px;
}


.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(75, 85, 99, 0.95);
}

.hero-meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}


/* MOBILE MODE — STACK VERTIKAL */
@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        /* ← PRIMARY ATAS, SECONDARY BAWAH */
        align-items: stretch;
        /* buat full width */
        gap: 10px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        /* ← FULL WIDTH MOBILE */
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ============================================================
   SIDEBAR & CARD COMPONENTS
   ============================================================ */

.side-card {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 60%), var(--bg-elevated);
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.side-card-header h2 {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* FRAME BANNER – BORDER SELALU NGIKUT GAMBAR */
.brand-banner {
    /* frame kotaknya */
    max-width: 500px;
    /* ukuran maksimum di desktop */
    width: 100%;
    /* responsif: ikut lebar side-card */
    aspect-ratio: 1 / 1;
    /* pastikan kotak 1:1 */
    margin: 0 auto;
    /* center di dalam side-card */

    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(129, 140, 248, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;

    background: radial-gradient(circle at top,
            rgba(59, 130, 246, 0.18),
            rgba(15, 23, 42, 0.95));
}

.brand-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
    /* radius sama persis dengan frame */
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}


/* SIDE CARD "TABLE" STYLE */
.quick-list {
    margin-top: 8px;
    list-style: none;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(56, 69, 119, 0.95);
    background: rgba(6, 9, 30, 0.96);
}

/* setiap baris seperti row tabel */
.quick-list li {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    /* kolom label + value */
    gap: 8px;
    align-items: flex-start;
    padding: 6px 10px;
    font-size: 12px;
    border-bottom: 1px solid rgba(30, 64, 175, 0.35);
}

.quick-list li:last-child {
    border-bottom: none;
}

/* kolom kiri (label) */
.quick-list span.label {
    font-weight: 500;
    color: var(--text-muted);
    text-align: left;
    white-space: nowrap;
}

/* kolom kanan (value) */
.quick-list span.value {
    color: var(--text-main);
    font-weight: 500;
    text-align: right;
    line-height: 1.5;
    word-break: break-word;
}

/* link di dalam value biar rapi */
.quick-list span.value a {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    margin-bottom: 2px;
}

.quick-list span.value a:hover {
    text-decoration: underline;
}

/* sedikit zebra effect biar keliatan tabel */
.quick-list li:nth-child(odd) {
    background: rgba(12, 18, 40, 0.96);
}

.quick-list li:nth-child(even) {
    background: rgba(8, 13, 35, 0.96);
}

/* mobile: kolom label lebih kecil */
@media (max-width: 640px) {
    .quick-list li {
        grid-template-columns: 105px minmax(0, 1fr);
        padding: 6px 8px;
    }
}


/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

.section {
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 55%), var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    padding: 16px 16px 18px;
}

.section+.section {
    margin-top: 6px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.section-content {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
}

.section-kicker {
    font-size: 11px;
    color: var(--text-muted);
}

.section p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.section ul {
    list-style: disc;
    margin-left: 18px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.section ul li+li {
    margin-top: 4px;
}

.section ol {
    list-style: decimal;
    margin-left: 18px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.section ol li+li {
    margin-top: 4px;
}

/* ============================================================
   BLOG LIST ( /blog/ page )
   ============================================================ */

.blog-section {
    margin-top: 8px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-card {
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.14), transparent 55%), #05081b;
    border-radius: 16px;
    border: 1px solid rgba(56, 69, 119, 0.95);
    padding: 12px 14px 14px;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
    border-color: rgba(129, 140, 248, 0.95);
    background: radial-gradient(circle at top, rgba(129, 140, 248, 0.24), #020617 60%);
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.blog-badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.24);
    border: 1px solid rgba(129, 140, 248, 0.9);
    color: #e5e7eb;
    font-weight: 500;
}

.blog-date {
    color: var(--text-muted);
}

.blog-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.blog-card-title a {
    color: var(--text-main);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--accent-hover);
}

.blog-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-card-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.blog-card-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .blog-card {
        padding: 10px 12px 12px;
    }

    .blog-card-title {
        font-size: 14px;
    }

    .blog-card-excerpt {
        font-size: 12px;
    }
}

/* ============================================================
   GAMES GRID ( /games/ page )
   ============================================================ */

.games-main .hero-card {
    order: 0;
}

.games-main .games-section {
    order: 1;
}

.games-section {
    margin-top: 8px;
}

/* Filter tabs */

.games-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.games-filter-btn {
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(12, 18, 40, 0.96);
    color: var(--text-muted);
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.games-filter-btn:hover {
    color: var(--text-main);
    background: rgba(30, 64, 175, 0.96);
    border-color: rgba(129, 140, 248, 0.9);
    transform: translateY(-1px);
}

.games-filter-btn.is-active {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-color: rgba(129, 140, 248, 0.95);
    color: #f9fafb;
    box-shadow: 0 14px 32px rgba(88, 28, 135, 0.7);
}

/* Grid */

.games-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.game-card {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.1), transparent 60%), rgba(9, 12, 30, 0.98);
    border-radius: 18px;
    border: 1px solid rgba(56, 69, 119, 0.95);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast),
        opacity var(--transition-fast);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
    border-color: rgba(129, 140, 248, 0.95);
    background: radial-gradient(circle at top, rgba(129, 140, 248, 0.24), #020617 60%);
}

.game-card.is-hidden {
    display: none;
}

/* Thumbnail */

.game-thumb {
    border-radius: 14px;
    overflow: hidden;
}

.game-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* Meta */

.game-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 2px 4px 4px;
}

.game-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.5);
    color: #e5e7eb;
    border: 1px solid rgba(129, 140, 248, 0.95);
}

/* Responsive games grid */

@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .games-filter {
        gap: 6px;
    }

    .games-filter-btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .game-title {
        font-size: 11px;
    }

    .game-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

details.faq-item {
    background: radial-gradient(circle at top, rgba(79, 70, 229, 0.18), transparent 55%), #05081b;
    border-radius: 14px;
    border: 1px solid rgba(56, 69, 119, 0.95);
    padding: 8px 10px;
    font-size: 13px;
}

details.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    color: var(--text-main);
}

details.faq-item[open] {
    border-color: rgba(129, 140, 248, 0.95);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item p {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   FOOTER (TOP · MIDDLE · BOTTOM)
   ============================================================ */

.site-footer {
    margin-top: 28px;
    padding: 22px 0 14px;
    background: var(--bg-footer);
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    font-size: 12px;
    color: var(--text-muted);
}

.site-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* FOOTER TOP */

.footer-top {
    padding-bottom: 18px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: flex-start;
}

.footer-top-block {
    text-align: center;
}

.footer-top-heading {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 10px;
}

.footer-icon-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.footer-icon-list li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon-list img {
    height: 32px;
    max-width: 90px;
    object-fit: contain;
    border-radius: 12px;
    padding: 6px 10px;
    background: rgba(248, 250, 252, 0.98);
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.85);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

.footer-icon-list img:hover {
    transform: translateY(-2px);
    border-color: rgba(191, 219, 254, 0.95);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.95);
}

/* FOOTER MIDDLE */

.footer-middle {
    padding: 18px 0 16px;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.footer-middle-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Brand column */

.footer-col-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo img {
    width: 180px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-description {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Social icons */

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social-link {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.footer-social-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    color: var(--text-main);
}

.footer-social-link:hover {
    background: rgba(30, 64, 175, 0.9);
    border-color: rgba(129, 140, 248, 0.98);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.95);
}

/* footer nav cols */

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-heading {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-heading-support {
    margin-top: 10px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-list a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-list a:hover {
    color: var(--accent-hover);
}

/* FOOTER BOTTOM */

.footer-bottom {
    padding-top: 10px;
    text-align: center;
}

.footer-bottom p {
    font-size: 11px;
    color: var(--text-muted);
}

/* FOOTER RESPONSIVE */

@media (max-width: 900px) {
    .footer-middle-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        row-gap: 18px;
    }

    .footer-col-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-top: 22px;
        padding-bottom: calc(var(--mobile-footer-height) + 10px);
    }

    .footer-middle-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-top-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px 14px;
    }

    /* Payment tampil full width (dua kolom) */
    .footer-top-block--payments {
        grid-column: 1 / 3;
        /* ← FULL WIDTH */
    }

    /* License tampil di kolom kiri */
    .footer-top-block--license {
        grid-column: 1;
        /* LEFT */
    }

    /* Responsible tampil di kolom kanan */
    .footer-top-block--responsible {
        grid-column: 2;
        /* RIGHT */
    }
}

/* FOOTER TOP responsive */

@media (max-width: 900px) {
    .footer-top-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* ============================================================
   MOBILE FIXED FOOTER
   ============================================================ */

.mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--mobile-footer-height);
    background: linear-gradient(to top, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.98));
    border-top: 1px solid rgba(55, 65, 81, 0.95);
    display: none;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.mobile-cta-inner {
    max-width: 1120px;
    margin: 0 auto;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.nav-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.mobile-cta-btn .label {
    font-weight: 500;
    font-size: 11px;
}

.mobile-cta-btn--login .label {
    color: #e5e7eb;
}

.mobile-cta-btn--register .label {
    color: #bbf7d0;
}

.mobile-cta-btn--bonus .label {
    color: #fde68a;
}

.mobile-cta-btn:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE DESIGN (GLOBAL)
   ============================================================ */

@media (max-width: 900px) {
    .site-header {
        height: var(--header-height-mobile);
    }

    .page-wrapper {
        padding-top: calc(var(--header-height-mobile) + 14px);
        padding-bottom: calc(var(--mobile-footer-height) + 18px);
    }

    .main-nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .header-mobile-toggle {
        display: inline-flex;
    }

    .mobile-cta-bar {
        display: block;
    }
}