/* =========================================================
 * mel-bet.click design tokens & styles
 * Class prefix: v918-
 * Mobile-first canvas: 320-430px
 * Palette: #A0522D | #DEE2E6 | #9400D3 | #DDA0DD | #DC143C | #141414
 * Comments in English only.
 * ========================================================= */

:root {
    --v918-brown: #A0522D;
    --v918-grey: #DEE2E6;
    --v918-violet: #9400D3;
    --v918-mauve: #DDA0DD;
    --v918-crimson: #DC143C;
    --v918-ink: #141414;
    --v918-ink-2: #1d1714;
    --v918-ink-3: #2a211c;
    --v918-cream: #f7efe6;
    --v918-gold: #e7b15a;
    --v918-line: rgba(222, 226, 230, 0.14);
    --v918-radius: 14px;
    --v918-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    --v918-header-h: 56px;
    --v918-nav-h: 70px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--v918-ink);
    color: var(--v918-grey);
    font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body.v918-no-scroll { overflow: hidden; }

a { color: var(--v918-mauve); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--v918-gold); outline-offset: 2px; }

img { max-width: 100%; display: block; }

/* ====== Mobile frame on wide screens ====== */
.v918-shell {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(148, 0, 211, 0.20), transparent 60%),
        radial-gradient(80% 40% at 90% 18%, rgba(220, 20, 60, 0.18), transparent 60%),
        linear-gradient(180deg, #1a1411 0%, #141414 40%, #0e0c0a 100%);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

@media (min-width: 431px) {
    body { background: #060504; }
    .v918-shell { border-left: 1px solid var(--v918-line); border-right: 1px solid var(--v918-line); }
}

/* ====== Header (compact brand bar) ====== */
.v918-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--v918-header-h);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    background: linear-gradient(180deg, rgba(20, 16, 14, 0.96), rgba(20, 16, 14, 0.88));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--v918-line);
}

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

.v918-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid var(--v918-mauve);
    box-shadow: 0 0 0 2px rgba(221, 160, 221, 0.15);
    flex: 0 0 auto;
}

.v918-brand-name {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.3px;
    color: var(--v918-cream);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v918-brand-name span { color: var(--v918-crimson); }

.v918-brand-tag {
    font-size: 10px;
    color: var(--v918-gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}

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

.v918-btn {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    padding: 0 14px;
    height: 36px;
    border-radius: 20px;
    transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease;
    min-width: 44px;
}
.v918-btn.v918-press { transform: scale(0.95); }

.v918-btn-login {
    background: transparent;
    color: var(--v918-grey);
    border: 1px solid var(--v918-line);
}

.v918-btn-register {
    background: linear-gradient(135deg, var(--v918-crimson), var(--v918-violet));
    color: #fff;
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.35);
}

.v918-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--v918-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--v918-grey);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}
.v918-icon-btn.v918-active,
.v918-icon-btn:hover { background: rgba(148, 0, 211, 0.18); }

.v918-menu-btn-bar {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
}
.v918-menu-btn-bar::before,
.v918-menu-btn-bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.v918-menu-btn-bar::before { top: -5px; }
.v918-menu-btn-bar::after { top: 5px; }

/* ====== Stacked overlay menu ====== */
.v918-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(8, 6, 5, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.v918-menu-overlay.v918-open {
    opacity: 1;
    pointer-events: auto;
}

.v918-menu-panel {
    width: 86%;
    max-width: 360px;
    height: 100%;
    background: linear-gradient(180deg, #1c1612, #120f0c);
    border-left: 1px solid var(--v918-line);
    padding: 16px 14px calc(var(--v918-nav-h) + 20px);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.24s ease;
}
.v918-menu-overlay.v918-open .v918-menu-panel { transform: translateX(0); }

.v918-menu-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--v918-line);
}
.v918-menu-head .v918-logo { width: 30px; height: 30px; }
.v918-menu-title { font-weight: 800; color: var(--v918-cream); font-size: 15px; }

.v918-menu-section {
    font-size: 11px;
    letter-spacing: 1.4px;
    color: var(--v918-gold);
    text-transform: uppercase;
    margin: 16px 4px 6px;
}

.v918-menu-list { list-style: none; padding: 0; margin: 0; }

.v918-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 10px;
    color: var(--v918-grey);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.v918-menu-link:hover,
