/* ============================================================
 * megaparipromocode.click - surface styles
 * All custom classes use prefix: uie0-
 * Mobile-first canvas (320-430px). Dark theme based on palette:
 *   #90EE90 | #F08080 | #E91E63 | #212F3D | #FF8A80
 * ============================================================ */

:root {
    --uie0-bg:        #212F3D;
    --uie0-bg-2:      #1a2530;
    --uie0-bg-3:      #2a3b4d;
    --uie0-card:      #283747;
    --uie0-text:      #f3f7f4;
    --uie0-muted:     #b7c4cf;
    --uie0-primary:   #E91E63;
    --uie0-primary-2: #FF8A80;
    --uie0-accent:    #90EE90;
    --uie0-warm:      #F08080;
    --uie0-gold:      #ffd479;
    --uie0-border:    rgba(255,255,255,.08);
    --uie0-shadow:    0 6px 22px rgba(0,0,0,.28);
    --uie0-rad:       14px;
    --uie0-header-h:  58px;
    --uie0-bn-h:      64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", Roboto, system-ui, sans-serif;
    background: var(--uie0-bg);
    color: var(--uie0-text);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
    /* Reserve space for fixed bottom nav */
    padding-bottom: calc(var(--uie0-bn-h) + 14px);
    background-image:
        radial-gradient(900px 400px at 90% -8%, rgba(233,30,99,.12), transparent 60%),
        radial-gradient(700px 380px at -10% 12%, rgba(144,238,160,.08), transparent 60%);
}

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

.uie0-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ===== App shell (constrain to mobile canvas on wide screens) ===== */
.uie0-shell {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    background: var(--uie0-bg);
    box-shadow: 0 0 40px rgba(0,0,0,.25);
}

/* ===== Header ===== */
.uie0-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--uie0-header-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    background: linear-gradient(180deg, #1d2934 0%, #1a2530 100%);
    border-bottom: 1px solid var(--uie0-border);
    box-shadow: 0 2px 10px rgba(0,0,0,.22);
}
.uie0-menu-btn {
    width: 38px; height: 38px;
    border: none; border-radius: 10px;
    background: var(--uie0-bg-3);
    color: var(--uie0-text);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}
