@font-face { font-family: 'Fredoka'; font-weight: 500 700; font-display: swap; src: url(/assets/fredoka.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson'; font-weight: 400; font-display: swap; src: url(/assets/atkinson-400.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson'; font-weight: 700; font-display: swap; src: url(/assets/atkinson-700.woff2) format('woff2'); }

:root {
  --ink: #1a2240;
  --peach: #ffe2aa;
  --sun: #f7a928;
  --paw: #f48fb1;
  --pad: #b9beef;
  --sheet: #fffaf0;
  --line: 3px solid var(--ink);
  --lift: 6px 6px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--peach);
  color: var(--ink);
  font: 400 1.0625rem/1.6 'Atkinson', system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, .btn, .brand { font-family: 'Fredoka', 'Atkinson', sans-serif; font-weight: 700; line-height: 1.1; }

.wrap { width: min(100% - 32px, 1040px); margin-inline: auto; }

/* Header */
.top { padding: 20px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; text-decoration: none; }
.brand img { width: 44px; }
.top nav a { font-weight: 700; }

/* Hero */
.hero { padding: 24px 0 56px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.hero img { width: min(360px, 80%); margin-inline: auto; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); margin: 0 0 16px; letter-spacing: -0.01em; }
.hero p { font-size: 1.2rem; max-width: 34ch; margin: 0; }
@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .hero img { order: 2; width: 100%; max-width: 400px; }
}

/* Games */
.games { padding: 0 0 72px; }
.games h2 { font-size: 2rem; margin: 0 0 24px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile {
  background: var(--sheet);
  border: var(--line);
  border-radius: 22px;
  box-shadow: var(--lift);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tile-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: var(--line); }
.tile-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile h3 { font-size: 1.5rem; margin: 0; }
.tile p { margin: 0; flex: 1; }
.tile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }
.soon { font-weight: 700; opacity: 0.7; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--sheet);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 1.05rem;
  transition: transform 120ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

/* Policy pages */
.sheet {
  background: var(--sheet);
  border: var(--line);
  border-radius: 22px;
  box-shadow: var(--lift);
  padding: clamp(22px, 5vw, 48px);
  margin: 8px auto 72px;
  max-width: 760px;
}
.sheet h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin: 0 0 6px; }
.sheet h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.sheet h3 { font-size: 1.2rem; margin: 24px 0 6px; }
.sheet p, .sheet li { max-width: 65ch; }
.updated { margin: 0 0 24px; opacity: 0.75; }
.services { padding-left: 1.2em; }
.services li { margin-bottom: 8px; }
.toc { padding-left: 1.2em; }

/* Footer */
.foot { border-top: var(--line); padding: 28px 0 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
.tile .plays { flex: 0; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.05rem; }
