/*
 * JL555 Theme Stylesheet
 * All classes use s226- prefix for namespace isolation
 * Color palette: #EEEEEE | #1C2833 | #ECF0F1 | #DCDCDC | #3C3C3C | #E9967A
 * Mobile-first design, max-width 430px
 */

:root {
    --s226-primary: #E9967A;
    --s226-primary-dark: #d4816a;
    --s226-primary-light: #f0b09e;
    --s226-bg: #1C2833;
    --s226-bg-dark: #141e27;
    --s226-bg-card: #243342;
    --s226-bg-light: #2c3e50;
    --s226-text: #EEEEEE;
    --s226-text-muted: #DCDCDC;
    --s226-text-dim: #95a5a6;
    --s226-border: #3C3C3C;
    --s226-accent: #E9967A;
    --s226-accent2: #f39c12;
    --s226-white: #ECF0F1;
    --s226-success: #27ae60;
    --s226-radius: 8px;
    --s226-radius-lg: 12px;
    --s226-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --s226-transition: all 0.3s ease;
}

/* Base reset and typography */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--s226-bg);
    color: var(--s226-text);
    font-size: 1.5rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Container and wrapper */
.s226-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
    position: relative;
}
.s226-wrapper { width: 100%; padding: 1rem 0; }

/* Header */
.s226-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, var(--s226-bg-dark), var(--s226-bg));
    border-bottom: 1px solid var(--s226-border);
    backdrop-filter: blur(10px);
}
.s226-header-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    height: 52px;
}
.s226-logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.s226-logo-icon { width: 28px; height: 28px; border-radius: 6px; }
.s226-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s226-primary);
    letter-spacing: 0.5px;
}
.s226-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s226-btn-register {
    background: linear-gradient(135deg, var(--s226-primary), var(--s226-primary-dark));
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: var(--s226-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--s226-transition);
    min-height: 34px;
}
.s226-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(233, 150, 122, 0.4); }
.s226-btn-login {
    background: transparent;
    color: var(--s226-primary);
    border: 1px solid var(--s226-primary);
    padding: 0.5rem 1.2rem;
    border-radius: var(--s226-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--s226-transition);
    min-height: 34px;
}
.s226-btn-login:hover { background: rgba(233, 150, 122, 0.1); }
.s226-menu-btn {
    background: none;
    border: none;
    color: var(--s226-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    line-height: 1;
}

/* Mobile menu overlay */
.s226-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--s226-transition);
}
.s226-overlay-active { opacity: 1; visibility: visible; }

/* Mobile slide menu */
.s226-mobile-menu {
    position: fixed;
    top: 0; right: -280px;
    width: 280px;
    height: 100%;
    background: var(--s226-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
}
.s226-menu-active { right: 0; }
.s226-mobile-menu a {
    display: block;
    color: var(--s226-text);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid var(--s226-border);
    font-size: 1.5rem;
    transition: var(--s226-transition);
}
.s226-mobile-menu a:hover { color: var(--s226-primary); padding-left: 0.5rem; }
.s226-menu-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    color: var(--s226-text);
    font-size: 2.4rem;
    cursor: pointer;
    line-height: 1;
}

/* Carousel */
.s226-carousel { position: relative; overflow: hidden; margin-top: 52px; border-radius: 0; }
.s226-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}
.s226-slide img { width: 100%; height: auto; display: block; }
.s226-slide-active { display: block; }
.s226-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.s226-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: var(--s226-transition);
    padding: 0;
}
.s226-dot-active { background: var(--s226-primary); width: 20px; border-radius: 4px; }

/* Main content */
.s226-main { padding: 1rem 0; }
@media (max-width: 768px) {
    .s226-main { padding-bottom: 80px; }
}

/* Section headings */
.s226-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s226-text);
    margin: 1.5rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--s226-primary);
}
.s226-section-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s226-primary);
    margin: 1.2rem 0 0.8rem;
}

/* H1 title */
.s226-h1-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--s226-text);
    text-align: center;
    margin: 1.5rem 0;
    line-height: 1.3;
}

/* Game grid */
.s226-game-section { margin: 1.5rem 0; }
.s226-game-section-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--s226-primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.s226-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}
.s226-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--s226-transition);
    padding: 0.4rem;
    border-radius: var(--s226-radius);
}
.s226-game-item:hover { background: var(--s226-bg-card); transform: translateY(-2px); }
.s226-game-item img {
    width: 64px; height: 64px;
    border-radius: var(--s226-radius);
    object-fit: cover;
    margin-bottom: 0.3rem;
}
.s226-game-name {
    font-size: 1.1rem;
    color: var(--s226-text-muted);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 72px;
}

/* Content cards */
.s226-card {
    background: var(--s226-bg-card);
    border-radius: var(--s226-radius-lg);
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: var(--s226-shadow);
}
.s226-card-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--s226-primary);
    margin-bottom: 0.8rem;
}
.s226-card p {
    color: var(--s226-text-muted);
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 0.6rem;
}

/* Promo buttons */
.s226-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--s226-primary), var(--s226-primary-dark));
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: var(--s226-radius);
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--s226-transition);
    text-align: center;
}
.s226-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(233, 150, 122, 0.4); }

