/* ============================================================
 * 366.homes - Core Stylesheet
 * Mobile-first (320-430px). Dark navy base, coral/cyan accents.
 * All custom classes use the `sc05-` prefix per project spec.
 * ============================================================ */

:root {
    --sc05-bg:        #1B263B;   /* dark navy base */
    --sc05-bg-2:      #14203a;   /* deeper navy */
    --sc05-bg-3:      #0f1a2e;   /* near-black panel */
    --sc05-card:      #21314c;   /* card surface */
    --sc05-coral:     #F08080;   /* primary accent (warm) */
    --sc05-cyan:      #00B8D4;   /* secondary accent (cool) */
    --sc05-violet:    #6A5ACD;   /* tertiary accent */
    --sc05-teal:      #20B2AA;   /* support accent */
    --sc05-text:      #f4f6fb;   /* main text */
    --sc05-muted:     #b9c2d4;   /* muted text */
    --sc05-line:      rgba(255,255,255,.08);
    --sc05-line-2:    rgba(255,255,255,.16);
    --sc05-shadow:    0 10px 26px rgba(0,0,0,.35);
    --sc05-radius:    14px;
    --sc05-radius-sm: 10px;
    --sc05-header-h:  56px;
    --sc05-nav-h:     62px;
    --sc05-max:       460px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    padding: 0;
    background: var(--sc05-bg);
    color: var(--sc05-text);
    font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Roboto, system-ui, -apple-system, "Segoe UI Emoji", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
    overflow-x: hidden;
}

body.sc05-lock-scroll { overflow: hidden; }

a { color: var(--sc05-cyan); text-decoration: none; }
a:hover, a:focus { color: #4fd6e6; text-decoration: underline; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; color: #fff; font-weight: 700; }
h1 { font-size: 22px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p  { margin: 0 0 .9em; }

ul, ol { padding-left: 1.1em; }

/* Center the mobile canvas on wider screens. */
.sc05-shell {
    width: 100%;
    max-width: var(--sc05-max);
    margin: 0 auto;
    min-height: 100vh;
    background:
        radial-gradient(900px 360px at 90% -40px, rgba(106,90,205,.20), transparent 60%),
        radial-gradient(700px 320px at -10% 6%, rgba(0,184,212,.16), transparent 60%),
        var(--sc05-bg);
    position: relative;
}

/* ============================================================
 * HEADER  (Minimal title + action band)
 * ========================================================== */
.sc05-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--sc05-header-h);
    background: linear-gradient(180deg, rgba(15,26,46,.96), rgba(27,38,59,.92));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--sc05-line);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
}

.sc05-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.sc05-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--sc05-coral), var(--sc05-violet));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .5px;
    box-shadow: 0 4px 12px rgba(240,128,128,.35);
    flex-shrink: 0;
}
.sc05-brand-text { min-width: 0; }
.sc05-brand-name {
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: .3px;
    line-height: 1;
}
.sc05-brand-tag {
    color: var(--sc05-muted);
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc05-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 7px;
}

.sc05-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    padding: 0 14px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.sc05-btn:focus-visible { outline: 2px solid var(--sc05-cyan); outline-offset: 2px; }
.sc05-btn:hover { text-decoration: none; }

