/* 888 jili CSS Styles */
/* All classes must use v5f4- prefix */

/* CSS Variables */
:root {
    --v5f4-primary: #FF8C00;
    --v5f4-primary-dark: #FF8000;
    --v5f4-primary-light: #FFA500;
    --v5f4-bg-dark: #3A3A3A;
    --v5f4-bg-medium: #5D5D5D;
    --v5f4-bg-light: #E5E5E5;
    --v5f4-text-light: #FFFFFF;
    --v5f4-text-dark: #333333;
    --v5f4-border: #CCCCCC;
    --v5f4-shadow: rgba(0, 0, 0, 0.1);
    --v5f4-radius: 8px;
    --v5f4-transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--v5f4-text-light);
    background-color: var(--v5f4-bg-dark);
    overflow-x: hidden;
}

/* Utility Classes */
.v5f4-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v5f4-wrapper {
    min-height: 100vh;
    padding-bottom: 8rem;
}

.v5f4-grid {
    display: grid;
    gap: 1.5rem;
}

.v5f4-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v5f4-text-center {
    text-align: center;
}

.v5f4-text-primary {
    color: var(--v5f4-primary);
}

.v5f4-bg-primary {
    background-color: var(--v5f4-primary);
}

/* Header */
.v5f4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--v5f4-bg-dark) 0%, var(--v5f4-bg-medium) 100%);
    box-shadow: 0 2px 10px var(--v5f4-shadow);
    padding: 1rem 0;
}

.v5f4-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.v5f4-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--v5f4-primary);
    text-decoration: none;
}

.v5f4-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
}

.v5f4-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.v5f4-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: var(--v5f4-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v5f4-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem;
    touch-action: manipulation;
}

.v5f4-btn-primary {
    background: linear-gradient(135deg, var(--v5f4-primary) 0%, var(--v5f4-primary-dark) 100%);
    color: var(--v5f4-text-light);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.v5f4-btn-primary:hover {
    background: linear-gradient(135deg, var(--v5f4-primary-dark) 0%, var(--v5f4-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.v5f4-btn-secondary {
    background: transparent;
    color: var(--v5f4-primary);
    border: 2px solid var(--v5f4-primary);
}

.v5f4-btn-secondary:hover {
    background: var(--v5f4-primary);
    color: var(--v5f4-text-light);
}

.v5f4-menu-toggle {
    background: none;
    border: none;
    color: var(--v5f4-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--v5f4-radius);
    transition: var(--v5f4-transition);
}

.v5f4-menu-toggle:hover {
    background: var(--v5f4-bg-medium);
}

/* Mobile Menu */
.v5f4-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--v5f4-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px var(--v5f4-shadow);
}

.v5f4-mobile-menu.active {
    right: 0;
}

.v5f4-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--v5f4-transition);
}

.v5f4-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.v5f4-menu-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--v5f4-bg-medium);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v5f4-menu-close {
    background: none;
    border: none;
    color: var(--v5f4-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--v5f4-radius);
    transition: var(--v5f4-transition);
}

.v5f4-menu-close:hover {
    background: var(--v5f4-bg-medium);
}

.v5f4-menu-nav {
    padding: 1.5rem 0;
}

.v5f4-menu-nav ul {
    list-style: none;
}

.v5f4-menu-nav li {
    border-bottom: 1px solid var(--v5f4-bg-medium);
}

.v5f4-menu-nav a {
    display: block;
    padding: 1.5rem;
    color: var(--v5f4-text-light);
    text-decoration: none;
    transition: var(--v5f4-transition);
    font-size: 1.6rem;
}

.v5f4-menu-nav a:hover {
    background: var(--v5f4-bg-medium);
    color: var(--v5f4-primary);
}

/* Main Content */
.v5f4-main {
    padding-top: 8rem;
    min-height: calc(100vh - 8rem);
}

/* Carousel */
.v5f4-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--v5f4-radius);
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px var(--v5f4-shadow);
}

.v5f4-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.v5f4-carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.v5f4-carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.v5f4-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.v5f4-carousel-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--v5f4-transition);
}

.v5f4-carousel-dot.active {
    background: var(--v5f4-primary);
    width: 2rem;
    border-radius: 0.5rem;
}

