/**
 * JL77 - Universal Design CSS
 * Color scheme: Gold/Silver/Beige with dark background
 * CSS classes with v198- prefix
 */

/* CSS Variables */
:root {
    --v198-primary: #D4AF37;
    --v198-primary-dark: #A0522D;
    --v198-secondary: #C0C0C0;
    --v198-light: #FFFACD;
    --v198-beige: #D2B48C;
    --v198-dark: #0D1117;
    --v198-darker: #080B0F;
    --v198-gradient: linear-gradient(135deg, var(--v198-primary), var(--v198-primary-dark));

    /* Font sizes */
    --v198-xs: 0.75rem;
    --v198-sm: 0.875rem;
    --v198-base: 1rem;
    --v198-lg: 1.125rem;
    --v198-xl: 1.25rem;
    --v198-2xl: 1.5rem;
    --v198-3xl: 1.875rem;
    --v198-4xl: 2.25rem;

    /* Spacing */
    --v198-space-1: 0.25rem;
    --v198-space-2: 0.5rem;
    --v198-space-3: 0.75rem;
    --v198-space-4: 1rem;
    --v198-space-5: 1.25rem;
    --v198-space-6: 1.5rem;
    --v198-space-8: 2rem;
    --v198-space-10: 2.5rem;
    --v198-space-12: 3rem;

    /* Border radius */
    --v199-radius-sm: 0.25rem;
    --v199-radius: 0.5rem;
    --v199-radius-lg: 0.75rem;
    --v199-radius-xl: 1rem;
    --v199-radius-2xl: 1.5rem;

    /* Shadows */
    --v198-shadow-sm: 0 1px 2px 0 rgba(212, 175, 55, 0.05);
    --v198-shadow: 0 4px 6px -1px rgba(212, 175, 55, 0.1), 0 2px 4px -1px rgba(212, 175, 55, 0.06);
    --v198-shadow-lg: 0 10px 15px -3px rgba(212, 175, 55, 0.1), 0 4px 6px -2px rgba(212, 175, 55, 0.05);
    --v198-shadow-xl: 0 20px 25px -5px rgba(212, 175, 55, 0.1), 0 10px 10px -5px rgba(212, 175, 55, 0.04);

    /* Z-index */
    --v198-z-dropdown: 1000;
    --v198-z-sticky: 1020;
    --v198-z-fixed: 1030;
    --v198-z-modal-backdrop: 1040;
    --v198-z-modal: 1050;
    --v198-z-popover: 1060;
    --v198-z-tooltip: 1070;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px base */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--v198-base);
    line-height: 1.5;
    color: var(--v198-light);
    background-color: var(--v198-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.v198-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 var(--v198-space-4);
    position: relative;
}

.v198-wrapper {
    width: 100%;
    min-height: 100vh;
    background-color: var(--v198-dark);
}

/* Header */
.v198-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    z-index: var(--v198-z-fixed);
    transition: all 0.3s ease;
}

.v198-header.v198-scrolled {
    background: rgba(13, 17, 23, 0.98);
    box-shadow: var(--v198-shadow-lg);
}

.v198-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--v198-space-3) var(--v198-space-4);
    max-width: 430px;
    margin: 0 auto;
}

.v198-logo {
    display: flex;
    align-items: center;
    gap: var(--v198-space-2);
    text-decoration: none;
    color: var(--v198-primary);
    font-weight: bold;
    font-size: var(--v198-lg);
}

.v198-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--v198-gradient);
    border-radius: var(--v199-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v198-light);
    font-size: var(--v198-lg);
}

.v198-header-actions {
    display: flex;
    align-items: center;
    gap: var(--v198-space-2);
}

.v198-btn {
    padding: var(--v198-space-2) var(--v198-space-4);
    background: var(--v198-gradient);
    border: none;
    border-radius: var(--v199-radius);
    color: var(--v198-light);
    font-weight: 600;
    font-size: var(--v198-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--v198-space-1);
    white-space: nowrap;
}

.v198-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--v198-shadow-lg);
}