/* Promo text link */
.s226-promo-link {
    color: var(--s226-primary);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--s226-transition);
    border-bottom: 1px dashed var(--s226-primary);
}
.s226-promo-link:hover { color: var(--s226-primary-light); }

/* Footer */
.s226-footer {
    background: var(--s226-bg-dark);
    padding: 2rem 1.2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--s226-border);
}
.s226-footer-brand {
    font-size: 1.4rem;
    color: var(--s226-text-dim);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}
.s226-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.s226-footer-links a {
    color: var(--s226-text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: var(--s226-transition);
}
.s226-footer-links a:hover { color: var(--s226-primary); background: rgba(233, 150, 122, 0.1); }
.s226-footer-promos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.s226-footer-promos .s226-promo-btn { font-size: 1.2rem; padding: 0.5rem 1rem; }
.s226-footer-copyright {
    text-align: center;
    color: var(--s226-text-dim);
    font-size: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--s226-border);
}

/* Bottom navigation bar */
.s226-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, var(--s226-bg-dark), #0f151c);
    border-top: 1px solid var(--s226-border);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
}
.s226-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 52px;
    background: none;
    border: none;
    color: var(--s226-text-dim);
    cursor: pointer;
    transition: var(--s226-transition);
    text-decoration: none;
    border-radius: 8px;
    padding: 0.3rem;
}
.s226-bottom-nav-btn:hover, .s226-bottom-nav-btn.s226-nav-active {
    color: var(--s226-primary);
    background: rgba(233, 150, 122, 0.1);
}
.s226-bottom-nav-btn:active { transform: scale(0.92); }
.s226-bottom-nav-icon { font-size: 22px; margin-bottom: 2px; }
.s226-bottom-nav-label { font-size: 1rem; font-weight: 500; }
.s226-nav-active .s226-bottom-nav-label { color: var(--s226-primary); }

@media (min-width: 769px) {
    .s226-bottom-nav { display: none; }
}

/* Utility classes */
.s226-text-center { text-align: center; }
.s226-text-primary { color: var(--s226-primary); }
.s226-mt-1 { margin-top: 0.5rem; }
.s226-mt-2 { margin-top: 1rem; }
.s226-mb-1 { margin-bottom: 0.5rem; }
.s226-mb-2 { margin-bottom: 1rem; }
.s226-p-1 { padding: 0.5rem; }
.s226-p-2 { padding: 1rem; }
.s226-hidden { display: none; }
.s226-flex { display: flex; }
.s226-flex-center { display: flex; align-items: center; justify-content: center; }
.s226-gap-1 { gap: 0.5rem; }

/* FAQ section */
.s226-faq-item {
    background: var(--s226-bg-card);
    border-radius: var(--s226-radius);
    padding: 1rem 1.2rem;
    margin-bottom: 0.6rem;
}
.s226-faq-q {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--s226-primary);
    margin-bottom: 0.4rem;
}
.s226-faq-a {
    font-size: 1.3rem;
    color: var(--s226-text-muted);
    line-height: 1.6;
}

/* Feature list */
.s226-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}
.s226-feature-item {
    background: var(--s226-bg-card);
    border-radius: var(--s226-radius);
    padding: 1rem;
    text-align: center;
}
.s226-feature-icon { font-size: 2.4rem; margin-bottom: 0.4rem; color: var(--s226-primary); }
.s226-feature-label { font-size: 1.2rem; color: var(--s226-text-muted); font-weight: 600; }

/* Winner list */
.s226-winner-list { list-style: none; }
.s226-winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--s226-border);
    font-size: 1.3rem;
}
.s226-winner-name { color: var(--s226-text-muted); }
.s226-winner-amount { color: var(--s226-success); font-weight: 700; }
.s226-winner-game { color: var(--s226-primary); font-size: 1.2rem; }

/* Payment methods */
.s226-payment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 1rem 0;
}
.s226-payment-item {
    background: var(--s226-bg-card);
    border-radius: var(--s226-radius);
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
    color: var(--s226-text-muted);
}

/* Testimonial */
.s226-testimonial {
    background: var(--s226-bg-card);
    border-radius: var(--s226-radius-lg);
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--s226-primary);
}
.s226-testimonial-text {
    font-size: 1.3rem;
    color: var(--s226-text-muted);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 0.4rem;
}
.s226-testimonial-author {
    font-size: 1.2rem;
    color: var(--s226-primary);
    font-weight: 600;
}

/* Achievement bar */
.s226-achievement {
    background: var(--s226-bg-card);
    border-radius: var(--s226-radius);
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.s226-achievement-label { font-size: 1.3rem; color: var(--s226-text-muted); }
.s226-achievement-value { font-size: 1.3rem; color: var(--s226-primary); font-weight: 700; }

/* App download CTA */
.s226-cta-box {
    background: linear-gradient(135deg, var(--s226-bg-card), var(--s226-bg-light));
    border-radius: var(--s226-radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin: 1rem 0;
    border: 1px solid var(--s226-primary);
}

/* Internal link style */
.s226-internal-link {
    color: var(--s226-primary);
    text-decoration: underline;
    cursor: pointer;
}
.s226-internal-link:hover { color: var(--s226-primary-light); }

/* Responsive adjustments */
@media (max-width: 320px) {
    .s226-game-grid { grid-template-columns: repeat(3, 1fr); }
    .s226-feature-grid { grid-template-columns: 1fr; }
}
