/* ============================================
   GAMES SECTION STYLES
   ============================================ */
.games-page-wrap { background: #0d0d1f; }
.games-page-wrap .container { color: white; }
.games-page-wrap .section-title { color: white; }
.games-page-wrap .all-games-list { border-color: rgba(255,255,255,.1); }
.games-page-wrap .game-list-row { background: rgba(255,255,255,.05); border-bottom-color: rgba(255,255,255,.08); color: white; }
.games-page-wrap .game-list-row:hover { background: rgba(255,255,255,.1); }
.games-page-wrap .game-list-name { color: white; }
.games-page-wrap .game-list-genre { color: rgba(255,255,255,.55); }
.games-page-wrap .game-list-dl { color: rgba(255,255,255,.4); }
.games-page-wrap .game-rank { color: rgba(255,255,255,.3); }
.games-page-wrap .section-header { border-color: rgba(255,255,255,.1); }
.games-hero { background: linear-gradient(135deg, #0f0f1a 0%, #1a1a3e 50%, #0d1b2a 100%); padding: 32px 0 24px; color: white; }
.games-hero-title { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 800; margin-bottom: 8px; }
.games-hero-sub { color: rgba(255,255,255,.7); font-size: .95rem; margin-bottom: 20px; }
.game-cats-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.game-cats-scroll::-webkit-scrollbar { display: none; }
.game-cat-chip { display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 9999px; color: white; font-size: .82rem; font-weight: 500; white-space: nowrap; transition: all .15s; flex-shrink: 0; }
.game-cat-chip:hover { background: #4F46E5; border-color: #4F46E5; }

/* ============================================
   FULL-WIDTH MOSAIC GAME GRID
   Large tiles = 2 cols × 2 rows
   Small tiles = 1 col × 1 row (50% height of large)
   2 small tiles stacked = 1 large tile height
   ============================================ */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 6px;
  padding: 6px;
  width: 100%;
  box-sizing: border-box;
}
.mosaic-grid-cont {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 6px;
  padding: 6px;
  width: 100%;
  box-sizing: border-box;
}

/* Large tile — 2 cols wide, 2 rows tall */
.mosaic-tile { position: relative; overflow: hidden; cursor: pointer; transition: transform .2s; border-radius: 12px; }
.mosaic-tile:hover { transform: scale(1.03); z-index: 2; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mosaic-large {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.mosaic-small {
  grid-column: span 1;
  grid-row: span 1;
}

/* Overlays */
.mosaic-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
}
.mosaic-name { display: block; color: white; font-size: 1rem; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.5); line-height: 1.2; }
.mosaic-genre { display: block; color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 500; margin-top: 3px; }

.mosaic-small-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 4px 5px;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  color: white;
  font-size: .58rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
  .mosaic-grid, .mosaic-grid-cont { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; }
}
@media (max-width: 600px) {
  .mosaic-grid, .mosaic-grid-cont { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 90px; gap: 4px; padding: 4px; }
  .mosaic-large { grid-column: span 2; grid-row: span 2; border-radius: 12px; }
  .mosaic-name { font-size: .85rem; }
}

/* Legacy - keep for other uses */
.featured-game-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 24px; }
.game-tile-large { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1; grid-column: span 2; grid-row: span 2; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,.25); transition: transform .2s; }
.game-tile-large:hover { transform: scale(1.02); }
.game-tile-large img { width: 100%; height: 100%; object-fit: cover; }
.game-tile-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 14px 14px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.game-tile-name { display: block; color: white; font-size: 1rem; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.game-tile-genre { display: block; color: rgba(255,255,255,.75); font-size: .75rem; font-weight: 500; margin-top: 2px; }
.game-tile-small { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; cursor: pointer; transition: transform .15s; }
.game-tile-small:hover { transform: scale(1.05); }
.game-tile-small img { width: 100%; height: 100%; object-fit: cover; }
.game-tile-small-name { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 6px 6px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: white; font-size: .65rem; font-weight: 700; text-align: center; }

/* Game categories grid */
.game-categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px; }
.game-category-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: #1a1a2e; border-radius: 16px; color: white; transition: all .15s; border: 1px solid rgba(255,255,255,.08); }
.game-category-card:hover { background: #4F46E5; border-color: #4F46E5; }
.game-cat-icon { font-size: 2rem; flex-shrink: 0; }
.game-cat-name { display: block; font-weight: 700; font-size: .9rem; }
.game-cat-count { display: block; font-size: .75rem; opacity: .65; }

/* All games list */
.all-games-list { display: flex; flex-direction: column; border: 1px solid #E5E7EB; border-radius: 16px; overflow: hidden; }
.game-list-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: white; border-bottom: 1px solid #E5E7EB; transition: background .1s; }
.game-list-row:last-child { border-bottom: none; }
.game-list-row:hover { background: #F9FAFB; }
.game-rank { font-size: .8rem; font-weight: 700; color: #9CA3AF; min-width: 24px; }
.game-list-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.game-list-info { flex: 1; min-width: 0; }
.game-list-name { display: block; font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-list-genre { display: block; font-size: .75rem; color: #6B7280; }
.game-list-rating { display: flex; align-items: center; gap: 3px; font-size: .8rem; font-weight: 600; }
.game-list-dl { font-size: .75rem; color: #9CA3AF; min-width: 50px; text-align: right; }

/* ============================================
   LP VARIATION 1 — GAMES (cyan/dark grid)
   ============================================ */
body:has(.lp-games-page) { background: #0a0a1a; }
.lp-games-page { background: #0a0a1a; min-height: 100vh; }
.lp-header { background: linear-gradient(135deg, #0061ff, #6f00ff); padding: 40px 0; text-align: center; }
.lp-header h1 { color: white; font-size: clamp(1.5rem,4vw,2.5rem); font-weight: 900; margin-bottom: 8px; }
.lp-header p { color: rgba(255,255,255,.8); font-size: 1rem; }
.lp-grid-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.lp-featured-section { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 8px; padding: 20px 0 12px; }
.lp-featured-tile { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform .2s; }
.lp-featured-tile img { width: 100%; height: 100%; object-fit: cover; }
.lp-featured-xl { grid-column: span 2; grid-row: span 2; min-height: 200px; }
.lp-featured-lg { grid-column: span 2; grid-row: span 2; min-height: 200px; }
.lp-featured-md { grid-column: span 2; grid-row: span 1; min-height: 100px; }
.lp-featured-tile:hover { transform: scale(1.02); }
.lp-tile-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.lp-tile-name { display: block; color: white; font-size: .95rem; font-weight: 800; }
.lp-tile-genre { display: block; color: rgba(255,255,255,.7); font-size: .72rem; margin-bottom: 6px; }
.lp-tile-btn { display: inline-block; padding: 4px 12px; background: #4F46E5; color: white; border-radius: 9999px; font-size: .72rem; font-weight: 700; }
.lp-small-tile { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: pointer; transition: transform .15s; }
.lp-small-tile:hover { transform: scale(1.08); }
.lp-small-tile img { width: 100%; height: 100%; object-fit: cover; }
.lp-games-row { padding: 20px 0; }
.lp-games-row h2 { color: white; font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.lp-row-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px,1fr)); gap: 8px; }
.lp-row-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.lp-row-tile img { width: 68px; height: 68px; border-radius: 14px; object-fit: cover; transition: transform .15s; }
.lp-row-tile:hover img { transform: scale(1.1); }
.lp-row-tile span { color: rgba(255,255,255,.8); font-size: .68rem; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-categories { padding: 20px 0 32px; }
.lp-categories h2 { color: white; font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.lp-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 10px; }
.lp-cat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; background: rgba(255,255,255,.08); border-radius: 16px; color: white; cursor: pointer; transition: background .15s; text-align: center; }
.lp-cat-tile:hover { background: #4F46E5; }
.lp-cat-icon { font-size: 1.8rem; }
.lp-cat-name { font-size: .8rem; font-weight: 700; }
.lp-cat-count { font-size: .7rem; opacity: .6; }

/* ============================================
   LP VARIATION 2 — APPS (premium dark)
   ============================================ */
.lp-apps-page { background: #F9FAFB; }
.lp-apps-hero { background: linear-gradient(135deg, #111827, #1e3a5f); padding: 48px 0; text-align: center; }
.lp-apps-hero h1 { color: white; font-size: clamp(1.5rem,4vw,2.5rem); font-weight: 900; margin-bottom: 10px; }
.lp-apps-hero p { color: rgba(255,255,255,.75); font-size: 1rem; margin-bottom: 24px; }
.lp-apps-cta { display: inline-block; padding: 12px 28px; background: #4F46E5; color: white; border-radius: 9999px; font-weight: 700; font-size: .95rem; transition: transform .15s; }
.lp-apps-cta:hover { transform: translateY(-2px); }
.lp-apps-featured { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.lp-app-hero-card { display: flex; gap: 20px; align-items: center; padding: 20px; background: white; border-radius: 16px; border: 1px solid #E5E7EB; transition: box-shadow .2s; }
.lp-app-hero-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,.1); }
.lp-app-hero-card img { width: 80px; height: 80px; border-radius: 18px; object-fit: cover; flex-shrink: 0; }
.lp-app-hero-info h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.lp-app-hero-info p { font-size: .85rem; color: #6B7280; margin-bottom: 10px; line-height: 1.5; }
.lp-app-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.lp-app-cat { padding: 3px 10px; background: #EEF2FF; color: #4F46E5; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.lp-app-rating { display: flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; }
.lp-app-downloads { font-size: .78rem; color: #6B7280; }
.lp-app-btn { display: inline-block; padding: 8px 20px; background: #4F46E5; color: white; border-radius: 12px; font-weight: 700; font-size: .85rem; }
.lp-section-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.lp-apps-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); gap: 12px; margin-bottom: 24px; }
.lp-app-icon-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; background: white; border-radius: 16px; border: 1px solid #E5E7EB; text-align: center; cursor: pointer; transition: all .15s; }
.lp-app-icon-tile:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,.1); border-color: #4F46E5; }
.lp-app-icon-tile img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.lp-app-icon-name { font-size: .72rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-app-icon-cat { font-size: .65rem; color: #6B7280; }
.lp-app-icon-rating { display: flex; align-items: center; gap: 2px; font-size: .7rem; font-weight: 600; }
.lp-cats-grid { display: flex; flex-direction: column; gap: 8px; }
.lp-cat-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: white; border-radius: 12px; border: 1px solid #E5E7EB; font-weight: 600; font-size: .9rem; transition: all .15s; }
.lp-cat-row:hover { border-color: #4F46E5; color: #4F46E5; }
.lp-cat-row-count { font-size: .82rem; color: #4F46E5; font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
  .featured-game-grid { grid-template-columns: repeat(4, 1fr); }
  .game-tile-large { grid-column: span 2; grid-row: span 2; }
  .lp-featured-section { grid-template-columns: repeat(4, 1fr); }
  .lp-featured-xl, .lp-featured-lg { grid-column: span 2; }
  .game-categories-grid { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); }
  .lp-apps-icon-grid { grid-template-columns: repeat(auto-fill, minmax(80px,1fr)); }
}
@media (max-width: 480px) {
  .featured-game-grid { grid-template-columns: repeat(3, 1fr); }
  .game-tile-large { grid-column: span 3; grid-row: span 2; }
  .lp-app-hero-card { flex-direction: column; text-align: center; }
}
