/* =========================================================
   tk1979.click - Base Skin Stylesheet (bn-BD)
   Class prefix: pg02-
   Palette: #B03060 (primary) | #34495E (deep) | #DB7093 (accent)
   Canvas: 320-430px mobile. Wide screens keep a centered mobile canvas.
   ========================================================= */

:root {
    --pg02-primary: #B03060;
    --pg02-deep: #34495E;
    --pg02-deeper: #24323f;
    --pg02-accent: #DB7093;
    --pg02-gold: #E8B04B;
    --pg02-bg: #1b2431;
    --pg02-bg-soft: #213040;
    --pg02-card: #2a3a4d;
    --pg02-card-2: #243345;
    --pg02-line: #324358;
    --pg02-text: #F5E9F0;
    --pg02-muted: #A8B6C6;
    --pg02-white: #FFFFFF;
    --pg02-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    --pg02-radius: 12px;
    --pg02-radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Roboto, system-ui, sans-serif;
    background: var(--pg02-bg);
    color: var(--pg02-text);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Centered mobile canvas on wider screens */
.pg02-shell {
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, #1b2431 0%, #213040 40%, #1b2431 100%);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

a { color: var(--pg02-accent); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.32; font-weight: 700; }

/* ===================== Header ===================== */
.pg02-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(90deg, #34495E 0%, #B03060 100%);
    border-bottom: 2px solid #DB7093;
    min-height: 56px;
}
.pg02-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.pg02-brand .pg02-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
    border: 2px solid #DB7093;
    flex-shrink: 0;
}
.pg02-brand-name {
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.4px;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pg02-brand-name span {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #F5D6E2;
    letter-spacing: 0.2px;
}
.pg02-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pg02-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    min-height: 36px;
    min-width: 44px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.pg02-btn:active { transform: scale(0.94); }
.pg02-btn-login {
    background: transparent;
    color: #fff;
    border: 1.5px solid #DB7093;
}
.pg02-btn-register {
    background: linear-gradient(180deg, #E8B04B 0%, #DB7093 100%);
    color: #2a1418;
    box-shadow: 0 3px 10px rgba(219, 112, 147, 0.45);
}
.pg02-menu-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.pg02-menu-btn:hover { background: rgba(255, 255, 255, 0.2); }
.pg02-menu-btn svg { width: 20px; height: 20px; }

/* ===================== Side Drawer ===================== */
.pg02-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: var(--pg02-deeper);
    z-index: 80;
    transition: right 0.25s ease;
    overflow-y: auto;
    padding: 18px 14px 80px;
    border-left: 2px solid var(--pg02-primary);
}
.pg02-drawer-open { right: 0; }
.pg02-drawer-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.pg02-mask-on { opacity: 1; pointer-events: auto; }
.pg02-drawer h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pg02-line);
}
.pg02-drawer a {
    display: block;
    padding: 11px 12px;
    color: var(--pg02-text);
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 14px;
    transition: background 0.12s ease;
}
.pg02-drawer a:hover, .pg02-drawer a:focus { background: rgba(176, 48, 96, 0.25); }
.pg02-drawer-promo {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--pg02-line);
}
.pg02-drawer-promo button {
    width: 100%;
    margin-bottom: 8px;
}

/* ===================== Main / Section ===================== */
.pg02-main { padding: 0 0 84px; }
.pg02-section { padding: 18px 12px 6px; }
.pg02-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.pg02-section-title {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    padding-left: 10px;
    border-left: 4px solid var(--pg02-accent);
}
.pg02-section-more {
    font-size: 12px;
    color: var(--pg02-accent);
}

/* ===================== Hero carousel ===================== */
.pg02-carousel {
    position: relative;
    margin: 12px 0 4px;
    padding: 0 12px;
}
.pg02-slides {
    position: relative;
    border-radius: var(--pg02-radius);
    overflow: hidden;
    box-shadow: var(--pg02-shadow);
    aspect-ratio: 16 / 7;
    background: #000;
}
.pg02-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    cursor: pointer;
}
.pg02-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg02-slide-active { opacity: 1; }
.pg02-slide-caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
    color: #fff;
    padding: 18px 12px 10px;
    border-radius: 0 0 var(--pg02-radius) var(--pg02-radius);
}
.pg02-slide-caption strong {
    display: block;
    font-size: 16px;
    color: var(--pg02-gold);
    margin-bottom: 3px;
}
.pg02-slide-caption span { font-size: 12px; color: #F5D6E2; }
.pg02-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 2px;
}
.pg02-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
}
.pg02-dot-active { background: var(--pg02-accent); width: 18px; border-radius: 4px; }

/* ===================== Quick category chips ===================== */
.pg02-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 12px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pg02-chips::-webkit-scrollbar { display: none; }
.pg02-chip {
    flex-shrink: 0;
    background: var(--pg02-card);
    color: var(--pg02-text);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid var(--pg02-line);
    cursor: pointer;
}
.pg02-chip:hover { background: var(--pg02-primary); color: #fff; }

/* ===================== Game grid ===================== */
.pg02-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.pg02-tile {
    background: var(--pg02-card);
    border-radius: var(--pg02-radius-sm);
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--pg02-line);
    transition: transform 0.14s ease, border-color 0.14s ease;
}
.pg02-tile:hover { transform: translateY(-2px); border-color: var(--pg02-accent); }
.pg02-tile-pulse { transform: scale(0.93); }
.pg02-tile-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #0e1620;
}
.pg02-tile-name {
    font-size: 11px;
    color: var(--pg02-text);
    padding: 4px 4px 6px;
    line-height: 1.25;
    min-height: 30px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pg02-tile-badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 9px;
    background: var(--pg02-primary);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: middle;
}

