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

:root {
    --bg: #0a0e17;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --bg-surface: #0f1520;
    --text: #f0f2f5;
    --text-dim: #8892a4;
    --accent: #00d4ff;
    --accent-light: #4de8ff;
    --accent-dark: #00a8cc;
    --accent-glow: rgba(0, 212, 255, 0.15);
    --accent-2: #ff6b35;
    --accent-2-light: #ff8f5e;
    --accent-2-glow: rgba(255, 107, 53, 0.15);
    --gradient-1: linear-gradient(135deg, #00d4ff, #0090ff);
    --gradient-2: linear-gradient(135deg, #ff6b35, #ff3366);
    --gradient-hero: linear-gradient(160deg, #0a0e17 0%, #0d1a2d 40%, #0a0e17 100%);
    --border: rgba(255,255,255,0.06);
    --border-accent: rgba(0, 212, 255, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0;
    background: rgba(10,14,23,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.25);
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.logo-accent {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.3px;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 1px;
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    background: var(--gradient-hero);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    background: var(--accent);
    top: 10%;
    right: -10%;
    animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.06;
    background: var(--accent-2);
    bottom: 5%;
    left: -10%;
    animation: glowPulse 10s ease-in-out infinite reverse;
}

.hero-glow-3 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.05;
    background: #6366f1;
    top: 50%;
    left: 30%;
    animation: glowPulse 12s ease-in-out infinite 2s;
}

/* Grid pattern overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.12; transform: scale(1); }
    50% { opacity: 0.18; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-left {
    max-width: 540px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--accent-glow);
    border: 1px solid rgba(0, 212, 255, 0.15);
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 440px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
}

.btn-secondary {
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Hero Right Visual */
.hero-right {
    display: flex;
    justify-content: center;
}

.hero-visual {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    position: relative;
}

.hero-card {
    position: absolute;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
}

.hero-card-1 {
    top: 2%;
    left: 2%;
    width: 220px;
    animation: cardFloat1 7s ease-in-out infinite;
    border-color: rgba(0, 212, 255, 0.1);
}

.hero-card-2 {
    top: 32%;
    right: -2%;
    width: 240px;
    animation: cardFloat2 8s ease-in-out infinite;
    border-color: rgba(255, 107, 53, 0.1);
}

.hero-card-3 {
    bottom: 2%;
    left: 12%;
    width: 200px;
    animation: cardFloat3 6s ease-in-out infinite;
    border-color: rgba(99, 102, 241, 0.1);
}

.hero-card .card-emoji {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}

.hero-card .card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.hero-card .card-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
    display: block;
}

.hero-card .card-bar {
    margin-top: 12px;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}

.hero-card .card-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--gradient-1);
}

@keyframes cardFloat1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(0.5deg); }
}
@keyframes cardFloat2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-0.5deg); }
}
@keyframes cardFloat3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.3deg); }
}

/* SECTIONS */
.section {
    padding: 110px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-header h2 .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-dim);
    font-size: 16px;
    max-width: 500px;
    margin: 16px auto 0;
    line-height: 1.7;
}

/* ABOUT */
.about {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.about-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.08);
}

.about-card:nth-child(2) .card-icon {
    background: var(--accent-2-glow);
    border-color: rgba(255, 107, 53, 0.08);
}

.about-card:nth-child(3) .card-icon {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.08);
}

.about-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.75;
}

/* GAMES */
.games {
    position: relative;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.games-grid.single {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.game-card.featured .game-image {
    height: 240px;
}

.game-card.featured .game-emoji {
    font-size: 80px;
}

.game-card.featured .game-info {
    padding: 28px;
}

.game-card.featured .game-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.game-card.featured .game-info p {
    font-size: 15px;
    line-height: 1.75;
}

.game-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(145deg, #0d1a2d, #1a1025);
}

.game-emoji {
    font-size: 56px;
}

.game-info {
    padding: 24px;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: var(--accent-glow);
    color: var(--accent-light);
    border: 1px solid rgba(0, 212, 255, 0.1);
    margin-bottom: 14px;
}

.game-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.game-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-info p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
}

/* CONTACT */
.contact {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 36px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.contact-label {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.contact-value {
    font-size: 15px;
    font-weight: 600;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FOOTER */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-dim);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10,14,23,0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 8px 24px 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-right {
        display: none;
    }

    .section-header {
        text-align: center;
    }

    .section-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 320px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* PAGE STYLES (Privacy, Terms, Support) */
.page-hero {
    padding: 130px 0 52px;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.page-content {
    padding: 0 0 100px;
}

.page-content .container {
    max-width: 720px;
}

.prose {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.8;
}

.prose h2 {
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
    margin: 40px 0 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.prose h2:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.prose h3 {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    margin: 28px 0 10px;
}

.prose p {
    margin-bottom: 14px;
}

.prose ul {
    margin-bottom: 14px;
    padding-left: 20px;
}

.prose li {
    margin-bottom: 6px;
}

.prose a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.prose a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* Utility: highlight for sub-pages */
.page-hero h1 .highlight,
.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero .hero-subtitle {
    color: var(--text-dim);
    font-size: 15px;
    margin-top: 8px;
}
