/* ============================================================
 * bb11.homes - shell-bb11-0cef.css
 * All custom classes and CSS variables use prefix "pg0c-".
 * Palette: #9400D3 / #E6E6FA / #212F3D / #FFFFFF / #800080
 * Mobile-first canvas (320-430px). Wide screens keep the mobile
 * canvas centered; no desktop wide layout is provided.
 * ============================================================ */

:root {
    --pg0c-violet: #9400D3;
    --pg0c-violet-deep: #800080;
    --pg0c-lavender: #E6E6FA;
    --pg0c-ink: #212F3D;
    --pg0c-white: #FFFFFF;
    --pg0c-bg: #170a23;
    --pg0c-bg-2: #20102e;
    --pg0c-bg-3: #2a1640;
    --pg0c-line: rgba(230, 230, 250, 0.14);
    --pg0c-muted: #c9b9e0;
    --pg0c-gold: #ffd76a;
    --pg0c-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
    --pg0c-radius: 14px;
    --pg0c-header-h: 116px;
    --pg0c-bottom-h: 62px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--pg0c-bg);
    color: var(--pg0c-white);
    font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(circle at 20% 8%, rgba(148, 0, 211, 0.30), transparent 55%),
        radial-gradient(circle at 85% 35%, rgba(128, 0, 128, 0.25), transparent 50%),
        var(--pg0c-bg);
    overflow-x: hidden;
}

body.pg0c-noscroll { overflow: hidden; }

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

a { color: var(--pg0c-lavender); text-decoration: none; }

/* ===================== HEADER (two-row brand+action) ===================== */
.pg0c-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(180deg, #1c0a2b 0%, #240f38 100%);
    border-bottom: 1px solid var(--pg0c-line);
    box-shadow: var(--pg0c-shadow);
}

.pg0c-header-row-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 6px;
}

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

.pg0c-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(230, 230, 250, 0.35);
    background: var(--pg0c-white);
    flex-shrink: 0;
}

.pg0c-brand-text { line-height: 1.05; min-width: 0; }
.pg0c-brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--pg0c-white);
}
.pg0c-brand-tag {
    font-size: 10px;
    color: var(--pg0c-lavender);
    opacity: 0.85;
}

.pg0c-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(230, 230, 250, 0.08);
    border: 1px solid var(--pg0c-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pg0c-lavender);
    cursor: pointer;
    flex-shrink: 0;
}
.pg0c-menu-btn svg { width: 22px; height: 22px; }

.pg0c-header-row-actions {
    display: flex;
    gap: 8px;
    padding: 4px 12px 10px;
}

.pg0c-btn {
    flex: 1;
    min-height: 44px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: var(--pg0c-white);
    font-family: inherit;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pg0c-btn:active { transform: translateY(1px); }

.pg0c-btn-login {
    background: transparent;
    color: var(--pg0c-lavender);
    border: 1.5px solid rgba(230, 230, 250, 0.55);
}
.pg0c-btn-register {
    background: linear-gradient(135deg, var(--pg0c-violet) 0%, var(--pg0c-violet-deep) 100%);
    box-shadow: 0 6px 16px rgba(148, 0, 211, 0.45);
}

/* ===================== Slide-up route panel ===================== */
.pg0c-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 4, 18, 0.66);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 70;
}
.pg0c-panel-backdrop.pg0c-backdrop-on {
    opacity: 1;
    pointer-events: auto;
}

.pg0c-route-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, #220e36 0%, #160821 100%);
    border-top: 1px solid rgba(230, 230, 250, 0.18);
    border-radius: 18px 18px 0 0;
    transform: translateY(110%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 80;
    padding: 14px 14px 22px;
    max-height: 78vh;
    overflow-y: auto;
}
.pg0c-route-panel.pg0c-panel-open { transform: translateY(0); }

.pg0c-panel-grip {
    width: 42px;
    height: 4px;
    border-radius: 4px;
    background: rgba(230, 230, 250, 0.45);
    margin: 2px auto 12px;
}
.pg0c-panel-title {
    font-size: 13px;
    color: var(--pg0c-lavender);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: 4px 4px 10px;
    opacity: 0.85;
}

.pg0c-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.pg0c-panel-link {
    background: rgba(230, 230, 250, 0.06);
    border: 1px solid var(--pg0c-line);
    border-radius: 12px;
    padding: 11px 8px;
    color: var(--pg0c-white);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.pg0c-panel-link:active { background: rgba(148, 0, 211, 0.22); }
.pg0c-panel-link small {
    color: var(--pg0c-muted);
    font-size: 10.5px;
    font-weight: 500;
}

/* ===================== HERO carousel ===================== */
.pg0c-main { padding: 14px 12px 0; }

.pg0c-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--pg0c-shadow);
    border: 1px solid var(--pg0c-line);
}

