@font-face {
  font-family: Fredoka;
  src: url(/fonts/fredoka.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url(/fonts/nunito.woff2) format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

/* The game check page's colors (verify-site/page/style.css), so the two look like one site */
:root {
  color-scheme: dark;
  --bg: #0d1823;
  --top: #0a131c;
  --card: #142434;
  --field: #0f1e2c;
  --line: #2a4560;
  --ink: #eef1e4;
  --soft: #a9b9c6;
  --hint: #7f93a5;
  --cyan: #5ee7ec;
  --cyan-hover: #8ff0f3;
  --on-cyan: #0b2233;
  --navy: #1e5176;
  --frog: #99bc51;
  --frog-light: #b5d46b;
  --on-frog: #142008;
  --belly: #d2d79b;
  --mud: #8e6b4c;
  --mud-light: #a98560;
  --on-mud: #1d130b;
  --blush: #f4a99a;
  --mint: #bfd6c2;
  --butter: #eee6cb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 Nunito, system-ui, sans-serif;
}

a { color: var(--cyan); }
a:hover { color: var(--butter); }
h1, h2, h3, h4 { font-family: Fredoka, Nunito, sans-serif; font-weight: 600; }
.soft { color: var(--soft); }
.quiet { color: var(--soft); }

/* ---- The header and the numbers, as on the game check page ---- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 3px solid var(--mud);
  background: url(/brand/watercolor.webp) center / cover, var(--butter);
  color: var(--on-cyan);
}
.brand { display: flex; align-items: center; gap: 4px; text-decoration: none; }
.logo { display: block; height: 76px; width: auto; }
.wordmark { display: block; height: 40px; width: auto; }
.top .right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; white-space: nowrap; }

.statbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 10px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.statwrap { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.stats { display: contents; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--soft); }
.stats li { white-space: nowrap; }
.stats strong { font-family: Fredoka, Nunito, sans-serif; font-weight: 600; font-size: 18px; color: var(--belly); }
.stats-when { margin: 0; font-size: 12px; color: var(--hint); }

.statlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.statlinks a { min-height: 40px; padding: 8px 16px; display: inline-flex; align-items: center; border-radius: 10px; font-weight: 800; font-size: 15px; text-decoration: none; }
.statlinks .go { background: var(--cyan); color: var(--on-cyan); }
.statlinks .go:hover { background: var(--cyan-hover); color: var(--on-cyan); }
.statlinks .ghost { border: 2px solid var(--mud-light); color: var(--ink); }
.statlinks .ghost:hover { background: var(--mud-light); color: var(--on-mud); }
.top .statlinks .go { background: var(--on-cyan); color: var(--ink); }
.top .statlinks .go:hover { background: var(--navy); color: var(--ink); }
.top .statlinks .ghost { border-color: var(--on-cyan); color: var(--on-cyan); }
.top .statlinks .ghost:hover { background: var(--on-cyan); color: var(--ink); }
.top :focus-visible { outline: 3px solid var(--on-cyan); outline-offset: 2px; }
.barlinks { display: none; }

/* The pages, under the numbers */
.pages {
  display: flex;
  gap: 6px;
  padding: 8px 20px;
  background: var(--top);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.pages a {
  flex: none;
  padding: 5px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-family: Fredoka, Nunito, sans-serif;
  font-weight: 600;
  font-size: 16px;
}
.pages a:hover { border-color: var(--mud-light); color: var(--ink); }
.pages a[aria-current] { background: var(--mud-light); color: var(--on-mud); }
.pages a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 1px; }

@media (min-height: 600px) {
  .masthead { position: sticky; top: 0; z-index: 4; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
}

.test-copy { margin: 0; padding: 6px 16px; background: var(--blush); color: var(--on-mud); font-weight: 800; font-size: 14px; text-align: center; }

/* ---- The page ---- */

main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }

.intro h1 { font-size: 40px; line-height: 1.1; margin: 32px 0 10px; }
.intro p { margin: 0 0 14px; color: var(--soft); max-width: 680px; }
.intro { margin-bottom: 22px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
  min-width: 0;
}
.panel h2 { font-size: 22px; margin: 0 0 8px; }
.panel h2 a { color: var(--ink); text-decoration: none; }
.panel h2 a:hover { color: var(--cyan); }
.panel > p { margin: 0 0 12px; }
.panel.check { border-color: var(--mud-light); }
.more { display: inline-block; margin-top: 10px; font-weight: 700; }

.day { font-size: 17px; margin: 16px 0 4px; color: var(--belly); }
.day .date { color: var(--soft); font-weight: 500; font-size: 15px; margin-left: 4px; }
.panel .day:first-of-type { margin-top: 4px; }
h2.day { font-size: 21px; }

/* A game on a line */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.cap { width: 120px; height: 45px; object-fit: cover; border-radius: 4px; background: var(--line); flex: none; display: block; }
.nopic { background: var(--line); display: block; }
.what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.name { font-weight: 700; line-height: 1.3; }
.name a { color: var(--ink); text-decoration: none; }
.name a:hover { color: var(--cyan); text-decoration: underline; }
.meta { color: var(--soft); font-size: 14px; }
.meta a { color: var(--soft); }
.meta a:hover { color: var(--cyan); }
.excerpt { color: var(--hint); font-size: 14px; line-height: 1.4; }
.post .cap { align-self: flex-start; margin-top: 3px; }

.tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--soft);
  white-space: nowrap;
  vertical-align: 1px;
}
.tag.new { background: var(--frog); border-color: var(--frog); color: var(--on-frog); }
.tag.demo { border-color: var(--cyan); color: var(--cyan); }
.tag.dlc { border-color: var(--mud-light); color: var(--butter); }
.tag.down { border-color: var(--blush); color: var(--blush); }

