/* The how-to-play and technique pages: the legal pages' reading column, plus figures and a call to play. */
:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --panel: #fffdf8;
  --fg: #1f1c17;
  --muted: #6d665a;
  --accent: #b4532a;
  --gold: #c8941f;
  --line: rgba(42, 38, 32, 0.15);
  --chip: #efe9de;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #171512;
    --panel: #221f1a;
    --fg: #f1ece2;
    --muted: #a69e8f;
    --accent: #e0855a;
    --gold: #e8b33c;
    --line: rgba(241, 236, 226, 0.15);
    --chip: #2c2822;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font: 17px/1.7 ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(48px + env(safe-area-inset-bottom, 0px));
}
main { max-width: 680px; margin: 0 auto; }
nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 28px; font-size: 0.95rem; }
a { color: var(--accent); }
h1, h2 { font-family: ui-serif, "Iowan Old Style", Georgia, serif; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 2.2rem; margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 34px 0 8px; }
.kicker { margin: 0 0 4px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.lead { font-size: 1.12rem; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 4px; }
figure { margin: 22px 0 10px; text-align: center; }
figure svg { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
figcaption { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0 0 20px; color: var(--muted); font-size: 0.85rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 16px; height: 16px; border-radius: 3px; background: #c9bea9; position: relative; }
.legend .k-cross::before, .legend .k-cross::after, .legend .k-out::before, .legend .k-out::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 7px; height: 2.4px; border-radius: 2px; background: #fff; transform: rotate(45deg);
}
.legend .k-cross::after, .legend .k-out::after { transform: rotate(-45deg); }
.legend .k-out::before, .legend .k-out::after { background: #c62828; }
.legend .k-focus { background: transparent; border: 2px dashed #b4532a; }
.legend .k-place { background: transparent; border: 2.5px solid var(--gold); }
.lessons { list-style: none; padding: 0; display: grid; gap: 10px; }
.lessons a { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.lessons a:hover { border-color: var(--accent); }
.lessons svg { flex: none; width: 120px; height: auto; border-radius: 6px; }
.lessons span { display: flex; flex-direction: column; min-width: 0; font-size: 0.95rem; }
.lessons small { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.cta { margin-top: 40px; padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.cta p { margin: 0 0 12px; }
.button { display: inline-block; padding: 9px 18px; border-radius: 10px; background: var(--accent); color: #fffaf3; text-decoration: none; font-weight: 600; }
footer { margin-top: 32px; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 480px) { h1 { font-size: 1.8rem; } .lessons svg { width: 84px; } }
