:root {
    --primary-color: #6C22A6;
    --primary-light: #9647D2;
    --accent-color: #FF6B6B;
    --accent-light: #FF8E8E;
    --bg-dark: #0F0916;
    --bg-panel: rgba(25, 15, 35, 0.6);
    --text-main: #F4EEFA;
    --text-muted: #B8A5C6;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: 20%;
    right: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #3A0CA3;
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 160px 0 80px;
}

.logo-text {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(108, 34, 166, 0.5);
}

.logo-text .highlight {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Games Showcase */
.games-showcase {
    padding: 40px 0 100px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Game Card (Glassmorphism) */
.game-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.game-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(108, 34, 166, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.game-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

/* Overlay and Button */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 9, 22, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .overlay {
    opacity: 1;
}

.play-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transform: translateY(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 34, 166, 0.5);
}

.play-btn:hover {
    box-shadow: 0 6px 20px rgba(108, 34, 166, 0.8);
    transform: translateY(0) scale(1.05);
}

.game-card:hover .play-btn {
    transform: translateY(0);
}

/* Card Info */
.game-info {
    padding: 25px;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.footer-note {
    margin-top: 10px;
    color: var(--accent-light);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-text { font-size: 3rem; }
    .hero { padding: 60px 0 40px; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 9, 22, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}
.nav-logo span {
    color: var(--accent-light);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-light);
}

/* Hero Button */
.hero-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    border-radius: 40px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.8);
}

/* Badges */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 0.8rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.badge-new {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
}

.badge-popular {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
}

/* Rank Section */
.rank-section {
    padding: 40px 0;
    margin-top: 20px;
}

.rank-card {
    background: linear-gradient(135deg, rgba(108, 34, 166, 0.4), rgba(150, 71, 210, 0.2));
    border: 1px solid var(--primary-light);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(108, 34, 166, 0.3);
}

.rank-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #FCD34D;
    text-shadow: 0 2px 10px rgba(252, 211, 77, 0.5);
}

.rank-card p {
    font-size: 1.1rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 30px;
}

.rank-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 800;
    color: var(--accent-light);
    border: 1px solid rgba(255, 142, 142, 0.3);
}

@media (max-width: 768px) {
    .rank-card { padding: 20px; }
    .rank-card h2 { font-size: 2rem; }
    .feature { font-size: 0.9rem; }
}
