/**
 * Super Ace 2026 - Core Stylesheet
 * All classes use w5509- prefix for namespace isolation
 * Colors: #333333 (bg), #CD853F (accent), #FA8072 (highlight)
 * Mobile-first responsive design (max-width: 430px)
 */

/* CSS Variables */
:root {
    --w5509-primary: #CD853F;
    --w5509-bg: #333333;
    --w5509-bg-light: #3d3d3d;
    --w5509-bg-card: #2a2a2a;
    --w5509-text: #f5f5f5;
    --w5509-text-muted: #b0b0b0;
    --w5509-highlight: #FA8072;
    --w5509-highlight-dark: #d4645a;
    --w5509-gold: #CD853F;
    --w5509-gold-light: #e6a855;
    --w5509-border: #4a4a4a;
    --w5509-radius: 8px;
    --w5509-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --w5509-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --w5509-header-h: 56px;
    --w5509-bottom-h: 60px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--w5509-font);
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--w5509-text);
    background: var(--w5509-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--w5509-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--w5509-gold-light); }
img { max-width: 100%; height: auto; display: block; }

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

/* ===== HEADER ===== */
.w5509-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--w5509-header-h);
    background: linear-gradient(180deg, #2a2a2a 0%, #333333 100%);
    border-bottom: 1px solid var(--w5509-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.w5509-header-inner {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w5509-logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.w5509-logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.w5509-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--w5509-gold);
    white-space: nowrap;
}

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

.w5509-btn-register {
    background: linear-gradient(135deg, var(--w5509-highlight) 0%, var(--w5509-highlight-dark) 100%);
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.w5509-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(250, 128, 114, 0.4); }

.w5509-btn-login {
    background: transparent;
    color: var(--w5509-gold);
    border: 1px solid var(--w5509-gold);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.w5509-btn-login:hover { background: rgba(205, 133, 63, 0.15); }

.w5509-menu-toggle {
    background: none;
    border: none;
    color: var(--w5509-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    line-height: 1;
}

/* ===== MOBILE MENU ===== */
.w5509-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}

.w5509-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--w5509-bg-card);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.w5509-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--w5509-border);
}

.w5509-mobile-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w5509-gold);
}

.w5509-menu-close {
    background: none;
    border: none;
    color: var(--w5509-text);
    font-size: 2rem;
    cursor: pointer;
}

.w5509-mobile-menu nav ul {
    list-style: none;
}

.w5509-mobile-menu nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.w5509-mobile-menu nav a {
    display: block;
    padding: 1rem 0;
    color: var(--w5509-text);
    font-size: 1.4rem;
    transition: color 0.2s, padding-left 0.2s;
}

.w5509-mobile-menu nav a:hover {
    color: var(--w5509-gold);
    padding-left: 0.5rem;
}

/* ===== MAIN CONTENT ===== */
.w5509-main {
    padding-top: var(--w5509-header-h);
    min-height: 100vh;
}

/* ===== CAROUSEL ===== */
.w5509-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--w5509-radius) var(--w5509-radius);
}

.w5509-carousel-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.w5509-carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.w5509-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.w5509-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}

.w5509-carousel-dot.w5509-active {
    background: var(--w5509-gold);
    width: 20px;
    border-radius: 4px;
}

/* ===== SECTIONS ===== */
.w5509-section {
    padding: 2rem 0;
}

.w5509-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w5509-gold);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--w5509-highlight);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.w5509-section-title i, .w5509-section-title .material-icons {
    font-size: 2rem;
    color: var(--w5509-highlight);
}

/* ===== GAME GRID ===== */
.w5509-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w5509-highlight);
    margin: 1.5rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--w5509-gold);
}

.w5509-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.w5509-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: var(--w5509-radius);
    padding: 0.5rem;
    background: var(--w5509-bg-card);
}

.w5509-game-card:hover { transform: translateY(-2px); }

.w5509-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.4rem;
}

.w5509-game-card span {
    font-size: 1.1rem;
    color: var(--w5509-text-muted);
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===== PROMO BUTTONS ===== */
.w5509-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 24px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

.w5509-btn-primary {
    background: linear-gradient(135deg, var(--w5509-highlight) 0%, var(--w5509-highlight-dark) 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(250, 128, 114, 0.3);
}

.w5509-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(250, 128, 114, 0.5);
    color: #fff;
}

.w5509-btn-gold {
    background: linear-gradient(135deg, var(--w5509-gold) 0%, var(--w5509-gold-light) 100%);
    color: #1a1a1a;
    box-shadow: 0 3px 12px rgba(205, 133, 63, 0.3);
}

.w5509-btn-gold:hover {
    transform: scale(1.05);
    color: #1a1a1a;
}

.w5509-btn-outline {
    background: transparent;
    border: 1.5px solid var(--w5509-gold);
    color: var(--w5509-gold);
}

.w5509-btn-outline:hover { background: rgba(205, 133, 63, 0.1); color: var(--w5509-gold); }

/* ===== CTA BANNER ===== */
.w5509-cta-banner {
    background: linear-gradient(135deg, var(--w5509-highlight-dark) 0%, var(--w5509-highlight) 50%, var(--w5509-gold) 100%);
    padding: 2rem 1.5rem;
    border-radius: var(--w5509-radius);
    text-align: center;
    margin: 1.5rem 0;
}

.w5509-cta-banner h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.w5509-cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

/* ===== CONTENT BLOCKS ===== */
.w5509-content-block {
    background: var(--w5509-bg-card);
    border-radius: var(--w5509-radius);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--w5509-border);
}

