/* ==========================================================================
   d568-skin.css  (site: 7775.homes / bn-BD)
   All custom classes use the `pgd5-` prefix.
   Mobile-first canvas (320-430px); wider screens keep the centered mobile canvas.
   Palette: #1E1E1E bg / #E0FFFF ink / #FF8000 accent / #FFB74D warm /
            #E65100 deep / #D3D3D3 muted.
   ========================================================================== */

:root {
    --pgd5-bg:        #1E1E1E;
    --pgd5-bg-soft:   #232323;
    --pgd5-bg-card:   #2A2620;
    --pgd5-ink:       #E0FFFF;
    --pgd5-ink-dim:   #B6C9C9;
    --pgd5-accent:    #FF8000;
    --pgd5-warm:      #FFB74D;
    --pgd5-deep:      #E65100;
    --pgd5-muted:     #D3D3D3;
    --pgd5-line:      rgba(255, 183, 77, 0.22);
    --pgd5-shadow:    0 6px 20px rgba(0, 0, 0, 0.45);
    --pgd5-radius:    14px;
    --pgd5-touch:     44px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    background: var(--pgd5-bg);
    color: var(--pgd5-ink);
    font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-x: hidden;
}

.pgd5-no-scroll { overflow: hidden; }

a { color: var(--pgd5-warm); text-decoration: none; }
a:hover, a:focus { color: var(--pgd5-accent); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Centered mobile canvas on wider screens. */
.pgd5-canvas {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    background: var(--pgd5-bg);
    min-height: 100vh;
    box-shadow: 0 0 36px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* ===================== Header (LOGO-led action bar) ===================== */
.pgd5-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #262626 0%, #1B1B1B 100%);
    border-bottom: 2px solid var(--pgd5-deep);
}

.pgd5-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pgd5-brand-logo {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: radial-gradient(circle at 30% 30%, var(--pgd5-warm), var(--pgd5-deep));
    display: flex; align-items: center; justify-content: center;
    color: #1E1E1E; font-weight: 800; font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    flex: 0 0 auto;
}
.pgd5-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--pgd5-warm);
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.pgd5-brand-name span { color: var(--pgd5-ink); }

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

.pgd5-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--pgd5-touch);
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.18s;
    color: #1E1E1E;
    font-family: inherit;
}
.pgd5-btn:active { transform: translateY(-2px); }

.pgd5-btn-login {
    background: transparent;
    color: var(--pgd5-ink);
    border: 1.5px solid var(--pgd5-warm);
}
.pgd5-btn-login:hover, .pgd5-btn-login:focus {
    background: rgba(255, 183, 77, 0.12);
    color: var(--pgd5-warm);
    text-decoration: none;
}

.pgd5-btn-register {
    background: linear-gradient(180deg, var(--pgd5-warm), var(--pgd5-deep));
    color: #1E1E1E;
    box-shadow: 0 3px 10px rgba(230, 81, 0, 0.45);
}
.pgd5-btn-register:hover, .pgd5-btn-register:focus {
    text-decoration: none;
    color: #1E1E1E;
    box-shadow: 0 5px 14px rgba(230, 81, 0, 0.65);
}

.pgd5-menu-trigger {
    width: 44px; height: 44px;
    border: 1.5px solid var(--pgd5-line);
    background: transparent;
    border-radius: 10px;
    color: var(--pgd5-warm);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.pgd5-menu-trigger:hover { background: rgba(255, 183, 77, 0.10); }

.pgd5-burger { width: 18px; height: 14px; position: relative; }
.pgd5-burger span {
    position: absolute; left: 0; right: 0; height: 2px;
    background: var(--pgd5-warm); border-radius: 2px;
}
.pgd5-burger span:nth-child(1) { top: 0; }
.pgd5-burger span:nth-child(2) { top: 6px; }
.pgd5-burger span:nth-child(3) { top: 12px; }

/* ===================== Full-height menu layer ===================== */
.pgd5-menu-layer {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(8, 8, 8, 0.55);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.pgd5-menu-layer.pgd5-menu-open { visibility: visible; opacity: 1; }

.pgd5-menu-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 84%;
    max-width: 360px;
    background: linear-gradient(180deg, #232323 0%, #161616 100%);
    border-left: 2px solid var(--pgd5-deep);
    transform: translateX(105%);
    transition: transform 0.26s cubic-bezier(.2,.7,.3,1);
    overflow-y: auto;
    padding: 16px 14px calc(env(safe-area-inset-bottom, 0px) + 16px);
}
.pgd5-menu-layer.pgd5-menu-open .pgd5-menu-panel { transform: translateX(0); }

.pgd5-menu-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pgd5-line);
}
.pgd5-menu-title { font-size: 16px; font-weight: 800; color: var(--pgd5-warm); margin: 0; }
.pgd5-menu-close {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--pgd5-line);
    background: transparent; color: var(--pgd5-ink);
    font-size: 18px; line-height: 1; cursor: pointer;
}

