/* ============================================================
   tableplus 2 - Base Stylesheet (mobile-first)
   Class prefix: s13c-
   Palette: #00FF7F | #00FF00 | #34495E | #8B4513 | #7CFC00
   ============================================================ */

:root {
    --s13c-bg: #34495E;
    --s13c-bg-deep: #2b3a4a;
    --s13c-bg-card: #3d5366;
    --s13c-accent: #00FF7F;
    --s13c-lime: #00FF00;
    --s13c-chart: #7CFC00;
    --s13c-brown: #8B4513;
    --s13c-text: #f3fff7;
    --s13c-muted: #b7c7d4;
    --s13c-border: rgba(0, 255, 127, 0.18);
    --s13c-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    --s13c-radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
    background: var(--s13c-bg);
    color: var(--s13c-text);
    line-height: 1.5;
    font-size: 1.5rem;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--s13c-accent); text-decoration: none; }

/* ============ Header ============ */
.s13c-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #2b3a4a 0%, #34495E 60%, #2b3a4a 100%);
    border-bottom: 2px solid var(--s13c-accent);
    padding: 1rem 1.2rem;
}
.s13c-header-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.s13c-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--s13c-accent);
    font-weight: 800;
    font-size: 1.9rem;
    letter-spacing: 0.3px;
}
.s13c-logo img { width: 36px; height: 36px; border-radius: 8px; }
.s13c-logo span b { color: var(--s13c-lime); }

.s13c-header-actions { display: flex; align-items: center; gap: 0.6rem; }

.s13c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0 1.2rem;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    color: #0a1f12;
}
.s13c-btn:active { transform: scale(0.96); }
.s13c-btn-login {
    background: transparent;
    border: 2px solid var(--s13c-accent);
    color: var(--s13c-accent);
}
.s13c-btn-register {
    background: linear-gradient(135deg, var(--s13c-lime), var(--s13c-accent));
    color: #0a1f12;
    box-shadow: 0 4px 12px rgba(0, 255, 127, 0.35);
}

.s13c-menu-toggle {
    background: transparent;
    border: none;
    color: var(--s13c-accent);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
}

/* ============ Mobile Slide Menu ============ */
.s13c-mobile-menu {
    position: fixed;
    top: 0; right: -85%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--s13c-bg-deep);
    z-index: 9999;
    padding: 2rem 1.6rem;
    overflow-y: auto;
    transition: right 0.3s ease;
    border-left: 2px solid var(--s13c-accent);
    box-shadow: -8px 0 24px rgba(0,0,0,0.5);
}
.s13c-mobile-menu.open { right: 0; }
.s13c-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}
.s13c-overlay.open { opacity: 1; visibility: visible; }
.s13c-menu-close {
    background: transparent;
    border: none;
    color: var(--s13c-accent);
    font-size: 2.4rem;
    float: right;
    cursor: pointer;
}
.s13c-menu-title {
    color: var(--s13c-lime);
    font-size: 1.8rem;
    font-weight: 800;
    margin: 1.5rem 0 1rem;
    border-bottom: 1px solid var(--s13c-border);
    padding-bottom: 0.6rem;
}
.s13c-mobile-menu ul { list-style: none; }
.s13c-mobile-menu li { margin: 0.5rem 0; }
.s13c-mobile-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 0.8rem;
    border-radius: 10px;
    color: var(--s13c-text);
    font-size: 1.45rem;
    font-weight: 600;
}
.s13c-mobile-menu a:hover, .s13c-mobile-menu a:active {
    background: rgba(0,255,127,0.12);
    color: var(--s13c-accent);
}
.s13c-mobile-menu a i { color: var(--s13c-lime); width: 22px; }

