/* =========================================================
 * 6644.click - canvas-2f62.css
 * Mobile-first betting/gaming portal (bn-BD)
 * Class prefix: pg2f-
 * Palette: #1A1A2E (deep bg) / #FFEBCD (warm text) /
 *          #FF7F50 (coral accent) / #ADD8E6 (cool accent) /
 *          #C0C0C0 (neutral silver)
 * ========================================================= */

:root {
    --pg2f-bg: #1A1A2E;
    --pg2f-bg-2: #20203b;
    --pg2f-bg-3: #16162a;
    --pg2f-card: #232342;
    --pg2f-card-2: #2c2c52;
    --pg2f-text: #FFEBCD;
    --pg2f-text-soft: #d9c8a8;
    --pg2f-muted: #C0C0C0;
    --pg2f-accent: #FF7F50;
    --pg2f-accent-2: #ADD8E6;
    --pg2f-line: rgba(255, 235, 205, 0.12);
    --pg2f-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
    --pg2f-radius: 14px;
    --pg2f-header-h: 56px;
    --pg2f-bottom-h: 68px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--pg2f-bg);
    color: var(--pg2f-text);
    font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

/* Centered phone canvas on wide screens (no desktop layout) */
body {
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    min-height: 100vh;
    border-left: 1px solid var(--pg2f-line);
    border-right: 1px solid var(--pg2f-line);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
    position: relative;
}

a { color: var(--pg2f-accent-2); text-decoration: none; }
a:hover, a:focus { color: var(--pg2f-accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.3; font-weight: 700; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; color: var(--pg2f-text-soft); }

/* ============ Top action bar (minimalist) ============ */
.pg2f-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--pg2f-header-h);
    background: linear-gradient(180deg, #1f1f3d 0%, #1A1A2E 100%);
    border-bottom: 1px solid var(--pg2f-line);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

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

.pg2f-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--pg2f-accent), #ff9a78);
    color: #1A1A2E;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pg2f-brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--pg2f-text);
    white-space: nowrap;
}
.pg2f-brand-name small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--pg2f-muted);
    letter-spacing: 0.4px;
}

