/* Learn to Play Cards: the website wears the app's look. A dark card-room
   felt, cream cards and one brass accent, with Young Serif for display type.
   Colors are the app's own (Views/Theme/FeltTheme.swift). */

@font-face {
  font-family: "Young Serif";
  src: url("/assets/fonts/young-serif.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #0F2A1F;
  --surface: #173829;
  --raised: #1E4533;
  --rail: #0B2017;
  --table: #1A4A33;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #F4EFE4;
  --muted: #B4C5B9;
  --brass: #E7B95A;
  --brass-soft: rgba(231, 185, 90, 0.14);
  --on-brass: #1A1405;
  --cream: #FBF8F1;
  --ink: #1B1B1B;
  --ink-muted: #4B4A44;
  --suit-red: #AE2230;
  --best: #8FD9AE;

  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--ground);
  /* The felt: a faint fiber noise over the ground. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
.display, h1, h2 { font-family: var(--display); letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7vw, 74px); line-height: 1.04; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
h3 { font-family: var(--body); font-weight: 650; font-size: 19px; line-height: 1.3; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brass); color: var(--on-brass); padding: 10px 16px; border-radius: 999px; font-weight: 650;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); max-width: 640px; }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 32, 23, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-family: var(--display); font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; white-space: nowrap; padding: 6px 0; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--brass); }
.header-cta { flex-shrink: 0; }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; row-gap: 4px; padding-bottom: 6px; }
  .header-cta { margin-left: auto; }
  .site-nav {
    order: 3; width: 100%; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px;
    overflow-x: auto; scrollbar-width: none; gap: 22px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 400px) {
  .brand span { font-size: 17px; }
  .brand img { width: 30px; height: 30px; }
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 650 17px/1.2 var(--body); text-decoration: none; text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-brass { background: var(--brass); color: var(--on-brass); }
.btn-brass:hover { background: #EFC46B; }
.btn-outline { color: var(--text); border: 1px solid var(--line-strong); background: transparent; }
.btn-outline:hover { background: var(--raised); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-small svg { width: 17px; height: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px);
  background: radial-gradient(ellipse 80% 70% at 70% 30%, rgba(42, 110, 75, 0.55), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px; min-height: 420px; min-width: 0; }
.hero-phones .phone { width: calc(50% - 9px); max-width: 290px; }
.hero-phones .phone:first-child { transform: translateY(28px) rotate(-3deg); }
.hero-phones .phone:last-child { transform: rotate(3deg); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phones { min-height: 0; }
}
@media (max-width: 560px) {
  .hero-phones .phone:first-child { display: none; }
  .hero-phones .phone:last-child { transform: none; width: min(78%, 290px); }
}

.phone {
  width: min(100%, 290px); flex-shrink: 0;
  border-radius: 46px; padding: 9px; background: #07150F;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 70px rgba(0, 0, 0, 0.45);
}
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; background: var(--ground); }
.phone.short img { aspect-ratio: 1206 / 2000; }

/* Facts strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(11, 32, 23, 0.55); }
.facts ul { list-style: none; margin: 0 auto; padding: 22px var(--gutter); max-width: var(--max); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
.facts li { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 16px; }
.facts strong { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--text); }

/* ── Panels and notes ─────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: clamp(20px, 3vw, 32px); }
.cream-note {
  background: var(--cream); color: var(--ink); border-radius: var(--radius);
  padding: 18px 22px; line-height: 1.55;
}
.cream-note a { color: #7A5410; }
.cream-note strong { color: var(--ink); }

/* Four-step ladder, like the app's game page */
.ladder-grid { display: grid; grid-template-columns: 1fr 320px; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ladder { list-style: none; margin: 0; padding: 0; position: relative; }
.ladder li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 28px; }
.ladder li:last-child { padding-bottom: 0; }
.ladder li::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.16);
}
.ladder li:last-child::before { display: none; }
.ladder .num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 2.5px solid var(--text); font: 700 19px/1 var(--body); color: var(--text);
}
.ladder li:first-child .num { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.ladder h3 { margin: 8px 0 4px; }
.ladder p { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .ladder-grid { grid-template-columns: 1fr; }
  .ladder-grid .phone { margin: 0 auto; }
}

/* ── Game cards ───────────────────────────────────────── */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.game-card {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: background-color 0.15s ease, transform 0.15s ease;
}
.game-card:hover { background: var(--raised); transform: translateY(-2px); text-decoration: none; }
.game-card img { width: 112px; height: 112px; margin: 0 auto 8px; object-fit: contain; }
.game-card .name { font-weight: 650; font-size: 18px; line-height: 1.25; }
.game-card .meta { color: var(--muted); font-size: 14px; }
.game-card .sum { color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 6px; }
@media (max-width: 480px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-card { padding: 12px 12px 14px; }
  .game-card img { width: 84px; height: 84px; }
  .game-card .name { font-size: 16px; }
  .game-card .sum { display: none; }
}

/* Game rows (list pages) */
.game-rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.game-rows li + li { border-top: 1px solid var(--line); }
.game-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; color: var(--text); text-decoration: none; }
.game-row:hover { background: var(--raised); text-decoration: none; }
.game-row img { width: 88px; height: 88px; object-fit: contain; }
.game-row h3 { margin: 0 0 4px; font-size: 20px; }
.game-row p { margin: 0; color: var(--muted); font-size: 16px; }
.game-row .meta { font-size: 14px; margin-top: 6px; color: var(--muted); }
.game-row .meta b { color: var(--best); font-weight: 600; }
.chev { width: 10px; height: 16px; color: var(--muted); }
@media (max-width: 560px) {
  .game-row { grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; }
  .game-row img { width: 64px; height: 64px; }
  .game-row .chev { display: none; }
}