.sc05-btn-login {
    background: transparent;
    color: var(--sc05-text);
    border: 1px solid var(--sc05-line-2);
}
.sc05-btn-login:hover { background: rgba(255,255,255,.06); color: #fff; }

.sc05-btn-register {
    background: linear-gradient(135deg, var(--sc05-coral), #ff9a6b);
    color: #1B263B;
    box-shadow: 0 6px 16px rgba(240,128,128,.35);
}
.sc05-btn-register:hover { transform: translateY(-1px); color: #14203a; }

.sc05-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--sc05-line);
    color: var(--sc05-text);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.sc05-icon-btn:hover { background: rgba(255,255,255,.1); }

/* ============================================================
 * STACKED OVERLAY MENU
 * ========================================================== */
.sc05-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8,13,24,.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease;
    z-index: 80;
}
.sc05-menu-backdrop.sc05-is-visible { opacity: 1; visibility: visible; }

.sc05-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(86%, 360px);
    background: var(--sc05-bg-2);
    border-left: 1px solid var(--sc05-line);
    box-shadow: -18px 0 40px rgba(0,0,0,.45);
    transform: translateX(105%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    z-index: 90;
    overflow-y: auto;
    padding: 18px 16px calc(var(--sc05-nav-h) + 24px);
}
.sc05-menu-panel.sc05-is-open { transform: translateX(0); }

.sc05-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.sc05-menu-title { font-size: 16px; color: #fff; font-weight: 700; }
.sc05-menu-close {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--sc05-line);
    color: #fff;
    cursor: pointer;
    display: grid; place-items: center;
}

.sc05-menu-section-label {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 11px;
    color: var(--sc05-muted);
    margin: 14px 4px 8px;
}
.sc05-menu-list { list-style: none; padding: 0; margin: 0; }
.sc05-menu-list li { margin: 0; }
.sc05-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 10px;
    color: var(--sc05-text);
    font-weight: 600;
    border: 1px solid transparent;
}
.sc05-menu-link:hover, .sc05-menu-link:focus {
    background: rgba(0,184,212,.10);
    border-color: var(--sc05-line-2);
    text-decoration: none;
    color: #fff;
}
.sc05-menu-link .sc05-menu-arrow {
    color: var(--sc05-muted);
    font-size: 14px;
}

/* ============================================================
 * LAYOUT CONTAINERS
 * ========================================================== */
.sc05-main {
    padding: 14px 12px calc(var(--sc05-nav-h) + 22px);
}
.sc05-section { margin: 22px 0; }
.sc05-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
    gap: 10px;
}
.sc05-section-title {
    font-size: 17px;
    color: #fff;
    font-weight: 800;
    position: relative;
    padding-left: 12px;
    margin: 0;
}
.sc05-section-title::before {
    content: "";
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--sc05-coral), var(--sc05-cyan));
}
.sc05-section-link {
    font-size: 12px;
    color: var(--sc05-cyan);
    font-weight: 700;
}

/* ============================================================
 * HERO / CAROUSEL
 * ========================================================== */
.sc05-carousel {
    position: relative;
    border-radius: var(--sc05-radius);
    overflow: hidden;
    box-shadow: var(--sc05-shadow);
    border: 1px solid var(--sc05-line);
}
.sc05-carousel-track {
    display: flex;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.sc05-carousel-slide {
    flex: 0 0 100%;
    position: relative;
    display: block;
    cursor: pointer;
}
.sc05-carousel-slide img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
}
.sc05-carousel-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px 14px 12px;
    background: linear-gradient(0deg, rgba(11,18,33,.92), rgba(11,18,33,0));
    color: #fff;
}
.sc05-carousel-cap strong {
    display: block;
    font-size: 16px;
    color: #fff;
    margin-bottom: 2px;
}
.sc05-carousel-cap span {
    font-size: 12px;
    color: var(--sc05-muted);
}

.sc05-carousel-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(15,26,46,.6);
    border: 1px solid var(--sc05-line-2);
    color: #fff;
    display: grid; place-items: center;
    cursor: pointer;
}
.sc05-carousel-prev { left: 8px; }
.sc05-carousel-next { right: 8px; }

/* Underline indicator (matches site's motion direction) */
.sc05-carousel-indicators {
    position: absolute;
    left: 14px; right: 14px; bottom: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.sc05-carousel-rail-wrap {
    position: relative;
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,.18);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}
.sc05-carousel-rail {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.sc05-carousel-rail-cell {
    flex: 0 0 100%;
    height: 100%;
}
.sc05-carousel-rail-cell::after {
    content: "";
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--sc05-coral), var(--sc05-cyan));
}
.sc05-carousel-slide.sc05-is-active ~ .sc05-carousel-indicators .sc05-carousel-rail-cell::after,
.sc05-carousel-rail .sc05-carousel-rail-cell::after { width: 0; }

/* Simpler dot fallback if rail not used */
.sc05-carousel-dots {
    position: absolute;
    left: 0; right: 0; bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 2;
}
.sc05-carousel-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: all .2s ease;
}
.sc05-carousel-dot.sc05-is-active {
    width: 22px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--sc05-coral), var(--sc05-cyan));
}

