/* JL 29 Design Styles - v437 prefix */
/* Color Palette: #0E1621 bg, #F5DEB3 text, #80CBC4 primary, #CD853F accent, #A0522D secondary */

:root {
    --v437-primary: #80CBC4;
    --v437-bg: #0E1621;
    --v437-bg-card: #1A2332;
    --v437-bg-dark: #0A0F18;
    --v437-text: #F5DEB3;
    --v437-text-muted: #B8A88A;
    --v437-accent: #CD853F;
    --v437-secondary: #A0522D;
    --v437-border: #2A3A4E;
    --v437-gradient: linear-gradient(135deg, #80CBC4, #CD853F);
    --v437-shadow: 0 4px 15px rgba(0,0,0,0.4);
    --v437-radius: 12px;
    --v437-radius-sm: 8px;
    --v437-max-width: 430px;
    --v437-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
    font-family: var(--v437-font);
    background: var(--v437-bg);
    color: var(--v437-text);
    font-size: 1.5rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    max-width: var(--v437-max-width);
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}

a { color: var(--v437-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--v437-accent); }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.v437-header {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--v437-max-width);
    background: var(--v437-bg-dark);
    border-bottom: 1px solid var(--v437-border);
    z-index: 1000; padding: 0 1.2rem; height: 56px;
    display: flex; align-items: center; justify-content: space-between;
}

.v437-logo-area { display: flex; align-items: center; gap: 0.8rem; }
.v437-logo-img { width: 36px; height: 36px; border-radius: 50%; }
.v437-site-name {
    font-size: 1.8rem; font-weight: 700;
    background: var(--v437-gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}

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

.v437-btn-register, .v437-btn-login {
    border: none; cursor: pointer; font-size: 1.2rem;
    font-weight: 600; padding: 0.6rem 1.4rem; border-radius: 20px;
    transition: all 0.3s ease;
}
.v437-btn-register {
    background: var(--v437-gradient); color: var(--v437-bg);
}
.v437-btn-register:hover { transform: scale(1.05); box-shadow: var(--v437-shadow); }
.v437-btn-login {
    background: transparent; color: var(--v437-primary);
    border: 1.5px solid var(--v437-primary);
}
.v437-btn-login:hover { background: var(--v437-primary); color: var(--v437-bg); }

.v437-hamburger {
    background: none; border: none; color: var(--v437-text);
    font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
    display: flex; align-items: center;
}

/* ===== MOBILE MENU ===== */
.v437-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: all 0.3s;
}
.v437-overlay-active { opacity: 1; visibility: visible; }

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

.v437-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--v437-border);
}
.v437-menu-title { font-size: 1.8rem; font-weight: 700; color: var(--v437-primary); }
.v437-menu-close {
    background: none; border: none; color: var(--v437-text);
    font-size: 2rem; cursor: pointer;
}

.v437-menu-link {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.2rem 1rem; color: var(--v437-text);
    font-size: 1.4rem; border-radius: var(--v437-radius-sm);
    transition: background 0.2s; margin-bottom: 0.3rem;
}
.v437-menu-link:hover { background: var(--v437-bg-card); color: var(--v437-primary); }
.v437-menu-icon { font-size: 1.8rem; width: 28px; text-align: center; }

/* ===== CAROUSEL ===== */
.v437-carousel {
    position: relative; overflow: hidden;
    margin-top: 56px; border-radius: 0 0 var(--v437-radius) var(--v437-radius);
}
.v437-carousel-track {
    display: flex; transition: transform 0.5s ease; width: 300%;
}
.v437-carousel-slide {
    width: 100%; flex-shrink: 0; position: relative;
}
.v437-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.v437-carousel-dots {
    position: absolute; bottom: 10px; left: 50%;
    transform: translateX(-50%); display: flex; gap: 8px;
}
.v437-carousel-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(245,222,179,0.4); cursor: pointer;
    transition: background 0.3s;
}
.v437-dot-active { background: var(--v437-accent); width: 24px; border-radius: 4px; }

/* ===== MAIN CONTENT ===== */
.v437-main { padding: 1.5rem; padding-bottom: 80px; }