.pg2f-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: transparent;
    border: 1px solid var(--pg2f-line);
    color: var(--pg2f-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.pg2f-icon-btn:hover, .pg2f-icon-btn:focus {
    background: rgba(255, 127, 80, 0.12);
    border-color: var(--pg2f-accent);
    transform: translateY(-2px);
}
.pg2f-icon-btn svg { width: 20px; height: 20px; }

.pg2f-btn {
    border: none;
    border-radius: 11px;
    height: 38px;
    padding: 0 14px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    font-family: inherit;
    min-height: 44px;
}
.pg2f-btn-login {
    background: transparent;
    color: var(--pg2f-text);
    border: 1px solid var(--pg2f-line);
}
.pg2f-btn-login:hover { transform: translateY(-2px); border-color: var(--pg2f-accent-2); color: var(--pg2f-accent-2); }

.pg2f-btn-register {
    background: linear-gradient(135deg, var(--pg2f-accent) 0%, #ff9466 100%);
    color: #1A1A2E;
    box-shadow: 0 4px 14px rgba(255, 127, 80, 0.4);
}
.pg2f-btn-register:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(255, 127, 80, 0.55); }

/* ============ Swipe-up route panel ============ */
.pg2f-route-panel {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 100%;
    max-width: 430px;
    background: var(--pg2f-bg-2);
    border-radius: 0 0 22px 22px;
    border-bottom: 1px solid var(--pg2f-line);
    box-shadow: var(--pg2f-shadow);
    padding: 18px 16px calc(var(--pg2f-bottom-h) + 18px);
    z-index: 60;
    transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.3, 1);
    overflow-y: auto;
    max-height: 88vh;
}
.pg2f-route-panel.pg2f-route-open {
    transform: translate(-50%, 0);
}
.pg2f-route-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.pg2f-route-head h3 {
    color: var(--pg2f-text);
    font-size: 16px;
}
.pg2f-route-close {
    background: transparent;
    border: none;
    color: var(--pg2f-muted);
    font-size: 22px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.pg2f-route-close:hover { color: var(--pg2f-accent); background: rgba(255, 127, 80, 0.1); }

.pg2f-route-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.pg2f-route-grid a {
    background: var(--pg2f-card);
    color: var(--pg2f-text);
    border: 1px solid var(--pg2f-line);
    border-radius: 12px;
    padding: 12px 6px;
    text-align: center;
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.pg2f-route-grid a:hover {
    transform: translateY(-2px);
    border-color: var(--pg2f-accent);
    background: var(--pg2f-card-2);
}
.pg2f-route-grid a svg { width: 22px; height: 22px; color: var(--pg2f-accent-2); }

.pg2f-route-divider {
    height: 1px;
    background: var(--pg2f-line);
    margin: 14px 0;
}
.pg2f-route-promo {
    display: flex;
    gap: 10px;
}
.pg2f-route-promo button {
    flex: 1;
}

/* ============ Layout shell ============ */
.pg2f-main {
    padding: 14px 12px calc(var(--pg2f-bottom-h) + 22px);
}

/* ============ Hero carousel ============ */
.pg2f-hero {
    position: relative;
    border-radius: var(--pg2f-radius);
    overflow: hidden;
    box-shadow: var(--pg2f-shadow);
    margin-bottom: 14px;
}
.pg2f-slides { position: relative; }
.pg2f-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.pg2f-slide img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}
.pg2f-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.05) 0%, rgba(26, 26, 46, 0.78) 100%);
    display: flex;
    align-items: flex-end;
    padding: 12px;
}
.pg2f-slide-overlay h2 {
    color: var(--pg2f-text);
    font-size: 16px;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.pg2f-slide-overlay span {
    color: var(--pg2f-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.pg2f-slide-active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}
.pg2f-slide.pg2f-slide-active { pointer-events: auto; }

.pg2f-slides-track {
    position: relative;
    height: 170px;
}

.pg2f-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.65);
    border: 1px solid var(--pg2f-line);
    color: var(--pg2f-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.pg2f-hero-arrow:hover { background: var(--pg2f-accent); color: #1A1A2E; }
.pg2f-arrow-prev { left: 8px; }
.pg2f-arrow-next { right: 8px; }

.pg2f-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 3;
}
.pg2f-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 235, 205, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, width 0.2s ease;
}
.pg2f-dot-active {
    background: var(--pg2f-accent);
    width: 18px;
    border-radius: 6px;
}

/* ============ Quick action chips ============ */
.pg2f-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -12px 14px;
    padding: 2px 12px 6px;
    scrollbar-width: none;
}
.pg2f-chips::-webkit-scrollbar { display: none; }
.pg2f-chip {
    flex-shrink: 0;
    background: var(--pg2f-card);
    border: 1px solid var(--pg2f-line);
    color: var(--pg2f-text);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.18s ease, transform 0.18s ease;
    min-height: 36px;
}
.pg2f-chip:hover { background: var(--pg2f-card-2); transform: translateY(-1px); }
.pg2f-chip svg { width: 14px; height: 14px; color: var(--pg2f-accent-2); }

/* ============ Section heading ============ */
.pg2f-section {
    margin-bottom: 22px;
}
.pg2f-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
}
.pg2f-section-head h2 {
    color: var(--pg2f-text);
    font-size: 17px;
    position: relative;
    padding-left: 12px;
}
.pg2f-section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--pg2f-accent), var(--pg2f-accent-2));
    border-radius: 3px;
}
.pg2f-section-more {
    font-size: 12.5px;
    color: var(--pg2f-accent-2);
}

/* ============ Compact game grid ============ */
.pg2f-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (min-width: 360px) {
    .pg2f-grid { gap: 10px; }
}
@media (min-width: 400px) {
    .pg2f-grid { grid-template-columns: repeat(5, 1fr); }
}

.pg2f-game {
    background: var(--pg2f-card);
    border: 1px solid var(--pg2f-line);
    border-radius: 11px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 44px;
}
.pg2f-game:hover, .pg2f-game:focus {
    transform: translateY(-3px);
    border-color: var(--pg2f-accent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.pg2f-game-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--pg2f-bg-3);
}
.pg2f-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pg2f-game-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(255, 127, 80, 0.92);
    color: #1A1A2E;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}
.pg2f-game-name {
    font-size: 11px;
    color: var(--pg2f-text);
    padding: 5px 6px;
    text-align: center;
    line-height: 1.25;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ============ Info / SEO blocks ============ */
.pg2f-info {
    background: var(--pg2f-card);
    border: 1px solid var(--pg2f-line);
    border-radius: var(--pg2f-radius);
    padding: 14px;
    margin-bottom: 14px;
}
.pg2f-info h3 {
    color: var(--pg2f-accent-2);
    margin-bottom: 6px;
}
.pg2f-info p { font-size: 13.5px; }
.pg2f-info ul { margin: 6px 0 0; padding-left: 18px; }
.pg2f-info li { color: var(--pg2f-text-soft); font-size: 13.5px; margin-bottom: 4px; }

/* FAQ list */
.pg2f-faq-item {
    background: var(--pg2f-card);
    border: 1px solid var(--pg2f-line);
    border-radius: 11px;
    margin-bottom: 8px;
    overflow: hidden;
}
.pg2f-faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--pg2f-text);
    font-weight: 600;
    font-size: 13.5px;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    min-height: 44px;
}
.pg2f-faq-q span.pg2f-faq-sign {
    color: var(--pg2f-accent);
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.pg2f-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding: 0 14px;
    color: var(--pg2f-text-soft);
    font-size: 13px;
}
.pg2f-faq-open .pg2f-faq-a {
    max-height: 400px;
    padding: 0 14px 12px;
}