.v198-btn:active {
    transform: translateY(0);
}

.v198-btn-secondary {
    background: transparent;
    border: 1px solid var(--v198-primary);
    color: var(--v198-primary);
}

.v198-btn-secondary:hover {
    background: var(--v198-primary);
    color: var(--v198-light);
}

.v198-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--v198-primary);
    font-size: var(--v198-xl);
    cursor: pointer;
    padding: var(--v198-space-2);
    border-radius: var(--v199-radius);
    transition: all 0.2s ease;
}

.v198-menu-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Navigation */
.v198-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--v198-darker);
    z-index: var(--v198-z-modal);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.v198-nav.v198-menu-open {
    right: 0;
}

.v198-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--v198-space-4);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.v198-nav-close {
    background: transparent;
    border: none;
    color: var(--v198-secondary);
    font-size: var(--v198-xl);
    cursor: pointer;
    padding: var(--v198-space-2);
    border-radius: var(--v199-radius);
    transition: all 0.2s ease;
}

.v198-nav-close:hover {
    background: rgba(192, 192, 192, 0.1);
    color: var(--v198-light);
}

.v198-nav-menu {
    list-style: none;
    margin: 0;
    padding: var(--v198-space-3) 0;
}

.v198-nav-item {
    margin: 0;
}

.v198-nav-link {
    display: flex;
    align-items: center;
    gap: var(--v198-space-3);
    padding: var(--v198-space-3) var(--v198-space-4);
    color: var(--v198-light);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: var(--v198-base);
}

.v198-nav-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--v198-primary);
}

.v198-nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v198-primary);
}

/* Mobile Menu Overlay */
.v198-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--v198-z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v198-mobile-menu.v198-menu-open + .v198-mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.v198-main {
    padding-top: 60px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Carousel */
.v198-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    margin: var(--v198-space-4) 0;
    border-radius: var(--v199-radius-lg);
    overflow: hidden;
    box-shadow: var(--v198-shadow-lg);
}

.v198-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.v198-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.v198-slide.v198-active {
    opacity: 1;
}

.v198-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v198-carousel-indicators {
    position: absolute;
    bottom: var(--v198-space-3);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--v198-space-2);
}

.v198-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 250, 205, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.v198-indicator.v198-active {
    background: var(--v198-primary);
    width: 24px;
    border-radius: var(--v199-radius);
}

/* Game Grid */
.v198-game-section {
    margin: var(--v198-space-8) 0;
}

.v198-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--v198-space-4);
}

.v198-section-title {
    font-size: var(--v198-xl);
    font-weight: bold;
    color: var(--v198-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--v198-space-2);
}

.v198-section-icon {
    font-size: var(--v198-lg);
}

.v198-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--v198-space-3);
    margin-bottom: var(--v198-space-6);
}

.v198-game-item {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--v199-radius);
    overflow: hidden;
}

.v198-game-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.v198-game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--v199-radius);
}

.v198-game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(13, 17, 23, 0.9), transparent);
    color: var(--v198-light);
    padding: var(--v198-space-2) var(--v198-space-1);
    font-size: var(--v198-xs);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Sections */
.v198-content-section {
    margin: var(--v198-space-8) 0;
    padding: var(--v198-space-6);
    background: rgba(192, 192, 192, 0.05);
    border-radius: var(--v199-radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.v198-section-title {
    font-size: var(--v198-2xl);
    font-weight: bold;
    color: var(--v198-primary);
    margin: 0 0 var(--v198-space-4) 0;
    display: flex;
    align-items: center;
    gap: var(--v198-space-2);
}

.v198-section-content {
    color: var(--v198-light);
    line-height: 1.6;
}

.v198-section-content h3 {
    color: var(--v198-primary);
    font-size: var(--v198-lg);
    margin: var(--v198-space-4) 0 var(--v198-space-2) 0;
}

.v198-section-content ul {
    margin: var(--v198-space-3) 0;
    padding-left: var(--v198-space-6);
}

.v198-section-content li {
    margin-bottom: var(--v198-space-2);
}

/* Footer */
.v198-footer {
    background: var(--v198-darker);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: var(--v198-space-6) 0;
    margin-top: var(--v198-space-12);
}

.v198-footer-content {
    text-align: center;
    color: var(--v198-secondary);
}

.v198-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--v198-space-3);
    margin-bottom: var(--v198-space-4);
}

