:root {
  color-scheme: light;
  --muted: #596174;
  --ink: var(--muted);
  --icon-surface: rgba(89, 97, 116, 0.72);
  --icon-surface-strong: rgba(62, 68, 84, 0.9);
  --line: rgba(111, 82, 178, 0.18);
  --panel: rgba(255, 255, 255, 0.88);
  --purple: #8d68db;
  --pink: #d96aa6;
  --teal: #00b6a7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(141, 104, 219, 0.22), transparent 32rem),
    radial-gradient(circle at 92% 12%, rgba(217, 106, 166, 0.22), transparent 28rem),
    linear-gradient(135deg, #ffffff 0%, #f5f7fb 45%, #eef3ff 100%);
}

.stats-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) 0 clamp(34px, 5vw, 64px);
}

.hero,
.total-card,
.game-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(47, 36, 87, 0.12);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  min-height: 310px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 26px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -9% -34% 47%;
  height: 260px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(141, 104, 219, 0.38), rgba(217, 106, 166, 0.3), rgba(0, 182, 167, 0.22));
  filter: blur(42px);
  transform: rotate(-8deg);
}

.brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-icon {
  width: clamp(104px, 9vw, 132px);
  height: clamp(104px, 9vw, 132px);
  border-radius: 28px;
  box-shadow: 0 16px 34px rgba(87, 66, 160, 0.24);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 720;
  line-height: 1.45;
}

.totals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 30px);
  margin-top: clamp(28px, 4vw, 44px);
}

.total-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  border-radius: 20px;
}

.total-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 18px;
}

.total-card p,
.game-card span {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.total-card strong {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.games-section {
  margin-top: clamp(56px, 7vw, 86px);
}

.section-heading {
  display: block;
  margin-bottom: clamp(24px, 4vw, 36px);
  text-align: center;
}

h2 {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  letter-spacing: 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.game-card {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 190px;
  padding: 18px 12px;
  border-radius: 18px;
  text-align: center;
}

.game-card img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  padding: 10px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, var(--icon-surface), var(--icon-surface-strong)),
    #596174;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 24px rgba(89, 97, 116, 0.18);
}

.game-card strong {
  margin-top: 12px;
  color: var(--muted);
  font-size: 2.2rem;
  line-height: 1;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(54px, 7vw, 82px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  text-decoration: none;
}

.footer img {
  width: 220px;
  max-width: 44vw;
  height: auto;
}

[dir="rtl"] .brand-row,
[dir="rtl"] .total-card,
[dir="rtl"] .footer {
  direction: rtl;
}

@media (max-width: 980px) {
  .totals-grid,
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

  @media (max-width: 620px) {
  .stats-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .hero {
    min-height: 0;
    padding: 24px;
    border-radius: 20px;
  }

  .brand-row {
    align-items: flex-start;
  }

  .app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .totals-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .total-card {
    align-items: flex-start;
  }

}
