/* The Bright Blue — site styles. Arial throughout. */
:root {
  --navy: #06264a;
  --blue-deep: #053c6e;
  --sky: #10abfe;
  --ink: #1b2430;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.plain { background: var(--navy); }

/* ---------- Home ---------- */
.home {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(28px, 6vh, 56px);
  padding: 40px 20px;
  text-align: center;
}
/* The sun and wordmark sit right of the image's middle (the left wing is longer), so shift left to put them on the page centre. */
.brand { width: min(390px, 60vw, 38vh); transform: translate(-10%, calc(-1 * clamp(20px, 6vh, 60px))); }
/* The vertical shift lifts the logo only; the button keeps its place, so the space between them grows. */
.games {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.game {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(680px, 90vw);
  padding: 18px 30px;
  border: 3px solid #fff;
  border-radius: 11px;
  /* The game's sky art (same file as the Tiny Time Trivia site background) */
  background: var(--sky) url("/assets/bg-sky.jpg") center / cover no-repeat;
  background-image: image-set(url("/assets/bg-sky.webp") type("image/webp"), url("/assets/bg-sky.jpg") type("image/jpeg"));
  box-shadow: 0 4px 14px rgba(6, 38, 74, .25);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.game:hover, .game:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(6, 38, 74, .35);
}
.game .icon { width: 72px; height: 72px; border-radius: 16px; }
.game .logo { width: min(260px, 60vw); }

/* ---------- Inner pages (privacy, 404) ---------- */
.page { flex: 1; padding: 48px 16px 64px; }
.card {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 28px;
  background: #fff;
  border-radius: 16px;
}
body:not(.plain) .card { border: 2px solid #d6e3f1; text-align: center; }
.card h1 { font-size: clamp(30px, 4.6vw, 42px); line-height: 1.15; color: var(--blue-deep); }
.card h2 { font-size: 24px; line-height: 1.25; color: var(--blue-deep); margin-top: 32px; }
.card h3 { font-size: 18px; color: var(--blue-deep); margin-top: 18px; }
.card p, .card li { font-size: 17px; }
.card p + p, .card h2 + p, .card h3 + p { margin-top: 8px; }
.card ul { margin-top: 8px; padding-left: 22px; }
.card li + li { margin-top: 4px; }
.card a { color: var(--blue-deep); }
.date { color: #5b6b7d; margin-top: 4px; }
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}
.table-wrap { overflow-x: auto; }
.note { margin-top: 24px; color: #5b6b7d; font-size: 14px; }
.policy table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid #d6e3f1; }
.policy th { color: var(--blue-deep); border-bottom-width: 2px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: #cfe6ff;
  text-align: center;
  padding: 12px 16px 14px;
  font-size: 13px;
  /* Pinned to the bottom of the window on every page; long pages (privacy) scroll behind it. */
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.footer nav { display: flex; justify-content: center; gap: 26px; font-size: 14px; font-weight: 700; }
.footer nav a { text-decoration: none; }
.footer nav a:hover, .footer nav a:focus-visible { text-decoration: underline; }
.footer .copy { margin-top: 4px; }

/* Desktop: the button is a wide strip, so slide the sky art up to show a line of green along the bottom. */
@media (min-width: 601px) { .game { background-position: center 58%; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 600px) {
  .page { padding: 28px 12px 44px; }
  .card { padding: 24px 18px; }
}
