/* ============================================================
 * bb56.homes - bb56-canvas-53b7.css
 * Class prefix: w53b7-
 * Palette: #2E4057 | #8A2BE2 | #B22222 | #00FA9A | #CC99FF
 * Mobile-first 320-430px canvas.
 * ============================================================ */

:root {
    --w53b7-deep: #2E4057;       /* primary background */
    --w53b7-violet: #8A2BE2;     /* brand accent */
    --w53b7-crimson: #B22222;    /* hot/alert */
    --w53b7-mint: #00FA9A;       /* mint glow */
    --w53b7-lilac: #CC99FF;      /* secondary highlight */
    --w53b7-ink: #0c1622;        /* near-black surface */
    --w53b7-ink-2: #142235;      /* raised surface */
    --w53b7-line: rgba(204, 153, 255, 0.18);
    --w53b7-text: #EAF6FF;
    --w53b7-text-dim: #9FB3C8;
    --w53b7-radius: 14px;
    --w53b7-radius-sm: 10px;
    --w53b7-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    --w53b7-header-h: 58px;
    --w53b7-bottomnav-h: 66px;
    --w53b7-maxw: 460px;
}

* { box-sizing: border-box; }

html.w53b7-no-scroll,
body.w53b7-no-scroll { overflow: hidden; }

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

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", "Roboto", "Noto Sans", system-ui, sans-serif;
    color: var(--w53b7-text);
    background: radial-gradient(circle at 0% 0%, #1c2c44 0%, var(--w53b7-deep) 38%, var(--w53b7-ink) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.5;
    font-size: 15px;
    overflow-x: hidden;
}

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

a { color: var(--w53b7-lilac); text-decoration: none; }
a:hover, a:focus { color: var(--w53b7-mint); }

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

/* ===================== Top banner-style header ===================== */
.w53b7-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(180deg, #16243a 0%, rgba(22, 36, 58, 0.96) 100%);
    border-bottom: 1px solid var(--w53b7-line);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.w53b7-header::before {
    /* top accent indicator line */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--w53b7-violet), var(--w53b7-mint), var(--w53b7-lilac));
}

