/**
 * ck44 in sap - Layout Stylesheet
 * All classes use s2d2- prefix for namespace isolation
 * Color palette: #FFB347 (amber) | #FFCCCB (blush) | #2C3E50 (dark navy)
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
    --s2d2-primary: #FFB347;
    --s2d2-secondary: #FFCCCB;
    --s2d2-bg: #2C3E50;
    --s2d2-bg-light: #34495E;
    --s2d2-bg-dark: #1A252F;
    --s2d2-text: #FFFFFF;
    --s2d2-text-muted: #BDC3C7;
    --s2d2-accent: #FFB347;
    --s2d2-accent-hover: #FFC266;
    --s2d2-danger: #E74C3C;
    --s2d2-success: #2ECC71;
    --s2d2-border: rgba(255,179,71,0.2);
    --s2d2-shadow: 0 2px 12px rgba(0,0,0,0.3);
    --s2d2-radius: 8px;
    --s2d2-radius-lg: 16px;
    --s2d2-header-h: 56px;
    --s2d2-bnav-h: 60px;
    --s2d2-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--s2d2-font);
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--s2d2-text);
    background: var(--s2d2-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--s2d2-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.s2d2-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.s2d2-wrapper { padding: 0 1.2rem; }

/* Header */
.s2d2-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--s2d2-header-h);
    background: linear-gradient(135deg, var(--s2d2-bg-dark), var(--s2d2-bg));
    border-bottom: 1px solid var(--s2d2-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.2rem;
    backdrop-filter: blur(10px);
}
.s2d2-header-left { display: flex; align-items: center; gap: 0.8rem; }
.s2d2-logo { width: 28px; height: 28px; border-radius: 6px; }
.s2d2-site-name {
    font-size: 1.6rem; font-weight: 700; color: var(--s2d2-primary);
    white-space: nowrap; letter-spacing: 0.3px;
}
.s2d2-header-right { display: flex; align-items: center; gap: 0.6rem; }
.s2d2-btn-register {
    background: var(--s2d2-primary); color: var(--s2d2-bg-dark);
    padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 1.2rem;
    font-weight: 700; border: none; cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    min-height: 32px;
}
.s2d2-btn-register:hover { background: var(--s2d2-accent-hover); transform: scale(1.05); }
.s2d2-btn-login {
    background: transparent; color: var(--s2d2-primary);
    padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 1.2rem;
    font-weight: 600; border: 1.5px solid var(--s2d2-primary); cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    min-height: 32px;
}
.s2d2-btn-login:hover { background: rgba(255,179,71,0.1); transform: scale(1.05); }
.s2d2-menu-toggle {
    background: none; border: none; color: var(--s2d2-primary);
    font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
    display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.s2d2-menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 9998;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.s2d2-overlay-active { opacity: 1; visibility: visible; }
.s2d2-mobile-menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
    background: var(--s2d2-bg-dark); z-index: 9999;
    transition: right 0.3s ease; overflow-y: auto; padding: 2rem 1.6rem;
}
.s2d2-menu-active { right: 0; }
.s2d2-menu-close {
    background: none; border: none; color: var(--s2d2-text);
    font-size: 2.4rem; cursor: pointer; position: absolute;
    top: 1rem; right: 1.2rem;
}
.s2d2-menu-title {
    font-size: 1.8rem; font-weight: 700; color: var(--s2d2-primary);
    margin-bottom: 2rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--s2d2-border);
}
.s2d2-menu-link {
    display: block; padding: 1rem 0; color: var(--s2d2-text-muted);
    font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.2s, padding-left 0.2s;
}
.s2d2-menu-link:hover { color: var(--s2d2-primary); padding-left: 0.8rem; }

/* Main Content */
.s2d2-main { padding-top: var(--s2d2-header-h); padding-bottom: 2rem; }
@media (max-width: 768px) {
    .s2d2-main { padding-bottom: calc(var(--s2d2-bnav-h) + 2rem); }
}