.pgd5-menu-section { margin-bottom: 16px; }
.pgd5-menu-section-h {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--pgd5-ink-dim);
    margin: 0 0 8px;
}
.pgd5-menu-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 6px;
}
.pgd5-menu-list a {
    display: block;
    padding: 12px 12px;
    border-radius: 10px;
    background: rgba(255, 183, 77, 0.06);
    color: var(--pgd5-ink);
    font-weight: 600;
    min-height: var(--pgd5-touch);
    display: flex; align-items: center; gap: 10px;
    transition: transform 0.12s ease, background 0.18s;
}
.pgd5-menu-list a:hover, .pgd5-menu-list a:focus {
    background: rgba(255, 128, 0, 0.16);
    color: var(--pgd5-warm);
    text-decoration: none;
    transform: translateY(-2px);
}
.pgd5-menu-list a::before {
    content: "";
    width: 8px; height: 8px;
    background: var(--pgd5-accent);
    border-radius: 2px;
    flex: 0 0 auto;
}

/* ===================== Main shell ===================== */
.pgd5-main { padding: 14px 12px 130px; }

/* ===================== Hero carousel ===================== */
.pgd5-hero {
    position: relative;
    border-radius: var(--pgd5-radius);
    overflow: hidden;
    background: #111;
    box-shadow: var(--pgd5-shadow);
    margin-bottom: 16px;
}
.pgd5-hero-track { position: relative; }
.pgd5-hero-slide {
    position: relative;
    display: none;
    cursor: pointer;
}
.pgd5-hero-slide.pgd5-hero-active { display: block; }
.pgd5-hero-slide img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}
.pgd5-hero-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 10px 14px 12px;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
}
.pgd5-hero-cap-title {
    margin: 0 0 4px;
    color: var(--pgd5-warm);
    font-size: 16px;
    font-weight: 800;
}
.pgd5-hero-cap-text {
    margin: 0;
    color: var(--pgd5-ink);
    font-size: 13px;
}
.pgd5-hero-dots {
    position: absolute;
    bottom: 8px; right: 10px;
    display: flex; gap: 5px;
    z-index: 2;
}
.pgd5-hero-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(224, 255, 255, 0.45);
    border: none; padding: 0; cursor: pointer;
}
.pgd5-hero-dot.pgd5-hero-dot-active { background: var(--pgd5-accent); }

/* ===================== Section headings ===================== */
.pgd5-section { margin-bottom: 22px; }
.pgd5-section-h {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--pgd5-ink);
}
.pgd5-section-h::before {
    content: "";
    width: 4px; height: 18px;
    background: linear-gradient(180deg, var(--pgd5-warm), var(--pgd5-deep));
    border-radius: 2px;
}
.pgd5-section-h em { color: var(--pgd5-warm); font-style: normal; }

.pgd5-section-sub {
    margin: -4px 0 10px;
    color: var(--pgd5-ink-dim);
    font-size: 13px;
}

/* ===================== Game grid ===================== */
.pgd5-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (min-width: 360px) {
    .pgd5-grid { gap: 9px; }
}

.pgd5-card {
    background: var(--pgd5-bg-card);
    border: 1px solid var(--pgd5-line);
    border-radius: 12px;
    padding: 6px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.18s, box-shadow 0.18s;
    display: flex; flex-direction: column; gap: 4px;
    min-width: 0;
}
.pgd5-card:hover, .pgd5-card:focus-within {
    transform: translateY(-3px);
    border-color: var(--pgd5-accent);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}
.pgd5-card-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 9px;
    overflow: hidden;
    background: #111;
}
.pgd5-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.pgd5-card-name {
    font-size: 11.5px;
    color: var(--pgd5-ink);
    font-weight: 600;
    line-height: 1.25;
    min-height: 28px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pgd5-card-tag {
    font-size: 10px;
    color: var(--pgd5-deep);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ===================== Promo tiles ===================== */
.pgd5-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.pgd5-tile {
    border: 1px solid var(--pgd5-line);
    border-radius: 12px;
    padding: 14px 12px;
    background: linear-gradient(160deg, rgba(255,128,0,0.10), rgba(230,81,0,0.04));
    color: var(--pgd5-ink);
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.18s;
    text-align: left;
    display: flex; flex-direction: column; gap: 6px;
    min-height: 86px;
}
.pgd5-tile:hover, .pgd5-tile:focus {
    text-decoration: none;
    color: var(--pgd5-ink);
    transform: translateY(-3px);
    border-color: var(--pgd5-accent);
}
.pgd5-tile-title { font-size: 15px; font-weight: 800; color: var(--pgd5-warm); }
.pgd5-tile-text { font-size: 12.5px; color: var(--pgd5-ink-dim); margin: 0; }

/* ===================== Info cards ===================== */
.pgd5-info {
    background: var(--pgd5-bg-card);
    border: 1px solid var(--pgd5-line);
    border-radius: var(--pgd5-radius);
    padding: 14px;
    margin-bottom: 14px;
}
.pgd5-info h2 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--pgd5-warm);
}
.pgd5-info p { margin: 0 0 8px; color: var(--pgd5-ink-dim); font-size: 13.5px; }
.pgd5-info p:last-child { margin: 0; }