.w53b7-header-inner {
    max-width: var(--w53b7-maxw);
    margin: 0 auto;
    height: var(--w53b7-header-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

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

.w53b7-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(204, 153, 255, 0.35);
    box-shadow: 0 0 14px rgba(138, 43, 226, 0.55);
}

.w53b7-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.w53b7-brand-name {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.4px;
    color: #fff;
    white-space: nowrap;
}

.w53b7-brand-tag {
    font-size: 10.5px;
    color: var(--w53b7-mint);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.w53b7-btn {
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
    cursor: pointer;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 14px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.w53b7-btn-login {
    background: transparent;
    color: var(--w53b7-text);
    border: 1px solid rgba(204, 153, 255, 0.55);
}

.w53b7-btn-login:hover, .w53b7-btn-login:focus {
    color: var(--w53b7-mint);
    border-color: var(--w53b7-mint);
    box-shadow: 0 0 10px rgba(0, 250, 154, 0.35);
}

.w53b7-btn-register {
    background: linear-gradient(135deg, var(--w53b7-violet), var(--w53b7-crimson));
    color: #fff;
    box-shadow: 0 0 16px rgba(138, 43, 226, 0.6);
}

.w53b7-btn-register:hover, .w53b7-btn-register:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(0, 250, 154, 0.5);
}

.w53b7-btn-ghost {
    background: transparent;
    color: var(--w53b7-text);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--w53b7-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.w53b7-btn-ghost:hover, .w53b7-btn-ghost:focus,
.w53b7-btn-ghost.w53b7-is-active {
    color: var(--w53b7-mint);
    border-color: var(--w53b7-mint);
    box-shadow: 0 0 12px rgba(0, 250, 154, 0.45);
}

.w53b7-btn-ghost svg { width: 22px; height: 22px; }

/* ===================== Layered dropdown menu ===================== */
.w53b7-menu-scrim {
    position: fixed;
    inset: 0;
    background: rgba(6, 12, 22, 0.74);
    backdrop-filter: blur(3px);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.w53b7-menu-scrim.w53b7-is-open {
    opacity: 1;
    pointer-events: auto;
}

.w53b7-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(86vw, 360px);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #15243a 0%, #0d1a2c 100%);
    border-left: 1px solid var(--w53b7-line);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.6);
    z-index: 90;
    transform: translateX(110%);
    transition: transform .32s cubic-bezier(.22, .9, .3, 1);
    overflow-y: auto;
    padding: 16px 16px calc(var(--w53b7-bottomnav-h) + 24px);
    visibility: hidden;
}

.w53b7-menu.w53b7-is-open {
    transform: translateX(0);
    visibility: visible;
}

.w53b7-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.w53b7-menu-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.4px;
}

.w53b7-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(204, 153, 255, 0.12);
    color: var(--w53b7-text);
    border: 1px solid var(--w53b7-line);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.w53b7-menu-cta {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.w53b7-menu-cta .w53b7-btn { flex: 1; }

.w53b7-menu-section {
    border: 1px solid var(--w53b7-line);
    border-radius: var(--w53b7-radius);
    background: rgba(20, 34, 53, 0.7);
    overflow: hidden;
    margin-bottom: 12px;
}

.w53b7-menu-section-title {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--w53b7-mint);
    border-bottom: 1px solid var(--w53b7-line);
    background: rgba(138, 43, 226, 0.12);
}

.w53b7-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    color: var(--w53b7-text);
    font-size: 14px;
    border-bottom: 1px solid rgba(204, 153, 255, 0.08);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.w53b7-menu-link:last-child { border-bottom: none; }
.w53b7-menu-link:hover, .w53b7-menu-link:focus { background: rgba(0, 250, 154, 0.08); color: var(--w53b7-mint); }

.w53b7-submenu {
    max-height: 0;
    overflow: hidden;
    background: rgba(8, 16, 28, 0.7);
    transition: max-height .28s ease;
}

.w53b7-submenu.w53b7-is-open { max-height: 520px; }

.w53b7-submenu .w53b7-menu-link {
    padding-left: 30px;
    font-size: 13px;
    color: var(--w53b7-text-dim);
}

.w53b7-submenu-caret {
    width: 14px; height: 14px;
    transition: transform .2s ease;
    color: var(--w53b7-lilac);
}

.w53b7-submenu-btn[aria-expanded="true"] .w53b7-submenu-caret { transform: rotate(90deg); }

/* ===================== Hero / Promo carousel ===================== */
.w53b7-hero {
    margin-top: 14px;
}

.w53b7-promo {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--w53b7-line);
    box-shadow: var(--w53b7-shadow);
}

.w53b7-promo-viewport {
    overflow: hidden;
    border-radius: 18px;
}

.w53b7-promo-track {
    display: flex;
    transition: transform .5s ease;
}

.w53b7-promo-slide {
    min-width: 100%;
    position: relative;
}

.w53b7-promo-slide img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
}

.w53b7-promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 16, 28, 0.05) 30%, rgba(8, 16, 28, 0.82) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.w53b7-promo-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.w53b7-promo-sub {
    font-size: 12px;
    color: var(--w53b7-mint);
    margin: 0 0 9px;
}

.w53b7-promo-cta {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--w53b7-violet), var(--w53b7-crimson));
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(0, 250, 154, 0.4);
}

.w53b7-promo-dots {
    position: absolute;
    bottom: 8px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.w53b7-promo-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(234, 246, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width .25s ease, background .25s ease;
}

.w53b7-promo-dot.w53b7-is-active {
    background: var(--w53b7-mint);
    width: 22px;
    border-radius: 5px;
    box-shadow: 0 0 8px var(--w53b7-mint);
}

.w53b7-promo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(8, 16, 28, 0.6);
    border: 1px solid var(--w53b7-line);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
}
.w53b7-promo-nav.w53b7-prev { left: 8px; }
.w53b7-promo-nav.w53b7-next { right: 8px; }

