/* =========================================================
 * bingoplusapk.homes - shared mobile stylesheet
 * All custom classes / variables use prefix: g2ff-
 * Palette: #8B0000 dark base | #FF6347 hot accent
 *          #34495E slate      | #CD853F warm tan
 *          #FFE4B5 soft cream (text tints)
 * Mobile-first 320-430px. Wider screens keep the phone canvas centered.
 * ========================================================= */

:root {
    --g2ff-deep:    #8B0000;
    --g2ff-hot:     #FF6347;
    --g2ff-slate:   #34495E;
    --g2ff-tan:     #CD853F;
    --g2ff-cream:   #FFE4B5;
    --g2ff-bg:      #1a0c0c;
    --g2ff-bg2:     #2a1414;
    --g2ff-card:    #311818;
    --g2ff-line:    rgba(255, 228, 181, 0.16);
    --g2ff-text:    #FFE4B5;
    --g2ff-muted:   #d9b48b;
    --g2ff-white:   #fff5e8;
    --g2ff-shadow:  0 6px 22px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, -apple-system, sans-serif;
    color: var(--g2ff-text);
    background:
        radial-gradient(1200px 480px at 50% -120px, #5a1212 0%, transparent 60%),
        linear-gradient(180deg, #1f0e0e 0%, #160808 60%, #100606 100%);
    background-attachment: fixed;
    line-height: 1.55;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--g2ff-cream); text-decoration: none; }
a:hover, a:focus { color: #fff; }

.g2ff-noscroll { overflow: hidden; }

/* ---------- Layout shell: centered phone canvas on wide screens ---------- */
.g2ff-shell {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(620px 280px at 50% -60px, rgba(255, 99, 71, 0.18) 0%, transparent 70%),
        linear-gradient(180deg, #20100f 0%, #160a0a 100%);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    padding-bottom: 86px; /* bottom nav clearance */
}

/* ---------- Top header (centered identity bar) ---------- */
.g2ff-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(180deg, rgba(40, 14, 14, 0.98) 0%, rgba(28, 10, 10, 0.94) 100%);
    border-bottom: 1px solid var(--g2ff-line);
    backdrop-filter: blur(6px);
}

.g2ff-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.g2ff-brand img.g2ff-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 99, 71, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.g2ff-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.g2ff-brand-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--g2ff-white);
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g2ff-brand-tag {
    font-size: 10px;
    color: var(--g2ff-hot);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.g2ff-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.g2ff-btn {
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 999px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.g2ff-btn-register {
    background: linear-gradient(135deg, var(--g2ff-hot) 0%, var(--g2ff-tan) 100%);
    color: #2a0d0d;
    box-shadow: 0 3px 12px rgba(255, 99, 71, 0.45);
}

.g2ff-btn-login {
    background: transparent;
    color: var(--g2ff-cream);
    border: 1px solid rgba(255, 228, 181, 0.55);
}

.g2ff-btn:hover { transform: translateY(-1px); }
.g2ff-btn:active { transform: scale(0.96); }

.g2ff-iconbtn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 228, 181, 0.08);
    border: 1px solid var(--g2ff-line);
    color: var(--g2ff-cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease;
}

.g2ff-iconbtn:hover { background: rgba(255, 99, 71, 0.18); }
.g2ff-iconbtn:active { transform: scale(0.94); }

.g2ff-iconbtn svg { width: 18px; height: 18px; }

/* ---------- Side drawer menu ---------- */
.g2ff-drawer {
    position: fixed;
    top: 0;
    right: -82%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #2a1212 0%, #1a0a0a 100%);
    border-left: 1px solid var(--g2ff-line);
    z-index: 90;
    padding: 18px 16px;
    transform: translateX(0);
    transition: right 0.26s ease;
    overflow-y: auto;
}

.g2ff-drawer--open { right: 0; }

.g2ff-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.g2ff-drawer-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--g2ff-white);
    margin: 0;
}

.g2ff-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.g2ff-drawer-list li {
    border-bottom: 1px solid var(--g2ff-line);
}

.g2ff-drawer-list a {
    display: block;
    padding: 13px 8px;
    color: var(--g2ff-cream);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.14s ease, padding 0.14s ease;
}

.g2ff-drawer-list a:hover,
.g2ff-drawer-list a:focus {
    color: var(--g2ff-hot);
    padding-left: 14px;
}

.g2ff-drawer-cta {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.g2ff-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 80;
}