.w5509-content-block h2 {
    font-size: 1.6rem;
    color: var(--w5509-gold);
    margin-bottom: 0.8rem;
}

.w5509-content-block h3 {
    font-size: 1.4rem;
    color: var(--w5509-highlight);
    margin-bottom: 0.6rem;
}

.w5509-content-block p {
    color: var(--w5509-text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.w5509-content-block ul {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.w5509-content-block li {
    color: var(--w5509-text-muted);
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

/* ===== TESTIMONIALS ===== */
.w5509-testimonial {
    background: var(--w5509-bg-card);
    border-radius: var(--w5509-radius);
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--w5509-gold);
}

.w5509-testimonial-text {
    font-style: italic;
    color: var(--w5509-text-muted);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.w5509-testimonial-author {
    font-size: 1.2rem;
    color: var(--w5509-gold);
    font-weight: 600;
}

/* ===== WINNERS ===== */
.w5509-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    background: var(--w5509-bg-card);
    border-radius: var(--w5509-radius);
    margin-bottom: 0.5rem;
}

.w5509-winner-name { color: var(--w5509-gold); font-weight: 600; font-size: 1.3rem; }
.w5509-winner-game { color: var(--w5509-text-muted); font-size: 1.2rem; }
.w5509-winner-amount { color: var(--w5509-highlight); font-weight: 700; font-size: 1.4rem; }

/* ===== PAYMENT ===== */
.w5509-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.w5509-payment-item {
    background: var(--w5509-bg-card);
    border: 1px solid var(--w5509-border);
    border-radius: var(--w5509-radius);
    padding: 0.8rem 1.2rem;
    font-size: 1.2rem;
    color: var(--w5509-text-muted);
}

/* ===== BOTTOM NAV ===== */
.w5509-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--w5509-bottom-h);
    background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%);
    border-top: 1px solid var(--w5509-border);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
}

.w5509-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    background: none;
    border: none;
    color: var(--w5509-text-muted);
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
    text-decoration: none;
    gap: 0.2rem;
}

.w5509-bottom-nav-btn:hover,
.w5509-bottom-nav-btn:focus {
    color: var(--w5509-gold);
    transform: scale(1.08);
}

.w5509-bottom-nav-btn.active {
    color: var(--w5509-highlight);
}

.w5509-bottom-nav-btn i,
.w5509-bottom-nav-btn .material-icons,
.w5509-bottom-nav-btn ion-icon,
.w5509-bottom-nav-btn bi {
    font-size: 22px;
}

.w5509-bottom-nav-btn span {
    font-size: 1rem;
    line-height: 1.2;
}

/* ===== FOOTER ===== */
.w5509-footer {
    background: var(--w5509-bg-card);
    border-top: 1px solid var(--w5509-border);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.w5509-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.w5509-footer-brand p {
    color: var(--w5509-text-muted);
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 360px;
    margin: 0 auto;
}

.w5509-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w5509-footer-links a {
    background: var(--w5509-bg-light);
    border: 1px solid var(--w5509-border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--w5509-text);
    font-size: 1.2rem;
    transition: background 0.2s, color 0.2s;
}

.w5509-footer-links a:hover { background: var(--w5509-gold); color: #1a1a1a; }

.w5509-footer-copyright {
    text-align: center;
    color: var(--w5509-text-muted);
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--w5509-border);
}

/* ===== DESKTOP ===== */
@media (min-width: 769px) {
    .w5509-bottom-nav { display: none; }
    .w5509-container { max-width: 600px; }
    .w5509-header-inner { max-width: 600px; }
    .w5509-game-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 768px) {
    .w5509-main { padding-bottom: 80px; }
    .w5509-footer { padding-bottom: 80px; }
}

/* ===== UTILITIES ===== */
.w5509-text-center { text-align: center; }
.w5509-text-gold { color: var(--w5509-gold); }
.w5509-text-highlight { color: var(--w5509-highlight); }
.w5509-mt-1 { margin-top: 0.8rem; }
.w5509-mt-2 { margin-top: 1.6rem; }
.w5509-mb-1 { margin-bottom: 0.8rem; }
.w5509-mb-2 { margin-bottom: 1.6rem; }
.w5509-p-1 { padding: 0.8rem; }