/* ===================== Section shells ===================== */
.w53b7-section {
    margin-top: 22px;
}

.w53b7-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 10px;
}

.w53b7-section-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.w53b7-section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--w53b7-violet), var(--w53b7-mint));
    box-shadow: 0 0 8px var(--w53b7-mint);
}

.w53b7-section-link {
    font-size: 12px;
    color: var(--w53b7-lilac);
    font-weight: 600;
}

.w53b7-section-link:hover { color: var(--w53b7-mint); }

/* category chip bar */
.w53b7-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.w53b7-chips::-webkit-scrollbar { display: none; }

.w53b7-chip {
    flex: 0 0 auto;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid var(--w53b7-line);
    background: rgba(20, 34, 53, 0.7);
    color: var(--w53b7-text-dim);
    cursor: pointer;
    transition: all .2s ease;
}

.w53b7-chip:hover, .w53b7-chip:focus { color: var(--w53b7-mint); border-color: var(--w53b7-mint); }

/* ===================== Game grid ===================== */
.w53b7-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

@media (min-width: 360px) {
    .w53b7-grid { gap: 9px; }
}

@media (min-width: 400px) {
    .w53b7-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.w53b7-tile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(32, 50, 76, 0.65), rgba(12, 22, 34, 0.65));
    border: 1px solid var(--w53b7-line);
    border-radius: var(--w53b7-radius-sm);
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
    padding: 0;
    font: inherit;
    color: inherit;
}

.w53b7-tile:hover, .w53b7-tile:focus {
    transform: translateY(-2px);
    border-color: var(--w53b7-mint);
    box-shadow: 0 8px 18px rgba(0, 250, 154, 0.22);
}

.w53b7-tile-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #0b1626;
}

.w53b7-tile-name {
    font-size: 10.5px;
    color: var(--w53b7-text);
    padding: 5px 4px 6px;
    line-height: 1.25;
    min-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.w53b7-tile-badge {
    display: inline-block;
    position: absolute;
}

.w53b7-tile { position: relative; }

.w53b7-tile-tag {
    position: absolute;
    top: 4px; left: 4px;
    background: linear-gradient(135deg, var(--w53b7-crimson), var(--w53b7-violet));
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* ===================== Info blocks ===================== */
.w53b7-card {
    background: rgba(20, 34, 53, 0.72);
    border: 1px solid var(--w53b7-line);
    border-radius: var(--w53b7-radius);
    padding: 16px;
    box-shadow: var(--w53b7-shadow);
}

.w53b7-card h2 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #fff;
}

.w53b7-card p {
    margin: 0 0 10px;
    color: var(--w53b7-text-dim);
    font-size: 13.5px;
}

.w53b7-card p:last-child { margin-bottom: 0; }

.w53b7-card a {
    color: var(--w53b7-lilac);
    border-bottom: 1px dashed rgba(204, 153, 255, 0.4);
}

.w53b7-card a:hover { color: var(--w53b7-mint); border-color: var(--w53b7-mint); }

.w53b7-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--w53b7-text-dim);
    font-size: 13.5px;
}

.w53b7-list li { margin-bottom: 6px; }

.w53b7-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.w53b7-pill {
    background: rgba(0, 250, 154, 0.1);
    border: 1px solid rgba(0, 250, 154, 0.35);
    color: var(--w53b7-mint);
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 999px;
}

/* ===================== Extended footer (page directory) ===================== */
.w53b7-extfoot {
    margin-top: 26px;
    background: rgba(13, 26, 44, 0.85);
    border: 1px solid var(--w53b7-line);
    border-radius: var(--w53b7-radius);
    padding: 16px;
}

.w53b7-extfoot-block { margin-bottom: 16px; }
.w53b7-extfoot-block:last-child { margin-bottom: 0; }

