:root {
    /* --- Chumba Casino brand palette (matched to official logo) --- */
    --black: #0b0c21;
    --deep-black: #07081a;
    --card-bg: #14163a;
    --card-bg-2: #1a1d47;
    --border: #262a5e;
    --white: #ffffff;
    --gray: #8a8fbe;
    --light-gray: #d5d8f0;
    /* Logo letter colors (each hex sampled from the official mark) */
    --red: #e5254e;
    --orange: #ee6a20;
    --yellow: #f9c400;
    --green: #2ea63a;
    --blue: #2986e6;
    --purple: #a137d1;
    --rainbow-grad: linear-gradient(90deg, #e5254e, #f9c400, #2986e6, #2ea63a, #ee6a20, #a137d1);
    --navy-glow: radial-gradient(ellipse at top, #1a1d47 0%, #0b0c21 55%, #07081a 100%);
    --font-head: 'Poppins', sans-serif;
    --font-text: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background: var(--deep-black) var(--navy-glow);
    background-attachment: fixed;
    color: var(--light-gray);
    font-family: var(--font-text);
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

img { max-width: 100%; }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(229, 37, 78, 0.06) 0, transparent 32%),
        radial-gradient(circle at 85% 22%, rgba(41, 134, 230, 0.07) 0, transparent 34%),
        radial-gradient(circle at 68% 88%, rgba(161, 55, 209, 0.06) 0, transparent 36%),
        radial-gradient(circle at 20% 82%, rgba(46, 166, 58, 0.05) 0, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

main, header, footer, nav, aside { position: relative; z-index: 1; }

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    color: var(--white);
}

a {
    text-decoration: none;
    color: var(--blue);
    transition: color 0.3s;
}

a:hover {
    color: var(--purple);
}

.text-anchor {
    border-bottom: 1px dotted var(--orange);
    color: var(--orange);
}

.text-anchor:hover {
    border-bottom-color: var(--green);
    color: var(--green);
}

/* === MAGAZINE STICKY TOP NAV === */
.ch-topnav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 12, 33, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid;
    border-image: var(--rainbow-grad) 1;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Official Chumba Casino wordmark image */
.ch-logo {
    display: inline-flex;
    align-items: center;
    height: 54px;
    line-height: 0;
}
.ch-logo img {
    height: 100%;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    transition: transform 0.25s ease;
}
.ch-logo:hover img { transform: scale(1.04); }

.ch-nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.ch-nav-links a {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.ch-nav-links a:hover,
.ch-nav-links a.active {
    color: var(--white);
    border-bottom-color: var(--orange);
}

.ch-nav-cta {
    background: var(--rainbow-grad);
    color: var(--black) !important;
    padding: 10px 24px !important;
    border-radius: 25px;
    font-weight: 700 !important;
    border-bottom: none !important;
    font-size: 0.9rem;
}

.ch-nav-cta:hover {
    opacity: 0.85;
    color: var(--black) !important;
}

.ch-auth-links {
    display: flex;
    gap: 10px;
}

.ch-auth-links a {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.ch-auth-links .login-btn {
    border: 1px solid var(--border);
    color: var(--white);
}

.ch-auth-links .login-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.ch-auth-links .join-btn {
    background: var(--green);
    color: var(--black);
}

.ch-auth-links .join-btn:hover {
    background: var(--yellow);
}

/* === MAIN CONTENT WRAPPER === */
.ch-main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 30px 100px;
}

/* === HERO BANNER (Full Width Card) === */
.ch-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 420px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.ch-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ch-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 40px 35px;
    background: linear-gradient(to top, rgba(7, 8, 26, 1) 0%, transparent 100%);
}

.ch-hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 8px;
}

.ch-hero-overlay p {
    font-size: 1.15rem;
    background: var(--rainbow-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    margin-bottom: 18px;
}

.ch-hero-cta {
    display: inline-block;
    background: var(--rainbow-grad);
    color: var(--black) !important;
    font-family: var(--font-head);
    font-weight: 800;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(161, 55, 209, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 6px;
}

.ch-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(161, 55, 209, 0.45);
    color: var(--black) !important;
}

/* === CARD GRID SYSTEM === */
.ch-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.ch-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.15);
}

.ch-card h3 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid;
    border-image: var(--rainbow-grad) 1;
    display: inline-block;
}

.ch-card .chart-box {
    position: relative;
    width: 100%;
    height: 280px;
}

/* === RAINBOW TABLE === */
/* Table cells break out of ch-card padding on narrow screens; wrap in scrollable container */
.ch-card > .ch-table,
.ch-card table.ch-table {
    display: table;
}

.ch-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--border);
}

.ch-table th {
    background: var(--card-bg);
    color: var(--white);
    padding: 14px 18px;
    text-align: left;
    font-family: var(--font-head);
    font-size: 0.9rem;
    border-bottom: 2px solid;
    border-image: var(--rainbow-grad) 1;
}

