:root {
  color-scheme: light;
  --bg: #f6f7eb;
  --card: #ffffff;
  --ink: #393e41;
  --muted: #5a5f63;
  --accent: #e94f37;
  --border: #d9dcd0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Avenir", "Trebuchet MS", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

#bg-dots {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.4rem;
}

.brand-text p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
}

.hero {
  padding: 44px 0 24px;
}

.hero h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.hero p {
  max-width: 600px;
  color: var(--muted);
  margin: 0;
}

.hero .wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 32px;
  box-shadow: 0 12px 30px rgba(57, 62, 65, 0.08);
}

.games {
  padding: 32px 0 80px;
}

.games h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.game-grid {
  display: grid;
  gap: 24px;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(233, 79, 55, 0.12);
  border-radius: 20px;
  padding: 24px;
  align-items: center;
  backdrop-filter: blur(10px) saturate(120%);
  box-shadow:
    0 10px 30px rgba(57, 62, 65, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(57, 62, 65, 0.08);
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      120% 120% at 0% 0%,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.15) 40%,
      rgba(255, 255, 255, 0) 70%
    );
  opacity: 0.9;
  pointer-events: none;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: -40% 20% auto auto;
  width: 140%;
  height: 140%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: translateY(-20%);
  opacity: 0.35;
  pointer-events: none;
}

.game-card > * {
  position: relative;
  z-index: 1;
}

.game-meta h4 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.game-meta p {
  margin: 0 0 16px;
  color: var(--muted);
}

.app-link {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.game-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: #f1ede6;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 26px;
  width: fit-content;
}

@media (max-width: 840px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .game-image {
    height: 200px;
  }
}
