/* ============================================================
 * melbet apk - shell stylesheet (10e4-shell.css)
 * All custom classes / variables use the pg10- prefix.
 * Mobile-first canvas 320-430px; wider screens keep the
 * phone canvas centered. No desktop-wide layout is required.
 * ============================================================ */

:root {
    --pg10-ink:        #2D2D2D;   /* darkest background base */
    --pg10-amber:      #FFB74D;   /* primary accent / cta */
    --pg10-bronze:     #BDB76B;   /* secondary accent */
    --pg10-cream:      #FFF8DC;   /* light text / surface */
    --pg10-navy:       #000080;   /* deep brand / links */

    --pg10-bg-0:       #14110c;
    --pg10-bg-1:       #1d1810;
    --pg10-bg-2:       #2A2317;
    --pg10-bg-3:       #352b1a;

    --pg10-line:       rgba(255, 183, 77, 0.22);
    --pg10-line-soft:  rgba(255, 248, 220, 0.10);

    --pg10-text:       #FFF8DC;
    --pg10-text-dim:   #d8cda5;
    --pg10-text-mute:  #9a907a;

    --pg10-shadow:     0 10px 26px rgba(0, 0, 0, 0.45);
    --pg10-shadow-sm:  0 4px 12px rgba(0, 0, 0, 0.35);

    --pg10-radius-lg:  16px;
    --pg10-radius-md:  12px;
    --pg10-radius-sm:  9px;

    --pg10-header-h:   116px;
    --pg10-bottom-h:   72px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--pg10-text);
    background:
        radial-gradient(1200px 540px at 50% -10%, #2a2317 0%, transparent 60%),
        linear-gradient(180deg, #14110c 0%, #1a1510 50%, #14110c 100%);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Phone canvas wrapper - keeps mobile layout on wider screens. */
.pg10-canvas {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: linear-gradient(180deg, #1a1510 0%, #221b12 100%);
    min-height: 100vh;
    position: relative;
    box-shadow: var(--pg10-shadow);
    overflow: hidden;
}

a { color: var(--pg10-amber); text-decoration: none; }
a:hover { color: var(--pg10-cream); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    margin: 0 0 10px;
    line-height: 1.32;
    color: var(--pg10-cream);
    font-weight: 700;
}
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; color: var(--pg10-text-dim); }

/* ----------------------------------------------------------
 * Header - dual row: brand strip + action bar.
 * ---------------------------------------------------------- */
.pg10-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(180deg, rgba(20, 17, 12, 0.97) 0%, rgba(20, 17, 12, 0.88) 100%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--pg10-line);
}

.pg10-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 8px;
}
.pg10-logo {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    object-fit: cover;
    border: 2px solid var(--pg10-amber);
    box-shadow: 0 0 0 3px rgba(255, 183, 77, 0.18);
    flex-shrink: 0;
    background: var(--pg10-bg-2);
}
.pg10-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pg10-brand-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--pg10-cream);
    letter-spacing: 0.2px;
}
.pg10-brand-tag {
    font-size: 11px;
    color: var(--pg10-bronze);
    text-transform: uppercase;
    letter-spacing: 1.4px;
}
.pg10-menu-btn {
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--pg10-line);
    background: rgba(255, 183, 77, 0.08);
    color: var(--pg10-amber);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.pg10-menu-btn:hover, .pg10-menu-btn:focus { background: rgba(255, 183, 77, 0.18); }

