:root {
  color-scheme: light;
  --ink: #182c22;
  --muted: #52635a;
  --green: #163d2b;
  --green-bright: #2c6544;
  --paper: #fffef9;
  --line: #d6dfd3;
  --soft: #f0f4eb;
  --chapter-nav-height: 62px;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #e5eade;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #c49432; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 18px; transform: translateY(-150%); background: white; border: 2px solid var(--green); }
.skip-link:focus { transform: none; }
.site-header { max-width: 1200px; margin: auto; padding: 20px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: white; background: var(--green); }
.brand { color: inherit; text-decoration: none; line-height: 1; display: grid; gap: 3px; }
.brand img { grid-row: 1 / 3; align-self: center; margin-right: .35rem; }
.brand span { font-family: Georgia, serif; font-size: .88rem; font-weight: bold; letter-spacing: .07em; }
.brand strong { font-size: 1.65rem; text-transform: uppercase; letter-spacing: .035em; }
.site-header__actions { display: flex; align-items: center; gap: 24px; font-size: .8rem; }
.site-header__actions > a { color: inherit; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 16px; padding: 10px 20px; background: var(--green); border: 1px solid var(--green); border-radius: 5px; color: white; font-size: .86rem; font-weight: 700; text-decoration: none; line-height: 1.35; }
.button:hover { background: #24543b; }
.button--light { color: var(--green) !important; background: var(--paper); border-color: var(--paper); }
.button--light:hover { background: #e6eddb; }
.rulebook { max-width: 1200px; margin: 0 auto 32px; background: var(--paper); box-shadow: 0 15px 50px #1b362010; }
.book-cover { padding: clamp(32px, 6vw, 72px) clamp(24px, 6vw, 80px) 30px; background: linear-gradient(115deg, #fffef9 25%, #f0f4e9); }
.eyebrow { margin: 0 0 8px; font-size: .7rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--green-bright); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
h1 { margin: 0 0 20px; font-size: clamp(2.75rem, 6.4vw, 4.9rem); color: var(--green); }
h1 span { color: #627652; }
.cover-intro { max-width: 680px; font-size: 1.1rem; color: #435549; }
.match-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; padding: 20px 0; border-block: 1px solid #cdd8c5; gap: 24px; }
.match-facts p { margin: 0; }
.match-facts strong, .match-facts span { display: block; }
.match-facts strong { font-size: .96rem; color: var(--green); }
.match-facts span { font-size: .76rem; color: var(--muted); }
.edition-note { margin-top: 20px; font-size: .8rem; color: var(--muted); }
summary { cursor: pointer; }
.edition-note summary { font-weight: 650; padding: 6px 0; }
.edition-note p { margin-top: 10px; max-width: 780px; }
.text-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.chapter-nav { position: sticky; top: 0; z-index: 20; background: #fffef9f5; border-block: 1px solid var(--line); box-shadow: 0 4px 10px #1b362009; }
.chapter-nav__scroll { display: flex; gap: 3px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; padding: 0 16px; scroll-padding-inline: 16px; }
.chapter-nav a { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; min-height: 57px; padding: 15px 12px 12px; border-bottom: 3px solid transparent; color: #536156; white-space: nowrap; text-decoration: none; font-size: .71rem; font-weight: 650; }
.chapter-nav a span { font-size: .61rem; font-variant-numeric: tabular-nums; }
.chapter-nav a:hover { color: var(--green); background: #f3f6ee; }
.chapter-nav a[aria-current="location"] { color: var(--green); border-bottom-color: var(--green-bright); background: #eef2e7; }
.chapter-nav a:focus-visible { outline-offset: -4px; }
.chapter { padding: clamp(34px, 5vw, 64px) clamp(24px, 6vw, 80px); border-bottom: 1px solid var(--line); }
[id] { scroll-margin-top: calc(var(--chapter-nav-height) + 22px); }
.chapter-heading { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
.chapter-number { display: grid; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-items: center; border: 1px solid #b8c8af; color: var(--green-bright); font-family: Georgia, serif; font-size: 1.25rem; line-height: 1; }
.chapter-heading .eyebrow { margin: 1px 0 6px; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); margin: 0; color: var(--green); }
h3 { font-size: 1.08rem; line-height: 1.35; color: var(--green); margin: 28px 0 10px; letter-spacing: -.015em; }
h4 { margin: 24px 0 8px; font-size: .96rem; }
p, ul, ol, dl { margin: 0 0 18px; }
ul, ol { padding-left: 1.35em; }
li { margin: 6px 0; padding-left: 3px; }
.chapter > p, .chapter > ul, .chapter > ol { max-width: 79ch; }
.lead { font-size: 1.16rem; color: #3a5041; line-height: 1.55; margin-bottom: 25px; }
.reading-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px; margin-block: 18px; }
.reading-grid > div > h3:first-child { margin-top: 0; }
.reading-grid > * { min-width: 0; }
.rule-note { background: var(--soft); border-left: 3px solid #8ba775; padding: 21px 24px; margin-block: 24px; font-size: .9rem; }
.reading-grid .rule-note { margin: 0; align-self: start; }
.rule-note h3 { margin-top: 0; }
.rule-note p:last-child { margin-bottom: 0; }
.rule-note--clock { background: #f8f1de; border-left-color: #bd9651; }
.game-figure { margin: 28px 0 32px; border: 1px solid var(--line); background: #f4f5ee; }
.figure-link { display: block; position: relative; }
.game-figure img { display: block; width: 100%; height: auto; object-fit: contain; background: #1d3420; }
.zoom-hint { position: absolute; bottom: 10px; right: 10px; padding: 4px 9px; border: 1px solid #ffffff80; background: #10251de8; border-radius: 3px; color: white; font-size: .65rem; }
.game-figure figcaption { padding: 15px 19px 17px; color: #4b5c50; font-size: .8rem; line-height: 1.55; }
.figure-label { display: inline-block; color: var(--green); font-weight: 750; margin-right: 7px; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 3px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
caption { padding: 12px 16px; text-align: left; color: var(--muted); font-size: .74rem; font-weight: 600; background: #f2f4eb; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
thead th { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--green); color: white; }
tbody th { color: var(--green); font-weight: 650; width: 27%; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f7f8f0; }
.role-table th, .role-table td { text-align: center; }
.role-table th:first-child { text-align: left; width: 45%; }
.role-table tbody td { font-family: Georgia, serif; font-size: 1.65rem; color: var(--green); }
.role-table tbody th span { display: block; font-size: .74rem; font-weight: 400; color: var(--muted); }
.example { margin: 28px 0; padding: 24px 28px; border: 1px solid #d9d7bc; border-radius: 4px; background: #faf6e9; }
.example-label { display: block; font-size: .66rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: #7f6532; }
.example h3 { margin-top: 6px; font-size: 1.13rem; }
.example p:last-child, .example ol:last-child { margin-bottom: 0; }
.sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding-left: 1.15em; margin-block: 18px; }
.sequence li { font-size: .91rem; }
.more-rule { margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more-rule summary { padding: 17px 3px; color: var(--green); font-size: .9rem; font-weight: 650; }
.more-rule .details-body { padding: 3px 3px 15px; }
.details-body { font-size: .91rem; }
.details-body > :last-child { margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block: 25px; }
.action-card { padding: 23px; border: 1px solid var(--line); border-top: 3px solid var(--green-bright); background: #f7f8f0; }
.action-card__label { color: #526348; font-size: .66rem; text-transform: uppercase; font-weight: 750; letter-spacing: .12em; }
.action-card h3 { margin-top: 7px; }
.action-card p { font-size: .87rem; margin-bottom: 0; }
.goal-test { padding: 23px 28px; margin-block: 25px; border-left: 3px solid #b89442; background: #f8f1de; }
.goal-test > span { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #81652e; font-weight: 700; }
.goal-test strong { display: block; margin-block: 6px 10px; max-width: 590px; font-family: Georgia, serif; font-size: 1.4rem; line-height: 1.4; color: var(--green); }
.goal-test p { font-size: .88rem; margin-bottom: 0; }
.chapter--reference { background: #f3f5ed; }
.reference-panel { margin: 14px 0; border: 1px solid #cbd6c4; border-radius: 4px; background: var(--paper); }
.reference-panel > summary { padding: 20px 24px; color: var(--green); font-size: 1.08rem; font-weight: 700; }
.reference-panel > summary > span { display: inline-block; vertical-align: middle; padding-left: 5px; }
.reference-panel summary small { display: block; color: var(--muted); font-size: .68rem; line-height: 1.5; font-weight: 500; letter-spacing: .02em; margin-bottom: 4px; }
.reference-panel[open] > summary { border-bottom: 1px solid var(--line); }
.reference-panel > .details-body { padding: 23px 28px 28px; }
.reference-panel .more-rule { margin-block: 24px; }
.minor-note { color: var(--muted); font-size: .81rem; }
.glossary > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.glossary dt { color: var(--green); font-weight: 700; }
.glossary dd { margin: 3px 0 0; }
.book-end { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 36px; margin-top: 25px; border-top: 1px solid #c6d1bf; }
.book-end h3 { margin: 0 0 5px; }
.book-end p { margin: 0; color: var(--muted); font-size: .87rem; }
.book-end .button { flex: 0 0 auto; }
.book-footer { padding: 26px clamp(24px, 6vw, 80px); color: var(--muted); font-size: .75rem; }
.book-footer p { margin-bottom: 8px; }
@media (min-width: 1200px) {
  .chapter-nav a:first-child { margin-left: auto; }
  .chapter-nav a:last-child { margin-right: auto; }
}
@media (max-width: 760px) {
  :root { font-size: 16px; }
  .site-header { padding: 16px 24px; }
  .site-header__actions { gap: 14px; }
  .book-cover { padding-top: 35px; }
  .match-facts { gap: 12px; }
  .match-facts strong { font-size: .86rem; }
  .match-facts span { font-size: .7rem; }
  .chapter-heading { gap: 13px; }
  .chapter-number { width: 36px; height: 36px; flex-basis: 36px; font-size: 1.06rem; }
  .reading-grid, .contact-grid { grid-template-columns: 1fr; gap: 18px; }
  .reading-grid .rule-note { margin-block: 0 12px; }
  .action-card { padding: 20px; }
  .action-card p { font-size: .94rem; }
  .sequence { grid-template-columns: 1fr; gap: 3px; }
  .example { padding: 21px; }
  .book-end { align-items: flex-start; flex-direction: column; }
  .book-end .button { width: 100%; }
}
@media (max-width: 440px) {
  .site-header { padding: 15px 20px; }
  .site-header__actions > a:first-child { display: none; }
  .site-header__actions .button { min-height: 42px; padding: 9px 14px; }
  .book-cover { padding-inline: 22px; }
  h1 { font-size: 2.9rem; }
  .cover-intro { font-size: 1rem; }
  .match-facts { grid-template-columns: 1fr; gap: 12px; padding-block: 18px; margin-top: 22px; }
  .match-facts p { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .match-facts strong { font-size: .88rem; }
  .match-facts span { font-size: .72rem; text-align: right; }
  .chapter { padding: 32px 22px; }
  .chapter-heading { gap: 11px; margin-bottom: 20px; }
  .chapter-heading .eyebrow { font-size: .58rem; }
  h2 { font-size: 1.85rem; }
  .chapter-number { width: 29px; height: 29px; flex-basis: 29px; font-size: .91rem; margin-top: 1px; }
  .lead { font-size: 1.08rem; }
  .chapter-nav__scroll { padding-inline: 10px; }
  .chapter-nav a { min-height: 52px; font-size: .76rem; padding: 12px 11px 10px; }
  .chapter-nav a span { font-size: .63rem; }
  .game-figure { margin-inline: -8px; }
  .game-figure figcaption { padding: 13px 14px; font-size: .76rem; }
  th, td { padding: 11px 10px; }
  table { font-size: .79rem; }
  thead th { font-size: .62rem; }
  caption { padding: 11px 10px; font-size: .69rem; }
  .rule-note { padding: 19px 20px; }
  .reference-panel > summary { padding: 17px 16px; font-size: 1.02rem; }
  .reference-panel summary small { font-size: .63rem; }
  .reference-panel > .details-body { padding: 20px 18px; }
  .reference-panel .details-body { overflow-wrap: break-word; }
  .goal-test { padding: 20px; }
  .goal-test strong { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  :root { font-size: 10pt; color: black; background: white; }
  .site-header, .chapter-nav, .skip-link, .book-end .button, .zoom-hint { display: none; }
  .rulebook { max-width: none; box-shadow: none; margin: 0; }
  .book-cover, .chapter, .book-footer { padding: 18pt 0; background: white; }
  .book-cover h1 { font-size: 30pt; }
  h2 { font-size: 21pt; }
  h2, h3, h4, summary { break-after: avoid; }
  .game-figure, .example, .rule-note, .action-card, tr { break-inside: avoid; }
  .game-figure { max-width: 150mm; }
  .chapter-heading { break-after: avoid; }
  .reference-panel, .more-rule { border-color: #bbb; }
  .table-wrap { overflow: visible; }
  .reading-grid, .contact-grid { grid-template-columns: 1fr; }
  .details-body { font-size: 10pt; }
}