/* Carousel */
.s2d2-carousel {
    position: relative; width: 100%; aspect-ratio: 16/8;
    overflow: hidden; margin-top: 0.8rem; border-radius: var(--s2d2-radius-lg);
}
.s2d2-slide {
    display: none; width: 100%; height: 100%; cursor: pointer;
}
.s2d2-slide img { width: 100%; height: 100%; object-fit: cover; }
.s2d2-slide:first-child { display: block; }
.s2d2-dots {
    position: absolute; bottom: 8px; left: 50%;
    transform: translateX(-50%); display: flex; gap: 6px; z-index: 2;
}
.s2d2-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.s2d2-dot-active { background: var(--s2d2-primary); transform: scale(1.3); }

/* Section Titles */
.s2d2-section-title {
    font-size: 1.8rem; font-weight: 700; color: var(--s2d2-primary);
    margin: 2rem 0 1.2rem; padding-left: 1rem;
    border-left: 3px solid var(--s2d2-primary);
    line-height: 1.3;
}
.s2d2-section-title span { color: var(--s2d2-text); }

/* Game Grid */
.s2d2-game-section { margin: 1.5rem 0; }
.s2d2-cat-label {
    font-size: 1.5rem; font-weight: 700; color: var(--s2d2-secondary);
    margin: 1.6rem 0 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.s2d2-game-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.s2d2-game-card {
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; transition: transform 0.2s;
    text-align: center;
}
.s2d2-game-card:hover { transform: translateY(-2px); }
.s2d2-game-img {
    width: 100%; aspect-ratio: 1; border-radius: var(--s2d2-radius);
    object-fit: cover; border: 1.5px solid var(--s2d2-border);
    background: var(--s2d2-bg-light);
}
.s2d2-game-name {
    font-size: 1.1rem; color: var(--s2d2-text-muted);
    margin-top: 0.4rem; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 100%;
}

/* Content Blocks */
.s2d2-content-block {
    background: var(--s2d2-bg-light); border-radius: var(--s2d2-radius-lg);
    padding: 1.6rem; margin: 1.5rem 0;
    border: 1px solid var(--s2d2-border);
}
.s2d2-content-block h2 {
    font-size: 1.6rem; color: var(--s2d2-primary);
    margin-bottom: 1rem; font-weight: 700;
}
.s2d2-content-block h3 {
    font-size: 1.4rem; color: var(--s2d2-secondary);
    margin: 1rem 0 0.6rem; font-weight: 600;
}
.s2d2-content-block p {
    color: var(--s2d2-text-muted); line-height: 1.6; margin-bottom: 0.8rem;
    font-size: 1.3rem;
}
.s2d2-content-block ul { padding-left: 1.4rem; margin-bottom: 0.8rem; }
.s2d2-content-block li {
    color: var(--s2d2-text-muted); margin-bottom: 0.4rem;
    font-size: 1.3rem; line-height: 1.5; list-style: disc;
}

/* Promo Buttons */
.s2d2-promo-btn {
    display: inline-block; background: linear-gradient(135deg, var(--s2d2-primary), #FF9500);
    color: var(--s2d2-bg-dark); padding: 0.8rem 2rem;
    border-radius: 25px; font-weight: 700; font-size: 1.4rem;
    cursor: pointer; border: none; text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255,179,71,0.3);
}
.s2d2-promo-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255,179,71,0.4); }
.s2d2-promo-text {
    color: var(--s2d2-primary); font-weight: 700; cursor: pointer;
    border-bottom: 1px dashed var(--s2d2-primary);
    transition: color 0.2s;
}
.s2d2-promo-text:hover { color: var(--s2d2-accent-hover); }

/* Footer */
.s2d2-footer {
    background: var(--s2d2-bg-dark); padding: 2.5rem 1.2rem 1.5rem;
    border-top: 1px solid var(--s2d2-border); margin-top: 2rem;
}
.s2d2-footer-brand {
    color: var(--s2d2-text-muted); font-size: 1.2rem;
    line-height: 1.6; margin-bottom: 1.5rem;
}
.s2d2-footer-links {
    display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem;
    justify-content: center;
}
.s2d2-footer-link {
    background: var(--s2d2-bg-light); color: var(--s2d2-primary);
    padding: 0.5rem 1rem; border-radius: 15px; font-size: 1.1rem;
    transition: background 0.2s;
}
.s2d2-footer-link:hover { background: rgba(255,179,71,0.15); }
.s2d2-footer-copy {
    text-align: center; color: var(--s2d2-text-muted);
    font-size: 1.1rem; opacity: 0.7; margin-top: 1rem;
}

