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

:root {
  --primary: #7c6dfa;
  --primary-dark: #6254e0;
  --secondary: #f97316;
  --accent: #facc15;
  --bg-dark: #09090f;
  --bg-card: #111118;
  --bg-card2: #0e0e16;
  --bg-glass: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(124,109,250,0.5);
  --text: #e2e2f0;
  --text-muted: #7a7a99;
  --text-dim: #4a4a66;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --gradient: linear-gradient(135deg, #7c6dfa 0%, #a78bfa 50%, #f472b6 100%);
  --gradient-fire: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-hover: 0 20px 60px rgba(124,109,250,0.25);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a, button, select { -webkit-tap-highlight-color: transparent; }

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

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(9,9,15,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.5px; flex-shrink: 0;
}
.logo-icon { font-size: 26px; line-height: 1; }
.logo-icon img { width: 36px; height: 36px; display: block; }
.logo-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text em {
  font-style: normal;
  -webkit-text-fill-color: white;
  color: white;
}

.nav-search {
  flex: 1; max-width: 440px;
  display: flex; align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: var(--transition);
}
.nav-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,109,250,0.15); }
.nav-search input {
  flex: 1; padding: 10px 18px;
  background: none; border: none; outline: none;
  color: var(--text); font-size: 14px; font-family: inherit;
}
.nav-search input::placeholder { color: var(--text-muted); }
.search-btn {
  padding: 10px 14px; background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  transition: var(--transition); display: flex; align-items: center;
}
.search-btn:hover { color: var(--primary); }
.search-btn svg { width: 17px; height: 17px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 7px 14px; border-radius: 8px;
  text-decoration: none; color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-glass); }
.admin-link { color: var(--primary); }
.admin-link:hover { background: rgba(124,109,250,0.12); }

/* Language select dropdown */
.lang-select {
  padding: 6px 28px 6px 10px;
  border-radius: 8px;
  background: var(--bg-glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right 9px center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition);
  outline: none;
}
.lang-select:hover, .lang-select:focus {
  border-color: var(--primary);
  color: var(--text);
  background-color: rgba(124,109,250,0.08);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative; overflow: hidden;
  min-height: 500px;
  display: flex; align-items: center;
  padding: 80px 24px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124,109,250,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(168,139,250,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(244,114,182,0.06) 0%, transparent 50%);
}
.hero-content { max-width: 1280px; margin: 0 auto; width: 100%; max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 50px;
  background: rgba(124,109,250,0.15); border: 1px solid rgba(124,109,250,0.35);
  color: #a78bfa; font-size: 12px; font-weight: 600;
  margin-bottom: 20px; letter-spacing: 0.3px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 18px; color: white;
  letter-spacing: -1.5px;
}
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 36px; line-height: 1.7; }
.hero-stats {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 24px; gap: 0;
}
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 0 22px; }
.stat-item span { font-size: 1.7rem; font-weight: 800; color: white; letter-spacing: -1px; }
.stat-item small { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.hero-visual {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 40%; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.floating-cards { position: relative; width: 320px; height: 320px; }
.float-card {
  position: absolute; font-size: 2.2rem;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  animation: float linear infinite; box-shadow: var(--shadow);
}
.card-1 { top: 8%; left: 18%; animation-duration: 7s; }
.card-2 { top: 48%; right: 8%; animation-duration: 5.5s; animation-delay: 1s; }
.card-3 { bottom: 8%; left: 28%; animation-duration: 6.5s; animation-delay: 2s; }
.card-4 { top: 18%; right: 28%; animation-duration: 4.5s; animation-delay: 0.5s; }
.card-5 { bottom: 28%; right: 4%; animation-duration: 8s; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 33% { transform: translateY(-14px) rotate(4deg); } 66% { transform: translateY(8px) rotate(-3deg); } }

/* ===== Category Filter ===== */
.filter-section { padding: 36px 0 0; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  padding: 7px 18px; border-radius: 50px;
  background: var(--bg-glass); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.filter-tab:hover { color: var(--text); border-color: rgba(124,109,250,0.4); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 4px 16px rgba(124,109,250,0.4); }

/* ===== Sections ===== */
.featured-section, .games-section { padding: 48px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 1.4rem; font-weight: 800; color: white; letter-spacing: -0.5px; }
.section-desc { font-size: 13px; color: var(--text-muted); }

/* ===== Featured Grid ===== */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px; min-height: 280px;
}
.featured-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
  background: var(--bg-card2); border: 1px solid var(--border);
  transition: var(--transition);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 280px;
}
.featured-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--border-hover); }
.featured-card.main-card { grid-row: span 2; min-height: 420px; }
.featured-card-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #111118, #1a1030);
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem; overflow: hidden;
}
.featured-card-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.featured-card-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
}
.featured-card-content { position: relative; z-index: 1; padding: 20px; }
.featured-card-tag {
  display: inline-block; padding: 3px 9px; border-radius: 4px;
  background: rgba(124,109,250,0.8); font-size: 10px; color: white;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px;
}
.featured-card-name { font-size: 1.2rem; font-weight: 800; color: white; margin-bottom: 5px; letter-spacing: -0.3px; }
.featured-card-desc { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-card-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.featured-rating { display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: 13px; font-weight: 700; }
.featured-plays { font-size: 12px; color: var(--text-muted); }

/* ===== Game Cards Grid ===== */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.games-grid.list-view { grid-template-columns: 1fr; }
.games-grid.list-view .game-card { flex-direction: row; height: 110px; }
.games-grid.list-view .game-card-cover { width: 170px; flex-shrink: 0; border-radius: var(--radius) 0 0 var(--radius); height: 100%; }

.game-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: var(--transition); cursor: pointer;
  display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--border-hover); }