/* Category Tabs */
.v437-cat-tabs {
    display: flex; gap: 0.8rem; overflow-x: auto;
    padding: 1rem 0; margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}
.v437-cat-tabs::-webkit-scrollbar { display: none; }
.v437-cat-tab {
    white-space: nowrap; padding: 0.6rem 1.4rem;
    background: var(--v437-bg-card); border: 1px solid var(--v437-border);
    border-radius: 20px; font-size: 1.3rem; font-weight: 600;
    color: var(--v437-text-muted); cursor: pointer; transition: all 0.3s;
}
.v437-cat-tab:hover, .v437-cat-tab.v437-tab-active {
    background: var(--v437-primary); color: var(--v437-bg);
    border-color: var(--v437-primary);
}

/* Section Headings */
.v437-section-title {
    font-size: 1.8rem; font-weight: 700; margin: 2rem 0 1rem;
    padding-left: 1rem; border-left: 4px solid var(--v437-accent);
    color: var(--v437-text);
}

/* Game Grid */
.v437-game-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem; margin-bottom: 2rem;
}
.v437-game-card {
    background: var(--v437-bg-card); border-radius: var(--v437-radius-sm);
    overflow: hidden; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--v437-border);
}
.v437-game-card:hover { transform: translateY(-3px); box-shadow: var(--v437-shadow); }
.v437-game-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.v437-game-name {
    padding: 0.4rem 0.3rem; font-size: 1.1rem; text-align: center;
    color: var(--v437-text-muted); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

/* Content Modules */
.v437-module {
    background: var(--v437-bg-card); border-radius: var(--v437-radius);
    padding: 2rem; margin-bottom: 1.5rem;
    border: 1px solid var(--v437-border);
}
.v437-module-title {
    font-size: 1.7rem; font-weight: 700; margin-bottom: 1rem;
    color: var(--v437-primary);
}
.v437-module p { margin-bottom: 1rem; color: var(--v437-text-muted); line-height: 1.7; }
.v437-module ul { padding-left: 2rem; margin-bottom: 1rem; }
.v437-module li { margin-bottom: 0.6rem; color: var(--v437-text-muted); }

/* ===== BOTTOM NAV ===== */
.v437-bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--v437-max-width);
    height: 60px; background: var(--v437-bg-dark);
    border-top: 1px solid var(--v437-border);
    z-index: 1000; display: flex;
    justify-content: space-around; align-items: center;
    padding: 0 0.5rem;
}
.v437-nav-btn {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-width: 58px; min-height: 56px;
    background: none; border: none; cursor: pointer;
    color: var(--v437-text-muted); font-size: 1rem;
    transition: all 0.3s; gap: 2px; padding: 0.4rem;
}
.v437-nav-btn:hover, .v437-nav-btn.v437-nav-active {
    color: var(--v437-primary);
}
.v437-nav-btn:hover { transform: scale(1.1); }
.v437-nav-icon { font-size: 2.2rem; line-height: 1; }
.v437-nav-label { font-size: 1rem; font-weight: 500; }

/* ===== FOOTER ===== */
.v437-footer {
    background: var(--v437-bg-dark); padding: 2rem 1.5rem;
    border-top: 1px solid var(--v437-border); margin-top: 2rem;
}
.v437-footer-brand {
    font-size: 1.4rem; color: var(--v437-text-muted);
    margin-bottom: 1.5rem; line-height: 1.7;
}
.v437-footer-links {
    display: flex; flex-wrap: wrap; gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.v437-footer-link {
    font-size: 1.2rem; color: var(--v437-text-muted);
    padding: 0.3rem 0.8rem; background: var(--v437-bg-card);
    border-radius: 4px; transition: color 0.3s;
}
.v437-footer-link:hover { color: var(--v437-primary); }
.v437-copyright {
    font-size: 1.2rem; color: var(--v437-text-muted);
    text-align: center; padding-top: 1rem;
    border-top: 1px solid var(--v437-border);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
    .v437-bottom-nav { display: none; }
    .v437-hamburger { display: none; }
}
@media (max-width: 768px) {
    .v437-main { padding-bottom: 80px; }
    body { max-width: 100%; }
}