.pct { display: inline-block; padding: 0 7px; border-radius: 6px; background: var(--frog); color: var(--on-frog); font-weight: 900; }

/* Pill links that filter or sort a page */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pills a {
  border: 2px solid var(--mud-light);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.pills a span { color: var(--soft); font-weight: 600; }
.pills a:hover { background: var(--field); }
.pills a[aria-current] { background: var(--mud-light); color: var(--on-mud); }
.pills a[aria-current] span { color: var(--on-mud); }

/* Bigger cards with the store's wide picture */
.cards { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gcard, .featured { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.wide { display: block; width: 100%; height: auto; aspect-ratio: 460 / 215; object-fit: cover; background: var(--line); }
.pic-link { display: block; line-height: 0; }
.gcard .body, .featured .body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.gcard h3 { font-size: 19px; line-height: 1.2; margin: 0; }
.gcard h3 a { color: var(--ink); text-decoration: none; }
.gcard h3 a:hover { color: var(--cyan); }
.gcard p { margin: 0; }
.gcard .price { font-size: 18px; }
.gcard .desc { color: var(--soft); font-size: 15px; line-height: 1.4; }
.gcard blockquote { margin: 2px 0; padding: 6px 12px; border-left: 3px solid var(--mud-light); color: var(--belly); font-size: 15px; line-height: 1.45; }

/* The news */
.news-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; }
.news-list .featured { margin: 10px 0; background: var(--field); }
.featured h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.featured h3 a { color: var(--ink); text-decoration: none; }
.featured h3 a:hover { color: var(--cyan); }
.featured .meta, .featured p { margin: 0; }
.lead { color: var(--soft); font-size: 15px; line-height: 1.45; }
.lead h4 { margin: 10px 0 2px; font-size: 16px; color: var(--ink); }
.lead p { margin: 0 0 6px; }
.lead .item { margin: 0 0 2px; }
.day-group { margin-bottom: 18px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 0; font-weight: 700; }

/* The change log */
.changes h3 { font-size: 16px; margin: 14px 0 4px; }
.changes h3:first-of-type { margin-top: 6px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { padding: 3px 0; }
.lines a { color: var(--ink); font-weight: 700; text-decoration: none; }
.lines a:hover { color: var(--cyan); text-decoration: underline; }
.lines .note { color: var(--soft); font-size: 15px; }
.lines .note::before { content: " · "; }

.go {
  display: inline-flex;
  align-items: center;
  background: var(--cyan);
  color: var(--on-cyan);
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 800;
  min-height: 44px;
  text-decoration: none;
}
.go:hover { background: var(--cyan-hover); color: var(--on-cyan); }

footer { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; color: var(--soft); font-size: 15px; border-top: 1px solid var(--line); }
footer p { margin: 0 0 8px; }

/* Wide screens: more room, two columns where it helps */
@media (min-width: 1000px) {
  main, footer { max-width: 1180px; }
  .top, .statbar, .pages { padding-left: max(32px, calc((100% - 1180px) / 2 + 16px)); padding-right: max(32px, calc((100% - 1180px) / 2 + 16px)); }
  .panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
  .split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-list .featured { flex-direction: row; align-items: flex-start; }
  .news-list .featured .pic-link { flex: 0 0 320px; padding: 14px 0 14px 14px; }
  .news-list .featured .pic-link .wide { border-radius: 8px; }
}

@media (max-width: 760px) {
  .toplinks { display: none; }
  .barlinks { display: flex; }
  .masthead.scrolled .barlinks { display: none; }
}

@media (max-width: 520px) {
  .top { padding: 8px 12px; }
  .logo { height: 48px; }
  .wordmark { height: 22px; }
  .statbar { padding: 8px 12px; }
  .statwrap { width: 100%; gap: 4px; }
  .stats { display: flex; flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 6px 22px; padding: 0 24px 4px 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .statlinks { width: 100%; }
  .statlinks a { flex: 1; justify-content: center; }
  .pages { padding: 6px 8px; }
  .pages a { padding: 4px 11px; font-size: 15px; }
  .intro h1 { font-size: 30px; margin-top: 24px; }
  .panel { padding: 14px; }
  .cap { width: 92px; height: 35px; }
  .news-list { padding: 2px 12px; }
}
