
:root {
  --paper: #f7f3ea; --card: #fffdf8; --ink: #1b1f1d; --muted: #59625d; --line: #e0d9c8;
  --jade: #0b6b4d; --jade-soft: #dff0e8; --bam: #17733f; --crak: #b3261e; --dot: #1d4ea0; --joker: #6b2fd0; --gold: #a86a12;
  --tile: #fffaf0; --tile-edge: #d8cfb9; --tile-back: #0b6b4d;
  --focus: #2563eb; --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1412; --card: #161d1a; --ink: #edf2ef; --muted: #a7b3ad; --line: #27322d;
    --jade: #5fd3a5; --jade-soft: #15281f; --bam: #4fbf7d; --crak: #ff7a70; --dot: #7fa8ff; --joker: #b794ff; --gold: #f0b45a;
    --tile: #f4eedf; --tile-edge: #8f8672; --tile-back: #1f7a5c;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--jade); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
nav.top { display: flex; gap: 16px; font-size: 15px; flex-wrap: wrap; }
nav.top a { color: var(--muted); text-decoration: none; }
nav.top a:hover { color: var(--ink); }
.hero { padding-top: 52px; padding-bottom: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 30px; gap: 26px; } }
h1 { font-size: clamp(32px, 5.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3.4vw, 31px); letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.15; }
h3 { font-size: 18px; margin: 0 0 6px; }
.lead { font-size: 19px; color: var(--muted); max-width: 36em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--jade); color: #fff; font-weight: 700; text-decoration: none; border: 0; font-size: 16px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.secondary) { color: #06251a; } }
.btn.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--jade-soft); color: var(--jade); font-weight: 700; font-size: 15px; }
section { padding: 36px 0; }
section + section { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 20px 0 0; list-style: none; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--jade-soft); color: var(--jade); font-weight: 800; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.board { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.board .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); margin: 0 2px 10px; flex-wrap: wrap; }
.board .meta strong { color: var(--ink); }
.rack { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-radius: 12px; background: var(--jade-soft); }
.tile { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 34px; height: 46px; border-radius: 6px; background: var(--tile); border: 1px solid var(--tile-edge); box-shadow: 0 2px 0 var(--tile-edge); color: #222; line-height: 1; font-weight: 800; flex: none; }
.tile b { font-size: 18px; }
.tile i { font-style: normal; font-size: 8px; letter-spacing: .04em; font-weight: 800; margin-top: 3px; }
.tile.b { color: #17733f; } .tile.c { color: #b3261e; } .tile.d { color: #1d4ea0; }
.tile.w { color: #1b1f1d; } .tile.f { color: #a86a12; } .tile.j { color: #6b2fd0; background: #f3ecff; }
.tile.rd { color: #b3261e; } .tile.gd { color: #17733f; } .tile.wd { color: #1d4ea0; }
.tile.miss { background: transparent; border: 1.5px dashed var(--tile-edge); box-shadow: none; color: var(--muted); opacity: .8; }
.tile.small { width: 24px; height: 32px; border-radius: 4px; }
.tile.small b { font-size: 13px; } .tile.small i { font-size: 6px; margin-top: 2px; }
.tile.f i, .tile.rd i, .tile.gd i, .tile.j i { font-size: 6.5px; letter-spacing: 0; }
.tile.small.f i, .tile.small.rd i, .tile.small.gd i, .tile.small.j i { font-size: 4.8px; }
.hands { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.hands li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.hands .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.away { font-weight: 800; color: var(--jade); white-space: nowrap; }
.pattern { font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); overflow-wrap: anywhere; }
.groups { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.groups .g { display: inline-flex; gap: 2px; }
.need { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.narrow { max-width: 680px; }
.faq dt { font-weight: 700; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); }
.prose h2 { font-size: 22px; margin-top: 32px; }
.prose table, table.compare { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); }
.prose th, .prose td, table.compare th, table.compare td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.compare thead th { background: var(--jade-soft); }
.table-scroll { overflow-x: auto; margin: 12px 0; }
code, .code { font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--jade-soft); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: grid; gap: 10px; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
.guide h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
.guide h2, .use h2 { margin-top: 32px; }
.crumbs { margin: 0 0 8px; font-size: 14px; }
.answer { color: var(--ink); max-width: none; }
.updated { font-size: 14px; color: var(--muted); }
.howto { padding-left: 1.3em; }
.howto li { margin: 8px 0; }
.guide-list { padding-left: 1.1em; }
.guide-list li { margin: 14px 0; }
.prompts { display: grid; gap: 10px; padding: 0; list-style: none; }
.prompts li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.verdict { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--jade-soft); color: var(--jade); }
.verdict.no { background: #fde8e6; color: #9b1c14; }
