﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:            #0b0e14;
    --bg-elevated:   #12171f;
    --bg-sidebar:    #0f1319;
    --bg-card:       #151b24;
    --bg-hover:      #1c2430;
    --bg-input:      #0d1118;
    --text:          #f0f4fa;
    --text-muted:    #7d8fa8;
    --text-dim:      #556275;
    --accent:        #e8b84b;
    --accent-lt:     #f5d078;
    --accent-dk:     #c99a2e;
    --accent-glow:   rgba(232, 184, 75, 0.18);
    --accent-border: rgba(232, 184, 75, 0.35);
    --green:         #34d399;
    --border:        rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);
    --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md:     0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg:     0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-accent: 0 4px 20px rgba(232, 184, 75, 0.15);
    --sidebar-w:     228px;
    --offcanvas-w:   280px;
    --header-h:      60px;
    --bp-desktop:    1024px;
    --bp-tablet:     768px;
    --content-max:   980px;
    --radius-sm:     6px;
    --radius:        10px;
    --radius-lg:     14px;
    --space-1:       0.25rem;
    --space-2:       0.5rem;
    --space-3:       0.75rem;
    --space-4:       1rem;
    --space-5:       1.25rem;
    --space-6:       1.5rem;
    --space-8:       2rem;
    --space-10:      2.5rem;
    --ease:          cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:      cubic-bezier(0, 0, 0.2, 1);
    --duration:      0.22s;
    --font:          'Inter', system-ui, sans-serif;
    --font-heading:  'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
}

h1, h2, h3,
.hero-banner h1,
.section-heading,
.logo-text {
    font-family: var(--font-heading);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(11, 14, 20, 0.88);
    border-bottom: 1px solid var(--border);
    z-index: 200;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--space-5);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.sidebar-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background var(--duration) var(--ease),
                border-color var(--duration) var(--ease);
}

.sidebar-toggle:hover,
.sidebar-toggle.is-active {
    background: var(--bg-hover);
    border-color: var(--accent-border);
}

/* Hamburger icon */
.hamburger-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 18px;
    height: 14px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease),
                opacity 0.3s var(--ease),
                width 0.3s var(--ease);
    transform-origin: center;
}

.sidebar-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.sidebar-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.sidebar-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.logo {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    flex-shrink: 0;
    transition: opacity var(--duration) var(--ease);
}

.logo:hover { opacity: 0.85; }

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-text span { color: var(--accent); }

/* Logo â€” fixed height, no CLS */
.logo img,
.logo-img {
    width: auto;
    height: 36px;
    max-width: 180px;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    gap: var(--space-2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    transition: background var(--duration) var(--ease),
                transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease),
                border-color var(--duration) var(--ease);
}

.btn-login {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    color: var(--text);
}

.btn-login:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}

.btn-register {
    background: linear-gradient(180deg, var(--accent-lt) 0%, var(--accent) 100%);
    color: #1a1200;
    box-shadow: var(--shadow-accent);
}

.btn-register:hover {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dk) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(232, 184, 75, 0.25);
}

.btn-register:active { transform: translateY(0); }

/* ===== LAYOUT ===== */
.layout {
    display: flex;
    padding-top: var(--header-h);
    min-height: 100vh;
}

/* ===== SIDEBAR / OFFCANVAS ===== */
.sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: var(--sidebar-w);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 190;
    transition: transform 0.32s var(--ease-out);
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}

/* Offcanvas header â€” hanya tablet & mobile */
.offcanvas-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
    position: sticky;
    top: 0;
    z-index: 2;
}

.offcanvas-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.offcanvas-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    transition: background var(--duration) var(--ease),
                color var(--duration) var(--ease),
                border-color var(--duration) var(--ease);
}

.offcanvas-close:hover {
    background: var(--bg-hover);
    color: var(--text);
    border-color: var(--accent-border);
}

.sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 180;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s var(--ease),
                visibility 0.32s var(--ease);
    backdrop-filter: blur(2px);
}

.sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