.w53b7-extfoot-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--w53b7-mint);
    margin: 0 0 10px;
    font-weight: 800;
}

.w53b7-extfoot-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    font-size: 13px;
}

.w53b7-extfoot-links a {
    color: var(--w53b7-text);
    padding: 4px 0;
    border-bottom: 1px dashed rgba(204, 153, 255, 0.18);
}

.w53b7-extfoot-links a:hover { color: var(--w53b7-mint); }

.w53b7-extfoot-brand {
    font-size: 12.5px;
    color: var(--w53b7-text-dim);
    line-height: 1.6;
}

.w53b7-extfoot-disclaimer {
    font-size: 11.5px;
    color: var(--w53b7-text-dim);
    border-top: 1px solid var(--w53b7-line);
    padding-top: 12px;
    line-height: 1.55;
}

/* ===================== Universal footer ===================== */
.w53b7-footer {
    margin-top: 22px;
    padding: 16px 14px calc(var(--w53b7-bottomnav-h) + 26px);
    text-align: center;
    color: var(--w53b7-text-dim);
    font-size: 12px;
    border-top: 1px solid var(--w53b7-line);
    background: rgba(8, 16, 28, 0.7);
}

.w53b7-footer p { margin: 0 0 6px; }

.w53b7-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
    margin: 8px 0 10px;
    font-size: 12px;
}

.w53b7-footer-nav a { color: var(--w53b7-text-dim); }
.w53b7-footer-nav a:hover { color: var(--w53b7-mint); }

/* ===================== Bottom nav (brand-emphasized band) ===================== */
.w53b7-bottomnav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    max-width: var(--w53b7-maxw);
    margin: 0 auto;
    height: var(--w53b7-bottomnav-h);
    display: flex;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(22, 36, 58, 0.96), rgba(8, 16, 28, 0.98));
    border-top: 1px solid var(--w53b7-line);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.55);
}

.w53b7-bottomnav::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--w53b7-crimson), var(--w53b7-violet), var(--w53b7-mint));
    opacity: 0.85;
}

.w53b7-bottomnav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--w53b7-text-dim);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 2px 8px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease;
}

.w53b7-bottomnav-item svg {
    width: 22px;
    height: 22px;
}

.w53b7-bottomnav-item .w53b7-bn-label {
    letter-spacing: 0.3px;
}

.w53b7-bottomnav-item::before {
    content: "";
    position: absolute;
    top: 0;
    width: 22px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: transparent;
    transition: background .22s ease, box-shadow .22s ease;
}

.w53b7-bottomnav-item.w53b7-is-current {
    color: var(--w53b7-mint);
}

.w53b7-bottomnav-item.w53b7-is-current::before {
    background: var(--w53b7-mint);
    box-shadow: 0 0 10px var(--w53b7-mint);
}

.w53b7-bottomnav-item:hover, .w53b7-bottomnav-item:focus {
    color: var(--w53b7-lilac);
}

.w53b7-bottomnav-item:hover svg, .w53b7-bottomnav-item:focus svg,
.w53b7-bottomnav-item.w53b7-is-current svg {
    filter: drop-shadow(0 0 6px rgba(0, 250, 154, 0.55));
}

.w53b7-bottomnav-promo {
    color: var(--w53b7-lilac);
    background: radial-gradient(circle at 50% 0%, rgba(138, 43, 226, 0.22), transparent 70%);
}

.w53b7-bottomnav-promo.w53b7-is-current { color: var(--w53b7-mint); }

/* ===================== Utilities ===================== */
.w53b7-hidden { display: none !important; }

.w53b7-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;
}

/* Hide bottom nav on wide desktop (mobile-first only) */
@media (min-width: 720px) {
    .w53b7-bottomnav { display: none; }
    .w53b7-footer { padding-bottom: 26px; }
    body { padding-bottom: 0; }
}

/* Ensure content clears bottom nav on mobile */
body { padding-bottom: calc(var(--w53b7-bottomnav-h) + 12px); }