/* Bottom Navigation */
.s2d2-bnav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    height: var(--s2d2-bnav-h);
    background: linear-gradient(180deg, var(--s2d2-bg-dark), #111820);
    border-top: 1px solid var(--s2d2-border);
    display: flex; justify-content: space-around; align-items: center;
    padding: 0 0.4rem;
}
.s2d2-bnav-btn {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-width: 58px; min-height: 50px;
    background: none; border: none; color: var(--s2d2-text-muted);
    cursor: pointer; transition: color 0.2s, transform 0.2s;
    padding: 0.4rem; gap: 0.2rem;
}
.s2d2-bnav-btn:active { transform: scale(0.9); }
.s2d2-bnav-btn .s2d2-bnav-icon { font-size: 2.2rem; line-height: 1; }
.s2d2-bnav-btn .s2d2-bnav-label { font-size: 1rem; line-height: 1.2; }
.s2d2-bnav-active { color: var(--s2d2-primary) !important; }
.s2d2-bnav-btn:hover { color: var(--s2d2-primary); }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .s2d2-bnav { display: none; }
}

/* Utility */
.s2d2-text-center { text-align: center; }
.s2d2-mt-1 { margin-top: 0.8rem; }
.s2d2-mt-2 { margin-top: 1.6rem; }
.s2d2-mb-1 { margin-bottom: 0.8rem; }
.s2d2-mb-2 { margin-bottom: 1.6rem; }
.s2d2-hidden { display: none; }
.s2d2-promo-center { text-align: center; margin: 1.5rem 0; }

/* Testimonial Card */
.s2d2-testimonial {
    background: var(--s2d2-bg-light); border-radius: var(--s2d2-radius);
    padding: 1.2rem; margin-bottom: 1rem;
    border-left: 3px solid var(--s2d2-primary);
}
.s2d2-testimonial-name {
    font-size: 1.2rem; color: var(--s2d2-primary); font-weight: 700;
}
.s2d2-testimonial-text {
    font-size: 1.2rem; color: var(--s2d2-text-muted); margin-top: 0.4rem;
    line-height: 1.5;
}

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

/* Winner Strip */
.s2d2-winner-strip {
    display: flex; align-items: center; gap: 0.8rem;
    background: var(--s2d2-bg-light); padding: 0.8rem 1.2rem;
    border-radius: var(--s2d2-radius); margin-bottom: 0.6rem;
}
.s2d2-winner-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--s2d2-primary); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--s2d2-bg-dark); font-weight: 700;
}
.s2d2-winner-info { flex: 1; }
.s2d2-winner-name { font-size: 1.2rem; color: var(--s2d2-text); font-weight: 600; }
.s2d2-winner-amount { font-size: 1.2rem; color: var(--s2d2-success); font-weight: 700; }

/* FAQ Accordion */
.s2d2-faq-item {
    border: 1px solid var(--s2d2-border); border-radius: var(--s2d2-radius);
    margin-bottom: 0.8rem; overflow: hidden;
}
.s2d2-faq-q {
    padding: 1rem 1.2rem; font-weight: 600; color: var(--s2d2-text);
    font-size: 1.3rem; background: var(--s2d2-bg-light);
}
.s2d2-faq-a {
    padding: 0.8rem 1.2rem; color: var(--s2d2-text-muted);
    font-size: 1.2rem; line-height: 1.5; background: var(--s2d2-bg);
}

/* Responsive adjustments */
@media (min-width: 431px) {
    body { background: #111820; }
    .s2d2-container { box-shadow: 0 0 30px rgba(0,0,0,0.5); min-height: 100vh; background: var(--s2d2-bg); }
    .s2d2-header { max-width: 430px; left: 50%; transform: translateX(-50%); }
    .s2d2-bnav { max-width: 430px; left: 50%; transform: translateX(-50%); }
}