/* ============================================================
 * CHIP STRIP (in-page section nav)
 * ========================================================== */
.sc05-chip-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sc05-chip-strip::-webkit-scrollbar { display: none; }
.sc05-chip {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--sc05-line);
    color: var(--sc05-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.sc05-chip:hover, .sc05-chip:focus {
    background: rgba(0,184,212,.12);
    border-color: var(--sc05-cyan);
    color: #fff;
    text-decoration: none;
}

/* ============================================================
 * GAME GRID & CARDS
 * 320px => 4 cols; 375-430px => 4-5 cols.
 * ========================================================== */
.sc05-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (min-width: 360px) {
    .sc05-game-grid { gap: 9px; }
}
@media (min-width: 395px) {
    .sc05-game-grid { grid-template-columns: repeat(5, 1fr); }
}

.sc05-game-card {
    display: block;
    position: relative;
    border-radius: var(--sc05-radius-sm);
    overflow: hidden;
    background: var(--sc05-card);
    border: 1px solid var(--sc05-line);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    text-align: center;
}
.sc05-game-card:hover, .sc05-game-card:focus {
    transform: translateY(-2px);
    border-color: var(--sc05-cyan);
    box-shadow: 0 8px 18px rgba(0,184,212,.22);
    text-decoration: none;
}
.sc05-game-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #0f1a2e;
    display: block;
}
.sc05-game-name {
    display: block;
    font-size: 11px;
    color: var(--sc05-text);
    line-height: 1.25;
    padding: 5px 4px 6px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc05-game-card:hover .sc05-game-name { color: #fff; }

/* Hot badge */
.sc05-badge-hot {
    position: absolute;
    top: 4px; left: 4px;
    background: linear-gradient(135deg, var(--sc05-coral), #ff5d5d);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: .4px;
    text-transform: uppercase;
}

/* ============================================================
 * INFO / SEO TEXT BLOCKS
 * ========================================================== */
.sc05-card {
    background: var(--sc05-card);
    border: 1px solid var(--sc05-line);
    border-radius: var(--sc05-radius);
    padding: 14px;
    box-shadow: var(--sc05-shadow);
    margin: 12px 0;
}
.sc05-card h2 { margin-top: 0; }
.sc05-card p, .sc05-card li { color: var(--sc05-muted); }
.sc05-card strong { color: #fff; }

.sc05-prose { color: var(--sc05-muted); }
.sc05-prose h2 { color: #fff; margin-top: 1.2em; }
.sc05-prose h3 { color: #fff; margin-top: 1em; }
.sc05-prose p { color: var(--sc05-muted); }
.sc05-prose a { color: var(--sc05-cyan); font-weight: 600; }

.sc05-checklist {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}
.sc05-checklist li {
    padding: 8px 10px 8px 30px;
    border-radius: 8px;
    background: rgba(255,255,255,.03);
    margin-bottom: 6px;
    position: relative;
    color: var(--sc05-text);
}
.sc05-checklist li::before {
    content: "✓";
    position: absolute;
    left: 10px; top: 8px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--sc05-teal);
    color: #0f1a2e;
    font-size: 10px;
    font-weight: 800;
    display: grid; place-items: center;
}

.sc05-faq-item {
    border-bottom: 1px solid var(--sc05-line);
    padding: 10px 0;
}
.sc05-faq-item:last-child { border-bottom: 0; }
.sc05-faq-q {
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    font-size: 14px;
}
.sc05-faq-a { color: var(--sc05-muted); margin: 0; font-size: 13px; }

/* Inline keyword chips used naturally inside prose */
.sc05-kw {
    color: #fff;
    font-weight: 700;
}

/* ============================================================
 * HOMEPAGE EXTENDED FOOTER (page directory > brand > promos > disclaimer)
 * ========================================================== */
.sc05-ext-footer {
    margin-top: 26px;
    padding: 16px 14px;
    background: var(--sc05-bg-2);
    border-top: 1px solid var(--sc05-line);
    border-radius: 16px 16px 0 0;
}
.sc05-ext-block { margin-bottom: 16px; }
.sc05-ext-block:last-child { margin-bottom: 0; }
.sc05-ext-label {
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--sc05-cyan);
    font-size: 11px;
    font-weight: 800;
    margin: 0 0 8px;
}
.sc05-ext-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 10px;
}
.sc05-ext-list a {
    color: var(--sc05-text);
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    padding: 4px 0;
}
.sc05-ext-list a:hover { color: var(--sc05-coral); }

.sc05-promo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.sc05-promo-tile {
    border-radius: 10px;
    border: 1px solid var(--sc05-line);
    background: rgba(255,255,255,.03);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.sc05-promo-tile:hover { border-color: var(--sc05-coral); background: rgba(240,128,128,.10); text-decoration: none; }
.sc05-promo-tile small { display: block; color: var(--sc05-muted); font-weight: 500; font-size: 11px; margin-top: 2px; }

.sc05-brand-blurb { color: var(--sc05-muted); font-size: 13px; }
.sc05-disclaimer {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(240,128,128,.08);
    border: 1px solid rgba(240,128,128,.25);
    color: var(--sc05-muted);
    font-size: 12px;
}

/* ============================================================
 * GLOBAL FOOTER (copyright only)
 * ========================================================== */
.sc05-footer {
    text-align: center;
    padding: 16px 14px calc(var(--sc05-nav-h) + 18px);
    color: var(--sc05-muted);
    font-size: 12px;
    border-top: 1px solid var(--sc05-line);
}
.sc05-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    margin-bottom: 8px;
}
.sc05-footer-links a { color: var(--sc05-muted); font-size: 12px; }
.sc05-footer-links a:hover { color: var(--sc05-cyan); }

/* ============================================================
 * MOBILE BOTTOM NAV  (Full-width nav wheel)
 * 5 roles: Home / Promo1 / Promo2 / Functional / Help
 * Active cue = underline marker (per site motion direction).
 * ========================================================== */
.sc05-bottom-nav {
    position: fixed;
    left: 0; right: 0;
    bottom: 0;
    z-index: 70;
    height: var(--sc05-nav-h);
    background: linear-gradient(180deg, rgba(20,32,58,.97), rgba(15,26,46,.99));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--sc05-line-2);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    max-width: var(--sc05-max);
    margin: 0 auto;
    box-shadow: 0 -8px 22px rgba(0,0,0,.35);
}
.sc05-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--sc05-muted);
    font-size: 10px;
    font-weight: 600;
    padding: 6px 2px 4px;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: 0;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s ease;
}
.sc05-nav-item:hover { color: #fff; text-decoration: none; }
.sc05-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .15s ease;
}