body.is-offcanvas-open {
    overflow: hidden;
    touch-action: none;
}

.sidebar-nav {
    list-style: none;
    padding: var(--space-4) var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0.65rem var(--space-4);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background var(--duration) var(--ease),
                color var(--duration) var(--ease),
                border-color var(--duration) var(--ease);
}

.sidebar-nav a:hover {
    background: var(--bg-hover);
    color: var(--text);
    border-color: var(--border);
}

.sidebar-nav a.is-active {
    background: rgba(232, 184, 75, 0.08);
    color: var(--accent-lt);
    border-color: var(--accent-border);
    box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-nav .icon {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    display: block;
}

.sidebar-nav .icon img {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
    object-fit: contain;
    object-position: center;
}

.sidebar-nav a:hover .icon img,
.sidebar-nav a.is-active .icon img {
    filter: brightness(0) saturate(100%) invert(84%) sepia(31%) saturate(638%) hue-rotate(359deg) brightness(101%) contrast(93%);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 0;
    padding: var(--space-6) var(--space-5) var(--space-8);
    max-width: 100%;
    content-visibility: auto;
    contain-intrinsic-size: auto 1200px;
}

.content-wrap {
    max-width: var(--content-max);
    margin: 0 auto;
}

/* ===== ANIMASI MASUK ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.anim-in {
    animation: fadeUp 0.55s var(--ease-out) both;
}

.anim-in-delay-1 { animation-delay: 0.06s; }
.anim-in-delay-2 { animation-delay: 0.12s; }
.anim-in-delay-3 { animation-delay: 0.18s; }
.anim-in-delay-4 { animation-delay: 0.24s; }

/* ===== HERO BANNER ===== */
.hero-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: var(--space-5);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--duration) var(--ease),
                filter var(--duration) var(--ease);
}

@media (hover: hover) and (min-width: 769px) {
    .hero-banner-link:hover {
        transform: translateY(-2px);
        filter: brightness(1.06);
    }
}

.hero-banner {
    position: relative;
    width: 100%;
    border-radius: inherit;
    border: 1px solid var(--border-strong);
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-md);
}

.hero-banner-media {
    display: block;
    width: 100%;
    line-height: 0;
}

.hero-banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    position: relative;
    padding: 20px var(--space-6) var(--space-6);
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 184, 75, 0.12);
    border: 1px solid var(--accent-border);
    color: var(--accent-lt);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-banner h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.125rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    color: var(--text);
}

.hero-banner p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 42ch;
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(180deg, var(--accent-lt) 0%, var(--accent) 100%);
    color: #1a1200;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    box-shadow: var(--shadow-accent);
    transition: box-shadow var(--duration) var(--ease);
}

@media (hover: hover) and (min-width: 769px) {
    .hero-banner-link:hover .btn-hero {
        box-shadow: 0 6px 24px rgba(232, 184, 75, 0.32);
    }
}

/* ===== JACKPOT WIDGET ===== */
.jackpot-widget {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: linear-gradient(90deg, #141008 0%, #1e1808 50%, #141008 100%);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-5);
    margin-bottom: var(--space-8);
    overflow: hidden;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.04);
}

.jackpot-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--accent-lt);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.jackpot-amount {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    font-weight: 800;
    color: var(--accent-lt);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    flex: 1;
    text-align: right;
    transition: color 0.4s var(--ease);
}

.jackpot-amount.is-tick { color: #fff; }

.jackpot-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.45; transform: scale(0.8); }
}

/* ===== GAME CARDS ===== */
.section-block { margin-bottom: var(--space-10); }

.section-heading {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text);
    letter-spacing: -0.01em;
}

.section-heading::before {
    content: '';
    width: 3px;
    height: 1rem;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-strong), transparent);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.5s var(--ease-out) both;
    transition: border-color var(--duration) var(--ease),
                transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}

