/* ============================================================
 * Lucky Bingo - design.css
 * Mobile-first design, max-width 430px primary target.
 * All custom classes use the w3bec- prefix.
 * Palette: #48D1CC | #AFEEEE | #E8F5E8 | #FDF5E6 | #0C0C0C
 * ============================================================ */

:root {
    --w3bec-turquoise: #48D1CC;
    --w3bec-pale: #AFEEEE;
    --w3bec-mint: #E8F5E8;
    --w3bec-cream: #FDF5E6;
    --w3bec-ink: #0C0C0C;
    --w3bec-ink-soft: #1a1a1a;
    --w3bec-grey: #2a2a2a;
    --w3bec-text: #f5f7f7;
    --w3bec-muted: #b8c5c5;
    --w3bec-gold: #ffd479;
    --w3bec-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
    background: var(--w3bec-ink);
    color: var(--w3bec-text);
    line-height: 1.5;
    font-size: 1.6rem;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--w3bec-turquoise); text-decoration: none; }
a:hover { color: var(--w3bec-pale); }

.w3bec-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.w3bec-wrap { width: 100%; max-width: 430px; margin: 0 auto; }

/* ---------------- Header ---------------- */
.w3bec-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #0a0a0a 0%, #11201f 100%);
    border-bottom: 2px solid var(--w3bec-turquoise);
    box-shadow: 0 2px 12px rgba(72, 209, 204, 0.18);
}
.w3bec-header-row {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
}
.w3bec-brand { display: flex; align-items: center; gap: 0.6rem; }
.w3bec-brand-logo {
    width: 36px; height: 36px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--w3bec-pale), var(--w3bec-turquoise));
    display: flex; align-items: center; justify-content: center;
    color: var(--w3bec-ink); font-weight: 800; font-size: 1.5rem;
    box-shadow: 0 0 10px rgba(72, 209, 204, 0.6);
}
.w3bec-brand-name {
    font-size: 1.9rem; font-weight: 800; letter-spacing: 0.4px;
    color: var(--w3bec-text);
}
.w3bec-brand-name span { color: var(--w3bec-turquoise); }