.game-card-cover {
  height: 155px; overflow: hidden;
  background: linear-gradient(135deg, #111118, #1a1030);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; flex-shrink: 0;
}
.game-card-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.game-card-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--primary); color: white;
  padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase;
}

.game-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.game-card-name { font-size: 14px; font-weight: 700; color: white; margin-bottom: 3px; letter-spacing: -0.2px; }
.game-card-genre { font-size: 11px; color: var(--primary); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.game-card-desc { font-size: 12px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; margin-bottom: 10px; line-height: 1.5; }
.game-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }
.card-rating { display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: 13px; font-weight: 700; }
.card-plays { font-size: 11px; color: var(--text-dim); }

.view-options { display: flex; gap: 4px; }
.view-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--bg-glass); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 15px; cursor: pointer;
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.view-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 32px 0; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; cursor: pointer;
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.page-btn:hover { color: var(--text); border-color: var(--border-hover); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== Loading / Empty ===== */
.loading-placeholder { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 80px; color: var(--text-muted); }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 14px; opacity: 0.4; }
.empty-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  padding: 36px 24px 28px;
  margin-top: 64px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}
.footer-brand .logo-icon img { width: 28px; height: 28px; display: block; }
.footer-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  padding: 4px 14px;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: var(--transition);
  white-space: nowrap;
}
.footer-nav a:last-child { border-right: none; padding-right: 0; }
.footer-nav a:first-child { padding-left: 0; }
.footer-nav a:hover { color: var(--primary); }
.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}
/* legacy aliases — keep for JS i18n references */
.footer-content { display: none; }
.footer-meta { display: none; }
.footer-links { display: none; }
.footer-text { display: none; }

/* ===== Static Pages (Legal / About / Contact) ===== */
.lp-hero {
  background: linear-gradient(135deg, rgba(91,79,240,0.28) 0%, rgba(192,132,252,0.14) 100%);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px 60px;
  text-align: center;
}
.lp-hero-icon { font-size: 52px; margin-bottom: 18px; line-height: 1; }
.lp-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1.15;
}
.lp-hero-sub {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.lp-hero-tag {
  display: inline-block;
  background: rgba(124,109,250,0.18);
  color: var(--primary);
  border: 1px solid rgba(124,109,250,0.35);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.lp-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}
.lp-section {
  margin-bottom: 0;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lp-section:last-child { border-bottom: none; }
.lp-section h2 {
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
  margin-bottom: 12px;
  line-height: 1.4;
}
.lp-section p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 8px;
}
.lp-section p:last-child { margin-bottom: 0; }
.lp-section a { color: var(--primary); text-decoration: underline; }

/* Feature cards (About page) */
.lp-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.lp-feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  transition: var(--transition);
}
.lp-feature-card:hover { border-color: rgba(124,109,250,0.4); background: rgba(124,109,250,0.06); }
.lp-feature-icon { font-size: 26px; margin-bottom: 10px; }
.lp-feature-title { font-size: 14px; font-weight: 700; color: white; margin-bottom: 6px; }
.lp-feature-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  align-items: start;
  margin-top: 16px;
}
.contact-note {
  padding: 12px 16px;
  border: 1px solid rgba(124,109,250,0.25);
  border-radius: var(--radius-sm);
  background: rgba(124,109,250,0.08);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
}
.telegram-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
}
.telegram-card p {
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.telegram-qr-placeholder {
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
  border: 1px dashed rgba(124,109,250,0.5);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    rgba(9,9,15,0.7);
  background-size: 16px 16px;
}
.telegram-qr-placeholder span { font-size: 12px; color: var(--primary); font-weight: 800; }
.telegram-qr-placeholder strong { font-size: 2.2rem; line-height: 1; color: white; }
.telegram-qr-placeholder small { color: var(--text-muted); font-size: 11px; }
.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 12px;
  padding: 11px 22px;
  background: linear-gradient(135deg, #229ED9, #1a8bbf);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(34,158,217,0.3);
}
.tg-btn:hover { filter: brightness(1.1); box-shadow: 0 6px 20px rgba(34,158,217,0.45); transform: translateY(-1px); }

/* ===== Toast ===== */
.toast-container { position: fixed; top: 76px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 11px 18px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; box-shadow: var(--shadow);
  animation: slideIn 0.3s ease; display: flex; align-items: center; gap: 8px; font-family: inherit;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateX(100%); } }