.g2ff-overlay--on { opacity: 1; pointer-events: auto; }

/* ---------- Promo banner carousel ---------- */
.g2ff-banner {
    position: relative;
    margin: 10px 10px 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--g2ff-shadow);
}

.g2ff-slides { position: relative; }

.g2ff-slide {
    position: relative;
    display: none;
    cursor: pointer;
}

.g2ff-slide--active { display: block; }

.g2ff-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.g2ff-slide-cap {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 18px 12px 10px;
    border-radius: 0 0 12px 12px;
    pointer-events: none;
}

.g2ff-slide-cap h2 {
    margin: 0 0 2px;
    font-size: 16px;
    color: var(--g2ff-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.g2ff-slide-cap p {
    margin: 0;
    font-size: 11px;
    color: var(--g2ff-cream);
    opacity: 0.92;
}

.g2ff-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.g2ff-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 228, 181, 0.45);
    cursor: pointer;
    transition: background 0.16s ease, width 0.16s ease;
}

.g2ff-dot--active {
    background: var(--g2ff-hot);
    width: 18px;
    border-radius: 4px;
}

/* ---------- Section wrappers ---------- */
.g2ff-section {
    padding: 16px 12px 6px;
}

.g2ff-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
}

.g2ff-page-title {
    margin: 14px 12px 4px;
    font-size: 20px;
    line-height: 1.2;
    color: var(--g2ff-white);
}

.g2ff-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--g2ff-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.g2ff-section-title::before {
    content: "";
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--g2ff-hot), var(--g2ff-tan));
    border-radius: 2px;
    display: inline-block;
}

.g2ff-section-more {
    font-size: 11px;
    color: var(--g2ff-hot);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.g2ff-section-intro {
    margin: 0 0 10px;
    color: var(--g2ff-muted);
    font-size: 12.5px;
}

/* ---------- Quick category chips ---------- */
.g2ff-chips {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin: 0 12px 4px;
}

.g2ff-chip {
    background: rgba(205, 133, 63, 0.12);
    border: 1px solid var(--g2ff-line);
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--g2ff-cream);
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease;
}

.g2ff-chip:hover { background: rgba(255, 99, 71, 0.18); }
.g2ff-chip:active { transform: scale(0.94); }

.g2ff-chip-ic {
    font-size: 16px;
    display: block;
    margin-bottom: 3px;
    color: var(--g2ff-hot);
}

/* ---------- Game grid (4 cols at 320, 4-5 at 375+) ---------- */
.g2ff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

@media (min-width: 360px) {
    .g2ff-grid { gap: 8px; }
}

@media (min-width: 395px) {
    .g2ff-grid { grid-template-columns: repeat(5, 1fr); }
}

.g2ff-game {
    background: var(--g2ff-card);
    border: 1px solid var(--g2ff-line);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    display: block;
}

.g2ff-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 99, 71, 0.55);
}

.g2ff-game:active { transform: scale(0.96); }

.g2ff-game-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #1a0a0a;
}

.g2ff-game-name {
    font-size: 10.5px;
    color: var(--g2ff-cream);
    padding: 4px 5px 6px;
    text-align: center;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 28px;
}

.g2ff-game-flag {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--g2ff-hot);
    color: #1a0a0a;
    font-size: 8.5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.g2ff-game { position: relative; }

/* ---------- Feature list (homepage supplement) ---------- */
.g2ff-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.g2ff-feature {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(52, 73, 94, 0.22);
    border: 1px solid var(--g2ff-line);
    border-radius: 10px;
    padding: 10px 12px;
}

.g2ff-feature-ic {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--g2ff-deep), var(--g2ff-tan));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.g2ff-feature h3 {
    margin: 0 0 2px;
    font-size: 13.5px;
    color: var(--g2ff-white);
}

.g2ff-feature p {
    margin: 0;
    font-size: 12px;
    color: var(--g2ff-muted);
}

/* ---------- Winners ticker ---------- */
.g2ff-winners {
    background: rgba(205, 133, 63, 0.08);
    border: 1px dashed rgba(255, 99, 71, 0.45);
    border-radius: 10px;
    padding: 8px 10px;
    margin: 0 12px 4px;
}

