/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root variables with v569 prefix */
:root {
    --v569-primary: #6F4E37;
    --v569-secondary: #3A3A3A;
    --v569-bg: #1A1A1A;
    --v569-text: #F5F5F5;
    --v569-text-secondary: #B0B0B0;
    --v569-border: #333333;
    --v569-accent: #D4AF37;
    --v569-success: #4CAF50;
    --v569-danger: #F44336;
    --v569-warning: #FF9800;
    --v569-info: #2196F3;
    font-size: 62.5%; /* 1rem = 10px */
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--v569-bg);
    color: var(--v569-text);
    line-height: 1.5;
    font-size: 1.4rem;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and wrapper */
.v569-container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v569-wrapper {
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 8rem;
}

/* Header */
.v569-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v569-secondary) 0%, #2A2A2A 100%);
    border-bottom: 1px solid var(--v569-border);
    z-index: 1000;
    padding: 1rem 0;
}

.v569-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.v569-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--v569-text);
}

.v569-logo img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.5rem;
}

.v569-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--v569-primary), var(--v569-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v569-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v569-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 4.4rem;
    touch-action: manipulation;
}

.v569-btn-primary {
    background: linear-gradient(135deg, var(--v569-primary), #8B5A3C);
    color: white;
    box-shadow: 0 2px 8px rgba(111, 78, 55, 0.3);
}

.v569-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 78, 55, 0.4);
}

.v569-btn-secondary {
    background: transparent;
    color: var(--v569-text);
    border: 1px solid var(--v569-border);
}

.v569-btn-secondary:hover {
    background: var(--v569-secondary);
    border-color: var(--v569-primary);
}

.v569-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    background: transparent;
    border: 1px solid var(--v569-border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v569-menu-btn:hover {
    background: var(--v569-secondary);
    border-color: var(--v569-primary);
}

.v569-menu-btn i {
    font-size: 2rem;
    color: var(--v569-text);
}

/* Navigation */
.v569-nav {
    display: none;
}

.v569-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 32rem;
    height: 100vh;
    background: linear-gradient(135deg, var(--v569-secondary) 0%, #2A2A2A 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.v569-mobile-menu.active {
    right: 0;
}

.v569-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v569-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.v569-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--v569-border);
}

.v569-menu-close {
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--v569-border);
    border-radius: 0.5rem;
    color: var(--v569-text);
    cursor: pointer;
}

.v569-menu-close:hover {
    background: var(--v569-secondary);
}

.v569-menu-nav {
    list-style: none;
}

.v569-menu-nav li {
    margin-bottom: 0.5rem;
}

.v569-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--v569-text);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.v569-menu-nav a:hover,
.v569-menu-nav a.active {
    background: var(--v569-primary);
    color: white;
}

/* Main content */
.v569-main {
    padding: 2rem 0;
}

/* Carousel */
.v569-carousel {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.v569-carousel-inner {
    position: relative;
    width: 100%;
    height: 20rem;
}

.v569-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.v569-carousel-slide.active {
    opacity: 1;
}

.v569-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v569-carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.v569-carousel-prev,
.v569-carousel-next {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.v569-carousel-prev:hover,
.v569-carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.v569-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.v569-carousel-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v569-carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Typography */
.v569-h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--v569-text), var(--v569-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.v569-h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--v569-text);
}

.v569-h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--v569-text);
}