.pg0c-hero-track { position: relative; aspect-ratio: 16 / 9; background: #0a0414; }
.pg0c-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    transform: scale(1.02);
}
.pg0c-hero-slide.pg0c-hero-active { opacity: 1; }
.pg0c-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pg0c-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 5, 25, 0.85) 0%, rgba(15, 5, 25, 0.20) 65%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 16px;
    gap: 8px;
}
.pg0c-hero-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: var(--pg0c-white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.pg0c-hero-sub {
    font-size: 12.5px;
    color: var(--pg0c-lavender);
    margin: 0;
    max-width: 78%;
}
.pg0c-hero-cta {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--pg0c-violet), var(--pg0c-violet-deep));
    color: var(--pg0c-white);
    border: none;
    padding: 9px 16px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(148, 0, 211, 0.5);
}

.pg0c-hero-dots {
    position: absolute;
    bottom: 8px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.pg0c-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(230, 230, 250, 0.55);
    cursor: pointer;
}
.pg0c-hero-dot.pg0c-dot-active { background: var(--pg0c-gold); transform: scale(1.18); }

/* ===================== Category chips ===================== */
.pg0c-chip-bar {
    position: sticky;
    top: var(--pg0c-header-h);
    z-index: 40;
    background: linear-gradient(180deg, rgba(23, 10, 35, 0.96), rgba(23, 10, 35, 0.88));
    backdrop-filter: blur(6px);
    padding: 8px 12px;
    margin: 12px -12px 0;
    border-bottom: 1px solid var(--pg0c-line);
}
.pg0c-chip-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
    padding-bottom: 6px;
}
.pg0c-chip-track::-webkit-scrollbar { display: none; }
.pg0c-chip {
    flex-shrink: 0;
    background: rgba(230, 230, 250, 0.06);
    border: 1px solid var(--pg0c-line);
    color: var(--pg0c-lavender);
    padding: 7px 14px;
    border-radius: 18px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    font-family: inherit;
}
.pg0c-chip.pg0c-chip-active {
    color: var(--pg0c-white);
    background: rgba(148, 0, 211, 0.25);
    border-color: rgba(148, 0, 211, 0.55);
}

/* ===================== Section & game grid ===================== */
.pg0c-section { margin: 18px 0 6px; }
.pg0c-section-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0 2px;
}
.pg0c-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--pg0c-white);
    margin: 0;
}
.pg0c-section-title em {
    font-style: normal;
    color: var(--pg0c-violet);
    color: #c08bff;
}
.pg0c-section-more {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--pg0c-lavender);
    opacity: 0.85;
}

.pg0c-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (min-width: 360px) {
    .pg0c-grid { gap: 9px; }
}
@media (min-width: 400px) {
    .pg0c-grid { grid-template-columns: repeat(5, 1fr); }
}

.pg0c-game {
    background: rgba(230, 230, 250, 0.04);
    border: 1px solid var(--pg0c-line);
    border-radius: 11px;
    padding: 5px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.12s ease, border-color 0.12s ease;
    display: block;
    color: var(--pg0c-white);
}
.pg0c-game:active { transform: scale(0.97); border-color: rgba(148, 0, 211, 0.55); }
.pg0c-game-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: #0a0414;
}
.pg0c-game-name {
    font-size: 10.5px;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.18;
    height: 26px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--pg0c-lavender);
}

/* ===================== Info / quick cards ===================== */
.pg0c-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 14px 0;
}
@media (min-width: 400px) {
    .pg0c-info-grid { grid-template-columns: repeat(3, 1fr); }
}
.pg0c-info-card {
    background: linear-gradient(160deg, rgba(148, 0, 211, 0.16), rgba(33, 16, 48, 0.55));
    border: 1px solid var(--pg0c-line);
    border-radius: var(--pg0c-radius);
    padding: 12px;
    min-height: 88px;
}
.pg0c-info-card h3 {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--pg0c-gold);
}
.pg0c-info-card p {
    margin: 0;
    font-size: 11.5px;
    color: var(--pg0c-muted);
    line-height: 1.42;
}

