@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 600; font-display: swap; src: url('/fonts/fraunces-riverfox.woff2') format('woff2'); }   /* subset: the letters of Riverfox (OFL, see /fonts/OFL.txt) */
:root { --bg: #f4f4f1; --fg: #1c1c1e; --muted: #6e6e73; --card: #fff; --line: #e5e5e0; --soft: #f6f6f3; --accent: #1f8f5f;
  --felt1: #23855a; --felt2: #145238; --rail: #2a2522; --s: #232327; --h: #c8333b; --d: #2563c9; --c: #1d8a4c; --p0: #3cc486; --p1: #f59e42;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04); }
@media (prefers-color-scheme: dark) { :root { --h: #ff6b6b; --d: #6ea0ff; --c: #3cc486; --bg: #111214; --fg: #f2f2f2; --muted: #9a9aa0; --card: #1b1c1f; --line: #2d2e33; --soft: #232428; --accent: #3cc486; --shadow: none; } }
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 980px; padding: 24px 16px 48px; background: var(--bg); color: var(--fg); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--fg); }
.brand { font: italic 600 21px/1 'Fraunces', Georgia, serif; color: var(--accent) !important; }
h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.025em; margin: 10px 0 2px; }
.sub { color: var(--muted); margin: 0 0 14px; }
.lead { font-size: 18px; margin: 18px 0 14px; }
.titlerow { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; }
.open { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap; }
.open:hover { color: var(--accent); }
.facts.row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 6px 0 14px; }
.facts.row > div { background: var(--card); border: 1px solid var(--line); }
@media (max-width: 760px) { .facts.row { grid-template-columns: 1fr 1fr; } }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack .panel { margin: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.facts > div { background: var(--soft); border-radius: 10px; padding: 9px 11px; }
.facts span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts b { display: block; font-size: 18px; letter-spacing: -.01em; margin: 2px 0 1px; font-variant-numeric: tabular-nums; }
.facts small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 14px 0; box-shadow: var(--shadow); }
h2 { font-size: 12px; margin: 0 0 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
h3 { font-size: 15px; margin: 0 0 8px; }
.note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-block; font-size: 14px; font-weight: 600; color: var(--fg); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.grid2 .panel { margin: 0; }
@media (max-width: 760px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
tr.sum td { font-weight: 700; border-top: 1.5px solid var(--line); }
.z { color: var(--line); }
.m { font-weight: 700; margin-right: 1px; } .m.s { color: var(--fg); } .m.h { color: var(--h); } .m.d { color: var(--d); } .m.c { color: var(--c); }
.v { color: var(--muted); font-style: normal; font-size: 12px; margin: 0 3px; }
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; }
.links li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-variant-numeric: tabular-nums; }
.links a { text-decoration: none; font-weight: 600; color: var(--fg); }
.links a:hover { color: var(--accent); }
.links span { color: var(--muted); }
.links .up { color: var(--accent); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cards-grid .panel { margin: 0; }
.cards-grid h2 { font-size: 20px; color: var(--fg); text-transform: none; letter-spacing: -.01em; }
footer { color: var(--muted); font-size: 13px; margin-top: 28px; }

/* Hero: the table (felt), matching the calculator: seats inside the felt, white card faces, split bar */
.stage { position: relative; aspect-ratio: 16 / 6.6; container-type: inline-size; margin-top: 8px; }
.felt { position: absolute; inset: 2% 1%; border-radius: 999px; background: radial-gradient(ellipse at 50% 40%, var(--felt1), var(--felt2) 75%); border: clamp(8px, 1.5cqw, 14px) solid var(--rail);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), inset 0 10px 40px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.22); }
.mark { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); font: italic 600 clamp(28px, 5.8cqw, 60px)/1 'Fraunces', Georgia, serif; color: rgba(255,255,255,.2); text-shadow: 0 1px 0 rgba(0,0,0,.25); white-space: nowrap; }
.centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: clamp(6px, 1.1cqw, 12px); color: #fff; }
.vs { font-size: clamp(20px, 5cqw, 50px); font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 8px rgba(0,0,0,.35); white-space: nowrap; line-height: 1; }
.vs i { font-style: normal; font-weight: 500; opacity: .6; font-size: .5em; margin: 0 .3em; }
.split { display: flex; gap: 2px; width: clamp(140px, 28cqw, 300px); height: clamp(8px, 1.3cqw, 13px); border-radius: 999px; overflow: hidden; }
.split i:first-child { background: var(--p0); } .split i:last-child { background: var(--p1); }
.status { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(0,0,0,.35); color: rgba(255,255,255,.85); font-weight: 600; font-size: clamp(10px, 1.4cqw, 13px); }
.seat { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; width: clamp(110px, 21cqw, 210px); --w: clamp(34px, 6.8cqw, 66px); }
.hole { display: flex; gap: 4px; margin-bottom: calc(var(--w) * -.18); position: relative; z-index: 0; }
.plate { position: relative; z-index: 1; width: 100%; background: rgba(12,12,14,.78); color: #fff; border-radius: 12px; padding: 4px 8px 7px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); border-bottom: 3px solid var(--pc); }
.plate b { display: block; font-size: clamp(20px, 4.4cqw, 44px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.05; }
.plate span { display: block; font-size: clamp(9px, 1.35cqw, 13px); color: #b9b9c0; white-space: nowrap; }
.cd { position: relative; display: inline-block; width: var(--w); height: calc(var(--w) * 1.4); border-radius: calc(var(--w) * .12); background: linear-gradient(#fff, #f1f0ec); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 2px 5px rgba(0,0,0,.3); }
.cd b { position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%); font-size: calc(var(--w) * .68); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.cd small { position: absolute; left: calc(var(--w) * .09); top: calc(var(--w) * .06); font-size: calc(var(--w) * .25); font-weight: 700; line-height: 1.05; text-align: center; }
.cd.s { color: #1c1c1e; } .cd.h { color: #d0333c; } .cd.d { color: #2563c9; } .cd.c { color: #1d8a4c; }
@media (max-width: 600px) {
  .stage { aspect-ratio: 1 / 1.05; }
  .felt { inset: 1% 3%; }
  .seat { width: clamp(110px, 44cqw, 170px); --w: clamp(32px, 13cqw, 52px); }
  .seat:nth-of-type(2) { --x: 50% !important; --y: 23% !important; }
  .seat:nth-of-type(3) { --x: 50% !important; --y: 77% !important; }
  .plate b { font-size: clamp(20px, 7.5cqw, 30px); }
  .plate span { font-size: 10px; }
  .vs, .mark { display: none; }
  .split { width: 50cqw; }
  .links { columns: 1; }
}

/* 13×13 hand chart */
.chart13 { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; container-type: inline-size; }
.chart13 > * { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 4px; text-decoration: none; color: var(--fg); background: var(--soft); line-height: 1.05; }
.chart13 b { font-size: clamp(8px, 2.3cqw, 15px); font-weight: 700; letter-spacing: -.03em; }
.chart13 i { font-style: normal; font-size: clamp(7px, 1.7cqw, 12px); opacity: .85; font-variant-numeric: tabular-nums; }
.chart13 a.plain { color: var(--fg); background: var(--soft); border: 1px solid var(--line); }
.chart13 a:hover { outline: 2px solid var(--fg); outline-offset: -1px; }
.chart13 .off { color: var(--muted); opacity: .35; }
@media (max-width: 600px) { .chart13 i { display: none; } }
.links.three { columns: 3; }
@media (max-width: 760px) { .links.three { columns: 1; } }
h3 .all { font-size: 13px; font-weight: 600; margin-left: 8px; text-decoration: none; }