/* ===================== Promotional CTA block ===================== */
.pg02-cta {
    margin: 14px 12px;
    padding: 14px;
    border-radius: var(--pg02-radius);
    background: linear-gradient(135deg, #B03060 0%, #34495E 100%);
    color: #fff;
    box-shadow: var(--pg02-shadow);
    text-align: center;
}
.pg02-cta h2 { color: var(--pg02-gold); font-size: 17px; margin-bottom: 6px; }
.pg02-cta p { font-size: 12.5px; margin: 0 0 10px; color: #F5D6E2; }
.pg02-cta .pg02-btn { font-size: 14px; padding: 10px 22px; }

/* ===================== Article / info blocks ===================== */
.pg02-article {
    background: var(--pg02-bg-soft);
    margin: 12px;
    padding: 14px 14px 16px;
    border-radius: var(--pg02-radius);
    border: 1px solid var(--pg02-line);
}
.pg02-article h2 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--pg02-line);
}
.pg02-article h3 {
    color: var(--pg02-accent);
    font-size: 13.5px;
    margin: 10px 0 4px;
}
.pg02-article p { font-size: 13.5px; color: var(--pg02-text); margin: 0 0 8px; }
.pg02-article ul { padding-left: 18px; margin: 6px 0; }
.pg02-article li { font-size: 13px; margin-bottom: 4px; color: var(--pg02-text); }
.pg02-article a { color: var(--pg02-gold); text-decoration: underline; }

/* ===================== Step / checklist ===================== */
.pg02-steps {
    counter-reset: pg02step;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pg02-steps li {
    position: relative;
    padding: 8px 10px 8px 40px;
    margin-bottom: 6px;
    background: var(--pg02-card-2);
    border-radius: var(--pg02-radius-sm);
    font-size: 13px;
    color: var(--pg02-text);
}
.pg02-steps li::before {
    counter-increment: pg02step;
    content: counter(pg02step);
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--pg02-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.pg02-check {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pg02-check li {
    padding: 6px 8px 6px 26px;
    position: relative;
    font-size: 13px;
    color: var(--pg02-text);
    background: var(--pg02-card-2);
    border-radius: 6px;
    margin-bottom: 4px;
}
.pg02-check li::before {
    content: "✓";
    position: absolute;
    left: 8px;
    top: 6px;
    color: var(--pg02-gold);
    font-weight: 800;
}

/* ===================== Info card grid ===================== */
.pg02-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.pg02-info-card {
    background: var(--pg02-card);
    border: 1px solid var(--pg02-line);
    border-radius: var(--pg02-radius-sm);
    padding: 10px;
    text-align: center;
}
.pg02-info-card .pg02-info-ico {
    font-size: 22px;
    margin-bottom: 4px;
}
.pg02-info-card strong { color: var(--pg02-gold); font-size: 13px; display: block; }
.pg02-info-card span { color: var(--pg02-muted); font-size: 11.5px; }

/* ===================== Footer ===================== */
.pg02-footer {
    background: var(--pg02-deeper);
    color: var(--pg02-muted);
    padding: 16px 12px 22px;
    border-top: 2px solid var(--pg02-primary);
    font-size: 12px;
    text-align: center;
}
.pg02-footer-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    text-align: left;
}
.pg02-footer-cols h4 {
    color: var(--pg02-accent);
    font-size: 13px;
    margin-bottom: 6px;
}
.pg02-footer-cols a {
    display: block;
    color: var(--pg02-muted);
    font-size: 12px;
    padding: 3px 0;
}
.pg02-footer-cols a:hover { color: #fff; }
.pg02-footer-disclaimer {
    background: rgba(176, 48, 96, 0.15);
    border: 1px solid var(--pg02-line);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    color: #c9d4e0;
    margin-bottom: 10px;
    text-align: left;
}
.pg02-copy {
    color: #8a99a8;
    font-size: 11.5px;
}

/* ===================== Bottom nav ===================== */
.pg02-bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, #2a3a4d 0%, #1b2431 100%);
    border-top: 1.5px solid var(--pg02-primary);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 65;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}
.pg02-bottomnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--pg02-muted);
    font-size: 10px;
    text-decoration: none;
    padding: 4px 2px;
    min-height: 50px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    transition: color 0.12s ease, transform 0.12s ease;
}
.pg02-bottomnav-item:active { transform: scale(0.92); }
.pg02-bottomnav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pg02-bottomnav-item.pg02-bottomnav-current {
    color: var(--pg02-accent);
}
.pg02-bottomnav-item.pg02-bottomnav-current::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2px;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--pg02-accent);
}
.pg02-bottomnav-item.pg02-bottomnav-current svg { fill: var(--pg02-accent); stroke: var(--pg02-accent); }
.pg02-bottomnav-promo {
    color: var(--pg02-gold);
}

/* ===================== Utility ===================== */
.pg02-center { text-align: center; }
.pg02-hide { display: none !important; }
.pg02-clearfix::after { content: ""; display: table; clear: both; }

/* ===================== Wide screens keep canvas ===================== */
@media (min-width: 769px) {
    .pg02-bottomnav { display: none; }
}

@media (max-width: 768px) {
    .pg02-main { padding-bottom: 80px; }
}

@media (min-width: 431px) {
    body { background: #0e1620; }
    .pg02-shell {
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    }
}

/* ===================== Slightly larger phones ===================== */
@media (min-width: 375px) {
    .pg02-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .pg02-section-title { font-size: 18px; }
}
@media (min-width: 400px) {
    .pg02-grid { grid-template-columns: repeat(5, 1fr); }
    .pg02-info-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