/* ============ Main / Layout ============ */
main {
    max-width: 430px;
    margin: 0 auto;
    padding: 1.2rem;
    padding-bottom: 90px;
}
.s13c-section { margin: 2.2rem 0; }
.s13c-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--s13c-border);
}
.s13c-section-head h2 {
    font-size: 1.7rem;
    color: var(--s13c-accent);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.s13c-section-head h2 i { color: var(--s13c-lime); }
.s13c-section-head .s13c-more {
    font-size: 1.25rem;
    color: var(--s13c-chart);
    font-weight: 600;
}

/* ============ Hero ============ */
.s13c-hero {
    position: relative;
    border-radius: var(--s13c-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #3d5366, #2b3a4a);
    box-shadow: var(--s13c-shadow);
    border: 1px solid var(--s13c-border);
    margin-bottom: 1.6rem;
}
.s13c-hero-slides { display: flex; transition: transform 0.45s ease; }
.s13c-hero-slide {
    min-width: 100%;
    padding: 2rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background-size: cover;
    background-position: center;
}
.s13c-hero-slide .s13c-tag {
    align-self: flex-start;
    background: var(--s13c-brown);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 1.15rem;
    font-weight: 700;
}
.s13c-hero-slide h1, .s13c-hero-slide h2 {
    color: var(--s13c-lime);
    font-size: 2.2rem;
    line-height: 1.2;
}
.s13c-hero-slide p {
    color: var(--s13c-text);
    font-size: 1.35rem;
    max-width: 92%;
}
.s13c-hero-slide .s13c-cta {
    margin-top: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--s13c-lime), var(--s13c-accent));
    color: #0a1f12;
    font-weight: 800;
    padding: 1rem 1.6rem;
    border-radius: 30px;
    align-self: flex-start;
    box-shadow: 0 6px 14px rgba(0,255,127,0.4);
    cursor: pointer;
    border: none;
    font-size: 1.35rem;
}
.s13c-hero-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.6rem 0 1rem;
}
.s13c-hero-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0,255,127,0.3);
    cursor: pointer;
}
.s13c-hero-dots button.active {
    background: var(--s13c-lime);
    width: 22px;
    border-radius: 6px;
}

/* ============ Marquee / Notice ============ */
.s13c-notice {
    background: rgba(0,255,127,0.08);
    border: 1px solid var(--s13c-border);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    overflow: hidden;
    font-size: 1.25rem;
}
.s13c-notice i { color: var(--s13c-lime); }
.s13c-notice span { color: var(--s13c-text); white-space: nowrap; }

/* ============ Filter Chips ============ */
.s13c-filters {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.4rem 0 1rem;
    -webkit-overflow-scrolling: touch;
}
.s13c-filters::-webkit-scrollbar { display: none; }
.s13c-chip {
    flex: 0 0 auto;
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    background: var(--s13c-bg-card);
    color: var(--s13c-text);
    font-size: 1.2rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}
.s13c-chip.active {
    background: var(--s13c-accent);
    color: #0a1f12;
    border-color: var(--s13c-lime);
}

