:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #13131a;
  --bg-tertiary: #1a1a2e;
  --bg-card: #161620;
  --accent-primary: #7b61ff;
  --accent-secondary: #00d4ff;
  --accent-gradient: linear-gradient(135deg, #7b61ff 0%, #00d4ff 100%);
  --accent-hover: linear-gradient(135deg, #6a50e6 0%, #00b8e6 100%);
  --text-primary: #ffffff;
  --text-secondary: #b0b0c0;
  --text-muted: #6c6c7a;
  --border-color: #2a2a3a;
  --border-hover: #7b61ff;
  --glow-primary: 0 0 20px rgba(123, 97, 255, 0.5);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --success: #00ff88;
  --warning: #ffa500;
  --error: #ff4757;
  --online: #00ff88;
  --maintenance: #ffa500;
  --input-bg: #1a1a2e;
  --input-border: #2a2a3a;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

[data-theme="light"] {
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f2f8;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8a8aa0;
  --border-color: #e0e0f0;
  --glow-primary: 0 0 20px rgba(123, 97, 255, 0.3);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.1);
  --input-bg: #f0f2f8;
  --input-border: #d0d0e0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; transition: background var(--transition-normal), color var(--transition-normal); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul { list-style: none; }

.theme-toggle { position: fixed; top: 20px; right: 20px; z-index: 1002; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-secondary); border: 2px solid var(--border-color); color: var(--text-primary); font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); box-shadow: var(--shadow-card); }
.theme-toggle:hover { border-color: var(--accent-primary); transform: scale(1.05); }
.theme-icon { position: absolute; transition: opacity var(--transition-fast); }
.theme-icon.moon { opacity: 1; } .theme-icon.sun { opacity: 0; }
[data-theme="light"] .theme-icon.moon { opacity: 0; } [data-theme="light"] .theme-icon.sun { opacity: 1; }

.lang-switcher { position: fixed; top: 20px; right: 75px; z-index: 1001; display: flex; gap: 5px; background: var(--bg-secondary); padding: 5px; border-radius: 10px; border: 2px solid var(--border-color); box-shadow: var(--shadow-card); }
.lang-btn { padding: 6px 14px; border: none; background: transparent; color: var(--text-secondary); font-weight: 600; font-size: 0.85rem; cursor: pointer; border-radius: 6px; transition: all var(--transition-fast); }
.lang-btn:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.lang-btn.active { background: var(--accent-primary); color: white; }

.header { position: fixed; top: 0; width: 100%; background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); z-index: 1000; padding: 12px 0; transition: background var(--transition-normal); }
[data-theme="light"] .header { background: rgba(248, 249, 252, 0.95); }
.header__inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; position: relative; padding: 5px 0; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent-gradient); transition: width var(--transition-fast); }
.nav a:hover { color: var(--text-primary); } .nav a:hover::after { width: 100%; }
.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.6rem; cursor: pointer; padding: 5px; }

.hero { padding: 180px 0 120px; text-align: center; position: relative; overflow: hidden; }
.hero__content { position: relative; z-index: 2; }
.hero h1 { font-size: 4rem; font-weight: 800; margin-bottom: 24px; line-height: 1.1; letter-spacing: -1px; }
.gradient { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.35rem; color: var(--text-secondary); max-width: 650px; margin: 0 auto 45px; }
.hero__actions { display: flex; gap: 18px; justify-content: center; margin-bottom: 60px; flex-wrap: wrap; }
.btn { padding: 14px 36px; border-radius: 10px; font-weight: 600; font-size: 1rem; transition: all var(--transition-normal); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none; }
.btn-primary { background: var(--accent-gradient); color: white; box-shadow: var(--glow-primary); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 10px 40px rgba(123, 97, 255, 0.6); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 2px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--accent-primary); background: var(--bg-tertiary); }
.btn-large { padding: 20px 50px; font-size: 1.3rem; }
.btn-icon { font-size: 1.5rem; }
.hero__stats { display: flex; justify-content: center; gap: 50px; color: var(--text-secondary); flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.8rem; color: var(--text-primary); font-weight: 700; }
.hero__glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; background: radial-gradient(ellipse, rgba(123, 97, 255, 0.15) 0%, transparent 70%); pointer-events: none; z-index: 1; }

.games { padding: 40px 0 100px; }
.section-title { text-align: center; font-size: 2.4rem; font-weight: 700; margin-bottom: 20px; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 50px; font-size: 1.1rem; }
.search-box { position: relative; max-width: 500px; margin: 0 auto 40px; }
.search-box input { width: 100%; padding: 14px 20px 14px 45px; border-radius: 12px; border: 2px solid var(--border-color); background: var(--input-bg); color: var(--text-primary); font-size: 1rem; transition: all var(--transition-fast); }
.search-box input:focus { outline: none; border-color: var(--accent-primary); box-shadow: var(--glow-primary); }
.search-box input::placeholder { color: var(--text-muted); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.1rem; }
.games__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.game-card { background: var(--bg-card); border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); transition: all var(--transition-normal); display: flex; flex-direction: column; }
.game-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--glow-primary); }
.game-card__image { height: 170px; background-size: cover; background-position: center; position: relative; }
.game-card__image::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(to top, var(--bg-card), transparent); }
.game-card__content { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.game-card h3 { font-size: 1.35rem; margin-bottom: 8px; font-weight: 600; }
.game-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; flex-grow: 1; }
.badge { display: inline-block; background: rgba(123, 97, 255, 0.15); color: var(--accent-primary); padding: 5px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; margin-bottom: 12px; width: fit-content; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; font-weight: 500; margin-bottom: 16px; }
.status.online { color: var(--online); } .status.maintenance { color: var(--maintenance); }
.btn-sm { padding: 10px 24px; background: var(--accent-primary); color: white; border-radius: 8px; font-size: 0.95rem; font-weight: 500; text-align: center; transition: background var(--transition-fast); }
.btn-sm:hover { background: var(--accent-hover); }

