:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --gradient-accent: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    --gradient-adults: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --card-radius: 20px;
    --btn-radius: 12px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: rgba(255, 255, 255, 0.08);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background var(--transition-normal), color var(--transition-normal);
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
.cursor-glow {
    position: fixed; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none; z-index: 0; opacity: 0; transform: translate(-50%, -50%);
}
body:hover .cursor-glow { opacity: 1; }
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--bg-secondary); border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.5rem; }
.logo-icon { font-size: 1.8rem; }
.logo-text .accent { color: var(--accent); }
.nav { display: flex; gap: 8px; }
.nav-link { padding: 10px 20px; border-radius: var(--btn-radius); font-weight: 500; color: var(--text-secondary); }
.nav-link:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.theme-toggle {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--bg-tertiary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.theme-toggle:hover { transform: scale(1.1); }
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 72px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(80px); }
.shape-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -200px; opacity: 0.15; animation: float 20s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; background: #f472b6; bottom: -100px; left: -100px; opacity: 0.12; animation: float 15s ease-in-out infinite reverse; }
.shape-3 { width: 300px; height: 300px; background: #60a5fa; top: 50%; left: 50%; opacity: 0.1; animation: float 18s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -30px) scale(1.05); } }
.hero-content { max-width: 800px; position: relative; z-index: 1; }
.hero-title { font-size: clamp(3rem, 8vw, 5rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.title-line { display: block; }
.title-line.accent { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 40px; }
.hero-stats { display: flex; gap: 48px; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; font-family: var(--font-mono); color: var(--accent); }
.stat-label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; }
.games-section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 12px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.game-card { background: var(--bg-secondary); border-radius: var(--card-radius); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition-normal); cursor: pointer; }
.game-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.game-thumbnail { position: relative; height: 180px; display: flex; align-items: center; justify-content: center; background: var(--gradient-adults); }
.game-icon { font-size: 4rem; transition: transform var(--transition-normal); }
.game-card:hover .game-icon { transform: scale(1.2); }
.game-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition-normal); }
.game-card:hover .game-overlay { opacity: 1; }
.play-btn { padding: 14px 32px; background: white; color: #1a1a1a; border-radius: var(--btn-radius); font-weight: 600; }
.game-info { padding: 20px; }
.game-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.game-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 12px; }
.game-meta { display: flex; gap: 8px; }
.age-tag { padding: 4px 10px; background: var(--bg-tertiary); border-radius: 6px; font-size: 0.8rem; }
.difficulty { padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; }
.difficulty.hard { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 30px 0; }
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.9rem; color: var(--text-muted); }
.game-page { min-height: 100vh; padding-top: 72px; }
.game-header { padding: 40px 0 20px; text-align: center; }
.game-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.game-header p { color: var(--text-secondary); }
.game-controls { display: flex; gap: 12px; justify-content: center; padding: 20px; }
.control-btn { padding: 12px 24px; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--btn-radius); font-family: var(--font-main); font-weight: 500; cursor: pointer; }
.control-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); padding: 20px 0; }
.back-link:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: var(--btn-radius); font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background: var(--gradient-accent); color: white; }
@media (max-width: 768px) { .nav { display: none; } .hero-stats { gap: 32px; } }