/* Game Grid */
.v5f4-game-section {
    margin-bottom: 3rem;
}

.v5f4-section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--v5f4-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v5f4-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v5f4-game-item {
    background: var(--v5f4-bg-medium);
    border-radius: var(--v5f4-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--v5f4-transition);
    text-decoration: none;
    color: var(--v5f4-text-light);
}

.v5f4-game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
    background: var(--v5f4-primary);
}

.v5f4-game-icon {
    width: 100%;
    height: 6rem;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: var(--v5f4-radius);
}

.v5f4-game-name {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Sections */
.v5f4-content-section {
    background: var(--v5f4-bg-medium);
    border-radius: var(--v5f4-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px var(--v5f4-shadow);
}

.v5f4-content-section h2 {
    font-size: 2.2rem;
    color: var(--v5f4-primary);
    margin-bottom: 1.5rem;
}

.v5f4-content-section h3 {
    font-size: 1.8rem;
    color: var(--v5f4-primary-light);
    margin: 1.5rem 0 1rem;
}

.v5f4-content-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.v5f4-content-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.v5f4-content-section li {
    margin-bottom: 0.5rem;
}

.v5f4-content-link {
    color: var(--v5f4-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--v5f4-transition);
}

.v5f4-content-link:hover {
    color: var(--v5f4-primary-light);
    text-decoration: underline;
}

/* Footer */
.v5f4-footer {
    background: var(--v5f4-bg-dark);
    padding: 3rem 0 8rem;
    margin-top: 4rem;
}

.v5f4-footer-content {
    margin-bottom: 2rem;
}

.v5f4-footer-title {
    font-size: 1.8rem;
    color: var(--v5f4-primary);
    margin-bottom: 1rem;
}

.v5f4-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.v5f4-footer-links a {
    color: var(--v5f4-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--v5f4-transition);
}

.v5f4-footer-links a:hover {
    color: var(--v5f4-primary);
}

.v5f4-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.v5f4-partner-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--v5f4-transition);
}

.v5f4-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.v5f4-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--v5f4-bg-light);
    padding-top: 2rem;
    border-top: 1px solid var(--v5f4-bg-medium);
}

/* Bottom Navigation */
.v5f4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--v5f4-bg-dark) 0%, var(--v5f4-bg-medium) 100%);
    box-shadow: 0 -2px 10px var(--v5f4-shadow);
    padding: 0.5rem 0;
    display: none;
}

.v5f4-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 5.6rem;
}

.v5f4-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5.6rem;
    text-decoration: none;
    color: var(--v5f4-bg-light);
    transition: var(--v5f4-transition);
    cursor: pointer;
    border: none;
    background: none;
}

.v5f4-bottom-nav-item:hover,
.v5f4-bottom-nav-item.active {
    color: var(--v5f4-primary);
    transform: scale(1.05);
}

.v5f4-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.v5f4-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Scroll to Top */
.v5f4-scroll-top {
    position: fixed;
    bottom: 10rem;
    right: 2rem;
    z-index: 999;
    background: var(--v5f4-primary);
    color: var(--v5f4-text-light);
    border: none;
    border-radius: 50%;
    width: 4.5rem;
    height: 4.5rem;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--v5f4-transition);
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.3);
}

.v5f4-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.v5f4-scroll-top:hover {
    background: var(--v5f4-primary-dark);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .v5f4-bottom-nav {
        display: block;
    }

    .v5f4-wrapper {
        padding-bottom: 8rem;
    }

    .v5f4-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v5f4-header-actions .v5f4-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .v5f4-game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v5f4-section-title {
        font-size: 1.8rem;
    }

    .v5f4-content-section h2 {
        font-size: 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.v5f4-btn:focus,
.v5f4-menu-toggle:focus,
.v5f4-menu-close:focus,
.v5f4-bottom-nav-item:focus,
.v5f4-scroll-top:focus {
    outline: 2px solid var(--v5f4-primary);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --v5f4-bg-dark: #000000;
        --v5f4-bg-medium: #333333;
        --v5f4-text-light: #FFFFFF;
        --v5f4-primary: #FFA500;
    }
}