/* ============================================================
   mobile bet365 - Core Base Stylesheet (design.css)
   Prefix: s101-
   Palette: #3C3C3C | #95A5A6 | #F5F5F5 | #262626 | #FF8000 | #006400
   Mobile-first (max 430px). All English comments.
   ============================================================ */

:root {
    --s101-bg:        #262626;
    --s101-bg-2:      #3C3C3C;
    --s101-surface:   #2f2f2f;
    --s101-text:      #F5F5F5;
    --s101-muted:     #95A5A6;
    --s101-accent:    #FF8000;
    --s101-accent-2:  #006400;
    --s101-line:      rgba(245,245,245,0.10);
    --s101-shadow:    0 6px 24px rgba(0,0,0,0.45);
    --s101-radius:    14px;
    --s101-radius-sm: 10px;
    --s101-pad:       16px;
    --s101-max:       430px;
    --s101-header-h:  58px;
    --s101-nav-h:     62px;
}

* { box-sizing: border-box; }

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

html, body {
    margin: 0;
    padding: 0;
    background: var(--s101-bg);
    color: var(--s101-text);
    font-family: "Helvetica Neue", "Segoe UI", Roboto, system-ui, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--s101-accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: #ffae5e; }

/* Page shell - centers mobile viewport */
.s101-shell {
    max-width: var(--s101-max);
    margin: 0 auto;
    background: var(--s101-bg);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* ============================= HEADER ============================= */
.s101-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--s101-header-h);
    background: linear-gradient(180deg, #3C3C3C 0%, #262626 100%);
    border-bottom: 2px solid var(--s101-accent);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
}
.s101-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.s101-logo {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--s101-accent);
    color: #262626;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
    flex-shrink: 0;
}
.s101-brand-text {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.s101-brand-text small {
    display: block;
    font-size: 10px;
    color: var(--s101-muted);
    font-weight: 500;
    letter-spacing: 0.2px;
}
.s101-header-actions { display: flex; gap: 8px; }
.s101-btn {
    border: 0;
    border-radius: 22px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease;
    line-height: 1;
}
.s101-btn:active { transform: scale(0.94); }
.s101-btn-login {
    background: transparent;
    color: var(--s101-text);
    border: 1.5px solid var(--s101-muted);
}
.s101-btn-register {
    background: var(--s101-accent);
    color: #262626;
    box-shadow: 0 3px 10px rgba(255,128,0,0.35);
}
.s101-btn-register:hover { filter: brightness(1.08); color: #262626; }

/* Top menu toggle (mobile) */
.s101-menu-btn {
    background: transparent;
    border: 0;
    color: var(--s101-text);
    font-size: 22px;
    width: 40px; height: 40px;
    border-radius: 8px;
    cursor: pointer;
}

/* ============================= SLIDE MENU ============================= */
.s101-menu {
    position: fixed;
    top: 0; right: 0;
    width: 82%; max-width: 320px;
    height: 100%;
    background: #2b2b2b;
    z-index: 9999;
    transform: translateX(105%);
    transition: transform .25s ease;
    padding: 18px 16px;
    overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0,0,0,0.5);
}
.s101-menu.open { transform: translateX(0); }
.s101-menu-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9998;
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
}
.s101-menu-backdrop.open { opacity: 1; pointer-events: auto; }
.s101-menu-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.s101-menu-title { font-size: 18px; font-weight: 800; color: var(--s101-accent); }
.s101-menu-close {
    background: transparent; border: 0; color: var(--s101-text);
    font-size: 22px; cursor: pointer;
}
.s101-menu-section { margin-bottom: 18px; }
.s101-menu-section h4 {
    font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
    color: var(--s101-muted); margin: 0 0 8px;
}
.s101-menu-list { list-style: none; margin: 0; padding: 0; }
.s101-menu-list li { margin-bottom: 6px; }
.s101-menu-list a {
    display: block;
    padding: 10px 12px;
    background: var(--s101-surface);
    border-radius: 8px;
    color: var(--s101-text);
    font-size: 14px;
    border-left: 3px solid transparent;
}
.s101-menu-list a:hover {
    border-left-color: var(--s101-accent);
    color: var(--s101-accent);
}
.s101-menu-cta {
    display: flex; gap: 8px; margin-top: 14px;
}
.s101-menu-cta .s101-btn { flex: 1; padding: 11px; }