.v918-menu-link.v918-current {
    background: rgba(148, 0, 211, 0.16);
    border-color: var(--v918-line);
}
.v918-menu-link::after {
    content: "›";
    color: var(--v918-mauve);
    font-size: 18px;
}

.v918-menu-cta {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}
.v918-menu-cta .v918-btn { flex: 1; height: 42px; }

/* ====== Main wrapper with bottom safe space ====== */
.v918-main {
    padding: 14px 12px calc(var(--v918-nav-h) + 26px);
}

/* ====== Hero carousel ====== */
.v918-hero {
    position: relative;
    border-radius: var(--v918-radius);
    overflow: hidden;
    box-shadow: var(--v918-shadow);
    border: 1px solid var(--v918-line);
    margin-bottom: 16px;
}

.v918-hero-track {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0c0a08;
}

.v918-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}
.v918-hero-slide.v918-active { opacity: 1; }
.v918-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v918-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%);
}

.v918-hero-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
    pointer-events: none;
}
.v918-hero-caption h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.v918-hero-caption p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.v918-hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 3;
    display: none; /* placeholder, dots are rendered at top of hero */
}

.v918-hero-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 5px;
}
.v918-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
}
.v918-hero-dot.v918-active { background: var(--v918-crimson); width: 18px; border-radius: 4px; }

/* ====== Quick CTA strip ====== */
.v918-cta-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}
.v918-cta {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--v918-line);
    background: linear-gradient(135deg, rgba(148, 0, 211, 0.18), rgba(220, 20, 60, 0.12));
    text-align: center;
    cursor: pointer;
    transition: transform 0.08s ease;
}
.v918-cta.v918-press { transform: scale(0.97); }
.v918-cta strong { display: block; color: var(--v918-cream); font-size: 14px; }
.v918-cta span { font-size: 11px; color: var(--v918-gold); }

/* ====== Section heading ====== */
.v918-section {
    margin: 18px 0 10px;
}
.v918-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.v918-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--v918-cream);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.v918-section-title::before {
    content: "";
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--v918-crimson), var(--v918-violet));
    border-radius: 2px;
}
.v918-section-more {
    font-size: 12px;
    color: var(--v918-mauve);
}

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

.v918-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--v918-line);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.12s ease;
    display: block;
    text-align: center;
}
.v918-card.v918-press { transform: scale(0.95); }
.v918-card:hover { border-color: var(--v918-mauve); }

.v918-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #0c0a08;
    border-bottom: 1px solid var(--v918-line);
}
.v918-card-name {
    font-size: 10.5px;
    color: var(--v918-grey);
    padding: 5px 4px 6px;
    line-height: 1.25;
    min-height: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ====== Info / promo blocks ====== */
.v918-promo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0;
}
.v918-promo-card {
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--v918-line);
    background: linear-gradient(135deg, rgba(160, 82, 45, 0.18), rgba(220, 20, 60, 0.10));
}
.v918-promo-card h3 { margin: 0 0 4px; font-size: 14px; color: var(--v918-cream); }
.v918-promo-card p { margin: 0; font-size: 12px; color: var(--v918-grey); }

.v918-prose {
    color: var(--v918-grey);
    font-size: 14px;
    line-height: 1.75;
    margin: 8px 0 14px;
}
.v918-prose h2 {
    color: var(--v918-cream);
    font-size: 17px;
    margin: 18px 0 6px;
    font-weight: 800;
}
.v918-prose h3 {
    color: var(--v918-mauve);
    font-size: 14px;
    margin: 12px 0 4px;
    font-weight: 700;
}
.v918-prose a {
    color: var(--v918-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.v918-prose p { margin: 0 0 10px; }

/* ====== Steps list ====== */
.v918-steps {
    list-style: none;
    counter-reset: step;
    margin: 8px 0 14px;
    padding: 0;
}
.v918-steps li {
    counter-increment: step;
    position: relative;
    padding: 10px 10px 10px 40px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--v918-line);
    border-radius: 10px;
    font-size: 13px;
}
.v918-steps li::before {
    content: counter(step);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--v918-violet), var(--v918-crimson));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== FAQ ====== */
.v918-faq { margin: 10px 0; }
.v918-faq-item {
    border: 1px solid var(--v918-line);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
}
.v918-faq-q {
    padding: 12px 38px 12px 12px;
    font-weight: 700;
    color: var(--v918-cream);
    font-size: 13.5px;
    cursor: pointer;
    position: relative;
}
.v918-faq-q::after {
    content: "+";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--v918-gold);
    font-size: 20px;
    line-height: 1;
}
.v918-faq-item.v918-open .v918-faq-q::after { content: "–"; }
.v918-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    padding: 0 12px;
    font-size: 13px;
    color: var(--v918-grey);
}
.v918-faq-item.v918-open .v918-faq-a {
    max-height: 360px;
    padding: 0 12px 12px;
}

