/* ==========================================================================
   megapari apk - mobile first stylesheet
   Class namespace: gd71-
   Palette: #0C0C0C (bg) / #48D1CC (accent) / #E0FFFF #F0F8FF #E9ECEF (text)
   Code comments in English.
   ========================================================================== */

:root {
    --gd71-bg: #0C0C0C;
    --gd71-bg-soft: #14171c;
    --gd71-bg-card: #181d23;
    --gd71-accent: #48D1CC;
    --gd71-accent-strong: #2bb3ad;
    --gd71-cyan: #E0FFFF;
    --gd71-mist: #F0F8FF;
    --gd71-gray: #E9ECEF;
    --gd71-muted: #8fa3ab;
    --gd71-border: rgba(72, 209, 204, 0.22);
    --gd71-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    --gd71-maxw: 430px;
    --gd71-radius: 14px;
    --gd71-header-h: 56px;
    --gd71-nav-h: 60px;
}

* { box-sizing: border-box; }

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

body {
    min-height: 100vh;
    background:
        radial-gradient(120% 60% at 50% -10%, rgba(72, 209, 204, 0.12), transparent 60%),
        linear-gradient(180deg, #0a0d10 0%, #0C0C0C 40%, #0a0d10 100%);
}

a { color: var(--gd71-accent); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gd71-accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }

.gd71-wrap {
    width: 100%;
    max-width: var(--gd71-maxw);
    margin: 0 auto;
    padding: 0 14px;
}

.gd71-main {
    padding-top: calc(var(--gd71-header-h) + 8px);
    padding-bottom: calc(var(--gd71-nav-h) + 28px);
}

/* ---------- Header (minimal action band) ---------- */
.gd71-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--gd71-header-h);
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.96), rgba(12, 12, 12, 0.88));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gd71-border);
}

.gd71-header-row {
    max-width: var(--gd71-maxw);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

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

.gd71-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid var(--gd71-border);
    background: #0a0d10;
    flex: 0 0 auto;
}

.gd71-brand-text { display: flex; flex-direction: column; min-width: 0; }
.gd71-brand-name {
    color: var(--gd71-cyan);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gd71-brand-tag {
    color: var(--gd71-muted);
    font-size: 10.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gd71-header-actions { display: flex; align-items: center; gap: 7px; }

.gd71-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 999px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.gd71-btn-primary {
    background: linear-gradient(135deg, var(--gd71-accent) 0%, var(--gd71-accent-strong) 100%);
    color: #04201f;
    box-shadow: 0 4px 14px rgba(72, 209, 204, 0.35);
}
.gd71-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(72, 209, 204, 0.45); }
.gd71-btn-ghost {
    background: rgba(72, 209, 204, 0.08);
    color: var(--gd71-cyan);
    border: 1px solid var(--gd71-border);
}
.gd71-btn-ghost:hover { background: rgba(72, 209, 204, 0.18); }

.gd71-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(72, 209, 204, 0.08);
    border: 1px solid var(--gd71-border);
    color: var(--gd71-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.gd71-icon-btn svg { width: 18px; height: 18px; }

/* ---------- Stacked overlay menu ---------- */
.gd71-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 60;
}
.gd71-menu-open .gd71-menu-backdrop { opacity: 1; visibility: visible; }

.gd71-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 340px);
    background: linear-gradient(180deg, #0f1418, #0a0d10);
    border-left: 1px solid var(--gd71-border);
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 70;
    overflow-y: auto;
    padding: 18px 18px 32px;
}
.gd71-menu-open .gd71-menu { transform: translateX(0); }