/* ============================= HERO ============================= */
.s101-hero {
    position: relative;
    padding: 22px 16px 26px;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,128,0,0.18), transparent 55%),
        radial-gradient(circle at 90% 80%, rgba(0,100,0,0.25), transparent 55%),
        linear-gradient(180deg, #3C3C3C, #262626);
    border-bottom: 1px solid var(--s101-line);
}
.s101-hero-badge {
    display: inline-block;
    background: rgba(255,128,0,0.15);
    color: var(--s101-accent);
    border: 1px solid rgba(255,128,0,0.4);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.s101-hero h1 {
    font-size: 26px;
    line-height: 1.18;
    margin: 0 0 8px;
    font-weight: 800;
}
.s101-hero h1 .accent { color: var(--s101-accent); }
.s101-hero p {
    font-size: 14px;
    color: var(--s101-muted);
    margin: 0 0 16px;
}
.s101-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.s101-hero-cta .s101-btn { padding: 12px 18px; font-size: 14px; }
.s101-btn-primary {
    background: var(--s101-accent); color: #262626;
}
.s101-btn-ghost {
    background: transparent; color: var(--s101-text);
    border: 1.5px solid var(--s101-muted);
}
.s101-hero-stats {
    display: flex; gap: 8px; margin-top: 18px;
    flex-wrap: wrap;
}
.s101-stat {
    flex: 1; min-width: 90px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--s101-line);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.s101-stat-num {
    font-size: 18px; font-weight: 800; color: var(--s101-accent);
    line-height: 1;
}
.s101-stat-label {
    font-size: 11px; color: var(--s101-muted);
    margin-top: 4px;
}

/* ============================= CAROUSEL ============================= */
.s101-carousel {
    margin: 18px 0;
    padding: 0 16px;
}
.s101-carousel-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.s101-carousel-track::-webkit-scrollbar { display: none; }
.s101-slide {
    flex: 0 0 88%;
    scroll-snap-align: center;
    background: linear-gradient(135deg, #3C3C3C, #1f1f1f);
    border: 1px solid var(--s101-line);
    border-radius: var(--s101-radius);
    padding: 16px;
    position: relative;
    overflow: hidden;
}
.s101-slide-tag {
    position: absolute; top: 10px; right: 10px;
    background: var(--s101-accent-2);
    color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: 20px;
}
.s101-slide h3 {
    margin: 0 0 6px; font-size: 17px; font-weight: 800;
}
.s101-slide p {
    margin: 0 0 12px; font-size: 13px; color: var(--s101-muted);
}
.s101-slide .s101-btn { padding: 9px 14px; font-size: 13px; }
.s101-dots {
    display: flex; gap: 6px; justify-content: center;
    margin-top: 10px;
}
.s101-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--s101-muted); opacity: 0.4;
    cursor: pointer;
}
.s101-dot.active { background: var(--s101-accent); opacity: 1; width: 22px; border-radius: 4px; }

/* ============================= SECTION ============================= */
.s101-section {
    padding: 20px 16px 8px;
}
.s101-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.s101-section-title {
    font-size: 18px; font-weight: 800;
    display: flex; align-items: center; gap: 8px;
    margin: 0;
}
.s101-section-title i { color: var(--s101-accent); }
.s101-section-more {
    font-size: 12px; color: var(--s101-accent); font-weight: 600;
}