.w3bec-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w3bec-btn {
    border: none; cursor: pointer; font-weight: 700;
    border-radius: 22px; padding: 0.7rem 1.4rem; font-size: 1.35rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.w3bec-btn:active { transform: scale(0.96); }
.w3bec-btn-login {
    background: transparent; color: var(--w3bec-pale);
    border: 1.5px solid var(--w3bec-turquoise);
}
.w3bec-btn-register {
    background: linear-gradient(135deg, var(--w3bec-turquoise), #2fa9a4);
    color: var(--w3bec-ink);
    box-shadow: 0 4px 12px rgba(72, 209, 204, 0.45);
}
.w3bec-menu-btn {
    background: transparent; border: none; color: var(--w3bec-text);
    font-size: 2.2rem; cursor: pointer; padding: 0.2rem 0.4rem;
}

/* ---------------- Mobile menu ---------------- */
.w3bec-menu-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    z-index: 9998; opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease;
}
.w3bec-backdrop-show { opacity: 1; visibility: visible; }

.w3bec-mobile-menu {
    position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px;
    height: 100vh; background: #0c1413; z-index: 9999;
    transition: right 0.28s ease; padding: 2rem 1.4rem; overflow-y: auto;
    border-left: 1px solid rgba(72,209,204,0.25);
}
.w3bec-menu-open { right: 0; }
.w3bec-mobile-menu h3 {
    font-size: 1.5rem; color: var(--w3bec-turquoise);
    margin: 1.4rem 0 0.6rem; letter-spacing: 0.5px; text-transform: uppercase;
}
.w3bec-mobile-menu a {
    display: block; padding: 0.85rem 0.4rem; color: var(--w3bec-text);
    border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 1.4rem;
}
.w3bec-mobile-menu a:hover { color: var(--w3bec-pale); padding-left: 0.8rem; }
.w3bec-menu-close {
    background: transparent; border: none; color: var(--w3bec-text);
    font-size: 2.2rem; float: right; cursor: pointer; line-height: 1;
}

/* ---------------- Main / sections ---------------- */
main { padding-top: 64px; }
@media (max-width: 768px) { main { padding-bottom: 84px; } }

.w3bec-section { padding: 2.4rem 0; }
.w3bec-section-title {
    font-size: 2rem; font-weight: 800; margin-bottom: 1.2rem;
    color: var(--w3bec-text);
    display: flex; align-items: center; gap: 0.7rem;
}
.w3bec-section-title::before {
    content: ""; width: 6px; height: 22px; border-radius: 3px;
    background: linear-gradient(180deg, var(--w3bec-turquoise), var(--w3bec-pale));
}
.w3bec-section-sub {
    color: var(--w3bec-muted); font-size: 1.35rem; margin-bottom: 1.4rem;
}

/* ---------------- Carousel ---------------- */
.w3bec-carousel {
    position: relative; border-radius: 16px; overflow: hidden;
    box-shadow: var(--w3bec-shadow); margin-bottom: 1.2rem;
}
.w3bec-slide {
    display: none; position: relative; min-height: 190px;
    padding: 1.6rem; flex-direction: column; justify-content: flex-end;
}
.w3bec-slide-active { display: flex; }
.w3bec-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75));
}
.w3bec-slide-content { position: relative; z-index: 2; }
.w3bec-slide h2 { font-size: 2.1rem; margin-bottom: 0.4rem; color: var(--w3bec-cream); }
.w3bec-slide p { font-size: 1.35rem; color: var(--w3bec-mint); margin-bottom: 0.8rem; }
.w3bec-slide-tag {
    display: inline-block; font-size: 1.1rem; padding: 0.25rem 0.7rem;
    border-radius: 10px; background: var(--w3bec-turquoise); color: var(--w3bec-ink);
    font-weight: 700; margin-bottom: 0.5rem;
}
.w3bec-carousel-dots {
    position: absolute; bottom: 8px; left: 0; right: 0; z-index: 3;
    display: flex; justify-content: center; gap: 6px;
}
.w3bec-slide-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.2s;
}
.w3bec-dot-active { background: var(--w3bec-turquoise); width: 22px; border-radius: 4px; }