/* Bento night finder */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bento a {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: background-color 0.15s ease;
}
.bento a:hover { background: var(--raised); text-decoration: none; }
.bento .ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); flex-shrink: 0; }
.bento .ico svg { width: 28px; height: 28px; color: var(--brass); }
.bento .label { font-weight: 650; font-size: 19px; line-height: 1.2; display: block; }
.bento .count { color: var(--muted); font-size: 15px; }
.bento a.wide { grid-column: 1 / -1; border-color: var(--brass); background: rgba(231, 185, 90, 0.10); }
.bento a.wide .ico { background: var(--brass); }
.bento a.wide .ico svg { color: var(--on-brass); }
@media (max-width: 520px) {
  .bento { gap: 10px; }
  .bento a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .bento a.wide { flex-direction: row; align-items: center; }
  .bento .label { font-size: 17px; }
}

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tile h3 { margin: 0 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.tile .tile-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brass-soft); display: grid; place-items: center; margin-bottom: 14px; color: var(--brass); }
.tile .tile-ico svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split .phone { margin: 0 auto; }
}

.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231A1405' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Pricing */
.price-card { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.price-card > div { padding: clamp(22px, 3vw, 34px); }
.price-card > div + div { border-left: 1px solid var(--line); }
.price-card .amount { font-family: var(--display); font-size: 44px; line-height: 1; margin: 8px 0 6px; }
.price-card .amount small { font-family: var(--body); font-size: 16px; color: var(--muted); }
@media (max-width: 640px) {
  .price-card { grid-template-columns: 1fr; }
  .price-card > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.faq-item h3 { margin: 0 0 8px; font-size: 18px; }
.faq-item p { margin: 0; color: var(--muted); }

/* Final call to action */
.cta-band { text-align: center; padding: clamp(56px, 9vw, 104px) 0; background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(42, 110, 75, 0.5), transparent 70%); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; font-size: 18px; }
.cta-band .btn-row { justify-content: center; }
.suits { font-size: 28px; letter-spacing: 10px; color: rgba(255, 255, 255, 0.22); margin-bottom: 18px; }
.suits .r { color: rgba(214, 77, 88, 0.55); }

/* ── Breadcrumbs ──────────────────────────────────────── */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: rgba(255, 255, 255, 0.35); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }

/* ── Rules pages ──────────────────────────────────────── */
.page-head { padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(ellipse 70% 90% at 85% 0%, rgba(42, 110, 75, 0.5), transparent 70%); }
.page-head-grid { display: grid; grid-template-columns: 1fr 220px; gap: 32px; align-items: center; }
.page-head h1 { font-size: clamp(38px, 6vw, 64px); margin-bottom: 16px; }
.page-head .answer { font-size: clamp(18px, 2vw, 20px); line-height: 1.6; max-width: 700px; margin: 0; }
.page-head .hero-icon { width: 220px; height: 220px; }
.byline { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.byline a { color: var(--muted); }
@media (max-width: 720px) {
  .page-head-grid { grid-template-columns: 1fr; }
  .page-head .hero-icon { width: 128px; height: 128px; order: -1; margin-bottom: -6px; }
}

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: clamp(48px, 8vw, 96px); }
.article-layout aside { display: grid; gap: 14px; align-self: stretch; align-content: start; }
.aside-sticky { position: sticky; top: 92px; display: grid; gap: 14px; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-layout aside { order: -1; }
  .aside-sticky { display: none; }
}

.prose { max-width: 720px; }
.prose > section { margin-bottom: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 16px; }
.prose h3 { margin: 22px 0 6px; }
.prose p, .prose li { font-size: 18px; line-height: 1.65; }
.prose li + li { margin-top: 8px; }