/* ============================= GAME GRID ============================= */
.s101-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.s101-card {
    background: var(--s101-surface);
    border: 1px solid var(--s101-line);
    border-radius: var(--s101-radius-sm);
    overflow: hidden;
    position: relative;
    transition: transform .15s ease, border-color .15s ease;
}
.s101-card:active { transform: scale(0.96); }
.s101-card:hover { border-color: var(--s101-accent); }
.s101-card-img {
    aspect-ratio: 1 / 1;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}
.s101-card-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.s101-card-tag {
    position: absolute; top: 6px; left: 6px;
    background: rgba(0,0,0,0.7);
    color: var(--s101-accent);
    font-size: 9px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
    text-transform: uppercase;
}
.s101-card-body {
    padding: 8px;
}
.s101-card-title {
    font-size: 12px; font-weight: 600;
    color: var(--s101-text);
    margin: 0 0 6px;
    line-height: 1.25;
    min-height: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.s101-card-play {
    display: block;
    text-align: center;
    background: var(--s101-accent);
    color: #262626;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 0;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.s101-card-play:hover { color: #262626; filter: brightness(1.08); }

/* ============================= FEATURED ============================= */
.s101-featured {
    background: linear-gradient(135deg, #3C3C3C, #262626);
    border: 1px solid var(--s101-accent);
    border-radius: var(--s101-radius);
    padding: 16px;
    margin: 18px 16px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
    align-items: center;
}
.s101-featured-img {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #1a1a1a;
}
.s101-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.s101-featured-body h3 {
    margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--s101-accent);
}
.s101-featured-body p {
    margin: 0 0 10px; font-size: 12px; color: var(--s101-muted);
}
.s101-featured-body .s101-btn { padding: 8px 14px; font-size: 12px; }

/* ============================= LONG-FORM SEO ============================= */
.s101-content {
    padding: 16px 16px 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #dcdcdc;
}
.s101-content h2 {
    font-size: 20px; color: var(--s101-text);
    margin: 18px 0 8px; font-weight: 800;
    border-left: 4px solid var(--s101-accent);
    padding-left: 10px;
}
.s101-content h3 {
    font-size: 16px; color: var(--s101-accent);
    margin: 14px 0 6px; font-weight: 700;
}
.s101-content p { margin: 0 0 10px; }
.s101-content ul { padding-left: 20px; margin: 0 0 12px; }
.s101-content li { margin-bottom: 5px; }
.s101-content a { color: var(--s101-accent); font-weight: 600; }
.s101-content strong { color: var(--s101-text); }

/* Steps list */
.s101-steps {
    list-style: none; counter-reset: step;
    padding: 0; margin: 12px 0;
}
.s101-steps li {
    counter-increment: step;
    padding: 10px 12px 10px 42px;
    background: var(--s101-surface);
    border-radius: 10px;
    margin-bottom: 8px;
    position: relative;
    font-size: 13px;
}
.s101-steps li::before {
    content: counter(step);
    position: absolute; left: 10px; top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    background: var(--s101-accent);
    color: #262626;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px;
}
.s101-steps li strong { color: var(--s101-text); }

/* ============================= FAQ ============================= */
.s101-faq-item {
    background: var(--s101-surface);
    border: 1px solid var(--s101-line);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}
.s101-faq-q {
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--s101-text);
    text-align: left;
    padding: 14px 14px 14px 36px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    line-height: 1.4;
}
.s101-faq-q::before {
    content: "+";
    position: absolute; left: 12px; top: 12px;
    color: var(--s101-accent);
    font-size: 20px; font-weight: 700;
}
.s101-faq-item.open .s101-faq-q::before { content: "-"; }
.s101-faq-a {
    padding: 0 14px 14px 36px;
    font-size: 13px;
    color: var(--s101-muted);
    display: none;
    line-height: 1.6;
}
.s101-faq-item.open .s101-faq-a { display: block; }

/* ============================= CTA BANNER ============================= */
.s101-banner {
    margin: 18px 16px;
    padding: 20px;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,128,0,0.35), transparent 60%),
        linear-gradient(135deg, #006400, #262626);
    border-radius: var(--s101-radius);
    text-align: center;
    border: 1px solid var(--s101-line);
}
.s101-banner h3 {
    margin: 0 0 6px;
    color: #fff; font-size: 19px; font-weight: 800;
}
.s101-banner p { margin: 0 0 14px; color: #e0e0e0; font-size: 13px; }
.s101-banner .s101-btn { padding: 12px 22px; font-size: 14px; }

/* ============================= FOOTER ============================= */
.s101-footer {
    background: #1f1f1f;
    border-top: 2px solid var(--s101-accent);
    padding: 22px 16px 18px;
    color: var(--s101-muted);
    font-size: 13px;
}
.s101-footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
.s101-footer-col h4 {
    color: var(--s101-text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 10px;
}
.s101-footer-col ul {
    list-style: none; margin: 0; padding: 0;
}
.s101-footer-col li { margin-bottom: 6px; }
.s101-footer-col a { color: var(--s101-muted); font-size: 12px; }
.s101-footer-col a:hover { color: var(--s101-accent); }
.s101-footer-bottom {
    border-top: 1px solid var(--s101-line);
    padding-top: 12px;
    text-align: center;
    font-size: 11px;
    color: #6f6f6f;
}
.s101-footer-bottom p { margin: 4px 0; }
.s101-disclaimer {
    background: rgba(255,128,0,0.08);
    border: 1px dashed rgba(255,128,0,0.3);
    border-radius: 8px;
    padding: 10px;
    margin: 12px 0;
    font-size: 11px;
    color: #b0b0b0;
    line-height: 1.5;
}

/* ============================= BACK TO TOP ============================= */
.s101-totop {
    position: fixed;
    right: 14px;
    bottom: 76px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--s101-accent);
    color: #262626;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--s101-shadow);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
}
.s101-totop.show { opacity: 1; pointer-events: auto; }

/* ============================= BOTTOM NAV ============================= */
.s101-bottomnav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--s101-nav-h);
    background: linear-gradient(0deg, #1f1f1f, #2f2f2f);
    border-top: 2px solid var(--s101-accent);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.s101-bottomnav a, .s101-bottomnav button {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--s101-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 2px;
    min-width: 60px;
    min-height: 60px;
    transition: color .15s ease;
    position: relative;
}
.s101-bottomnav a i,
.s101-bottomnav button i { font-size: 22px; }
.s101-bottomnav a.active,
.s101-bottomnav a:hover,
.s101-bottomnav button.active,
.s101-bottomnav button:hover {
    color: var(--s101-accent);
}
.s101-bottomnav a.active::before,
.s101-bottomnav button.active::before {
    content: "";
    position: absolute; top: 0;
    width: 28px; height: 3px;
    background: var(--s101-accent);
    border-radius: 0 0 4px 4px;
}
.s101-bottomnav .s101-nav-center {
    position: relative;
}
.s101-bottomnav .s101-nav-center i {
    background: var(--s101-accent);
    color: #262626;
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-top: -16px;
    box-shadow: 0 4px 12px rgba(255,128,0,0.5);
    border: 3px solid #1f1f1f;
}

/* ============================= RESPONSIVE ============================= */
@media (min-width: 431px) {
    body { background: #1a1a1a; }
}

/* Desktop: hide bottom nav, widen shell */
@media (min-width: 769px) {
    .s101-bottomnav { display: none; }
    .s101-totop { bottom: 24px; }
    .s101-shell {
        max-width: 960px;
        box-shadow: 0 0 60px rgba(0,0,0,0.6);
    }
    .s101-game-grid { grid-template-columns: repeat(5, 1fr); }
    .s101-featured { grid-template-columns: 1fr 2fr; }
    .s101-footer-cols { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile bottom padding so content isn't covered by nav */
@media (max-width: 768px) {
    .s101-footer { padding-bottom: calc(18px + var(--s101-nav-h) + env(safe-area-inset-bottom, 0)); }
    main { padding-bottom: 80px; }
}