.w3bec-slide-hero-1 { background: linear-gradient(135deg, #0a2a28, #48D1CC); }
.w3bec-slide-hero-2 { background: linear-gradient(135deg, #2a1a3a, #AFEEEE); }
.w3bec-slide-hero-3 { background: linear-gradient(135deg, #1a2a1a, #E8F5E8); }
.w3bec-slide-hero-4 { background: linear-gradient(135deg, #3a2a1a, #FDF5E6); }

/* ---------------- CTA box ---------------- */
.w3bec-cta {
    background: linear-gradient(135deg, rgba(72,209,204,0.15), rgba(175,238,238,0.05));
    border: 1px solid rgba(72,209,204,0.35); border-radius: 14px;
    padding: 1.6rem; text-align: center; margin: 1.6rem 0;
}
.w3bec-cta h3 { font-size: 1.8rem; color: var(--w3bec-pale); margin-bottom: 0.5rem; }
.w3bec-cta p { color: var(--w3bec-muted); font-size: 1.3rem; margin-bottom: 1rem; }
.w3bec-cta-btn {
    display: inline-block; background: linear-gradient(135deg, var(--w3bec-gold), #e6b85c);
    color: var(--w3bec-ink); font-weight: 800; padding: 1rem 2.2rem;
    border-radius: 26px; font-size: 1.5rem;
    box-shadow: 0 5px 14px rgba(255,212,121,0.4);
}

/* ---------------- Filter bar ---------------- */
.w3bec-filter-bar {
    display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0 1rem;
    scrollbar-width: none;
}
.w3bec-filter-bar::-webkit-scrollbar { display: none; }
.w3bec-filter-btn {
    flex-shrink: 0; background: #16201f; color: var(--w3bec-muted);
    border: 1px solid rgba(72,209,204,0.2); padding: 0.6rem 1.3rem;
    border-radius: 20px; font-size: 1.25rem; font-weight: 600; cursor: pointer;
    transition: all 0.18s ease; white-space: nowrap;
}
.w3bec-filter-active {
    background: var(--w3bec-turquoise); color: var(--w3bec-ink); border-color: var(--w3bec-turquoise);
}

/* ---------------- Game grid ---------------- */
.w3bec-game-row { margin-bottom: 2.4rem; }
.w3bec-row-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.9rem;
}
.w3bec-row-head h2 { font-size: 1.7rem; color: var(--w3bec-pale); font-weight: 700; }
.w3bec-row-head a { font-size: 1.2rem; color: var(--w3bec-turquoise); }

.w3bec-game-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.w3bec-game-card {
    background: #131c1b; border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(72,209,204,0.12);
    transition: transform 0.18s ease, border-color 0.18s ease;
    position: relative;
}
.w3bec-game-card:hover { transform: translateY(-3px); border-color: var(--w3bec-turquoise); }
.w3bec-game-card img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0e1817;
}
.w3bec-game-name {
    padding: 0.5rem 0.4rem; font-size: 1.1rem; color: var(--w3bec-text);
    text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w3bec-game-overlay {
    position: absolute; inset: 0; background: rgba(12,12,12,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s ease;
}
.w3bec-game-card:hover .w3bec-game-overlay { opacity: 1; }
.w3bec-play-pill {
    background: var(--w3bec-turquoise); color: var(--w3bec-ink);
    padding: 0.4rem 1rem; border-radius: 16px; font-size: 1.15rem; font-weight: 700;
}

/* ---------------- Feature / highlights ---------------- */
.w3bec-feature-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
}
.w3bec-feature-card {
    background: #131c1b; border-radius: 12px; padding: 1.3rem;
    border: 1px solid rgba(72,209,204,0.15); text-align: center;
}
.w3bec-feature-card .ico { font-size: 2.6rem; color: var(--w3bec-turquoise); margin-bottom: 0.6rem; }
.w3bec-feature-card h3 { font-size: 1.35rem; color: var(--w3bec-text); margin-bottom: 0.3rem; }
.w3bec-feature-card p { font-size: 1.15rem; color: var(--w3bec-muted); line-height: 1.4; }

/* ---------------- SEO content / steps / FAQ ---------------- */
.w3bec-prose {
    background: #0e1817; border-radius: 14px; padding: 1.6rem;
    border: 1px solid rgba(72,209,204,0.12);
}
.w3bec-prose h2 { font-size: 1.7rem; color: var(--w3bec-pale); margin-bottom: 0.7rem; }
.w3bec-prose h3 { font-size: 1.4rem; color: var(--w3bec-turquoise); margin: 1rem 0 0.4rem; }
.w3bec-prose p { color: var(--w3bec-muted); font-size: 1.3rem; margin-bottom: 0.7rem; }
.w3bec-prose ul { padding-left: 1.4rem; margin-bottom: 0.7rem; }
.w3bec-prose li { color: var(--w3bec-muted); font-size: 1.3rem; margin-bottom: 0.3rem; }

.w3bec-steps { display: grid; gap: 0.7rem; }
.w3bec-step {
    display: flex; gap: 1rem; align-items: flex-start;
    background: #131c1b; padding: 1rem; border-radius: 10px;
    border-left: 3px solid var(--w3bec-turquoise);
}
.w3bec-step-num {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    background: var(--w3bec-turquoise); color: var(--w3bec-ink);
    font-weight: 800; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.w3bec-step h4 { font-size: 1.3rem; color: var(--w3bec-text); margin-bottom: 0.2rem; }
.w3bec-step p { font-size: 1.2rem; color: var(--w3bec-muted); }

.w3bec-faq-item {
    background: #131c1b; border-radius: 10px; margin-bottom: 0.7rem;
    overflow: hidden; border: 1px solid rgba(72,209,204,0.12);
}
.w3bec-faq-q {
    padding: 1rem 1.2rem; cursor: pointer; font-weight: 700;
    color: var(--w3bec-text); font-size: 1.3rem;
    display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
}
.w3bec-faq-q::after { content: "+"; color: var(--w3bec-turquoise); font-size: 1.8rem; line-height: 1; }
.w3bec-faq-open .w3bec-faq-q::after { content: "\2212"; }
.w3bec-faq-a {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    padding: 0 1.2rem; color: var(--w3bec-muted); font-size: 1.25rem;
}
.w3bec-faq-open .w3bec-faq-a { max-height: 500px; padding: 0 1.2rem 1rem; }

/* ---------------- Footer ---------------- */
.w3bec-footer {
    background: #060a09; border-top: 2px solid var(--w3bec-turquoise);
    padding: 2.2rem 0 4rem;
}
.w3bec-footer h4 { color: var(--w3bec-pale); font-size: 1.4rem; margin-bottom: 0.7rem; }
.w3bec-footer p, .w3bec-footer a { color: var(--w3bec-muted); font-size: 1.25rem; }
.w3bec-footer ul { list-style: none; }
.w3bec-footer li { margin-bottom: 0.4rem; }
.w3bec-footer-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-bottom: 1.4rem;
}
.w3bec-footer-bottom {
    text-align: center; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 1.15rem; color: var(--w3bec-muted);
}

/* ---------------- Bottom nav ---------------- */
.w3bec-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: 62px;
    background: linear-gradient(180deg, #0a1413, #060a09);
    border-top: 1.5px solid var(--w3bec-turquoise);
    display: flex; justify-content: space-around; align-items: stretch;
    z-index: 1000; padding-bottom: env(safe-area-inset-bottom, 0);
}
.w3bec-bottom-btn {
    flex: 1; background: transparent; border: none; color: var(--w3bec-muted);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; cursor: pointer; min-width: 60px; min-height: 60px;
    transition: color 0.2s ease, transform 0.15s ease;
    font-family: inherit;
}
.w3bec-bottom-btn .ico { font-size: 2.1rem; line-height: 1; }
.w3bec-bottom-btn .label { font-size: 1rem; line-height: 1; }
.w3bec-bottom-btn:active { transform: scale(0.92); }
.w3bec-bottom-btn.is-promo { color: var(--w3bec-gold); }
.w3bec-bottom-btn.is-promo .ico {
    background: linear-gradient(135deg, var(--w3bec-turquoise), var(--w3bec-gold));
    color: var(--w3bec-ink); width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
    margin-top: -16px; box-shadow: 0 3px 10px rgba(72,209,204,0.55);
    border: 2px solid #0a1413;
}
.w3bec-bottom-btn.is-active { color: var(--w3bec-turquoise); }

/* ---------------- Back to top ---------------- */
.w3bec-to-top {
    position: fixed; right: 14px; bottom: 76px; z-index: 999;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--w3bec-turquoise); color: var(--w3bec-ink);
    border: none; font-size: 1.8rem; cursor: pointer;
    opacity: 0; visibility: hidden; transition: all 0.25s ease;
    display: flex; align-items: center; justify-content: center;
}
.w3bec-to-top-show { opacity: 1; visibility: visible; }

/* ---------------- Desktop rules ---------------- */
@media (min-width: 769px) {
    .w3bec-bottom-nav { display: none; }
    .w3bec-menu-btn { display: none; }
    main { padding-bottom: 0; }
    .w3bec-container, .w3bec-wrap, .w3bec-header-row { max-width: 960px; }
    .w3bec-game-grid { grid-template-columns: repeat(6, 1fr); }
    .w3bec-feature-grid { grid-template-columns: repeat(4, 1fr); }
    .w3bec-footer-grid { grid-template-columns: repeat(4, 1fr); }
    .w3bec-footer { padding-bottom: 2rem; }
}