.gd71-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.gd71-menu-title { color: var(--gd71-cyan); font-size: 16px; font-weight: 700; }
.gd71-menu-close {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(72, 209, 204, 0.1);
    border: 1px solid var(--gd71-border);
    color: var(--gd71-cyan);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
.gd71-menu-section { margin-bottom: 16px; }
.gd71-menu-section h4 {
    margin: 0 0 8px;
    color: var(--gd71-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.gd71-menu-link {
    display: block;
    color: var(--gd71-gray);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    border-bottom: 1px solid rgba(72, 209, 204, 0.08);
    transition: background 0.15s ease, color 0.15s ease;
}
.gd71-menu-link:hover { background: rgba(72, 209, 204, 0.1); color: var(--gd71-cyan); }
.gd71-menu-cta { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }

/* ---------- Hero carousel ---------- */
.gd71-hero {
    position: relative;
    margin: 14px 0 6px;
    border-radius: var(--gd71-radius);
    overflow: hidden;
    border: 1px solid var(--gd71-border);
    box-shadow: var(--gd71-shadow);
}
.gd71-hero-track { position: relative; aspect-ratio: 16 / 9; background: #050709; }
.gd71-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}
.gd71-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.gd71-hero-slide.gd71-hero-active { opacity: 1; }
.gd71-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.78) 100%);
    pointer-events: none;
}
.gd71-hero-caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    color: var(--gd71-mist);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 2;
}
.gd71-hero-caption h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.gd71-hero-caption p { margin: 0; font-size: 12px; color: var(--gd71-cyan); }
.gd71-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--gd71-border);
    color: var(--gd71-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}
.gd71-hero-arrow:hover { background: rgba(72, 209, 204, 0.3); }
.gd71-hero-prev { left: 8px; }
.gd71-hero-next { right: 8px; }
.gd71-hero-dots {
    position: absolute;
    bottom: 8px;
    right: 12px;
    display: flex;
    gap: 5px;
    z-index: 3;
}
.gd71-hero-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

/* ---------- Quick CTA strip ---------- */
.gd71-cta-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 12px 0 6px;
}
.gd71-cta-card {
    border-radius: 12px;
    padding: 12px 12px;
    background: linear-gradient(135deg, rgba(72, 209, 204, 0.12), rgba(72, 209, 204, 0.02));
    border: 1px solid var(--gd71-border);
    text-align: left;
    cursor: pointer;
}
.gd71-cta-card h3 { margin: 0 0 3px; color: var(--gd71-cyan); font-size: 14px; font-weight: 700; }
.gd71-cta-card p { margin: 0; color: var(--gd71-muted); font-size: 11.5px; }

/* ---------- Category chips ---------- */
.gd71-cat-bar {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 10px 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gd71-cat-bar::-webkit-scrollbar { display: none; }
.gd71-cat-chip {
    flex: 0 0 auto;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(72, 209, 204, 0.07);
    border: 1px solid var(--gd71-border);
    color: var(--gd71-gray);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.gd71-cat-chip:hover { background: rgba(72, 209, 204, 0.2); color: var(--gd71-cyan); }

/* ---------- Section heading ---------- */
.gd71-section { margin: 22px 0 6px; }
.gd71-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 6px;
}
.gd71-section-head::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 38px; height: 2px;
    background: var(--gd71-accent);
    border-radius: 2px;
}
.gd71-section-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--gd71-cyan); }
.gd71-section-head .gd71-more {
    font-size: 12px; color: var(--gd71-accent);
}

/* ---------- Game grid ---------- */
.gd71-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}
@media (min-width: 375px) {
    .gd71-game-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
@media (min-width: 414px) {
    .gd71-game-grid { grid-template-columns: repeat(5, 1fr); }
}
.gd71-game {
    background: var(--gd71-bg-card);
    border: 1px solid var(--gd71-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}
.gd71-game:hover {
    transform: translateY(-2px);
    border-color: var(--gd71-accent);
    box-shadow: 0 6px 18px rgba(72, 209, 204, 0.18);
}
.gd71-game-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #050709;
}
.gd71-game-name {
    font-size: 11px;
    color: var(--gd71-gray);
    padding: 5px 6px 6px;
    text-align: center;
    line-height: 1.2;
    min-height: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Info / SEO content blocks ---------- */
.gd71-content-block {
    background: var(--gd71-bg-soft);
    border: 1px solid var(--gd71-border);
    border-radius: var(--gd71-radius);
    padding: 16px 15px;
    margin: 14px 0;
}
.gd71-content-block h2 {
    margin: 0 0 10px;
    color: var(--gd71-cyan);
    font-size: 17px;
}
.gd71-content-block h3 {
    margin: 14px 0 6px;
    color: var(--gd71-accent);
    font-size: 14px;
}
.gd71-content-block p {
    margin: 0 0 10px;
    color: var(--gd71-gray);
    font-size: 13.5px;
    line-height: 1.7;
}
.gd71-content-block ul { margin: 0 0 10px; padding-left: 18px; }
.gd71-content-block li { color: var(--gd71-gray); font-size: 13.5px; margin-bottom: 5px; line-height: 1.6; }

/* ---------- Feature shortlist (compact) ---------- */
.gd71-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin: 10px 0;
}
.gd71-feature {
    background: rgba(72, 209, 204, 0.05);
    border: 1px solid var(--gd71-border);
    border-radius: 10px;
    padding: 10px;
}
.gd71-feature h4 { margin: 0 0 4px; color: var(--gd71-cyan); font-size: 13px; }
.gd71-feature p { margin: 0; color: var(--gd71-muted); font-size: 11.5px; line-height: 1.5; }

/* ---------- Promo horizontal shortcuts ---------- */
.gd71-promo-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin: 10px 0;
}
.gd71-promo-tile {
    border-radius: 12px;
    padding: 14px 12px;
    text-align: left;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(72, 209, 204, 0.18), rgba(72, 209, 204, 0.03));
    border: 1px solid var(--gd71-accent);
}
.gd71-promo-tile h4 { margin: 0 0 3px; color: var(--gd71-cyan); font-size: 13px; }
.gd71-promo-tile p { margin: 0; color: var(--gd71-mist); font-size: 11px; }