.g2ff-winners-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.g2ff-winners-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.g2ff-winners-list li {
    font-size: 11.5px;
    color: var(--g2ff-cream);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g2ff-winners-list b { color: var(--g2ff-hot); }

/* ---------- Checklist card ---------- */
.g2ff-checklist {
    background: rgba(52, 73, 94, 0.22);
    border: 1px solid var(--g2ff-line);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 12px;
}

.g2ff-checklist ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.g2ff-checklist li {
    font-size: 12.5px;
    color: var(--g2ff-cream);
    margin-bottom: 3px;
}

/* ---------- Editorial / SEO text ---------- */
.g2ff-prose {
    padding: 6px 12px 10px;
}

.g2ff-prose h2 {
    font-size: 15px;
    color: var(--g2ff-white);
    margin: 14px 0 6px;
}

.g2ff-prose p {
    font-size: 12.5px;
    color: var(--g2ff-muted);
    margin: 0 0 8px;
}

.g2ff-prose a {
    color: var(--g2ff-hot);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.g2ff-prose a:hover { color: var(--g2ff-white); }

/* ---------- Extended footer (promo directory) ---------- */
.g2ff-extfoot {
    margin: 10px 12px 0;
    border-top: 1px solid var(--g2ff-line);
    padding-top: 12px;
}

.g2ff-extfoot-section {
    margin-bottom: 14px;
}

.g2ff-extfoot-section h3 {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--g2ff-hot);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.g2ff-extfoot-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.g2ff-extfoot-list a {
    display: block;
    padding: 7px 9px;
    background: rgba(255, 228, 181, 0.05);
    border: 1px solid var(--g2ff-line);
    border-radius: 8px;
    font-size: 11.5px;
    color: var(--g2ff-cream);
    transition: background 0.16s ease, color 0.16s ease;
}

.g2ff-extfoot-list a:hover {
    background: rgba(255, 99, 71, 0.15);
    color: var(--g2ff-white);
}

.g2ff-extfoot-disclaimer {
    font-size: 10.5px;
    color: var(--g2ff-muted);
    line-height: 1.5;
    border-top: 1px dashed var(--g2ff-line);
    padding-top: 8px;
}

/* ---------- Universal footer ---------- */
.g2ff-footer {
    margin-top: 14px;
    padding: 14px 14px 18px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    text-align: center;
    font-size: 11px;
    color: var(--g2ff-muted);
}

.g2ff-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
    margin-bottom: 8px;
}

.g2ff-footer-links a {
    color: var(--g2ff-cream);
    font-size: 11px;
}

.g2ff-footer-copy {
    color: var(--g2ff-muted);
    font-size: 10.5px;
}

/* ---------- Bottom nav: layered bottom strip ---------- */
.g2ff-bottomnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.g2ff-bottomnav-inner {
    max-width: 430px;
    width: 100%;
    pointer-events: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: linear-gradient(180deg, rgba(36, 14, 14, 0.97) 0%, rgba(20, 8, 8, 0.99) 100%);
    border-top: 1px solid var(--g2ff-line);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45);
    padding: 4px 2px 6px;
}

.g2ff-navbtn {
    background: transparent;
    border: none;
    color: var(--g2ff-muted);
    cursor: pointer;
    padding: 6px 2px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    position: relative;
    transition: color 0.18s ease, transform 0.18s ease;
    min-height: 48px;
}

.g2ff-navbtn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.18s ease;
}

.g2ff-navbtn:hover { color: var(--g2ff-cream); }

/* Underline trail marker (activation cue) */
.g2ff-navbtn::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--g2ff-hot), var(--g2ff-tan));
    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.g2ff-navbtn--active {
    color: var(--g2ff-white);
}

.g2ff-navbtn--active svg {
    transform: scale(1.12);
}

.g2ff-navbtn--active::after { width: 22px; }

.g2ff-navbtn:active svg { transform: scale(0.9); }

/* Prominent middle promo (optional accent) */
.g2ff-navbtn--promo .g2ff-nav-ic {
    background: linear-gradient(135deg, var(--g2ff-hot), var(--g2ff-tan));
    color: #2a0d0d;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 99, 71, 0.5);
    margin-top: -8px;
}

.g2ff-navbtn--promo { color: var(--g2ff-hot); }

/* ---------- Utility ---------- */
.g2ff-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.g2ff-hide-desktop { display: block; }

/* Keep the phone canvas on wide screens; no desktop-width layout. */
@media (min-width: 431px) {
    body { background-attachment: fixed; }
    .g2ff-bottomnav-inner { border-radius: 0; }
}