.uie0-menu-btn svg { width: 20px; height: 20px; }
.uie0-brand {
    display: flex; align-items: center; gap: 8px;
    flex: 1 1 auto; min-width: 0;
}
.uie0-brand img {
    width: 34px; height: 34px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
}
.uie0-brand .uie0-brand-name {
    font-size: 14px; font-weight: 700; line-height: 1.1;
    color: var(--uie0-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uie0-brand .uie0-brand-sub {
    font-size: 10px; color: var(--uie0-accent); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uie0-head-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.uie0-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}
.uie0-btn:active { transform: translateY(1px); }
.uie0-btn-login {
    background: transparent;
    color: var(--uie0-text);
    border: 1px solid var(--uie0-border);
    padding: 7px 12px;
}
.uie0-btn-register {
    background: linear-gradient(135deg, var(--uie0-primary) 0%, var(--uie0-primary-2) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(233,30,99,.35);
    padding: 8px 14px;
}

/* ===== Side drawer menu ===== */
.uie0-mask {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease;
    z-index: 80;
}
.uie0-mask.uie0-show { opacity: 1; visibility: visible; }
.uie0-drawer {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 84%; max-width: 320px;
    background: var(--uie0-bg-2);
    z-index: 90;
    transform: translateX(-100%);
    transition: transform .28s ease;
    padding: 18px 14px;
    overflow-y: auto;
    border-right: 1px solid var(--uie0-border);
}
.uie0-drawer.uie0-open { transform: translateX(0); }
.uie0-drawer-head {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--uie0-border);
}
.uie0-drawer-head img { width: 36px; height: 36px; border-radius: 8px; }
.uie0-drawer-head .uie0-drawer-title { font-weight: 700; font-size: 15px; }
.uie0-drawer-head .uie0-drawer-sub   { font-size: 11px; color: var(--uie0-accent); }
.uie0-drawer nav { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.uie0-drawer a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--uie0-text);
    font-size: 14px; font-weight: 600;
}
.uie0-drawer a:active, .uie0-drawer a:hover { background: var(--uie0-bg-3); }
.uie0-drawer a .uie0-ico { width: 18px; height: 18px; flex: 0 0 auto; color: var(--uie0-accent); }
.uie0-drawer-cta {
    margin-top: 16px;
    background: linear-gradient(135deg, var(--uie0-primary) 0%, var(--uie0-primary-2) 100%);
    color: #fff; text-align: center;
    padding: 12px; border-radius: 12px; font-weight: 700;
}

/* ===== Hero / Carousel ===== */
.uie0-hero {
    position: relative;
    margin: 12px 0 6px;
    border-radius: var(--uie0-rad);
    overflow: hidden;
    box-shadow: var(--uie0-shadow);
}
.uie0-hero-viewport { overflow: hidden; }
.uie0-hero-track {
    display: flex;
    transition: transform .45s ease;
    will-change: transform;
}
.uie0-hero-slide {
    min-width: 100%;
    position: relative;
}
.uie0-hero-slide img {
    width: 100%; height: 180px; object-fit: cover;
}
.uie0-hero-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 14px 14px 16px;
    background: linear-gradient(0deg, rgba(15,22,28,.85) 0%, rgba(15,22,28,0) 100%);
}
.uie0-hero-cap h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.25; color: #fff; }
.uie0-hero-cap p  { margin: 0; font-size: 12px; color: var(--uie0-muted); }
.uie0-hero-cap .uie0-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, var(--uie0-primary) 0%, var(--uie0-primary-2) 100%);
    color: #fff; padding: 9px 16px;
}
.uie0-hero-dots {
    display: flex; gap: 6px; justify-content: center;
    padding: 8px 0 4px;
}
.uie0-hero-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,.25); border: none; padding: 0; cursor: pointer;
}
.uie0-hero-dot.uie0-on { background: var(--uie0-primary); width: 18px; border-radius: 4px; }

/* ===== Section heading ===== */
.uie0-sec { margin: 18px 0 10px; }
.uie0-sec-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 14px 0 10px;
}
.uie0-sec-head h2 {
    font-size: 17px; margin: 0; font-weight: 700;
    display: inline-flex; align-items: center; gap: 8px;
}
.uie0-sec-head h2 .uie0-bar {
    width: 4px; height: 16px; border-radius: 2px;
    background: linear-gradient(180deg, var(--uie0-primary), var(--uie0-primary-2));
    display: inline-block;
}
.uie0-sec-head a { font-size: 12px; color: var(--uie0-accent); }

