/* ===========================================================
   surface-sports-betting-ba37.css
   Sports betting (sports-betting.cyou) - base stylesheet
   Palette: #273746 (deep ink) / #FDF5E6 (cream)
   All custom classes use the "sba3-" prefix.
   Comments are in English; on-screen text is Bengali (bn-BD).
   =========================================================== */

:root {
    --sba3-ink: #273746;
    --sba3-ink-2: #1c2a36;
    --sba3-ink-3: #33485a;
    --sba3-cream: #FDF5E6;
    --sba3-cream-2: #f6ead2;
    --sba3-gold: #f5b942;
    --sba3-gold-2: #e29c25;
    --sba3-green: #2fbf71;
    --sba3-red: #e64545;
    --sba3-muted: #9fb1c0;
    --sba3-line: rgba(253, 245, 230, 0.14);
    --sba3-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    --sba3-radius: 14px;
    --sba3-radius-sm: 10px;
    --sba3-touch: 44px;
    --sba3-maxw: 430px;
    --sba3-header-h: 58px;
    --sba3-bottom-h: 64px;
    --sba3-font: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--sba3-ink);
    color: var(--sba3-cream);
    font-family: var(--sba3-font);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

body { position: relative; min-height: 100vh; }

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

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

a { color: var(--sba3-cream); text-decoration: none; }

.sba3-hidden { display: none !important; }

/* Page frame - keep mobile canvas centered on wider screens */
.sba3-shell {
    max-width: var(--sba3-maxw);
    margin: 0 auto;
    background:
        radial-gradient(120% 60% at 50% -10%, #34495a 0%, rgba(39, 55, 70, 0) 60%),
        var(--sba3-ink);
    min-height: 100vh;
    position: relative;
    box-shadow: var(--sba3-shadow);
}

/* =========================================================
   Header - flag-style top bar
   ========================================================= */
.sba3-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--sba3-header-h);
    background: linear-gradient(180deg, #2c4154 0%, #21303f 100%);
    border-bottom: 1px solid var(--sba3-line);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

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

.sba3-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--sba3-cream);
    border: 1px solid var(--sba3-line);
    box-shadow: 0 0 0 2px rgba(245, 185, 66, 0.35);
    flex: 0 0 auto;
}

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

.sba3-brand-name strong {
    font-size: 16px;
    color: var(--sba3-cream);
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sba3-brand-name small {
    font-size: 10.5px;
    color: var(--sba3-gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sba3-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sba3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.sba3-btn-login {
    background: transparent;
    color: var(--sba3-cream);
    border: 1px solid var(--sba3-line);
    min-width: 64px;
}

.sba3-btn-login:active { transform: scale(0.96); }

.sba3-btn-register {
    background: linear-gradient(135deg, var(--sba3-gold) 0%, var(--sba3-gold-2) 100%);
    color: #2a1d05;
    box-shadow: 0 6px 16px rgba(245, 185, 66, 0.35);
    min-width: 80px;
}

.sba3-btn-register:active { transform: scale(0.95); }

.sba3-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(253, 245, 230, 0.08);
    border: 1px solid var(--sba3-line);
    color: var(--sba3-cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 0.15s ease, transform 0.15s ease;
}

.sba3-icon-btn:active { transform: scale(0.94); }

.sba3-icon-btn svg { width: 20px; height: 20px; }

/* =========================================================
   Slide menu (partition-style)
   ========================================================= */
.sba3-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 22, 30, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 90;
}

.sba3-menu-overlay.sba3-overlay-on {
    opacity: 1;
    pointer-events: auto;
}

.sba3-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 86%;
    max-width: 360px;
    height: 100vh;
    background: linear-gradient(180deg, #243645 0%, #1a2836 100%);
    border-left: 1px solid var(--sba3-line);
    transform: translateX(105%);
    transition: transform 0.28s ease;
    z-index: 100;
    overflow-y: auto;
    padding: 22px 18px 80px;
}

.sba3-menu-panel.sba3-menu-open { transform: translateX(0); }

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

.sba3-menu-head h3 {
    margin: 0;
    font-size: 18px;
    color: var(--sba3-cream);
}

.sba3-menu-close {
    background: transparent;
    border: none;
    color: var(--sba3-cream);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    width: 38px;
    height: 38px;
}

.sba3-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sba3-menu-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 12px;
    border-radius: var(--sba3-radius-sm);
    color: var(--sba3-cream);
    font-size: 14.5px;
    font-weight: 600;
    transition: background 0.15s ease, padding-left 0.15s ease;
}

.sba3-menu-list a:hover,
.sba3-menu-list a:active {
    background: rgba(245, 185, 66, 0.12);
    padding-left: 16px;
}

.sba3-menu-list a svg { width: 18px; height: 18px; color: var(--sba3-gold); }

.sba3-menu-cta {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sba3-menu-cta .sba3-btn { width: 100%; height: 44px; }

/* =========================================================
   Hero carousel
   ========================================================= */
.sba3-hero {
    position: relative;
    margin: 12px 12px 0;
    border-radius: var(--sba3-radius);
    overflow: hidden;
    box-shadow: var(--sba3-shadow);
    background: var(--sba3-ink-2);
}

.sba3-hero-viewport {
    overflow: hidden;
    border-radius: var(--sba3-radius);
}

.sba3-hero-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.sba3-hero-slide {
    position: relative;
    flex: 0 0 100%;
    height: 168px;
    display: block;
    overflow: hidden;
}

.sba3-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.sba3-hero-caption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    right: 14px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.sba3-hero-caption span {
    display: inline-block;
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--sba3-gold);
    color: #2a1d05;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-weight: 700;
}

.sba3-hero-caption strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.sba3-hero-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 4;
}