/* ====== Achievements / highlights ====== */
.v918-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 10px 0;
}
.v918-stat {
    text-align: center;
    padding: 10px 6px;
    border-radius: 10px;
    border: 1px solid var(--v918-line);
    background: rgba(148, 0, 211, 0.08);
}
.v918-stat strong {
    display: block;
    font-size: 18px;
    color: var(--v918-gold);
    font-weight: 800;
}
.v918-stat span { font-size: 11px; color: var(--v918-grey); }

/* ====== Extended footer (homepage only) ====== */
.v918-xfooter {
    margin-top: 22px;
    padding: 16px 12px;
    border-top: 1px solid var(--v918-line);
    background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.4));
}
.v918-xfooter h3 {
    color: var(--v918-cream);
    font-size: 14px;
    margin: 12px 0 6px;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.v918-xfooter p { font-size: 12.5px; color: var(--v918-grey); margin: 0 0 8px; line-height: 1.7; }

.v918-link-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    margin: 6px 0 12px;
}
.v918-link-group a {
    font-size: 12px;
    color: var(--v918-grey);
    padding: 4px 0;
    border-bottom: 1px dashed var(--v918-line);
}
.v918-link-group a:hover { color: var(--v918-gold); }

.v918-promo-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 8px 0 12px;
}
.v918-promo-actions button {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid var(--v918-mauve);
    background: linear-gradient(135deg, rgba(148, 0, 211, 0.25), rgba(220, 20, 60, 0.18));
    color: var(--v918-cream);
    padding: 10px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.08s ease;
}
.v918-promo-actions button.v918-press { transform: scale(0.96); }

.v918-disclaimer {
    font-size: 11px;
    color: rgba(222, 226, 230, 0.55);
    border-top: 1px solid var(--v918-line);
    padding-top: 10px;
    line-height: 1.6;
}

/* ====== Bottom navigation (raised central) ====== */
.v918-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.v918-nav-inner {
    width: 100%;
    max-width: 430px;
    height: var(--v918-nav-h);
    background: linear-gradient(180deg, rgba(22, 18, 16, 0.96), rgba(8, 6, 5, 0.98));
    border-top: 1px solid var(--v918-line);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 0 4px 8px;
    pointer-events: auto;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
}

.v918-nav-item {
    background: none;
    border: none;
    color: var(--v918-grey);
    font-family: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    padding: 6px 2px 0;
    font-size: 10px;
    opacity: 0.65;
    transition: opacity 0.12s ease, transform 0.1s ease;
    text-decoration: none;
    height: 100%;
}
.v918-nav-item.v918-press { transform: translateY(1px) scale(0.92); }
.v918-nav-item.v918-current {
    opacity: 1;
    color: var(--v918-cream);
}
.v918-nav-item:hover { opacity: 1; }

.v918-nav-item svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* raised central FAB-style promo */
.v918-nav-item.v918-nav-center {
    transform: translateY(-14px);
    background: linear-gradient(135deg, var(--v918-crimson), var(--v918-violet));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 8px 18px rgba(220, 20, 60, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.15);
    justify-content: center;
    gap: 0;
    padding: 0;
}
.v918-nav-item.v918-nav-center svg { width: 24px; height: 24px; }
.v918-nav-item.v918-nav-center.v918-press { transform: translateY(-14px) scale(0.94); }
.v918-nav-item.v918-nav-center .v918-nav-label {
    position: absolute;
    bottom: -16px;
    font-size: 9px;
    color: var(--v918-gold);
    font-weight: 700;
    letter-spacing: 0.4px;
}

.v918-nav-label {
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
}
.v918-nav-item.v918-current .v918-nav-label {
    color: var(--v918-gold);
}

/* keep space under FAB label */
.v918-nav-item.v918-nav-center { position: relative; }

/* ====== Utility ====== */
.v918-hidden { display: none !important; }
.v918-container { padding-bottom: 8px; }

/* Long Bengali words wrap nicely */
.v918-card-name, .v918-section-title, h1, h2, h3 { overflow-wrap: break-word; word-break: break-word; }