/* ===== Category tabs ===== */
.uie0-cats {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 4px 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.uie0-cats::-webkit-scrollbar { display: none; }
.uie0-cat-tab {
    flex: 0 0 auto;
    border: 1px solid var(--uie0-border);
    background: var(--uie0-card);
    color: var(--uie0-muted);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12.5px; font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.uie0-cat-tab.uie0-active {
    background: linear-gradient(135deg, var(--uie0-primary) 0%, var(--uie0-primary-2) 100%);
    color: #fff; border-color: transparent;
}

/* ===== Game grid ===== */
.uie0-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (min-width: 360px) {
    .uie0-grid { gap: 10px; }
}
.uie0-card {
    background: var(--uie0-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--uie0-border);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.uie0-card:active { transform: translateY(1px); }
.uie0-card .uie0-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--uie0-bg-3);
}
.uie0-card .uie0-card-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.uie0-card .uie0-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15,22,28,.45);
    opacity: 0; transition: opacity .2s ease;
}
.uie0-card:hover .uie0-play, .uie0-card:active .uie0-play { opacity: 1; }
.uie0-card .uie0-play span {
    background: var(--uie0-primary); color: #fff;
    border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700;
}
.uie0-card .uie0-card-name {
    padding: 6px 6px 7px;
    font-size: 11px; line-height: 1.25;
    color: var(--uie0-text); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-align: center;
}
.uie0-card .uie0-tag {
    position: absolute; top: 4px; left: 4px;
    background: rgba(233,30,99,.92); color: #fff;
    font-size: 9px; padding: 2px 6px; border-radius: 6px; font-weight: 700;
}
.uie0-card .uie0-tag.uie0-tag-hot { background: var(--uie0-warm); color: #2a0d10; }

/* ===== Promo / Feature blocks ===== */
.uie0-features {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.uie0-feat {
    background: var(--uie0-card);
    border: 1px solid var(--uie0-border);
    border-radius: 12px;
    padding: 12px;
    position: relative;
}
.uie0-feat .uie0-feat-ico {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, rgba(144,238,160,.18), rgba(233,30,99,.18));
    display: flex; align-items: center; justify-content: center;
    color: var(--uie0-accent);
    margin-bottom: 8px;
}
.uie0-feat h3 { margin: 0 0 4px; font-size: 13.5px; font-weight: 700; }
.uie0-feat p  { margin: 0; font-size: 11.5px; color: var(--uie0-muted); line-height: 1.45; }

/* Big promo CTA */
.uie0-promo {
    margin: 16px 0 4px;
    border-radius: var(--uie0-rad);
    padding: 16px;
    background:
        radial-gradient(120% 100% at 100% 0, rgba(255,138,128,.22), transparent 55%),
        linear-gradient(135deg, #311a26 0%, #2a3b4d 70%);
    border: 1px solid var(--uie0-border);
    box-shadow: var(--uie0-shadow);
    position: relative; overflow: hidden;
}
.uie0-promo .uie0-promo-tag {
    display: inline-block; font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: 999px;
    background: rgba(144,238,160,.16); color: var(--uie0-accent);
    margin-bottom: 6px;
}
.uie0-promo h3 { margin: 0 0 4px; font-size: 18px; }
.uie0-promo p  { margin: 0 0 12px; font-size: 13px; color: var(--uie0-muted); }
.uie0-promo .uie0-btn {
    background: linear-gradient(135deg, var(--uie0-primary) 0%, var(--uie0-primary-2) 100%);
    color: #fff; padding: 10px 18px;
}

/* ===== Article / SEO content ===== */
.uie0-article {
    background: var(--uie0-bg-2);
    border: 1px solid var(--uie0-border);
    border-radius: var(--uie0-rad);
    padding: 16px;
    margin: 14px 0;
}
.uie0-article h2 {
    font-size: 18px; margin: 0 0 10px;
    color: var(--uie0-accent);
}
.uie0-article h3 {
    font-size: 15px; margin: 14px 0 6px;
    color: var(--uie0-primary-2);
}
.uie0-article p {
    margin: 0 0 10px;
    color: var(--uie0-muted); font-size: 13.5px; line-height: 1.7;
}
.uie0-article ul { margin: 0 0 10px; padding-left: 18px; color: var(--uie0-muted); }
.uie0-article li { margin: 4px 0; font-size: 13px; }
.uie0-article a { color: var(--uie0-accent); font-weight: 600; }
.uie0-article .uie0-note {
    border-left: 3px solid var(--uie0-warm);
    background: rgba(240,128,128,.08);
    padding: 10px 12px; border-radius: 8px; margin: 10px 0;
    font-size: 12.5px; color: var(--uie0-text);
}

/* FAQ accordion */
.uie0-faq-item {
    border: 1px solid var(--uie0-border);
    border-radius: 10px;
    background: var(--uie0-card);
    margin-bottom: 8px;
    overflow: hidden;
}
.uie0-faq-q {
    width: 100%; text-align: left;
    background: none; border: none; color: var(--uie0-text);
    padding: 12px 14px; font-size: 13.5px; font-weight: 700;
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    cursor: pointer;
}
.uie0-faq-q .uie0-chev { transition: transform .2s ease; color: var(--uie0-accent); }
.uie0-faq-item.uie0-open .uie0-chev { transform: rotate(180deg); }
.uie0-faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
    color: var(--uie0-muted); font-size: 12.5px;
    padding: 0 14px;
}
.uie0-faq-item.uie0-open .uie0-faq-a { max-height: 320px; padding: 0 14px 12px; }

/* Internal links list */
.uie0-links {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.uie0-links a {
    display: block;
    background: var(--uie0-card);
    border: 1px solid var(--uie0-border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12.5px; font-weight: 600; color: var(--uie0-text);
}
.uie0-links a:active, .uie0-links a:hover { background: var(--uie0-bg-3); }

/* Footer */
.uie0-footer {
    margin-top: 18px;
    background: var(--uie0-bg-2);
    border-top: 1px solid var(--uie0-border);
    padding: 18px 12px 22px;
}
.uie0-foot-brand {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.uie0-foot-brand img { width: 32px; height: 32px; border-radius: 8px; }
.uie0-foot-brand strong { font-size: 14px; }
.uie0-foot-brand span { font-size: 11px; color: var(--uie0-accent); display: block; }
.uie0-foot-cols {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    margin: 10px 0;
}
.uie0-foot-cols h4 { font-size: 12px; margin: 0 0 6px; color: var(--uie0-accent); text-transform: uppercase; letter-spacing: .04em; }
.uie0-foot-cols a { display: block; color: var(--uie0-muted); font-size: 12px; padding: 3px 0; }
.uie0-foot-disclaim {
    font-size: 11px; color: var(--uie0-muted); margin-top: 10px; line-height: 1.55;
    border-top: 1px dashed var(--uie0-border); padding-top: 10px;
}
.uie0-foot-disclaim b { color: var(--uie0-warm); }

/* Floating CTA */
.uie0-float {
    position: fixed;
    right: 12px; bottom: calc(var(--uie0-bn-h) + 12px);
    z-index: 40;
    background: linear-gradient(135deg, var(--uie0-primary) 0%, var(--uie0-primary-2) 100%);
    color: #fff;
    border-radius: 999px;
    padding: 11px 16px;
    font-weight: 700; font-size: 13px;
    box-shadow: 0 6px 20px rgba(233,30,99,.4);
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}

/* Back to top */
.uie0-totop {
    position: fixed;
    left: 12px; bottom: calc(var(--uie0-bn-h) + 12px);
    z-index: 40;
    background: var(--uie0-bg-3);
    border: 1px solid var(--uie0-border);
    color: var(--uie0-text);
    width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Bottom navigation (5 buttons, fixed) ===== */
.uie0-bnav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--uie0-bn-h);
    background: linear-gradient(180deg, #1a2530 0%, #14202a 100%);
    border-top: 1px solid var(--uie0-border);
    display: flex;
    z-index: 60;
    box-shadow: 0 -4px 18px rgba(0,0,0,.28);
}
.uie0-bnav-inner {
    width: 100%; max-width: 440px; margin: 0 auto;
    display: flex;
}
.uie0-bn {
    flex: 1 1 0;
    background: none; border: none;
    color: var(--uie0-muted);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    font-size: 10px; font-weight: 600;
    padding: 6px 2px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}
.uie0-bn svg { width: 22px; height: 22px; }
.uie0-bn.uie0-bn-promo {
    color: var(--uie0-primary-2);
}
.uie0-bn.uie0-bn-active { color: var(--uie0-accent); }
.uie0-bn.uie0-bn-active::after {
    content: ''; position: absolute; top: 0;
    width: 22px; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--uie0-primary), var(--uie0-primary-2));
}
.uie0-bn-center {
    position: relative;
}
.uie0-bn-center .uie0-bn-ico {
    position: absolute; top: -16px;
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--uie0-primary) 0%, var(--uie0-primary-2) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(233,30,99,.45);
    border: 3px solid #14202a;
}
.uie0-bn-center .uie0-bn-ico svg { width: 22px; height: 22px; }
.uie0-bn-center .uie0-bn-label { margin-top: 30px; }

/* Hide desktop-only helpers */
.uie0-hide-mobile { display: none; }

/* Visually-hidden helper for a11y */
.uie0-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}