.sba3-hero-dots button {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(253, 245, 230, 0.55);
    border: none;
    margin: 0 3px;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sba3-hero-dots button.sba3-dot-active {
    background: var(--sba3-gold);
    transform: scale(1.35);
}

/* =========================================================
   Quick action strip
   ========================================================= */
.sba3-quick-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px;
}

.sba3-quick {
    background: var(--sba3-ink-3);
    border: 1px solid var(--sba3-line);
    border-radius: var(--sba3-radius-sm);
    padding: 10px 6px;
    text-align: center;
    color: var(--sba3-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.sba3-quick:active { transform: translateY(2px); }
.sba3-quick:hover { background: #3a4f63; }

.sba3-quick svg { width: 22px; height: 22px; color: var(--sba3-gold); }
.sba3-quick span { font-size: 11.5px; font-weight: 600; }

/* =========================================================
   Search bar
   ========================================================= */
.sba3-search {
    margin: 0 12px 12px;
    position: relative;
}

.sba3-search input {
    width: 100%;
    height: 42px;
    background: var(--sba3-ink-3);
    border: 1px solid var(--sba3-line);
    border-radius: 999px;
    color: var(--sba3-cream);
    font-family: inherit;
    font-size: 13.5px;
    padding: 0 16px 0 40px;
    outline: none;
}

.sba3-search input::placeholder { color: var(--sba3-muted); }

.sba3-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--sba3-muted);
}

/* =========================================================
   Filter bar
   ========================================================= */
.sba3-filter-bar {
    margin: 0 12px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.sba3-filter-bar::-webkit-scrollbar { display: none; }

.sba3-filter-bar button {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--sba3-line);
    background: var(--sba3-ink-3);
    color: var(--sba3-cream);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.sba3-filter-bar button.sba3-filter-active {
    background: var(--sba3-gold);
    color: #2a1d05;
    border-color: var(--sba3-gold);
}

/* =========================================================
   Section heading
   ========================================================= */
.sba3-section {
    margin: 18px 12px 6px;
}

.sba3-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sba3-section-head .sba3-bar {
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--sba3-gold), var(--sba3-gold-2));
}

.sba3-section-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--sba3-cream);
    flex: 1 1 auto;
}

.sba3-section-head .sba3-more {
    font-size: 12px;
    color: var(--sba3-gold);
    font-weight: 700;
}

/* =========================================================
   Game grid
   ========================================================= */
.sba3-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

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

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

.sba3-game {
    background: var(--sba3-ink-3);
    border: 1px solid var(--sba3-line);
    border-radius: var(--sba3-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: block;
    text-align: left;
}

.sba3-game:hover,
.sba3-game:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
    border-color: rgba(245, 185, 66, 0.5);
}

.sba3-game-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #0e1822;
}

.sba3-game-name {
    font-size: 11px;
    color: var(--sba3-cream);
    font-weight: 600;
    line-height: 1.25;
    padding: 5px 6px 7px;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* =========================================================
   Info / SEO blocks
   ========================================================= */
.sba3-card {
    background: var(--sba3-ink-3);
    border: 1px solid var(--sba3-line);
    border-radius: var(--sba3-radius);
    padding: 14px;
    margin: 10px 12px;
}

.sba3-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--sba3-gold);
    font-weight: 700;
}

.sba3-card p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--sba3-cream);
}

.sba3-card ul {
    margin: 0 0 8px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.7;
}

.sba3-card li { margin-bottom: 4px; }

