/* ============================================================
 * db222.homes - Site stylesheet
 * All custom classes use the "w2a3e-" prefix.
 * Palette per prompt: #008000 / #00FA9A / #34495E
 * Canvas: 320-430px mobile; wider screens keep the mobile canvas
 * centered (no desktop-wide layout).
 * ============================================================ */

:root {
    --w2a3e-green: #008000;
    --w2a3e-mint: #00FA9A;
    --w2a3e-ink: #34495E;
    --w2a3e-bg: #0b1f17;
    --w2a3e-bg-2: #0f2a1f;
    --w2a3e-card: #143426;
    --w2a3e-card-2: #1a4031;
    --w2a3e-line: rgba(0, 250, 154, 0.18);
    --w2a3e-text: #f4fff8;
    --w2a3e-muted: #b6cfc2;
    --w2a3e-gold: #ffd25a;
    --w2a3e-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    --w2a3e-radius: 12px;
    --w2a3e-radius-sm: 8px;
    --w2a3e-header-h: 58px;
    --w2a3e-bottom-h: 64px;
    --w2a3e-maxw: 460px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--w2a3e-bg);
    color: var(--w2a3e-text);
    font-family: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi",
        -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.w2a3e-noscroll { overflow: hidden; }

a { color: var(--w2a3e-mint); text-decoration: none; }
a:hover, a:focus { color: #ffffff; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.w2a3e-wrap {
    width: 100%;
    max-width: var(--w2a3e-maxw);
    margin: 0 auto;
    background:
        radial-gradient(120% 60% at 50% -10%, rgba(0, 250, 154, 0.10), transparent 60%),
        linear-gradient(180deg, var(--w2a3e-bg) 0%, var(--w2a3e-bg-2) 100%);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

/* ---------- Header (tabbed top bar) ---------- */
.w2a3e-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--w2a3e-header-h);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: linear-gradient(90deg, #062018 0%, #0c3a28 60%, #062018 100%);
    border-bottom: 2px solid var(--w2a3e-green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.w2a3e-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.w2a3e-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--w2a3e-mint);
    background: #04140e;
    flex-shrink: 0;
}
.w2a3e-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}
.w2a3e-brand-name {
    font-weight: 800;
    font-size: 16px;
    color: #ffffff;
    letter-spacing: 0.3px;
}
.w2a3e-brand-tag {
    font-size: 10px;
    color: var(--w2a3e-mint);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.w2a3e-actions { display: flex; gap: 6px; align-items: center; }
.w2a3e-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 0 12px;
    height: 34px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.w2a3e-btn:active { transform: scale(0.96); }
.w2a3e-btn--login {
    background: transparent;
    color: var(--w2a3e-mint);
    border: 1px solid var(--w2a3e-mint);
}
.w2a3e-btn--register {
    background: linear-gradient(135deg, var(--w2a3e-green) 0%, var(--w2a3e-mint) 100%);
    color: #04130c;
    box-shadow: 0 3px 10px rgba(0, 250, 154, 0.35);
}

.w2a3e-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 250, 154, 0.12);
    border: 1px solid var(--w2a3e-line);
    color: var(--w2a3e-mint);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.w2a3e-menu-btn svg { width: 20px; height: 20px; }

/* ---------- Stacked overlay menu ---------- */
.w2a3e-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 12, 8, 0.78);
    backdrop-filter: blur(2px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.w2a3e-menu-overlay.w2a3e-menu--open {
    opacity: 1;
    pointer-events: auto;
}
.w2a3e-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 86%;
    max-width: 360px;
    height: 100%;
    background: linear-gradient(180deg, #08231a 0%, #0b2c20 100%);
    border-left: 2px solid var(--w2a3e-green);
    padding: 18px 16px calc(var(--w2a3e-bottom-h) + 18px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.w2a3e-menu-overlay.w2a3e-menu--open .w2a3e-menu-panel {
    transform: translateX(0);
}
.w2a3e-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.w2a3e-menu-head strong { color: #ffffff; font-size: 15px; }
.w2a3e-menu-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid var(--w2a3e-line);
    cursor: pointer;
    font-size: 16px;
}
.w2a3e-menu-list li a {
    display: block;
    padding: 12px 12px;
    border-radius: 10px;
    color: var(--w2a3e-text);
    font-weight: 600;
    border: 1px solid transparent;
    margin-bottom: 4px;
}
.w2a3e-menu-list li a:hover,
.w2a3e-menu-list li a:focus {
    background: rgba(0, 250, 154, 0.10);
    border-color: var(--w2a3e-line);
}
.w2a3e-menu-list .w2a3e-menu-num {
    display: inline-block;
    width: 22px;
    color: var(--w2a3e-mint);
    font-weight: 800;
    font-size: 12px;
}
.w2a3e-menu-promo {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 128, 0, 0.55), rgba(0, 250, 154, 0.35));
    border: 1px solid var(--w2a3e-mint);
    text-align: center;
}
.w2a3e-menu-promo p { margin: 0 0 10px; font-size: 13px; color: #ffffff; }
.w2a3e-menu-promo .w2a3e-btn { width: 100%; }

/* ---------- Hero carousel ---------- */
.w2a3e-hero {
    position: relative;
    margin: 12px 12px 0;
    border-radius: var(--w2a3e-radius);
    overflow: hidden;
    box-shadow: var(--w2a3e-shadow);
}
.w2a3e-slides { position: relative; aspect-ratio: 16 / 7; }
.w2a3e-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}
.w2a3e-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.w2a3e-slide-caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    right: 60px;
    background: rgba(2, 14, 9, 0.55);
    padding: 8px 10px;
    border-radius: 10px;
    border-left: 3px solid var(--w2a3e-mint);
}
.w2a3e-slide-caption strong { color: #ffffff; display: block; font-size: 14px; }
.w2a3e-slide-caption span { color: var(--w2a3e-mint); font-size: 11px; }
.w2a3e-slide--active { opacity: 1; }
.w2a3e-slide-dots {
    position: absolute;
    right: 10px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}
.w2a3e-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
}
.w2a3e-slide-dot--active { background: var(--w2a3e-mint); }