.game-card:nth-child(1) { animation-delay: 0.20s; }
.game-card:nth-child(2) { animation-delay: 0.25s; }
.game-card:nth-child(3) { animation-delay: 0.30s; }
.game-card:nth-child(4) { animation-delay: 0.35s; }
.game-card:nth-child(5) { animation-delay: 0.40s; }
.game-card:nth-child(6) { animation-delay: 0.45s; }

.game-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-accent);
}

.game-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    line-height: 1;
}

/* Game thumbnail image â€” fixed 4:3, no CLS */
.game-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.game-thumb:has(img) {
    font-size: 0;
}

.game-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}

.game-card:hover .game-thumb::after { opacity: 1; }

.game-tag {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: var(--text);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 2;
}

.game-info {
    padding: var(--space-3) var(--space-4) var(--space-4);
}

.game-info h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: var(--space-2);
}

.game-play {
    display: block;
    width: 100%;
    padding: 0.45rem var(--space-3);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--accent-lt);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: background var(--duration) var(--ease),
                border-color var(--duration) var(--ease),
                color var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

.game-play:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1200;
    transform: scale(1.02);
}

/* ===== ARTIKEL ===== */
.article-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-8);
    box-shadow: var(--shadow-sm);
    min-height: 200px;
}

.article-box-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.02em;
}

.article-content {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.article-content p { margin-bottom: var(--space-4); }
.article-content p:last-child { margin-bottom: 0; }

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--text);
    font-weight: 700;
    margin: var(--space-6) 0 var(--space-3);
    line-height: 1.35;
}

.article-content h2 { font-size: 1.125rem; }
.article-content h3 { font-size: 1rem; }
.article-content h4 { font-size: 0.9375rem; }

.article-content ul,
.article-content ol {
    margin: 0 0 var(--space-4) var(--space-5);
}

.article-content li { margin-bottom: var(--space-2); }

.article-content a {
    color: var(--accent-lt);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover { color: var(--accent); }

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(33.333% - var(--space-3));
    min-width: 100px;
    padding: 0.55rem var(--space-4);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--accent-lt);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background var(--duration) var(--ease),
                border-color var(--duration) var(--ease),
                color var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

.contact-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1200;
    transform: scale(1.02);
}

.article-content code {
    background: var(--bg-input);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent-lt);
}

.article-content strong,
.article-content b { color: var(--text); }

/* ===== REVIEW ===== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.review-card {
    background: #11161f;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    min-width: 0;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}

@media (max-width: 1024px) {
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
}

.review-card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: var(--space-3);
    color: var(--accent);
}

.review-stars svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.review-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.review-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

.review-summary {
    margin: var(--space-6) 0 0;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-lt);
    text-shadow: 0 0 18px var(--accent-glow);
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}

.faq-item:hover { border-color: var(--border-strong); }

.faq-item.is-open {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    transition: background var(--duration) var(--ease);
}

.faq-question:hover { background: var(--bg-hover); }

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent);
    background: rgba(232, 184, 75, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease), background var(--duration) var(--ease);
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    background: rgba(232, 184, 75, 0.2);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 var(--space-5);
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.65;
    transition: max-height 0.35s var(--ease),
                opacity 0.3s var(--ease),
                padding 0.35s var(--ease);
}

.faq-item.is-open .faq-answer {
    max-height: 180px;
    opacity: 1;
    padding: 0 var(--space-5) var(--space-4);
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: var(--space-8) 0 var(--space-6);
    margin-top: var(--space-4);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-5);
}

.footer-brand {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-brand strong {
    color: var(--text);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    list-style: none;
    font-size: 0.8125rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color var(--duration) var(--ease);
}

.footer-links a:hover,
.footer-links a.is-active { color: var(--accent-lt); }

.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 0.6875rem;
    color: var(--text-dim);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
    margin-top: var(--space-2);
}

/* ===== RESPONSIVE ===== */

