/* Styles for the hub and the text pages (about, privacy, terms, contact). Games use game-shell.css. */
:root {
  --bg: #0e0b1f;
  --bg-2: #18133a;
  --card: #1f1947;
  --line: #2d2668;
  --ink: #f4f1ff;
  --muted: #a39fc7;
  --accent: #ff4d6d;
  --accent-2: #ffd23f;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, #3a24a8 0%, transparent 60%),
    linear-gradient(var(--bg), var(--bg-2));
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  padding: 0 16px;
  line-height: 1.6;
}
a { color: var(--accent-2); }

.site-nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-nav .brand {
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 1px;
}
.site-nav ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav ul a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--ink); }

.hero { max-width: 960px; margin: 0 auto; padding: 32px 0 16px; text-align: center; }
.hero h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(22px, 6vw, 44px);
  line-height: 1.3;
  margin: 0 0 16px;
  letter-spacing: 2px;
  text-shadow: 4px 4px 0 var(--accent), 8px 8px 0 #000;
}
.hero p { color: var(--muted); margin: 0; font-size: 16px; }

.grid {
  max-width: 960px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 2px solid var(--line);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  outline: none;
}
.thumb { aspect-ratio: 16 / 10; display: block; width: 100%; }
.info { padding: 16px 18px 20px; }
.info h2 { font-family: "Press Start 2P", monospace; font-size: 14px; margin: 0 0 10px; line-height: 1.5; }
.info p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--line); color: var(--accent-2); }
.card.soon { opacity: .55; pointer-events: none; }

.section-title { max-width: 960px; margin: 48px auto 4px; font-family: "Press Start 2P", monospace; font-size: 16px; line-height: 1.5; }
.section-sub { max-width: 960px; margin: 0 auto; color: var(--muted); font-size: 14px; }

/* Long-form text: game guides and the legal pages. */
.prose { max-width: 760px; margin: 0 auto; padding: 24px 0 8px; }
.prose h1 { font-size: clamp(26px, 6vw, 36px); margin: 8px 0 4px; line-height: 1.2; }
.prose h2 { font-size: 20px; margin: 32px 0 8px; }
.prose h3 { font-size: 16px; margin: 20px 0 6px; color: var(--accent-2); }
.prose p, .prose li { color: #d9d5f5; font-size: 15px; }
.prose ul { padding-left: 20px; }
.prose .updated { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.prose address { font-style: normal; color: #d9d5f5; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px 16px; margin-top: 20px; }
.guide h2 { margin-top: 16px; }

/* Ad slots stay collapsed until shared/ads.js fills them, so there are never empty boxes. */
.ad-slot { display: none; max-width: 960px; margin: 28px auto; text-align: center; }
.ad-slot.ad-live { display: block; }
.ad-slot .ad-label { display: block; font-size: 11px; color: var(--muted); letter-spacing: 1px; margin-bottom: 4px; }

.site-footer {
  max-width: 960px;
  margin: 48px auto 0;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}
.site-footer ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