ol.rule-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 12px; }
ol.rule-steps > li {
  counter-increment: step; position: relative; padding: 16px 18px 16px 62px; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
ol.rule-steps > li::before {
  content: counter(step); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brass); color: var(--on-brass); font: 700 16px/1 var(--body);
}
ul.watch { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.watch li { margin: 0; }
ul.plain { padding-left: 1.1em; }

.glance { padding: 22px 22px 8px; }
.glance h2 { font-size: 22px; margin-bottom: 12px; }
.glance dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 16px; }
.glance dt { color: var(--muted); font-size: 15px; padding: 10px 0; border-top: 1px solid var(--line); }
.glance dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; font-weight: 550; }
.glance dt:first-of-type, .glance dd:first-of-type { border-top: 0; }

.toc { padding: 18px 22px; }
.toc h2 { font-family: var(--body); font-size: 15px; font-weight: 650; color: var(--muted); margin-bottom: 8px; letter-spacing: 0; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { color: var(--text); text-decoration: none; font-size: 15.5px; display: block; padding: 4px 0; }
.toc a:hover { color: var(--brass); }

.app-pitch { padding: 22px; background: linear-gradient(160deg, #1E4F37, var(--surface)); }
.app-pitch img { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 12px; }
.app-pitch h2 { font-size: 22px; margin-bottom: 8px; }
.app-pitch p { color: var(--muted); font-size: 15.5px; }
.app-pitch .btn { width: 100%; }

.inline-pitch { display: grid; grid-template-columns: 1fr 200px; gap: 28px; align-items: center; padding: clamp(22px, 3vw, 32px); margin-bottom: clamp(36px, 5vw, 52px); }
.inline-pitch h2 { margin-bottom: 10px; }
.inline-pitch p { color: var(--muted); }
.inline-pitch .phone { width: 200px; border-radius: 34px; padding: 7px; }
.inline-pitch .phone img { border-radius: 28px; }
@media (max-width: 640px) {
  .inline-pitch { grid-template-columns: 1fr; }
  .inline-pitch .phone { display: none; }
}

.variations { display: grid; gap: 12px; }
.variations > div { padding: 16px 20px; }
.variations h3 { margin: 0 0 4px; }
.variations p { margin: 0; color: var(--muted); font-size: 17px; }

dl.terms { margin: 0; display: grid; gap: 0; }
dl.terms dt { font-weight: 650; font-size: 17.5px; padding-top: 14px; border-top: 1px solid var(--line); }
dl.terms dt:first-child { border-top: 0; padding-top: 0; }
dl.terms dd { margin: 4px 0 14px; color: var(--muted); font-size: 16.5px; }

.hand-ranks { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.hand-ranks th, .hand-ranks td { text-align: left; padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.hand-ranks thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.hand-ranks td:first-child { color: var(--muted); width: 32px; }
.hand-ranks .cards { white-space: nowrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; }
.hand-ranks .r { color: #F08A93; }

.related { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); background: rgba(11, 32, 23, 0.4); }

/* ── Glossary ─────────────────────────────────────────── */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; }
.letters a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.letters a:hover { background: var(--raised); }
.letter-group { margin-bottom: 36px; }
.letter-group > h2 { font-size: 34px; margin-bottom: 8px; color: var(--brass); }
.gloss-entry { padding: 16px 0; border-top: 1px solid var(--line); }
.gloss-entry h3 { margin: 0 0 6px; font-size: 19px; }
.gloss-entry p { margin: 0 0 6px; color: var(--muted); font-size: 16.5px; }
.gloss-entry p:last-child { margin-bottom: 0; }
.gloss-entry .tag { color: var(--text); font-weight: 600; }
.gloss-entry .tag a { color: var(--text); }

/* ── Legal and support ────────────────────────────────── */
.legal-content { max-width: 760px; padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 8vw, 96px); }
.legal-content h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.legal-content h2 { font-size: 26px; margin: 36px 0 12px; }
.legal-content p, .legal-content li { color: #DCE3DD; font-size: 17px; }
.legal-content .legal-date { color: var(--muted); }
.legal-content ul { padding-left: 1.2em; }

.form { display: grid; gap: 12px; max-width: 560px; }
.form label { font-weight: 600; font-size: 15px; }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--rail); color: var(--text); font: 400 17px/1.4 var(--body);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(231, 185, 90, 0.25); }
.form button { justify-self: start; border: 0; cursor: pointer; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--rail); border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 72px) 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-family: var(--body); font-size: 15px; font-weight: 650; color: var(--text); margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-grid a.btn-brass, .footer-grid a.btn-brass:hover { color: var(--on-brass); text-decoration: none; }
.footer-games ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.footer-about p { color: var(--muted); margin: 14px 0 16px; max-width: 300px; }
.footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
.footer-base p { margin: 0; }
.maker { display: inline-block; opacity: 0.8; line-height: 0; }
.maker:hover { opacity: 1; }
.maker img { width: 76px; height: auto; filter: invert(1) brightness(1.6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Phones: brand and button on one row, the nav on the next. */
@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .header-cta svg { display: none; }
  .header-cta { padding: 0 14px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 14.5px; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