.pgd5-faq details {
    border-bottom: 1px solid var(--pgd5-line);
    padding: 10px 0;
}
.pgd5-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--pgd5-ink);
    list-style: none;
    position: relative;
    padding-right: 22px;
}
.pgd5-faq summary::-webkit-details-marker { display: none; }
.pgd5-faq summary::after {
    content: "+";
    position: absolute;
    right: 0; top: -2px;
    color: var(--pgd5-warm);
    font-size: 20px;
    font-weight: 700;
}
.pgd5-faq details[open] summary::after { content: "−"; }
.pgd5-faq-answer {
    margin-top: 8px;
    color: var(--pgd5-ink-dim);
    font-size: 13.5px;
}

/* ===================== Extended footer directory ===================== */
.pgd5-extended {
    margin-top: 24px;
    padding: 16px 12px;
    border-top: 2px dashed var(--pgd5-deep);
}
.pgd5-extended-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.pgd5-dir-block h3 {
    margin: 0 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pgd5-warm);
}
.pgd5-dir-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.pgd5-dir-list a {
    display: inline-block;
    font-size: 13px;
    color: var(--pgd5-ink);
    padding: 4px 0;
}
.pgd5-dir-list a:hover { color: var(--pgd5-accent); text-decoration: underline; }

.pgd5-promo-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0;
}
.pgd5-promo-strip button {
    background: linear-gradient(180deg, var(--pgd5-warm), var(--pgd5-deep));
    color: #1E1E1E;
    border: none;
    border-radius: 10px;
    padding: 10px 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    min-height: var(--pgd5-touch);
    transition: transform 0.12s ease;
}
.pgd5-promo-strip button:active { transform: translateY(-2px); }

.pgd5-brand-blurb {
    background: rgba(255, 183, 77, 0.06);
    border-left: 3px solid var(--pgd5-warm);
    padding: 10px 12px;
    border-radius: 0 10px 10px 0;
    color: var(--pgd5-ink-dim);
    font-size: 13px;
    margin-bottom: 14px;
}
.pgd5-brand-blurb strong { color: var(--pgd5-warm); }

.pgd5-disclaimer {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    color: var(--pgd5-ink-dim);
    font-size: 12px;
    line-height: 1.55;
}

/* ===================== Footer ===================== */
.pgd5-footer {
    background: #161616;
    padding: 18px 14px calc(env(safe-area-inset-bottom, 0px) + 96px);
    text-align: center;
    color: var(--pgd5-ink-dim);
    font-size: 12px;
    border-top: 1px solid var(--pgd5-line);
}
.pgd5-footer-links {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
    margin-bottom: 10px;
}
.pgd5-footer-links a { color: var(--pgd5-ink-dim); font-size: 12px; }
.pgd5-footer-copy { color: var(--pgd5-muted); }

/* ===================== Bottom navigation (segmented action bar) ===================== */
.pgd5-bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(180deg, #232323 0%, #141414 100%);
    border-top: 2px solid var(--pgd5-deep);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 70;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.5);
}

.pgd5-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px 6px;
    color: var(--pgd5-ink-dim);
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    min-height: 60px;
    position: relative;
    transition: transform 0.14s ease, color 0.18s;
    font-family: inherit;
}
.pgd5-nav-item:hover { text-decoration: none; color: var(--pgd5-warm); }
.pgd5-nav-item:active { transform: translateY(-3px); }

.pgd5-nav-icon {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(255, 183, 77, 0.10);
}
.pgd5-nav-icon svg {
    width: 18px; height: 18px;
    stroke: var(--pgd5-warm);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pgd5-nav-label { color: inherit; letter-spacing: 0.2px; }

/* Active cue: contrast reversal */
.pgd5-nav-current {
    color: #1E1E1E;
    background: linear-gradient(180deg, var(--pgd5-warm), var(--pgd5-accent));
    border-radius: 12px 12px 0 0;
    transform: translateY(-3px);
}
.pgd5-nav-current .pgd5-nav-icon { background: rgba(30,30,30,0.20); }
.pgd5-nav-current .pgd5-nav-icon svg { stroke: #1E1E1E; }
.pgd5-nav-current .pgd5-nav-label { color: #1E1E1E; font-weight: 800; }

.pgd5-nav-promo .pgd5-nav-icon { background: rgba(255, 128, 0, 0.20); }
.pgd5-nav-promo .pgd5-nav-icon svg { stroke: var(--pgd5-accent); }

/* ===================== Back-to-top ===================== */
.pgd5-to-top {
    position: fixed;
    right: 14px;
    bottom: 92px;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--pgd5-warm);
    background: rgba(30, 30, 30, 0.92);
    color: var(--pgd5-warm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    cursor: pointer;
    z-index: 50;
    font-size: 18px;
    line-height: 1;
}
.pgd5-to-top.pgd5-to-top-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===================== Utility ===================== */
.pgd5-container { width: 100%; }
.pgd5-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