/* ---------- Category tabs ---------- */
.w2a3e-cattabs {
    position: relative;
    margin: 14px 12px 6px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.w2a3e-cattabs::-webkit-scrollbar { display: none; }
.w2a3e-cattab {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--w2a3e-line);
    color: var(--w2a3e-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.w2a3e-cattab--active {
    background: linear-gradient(135deg, var(--w2a3e-green), var(--w2a3e-mint));
    color: #04130c;
    border-color: var(--w2a3e-mint);
}

/* ---------- Section heading ---------- */
.w2a3e-section {
    margin: 16px 12px 0;
}
.w2a3e-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 10px;
}
.w2a3e-section-head h2 {
    margin: 0;
    font-size: 17px;
    color: #ffffff;
    border-left: 4px solid var(--w2a3e-mint);
    padding-left: 8px;
    line-height: 1.2;
}
.w2a3e-section-link {
    font-size: 12px;
    color: var(--w2a3e-mint);
    font-weight: 600;
}

/* ---------- Game grid (4 cols @ 320, 4-5 @ 375+) ---------- */
.w2a3e-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (min-width: 360px) {
    .w2a3e-grid { gap: 10px; }
}
@media (min-width: 400px) {
    .w2a3e-grid { grid-template-columns: repeat(5, 1fr); }
}
.w2a3e-game {
    background: var(--w2a3e-card);
    border-radius: var(--w2a3e-radius-sm);
    border: 1px solid var(--w2a3e-line);
    padding: 6px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
}
.w2a3e-game:hover, .w2a3e-game:focus {
    transform: translateY(-2px);
    border-color: var(--w2a3e-mint);
}
.w2a3e-game-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    background: #04140e;
}
.w2a3e-game-name {
    margin-top: 5px;
    font-size: 11px;
    color: var(--w2a3e-text);
    font-weight: 600;
    line-height: 1.2;
    height: 26px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- Promo / feature strip ---------- */
.w2a3e-features {
    margin: 18px 12px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.w2a3e-feature {
    background: var(--w2a3e-card);
    border: 1px solid var(--w2a3e-line);
    border-radius: var(--w2a3e-radius-sm);
    padding: 10px 6px;
    text-align: center;
}
.w2a3e-feature svg {
    width: 24px;
    height: 24px;
    color: var(--w2a3e-mint);
    margin: 0 auto 4px;
}
.w2a3e-feature strong {
    display: block;
    color: #ffffff;
    font-size: 12px;
}
.w2a3e-feature span { font-size: 10px; color: var(--w2a3e-muted); }

/* ---------- Long-form content blocks ---------- */
.w2a3e-content {
    margin: 18px 12px 0;
    background: var(--w2a3e-card);
    border: 1px solid var(--w2a3e-line);
    border-radius: var(--w2a3e-radius);
    padding: 16px;
}
.w2a3e-content h2 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #ffffff;
    border-left: 4px solid var(--w2a3e-mint);
    padding-left: 8px;
}
.w2a3e-content h3 {
    margin: 14px 0 6px;
    font-size: 14px;
    color: var(--w2a3e-mint);
}
.w2a3e-content p {
    margin: 0 0 10px;
    color: var(--w2a3e-muted);
    font-size: 14px;
    line-height: 1.7;
}
.w2a3e-content p a { color: var(--w2a3e-mint); font-weight: 700; }
.w2a3e-content ol, .w2a3e-content ul.list-disc {
    margin: 0 0 10px;
    padding-left: 20px;
}
.w2a3e-content ol li, .w2a3e-content ul.list-disc li {
    color: var(--w2a3e-muted);
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.6;
}
.w2a3e-content ul.list-disc { list-style: disc; }

/* ---------- FAQ accordion ---------- */
.w2a3e-faq-list { display: flex; flex-direction: column; gap: 8px; }
.w2a3e-faq {
    border: 1px solid var(--w2a3e-line);
    border-radius: var(--w2a3e-radius-sm);
    background: var(--w2a3e-card-2);
    overflow: hidden;
}
.w2a3e-faq button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.w2a3e-faq button::after {
    content: "+";
    color: var(--w2a3e-mint);
    font-size: 18px;
    flex-shrink: 0;
}
.w2a3e-faq--open button::after { content: "–"; }
.w2a3e-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.w2a3e-faq--open .w2a3e-faq-body { max-height: 320px; }
.w2a3e-faq-body p {
    margin: 0;
    padding: 0 14px 12px;
    color: var(--w2a3e-muted);
    font-size: 13px;
    line-height: 1.65;
}

/* ---------- Extended footer (homepage only) ---------- */
.w2a3e-ext-footer {
    margin: 20px 12px 0;
    background: var(--w2a3e-card);
    border: 1px solid var(--w2a3e-line);
    border-radius: var(--w2a3e-radius);
    padding: 16px;
}
.w2a3e-ext-footer h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 15px;
    border-left: 4px solid var(--w2a3e-mint);
    padding-left: 8px;
}
.w2a3e-ext-footer p { color: var(--w2a3e-muted); font-size: 13px; line-height: 1.6; margin: 0 0 12px; }
.w2a3e-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.w2a3e-shortcut {
    display: block;
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 250, 154, 0.08);
    border: 1px solid var(--w2a3e-line);
    color: var(--w2a3e-text);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.w2a3e-shortcut:hover { background: rgba(0, 250, 154, 0.16); }
