/* Shared style for the plain-HTML site pages (Agent 5, 2026-11-08):
   /how-to-play /strategy /history /faq /about (public/*.html) and the
   Daily Games pages rendered by Pages Functions (functions/_lib/site.js).
   No app bundle loads on these pages: they are readable text for people
   and search crawlers, and they never create a guest account. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fef6f3;
  color: #2b2b3a;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: #1565c0; }
img { max-width: 100%; height: auto; }

.site-header {
  background: #1a1a2e;
  color: #fff;
  padding: 10px 16px;
}
.site-header .inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  margin-right: auto;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 15px; }
.site-nav a { color: #e8e8f0; text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; }
.site-nav a.play {
  background: #1976d2;
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  text-decoration: none;
}

main { max-width: 880px; margin: 0 auto; padding: 24px 16px 40px; }
article { max-width: 700px; }
h1 { font-size: 30px; line-height: 1.25; margin: 8px 0 6px; }
h2 { font-size: 21px; margin: 30px 0 6px; }
h3 { font-size: 17px; margin: 20px 0 4px; }
p, li { margin: 8px 0; }
ul, ol { padding-left: 22px; }
.lede { font-size: 18px; color: #4a4a5c; }
.meta { font-size: 14px; color: #6a6a7c; margin: 0 0 14px; }
figure { margin: 18px 0; }
figcaption { font-size: 14px; color: #6a6a7c; margin-top: 6px; }

.cta {
  display: inline-block;
  background: #1976d2;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  margin: 10px 10px 10px 0;
}
.cta.secondary { background: #fff; color: #1976d2; border: 2px solid #1976d2; }
.note {
  background: #fff;
  border: 1px solid #ecdcd6;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
}

/* Number boards (examples and the daily boards) */
.board {
  display: inline-grid;
  grid-template-columns: repeat(9, minmax(26px, 40px));
  gap: 4px;
  background: #1a1a2e;
  padding: 8px;
  border-radius: 12px;
  max-width: 100%;
}
.board span {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 17px;
  color: #1a1a2e;
}
.board span.empty { background: transparent; }
.board span.hl { background: #ffd54f; }
.board span.hl2 { background: #81c784; }

/* Daily Games tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}
.tile {
  display: block;
  background: #fff;
  border: 1px solid #ecdcd6;
  border-radius: 14px;
  padding: 14px 16px;
  color: #2b2b3a;
  text-decoration: none;
  height: 100%;
}
.tile:hover { border-color: #1976d2; }
.tile .num { font-size: 22px; font-weight: 800; color: #1a1a2e; }
.tile .date { font-size: 15px; font-weight: 800; color: #1a1a2e; }
.tile .facts { font-size: 13px; color: #6a6a7c; margin-top: 4px; }
.tile.today { border: 2px solid #1976d2; }
.tile .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #1976d2;
  border-radius: 999px;
  padding: 1px 10px;
  margin-left: 6px;
  vertical-align: middle;
}
.facts-table { border-collapse: collapse; margin: 12px 0; }
.facts-table td { padding: 4px 18px 4px 0; vertical-align: top; }
.facts-table td:first-child { color: #6a6a7c; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.site-footer {
  border-top: 1px solid #ecdcd6;
  padding: 22px 16px 34px;
  font-size: 14px;
  color: #6a6a7c;
}
.site-footer .inner { max-width: 880px; margin: 0 auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; }
.site-footer a { color: #4a4a5c; }

@media (max-width: 520px) {
  h1 { font-size: 25px; }
  .board { gap: 3px; padding: 6px; grid-template-columns: repeat(9, minmax(0, 1fr)); width: 100%; }
  .board span { font-size: 15px; }
}