.ch-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.ch-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.ch-table tr:hover td {
    background: rgba(168, 85, 247, 0.08);
}

/* === SEO TEXT BLOCK === */
.ch-seo-block {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 40px;
    margin-top: 40px;
}

.ch-seo-block h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: var(--rainbow-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ch-seo-block p {
    margin-bottom: 18px;
    line-height: 1.85;
    font-size: 1.02rem;
}

/* === FOOTER (magazine-style, 5 columns) === */
.ch-footer {
    padding: 0;
    border-top: 2px solid;
    border-image: var(--rainbow-grad) 1;
    margin-top: 60px;
    background: linear-gradient(180deg, rgba(20, 22, 58, 0.55) 0%, rgba(11, 12, 33, 0.9) 100%);
}

.ch-footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    padding: 48px 30px 32px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.ch-footer-col h4 {
    font-family: var(--font-head);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
    border-image: var(--rainbow-grad) 1;
    display: inline-block;
}

.ch-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ch-footer-col ul a {
    color: var(--gray);
    font-size: 0.88rem;
    transition: color 0.2s;
}

.ch-footer-col ul a:hover {
    color: var(--yellow);
}

.ch-footer-brand .ch-footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.ch-footer-tag {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.ch-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ch-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ch-badge-age {
    background: var(--red);
    color: var(--white);
}

.ch-badge-rg {
    background: rgba(46, 166, 58, 0.15);
    color: var(--green);
    border: 1px solid var(--green);
}

.ch-badge-cert {
    background: rgba(41, 134, 230, 0.15);
    color: var(--blue);
    border: 1px solid var(--blue);
}

.ch-trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ch-trust-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.ch-trust-badge:hover {
    border-color: var(--purple);
    transform: translateY(-2px);
}

.ch-trust-badge .tb-mono {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.95rem;
    background: var(--rainbow-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.ch-trust-badge .tb-sub {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 2px;
    letter-spacing: 0.3px;
}

.ch-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pm {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--light-gray);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.ch-footer-warning {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 30px;
    background: rgba(229, 37, 78, 0.06);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--light-gray);
    font-size: 0.82rem;
    line-height: 1.7;
}

.ch-footer-warning strong {
    color: var(--red);
    font-family: var(--font-head);
    letter-spacing: 0.5px;
}

.ch-footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 30px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ch-footer-links {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.ch-footer-links a {
    color: var(--gray);
    font-size: 0.82rem;
    transition: color 0.2s;
}

.ch-footer-links a:hover {
    color: var(--yellow);
}

.ch-footer-copy {
    font-size: 0.75rem;
    color: var(--gray);
    line-height: 1.6;
    text-align: right;
    max-width: 640px;
}

.ch-footer-affiliate {
    color: #666;
    font-style: italic;
    font-size: 0.72rem;
}

/* === AUTHOR CHIP === */
.ch-author-chip {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: rgba(168, 85, 247, 0.05);
    margin-top: 20px;
}

.ch-author-chip img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--purple);
}

/* === MOBILE BURGER & DOCK === */
.ch-mobile-burger {
    display: none;
}

.ch-mobile-dock {
    display: none;
}

/* Compact rainbow CTA visible only in the mobile header (next to the burger) */
.ch-mobile-cta {
    display: none;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .ch-topnav {
        padding: 0 15px;
        height: 66px;
    }

    .ch-nav-links,
    .ch-auth-links {
        display: none;
    }

    .ch-logo {
        height: 42px;
        max-width: 120px;
        overflow: hidden;
    }
    .ch-logo img {
        max-width: 100%;
        max-height: 42px;
        object-fit: contain;
    }

    .ch-mobile-burger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 8px;
        cursor: pointer;
    }

    .ch-mobile-burger svg {
        width: 24px;
        height: 24px;
        fill: var(--white);
    }

    /* Mobile-header Play CTA, always visible next to the burger */
    .ch-mobile-cta {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: var(--rainbow-grad);
        color: var(--black) !important;
        font-family: var(--font-head);
        font-weight: 800;
        font-size: 0.85rem;
        padding: 9px 16px;
        border-radius: 22px;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 14px rgba(161, 55, 209, 0.35);
        margin-right: 10px;
        text-transform: uppercase;
    }
    .ch-mobile-cta:hover { color: var(--black) !important; opacity: 0.92; }

    /* Reorder header items so logo | CTA | burger reads left-to-right */
    .ch-topnav { gap: 4px; }
    .ch-logo { margin-right: auto; }

    .ch-main {
        padding: 20px 12px 110px;
    }

    .ch-hero {
        height: 300px;
        margin-bottom: 24px;
    }
    .ch-hero img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .ch-hero-overlay {
        padding: 24px 18px 20px;
    }

    .ch-hero-overlay h1 {
        font-size: 1.5rem;
        line-height: 1.15;
        word-break: break-word;
    }

    .ch-hero-overlay p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .ch-hero-cta {
        padding: 11px 22px;
        font-size: 0.9rem;
    }

    .ch-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ch-card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .ch-card h3 {
        font-size: 1rem;
        margin-bottom: 14px;
    }

    .ch-card .chart-box {
        height: 240px;
    }

    /* Tables on mobile: keep as real table, shrink font + wrap words so nothing overflows */
    .ch-card {
        overflow: hidden;
    }
    .ch-card .ch-table {
        display: table;
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
        font-size: 0.72rem;
    }
    .ch-card .ch-table caption {
        font-size: 0.7rem;
        color: var(--gray);
    }
    .ch-card .ch-table th,
    .ch-card .ch-table td {
        padding: 8px 6px;
        font-size: 0.72rem;
        white-space: normal;
        word-break: break-word;
        line-height: 1.4;
        vertical-align: top;
    }
    .ch-card .ch-table th {
        font-size: 0.7rem;
    }

    .ch-seo-block {
        padding: 22px 18px;
        border-radius: 12px;
    }
    .ch-seo-block h2 {
        font-size: 1.35rem;
    }
    .ch-seo-block p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .ch-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding: 30px 18px 24px;
    }
    .ch-footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    .ch-footer-brand .ch-footer-badges {
        justify-content: center;
    }
    .ch-footer-trust {
        grid-column: 1 / -1;
    }
    .ch-footer-warning {
        padding: 18px 18px;
        font-size: 0.78rem;
    }
    .ch-footer-bottom {
        padding: 16px 18px 22px;
        flex-direction: column;
        text-align: center;
    }
    .ch-footer-links {
        justify-content: center;
    }
    .ch-footer-copy {
        text-align: center;
        max-width: 100%;
    }

    .ch-mobile-dock {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(11, 12, 33, 0.98);
        border-top: 2px solid;
        border-image: var(--rainbow-grad) 1;
        justify-content: space-around;
        padding: 10px 0;
        z-index: 999;
    }

    .dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: var(--gray);
        font-size: 0.65rem;
        font-family: var(--font-head);
        font-weight: 600;
    }

    .dock-item svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .dock-item.active {
        color: var(--orange);
    }

    .dock-item.cta-dock {
        color: var(--green);
    }
}

