/* ==================================================
   RESPONSIVE — MOBILE (single source of truth)
   Replace ALL previous mobile patches with this block
   ================================================== */

/* ── GLOBAL OVERFLOW FIX ── */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Force grid/flex children to not overflow their container */
.grid-2>*,
.grid-3>*,
.grid-4>*,
.grid-auto>* {
    min-width: 0;
}

/* Footer button must NOT inherit .footer-col a text-link styling */
.footer-col .btn,
.footer-col .btn-cta {
    color: #fff !important;
    background: linear-gradient(135deg, #F06E00, #BD5800) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem !important;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.footer-col .btn:hover,
.footer-col .btn-cta:hover {
    color: #fff !important;
}

/* ── 900px BREAKPOINT ── */
@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

/* ── 768px BREAKPOINT ── */
@media (max-width: 768px) {

    /* Layout */
    .section {
        padding: 44px 0;
    }

    .section-sm {
        padding: 32px 0;
    }

    .container {
        padding: 0 14px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-auto {
        grid-template-columns: 1fr;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
    }

    /* Header */
    .site-nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .header-inner .btn-cta {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 44px 0 28px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-desc {
        font-size: 0.93rem;
    }

    .hero-badge {
        font-size: 0.7rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 14px;
        margin-top: 24px;
        flex-wrap: wrap;
    }

    .hero-stat-num {
        font-size: 1.4rem;
    }

    .hero-stat-label {
        font-size: 0.72rem;
    }

    /* Sections */
    .section-header {
        margin-bottom: 24px;
    }

    .section-label {
        font-size: 0.68rem;
    }

    body {
        font-size: 15px;
    }

    /* Bonus */
    .bonus-hero {
        padding: 24px 16px;
    }

    .bonus-steps {
        flex-direction: column;
        align-items: center;
    }

    .bonus-label {
        font-size: 0.88rem;
    }

    .bonus-step-pill .pct {
        font-size: 1.1rem;
    }

    .bonus-step-pill .amt {
        font-size: 0.75rem;
    }

    /* Rating */
    .rating-box {
        flex-direction: column;
        padding: 18px 14px;
        gap: 14px;
    }

    .rating-score {
        font-size: 2.6rem;
    }

    .rating-bar-label {
        font-size: 0.78rem;
    }

    /* Cards */
    .card {
        padding: 16px;
    }

    .card-icon {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1rem;
    }

    /* Tables */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        width: 100%;
    }

    .data-table {
        min-width: 500px;
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td {
        padding: 9px 10px;
    }

    /* Charts */
    .chart-wrap {
        height: 230px !important;
        overflow: hidden;
        padding: 12px;
        max-width: 100%;
    }

    .chart-wrap canvas {
        max-width: 100% !important;
        max-height: 100% !important;
    }

    .chart-title {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    /* FAQ */
    .faq-question {
        font-size: 0.9rem;
        padding: 13px 14px;
    }

    .faq-answer {
        font-size: 0.85rem;
        padding: 0 14px 12px;
    }

    /* Page banner */
    .page-banner {
        height: 190px;
        background: linear-gradient(135deg, #062010 0%, #0b2e18 100%);
    }

    .page-banner img {
        opacity: 0.2;
    }

    .page-banner-content h1 {
        font-size: 1.6rem !important;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-col a {
        font-size: 0.82rem;
    }

    .footer-col h5 {
        font-size: 0.84rem;
    }

    .footer-brand p {
        font-size: 0.82rem;
    }

    .footer-legal {
        font-size: 0.72rem;
    }

    .footer-payments {
        gap: 5px;
    }

    .payment-icon {
        padding: 4px 8px;
        font-size: 0.72rem;
    }

    /* Highlight */
    .highlight {
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 0.88rem;
    }

    /* Text overflow prevention */
    p,
    li,
    td,
    th,
    span,
    h1,
    h2,
    h3,
    h4 {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Quick-chip nav bar — allow wrapping on mobile */
    [style*="white-space:nowrap"],
    [style*="white-space: nowrap"] {
        white-space: normal !important;
    }

    /* Inline font-size overrides (HTML attribute selectors) */
    .card [style*="font-size:1.5rem"],
    .card [style*="font-size: 1.5rem"] {
        font-size: 1.1rem !important;
    }

    .card [style*="font-size:0.88rem"],
    .card [style*="font-size: 0.88rem"] {
        font-size: 0.82rem !important;
    }

    [style*="font-size:0.85rem"],
    [style*="font-size: 0.85rem"] {
        font-size: 0.8rem !important;
    }

    /* Buttons: never break up text, always visible */
    .btn,
    .btn-primary,
    .btn-outline,
    .btn-cta {
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
    }

    .btn:hover,
    .btn-cta:hover,
    .card:hover {
        transform: none !important;
    }

    /* Inline grids with fixed widths */
    [style*="grid-template-columns:280px"],
    [style*="grid-template-columns: 280px"],
    [style*="grid-template-columns:1fr 420px"],
    [style*="grid-template-columns: 1fr 420px"] {
        display: block !important;
    }
}

/* ── 480px BREAKPOINT ── */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    /* Hero */
    .hero {
        padding: 36px 0 24px;
    }

    .hero-desc {
        font-size: 0.88rem;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .hero-stat-num {
        font-size: 1.2rem;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-btns .btn {
        padding: 12px 16px;
        font-size: 0.88rem;
    }

    /* Grid */
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Rating */
    .rating-score {
        font-size: 2.1rem;
    }

    /* Cards */
    .card-icon {
        font-size: 1.2rem;
    }

    h4 {
        font-size: 0.93rem;
    }

    /* Chart */
    .chart-wrap {
        height: 200px !important;
    }

    /* Bonus */
    .bonus-step-pill {
        padding: 8px 12px;
    }

    .bonus-step-pill .pct {
        font-size: 1rem;
    }

    .bonus-hero {
        padding: 18px 12px;
    }

    /* Page banner */
    .page-banner {
        height: 160px;
    }

    .page-banner-content h1 {
        font-size: 1.3rem !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
    }

    /* Sections */
    .section {
        padding: 32px 0;
    }

    .section-header {
        margin-bottom: 16px;
    }

    /* Card game stats (inline style overrides) */
    .card [style*="font-size:1.5rem"],
    .card [style*="font-size: 1.5rem"] {
        font-size: 0.95rem !important;
    }
}