.pg10-action-row {
    display: flex;
    gap: 8px;
    padding: 0 14px 10px;
}
.pg10-btn {
    flex: 1;
    min-height: 44px;
    border-radius: 11px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: inherit;
}
.pg10-btn:active { transform: translateY(1px); }
.pg10-btn-primary {
    background: linear-gradient(135deg, #FFB74D 0%, #f29a2a 100%);
    color: #2a1c05;
    box-shadow: 0 6px 16px rgba(255, 183, 77, 0.28);
}
.pg10-btn-ghost {
    background: rgba(255, 248, 220, 0.06);
    color: var(--pg10-cream);
    border: 1px solid var(--pg10-line);
}
.pg10-btn-navy {
    background: linear-gradient(135deg, #000080 0%, #1a1a9a 100%);
    color: var(--pg10-cream);
    box-shadow: 0 6px 16px rgba(0, 0, 128, 0.32);
}
.pg10-btn-block { width: 100%; }

/* ----------------------------------------------------------
 * Full-height menu layer.
 * ---------------------------------------------------------- */
.pg10-menu-layer {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: linear-gradient(180deg, #14110c 0%, #1d1810 100%);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.32, 1);
    overflow-y: auto;
    padding: 18px 18px calc(var(--pg10-bottom-h) + 24px);
}
.pg10-menu-open { transform: translateX(0); }
.pg10-menu-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.pg10-menu-head .pg10-logo { width: 36px; height: 36px; }
.pg10-menu-title { font-size: 17px; font-weight: 700; color: var(--pg10-cream); }
.pg10-menu-close {
    margin-left: auto;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--pg10-line);
    background: transparent;
    color: var(--pg10-amber);
    font-size: 18px;
    cursor: pointer;
}
.pg10-menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.pg10-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 12px;
    background: rgba(255, 248, 220, 0.04);
    border: 1px solid var(--pg10-line-soft);
    color: var(--pg10-text);
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.pg10-menu-link:hover { background: rgba(255, 183, 77, 0.10); border-color: var(--pg10-line); color: var(--pg10-cream); }
.pg10-menu-link .pg10-menu-ico {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(255, 183, 77, 0.14);
    color: var(--pg10-amber);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.pg10-menu-section-title {
    margin: 14px 2px 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--pg10-bronze);
}

/* ----------------------------------------------------------
 * Layout shells.
 * ---------------------------------------------------------- */
.pg10-main {
    padding: 14px 14px calc(var(--pg10-bottom-h) + 28px);
}
.pg10-section { margin-top: 26px; }
.pg10-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.pg10-section-head .pg10-bar {
    width: 5px; height: 22px; border-radius: 4px;
    background: linear-gradient(180deg, var(--pg10-amber), var(--pg10-bronze));
}
.pg10-section-title { font-size: 19px; color: var(--pg10-cream); margin: 0; }
.pg10-section-sub { font-size: 12px; color: var(--pg10-text-mute); margin-top: 2px; }
.pg10-more-link { margin-left: auto; font-size: 12px; color: var(--pg10-amber); font-weight: 600; }

/* ----------------------------------------------------------
 * Hero carousel.
 * ---------------------------------------------------------- */
.pg10-hero-wrap {
    position: relative;
    border-radius: var(--pg10-radius-lg);
    overflow: hidden;
    box-shadow: var(--pg10-shadow);
    border: 1px solid var(--pg10-line);
}
.pg10-hero-viewport { overflow: hidden; }
.pg10-hero-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.32, 1);
    will-change: transform;
}
.pg10-hero-slide {
    flex: 0 0 100%;
    position: relative;
    display: block;
    cursor: pointer;
}
.pg10-hero-slide img {
    width: 100%;
    height: 184px;
    object-fit: cover;
}
.pg10-hero-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px 14px 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 17, 12, 0.92) 100%);
}
.pg10-hero-caption h3 {
    margin: 0 0 2px;
    font-size: 16px;
    color: var(--pg10-cream);
}
.pg10-hero-caption p {
    margin: 0;
    font-size: 12px;
    color: var(--pg10-bronze);
}
.pg10-hero-dots {
    position: absolute;
    bottom: 8px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 4;
}
.pg10-hero-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255, 248, 220, 0.40);
    transition: background 0.2s ease, transform 0.2s ease;
}
.pg10-hero-dot-active {
    background: var(--pg10-amber);
    transform: scale(1.35);
}

/* ----------------------------------------------------------
 * Category chip strip (horizontal scroll).
 * ---------------------------------------------------------- */
.pg10-chip-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pg10-chip-strip::-webkit-scrollbar { display: none; }
.pg10-chip {
    flex-shrink: 0;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 248, 220, 0.05);
    border: 1px solid var(--pg10-line-soft);
    color: var(--pg10-text-dim);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    min-height: 36px;
    display: inline-flex; align-items: center;
    transition: background 0.18s ease, color 0.18s ease;
}
.pg10-chip:hover { background: rgba(255, 183, 77, 0.12); color: var(--pg10-cream); }

/* ----------------------------------------------------------
 * Game grid.
 * ---------------------------------------------------------- */
