/* checkers.gripe: shared styles for the game and the rules pages */
:root { --bg:#faf8f5; --fg:#1a1a1a; --muted:#757575; --line:#e4e0da; --hover:#efebe5; --panel:#f3efe9; --accent:#e5484d;
  --sq-l:#efe4cf; --sq-d:#9a7656; --sq-last:#b98f62; --sq-hint:#6f9a6b; --frame:#7a5b40; --focus:#1f6feb; --coord:rgba(255,255,255,.7);
  --crown:#d9a43a; --must:#e5a50a }
@media (prefers-color-scheme: dark) { :root { --bg:#111; --fg:#f2f2f2; --muted:#9a9a9a; --line:#262626; --hover:#1d1d1d; --panel:#171717;
  --sq-l:#8c7a64; --sq-d:#4e3b2d; --sq-last:#6e5238; --sq-hint:#3a5b37; --frame:#000; --focus:#58a6ff; --coord:rgba(255,255,255,.45) } }
:root { color-scheme:light dark }
* { box-sizing:border-box; margin:0 }
html { -webkit-text-size-adjust:100%; text-size-adjust:100% }
body { background:var(--bg); color:var(--fg); font:16px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric:tabular-nums;
  display:flex; flex-direction:column; min-height:100vh; min-height:100dvh }
/* phones: no double-tap zoom on the controls, and a long press on a button doesn't start a text selection or a callout */
html, body, button, input, select, label, a, summary { touch-action:manipulation }
button, summary, .btn { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none }
#app { flex:1 1 auto; width:100%; max-width:760px; margin:0 auto; padding:clamp(16px,3vw,40px) clamp(16px,3vw,40px) 24px }
header { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; margin-bottom:18px }
h1 { font-size:clamp(1.6rem,4vw,2.4rem); letter-spacing:-.03em }
h1 a { color:inherit; text-decoration:none }
h1 span { color:var(--accent) }
.tag { color:var(--muted); font-size:.95rem }
button, input, select, textarea { font:inherit; color:inherit }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible, textarea:focus-visible { outline:2px solid var(--accent); outline-offset:2px }
select { font-size:16px; border:1px solid var(--line); border-radius:10px; padding:7px 8px; background:var(--bg); color:var(--fg) }
.btn { border:1px solid var(--line); background:var(--bg); border-radius:10px; padding:8px 14px; cursor:pointer; font-weight:600; font-size:.92rem; text-decoration:none; color:var(--fg); display:inline-block }
.btn:hover { border-color:var(--accent) }
.btn.primary { background:var(--accent); border-color:var(--accent); color:#fff }
.btn.danger:hover { color:var(--accent) }
.card { border:1px solid var(--line); border-radius:16px; background:var(--panel); padding:14px 16px }
.card h2 { font-size:1rem; margin-bottom:8px }
details.card summary { cursor:pointer; font-weight:600 }
.row { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin-top:12px }
.muted { color:var(--muted); font-size:.88rem }
.hidden { display:none !important }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap }

/* about / FAQ section */
.about { max-width:70ch; margin:48px 0 0; padding-top:22px; border-top:1px solid var(--line); color:var(--muted); color:color-mix(in srgb, var(--fg) 68%, var(--bg)); font-size:.93rem; line-height:1.6; text-align:left }
.about h2 { display:block; margin:0 0 2px; font-size:1.15rem; font-weight:650; letter-spacing:-.01em; line-height:1.3; color:var(--fg) }
.about h3 { margin:18px 0 4px; font-size:.98rem; font-weight:600; line-height:1.35; color:var(--fg) }
.about p { margin:0; overflow-wrap:break-word }
.about a, .rules a { color:var(--accent); font-weight:600; text-decoration:none }
.about a:hover, .rules a:hover { text-decoration:underline }

/* rules pages */
.rules { max-width:70ch; line-height:1.6 }
.rules h2 { font-size:1.35rem; letter-spacing:-.01em; margin:0 0 6px }
.rules h3 { font-size:1.02rem; margin:20px 0 4px }
.rules p, .rules li { color:color-mix(in srgb, var(--fg) 80%, var(--bg)) }
.rules ul { padding-left:1.2em; margin:4px 0 }
.rules li { margin:3px 0 }
.rules .lead { font-size:1.05rem; color:var(--fg) }
.rules .play { margin:18px 0 6px }
.rules nav { margin-top:28px; padding-top:16px; border-top:1px solid var(--line); font-size:.92rem }
.rules nav ul { list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:6px 16px }

/* gripe network badge (same on every site) */
.gn-wrap { display:flex; flex-direction:column; align-items:center; gap:10px; padding:18px 16px 22px }
.gn-terms { color:var(--muted,#8a8a8a); font:.8rem/1.3 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration:none; text-align:center }
.gn-terms:hover { color:var(--accent,#e5484d); text-decoration:underline }
.gn { display:inline-flex; align-items:center; gap:10px; padding:6px 6px 6px 14px; border:1px solid var(--line,#e4e0da); border-radius:999px;
      background:var(--panel,var(--hover,#f3efe9)); color:var(--fg,#1a1a1a); text-decoration:none;
      font:500 .9rem/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; transition:border-color .15s, transform .15s }
.gn:hover { border-color:var(--accent,#e5484d); transform:translateY(-1px) }
.gn:focus-visible { outline:2px solid var(--accent,#e5484d); outline-offset:2px }
.gn-dot { width:8px; height:8px; border-radius:50%; background:var(--accent,#e5484d); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent,#e5484d) 22%, transparent) }
.gn b { color:var(--accent,#e5484d); font-weight:700 }
.gn-more { padding:5px 11px; border-radius:999px; background:var(--accent,#e5484d); color:#fff; font-size:.8rem; font-weight:600; white-space:nowrap }
@media (prefers-reduced-motion: reduce) { .gn { transition:none } .gn:hover { transform:none } }
