/* ============================================================
   RESPONSIVE — Neon Magazine
   ============================================================ */
@media (max-width: 1200px) {
    .game-grid, .featured-row { grid-template-columns: repeat(5, 1fr); }
    .casino-cards-row { grid-template-columns: repeat(4, 1fr); }
    .specs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .game-grid, .featured-row { grid-template-columns: repeat(4, 1fr); }
    .casino-cards-row { grid-template-columns: repeat(3, 1fr); }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .filter-sidebar {
        position: static; display: none;
        border-radius: var(--radius-sm); padding: 16px;
    }
    .filter-sidebar.mobile-open { display: block; }
    .filter-toggle-mobile {
        display: flex; align-items: center; gap: 8px;
        width: 100%; padding: 10px 16px; margin-bottom: 16px;
        background: var(--bg-surface); border: 1px solid var(--border);
        border-radius: var(--radius-sm); color: var(--text-primary);
        font-size: 0.85rem; font-weight: 600; cursor: pointer;
    }
    .filter-toggle-mobile svg { flex-shrink: 0; }
    .filter-toggle-mobile .filter-toggle-arrow {
        margin-left: auto; transition: transform 0.2s;
    }
    .filter-toggle-mobile.open .filter-toggle-arrow { transform: rotate(180deg); }
    .casino-hero-layout { grid-template-columns: 1fr; text-align: center; }
    .casino-hero__logo { margin: 0 auto; }
    .casino-hero__bonus-box { min-width: auto; }
    .game-hero { grid-template-columns: 1fr; }
    .game-hero__media, .game-hero__info, .game-hero__actions { grid-column: 1; }
    .casino-premium-row { grid-template-columns: repeat(2, 1fr); }
    .game-grid--4 { grid-template-columns: repeat(3, 1fr); }
    .wtp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .game-grid, .similar-grid, .featured-row { grid-template-columns: repeat(3, 1fr); }
    .casino-cards-row, .bonus-cards-row, .casino-premium-row { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
    .pros-cons { grid-template-columns: 1fr; }
    .page-nav__links {
        display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
        background: var(--header-bg); flex-direction: column; padding: 12px 20px 16px;
        border-bottom: 1px solid var(--border); z-index: 999;
        box-shadow: 0 8px 32px rgba(0,0,0,0.5); gap: 0;
    }
    .page-nav__links.mobile-open { display: flex; }
    .page-nav__links > a,
    .page-nav__links .page-nav__link--has-sub { width: 100%; text-align: left; border-radius: var(--radius-sm); padding: 12px 16px; }
    .page-nav__dropdown { width: 100%; }
    .page-nav__dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        display: none; box-shadow: none; border: none; background: var(--bg-glass);
        border-radius: var(--radius-sm); margin: 4px 0 8px; padding: 4px 0;
    }
    .page-nav__dropdown.open .page-nav__dropdown-menu { display: block; }
    .page-nav__dropdown-menu a { padding: 10px 20px 10px 32px; font-size: 0.84rem; }
    .mobile-menu-btn { display: flex; }
    .hero-slide__title { font-size: 1.75rem; }

    /* Keep section titles punchy — single line */
    .section-title { font-size: clamp(1.4rem, 5vw, 2rem); white-space: nowrap; }

    .sticky-cta__bonus { display: none; }
    .internal-links { grid-template-columns: 1fr; }
    .internal-link-item:nth-child(odd) { padding-right: 0; border-right: none; }
    .internal-link-item:nth-child(even) { padding-left: 0; }
    .seo-content { padding: 28px 24px 32px; }
    .faq-list { padding: 16px 20px; }
    .marquee-card { width: 200px; }
    .wtp-grid { grid-template-columns: 1fr; }
    .game-grid--4 { grid-template-columns: repeat(2, 1fr); }
    /* Game detail: breadcrumb spacing */
    .game-breadcrumb-wrap { padding-bottom: 0 !important; }
    .game-breadcrumb-wrap .breadcrumb { margin-bottom: 8px; }
    /* Game detail: info → image → actions on mobile */
    .game-hero { display: flex; flex-direction: column; gap: 16px; }
    .game-hero__info { order: 1; padding: 0; }
    .game-hero__media { order: 2; }
    .game-hero .game-hero__actions {
        order: 3; display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px;
        margin-bottom: 0;
    }
    .game-hero .game-hero__actions .btn-cta,
    .game-hero .game-hero__actions .btn-cta--gradient,
    .game-hero .game-hero__actions .btn-cta--outline {
        white-space: nowrap; text-align: center;
        font-size: 0.82rem; padding: 12px 8px;
        width: 100%; box-sizing: border-box;
    }
    .game-hero .game-hero__casinos { grid-column: 1 / -1; }
    .game-hero__specs { order: 4; }
    .game-hero__title { font-size: 1.5rem; }
    .game-hero__title-row { gap: 4px 10px; justify-content: space-between; }
    .game-hero__rating--inline .game-hero__rating-score { font-size: 1rem; }
    .game-hero__rating--inline .game-hero__rating-label { font-size: 0.65rem; }

    /* Thumbnails: max 3 on mobile, no overflow */
    .game-hero__thumb-btn { flex: 0 0 calc((100% - 16px) / 3); }
    .game-hero__thumb-btn:nth-child(n+4) { display: none; }
    /* With video: show 2 image thumbs + video button = 3 total */
    .game-hero__thumbs--has-video .game-hero__thumb-btn { flex: 0 0 calc((100% - 16px) / 3); }
    .game-hero__thumbs--has-video .game-hero__thumb-btn:nth-child(n+3) { display: none; }
    .game-hero__video-btn { flex: 0 0 calc((100% - 16px) / 3) !important; }
    .game-hero__thumb-placeholder { display: none; }

    /* Specs grid: full width on mobile, below CTAs */
    .game-hero__specs { order: 4; width: 100%; }
    .specs-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; width: 100%; }
    .spec-card { padding: 8px 4px; }
    .spec-card__label { font-size: 0.58rem; }
    .spec-card__value { font-size: 0.82rem; }
    .rtp-meter { margin: 0; width: 100%; }

    /* Channel switcher (Explore Categories): horizontal scroll */
    .channel-switcher {
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 6px; padding-bottom: 4px;
        scrollbar-width: none;
    }
    .channel-switcher::-webkit-scrollbar { display: none; }
    .channel-pill {
        flex-shrink: 0; scroll-snap-align: start;
        padding: 8px 14px; font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Pagination: larger touch targets on mobile */
    .pagination .page-numbers {
        min-width: 46px; height: 46px;
        font-size: 0.9rem;
    }

    /* Demo overlay: mobile — compact single-line casino bar for max game space */
    .demo-overlay { padding: 0; overflow: hidden; }
    .demo-overlay__wrap {
        border-radius: 0; border: none;
        height: 100vh; height: 100dvh;
        max-width: 100vw;
    }
    .demo-overlay__header { height: 40px; padding: 0 12px; }
    .demo-overlay__game-name { display: none; }
    .demo-overlay__sep { display: none; }
    .demo-overlay__content { aspect-ratio: auto; flex: 1; overflow: hidden; min-height: 0; }
    .demo-overlay__fake-game { object-fit: contain; background: #000; }
    .demo-overlay__watermark { font-size: 2.5rem; }
    .btn-cta--lg { padding: 14px 20px; font-size: 0.9rem; }
    .demo-overlay__casinos { padding: 6px 12px; }
    .demo-overlay__casinos-bridge { display: none; }
    .demo-overlay__casinos-row { flex-direction: row; gap: 0; align-items: center; }
    .demo-overlay__casinos-row .aff-disclosure { display: none; }
    .demo-overlay__casino { padding: 4px 8px; gap: 8px; border: none; background: none; }
    .demo-overlay__casino:nth-child(n+2) { display: none; }
    .demo-overlay__casino-logo { width: 28px; height: 28px; border-radius: 6px; }
    .demo-overlay__casino-name { font-size: 0.72rem; }
    .demo-overlay__casino-bonus { display: none; }
    .demo-overlay__casino-cta { padding: 6px 14px; font-size: 0.68rem; }

    /* Contain glow orbs — prevent horizontal overflow */
    .section-glow { overflow: hidden; }

    /* Stats bar: compact single row */
    .neon-stats__grid { grid-template-columns: repeat(4, 1fr); }
    .neon-stats__item { padding: 12px 6px; }
    .neon-stats__number { font-size: 1rem; }
    .neon-stats__label { font-size: 0.58rem; letter-spacing: 0.04em; }

    /* Section headers: always one row */
    .section-header { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; }
    .section-header__left { flex-shrink: 1; min-width: 0; }
    .section-header__right { flex-shrink: 0; }
    .section-emoji { font-size: 1.1rem; }

    /* Top Casinos: keep live badge inline */
    .casino-podium-section .section-header { flex-wrap: nowrap; }
    .casino-podium-section .section-header__right { flex-shrink: 0; }
    .live-badge { font-size: 0.6rem; padding: 3px 8px; }
    .podium-timer-label { font-size: 0.6rem; }
    .podium-timer { font-size: 0.72rem; }

    /* Compare hero: compact row */
    .compare-hero__inner { padding: 16px; gap: 12px; }
    .compare-hero__icon { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 10px; }
    .compare-hero__title { font-size: 0.9rem; }
    .compare-hero__desc { display: none; }
    .compare-hero .btn-cta--gradient { font-size: 0.72rem; padding: 8px 14px; white-space: nowrap; }

    /* Hide desktop-only elements on mobile */
    .desktop-only { display: none !important; }

    /* Activity toast: hide on mobile */
    .activity-toast { display: none !important; }

    /* Slot machine: 3 columns, hide 4th */
    .slot-machine .compact-grid--4 { grid-template-columns: repeat(3, 1fr); }
    .slot-machine .compact-grid--4 > :nth-child(4) { display: none; }

    /* Live feed: hide on mobile */
    .live-feed { display: none; }

    /* Casino spotlight: card format with big image area */
    .casino-spotlight { text-align: center; }
    .casino-spotlight__logo {
        width: 100%; height: auto; aspect-ratio: 16/10;
        border-radius: 12px; margin-bottom: 16px;
    }
    .casino-spotlight__logo img { object-fit: cover; padding: 0; }
}
@media (max-width: 480px) {
    .game-grid, .similar-grid, .featured-row { grid-template-columns: 1fr 1fr; }
    .casino-cards-row { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: repeat(4, 1fr); }
    .container { padding: 0 16px; }
    .section-spacing { padding: 36px 0; }
    .hero-slide__title { font-size: 1.5rem; }
    .marquee-card { width: 180px; }
    .section-title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
    .game-hero__title { font-size: 1.35rem; }
    .game-grid--4 { grid-template-columns: 1fr 1fr; }


    /* Slot machine stays 3 columns */
    .slot-machine .compact-grid--4 { grid-template-columns: repeat(3, 1fr); }
    .slot-machine .compact-grid--4 > :nth-child(4) { display: none; }

    /* Best-of cards: stack on mobile */
    .best-of-card { grid-template-columns: auto 1fr; gap: 12px; padding: 16px; }
    .best-of-card__image { grid-column: 1 / -1; order: -1; aspect-ratio: 16/9; }
    .best-of-card__rank { grid-row: 2; flex-direction: row; gap: 6px; min-width: auto; }
    .best-of-card__body { grid-row: 2; }
    .best-of-card__stats { gap: 4px; }
    .best-of-card__actions { flex-wrap: wrap; }
    .best-of-hero__icon { width: 52px; height: 52px; font-size: 2rem; }
    .best-of-hero__title { font-size: 1.4rem; }
    .rg-block { flex-direction: column; gap: 10px; }
}

/* Demo overlay: landscape on short viewports (iPhone etc.) — maximise game area */
@media (orientation: landscape) and (max-height: 500px) {
    .demo-overlay__casinos { display: none; }
    .demo-overlay__header-cta-wrap { display: inline-flex; }
    .demo-overlay__header { height: 32px; }
    .demo-overlay__logo { font-size: 0.7rem; }
    .demo-overlay__timer { font-size: 0.7rem; }
    .demo-overlay__close { width: 24px; height: 24px; font-size: 1rem; }
}
