
:root {
  --paper: #f6f4ee; --card: #ffffff; --ink: #121a26; --muted: #545e6c; --line: #ddd8cb;
  --rare: #5b21b6; --rare-soft: #ede6fb; --pitch: #17603a; --pitch-soft: #e3f1e8; --amber: #8a5a00;
  --focus: #2563eb; --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c121b; --card: #141c28; --ink: #edf1f6; --muted: #a6b0bd; --line: #263243;
    --rare: #c4a8ff; --rare-soft: #2a2140; --pitch: #6fd39a; --pitch-soft: #13281d; --amber: #f2c46b;
    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(--rare); 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: 28px; height: 28px; }
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: 56px; padding-bottom: 32px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 28px; } }
@media (max-width: 420px) { .grid .h, .grid .c { font-size: 12px; padding: 4px 2px; } .grid .h small { font-size: 10px; } }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); 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; }
.rare { color: var(--rare); }
.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(--rare); 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: #160b2e; } }
.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(--rare-soft); color: var(--rare); 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(--rare-soft); color: var(--rare); 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: 14px; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.board .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); margin: 2px 4px 10px; flex-wrap: wrap; }
.board .meta strong { color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.grid .h, .grid .c { min-height: 72px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6px; font-size: 13px; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.grid .h { font-weight: 700; background: transparent; }
.grid .h small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; margin-top: 2px; }
.grid .corner { color: var(--rare); font-weight: 800; }
.grid .c { background: var(--pitch-soft); border: 1px dashed color-mix(in srgb, var(--pitch) 35%, transparent); color: var(--pitch); font-weight: 700; }
.grid .c.empty { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.grid .c.r1 { background: var(--rare); color: #fff; border: 0; }
.grid .c.r2 { background: #2457c5; color: #fff; border: 0; }
.grid .c.r3 { background: var(--pitch); color: #fff; border: 0; }
.grid .c.r4 { background: #e7b416; color: #1d1600; border: 0; }
.grid .c .pct { font-size: 18px; font-weight: 800; }
.grid .c .who { font-size: 12px; font-weight: 600; opacity: .92; }
.flag { font-size: 22px; line-height: 1; }
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .example { grid-template-columns: 1fr; } }
.scale { display: grid; gap: 8px; padding: 0; list-style: none; margin: 12px 0 0; }
.scale li { display: flex; gap: 10px; align-items: center; }
.sw { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.sw.r1 { background: var(--rare); } .sw.r2 { background: #2457c5; } .sw.r3 { background: var(--pitch); } .sw.r4 { background: #e7b416; }
.narrow { max-width: 640px; }
.share-title { font-size: clamp(28px, 6vw, 40px); }
.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 { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.table-scroll { overflow-x: auto; margin: 12px 0; }
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); }
.lang a { font-weight: 700; text-decoration: none; color: var(--muted); }
.lang a[aria-current="true"] { color: var(--ink); }
.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; }
table.compare { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); }
table.compare.wide { min-width: 560px; }
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(--rare-soft); }
.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; }