.pg10-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}
.pg10-game-card {
    display: block;
    background: linear-gradient(180deg, #221b12 0%, #1a1510 100%);
    border: 1px solid var(--pg10-line-soft);
    border-radius: var(--pg10-radius-md);
    padding: 6px;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
    text-align: center;
}
.pg10-game-card:hover, .pg10-game-card:focus {
    transform: translateY(-2px);
    border-color: var(--pg10-line);
    box-shadow: var(--pg10-shadow-sm);
}
.pg10-game-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 9px;
    background: var(--pg10-bg-2);
}
.pg10-game-name {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--pg10-text-dim);
    line-height: 1.25;
    height: 28px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pg10-game-badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(255, 183, 77, 0.16);
    color: var(--pg10-amber);
    letter-spacing: 0.4px;
}

/* ----------------------------------------------------------
 * Winners ticker.
 * ---------------------------------------------------------- */
.pg10-winners {
    background: linear-gradient(135deg, rgba(0, 0, 128, 0.32), rgba(255, 183, 77, 0.08));
    border: 1px solid var(--pg10-line);
    border-radius: var(--pg10-radius-md);
    padding: 10px 12px;
    overflow: hidden;
}
.pg10-winners-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--pg10-amber);
    text-transform: uppercase; letter-spacing: 1.3px;
    margin-bottom: 8px; font-weight: 700;
}
.pg10-winner-strip {
    display: flex;
    gap: 8px;
    overflow: hidden;
}
.pg10-winner-chip {
    flex-shrink: 0;
    background: rgba(20, 17, 12, 0.65);
    border: 1px solid var(--pg10-line-soft);
    border-radius: 9px;
    padding: 6px 10px;
    font-size: 11px;
    color: var(--pg10-text-dim);
    white-space: nowrap;
    transition: order 0.4s ease;
}
.pg10-winner-chip strong { color: var(--pg10-amber); margin-right: 4px; }

/* ----------------------------------------------------------
 * Info / trick / step modules.
 * ---------------------------------------------------------- */
.pg10-card {
    background: linear-gradient(180deg, #1f1810 0%, #18130d 100%);
    border: 1px solid var(--pg10-line-soft);
    border-radius: var(--pg10-radius-md);
    padding: 14px;
    box-shadow: var(--pg10-shadow-sm);
}
.pg10-card + .pg10-card { margin-top: 10px; }
.pg10-card h3 { color: var(--pg10-amber); margin-bottom: 6px; }
.pg10-card p { margin: 0; font-size: 13px; }

.pg10-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.pg10-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}
.pg10-mini {
    background: rgba(255, 248, 220, 0.04);
    border: 1px solid var(--pg10-line-soft);
    border-radius: 11px;
    padding: 12px;
    text-align: center;
}
.pg10-mini-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--pg10-amber);
    line-height: 1;
}
.pg10-mini-label {
    font-size: 11px;
    color: var(--pg10-text-mute);
    margin-top: 4px;
    line-height: 1.25;
}

/* Numbered steps list. */
.pg10-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.pg10-steps li {
    counter-increment: step;
    position: relative;
    padding: 10px 12px 10px 44px;
    margin-bottom: 8px;
    background: rgba(255, 248, 220, 0.04);
    border-radius: 10px;
    border: 1px solid var(--pg10-line-soft);
    color: var(--pg10-text-dim);
    font-size: 13px;
}
.pg10-steps li::before {
    content: counter(step);
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pg10-amber), var(--pg10-bronze));
    color: #2a1c05;
    font-weight: 800;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}

/* Inline keyword paragraph styling. */
.pg10-prose p { font-size: 13.5px; line-height: 1.75; color: var(--pg10-text-dim); }
.pg10-prose strong { color: var(--pg10-cream); }
.pg10-prose a { color: var(--pg10-amber); font-weight: 600; border-bottom: 1px dashed rgba(255, 183, 77, 0.45); }

/* FAQ accordion. */
.pg10-faq-item {
    background: rgba(255, 248, 220, 0.04);
    border: 1px solid var(--pg10-line-soft);
    border-radius: 11px;
    margin-bottom: 8px;
    overflow: hidden;
}
.pg10-faq-head {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 12px 14px;
    color: var(--pg10-cream);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    min-height: 44px;
    font-family: inherit;
}
.pg10-faq-head::after {
    content: "+";
    margin-left: auto;
    color: var(--pg10-amber);
    font-size: 18px;
    transition: transform 0.2s ease;
}
.pg10-faq-open .pg10-faq-head::after { transform: rotate(45deg); }
.pg10-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 14px;
    color: var(--pg10-text-dim);
    font-size: 13px;
}
.pg10-faq-open .pg10-faq-body {
    max-height: 320px;
    padding-bottom: 12px;
}

