:root {
  --bg: #f6f1e9;
  --bg-card: #fffdf9;
  --text: #1f1b17;
  --muted: #6d655c;
  --accent: #c00e0e;
  --line: #e4dccf;
  --shadow: 0 1px 2px rgb(60 40 20 / .06), 0 12px 32px -12px rgb(60 40 20 / .18);
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120f;
    --bg-card: #1e1a16;
    --text: #f1ebe3;
    --muted: #a59b8f;
    --accent: #ff4a3d;
    --line: #2f2923;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

/* ---------- Header ---------- */

.hero {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6.5rem) 1rem clamp(2rem, 6vw, 4rem);
  text-align: center;
}

.hero h1 { margin: 0; }

.logo {
  width: min(22rem, 70vw);
  margin: 0 auto;
}

.kicker {
  margin: 1.75rem 0 0;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.intro {
  margin: .75rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  text-wrap: balance;
}

/* ---------- Games ---------- */

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem clamp(3rem, 8vw, 5rem);
}

.game {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.game picture {
  width: 72%;
  max-width: 13rem;
  margin-bottom: 1.25rem;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

@media (max-width: 30rem) {
  .game picture { width: 58%; }
}

.game picture img {
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / .18));
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .game:hover picture { transform: translateY(-6px) rotate(-1.5deg); }
}

.game h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.meta {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.desc {
  margin: .6rem 0 1.25rem;
  font-size: .95rem;
  text-wrap: pretty;
}

.store { margin-top: auto; }

.store img { width: 8.5rem; }

.store {
  border-radius: .6rem;
  transition: transform .2s;
}
.store:hover { transform: scale(1.04); }
.store:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.highlight {
  margin: .6rem 0 0;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

/* ---------- Footer ---------- */

.footer {
  padding: 2.5rem 1rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}

.footer p { margin: .75rem 0 0; }

.footer a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.footer a:hover { color: var(--accent); text-decoration-color: currentColor; }

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
}
.social a { text-decoration: none; color: var(--text); }

/* ---------- Text pages (privacy policy) ---------- */

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

.page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.page-top .logo { width: 7rem; margin: 0; }

.page-top .back { font-size: .9rem; color: var(--muted); }

.page h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.2; margin: 0 0 1.5rem; }

.page a { color: var(--accent); }