/* Promo items get coral tint */
.sc05-nav-item.sc05-nav-promo { color: #ffb3b3; }
.sc05-nav-item.sc05-nav-promo svg { stroke: var(--sc05-coral); }

/* Active cue: filled icon + sliding underline marker */
.sc05-nav-item.sc05-is-current {
    color: #fff;
}
.sc05-nav-item.sc05-is-current svg {
    fill: rgba(0,184,212,.18);
    stroke: var(--sc05-cyan);
    transform: translateY(-1px);
}
.sc05-nav-item.sc05-is-current::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--sc05-coral), var(--sc05-cyan));
    transform: translateX(-50%);
}
.sc05-nav-item.sc05-nav-promo.sc05-is-current svg {
    fill: rgba(240,128,128,.20);
    stroke: var(--sc05-coral);
}

/* Hide bottom nav on very wide screens is NOT desired:
   the spec says keep mobile canvas; nav stays. */

/* ============================================================
 * UTILITIES
 * ========================================================== */
.sc05-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;
}
.sc05-divider {
    height: 1px;
    background: var(--sc05-line);
    margin: 18px 0;
    border: 0;
}

img.sc05-lazy { background: linear-gradient(135deg, #21314c, #18233c); }
img.sc05-lazy.sc05-loaded { background: transparent; }

/* Focus visibility for keyboard users */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--sc05-cyan);
    outline-offset: 2px;
    border-radius: 6px;
}