/* ===================== Long-form content ===================== */
.pg0c-content {
    background: rgba(230, 230, 250, 0.04);
    border: 1px solid var(--pg0c-line);
    border-radius: var(--pg0c-radius);
    padding: 14px 14px;
    margin: 14px 0;
    line-height: 1.65;
    font-size: 13px;
    color: var(--pg0c-lavender);
}
.pg0c-content h2 {
    color: var(--pg0c-white);
    font-size: 15.5px;
    margin: 14px 0 6px;
}
.pg0c-content h2:first-child { margin-top: 0; }
.pg0c-content p { margin: 0 0 9px; }
.pg0c-content a {
    color: #d9bfff;
    border-bottom: 1px dashed rgba(217, 191, 255, 0.55);
}
.pg0c-content ul { margin: 6px 0 10px; padding-left: 18px; }
.pg0c-content li { margin-bottom: 4px; }

/* ===================== CTA banner ===================== */
.pg0c-cta {
    margin: 16px 0;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    background: linear-gradient(135deg, #4b0082 0%, #9400D3 50%, #800080 100%);
    border: 1px solid rgba(230, 230, 250, 0.22);
    box-shadow: var(--pg0c-shadow);
}
.pg0c-cta h2 { margin: 0 0 6px; font-size: 17px; color: var(--pg0c-white); }
.pg0c-cta p { margin: 0 0 12px; font-size: 12.5px; color: var(--pg0c-lavender); }
.pg0c-cta .pg0c-btn {
    display: inline-flex;
    padding: 11px 22px;
    background: var(--pg0c-gold);
    color: #2a0a3d;
    font-weight: 800;
}

/* ===================== Extended footer ===================== */
.pg0c-extended-footer {
    margin: 18px 0 6px;
    background: linear-gradient(180deg, #1f0c30 0%, #120620 100%);
    border: 1px solid var(--pg0c-line);
    border-radius: 16px;
    padding: 14px;
}
.pg0c-ef-brand {
    font-size: 13px;
    color: var(--pg0c-lavender);
    line-height: 1.6;
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pg0c-line);
}
.pg0c-ef-block-title {
    font-size: 12px;
    color: var(--pg0c-gold);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin: 10px 0 8px;
}
.pg0c-ef-promos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
@media (min-width: 380px) { .pg0c-ef-promos { grid-template-columns: repeat(3, 1fr); } }
.pg0c-ef-promo {
    background: rgba(148, 0, 211, 0.18);
    border: 1px solid rgba(148, 0, 211, 0.35);
    color: var(--pg0c-white);
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.pg0c-ef-dir {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
    margin-bottom: 12px;
}
.pg0c-ef-dir a {
    color: var(--pg0c-lavender);
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(230, 230, 250, 0.18);
}
.pg0c-ef-disclaimer {
    font-size: 11px;
    color: var(--pg0c-muted);
    opacity: 0.85;
    line-height: 1.55;
    padding-top: 10px;
    border-top: 1px solid var(--pg0c-line);
}

/* ===================== Generic footer ===================== */
.pg0c-footer {
    text-align: center;
    font-size: 11px;
    color: var(--pg0c-muted);
    padding: 10px 12px 0;
    line-height: 1.55;
}

/* ===================== Bottom navigation (compact icon shelf) ===================== */
.pg0c-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 430px;
    margin: 0 auto;
    height: var(--pg0c-bottom-h);
    background: linear-gradient(180deg, #1d0a2c 0%, #100420 100%);
    border-top: 1px solid rgba(230, 230, 250, 0.18);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 50;
    box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.45);
}
.pg0c-nav-item {
    background: none;
    border: none;
    color: var(--pg0c-muted);
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: relative;
    padding: 6px 2px 4px;
    text-decoration: none;
    transition: color 0.15s ease;
}
.pg0c-nav-item svg { width: 22px; height: 22px; }
.pg0c-nav-item span { line-height: 1; }
.pg0c-nav-item.pg0c-nav-current { color: var(--pg0c-white); }
.pg0c-nav-item.pg0c-nav-current::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 2.5px;
    border-radius: 3px;
    background: var(--pg0c-gold);
}
.pg0c-nav-item:active { color: var(--pg0c-white); }
.pg0c-nav-promo {
    color: var(--pg0c-lavender);
}
.pg0c-nav-promo strong {
    color: var(--pg0c-gold);
    font-weight: 800;
}

/* Reserve space below content so bottom nav never covers it. */
.pg0c-bottom-spacer { height: calc(var(--pg0c-bottom-h) + 14px); }

/* Visually hidden helper */
.pg0c-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;
}