/* ---------- Extended footer ---------- */
.gd71-extended-footer {
    margin-top: 22px;
    padding: 18px 0 4px;
    border-top: 1px solid var(--gd71-border);
}
.gd71-extended-footer h3 {
    margin: 0 0 8px;
    color: var(--gd71-cyan);
    font-size: 15px;
}
.gd71-extended-footer p { color: var(--gd71-muted); font-size: 12.5px; line-height: 1.6; margin: 0 0 12px; }
.gd71-footer-dir {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    margin: 8px 0 12px;
}
.gd71-footer-dir a {
    color: var(--gd71-gray);
    font-size: 12.5px;
    padding: 4px 0;
}
.gd71-footer-dir a:hover { color: var(--gd71-cyan); }
.gd71-disclaimer {
    background: rgba(255, 190, 11, 0.07);
    border: 1px solid rgba(255, 190, 11, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    color: #ffd479;
    font-size: 11.5px;
    line-height: 1.55;
    margin-top: 8px;
}

/* ---------- Generic footer copyright ---------- */
.gd71-footer-copy {
    text-align: center;
    color: var(--gd71-muted);
    font-size: 11.5px;
    padding: 12px 0 4px;
}

/* ---------- Mobile bottom nav (compact icon rack) ---------- */
.gd71-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: linear-gradient(180deg, rgba(10, 13, 16, 0.97), rgba(10, 13, 16, 1));
    border-top: 1px solid var(--gd71-border);
    backdrop-filter: blur(10px);
}
.gd71-nav-row {
    max-width: var(--gd71-maxw);
    margin: 0 auto;
    height: var(--gd71-nav-h);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 0 4px;
}
.gd71-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--gd71-muted);
    font-size: 10.5px;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 4px 2px;
    position: relative;
    font-family: inherit;
    text-decoration: none;
    min-height: 44px;
    transition: color 0.15s ease;
}
.gd71-nav-item .gd71-nav-ico { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.gd71-nav-item .gd71-nav-ico svg { width: 22px; height: 22px; }
.gd71-nav-item .gd71-nav-label { line-height: 1; }
.gd71-nav-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gd71-accent);
    transition: width 0.2s ease;
}
.gd71-nav-item:hover { color: var(--gd71-cyan); }
.gd71-nav-item.gd71-nav-active { color: var(--gd71-cyan); }
.gd71-nav-item.gd71-nav-active::after { width: 22px; box-shadow: 0 0 10px rgba(72, 209, 204, 0.55); }

@media (min-width: 600px) {
    /* Keep the mobile canvas framed on wider screens. */
    .gd71-header, .gd71-nav { left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--gd71-maxw); }
    .gd71-header { transform: translateX(-50%); }
}

/* ---------- Utility ---------- */
.gd71-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;
}
.gd71-text-accent { color: var(--gd71-accent); }
.gd71-divider { height: 1px; background: var(--gd71-border); margin: 14px 0; border: 0; }