/* ============ Game Grid ============ */
.s13c-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}
.s13c-game-card {
    background: var(--s13c-bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--s13c-border);
    position: relative;
    transition: transform 0.18s ease;
    cursor: pointer;
}
.s13c-game-card:active { transform: scale(0.96); }
.s13c-game-card .s13c-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #23323f;
}
.s13c-game-card .s13c-gname {
    padding: 0.5rem 0.6rem;
    font-size: 1.15rem;
    color: var(--s13c-text);
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.s13c-game-card .s13c-play {
    position: absolute;
    inset: 0;
    background: rgba(11, 25, 18, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.s13c-game-card:hover .s13c-play, .s13c-game-card:active .s13c-play { opacity: 1; }
.s13c-game-card .s13c-play i {
    font-size: 3rem;
    color: var(--s13c-lime);
}
.s13c-badge-hot {
    position: absolute;
    top: 6px; left: 6px;
    background: #ff3b3b;
    color: #fff;
    font-size: 1rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-weight: 800;
    z-index: 2;
}

/* ============ Featured Card (big) ============ */
.s13c-feature {
    display: flex;
    gap: 1rem;
    background: linear-gradient(135deg, #3d5366, #2b3a4a);
    border: 1px solid var(--s13c-border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}
.s13c-feature img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.s13c-feature h3 { color: var(--s13c-lime); font-size: 1.5rem; margin-bottom: 0.3rem; }
.s13c-feature p { color: var(--s13c-muted); font-size: 1.2rem; margin-bottom: 0.5rem; }
.s13c-feature a {
    color: var(--s13c-accent);
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ============ Promo / Bonus Cards ============ */
.s13c-promo-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}
.s13c-promo-card {
    background: linear-gradient(135deg, rgba(124,252,0,0.18), rgba(0,255,127,0.08));
    border: 1px solid var(--s13c-border);
    border-radius: 12px;
    padding: 1.1rem;
    text-align: center;
}
.s13c-promo-card i { font-size: 2.4rem; color: var(--s13c-lime); margin-bottom: 0.5rem; }
.s13c-promo-card h4 { color: var(--s13c-text); font-size: 1.3rem; margin-bottom: 0.3rem; }
.s13c-promo-card p { color: var(--s13c-muted); font-size: 1.1rem; }

/* ============ SEO Long Content ============ */
.s13c-content {
    background: var(--s13c-bg-deep);
    border: 1px solid var(--s13c-border);
    border-radius: var(--s13c-radius);
    padding: 1.6rem;
    color: var(--s13c-text);
    font-size: 1.4rem;
}
.s13c-content h2 {
    color: var(--s13c-accent);
    font-size: 1.8rem;
    margin: 1.4rem 0 0.6rem;
}
.s13c-content h2:first-child { margin-top: 0; }
.s13c-content h3 {
    color: var(--s13c-lime);
    font-size: 1.5rem;
    margin: 1rem 0 0.4rem;
}
.s13c-content p { margin-bottom: 0.8rem; color: var(--s13c-text); }
.s13c-content ul { margin: 0.4rem 0 0.9rem 1.6rem; }
.s13c-content li { margin-bottom: 0.4rem; }
.s13c-content a { color: var(--s13c-chart); font-weight: 600; }
.s13c-content strong { color: var(--s13c-lime); }

/* ============ FAQ ============ */
.s13c-faq-item {
    background: var(--s13c-bg-card);
    border: 1px solid var(--s13c-border);
    border-radius: 10px;
    margin-bottom: 0.7rem;
    overflow: hidden;
}
.s13c-faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1rem 1.2rem;
    color: var(--s13c-text);
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}
.s13c-faq-q i { color: var(--s13c-lime); transition: transform 0.2s ease; }
.s13c-faq-item.open .s13c-faq-q i { transform: rotate(45deg); }
.s13c-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.2rem;
    color: var(--s13c-muted);
    font-size: 1.3rem;
}
.s13c-faq-item.open .s13c-faq-a {
    max-height: 400px;
    padding-bottom: 1rem;
}

/* ============ Footer ============ */
.s13c-footer {
    background: var(--s13c-bg-deep);
    border-top: 2px solid var(--s13c-accent);
    padding: 2rem 1.4rem;
    color: var(--s13c-muted);
    margin-top: 2rem;
}
.s13c-footer-inner { max-width: 430px; margin: 0 auto; }
.s13c-footer h4 {
    color: var(--s13c-lime);
    font-size: 1.5rem;
    margin: 1.2rem 0 0.6rem;
}
.s13c-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
.s13c-footer-links a {
    color: var(--s13c-text);
    font-size: 1.25rem;
    padding: 0.4rem 0;
}
.s13c-footer-links a:hover { color: var(--s13c-accent); }
.s13c-footer-bottom {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--s13c-border);
    font-size: 1.15rem;
    text-align: center;
    color: var(--s13c-muted);
}

/* ============ Mobile Bottom Nav ============ */
.s13c-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 62px;
    background: linear-gradient(180deg, #2b3a4a, #1f2c39);
    border-top: 2px solid var(--s13c-accent);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.35);
}
.s13c-bottom-nav button, .s13c-bottom-nav a {
    flex: 1;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--s13c-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.s13c-bottom-nav button:active, .s13c-bottom-nav a:active { transform: scale(0.92); }
.s13c-bottom-nav button i, .s13c-bottom-nav a i { font-size: 22px; }
.s13c-bottom-nav .s13c-active { color: var(--s13c-lime); }
.s13c-bottom-nav .s13c-promo-btn { color: var(--s13c-accent); }
.s13c-bottom-nav .s13c-promo-btn i { font-size: 24px; }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
    .s13c-bottom-nav { display: none; }
    main { padding-bottom: 2rem; }
    .s13c-header-inner, .s13c-footer-inner { max-width: 760px; }
    main { max-width: 760px; }
}

@media (min-width: 431px) and (max-width: 768px) {
    .s13c-game-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Utility */
.s13c-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