.w2a3e-promo-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.w2a3e-promo-tile {
    padding: 10px 4px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 128, 0, 0.45), rgba(0, 250, 154, 0.30));
    border: 1px solid var(--w2a3e-mint);
    color: #ffffff;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.w2a3e-promo-tile small { display: block; color: var(--w2a3e-mint); font-size: 9px; margin-top: 2px; }
.w2a3e-disclaimer {
    margin-top: 14px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 210, 90, 0.08);
    border: 1px dashed var(--w2a3e-gold);
    color: var(--w2a3e-muted);
    font-size: 11px;
    line-height: 1.5;
}

/* ---------- Universal footer (above bottom nav) ---------- */
.w2a3e-footer {
    margin: 18px 12px 0;
    padding: 14px;
    text-align: center;
    color: var(--w2a3e-muted);
    font-size: 11px;
    line-height: 1.6;
    border-top: 1px solid var(--w2a3e-line);
}
.w2a3e-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    margin-bottom: 8px;
}
.w2a3e-footer-links a { color: var(--w2a3e-muted); font-size: 11px; }

/* ---------- Bottom spacing ---------- */
.w2a3e-spacer { height: calc(var(--w2a3e-bottom-h) + 18px); }

/* ---------- Floating dock bottom nav (5 roles) ---------- */
.w2a3e-bottom {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    width: calc(100% - 20px);
    max-width: calc(var(--w2a3e-maxw) - 20px);
    height: var(--w2a3e-bottom-h);
    z-index: 60;
    background: linear-gradient(90deg, #06241a 0%, #0d3a2a 50%, #06241a 100%);
    border: 1px solid var(--w2a3e-mint);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: stretch;
    padding: 6px;
    overflow: hidden;
}
.w2a3e-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--w2a3e-muted);
    font-size: 10px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px 2px;
    transition: color 0.2s ease, background 0.2s ease;
    min-height: 44px;
    text-decoration: none;
}
.w2a3e-bottom-item span { line-height: 1; }
.w2a3e-bottom-item svg {
    width: 22px;
    height: 22px;
    color: currentColor;
}
.w2a3e-bottom-item.w2a3e-bottom--active {
    color: #04130c;
    background: linear-gradient(135deg, var(--w2a3e-mint), var(--w2a3e-green));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.w2a3e-bottom-item.w2a3e-bottom--promo {
    color: var(--w2a3e-gold);
}
.w2a3e-bottom-item.w2a3e-bottom--promo.w2a3e-bottom--active {
    color: #04130c;
    background: linear-gradient(135deg, var(--w2a3e-gold), var(--w2a3e-mint));
}

/* ---------- Utility ---------- */
.w2a3e-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;
}

/* Keep the mobile canvas on wider screens */
@media (min-width: 480px) {
    body { background: #050a08; }
}