/* ===== Google AdSense ===== */
.ad-footer-banner { display: none; }
.game-card.ad-card { display: none; }
.google-auto-placed,
ins.adsbygoogle,
iframe[id^="google_ads_iframe"],
iframe[id^="aswift_"],
div[id^="aswift_"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-card.main-card { grid-column: span 2; min-height: 280px; }
  .hero-visual { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .navbar {
    padding: 8px 16px 10px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .nav-container {
    height: auto;
    min-height: 48px;
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .nav-logo { font-size: 16px; }
  .logo-icon { font-size: 22px; }
  .nav-links {
    display: flex;
    margin-left: auto;
  }
  .lang-select {
    max-width: 104px;
    padding: 7px 24px 7px 9px;
    font-size: 12px;
  }
  .nav-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    min-height: 42px;
  }
  .nav-search input {
    padding: 11px 14px;
    font-size: 16px;
  }
  .search-btn {
    min-width: 44px;
    justify-content: center;
  }
  .hero-section {
    min-height: auto;
    padding: 42px 16px 30px;
    align-items: flex-start;
  }
  .hero-content { max-width: none; }
  .hero-badge {
    margin-bottom: 14px;
    font-size: 11px;
    padding: 5px 12px;
  }
  .hero-title {
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 1.05;
    margin-bottom: 14px;
  }
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    padding: 12px 8px;
  }
  .stat-item { padding: 0 8px; }
  .stat-item span { font-size: 1.25rem; }
  .stat-item small { font-size: 10px; }
  .stat-divider { display: none; }
  .filter-section { padding: 24px 0 0; }
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 16px 2px;
    margin: 0 -16px;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab {
    flex: 0 0 auto;
    padding: 8px 15px;
  }
  .featured-section,
  .games-section { padding: 30px 0; }
  .section-header {
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
  }
  .section-title { font-size: 1.18rem; }
  .section-desc { display: none; }
  .featured-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 12px;
  }
  .featured-card,
  .featured-card.main-card {
    grid-column: span 1;
    grid-row: auto;
    min-height: 220px;
  }
  .featured-card-content { padding: 16px; }
  .featured-card-name { font-size: 1rem; }
  .featured-card-bg { font-size: 5rem; }
  .games-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .game-card {
    min-height: 136px;
    flex-direction: row;
  }
  .game-card-cover {
    width: 116px;
    height: auto;
    min-height: 136px;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 3rem;
  }
  .game-card-body {
    min-width: 0;
    padding: 12px;
  }
  .game-card-name {
    font-size: 14px;
    line-height: 1.35;
  }
  .game-card-genre {
    font-size: 10px;
    line-height: 1.35;
    margin-bottom: 6px;
  }
  .game-card-desc {
    -webkit-line-clamp: 2;
    font-size: 12px;
    margin-bottom: 8px;
  }
  .game-card-footer { padding-top: 8px; }
  .view-options { display: none; }
  .pagination {
    padding: 24px 0 10px;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .page-btn {
    min-width: 42px;
    height: 42px;
    flex: 0 0 auto;
  }
  .loading-placeholder,
  .empty-state { padding: 48px 18px; }
  .footer {
    margin-top: 32px;
    padding: 28px 16px calc(20px + env(safe-area-inset-bottom));
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 0;
  }
  .footer-nav a {
    font-size: 12px;
    padding: 4px 10px;
  }
  .lp-hero { padding: 48px 20px 40px; }
  .lp-hero h1 { font-size: 1.9rem; }
  .lp-body { padding: 32px 20px 64px; }
  .lp-features { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .telegram-card { flex-direction: row; align-items: center; gap: 20px; padding: 16px; }
}
@media (min-width: 641px) and (max-width: 768px) {
  .hero-section { padding: 56px 16px; }
  .hero-title { font-size: 2rem; letter-spacing: -1px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card.main-card { grid-column: span 1; min-height: 240px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
  .game-card-cover { height: 120px; }
}
@media (max-width: 480px) {
  .hero-section { padding: 36px 16px 28px; }
  .games-grid { grid-template-columns: 1fr; }
  .game-card-cover { height: auto; }
}