/* ----------------------------------------------------------
 * Extended footer (homepage only).
 * ---------------------------------------------------------- */
.pg10-ext-footer {
    margin-top: 30px;
    border-top: 1px solid var(--pg10-line);
    padding-top: 18px;
}
.pg10-ext-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.pg10-ext-block h4 {
    font-size: 13px;
    color: var(--pg10-amber);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}
.pg10-ext-block a, .pg10-ext-block p {
    display: block;
    font-size: 12.5px;
    color: var(--pg10-text-dim);
    padding: 4px 0;
    border-bottom: 1px solid var(--pg10-line-soft);
}
.pg10-ext-block a:last-child { border-bottom: none; }
.pg10-ext-disclaimer {
    grid-column: 1 / -1;
    background: rgba(0, 0, 128, 0.18);
    border: 1px solid var(--pg10-line-soft);
    border-radius: 11px;
    padding: 12px;
    font-size: 12px;
    color: var(--pg10-text-mute);
    line-height: 1.6;
}
.pg10-promo-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.pg10-promo-tile {
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.10), rgba(0, 0, 128, 0.18));
    border: 1px solid var(--pg10-line);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    font-size: 11px;
    color: var(--pg10-cream);
    font-weight: 600;
    transition: transform 0.15s ease, background 0.18s ease;
}
.pg10-promo-tile:hover { transform: translateY(-2px); background: linear-gradient(135deg, rgba(255, 183, 77, 0.22), rgba(0, 0, 128, 0.26)); }
.pg10-promo-tile .pg10-promo-ico { font-size: 16px; display: block; margin-bottom: 4px; color: var(--pg10-amber); }

/* ----------------------------------------------------------
 * Copyright bar.
 * ---------------------------------------------------------- */
.pg10-copyright {
    text-align: center;
    padding: 14px 16px calc(var(--pg10-bottom-h) + 16px);
    font-size: 11.5px;
    color: var(--pg10-text-mute);
    border-top: 1px solid var(--pg10-line-soft);
    margin-top: 12px;
}

/* ----------------------------------------------------------
 * Mobile bottom navigation - segmented action bar.
 * ---------------------------------------------------------- */
.pg10-bottom-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 440px;
    height: var(--pg10-bottom-h);
    background: linear-gradient(180deg, rgba(20, 17, 12, 0.97), rgba(15, 13, 9, 0.99));
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--pg10-line);
    display: flex;
    align-items: stretch;
    z-index: 70;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.pg10-nav-indicator {
    position: absolute;
    top: 8px;
    left: 0;
    width: 44px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.18), rgba(255, 183, 77, 0.08));
    border: 1px solid var(--pg10-line);
    transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.32, 1);
    z-index: 1;
    pointer-events: none;
}
.pg10-nav-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--pg10-text-mute);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 2px 6px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    font-family: inherit;
    min-height: 44px;
    transition: color 0.18s ease;
}
.pg10-nav-btn .pg10-nav-ico {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
}
.pg10-nav-ico svg { width: 20px; height: 20px; }
.pg10-nav-label {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}
.pg10-nav-btn-pg10-active { color: var(--pg10-amber); }
.pg10-nav-btn-pg10-active .pg10-nav-label { color: var(--pg10-cream); }

/* ----------------------------------------------------------
 * Utilities.
 * ---------------------------------------------------------- */
.pg10-no-scroll { overflow: hidden; }
.pg10-hide { display: none !important; }
.pg10-text-center { text-align: center; }
.pg10-mt-12 { margin-top: 12px; }
.pg10-mt-18 { margin-top: 18px; }

/* ----------------------------------------------------------
 * Responsive nudge for slightly wider phones.
 * ---------------------------------------------------------- */
@media (min-width: 375px) {
    .pg10-game-grid { gap: 10px; }
    .pg10-hero-slide img { height: 200px; }
    .pg10-section-title { font-size: 20px; }
}
@media (min-width: 414px) {
    .pg10-game-grid { grid-template-columns: repeat(5, 1fr); }
    .pg10-hero-slide img { height: 214px; }
}

/* Respect reduced motion preferences. */
@media (prefers-reduced-motion: reduce) {
    .pg10-hero-track, .pg10-nav-indicator, .pg10-game-card, .pg10-promo-tile {
        transition: none !important;
    }
}
