/* The guides and landing pages around the game: same felt, gold and type as the table. */
:root {
  --felt-1: #1f7d4c;
  --felt-2: #14633b;
  --felt-3: #0c4428;
  --felt-4: #062919;
  --gold: #e3c06a;
  --gold-deep: #c9982f;
  --ink: #f6eeda;
  --ink-2: rgba(246, 238, 218, 0.8);
  --ink-3: rgba(246, 238, 218, 0.58);
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.045);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 60% at 50% 0%, var(--felt-3), var(--felt-4) 70%) fixed, var(--felt-4);
  color: var(--ink);
  font: 18px/1.7 var(--ui);
}
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #f3d27a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(16px, env(safe-area-inset-left));
  background: rgba(4, 28, 17, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 500 20px var(--serif); letter-spacing: 0.02em; white-space: nowrap; }
.brand em { color: var(--gold); }
.brand-mark { width: 22px; height: 22px; fill: var(--gold); }
.site-head nav { display: flex; align-items: center; gap: 18px; font: 600 15px var(--ui); }
.site-head nav a:not(.btn-play) { color: var(--ink-2); text-decoration: none; }
.site-head nav a:not(.btn-play):hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3d27a, var(--gold-deep));
  color: #2a1d02;
  font: 700 16px/1.2 var(--ui);
  text-decoration: none;
  text-align: center;
  box-shadow: 0 6px 20px rgba(201, 152, 47, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-play:hover { color: #2a1d02; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(201, 152, 47, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-play.small { padding: 8px 16px; font-size: 14px; }

/* ---------- Article ---------- */
.article { max-width: 46rem; margin: 0 auto; padding: 28px 20px 72px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.kicker { margin: 26px 0 6px; color: var(--gold); font: 700 13px var(--ui); letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); text-wrap: balance; }
h1 { margin: 0 0 12px; font-size: clamp(32px, 6vw, 46px); letter-spacing: -0.01em; }
h2 { margin: 48px 0 12px; font-size: clamp(25px, 4vw, 31px); }
h3 { margin: 32px 0 8px; font-size: 22px; }
.byline { margin: 0 0 22px; color: var(--ink-3); font-size: 15px; }
.lede { font-size: 21px; line-height: 1.6; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); }
.prose strong, .prose b { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font: italic 20px/1.6 var(--serif); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
code { font: 0.88em var(--mono); background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 6px; }

/* ---------- Play boxes ---------- */
.cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 32px 0;
  padding: 22px 24px;
  border: 1px solid rgba(227, 192, 106, 0.35);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 125, 76, 0.55), rgba(12, 68, 40, 0.65));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.cta-copy { flex: 1; }
.cta-copy p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.cta-copy .cta-title { margin-bottom: 4px; color: var(--ink); font: 600 22px/1.25 var(--serif); }
.cta .btn-play { flex: none; }

/* ---------- Pictures, numbers, notes, tables ---------- */
.shot { margin: 32px 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.shot.phone img { width: min(300px, 70%); margin: 0 auto; border-radius: 26px; }
.shot figcaption { margin-top: 10px; color: var(--ink-3); font-size: 14px; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0; }
.stats div { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.stats b { display: block; color: var(--gold); font: 600 30px/1.1 var(--serif); }
.stats span { display: block; margin-top: 6px; color: var(--ink-3); font-size: 14px; line-height: 1.4; }
.note { margin: 28px 0; padding: 16px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.note p { margin: 6px 0; color: var(--ink-2); font-size: 16px; }
.note .note-title { margin: 0 0 4px; color: var(--gold); font: 700 13px var(--ui); letter-spacing: 0.12em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); }
.prose th { color: var(--ink); background: rgba(255, 255, 255, 0.05); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
/* Strategy charts: one letter per cell, coloured by the play. */
.prose table.chart { font: 700 14px var(--ui); text-align: center; }
.prose .chart th, .prose .chart td { padding: 7px 4px; text-align: center; border: 1px solid rgba(0, 0, 0, 0.25); }
.prose .chart td.h { background: #f6eeda; color: #1b1b1b; }
.prose .chart td.s { background: #d94a3d; color: #fff; }
.prose .chart td.d { background: #2f9e5a; color: #fff; }
.prose .chart td.p { background: #3b6fd8; color: #fff; }
.prose .chart td.r { background: #8a5cc7; color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: -8px 0 24px; font-size: 14px; color: var(--ink-3); }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }

/* Where the facts in a researched article came from. */
.prose .sources { padding-left: 1.1em; font-size: 15px; line-height: 1.5; }
.prose .sources li { margin: 8px 0; color: var(--ink-3); }
.prose .sources a { overflow-wrap: anywhere; }

/* ---------- Questions, related, hub ---------- */
.faq { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.faq h3 { font-size: 20px; }
.faq p { color: var(--ink-2); }
.related ul, .cards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.related a, .cards a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease; }
.related a:hover, .cards a:hover { border-color: rgba(227, 192, 106, 0.5); background: rgba(255, 255, 255, 0.07); }
.related b, .cards b { display: block; font: 600 19px/1.3 var(--serif); }
.related span, .cards a > span:last-child { display: block; margin-top: 4px; color: var(--ink-3); font-size: 15px; line-height: 1.5; }
.cards .tag { display: block; margin-bottom: 4px; color: var(--gold); font: 700 12px var(--ui); letter-spacing: 0.12em; text-transform: uppercase; }
.hub { max-width: 60rem; }
.hub .lede { max-width: 46rem; }
.hub-group h2 { margin-top: 44px; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-foot { padding: 40px 20px 110px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.22); }
.foot-cols { max-width: 60rem; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.foot-title { margin: 0 0 8px; color: var(--gold); font: 700 13px var(--ui); letter-spacing: 0.12em; text-transform: uppercase; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 6px 0; font-size: 15px; line-height: 1.4; }
.site-foot li a { color: var(--ink-2); text-decoration: none; }
.site-foot li a:hover { color: var(--ink); }
.fine { max-width: 60rem; margin: 24px auto 0; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.fine a { color: var(--ink-3); }

/* A play button that follows you down the page on phones. */
.play-bar { display: none; }
@media (max-width: 700px) {
  body { font-size: 17px; }
  .lede { font-size: 19px; }
  .site-head nav { gap: 12px; }
  .site-head nav a:not(.btn-play) { display: none; }
  .cta { flex-direction: column; align-items: stretch; text-align: left; padding: 20px; }
  .cta .btn-play { width: 100%; }
  .play-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 20;
    padding: 15px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f3d27a, var(--gold-deep));
    color: #2a1d02;
    font: 700 16px var(--ui);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}
