/* Home page refresh (November 2026): game wall in the hero, «What's new», game filters, new game covers. */

/* Hero: a live wall of games instead of the quiz duel card. */
.hero-wall { position: relative; padding: 18px; border: 1px solid #3a316d; border-radius: 34px;
  background: linear-gradient(155deg, #1a1433, #0d1322); box-shadow: 0 40px 120px #5d42d640; overflow: hidden; }
.wall-glow { position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 999px;
  background: radial-gradient(circle, #7c5cff66, transparent 70%); pointer-events: none; }
.wall-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wall-tile { position: relative; aspect-ratio: 1 / .92; border-radius: 20px; padding: 12px; display: flex; flex-direction: column;
  justify-content: space-between; overflow: hidden; border: 1px solid rgba(255,255,255,.09);
  animation: wall-float 6s ease-in-out infinite; }
.wall-tile:nth-child(3n+2) { animation-delay: -2s; }
.wall-tile:nth-child(3n) { animation-delay: -4s; }
.wall-tile::after { content: ''; position: absolute; width: 90px; height: 90px; right: -34px; top: -34px; border-radius: 999px; background: rgba(255,255,255,.12); }
.wall-tile span { font-size: 34px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.wall-tile b { position: relative; z-index: 1; font-size: 13px; line-height: 1.15; font-weight: 850; }
.wall-tile.t0 { background: linear-gradient(140deg, #14775d, #073c35); }
.wall-tile.t1 { background: linear-gradient(140deg, #7657bd, #302453); }
.wall-tile.t2 { background: linear-gradient(140deg, #be7c42, #603618); }
.wall-tile.t3 { background: linear-gradient(140deg, #3f7d4f, #173d24); }
.wall-tile.t4 { background: linear-gradient(140deg, #ef473e, #9f1622); }
.wall-tile.t5 { background: linear-gradient(140deg, #2d9ce9, #1944a2); }
@keyframes wall-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.wall-live { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #cfd3e6; font-size: 13px; font-weight: 700; }
.wall-live i { width: 9px; height: 9px; border-radius: 9px; background: #34d399; box-shadow: 0 0 0 0 #34d39980; animation: wall-pulse 1.8s infinite; }
@keyframes wall-pulse { 0% { box-shadow: 0 0 0 0 #34d39999; } 70% { box-shadow: 0 0 0 10px #34d39900; } 100% { box-shadow: 0 0 0 0 #34d39900; } }
.wall-new { position: relative; margin-top: 12px; width: fit-content; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 999px;
  background: rgba(10,12,22,.82); border: 1px solid #f9c74f66; color: #f7f7fb; font-size: 12px; font-weight: 750; backdrop-filter: blur(6px); }
.wall-new b { padding: 3px 8px; border-radius: 999px; background: var(--yellow); color: #1b1300; font-size: 10px; letter-spacing: .8px; }
.wall-new:hover { border-color: var(--yellow); }
nav a.nav-new { color: var(--yellow); }

/* What's new. */
.new-section { margin-top: 90px; }
.new-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.new-card { position: relative; padding: 24px; border-radius: 24px; border: 1px solid #2a3046; background: linear-gradient(150deg, #151a2b, #0f1320); overflow: hidden; }
.new-card::before { content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--violet), var(--cyan)); opacity: .9; }
.new-card.cards::before { background: linear-gradient(90deg, #14b88a, #22d3ee); }
.new-card.board::before { background: linear-gradient(90deg, #f9c74f, #f3722c); }
.new-card.party::before { background: linear-gradient(90deg, #7c5cff, #f72585); }
.new-card.vip { background: linear-gradient(150deg, #2a2108, #14100a); border-color: #6b5420; }
.new-card.vip::before { background: linear-gradient(90deg, #f9c74f, #ffe8a3); }
.new-card.soon { border-style: dashed; }
.new-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.07); font-size: 28px; }
.new-card h3 { margin: 16px 0 6px; font-size: 19px; line-height: 1.25; }
.new-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.new-note { margin: 22px 0 0; padding: 14px 18px; border-radius: 16px; background: #141a2b; border: 1px solid #262c40; color: #c7cbe0; font-size: 14px; }

/* Games: filter chips and covers for every game. */
.game-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -10px 0 24px; }
.game-filters button { padding: 9px 16px; border-radius: 999px; border: 1px solid #2c3247; background: #11162a; color: #cfd3e6; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.game-filters button:hover { border-color: #7765df; }
.game-filters button.active { background: var(--violet); border-color: var(--violet); color: #fff; }
.game-card[hidden] { display: none; }
.game-card.is-new .game-cover::after { content: 'NEW'; width: auto; height: auto; left: auto; bottom: auto; right: 16px; top: 16px; padding: 3px 9px; border: 0;
  border-radius: 999px; background: var(--yellow); color: #1b1300; font-size: 10px; font-weight: 900; letter-spacing: .8px; z-index: 2; }
.game-card.is-soon { opacity: .9; }
.game-card.is-soon .game-type { background: rgba(249,199,79,.22); color: #ffe39a; }
.chess .game-cover { background: linear-gradient(135deg, #5a6378, #1f2533); }
.gomoku .game-cover { background: linear-gradient(135deg, #b98b56, #5c3b1d); }
.hexiki .game-cover { background: linear-gradient(135deg, #1fb5a5, #0e5450); }
.pool .game-cover { background: linear-gradient(135deg, #1f8f4d, #0b4426); }
.azi .game-cover { background: linear-gradient(135deg, #c2464f, #5d1422); }
.alias .game-cover { background: linear-gradient(135deg, #f08a24, #a23c12); }
.whoami .game-cover { background: linear-gradient(135deg, #8b5cf6, #3b1d8f); }
.kozel .game-cover { background: linear-gradient(135deg, #3f7d4f, #173d24); }
.game101 .game-cover { background: linear-gradient(135deg, #a4283f, #4b0d1c); }
.domino .game-cover { background: linear-gradient(135deg, #7a5230, #2f1f12); }
.agents .game-cover { background: linear-gradient(135deg, #3a4170, #12142a); }
.imagine .game-cover { background: linear-gradient(135deg, #6b2fb3, #1b0f3b); }
.g2048 .game-cover { background: linear-gradient(135deg, #c9a24a, #6b5236); }

/* Quiz card hint in every language (styles.css hard-codes the Russian one). */
html[lang="en"] .quiz-card::after { content: 'PLAY WITH FRIENDS  →'; }
html[lang="kk"] .quiz-card::after { content: 'ДОСТАРМЕН ОЙНА  →'; }

@media (max-width: 980px) {
  .hero-wall { max-width: 520px; }
  .new-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero-wall { padding: 12px; border-radius: 26px; }
  .wall-grid { gap: 8px; }
  .wall-tile { border-radius: 16px; padding: 9px; }
  .wall-tile span { font-size: 26px; }
  .wall-tile b { font-size: 11px; }
  .new-grid { grid-template-columns: 1fr; }
  .game-filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .game-filters button { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .wall-tile, .wall-live i { animation: none; } }

/* Team member under the founder block. */
.team-chip { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid #2c3350;
  background: #131a2c; color: inherit; text-decoration: none; }
.team-chip:hover { border-color: var(--violet); }
.team-chip-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, #7c5cff, #22d3ee); }
.team-chip b { display: block; font-size: 15px; }
.team-chip small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
