/* Local assets only: felt green and tile ivory from the app icon. */
:root {
  color-scheme: light dark;
  --bg: #f6f3e9; --card: #fffdf6; --text: #20372c; --muted: #5b6b60;
  --accent: #256044; --line: #d5dfd3; --felt: #203b2d;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111e18; --card: #1a2b22; --text: #f3efdf; --muted: #b2c2b6;
    --accent: #a4d8b5; --line: #354b3d; }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
header, main, footer { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.identity { display: flex; align-items: center; gap: 12px; }
.identity img { display: block; border-radius: 11px; }
a.brand { font-size: 22px; font-weight: 750; color: var(--text); text-decoration: none; letter-spacing: -.6px; }
nav.langs { display: flex; gap: 4px; }
nav.langs button { border: 1px solid transparent; background: transparent; color: var(--muted);
  border-radius: 9px; min-height: 44px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
nav.langs button[aria-pressed="true"] { background: var(--card); border-color: var(--line); color: var(--text); }
main { padding-bottom: 64px; }
.document main { max-width: 860px; }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; }
h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -1.2px; margin: 28px 0; }
h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.6px; margin: 0 0 20px; }
h3 { font-size: 21px; margin: 0 0 12px; }
p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.muted { color: var(--muted); }
section.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; margin: 24px 0; }
.card h2:not(:first-child) { margin-top: 32px; }
.hero { background: var(--felt); color: #f7f2df; border-radius: 30px; padding: 64px 52px;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); letter-spacing: -2px; margin: 16px 0 24px; }
.hero p { max-width: 42ch; color: #dbe4d6; }
.hero .pitch { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; color: #fff8e7; }
.hero-icon { display: block; width: 100%; height: auto; max-width: 320px; justify-self: center;
  border-radius: 24%; box-shadow: 0 24px 60px #08160e60; }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 16px; color: var(--muted); }
.hero-link { display: inline-block; color: #f7f2df; margin: 16px 12px 0 0; }
.product-section { padding: 64px 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 56px; }
.feature { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.feature p { color: var(--muted); font-size: 16px; }
.privacy-glance { max-width: 100%; }
.privacy-glance p { max-width: 78ch; }
.fairness { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.faq { max-width: 800px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { font-weight: 650; cursor: pointer; padding-right: 12px; }
details p { color: var(--muted); padding: 16px 0 4px; }
.faq > p { margin-top: 24px; }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 36px; font-size: 14px; }
.operator { margin-left: auto; font-weight: 750; letter-spacing: 2px; }
.draft { border-left: 3px solid var(--accent); padding: 12px 16px; margin: 16px 0; color: var(--muted); }
.code { font: 600 32px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 4px; }
.button { display: inline-block; background: var(--accent); color: var(--bg); text-decoration: none;
  padding: 12px 20px; border-radius: 12px; font-weight: 650; margin: 8px 12px 0 0; }
.hero .button { background: #f7f2df; color: #203b2d; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }
[data-lang] { display: none; }
[data-lang].on { display: block; }
span[data-lang].on, a[data-lang].on { display: inline; }
@media (max-width: 850px) {
  .hero { padding: 40px 32px; gap: 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  header, main, footer { padding-left: 20px; padding-right: 20px; }
  header { gap: 8px; }
  .identity { gap: 8px; }
  a.brand { font-size: 20px; }
  nav.langs button { padding: 6px 9px; }
  .hero { grid-template-columns: 1fr; padding: 28px; gap: 24px; border-radius: 22px; }
  .hero-icon { grid-row: 1; width: 132px; justify-self: start; }
  .hero h1 { letter-spacing: -1px; }
  .feature-grid, .fairness { grid-template-columns: 1fr; gap: 16px; }
  .feature-grid { margin-bottom: 36px; }
  .product-section { padding-top: 40px; }
  .feature, section.card { padding: 24px; }
  .operator { width: 100%; margin-left: 0; }
}
/* The hand checker (check.html) */
textarea {
  width: 100%; font: 14px/1.4 ui-monospace, Menlo, monospace; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 6px 0 4px; resize: vertical;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
button.button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.button-quiet {
  display: inline-block; border: 1px solid var(--line); border-radius: 10px; padding: 11px 16px;
  margin-top: 8px; cursor: pointer; font-weight: 600; position: relative;
}
.file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.note { border-left: 4px solid #3f7d5a; padding: 6px 12px; }
.error { color: #ba3e3e; font-weight: 600; }
.verdict { font-weight: 700; font-size: 18px; }
.verdict.good { color: #2e7d32; }
.verdict.bad, li.bad .mark { color: #ba3e3e; }
.tiles { display: inline-flex; flex-wrap: wrap; gap: 3px; vertical-align: middle; }
.tile {
  display: inline-block; min-width: 24px; padding: 2px 3px; text-align: center; border-radius: 5px;
  background: #fbf6ea; border: 1px solid #d8ccb4; font: 700 15px/1.3 -apple-system, BlinkMacSystemFont, sans-serif;
}
.tile.c0 { color: #c0392b; }
.tile.c1 { color: #b7860b; }
.tile.c2 { color: #1f5fa8; }
.tile.c3 { color: #222; }
.tile.fo { color: #6b5d4f; }
.tile.okey { box-shadow: 0 0 0 2px #3f7d5a inset; }
ol.moves { padding-left: 2.4em; margin: 0; }
ol.moves li { padding: 3px 0; border-bottom: 1px solid var(--line); }
ol.moves .who { font-weight: 600; }
code { font: 14px ui-monospace, Menlo, monospace; word-break: break-all; }
@media (prefers-color-scheme: dark) {
  .verdict.good { color: #7fc98a; }
  .note { border-color: #7fc98a; }
}
.todo { background: #ffe58a; color: #000; padding: 0 4px; border-radius: 3px; }

@media (prefers-color-scheme: dark) { .error, .verdict.bad, li.bad .mark { color: #ffaaa2; } }

/* Product preview and reading rhythm. All artwork stays local. */
.skip-link { position: absolute; top: 8px; left: 16px; z-index: 10; padding: 10px 18px;
  background: var(--card); color: var(--text); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.hero { grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 52px 40px; }
.hero :focus-visible { outline-color: #fff5dc; }
.game-preview { margin: 0; min-width: 0; }
.game-preview svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 20px #07180e55); }
.game-preview figcaption { color: #dbe4d6; text-align: center; font-size: 12px; margin-top: 16px; }
.learn > p { max-width: 78ch; }
.learn .table-wrap { border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.learn table { table-layout: fixed; }
.learn caption { text-align: left; font-weight: 650; padding: 18px; }
.learn th:first-child { width: 19%; }
.learn thead { background: var(--felt); color: #fff5dc; }
.learn tbody tr:last-child > * { border-bottom: 0; }
.rule-note { margin-top: 16px; font-size: 14px; }
.player-note { margin-top: 48px !important; }
.player-note p { max-width: 80ch; }
.screenshots { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.screenshots img { width: min(100%, 320px); height: auto; object-fit: contain; align-self: start; border-radius: 16px; }
.support-intro li { margin: 12px 0; }
.tile.c1 { color: #795400; }
.verdict.good { color: #266a2a; }
.error, .verdict.bad, li.bad .mark { color: #ad3030; }
@media (prefers-color-scheme: dark) {
  .verdict.good { color: #7fc98a; }
  .error, .verdict.bad, li.bad .mark { color: #ffaaa2; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding: 28px; }
  .game-preview { width: 100%; max-width: 400px; justify-self: center; }
}
@media (max-width: 400px) {
  header, main, footer { padding-left: 16px; padding-right: 16px; }
  header { flex-wrap: wrap; }
  nav.langs button { min-width: 44px; padding: 6px; }
  .learn th, .learn td { padding: 10px 7px; font-size: 13px; overflow-wrap: anywhere; }
  .learn th:first-child { width: 22%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --card: #fff; --text: #000; --muted: #333; --line: #aaa; --accent: #000; }
  body { font-size: 11pt; }
  header, footer, .skip-link { display: none; }
  main, .document main { max-width: none; padding: 0; }
  section.card { border: 0; padding: 0; border-radius: 0; }
  h1, h2, h3 { break-after: avoid; }
  tr, p { orphans: 3; widows: 3; }
  a { color: #000; }
  a[href^="mailto:"] { text-decoration: none; }
  .table-wrap { overflow: visible; }
}

/* Product art direction: warm ivory, deep felt, quiet brass details. */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { -webkit-font-smoothing: antialiased; }
header { position: sticky; top: 0; z-index: 20; max-width: none; padding: 18px max(28px, calc((100% - 1104px)/2)); background: var(--bg); border-bottom: 1px solid transparent; transition: padding .2s, box-shadow .2s; }
header.compact { padding-top: 8px; padding-bottom: 8px; border-color: var(--line); box-shadow: 0 4px 24px #0b21140a; }
header .identity img { transition: width .2s, height .2s; }
header.compact .identity img { width: 34px; height: 34px; }
.home main { max-width: 1280px; padding-top: 18px; }
.home h2 { font-size: clamp(29px, 3.6vw, 44px); letter-spacing: -1.4px; }
.hero { position: relative; overflow: hidden; min-height: 620px; grid-template-columns: .9fr 1.2fr; gap: 16px; padding: 64px 48px; background: radial-gradient(ellipse at 75% 35%, #3c6048, #193e2d 65%, #143325); border: 1px solid #46604b; border-radius: 32px; box-shadow: 0 24px 60px #1b382c12; }
.hero h1 { font-size: clamp(42px, 4.8vw, 68px); letter-spacing: -2.8px; max-width: 9ch; }
.hero .eyebrow { color: #d2bb89; }
.hero .pitch { font-size: clamp(24px, 2.6vw, 33px); letter-spacing: -.7px; }
.hero-copy > p:not(.pitch):not(.eyebrow) { font-size: 16px; max-width: 36ch; }
.hero-link { font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid #c6d4b575; padding-bottom: 6px; }
.game-preview { transform: rotate(-3deg); }
.game-preview figcaption { transform: rotate(3deg); font-size: 11px; letter-spacing: .4px; opacity: .8; }
.art { display: block; width: 100%; height: auto; overflow: visible; }
.svg-library { position: absolute; overflow: hidden; pointer-events: none; }
.product-section { padding: 96px 28px 0; }
.learn > p { max-width: 70ch; }
.rules-art { display: grid; grid-template-columns: 2fr 1fr; align-items: center; gap: 36px; margin: 32px 0; }
.rules-art p { color: var(--muted); font-size: 14px; }
.rules-art strong { display: inline-block; font-size: 36px; letter-spacing: -1px; color: var(--text); margin-bottom: 6px; }
.home section.card { padding: 44px; border-radius: 24px; margin: 64px 28px; }
.fake-example { display: flex; align-items: center; gap: 14px; float: right; margin: 0 0 20px 28px; font-size: 13px; color: var(--muted); }
.fake-example svg { width: 44px; }
.feature-grid { gap: 16px; margin-bottom: 0; }
.feature { padding: 30px; border-radius: 22px; background: linear-gradient(145deg, var(--card), var(--bg)); transition: transform .2s, box-shadow .2s; }
.feature h3 { font-size: 21px; letter-spacing: -.5px; }
.feature p { font-size: 15px; line-height: 1.7; }
.feature-icon { display: block; width: 44px; height: 44px; color: var(--accent); margin-bottom: 28px; }
.felt-band { background: radial-gradient(ellipse at top left, #355d45, #193c2d 80%); color: #f6f0df; border-radius: 28px; margin-top: 80px; padding: 56px; }
.felt-band .eyebrow { color: #d3bd8e; }
.felt-band p { color: #d5e0d0; }
.daily { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.daily .art { filter: drop-shadow(0 15px 10px #071d1833); }
.devices { text-align: center; }
.device-grid { display: grid; grid-template-columns: 1.4fr 1.1fr .45fr; gap: 24px; align-items: end; margin-top: 52px; }
.device { margin: 0; min-width: 0; }
.device svg { filter: drop-shadow(0 12px 10px #071c1666); }
.device figcaption { margin-top: 16px; font-size: 13px; letter-spacing: 1px; color: #d2ddcf; }
.art-note { margin: 32px 0 0; font-size: 11px; opacity: .8; }
.operator { display: flex; align-items: center; gap: 10px; }
.operator img { border-radius: 8px; }
.button, button, .hero-link { transition: transform .18s, opacity .18s; }
.button:active, button:active { transform: scale(.97); }
@media (hover: hover) { .feature:hover { transform: translateY(-4px); box-shadow: 0 14px 28px #17392b0d; } .button:hover, .hero-link:hover { opacity: .8; } }
@media (prefers-color-scheme: dark) { :root { --bg: #101e18; --card: #1a2d23; --line: #334b3b; } .hero { box-shadow: 0 24px 70px #0003; } }
@media (max-width: 900px) { .hero { padding: 40px 30px; grid-template-columns: 1fr; } .hero-copy { max-width: 600px; } .hero h1 { max-width: none; } .game-preview { max-width: 600px; width: 100%; justify-self: center; } .daily { gap: 32px; padding: 36px; } }
@media (max-width: 580px) {
 header { flex-wrap: nowrap; padding: 12px 16px; } header .identity img { width: 34px; height: 34px; } nav.langs { gap: 0; } nav.langs button { padding: 6px; min-width: 38px; }
 .home main { padding: 8px 16px 48px; } .hero { min-height: 0; padding: 32px 24px 26px; border-radius: 24px; gap: 16px; } .hero h1 { font-size: 46px; letter-spacing: -2px; max-width: 9ch; } .hero .pitch { font-size: 26px; } .hero p { line-height: 1.5; } .game-preview { transform: none; width: calc(100% + 20px); } .game-preview figcaption { transform: none; font-size: 10px; }
 .product-section { padding: 60px 4px 0; } .home h2 { font-size: 31px; letter-spacing: -.9px; } .rules-art { grid-template-columns: 1fr; gap: 16px; } .rules-art p { text-align: center; } .rules-art strong { font-size: 30px; } .home section.card { margin: 40px 0; padding: 28px 24px; } .fake-example { float: none; margin: 0 0 24px; } .feature-grid { grid-template-columns: 1fr; } .feature { padding: 26px; } .feature-icon { margin-bottom: 20px; }
 .felt-band { padding: 32px 24px; margin-top: 48px; border-radius: 24px; } .daily { grid-template-columns: 1fr; gap: 28px; } .daily > div:first-child { order: 2; } .device-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; } .device { width: 100%; } .device.ipad { width: 90%; margin: auto; } .device.iphone { width: 45%; margin: auto; } .fairness { gap: 24px; padding-bottom: 40px; } .operator { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media print { header { display: none; } }
