/* Guide pages (/learn): the app's maroon and brass, cards on green felt. No JavaScript, no layout shift. */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-var.woff') format('woff'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Noto Serif'; src: url('/fonts/noto-serif-700.woff') format('woff'); font-weight: 700; font-display: swap; }
:root { --ink: #1f0a10; --panel: #3a121c; --panel-2: #4a1824; --line: #6b2a39; --text: #f7eef0; --muted: #c6a7ad; --head: #f2d58f;
  --brass: #e0b45c; --brass-2: #f3d08b; --pos: #5fd39a; --neg: #ff8a7e; --felt-1: #1f6b47; --felt-2: #0d3a26; --cream: #fbf6e9; }
* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; color: var(--text); font: 17px/1.65 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse 90% 50% at 50% 0, #4a1420 0, var(--ink) 70%) no-repeat, var(--ink);
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
a { color: var(--brass); text-underline-offset: 2px; }
a:hover { color: var(--brass-2); }
.wrap, main { max-width: 780px; margin: 0 auto; padding: 0 18px; }
main { padding-bottom: 40px; }
main:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brass); color: #1d1606; font-weight: 800; padding: .6rem 1rem; border-radius: 10px; text-decoration: none; z-index: 10; }
.skip:focus { top: 10px; }

header.site { border-bottom: 1px solid var(--line); background: rgba(20, 6, 10, .55); }
header.site .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--head); text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: 1.12rem; line-height: 1.1; margin-right: auto; }
.brand img { border-radius: 8px; }
.brand small { display: block; color: var(--muted); font-weight: 500; font-stretch: 100%; font-size: .74rem; }
header.site nav { display: flex; gap: 16px; font-size: .92rem; flex-wrap: wrap; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--head); }

.btn { display: inline-block; font-weight: 800; text-decoration: none; border-radius: 12px; padding: 13px 22px; line-height: 1.2; }
.btn.play { background: linear-gradient(180deg, #f3d08b, #d9a648); color: #2a1206; box-shadow: 0 2px 0 #8a6224, 0 6px 18px rgba(0, 0, 0, .35); }
.btn.play:hover { color: #2a1206; filter: brightness(1.06); }
.btn.small { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

h1, h2, h3 { color: var(--head); line-height: 1.2; }
h1 { font-family: 'Noto Serif', Georgia, serif; font-size: 2.1rem; margin: 18px 0 8px; letter-spacing: -.01em; }
h2 { font-family: 'Noto Serif', Georgia, serif; font-size: 1.45rem; margin: 38px 0 8px; }
h3 { font-size: 1.08rem; margin: 24px 0 4px; }
.lead { font-size: 1.12rem; color: #f1dfe2; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li { margin: 5px 0; }
.muted { color: var(--muted); }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 20px 0; }
.box > :last-child { margin-bottom: 0; }
.box.warn { border-color: #8f3b2c; }
.box.good { border-color: #2f7a55; }
.box h3:first-child, .box h2:first-child { margin-top: 0; }

/* Cards: cream, four-colour suits like the game's deck. */
.hand { display: inline-flex; gap: 4px; vertical-align: middle; margin: 2px 0; }
.card { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 2.1em; height: 2.8em; border-radius: 6px;
  background: var(--cream); font-weight: 800; font-size: .92rem; line-height: 1; box-shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25); }
.card i { font-style: normal; font-size: .9em; margin-top: 2px; }
.card.s { color: #1b1e24; } .card.h { color: #c8202d; } .card.d { color: #1f5fc4; } .card.c { color: #11804a; }

/* A board on green felt with a brass rail. */
.board { margin: 20px 0; padding: 16px 18px; border-radius: 26px; border: 3px solid #c9a55a;
  background: radial-gradient(ellipse at 50% 35%, var(--felt-1), var(--felt-2) 80%); box-shadow: inset 0 0 22px rgba(0, 0, 0, .45), 0 6px 20px rgba(0, 0, 0, .35); }
.board .row { display: grid; grid-template-columns: 5.2em auto 1fr; align-items: center; gap: 10px; padding: 6px 0; }
.board .row b { color: var(--head); font-size: .95rem; }
.board .row b small { display: block; color: #cfe6d9; font-weight: 500; font-size: .75rem; }
.board .row .note { color: #e8f3ec; font-size: .88rem; }
.board .row .note.pos { color: #b9f5d4; font-weight: 700; } .board .row .note.neg { color: #ffc2b8; font-weight: 700; }
.board .cap { color: #d8eadf; font-size: .88rem; margin: 6px 0 0; }
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.boards .board { margin: 0; }
.boards h3 { margin: 0 0 6px; }

table.pts { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 12px 0 18px; background: var(--panel); border-radius: 12px; overflow: hidden; }
table.pts caption { text-align: left; color: var(--muted); font-size: .88rem; padding: 0 0 6px; caption-side: top; }
table.pts th, table.pts td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.pts th { color: var(--muted); font-weight: 600; background: var(--panel-2); }
table.pts td.n, table.pts th.n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--head); white-space: nowrap; }
table.pts tr:last-child td { border-bottom: 0; }
.pos { color: var(--pos); } .neg { color: var(--neg); }

.video { margin: 22px 0; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; border: 1px solid var(--line); }
.video figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.cards-grid li { margin: 0; }
.cards-grid a { display: block; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.cards-grid a:hover { border-color: var(--brass); }
.cards-grid b { display: block; color: var(--head); margin-bottom: 4px; }
.cards-grid span { color: var(--muted); font-size: .92rem; }

section.faq { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
section.faq h3 { margin-top: 22px; }

.cta { margin: 40px 0 10px; padding: 22px; text-align: center; border-radius: 22px; border: 3px solid #c9a55a;
  background: radial-gradient(ellipse at 50% 30%, var(--felt-1), var(--felt-2) 85%); box-shadow: inset 0 0 22px rgba(0, 0, 0, .45); }
.cta .cta-title { font-family: 'Noto Serif', Georgia, serif; font-weight: 700; color: var(--head); font-size: 1.4rem; margin: 0 0 6px; }
.cta p { color: #e6f2eb; max-width: 520px; margin: 0 auto 16px; }
.hero-cta { margin: 18px 0 8px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.more h2 { font-size: 1.15rem; }
.more ul { columns: 2; column-gap: 24px; padding-left: 1.1em; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; padding: 18px 0 30px; }
footer.site a { color: var(--muted); }
footer.site .fine { font-size: .8rem; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  header.site nav { order: 3; width: 100%; gap: 14px; }
  .boards { grid-template-columns: 1fr; }
  .board { padding: 12px; border-radius: 18px; }
  .board .row { grid-template-columns: 4.2em auto; }
  .board .row .note { grid-column: 1 / -1; padding-left: 4.2em; margin-top: -4px; }
  .card { width: 1.9em; height: 2.6em; font-size: .86rem; }
  .more ul { columns: 1; }
  table.pts th, table.pts td { padding: 8px 8px; }
}
@media (prefers-reduced-motion: no-preference) { .cards-grid a { transition: border-color .15s; } }