.sba3-card a {
    color: var(--sba3-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sba3-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 10px 12px;
}

.sba3-feature {
    background: linear-gradient(160deg, #2f4658 0%, #21303f 100%);
    border: 1px solid var(--sba3-line);
    border-radius: var(--sba3-radius);
    padding: 14px 12px;
}

.sba3-feature .sba3-fic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(245, 185, 66, 0.15);
    color: var(--sba3-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.sba3-feature .sba3-fic svg { width: 20px; height: 20px; }

.sba3-feature h3 {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--sba3-cream);
    font-weight: 700;
}

.sba3-feature p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--sba3-muted);
}

/* Inline link list (achievements / faq quick links) */
.sba3-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.sba3-link-list a {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(253, 245, 230, 0.08);
    border: 1px solid var(--sba3-line);
    color: var(--sba3-cream);
    font-size: 12px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.sba3-link-list a:hover { background: rgba(245, 185, 66, 0.16); color: var(--sba3-gold); }

/* =========================================================
   Extended footer (horizontal promo shortcuts)
   ========================================================= */
.sba3-ext-foot {
    margin: 20px 12px 6px;
    padding: 16px 14px;
    background: linear-gradient(180deg, #243645 0%, #1a2836 100%);
    border: 1px solid var(--sba3-line);
    border-radius: var(--sba3-radius);
}

.sba3-ext-foot h2 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--sba3-gold);
    font-weight: 800;
}

.sba3-ext-foot p {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--sba3-cream);
}

.sba3-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sba3-shortcuts a {
    background: rgba(253, 245, 230, 0.06);
    border: 1px solid var(--sba3-line);
    border-radius: var(--sba3-radius-sm);
    padding: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sba3-cream);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.sba3-shortcuts a:hover { background: rgba(245, 185, 66, 0.14); transform: translateY(-1px); }

.sba3-shortcuts a svg { width: 16px; height: 16px; color: var(--sba3-gold); flex: 0 0 auto; }

.sba3-promo-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.sba3-promo-row button {
    height: 42px;
    border-radius: var(--sba3-radius-sm);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sba3-promo-row button.sba3-promo-gold {
    background: linear-gradient(135deg, var(--sba3-gold) 0%, var(--sba3-gold-2) 100%);
    color: #2a1d05;
}

.sba3-promo-row button.sba3-promo-green {
    background: linear-gradient(135deg, var(--sba3-green) 0%, #1ea35c 100%);
    color: #042414;
}

.sba3-disclaimer {
    margin-top: 12px;
    font-size: 11px;
    color: var(--sba3-muted);
    line-height: 1.55;
}

/* =========================================================
   Footer (copyright)
   ========================================================= */
.sba3-footer {
    padding: 14px 12px calc(var(--sba3-bottom-h) + 18px);
    text-align: center;
    color: var(--sba3-muted);
    font-size: 11.5px;
    line-height: 1.7;
}

.sba3-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-bottom: 8px;
}

.sba3-footer-links a { color: var(--sba3-muted); font-size: 11.5px; }
.sba3-footer-links a:hover { color: var(--sba3-gold); }

/* =========================================================
   Bottom navigation - brand-strong footer belt
   ========================================================= */
.sba3-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    max-width: var(--sba3-maxw);
    margin: 0 auto;
    height: var(--sba3-bottom-h);
    background: linear-gradient(180deg, #21303f 0%, #182632 100%);
    border-top: 1px solid var(--sba3-line);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 0 4px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.32);
}

.sba3-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 100%;
    color: var(--sba3-muted);
    font-size: 10px;
    font-weight: 600;
    position: relative;
    transition: color 0.18s ease;
}

.sba3-bottom-nav a svg { width: 22px; height: 22px; transition: transform 0.18s ease; }

.sba3-bottom-nav a:active svg { transform: translateY(-2px) scale(1.05); }

.sba3-bottom-nav a.sba3-nav-current {
    color: var(--sba3-gold);
}

.sba3-bottom-nav a.sba3-nav-current::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--sba3-gold);
}

.sba3-bottom-nav a.sba3-nav-promo {
    color: var(--sba3-cream);
}

.sba3-bottom-nav a.sba3-nav-promo svg { color: var(--sba3-gold); }

/* =========================================================
   Back-to-top
   ========================================================= */
#sba3-to-top {
    position: fixed;
    right: 14px;
    bottom: calc(var(--sba3-bottom-h) + 14px);
    z-index: 55;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--sba3-gold);
    color: #2a1d05;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sba3-shadow);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#sba3-to-top.sba3-to-top-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#sba3-to-top svg { width: 20px; height: 20px; }

/* =========================================================
   Utility
   ========================================================= */
.sba3-lead {
    font-size: 13px;
    line-height: 1.7;
    color: var(--sba3-cream);
    margin: 0 12px 10px;
}

.sba3-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(245, 185, 66, 0.15);
    color: var(--sba3-gold);
    margin-bottom: 4px;
}

@media (min-width: 430px) {
    .sba3-hero-slide { height: 188px; }
}
