/* 333jili casino theme with v2fa prefix */
:root {
    /* Color palette */
    --v2fa-primary: #6495ED;
    --v2fa-secondary: #191970;
    --v2fa-bg-dark: #0A0A0A;
    --v2fa-bg-card: #1A1A1A;
    --v2fa-text-light: #E0FFFF;
    --v2fa-text-gold: #FFDEAD;
    --v2fa-accent: #FF6B6B;
    --v2fa-border: #2A2A2A;
    --v2fa-shadow: rgba(100, 149, 237, 0.3);
    --v2fa-gradient: linear-gradient(135deg, #6495ED 0%, #191970 100%);
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--v2fa-bg-dark);
    color: var(--v2fa-text-light);
    overflow-x: hidden;
    max-width: 100%;
}

/* Container */
.v2fa-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v2fa-wrapper {
    min-height: 100vh;
    padding-bottom: 8rem;
}

/* Header */
.v2fa-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--v2fa-bg-card);
    border-bottom: 1px solid var(--v2fa-border);
    transition: all 0.3s ease;
}

.v2fa-header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.v2fa-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    height: 6rem;
}

.v2fa-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--v2fa-text-gold);
    text-decoration: none;
}

.v2fa-logo img {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.4rem;
}

.v2fa-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v2fa-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem;
    touch-action: manipulation;
}

.v2fa-btn-primary {
    background: var(--v2fa-gradient);
    color: white;
    box-shadow: 0 0.4rem 1.2rem var(--v2fa-shadow);
}

.v2fa-btn-primary:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.6rem 1.6rem var(--v2fa-shadow);
}

.v2fa-btn-secondary {
    background: transparent;
    color: var(--v2fa-text-light);
    border: 2px solid var(--v2fa-primary);
}

.v2fa-btn-secondary:hover {
    background: var(--v2fa-primary);
    color: white;
}

.v2fa-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.8rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    touch-action: manipulation;
}

.v2fa-menu-btn span {
    width: 2.4rem;
    height: 0.2rem;
    background: var(--v2fa-text-light);
    transition: all 0.3s ease;
    border-radius: 0.1rem;
}

/* Mobile Menu */
.v2fa-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--v2fa-bg-card);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding-top: 6rem;
}

.v2fa-mobile-menu.active {
    right: 0;
}

.v2fa-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v2fa-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.v2fa-menu-list {
    list-style: none;
    padding: 2rem 0;
}

.v2fa-menu-item {
    border-bottom: 1px solid var(--v2fa-border);
}

.v2fa-menu-link {
    display: block;
    padding: 1.5rem 2rem;
    color: var(--v2fa-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.v2fa-menu-link:hover {
    background: var(--v2fa-bg-dark);
    color: var(--v2fa-primary);
    padding-left: 2.5rem;
}

/* Main Content */
.v2fa-main {
    padding-top: 6rem;
}

/* Carousel */
.v2fa-carousel {
    position: relative;
    width: 100%;
    height: 25rem;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.v2fa-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.v2fa-slide.active {
    opacity: 1;
}

.v2fa-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2fa-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.v2fa-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v2fa-dot.active {
    background: var(--v2fa-primary);
    width: 2rem;
    border-radius: 0.4rem;
}

/* Game Grid */
.v2fa-game-section {
    margin-bottom: 3rem;
}

.v2fa-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v2fa-text-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v2fa-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v2fa-game-item {
    background: var(--v2fa-bg-card);
    border-radius: 0.8rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.v2fa-game-item:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0.8rem 2rem var(--v2fa-shadow);
}

.v2fa-game-image {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.v2fa-game-item:hover .v2fa-game-image {
    transform: scale(1.1);
}

.v2fa-game-name {
    padding: 0.8rem 0.5rem;
    font-size: 1.2rem;
    text-align: center;
    color: var(--v2fa-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: linear-gradient(to top, var(--v2fa-bg-dark), transparent);
}

/* Content Sections */
.v2fa-content-section {
    background: var(--v2fa-bg-card);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--v2fa-border);
}

.v2fa-content-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v2fa-text-gold);
    margin-bottom: 1rem;
}

.v2fa-content-text {
    color: var(--v2fa-text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.v2fa-content-text a {
    color: var(--v2fa-primary);
    text-decoration: none;
    font-weight: 600;
}

.v2fa-content-text a:hover {
    text-decoration: underline;
}

.v2fa-btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Footer */
.v2fa-footer {
    background: var(--v2fa-bg-card);
    border-top: 1px solid var(--v2fa-border);
    padding: 3rem 0 8rem;
    margin-top: 3rem;
}

.v2fa-footer-content {
    margin-bottom: 2rem;
}

.v2fa-footer-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v2fa-text-gold);
    margin-bottom: 1rem;
}

.v2fa-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.v2fa-footer-link {
    color: var(--v2fa-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.v2fa-footer-link:hover {
    color: var(--v2fa-primary);
}

.v2fa-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.v2fa-partner {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.v2fa-partner:hover {
    opacity: 1;
}

.v2fa-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(224, 255, 255, 0.6);
    padding-top: 2rem;
    border-top: 1px solid var(--v2fa-border);
}

/* Bottom Navigation */
.v2fa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: var(--v2fa-bg-card);
    border-top: 1px solid var(--v2fa-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.v2fa-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--v2fa-text-light);
    position: relative;
}

.v2fa-bottom-nav-item:hover {
    transform: scale(1.1);
    color: var(--v2fa-primary);
}

.v2fa-bottom-nav-item.active {
    color: var(--v2fa-primary);
}

.v2fa-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    width: 0.4rem;
    height: 0.4rem;
    background: var(--v2fa-primary);
    border-radius: 50%;
}

.v2fa-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

.v2fa-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive */
@media (min-width: 769px) {
    .v2fa-bottom-nav {
        display: none;
    }

    .v2fa-wrapper {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .v2fa-main {
        padding-bottom: 8rem;
    }
}

/* Utility Classes */
.v2fa-text-center {
    text-align: center;
}

.v2fa-text-gold {
    color: var(--v2fa-text-gold);
}

.v2fa-text-primary {
    color: var(--v2fa-primary);
}

.v2fa-mt-1 { margin-top: 1rem; }
.v2fa-mt-2 { margin-top: 2rem; }
.v2fa-mt-3 { margin-top: 3rem; }
.v2fa-mb-1 { margin-bottom: 1rem; }
.v2fa-mb-2 { margin-bottom: 2rem; }
.v2fa-mb-3 { margin-bottom: 3rem; }

.v2fa-hidden {
    display: none;
}

/* Animations */
@keyframes v2fa-fadeIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v2fa-fade-in {
    animation: v2fa-fadeIn 0.5s ease forwards;
}

/* Focus styles for accessibility */
.v2fa-btn:focus,
.v2fa-menu-link:focus,
.v2fa-bottom-nav-item:focus {
    outline: 2px solid var(--v2fa-primary);
    outline-offset: 2px;
}