.download-section-main { padding: 100px 0; background: var(--bg-secondary); }
.loader-box { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; background: var(--bg-card); border-radius: 24px; padding: 50px; border: 2px solid var(--border-color); max-width: 900px; margin: 0 auto; }
.loader-info h3 { font-size: 1.8rem; margin-bottom: 25px; color: var(--accent-primary); }
.loader-info ul { list-style: none; }
.loader-info li { padding: 12px 0; color: var(--text-secondary); font-size: 1.05rem; border-bottom: 1px solid var(--border-color); }
.loader-info li:last-child { border-bottom: none; }
.loader-download { text-align: center; }
.loader-meta { margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }

.features { padding: 100px 0; background: var(--bg-secondary); }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.feature { text-align: center; padding: 35px 25px; background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border-color); transition: transform var(--transition-normal); }
.feature:hover { transform: translateY(-4px); }
.feature__icon { font-size: 2.8rem; margin-bottom: 18px; }
.feature h4 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 600; }
.feature p { color: var(--text-secondary); font-size: 0.95rem; }

.faq { padding: 100px 0; background: var(--bg-secondary); }
.faq__list { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--bg-card); border-radius: 14px; padding: 22px 25px; margin-bottom: 18px; border: 1px solid var(--border-color); transition: border-color var(--transition-fast); }
.faq details:hover { border-color: var(--border-hover); }
.faq summary { font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding-right: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--accent-primary); font-weight: 300; transition: transform var(--transition-fast); }
.faq details[open] summary::after { content: '−'; transform: rotate(0); }
.faq details p { margin-top: 18px; color: var(--text-secondary); line-height: 1.7; }

.footer { padding: 50px 0 30px; border-top: 1px solid var(--border-color); background: var(--bg-secondary); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
.footer__brand { max-width: 400px; }
.footer__brand .logo { font-size: 1.7rem; margin-bottom: 15px; display: inline-block; }
.footer__brand p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 8px; }
.disclaimer { font-size: 0.8rem !important; opacity: 0.7; margin-top: 15px !important; }
.footer__links { display: flex; gap: 25px; flex-wrap: wrap; }
.footer__links a { color: var(--text-secondary); font-size: 0.9rem; transition: color var(--transition-fast); }
.footer__links a:hover { color: var(--accent-primary); }

.toast { position: fixed; bottom: 30px; right: 30px; background: var(--bg-card); color: var(--text-primary); padding: 16px 24px; border-radius: 12px; border-left: 4px solid var(--accent-primary); box-shadow: var(--shadow-card); z-index: 2000; transform: translateX(150%); transition: transform var(--transition-normal); max-width: 350px; }
.toast.show { transform: translateX(0); } .toast.error { border-left-color: var(--error); } .toast.success { border-left-color: var(--success); }

.hidden { display: none !important; }

@media (max-width: 1024px) { .loader-box { grid-template-columns: 1fr; padding: 30px; gap: 30px; text-align: center; } }
@media (max-width: 768px) {
  .theme-toggle { top: 15px; right: 15px; width: 40px; height: 40px; }
  .lang-switcher { top: 15px; right: 65px; }
  .header { padding: 10px 0; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-secondary); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border-color); gap: 15px; display: none; }
  .nav.active { display: flex; }
  .mobile-toggle { display: block; }
  .hero { padding: 150px 0 90px; } .hero h1 { font-size: 2.5rem; } .hero p { font-size: 1.15rem; }
  .hero__actions { flex-direction: column; align-items: center; } .hero__stats { gap: 30px; }
  .section-title { font-size: 2rem; }
  .footer__inner { flex-direction: column; text-align: center; } .footer__links { justify-content: center; }
  .toast { left: 15px; right: 15px; max-width: none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .games__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; } .hero__actions { width: 100%; }
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.game-card, .feature, .faq details { animation: fadeInUp 0.5s ease forwards; opacity: 0; }
.game-card:nth-child(1) { animation-delay: 0.1s; opacity: 1; } .game-card:nth-child(2) { animation-delay: 0.15s; opacity: 1; } .game-card:nth-child(3) { animation-delay: 0.2s; opacity: 1; } .game-card:nth-child(4) { animation-delay: 0.25s; opacity: 1; } .game-card:nth-child(5) { animation-delay: 0.3s; opacity: 1; } .game-card:nth-child(6) { animation-delay: 0.35s; opacity: 1; } .game-card:nth-child(7) { animation-delay: 0.4s; opacity: 1; } .game-card:nth-child(8) { animation-delay: 0.45s; opacity: 1; } .game-card:nth-child(9) { animation-delay: 0.5s; opacity: 1; }
.feature:nth-child(1) { animation-delay: 0.1s; opacity: 1; } .feature:nth-child(2) { animation-delay: 0.2s; opacity: 1; } .feature:nth-child(3) { animation-delay: 0.3s; opacity: 1; } .feature:nth-child(4) { animation-delay: 0.4s; opacity: 1; }