.v569-text {
    color: var(--v569-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.v569-text-center {
    text-align: center;
}

/* Cards */
.v569-card {
    background: linear-gradient(135deg, var(--v569-secondary) 0%, #2A2A2A 100%);
    border: 1px solid var(--v569-border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.v569-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Grid */
.v569-grid {
    display: grid;
    gap: 1.5rem;
}

.v569-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.v569-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.v569-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Games */
.v569-games {
    margin-bottom: 3rem;
}

.v569-games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.v569-games-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--v569-text);
}

.v569-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.v569-game-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v569-game-item:hover {
    transform: scale(1.05);
}

.v569-game-icon {
    width: 100%;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.v569-game-name {
    font-size: 1rem;
    color: var(--v569-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sections */
.v569-section {
    margin-bottom: 3rem;
}

.v569-section-header {
    margin-bottom: 2rem;
}

.v569-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--v569-text);
    margin-bottom: 1rem;
}

.v569-section-description {
    color: var(--v569-text-secondary);
    line-height: 1.6;
}

/* Links */
.v569-link {
    color: var(--v569-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.v569-link:hover {
    color: var(--v569-accent);
    text-decoration: underline;
}

/* Lists */
.v569-list {
    list-style: none;
    padding: 0;
}

.v569-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--v569-border);
}

.v569-list li:last-child {
    border-bottom: none;
}

/* Footer */
.v569-footer {
    background: linear-gradient(135deg, #0A0A0A 0%, var(--v569-secondary) 100%);
    border-top: 1px solid var(--v569-border);
    padding: 3rem 0 8rem;
    margin-top: 4rem;
}

.v569-footer-content {
    margin-bottom: 2rem;
}

.v569-footer-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v569-text);
    margin-bottom: 1rem;
}

.v569-footer-text {
    color: var(--v569-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.v569-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.v569-footer-link {
    color: var(--v569-text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.v569-footer-link:hover {
    color: var(--v569-primary);
}

.v569-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.v569-partner {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.3s ease;
}

.v569-partner:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.v569-copyright {
    text-align: center;
    color: var(--v569-text-secondary);
    font-size: 1.1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--v569-border);
}

/* Bottom Navigation */
.v569-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v569-secondary) 0%, #2A2A2A 100%);
    border-top: 1px solid var(--v569-border);
    z-index: 1000;
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
}

.v569-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 43rem;
    margin: 0 auto;
}

.v569-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--v569-text-secondary);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    position: relative;
}

.v569-bottom-nav-item:hover,
.v569-bottom-nav-item.active {
    color: var(--v569-primary);
    transform: translateY(-2px);
}

.v569-bottom-nav-item i {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

.v569-bottom-nav-label {
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Utility classes */
.v569-text-primary {
    color: var(--v569-primary) !important;
}

.v569-text-accent {
    color: var(--v569-accent) !important;
}

.v569-bg-primary {
    background-color: var(--v569-primary) !important;
}

.v569-mb-0 {
    margin-bottom: 0 !important;
}

.v569-mb-1 {
    margin-bottom: 1rem !important;
}

.v569-mb-2 {
    margin-bottom: 2rem !important;
}

.v569-mb-3 {
    margin-bottom: 3rem !important;
}

.v569-mt-0 {
    margin-top: 0 !important;
}

.v569-mt-1 {
    margin-top: 1rem !important;
}

.v569-mt-2 {
    margin-top: 2rem !important;
}

.v569-mt-3 {
    margin-top: 3rem !important;
}

/* Responsive */
@media (min-width: 769px) {
    .v569-bottom-nav {
        display: none;
    }

    .v569-wrapper {
        padding-bottom: 3rem;
    }

    .v569-nav {
        display: block;
    }

    .v569-menu-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .v569-wrapper {
        padding-bottom: 8rem;
    }

    .v569-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v569-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading animation */
.v569-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--v569-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.v569-spinner {
    width: 4rem;
    height: 4rem;
    border: 0.3rem solid var(--v569-border);
    border-top-color: var(--v569-primary);
    border-radius: 50%;
    animation: v569-spin 1s linear infinite;
}

@keyframes v569-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Fade animations */
.v569-fade-in {
    animation: v569-fadeIn 0.5s ease;
}

@keyframes v569-fadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button animations */
.v569-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* Game item animations */
.v569-game-item {
    animation: v569-fadeIn 0.3s ease;
    animation-fill-mode: both;
}

.v569-game-item:nth-child(1) { animation-delay: 0.05s; }
.v569-game-item:nth-child(2) { animation-delay: 0.1s; }
.v569-game-item:nth-child(3) { animation-delay: 0.15s; }
.v569-game-item:nth-child(4) { animation-delay: 0.2s; }
.v569-game-item:nth-child(5) { animation-delay: 0.25s; }
.v569-game-item:nth-child(6) { animation-delay: 0.3s; }
.v569-game-item:nth-child(7) { animation-delay: 0.35s; }
.v569-game-item:nth-child(8) { animation-delay: 0.4s; }
.v569-game-item:nth-child(9) { animation-delay: 0.45s; }
.v569-game-item:nth-child(10) { animation-delay: 0.5s; }
.v569-game-item:nth-child(11) { animation-delay: 0.55s; }
.v569-game-item:nth-child(12) { animation-delay: 0.6s; }
.v569-game-item:nth-child(13) { animation-delay: 0.65s; }
.v569-game-item:nth-child(14) { animation-delay: 0.7s; }
.v569-game-item:nth-child(15) { animation-delay: 0.75s; }
.v569-game-item:nth-child(16) { animation-delay: 0.8s; }