@media (max-width: 520px) {
    .ch-hero {
        height: 260px;
    }
    .ch-hero-overlay h1 {
        font-size: 1.3rem;
    }
    .ch-hero-overlay p {
        font-size: 0.82rem;
    }
    .ch-card .chart-box {
        height: 220px;
    }
    /* Single-column footer on very narrow screens */
    .ch-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 26px 16px 20px;
    }
    .ch-footer-trust,
    .ch-footer-brand {
        grid-column: auto;
        text-align: left;
    }
    .ch-footer-brand {
        text-align: center;
    }
    .ch-footer-brand .ch-footer-badges {
        justify-content: center;
    }
    .ch-trust-badges {
        grid-template-columns: 1fr 1fr;
    }
    .ch-footer-warning {
        padding: 16px 14px;
        font-size: 0.75rem;
    }
    .ch-footer-bottom {
        padding: 14px 14px 20px;
    }
    /* Even more compact hero + cards */
    .ch-main {
        padding: 16px 10px 110px;
    }
    .ch-card {
        padding: 16px 12px;
    }
    .ch-card h3 {
        font-size: 0.95rem;
    }
    .ch-card .ch-table {
        font-size: 0.68rem !important;
    }
    .ch-card .ch-table th,
    .ch-card .ch-table td {
        padding: 6px 4px !important;
        font-size: 0.68rem !important;
    }
    /* Tighten mobile-header CTA */
    .ch-mobile-cta {
        padding: 8px 12px;
        font-size: 0.78rem;
        margin-right: 6px;
    }
    .ch-logo {
        max-width: 100px;
    }
}

/* Mobile Sidebar Drawer */
.ch-mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--deep-black);
    border-right: 2px solid;
    border-image: var(--rainbow-grad) 1;
    padding: 30px 20px;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ch-mobile-sidebar.active {
    transform: translateX(0);
}

.ch-mobile-sidebar a {
    display: block;
    padding: 14px 20px;
    color: var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 1rem;
}

.ch-mobile-sidebar a:hover {
    background: var(--card-bg);
    color: var(--orange);
}

.ch-mobile-sidebar .close-sidebar {
    align-self: flex-end;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.ch-mobile-sidebar .mobile-auth {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.ch-mobile-sidebar .mobile-auth a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.ch-mobile-sidebar .m-login {
    border: 1px solid var(--orange);
    color: var(--orange);
}

.ch-mobile-sidebar .m-join {
    background: var(--green);
    color: var(--black);
    font-weight: 700;
}