/* --- DESKTOP (â‰¥ 1024px) --- */
@media (min-width: 1024px) {
    .sidebar-toggle { display: none !important; }
    .offcanvas-header { display: none !important; }
    .sidebar-overlay { display: none !important; }

    .sidebar {
        transform: translateX(0) !important;
    }

    .header-inner {
        justify-content: flex-end;
        padding: 0 var(--space-5);
    }

    .header-left {
        width: 0;
        overflow: visible;
    }

    .logo {
        position: absolute;
        left: 22px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
        min-height: 36px;
    }

    .main-content {
        margin-left: var(--sidebar-w);
    }

    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- TABLET (768px â€“ 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .sidebar-toggle { display: flex; }

    .offcanvas-header { display: flex; }

    .header-inner {
        padding: 0 var(--space-5);
    }

    .sidebar {
        top: 0;
        width: var(--offcanvas-w);
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        padding-top: 0;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: var(--space-5) var(--space-5) var(--space-8);
    }

    .hero-banner-link {
        border-radius: var(--radius-lg);
    }

    .hero-content {
        padding-left: var(--space-5);
        padding-right: var(--space-5);
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .jackpot-widget {
        padding: var(--space-4) var(--space-5);
    }

    .footer-inner {
        flex-direction: row;
    }
}

/* --- MOBILE (< 768px) --- */
@media (max-width: 767px) {
    :root {
        --header-h: 56px;
    }

    .sidebar-toggle { display: flex; }

    .offcanvas-header { display: flex; }

    .header-inner {
        padding: 0 var(--space-3);
    }

    .header-left {
        gap: var(--space-3);
        min-width: 0;
    }

    .logo img,
    .logo-img {
        height: 32px;
        max-width: 150px;
    }

    .logo { min-height: 32px; }

    .header-actions { gap: var(--space-1); }

    .header-actions .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .sidebar {
        top: 0;
        width: min(var(--offcanvas-w), 88vw);
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-nav {
        padding: var(--space-3);
    }

    .sidebar-nav a {
        padding: 0.75rem var(--space-4);
        font-size: 0.9rem;
    }

    .main-content {
        margin-left: 0;
        padding: var(--space-4) var(--space-3) var(--space-6);
    }

    .hero-banner-link {
        margin-bottom: 0.625rem;
        border-radius: var(--radius);
    }

    .hero-content {
        padding: 20px var(--space-4) var(--space-4);
    }

    .hero-banner h1 {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .hero-banner p {
        font-size: 0.8125rem;
        line-height: 1.55;
        max-width: none;
    }

    .btn-hero {
        width: 100%;
        text-align: center;
        padding: 0.7rem;
    }

    .jackpot-widget {
        flex-wrap: wrap;
        gap: var(--space-2);
        padding: var(--space-3);
        margin-bottom: var(--space-6);
    }

    .jackpot-amount {
        text-align: left;
        width: 100%;
        font-size: 1rem;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }

    .article-box {
        padding: var(--space-5) var(--space-4);
    }

    .article-box-title { font-size: 1.1rem; }

    .article-content { font-size: 0.875rem; }

    .game-thumb { font-size: 1.75rem; }

    .game-info {
        padding: var(--space-2) var(--space-3) var(--space-3);
    }

    .game-info h3 { font-size: 0.75rem; }

    .game-play {
        padding: 0.4rem;
        font-size: 0.6875rem;
    }

    .contact-btn {
        flex: 1 1 100%;
        font-size: 0.75rem;
        padding: 0.45rem var(--space-3);
    }

    .section-block { margin-bottom: var(--space-8); }

    .section-heading {
        font-size: 0.875rem;
        margin-bottom: var(--space-4);
    }

    .faq-question {
        padding: var(--space-3) var(--space-4);
        font-size: 0.8125rem;
    }

    .faq-answer {
        font-size: 0.75rem;
    }

    .faq-item.is-open .faq-answer {
        padding: 0 var(--space-4) var(--space-3);
    }

    .site-footer {
        padding: var(--space-6) 0 var(--space-5);
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* --- MOBILE KECIL (< 400px) --- */
@media (max-width: 399px) {
    .header-actions .btn-login { display: none; }

    .game-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
    }

    .game-thumb { font-size: 1.5rem; }
}
