/* Responsive: tablet 1024, mobile 768, small 480 */

@media (max-width: 1024px) {
    .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
    .site-footer__col--about, .site-footer__col--responsible { grid-column: 1 / -1; }
    .casinos-grid, .slots-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .hero__stats { grid-template-columns: repeat(2, 1fr); }
    .slot-hero__inner { grid-template-columns: 1fr; }
    .slot-hero__stats { grid-template-columns: repeat(3, 1fr); }
    .mechanic__steps, .bonus-rounds, .features-grid, .crash-steps { grid-template-columns: 1fr; }

    /* Verified casinos item becomes 2-col on tablet */
    .verified-casinos__item { grid-template-columns: 110px 1fr auto; gap: 14px; }
    .verified-casinos__logo { width: 110px; height: 42px; }
}

@media (max-width: 768px) {
    .site-header__nav { display: none; }
    .site-header__burger { display: inline-flex; }
    .site-header__cta {
        display: inline-flex;
        margin-left: auto;
        margin-right: 8px;
        padding: 8px 14px;
        min-height: 38px;
        font-size: 0.88rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }
    .site-header__mobile[hidden] { display: none; }
    .site-header__mobile {
        display: block;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        z-index: 90;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        animation: mobileMenuIn 0.2s ease;
    }
    @keyframes mobileMenuIn {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    /* Brand text can be compact on mobile */
    .site-header__brand { font-size: 1.05rem; }

    .hero { padding: 36px 0 32px; }
    .hero__stats { grid-template-columns: repeat(2, 1fr); }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }

    .section { padding: 32px 0; }

    .casinos-grid, .slots-grid, .blog-grid { grid-template-columns: 1fr; }
    .site-footer__inner { grid-template-columns: 1fr; }

    .slot-hero__actions { flex-direction: column; align-items: stretch; }
    .slot-hero__actions .btn { width: 100%; }
    .slot-hero__stats { grid-template-columns: repeat(2, 1fr); }

    .filters__row { flex-direction: column; align-items: stretch; }
    .filters__label { min-width: 0; }

    .catalog-hero__stats { gap: 8px; }

    .author-box { flex-direction: column; text-align: center; }
    .author-box__head { justify-content: center; }
    .author-box__cred { justify-content: center; }

    .back-to-top {
        right: 14px; bottom: 14px;
        width: 44px; height: 44px;
    }

    /* ===== CONTENT TABLES: mobile-friendly padding and stacking ===== */
    .slot-review-prose table,
    .slot-strategy-prose table,
    .prose table,
    .article__content table,
    .unique-block table,
    .compare-mini {
        font-size: 0.88rem;
        min-width: 480px; /* forces horizontal scroll wrapper to kick in */
    }
    .slot-review-prose table th,
    .slot-strategy-prose table th,
    .prose table th,
    .article__content table th,
    .unique-block table th,
    .compare-mini th { padding: 10px 12px; font-size: 0.8rem; }
    .slot-review-prose table td,
    .slot-strategy-prose table td,
    .prose table td,
    .article__content table td,
    .unique-block table td,
    .compare-mini td { padding: 9px 12px; }

    /* table-scroll wrapper uses a bit more vertical margin on mobile */
    .table-scroll {
        margin: 16px -4px 22px;
        padding: 0 4px;
    }

    /* Article content padding reduced on mobile */
    .article__content, .prose { padding: 22px 18px; }

    /* ===== VERIFIED CASINOS: stack on mobile ===== */
    .verified-casinos { padding: 22px 18px; }
    .verified-casinos__title { font-size: 1.15rem; }
    .verified-casinos__sub { font-size: 0.9rem; }
    .verified-casinos__item {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "logo info"
            "cta cta";
        gap: 10px 14px;
        padding: 14px 14px;
    }
    .verified-casinos__logo { grid-area: logo; width: 72px; height: 36px; }
    .verified-casinos__info { grid-area: info; }
    .verified-casinos__cta { grid-area: cta; width: 100%; text-align: center; padding: 12px 20px; }
    .verified-casinos__name-row { gap: 8px; }
    .verified-casinos__name { font-size: 0.98rem; }
    .verified-casinos__bonus { font-size: 0.85rem; }

    /* PAYTABLE, COMPARE TABLE, BUYBONUS TABLE - wrap on mobile */
    .paytable, .compare-table, .buybonus-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .compare-pair__table { font-size: 0.88rem; }
}

@media (max-width: 480px) {
    /* Keep brand visible on small screens - just make it compact */
    .site-header__brand { font-size: 0.88rem; letter-spacing: -0.02em; }
    .site-header__logo { gap: 6px; }
    .site-header__logo-icon { width: 24px; height: 24px; }
    .site-header__cta { padding: 7px 10px; font-size: 0.8rem; min-height: 34px; }

    .hero__stats { grid-template-columns: 1fr 1fr; }
    .hero__title { font-size: 1.6rem; }
    .slot-hero__stats { grid-template-columns: 1fr; }
    .promo-cta__code-wrap { flex-direction: column; }
    .promo-cta__code { font-size: 1.3rem; }
    .page-404__code { font-size: 4rem; }
    /* Small mobile: force back-to-top visible */
    .back-to-top { right: 10px; bottom: 10px; width: 42px; height: 42px; }

    /* Article content even tighter */
    .article__content, .prose { padding: 18px 14px; }
    .slot-review-prose table,
    .slot-strategy-prose table,
    .prose table,
    .article__content table { font-size: 0.82rem; }

    /* Verified casinos - even more compact */
    .verified-casinos { padding: 18px 14px; margin: 24px 0; }
    .verified-casinos__eyebrow { font-size: 0.68rem; padding: 3px 10px; }
    .verified-casinos__title { font-size: 1.05rem; }
    .verified-casinos__item { padding: 12px; }
    .verified-casinos__disclaimer { font-size: 0.75rem; }

    /* Callouts, stat-cards on tiny viewports */
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .callout { padding: 14px 14px; }
    .case-study { padding: 16px 14px; }
}
