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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(135deg, #e94560 0%, #f39c12 100%);
    padding: 20px 0;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.auth-section {
    display: flex;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
}

.coin-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2em;
    font-weight: bold;
}

.level-badge {
    background: linear-gradient(135deg, #f39c12, #e94560);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.btn {
    background: linear-gradient(135deg, #2c5f8d, #1e3a5f);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.5);
}

.hidden {
    display: none !important;
}

.main-content {
    flex: 1;
}

.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.15) 0%, rgba(243, 156, 18, 0.15) 100%);
    margin: 20px;
    border-radius: 20px;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero p {
    font-size: 1.5em;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    background: linear-gradient(135deg, #e94560, #f39c12);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.7);
}

.hero-btn.secondary {
    background: linear-gradient(135deg, #2c5f8d, #1e3a5f);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 20px;
}

.stat-card {
    background: linear-gradient(135deg, #e94560 0%, #f39c12 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    opacity: 0.9;
}

.section {
    margin: 60px 20px;
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.game-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8d 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(233, 69, 96, 0.4);
    border-color: #e94560;
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #2c5f8d, #1e3a5f);
}

.game-info {
    padding: 20px;
}

.game-name {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.game-description {
    opacity: 0.8;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.game-bet {
    font-size: 0.9em;
    opacity: 0.7;
}

.play-btn {
    background: linear-gradient(135deg, #e94560, #f39c12);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.5);
}

.view-all-link {
    text-align: center;
    margin-top: 30px;
}

.view-all-btn {
    background: linear-gradient(135deg, #2c5f8d, #1e3a5f);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 95, 141, 0.5);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8d 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #f39c12;
}

.feature-description {
    opacity: 0.9;
    line-height: 1.6;
}

.footer {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8d 100%);
    padding: 60px 20px 20px;
    margin-top: 60px;
    border-top: 3px solid #e94560;
}

.disclaimer {
    background: rgba(233, 69, 96, 0.1);
    border: 2px solid #e94560;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.disclaimer strong {
    color: #f39c12;
    font-size: 1.1em;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #f39c12;
}

.footer-section p,
.footer-section ul {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #f39c12;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .nav {
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .user-info {
        width: 100%;
        justify-content: center;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}
