/* Compact refresh of the existing catalogue. */
body.home { background: #101019; font-family: 'Segoe UI', Arial, sans-serif; }
.home .top-nav { position: relative; padding: 12px 72px 12px 24px; gap: 24px; background: rgba(12,16,24,.8); border-color: #26313f; }
.home .nav-links { gap: 18px; }
.home .nav-links a { color: #b7c4d5; text-transform: none; letter-spacing: 0; }
.home .nav-social { display: flex; }
.home .admin-btn { top: 12px; right: 16px; bottom: auto; width: 36px; height: 36px; font-size: 18px; border: 1px solid #344051; }
.home .container { max-width: 1320px; padding: 0 28px; }
.home .header-section { padding: 28px 0 20px; }
.home .title { font-family: 'Segoe UI', Arial, sans-serif; font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; text-transform: none; margin: 0; background: linear-gradient(100deg, #70efd7 20%, #a6a3ff 80%); background-clip: text; -webkit-background-clip: text; filter: none; }
.home .header-caption { color: #a6b3c5; font-size: 14px; margin-top: 5px; }
.home .platform-buttons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.home .platform-btn { width: auto; min-height: 48px; padding: 10px 8px; border-radius: 12px; background: #171f2c; border: 1px solid #303c4d; letter-spacing: 0; text-transform: none; font-size: 14px; font-family: inherit; transition: background .18s, border-color .18s, transform .18s; }
.home .platform-btn:hover { background: #243343; box-shadow: none; transform: translateY(-2px); }
.home .platform-btn.active { background: #72e4ce; color: #10251f; border-color: #72e4ce; box-shadow: 0 4px 18px #72e4ce18; }
.home .platform-btn.sales-btn { background: #302234 !important; border: 1px solid #66445f !important; color: #f4c1e2; }
.home .platform-btn.sales-btn.active { background: #ebafd6 !important; color: #302234 !important; border-color: #ebafd6 !important; }
.home .games-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; padding-bottom: 40px; }
.home .game-card { background: #171f2b; border-color: #2b3544; border-radius: 14px; transition: transform .18s, border-color .18s; }
.home .game-card:hover { transform: translateY(-4px); border-color: #72e4ce; box-shadow: 0 10px 24px #0004; }
.home .game-card:hover .game-image img { transform: scale(1.035); }
.home .game-title { font-size: 16px; padding: 15px 16px; line-height: 1.4; }
.home .new-badge { animation: none; box-shadow: none; font-size: 11px; padding: 4px 8px; }
.home .loading { grid-column: 1 / -1; text-align: center; padding: 32px 12px; letter-spacing: 0; animation: none; color: #b7c4d5; }
.home a:focus-visible, .home button:focus-visible { outline: 3px solid #b2a7ff; outline-offset: 4px; }
@media (max-width: 900px) { .home .platform-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .home .container { padding: 0 16px; }
  .home .top-nav { flex-direction: row; padding: 12px 60px 12px 16px; gap: 12px; justify-content: space-between; }
  .home .nav-links { width: 100%; flex-wrap: wrap; overflow: visible; gap: 3px 12px; padding: 0; }
  .home .nav-links a { font-size: 12px; padding: 2px 0; }
  .home .nav-social { gap: 8px; }
  .home .social-icon { flex-shrink: 0; }
  .home .header-section { padding: 20px 0 18px; }
  .home .platform-buttons { gap: 8px; margin-bottom: 20px; }
  .home .platform-btn { font-size: 12px; min-height: 44px; padding: 8px 3px; }
  .home .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home .game-title { font-size: 13px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .home *, .home *::before { animation: none !important; transition: none !important; } }

/* Arcade catalogue, v2. Solid canvas prevents background seams. */
.home .top-nav { background: #101019; border-bottom: 1px solid #ffffff0c; }
.home .nav-links a { color: #9695ab; }
.home .social-icon { box-shadow: none; }
.home .container { max-width: 1360px; }
.home .header-section { position: relative; text-align: left; padding: 30px 0 26px; }
.home .brand-eyebrow { color: #a8a0d0; font-size: 10px; font-weight: 700; letter-spacing: 3px; margin-bottom: 8px; }
.home .title { display: flex; align-items: center; gap: 10px; background: none; -webkit-text-fill-color: currentColor; color: #f6f3ff; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.12; font-weight: 850; letter-spacing: -2px; }
.home .title > span:first-child { color: #baa0ff; }
.home .title .brand-spark { color: #d1f77b; font-size: .7em; margin-left: 6px; }
.home .header-caption { color: #9592a7; margin-top: 10px; }
.home .platform-buttons { gap: 12px; padding: 0; margin-bottom: 28px; }
.home .platform-btn { --platform-color: #afa0ff; justify-content: flex-start; gap: 10px; min-height: 76px; padding: 14px; border-radius: 16px; border: 1px solid #ffffff12; background: #1d1c2a; box-shadow: 0 4px 0 #080810; font-size: 14px; }
.home .platform-btn[data-platform=yandex] { --platform-color: #ffcc59; }
.home .platform-btn[data-platform=crazygames] { --platform-color: #b69aff; }
.home .platform-btn[data-platform=poki] { --platform-color: #6ce1f2; }
.home .platform-btn[data-platform=assetstore] { --platform-color: #eeeeff; }
.home .platform-btn:hover { background: #282538; border-color: var(--platform-color); box-shadow: 0 4px 0 #080810; }
.home .platform-btn.active { color: #17121e; background: var(--platform-color); border-color: var(--platform-color); box-shadow: 0 4px 0 #8b6727, 0 8px 25px #ffcc5912; }
.home .platform-symbol { width: 30px; height: 30px; flex: 0 0 30px; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #d1f77b; }
.home .platform-symbol img { width: 28px; height: 28px; object-fit: contain; }
.home .platform-btn.sales-btn { background: #271d2d !important; border-color: #513649 !important; }
.home .platform-btn.sales-btn.active { background: #f2abcc !important; border-color: #f2abcc !important; box-shadow: 0 4px 0 #885874; }
.home .catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.home .catalog-heading h2 { font-size: 20px; font-weight: 700; color: #f1edf9; }
.home #catalog-count { font-size: 12px; color: #a5a0b6; border: 1px solid #ffffff15; border-radius: 20px; padding: 4px 11px; }
.home .games-grid { gap: 20px; }
.home .game-card { background: #1c1b29; border: 1px solid #ffffff0e; border-radius: 18px; box-shadow: 0 5px 0 #090911; }
.home .game-card:hover { border-color: #b99cff; transform: translateY(-5px); box-shadow: 0 8px 0 #090911, 0 12px 32px #0004; }
.home .game-link { display: flex; flex-direction: column; height: 100%; }
.home .game-image { order: 0; }
.home .game-title { order: 1; padding: 15px 16px 8px; font-weight: 650; min-height: 64px; color: #efebf7; }
.home .game-price { order: 2; }
.home .card-action { order: 3; display: block; margin: auto 16px 15px; padding-top: 8px; color: #c4adff; font-size: 12px; font-weight: 700; }
.home .game-card:hover .card-action { color: #d1f77b; }
@media (max-width: 1150px) and (min-width: 901px) { .home .platform-btn { flex-direction: column; justify-content: center; gap: 7px; padding: 12px 6px; } }
@media (max-width: 600px) {
  .home .header-section { padding: 22px 0; }
  .home .brand-eyebrow { font-size: 9px; letter-spacing: 2px; }
  .home .title { font-size: 36px; letter-spacing: -1.5px; gap: 7px; }
  .home .header-caption { font-size: 12px; }
  .home .platform-buttons { gap: 9px; margin-bottom: 24px; }
  .home .platform-btn { flex-direction: column; justify-content: center; min-height: 78px; padding: 10px 4px; gap: 5px; font-size: 12px; border-radius: 13px; }
  .home .platform-symbol { width: 26px; height: 26px; flex-basis: 26px; }
  .home .platform-symbol img { width: 24px; height: 24px; }
  .home .games-grid { gap: 12px; }
  .home .game-card { border-radius: 13px; }
  .home .game-title { padding: 12px 12px 6px; min-height: 58px; }
  .home .card-action { margin: auto 12px 12px; font-size: 11px; }
  .home .catalog-heading h2 { font-size: 18px; }
}

/* Stable columns and rows when switching between short and long catalogues. */
html:has(body.home) { scrollbar-gutter: stable; }
.home .games-grid { align-content: start; overflow-anchor: none; min-height: 55vh; }
/* Cards are opaque; backdrop blur only adds compositing cost during waves. */
.home .game-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
