/* Styles for the static pages (about, legal, 404). The app at / doesn't use them. */
:root {
  color-scheme: dark;
  --bg: #000;
  --text: rgba(255, 255, 255, 0.87);
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.07);
  --accent: #fff;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial,
    sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

main.wrap {
  padding-top: 32px;
  padding-bottom: 48px;
  overflow-wrap: break-word;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 500;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 40px 0 12px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 28px 0 8px;
}

h4 {
  font-size: 1rem;
  font-weight: 500;
  margin: 20px 0 6px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

dl.games {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

dl.games div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}

dl.games dt {
  font-weight: 500;
}

dl.games dd {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 600px) {
  dl.games {
    grid-template-columns: 1fr 1fr;
  }
}

.faq h3 {
  margin-top: 24px;
}

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 16px;
  padding-bottom: 24px;
}

footer.site a {
  color: var(--muted);
}

/* Comparison table (alternatives page): scrolls sideways inside its box on
   narrow screens, so the page itself never scrolls horizontally */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  font-size: 0.9rem;
}

table.compare th,
table.compare td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

table.compare thead th {
  background: var(--card);
  font-weight: 500;
}

table.compare tbody th {
  font-weight: 500;
  min-width: 110px;
}

/* Pages with a wide table get a wider column on large screens */
.wrap.wide {
  max-width: 1040px;
}

table.compare tbody tr:first-child {
  background: var(--card);
}

/* Small data tables (e.g. odds in the guide) don't need the wide minimum */
table.compare.narrow {
  min-width: 0;
}

/* Rulebook quotes and breadcrumbs (first player rules pages) */
blockquote {
  margin: 0 0 8px;
  padding: 4px 16px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 0 12px 12px 0;
}

blockquote p {
  margin: 8px 0;
  font-size: 1.1rem;
}

.crumbs {
  font-size: 0.85rem;
  margin: 0 0 8px;
}

.crumbs a {
  color: var(--muted);
}