.v198-footer-link {
    color: var(--v198-primary);
    text-decoration: none;
    font-size: var(--v198-sm);
    transition: color 0.2s ease;
}

.v198-footer-link:hover {
    color: var(--v198-light);
}

.v198-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--v198-space-3);
    margin: var(--v198-space-6) 0;
}

.v198-partner-logo {
    width: 60px;
    height: 30px;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.v198-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.v198-copyright {
    margin-top: var(--v198-space-4);
    font-size: var(--v198-xs);
    color: var(--v198-secondary);
}

/* Bottom Navigation */
.v198-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--v198-darker);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    z-index: var(--v198-z-fixed);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding: var(--v198-space-2) 0;
}

.v198-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--v198-space-1);
    text-decoration: none;
    color: var(--v198-secondary);
    font-size: var(--v198-xs);
    transition: all 0.2s ease;
    min-width: 60px;
    min-height: 56px;
    justify-content: center;
    border-radius: var(--v199-radius);
    padding: var(--v198-space-1);
}

.v198-bottom-nav-item:hover {
    color: var(--v198-primary);
    background: rgba(212, 175, 55, 0.05);
}

.v198-bottom-nav-item.active {
    color: var(--v198-primary);
}

.v198-bottom-nav-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

/* Utility Classes */
.v198-text-center {
    text-align: center;
}

.v198-text-primary {
    color: var(--v198-primary);
}

.v198-text-secondary {
    color: var(--v198-secondary);
}

.v198-bg-gradient {
    background: var(--v198-gradient);
}

.v198-rounded {
    border-radius: var(--v199-radius);
}

.v198-rounded-lg {
    border-radius: var(--v199-radius-lg);
}

.v198-shadow {
    box-shadow: var(--v198-shadow);
}

.v198-shadow-lg {
    box-shadow: var(--v198-shadow-lg);
}

/* Animations */
.v198-animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.v198-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.v198-fade-in {
    animation: v198-fadeIn 0.5s ease;
}

@keyframes v198-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v198-slide-up {
    animation: v198-slideUp 0.3s ease;
}

@keyframes v198-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .v198-header-actions .v198-btn {
        display: none;
    }

    .v198-menu-toggle {
        display: block;
    }

    .v198-bottom-nav {
        display: flex;
    }

    .v198-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--v198-space-2);
    }

    .v198-content-section {
        padding: var(--v198-space-4);
        margin: var(--v198-space-6) 0;
    }

    .v198-carousel {
        height: 180px;
    }
}

@media (min-width: 769px) {
    .v198-bottom-nav {
        display: none;
    }

    .v198-main {
        padding-bottom: var(--v198-space-6);
    }

    .v198-container {
        max-width: 1200px;
        padding: 0 var(--v198-space-6);
    }

    .v198-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .v198-carousel {
        height: 300px;
    }
}

/* Loading States */
.v198-loading {
    opacity: 0.6;
    pointer-events: none;
}

.v198-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-top: 2px solid var(--v198-primary);
    border-radius: 50%;
    animation: v198-spin 1s linear infinite;
}

@keyframes v198-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Lazy Loading */
.v198-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.v198-lazy:not([src]) {
    background: var(--v198-darker);
}

/* Accessibility */
.v198-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;
}

/* Focus Styles */
.v198-btn:focus,
.v198-nav-link:focus,
.v198-bottom-nav-item:focus {
    outline: 2px solid var(--v198-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .v198-header,
    .v198-bottom-nav,
    .v198-carousel {
        display: none;
    }

    .v198-main {
        padding-top: 0;
        padding-bottom: 0;
    }

    .v198-content-section {
        background: transparent;
        border: 1px solid #ccc;
    }
}