/* ============ Trust chips ============ */
.pg2f-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.pg2f-trust-item {
    background: var(--pg2f-card);
    border: 1px solid var(--pg2f-line);
    border-radius: 11px;
    padding: 10px 6px;
    text-align: center;
    color: var(--pg2f-text);
    font-size: 11.5px;
}
.pg2f-trust-item svg {
    width: 22px;
    height: 22px;
    color: var(--pg2f-accent-2);
    margin-bottom: 4px;
}
.pg2f-trust-item strong {
    display: block;
    color: var(--pg2f-accent);
    font-size: 13px;
    margin-bottom: 2px;
}

/* ============ Extended promo footer ============ */
.pg2f-ext-footer {
    margin-top: 24px;
    border-top: 1px dashed var(--pg2f-line);
    padding-top: 18px;
}
.pg2f-ext-block { margin-bottom: 18px; }
.pg2f-ext-block h3 {
    color: var(--pg2f-text);
    font-size: 15px;
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid var(--pg2f-accent);
}
.pg2f-ext-brand {
    background: linear-gradient(135deg, var(--pg2f-bg-2), var(--pg2f-card));
    border: 1px solid var(--pg2f-line);
    border-radius: 12px;
    padding: 12px;
    color: var(--pg2f-text-soft);
    font-size: 13px;
}
.pg2f-ext-brand strong { color: var(--pg2f-accent); }

.pg2f-ext-promos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.pg2f-ext-promos .pg2f-btn {
    width: 100%;
    padding: 0 8px;
    font-size: 12.5px;
}

.pg2f-ext-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.pg2f-ext-links a {
    background: var(--pg2f-card);
    border: 1px solid var(--pg2f-line);
    color: var(--pg2f-text);
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 12.5px;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
}
.pg2f-ext-links a:hover {
    transform: translateY(-1px);
    border-color: var(--pg2f-accent-2);
    color: var(--pg2f-accent-2);
}

.pg2f-disclaimer {
    background: rgba(173, 216, 230, 0.06);
    border-left: 3px solid var(--pg2f-accent-2);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11.5px;
    color: var(--pg2f-muted);
    line-height: 1.55;
}

/* ============ Footer (copyright only) ============ */
.pg2f-footer {
    padding: 14px 12px;
    text-align: center;
    color: var(--pg2f-muted);
    font-size: 12px;
    border-top: 1px solid var(--pg2f-line);
    background: var(--pg2f-bg-3);
}

/* ============ Mobile bottom nav (5 columns, edge-describing) ============ */
.pg2f-bottom {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 430px;
    height: var(--pg2f-bottom-h);
    background: linear-gradient(180deg, #20203b 0%, #15152a 100%);
    border-top: 1px solid var(--pg2f-line);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 70;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.pg2f-bottom-item {
    position: relative;
    background: transparent;
    border: none;
    color: var(--pg2f-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    padding: 6px 2px 4px;
    font-family: inherit;
    font-size: 10px;
    min-height: 44px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.pg2f-bottom-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.22s ease;
}
.pg2f-bottom-item:hover {
    transform: translateY(-3px);
    color: var(--pg2f-text);
}
.pg2f-bottom-item:hover svg {
    transform: translateY(-2px) scale(1.05);
}
.pg2f-bottom-item.pg2f-active {
    color: var(--pg2f-accent);
}
.pg2f-bottom-item.pg2f-active svg {
    color: var(--pg2f-accent);
    filter: drop-shadow(0 0 4px rgba(255, 127, 80, 0.5));
}
.pg2f-bottom-item.pg2f-active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--pg2f-accent);
    border-radius: 0 0 4px 4px;
}
.pg2f-bottom-item span {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ============ Visible focus + lift cue ============ */
:focus-visible {
    outline: 2px solid var(--pg2f-accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.pg2f-lift {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.pg2f-lift.pg2f-lift-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Utility ============ */
.pg2f-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;
}
