:root {
    --bg-color: #0b0f19;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #ec4899;
    --secondary-glow: rgba(236, 72, 153, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Background Overlay for readability */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 15, 25, 0.4); /* Much lighter overlay */
    z-index: -1;
}

/* Background Glows */
.glow-bg {
    display: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
}

.logo span {
    color: var(--primary);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px var(--primary-glow);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Games Section */
.games-section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.game-card.glass:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.game-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.game-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.gradient-bg {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.game-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    min-height: 80px;
}

.game-rules {
    list-style: none;
    margin-bottom: 30px;
}

.game-rules li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.game-rules span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.premium .game-rules span {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.price {
    font-size: 1.1rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.price span {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.premium {
    position: relative;
    box-shadow: 0 0 40px var(--secondary-glow);
    border-color: rgba(236, 72, 153, 0.3);
}

.premium::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Text Page (Terms) */
.container {
    max-width: 900px;
    margin: 60px auto;
}

.text-page h1 {
    font-size: 3rem;
    margin-bottom: 5px;
}

.last-updated {
    color: var(--primary);
    margin-bottom: 40px;
    font-weight: 600;
}

.content-block {
    margin-bottom: 35px;
}

.content-block h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #f1f5f9;
}

.content-block p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .cta-group { flex-direction: column; }
    .games-grid { grid-template-columns: 1fr; }
}
