/* Dustbanners site r41 (Kyle's Tent picks 2026-11-16: rulings/kyle-tent-answers-seven-2026-11-16-0720.md).
   Main look: direction A, the working copy of the lore book (paper, ink, notes pinned to a cork board).
   C's posted bills carry the Get Involved calls. A gentle float on the map layers. Motion switch; phones get motion too, and reduced-motion settings turn it off.
   Light/Dark: follows the device unless the visitor picks with the switch (same key and classes as the live site). */

@font-face { font-family: "Archivo Black"; src: url("../fonts/ArchivoBlack-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Gentium"; src: url("../fonts/GentiumBookPlus-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Gentium"; font-style: italic; src: url("../fonts/GentiumBookPlus-Italic.woff2") format("woff2"); font-display: swap; }

/* Light: paper and ink. Every text pair is checked at 4.5:1 or more by check_site_r41.py. */
:root {
  --bg: #efe6d3; --ink: #1e1813; --muted: #54453a; --accent: #8f4421; --panel: #fbf5e8; --line: #a8937a; --rule: #1e1813;
  --scrap: #f3e3a8; --scrap-ink: #1e1813; --scrap-muted: #54453a; --tape: rgba(214,170,110,.62);
  --btn: #8f4421; --btn-ink: #fbf5e8; --river: #2f5d66; --flag: #8f4421;
  --board: #5e2b14; --board-ink: #f4ede2; --board-muted: #e7d6c1;
  --bill: #f4ead6; --bill-ink: #1e1813; --bill-muted: #54453a; --bill-accent: #8f4421; --nail: #1e1813;
  --input-bg: #fffdf8; --input-ink: #1e1813; --input-line: #6b5643;
  --shadow: rgba(30,24,19,.22);
  --tex: url("../img/paper-grain.svg");
  /* names the older pages use */
  --night: var(--bg); --cream: var(--ink); --ochre: var(--accent); --rust: #8f4421; --rust-dark: var(--panel); --card: var(--panel); --on-rust: #fbf5e8;
  color-scheme: light;
}
/* Dark: the same book read by lamplight. */
@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) {
    --bg: #1e1813; --ink: #e9e2d8; --muted: #cfc5b8; --accent: #d6aa6e; --panel: #2a221b; --line: #7a6450; --rule: #cfc5b8;
    --scrap: #3a2f22; --scrap-ink: #ece4d6; --scrap-muted: #d3c8b8; --tape: rgba(214,170,110,.38);
    --btn: #8f4421; --btn-ink: #fbf5e8; --river: #8fb7bd; --flag: #d6aa6e;
    --board: #3b1c0d; --board-ink: #f4ede2; --board-muted: #e0cfb9;
    --bill: #e9e2d8; --bill-ink: #1e1813; --bill-muted: #4d4035; --bill-accent: #7c3a1c; --nail: #8f4421;
    --input-bg: #fbf8f3; --input-ink: #1e1813; --input-line: #8a7660;
    --shadow: rgba(0,0,0,.45);
    --tex: url("../img/night-grain.svg");
    color-scheme: dark;
  }
}
:root.theme-dark {
  --bg: #1e1813; --ink: #e9e2d8; --muted: #cfc5b8; --accent: #d6aa6e; --panel: #2a221b; --line: #7a6450; --rule: #cfc5b8;
  --scrap: #3a2f22; --scrap-ink: #ece4d6; --scrap-muted: #d3c8b8; --tape: rgba(214,170,110,.38);
  --btn: #8f4421; --btn-ink: #fbf5e8; --river: #8fb7bd; --flag: #d6aa6e;
  --board: #3b1c0d; --board-ink: #f4ede2; --board-muted: #e0cfb9;
  --bill: #e9e2d8; --bill-ink: #1e1813; --bill-muted: #4d4035; --bill-accent: #7c3a1c; --nail: #8f4421;
  --input-bg: #fbf8f3; --input-ink: #1e1813; --input-line: #8a7660;
  --shadow: rgba(0,0,0,.45);
  --tex: url("../img/night-grain.svg");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg) var(--tex); color: var(--ink); font: 18px/1.6 "Gentium", Georgia, serif; overflow-wrap: break-word; }
img { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, .brand, .btn, .button, button { font-synthesis: none; } /* Archivo Black has one weight; never fake bold */
h1, h2, h3, .brand { font-family: "Archivo Black", Impact, sans-serif; font-weight: 400; letter-spacing: .04em; line-height: 1.15; }
h1, h2 { text-transform: uppercase; } /* Kyle 2026-10-14: headings in caps like the DUSTBANNERS mark */
h2 { color: var(--accent); font-size: 26px; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 24px 0 8px; }
h2.sentence { text-transform: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--panel); color: var(--ink); padding: 8px 12px; z-index: 60; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main { overflow-x: clip; } /* tilted notes and bills never cause sideways scroll */
.small { font-size: 16px; color: var(--muted); }
.nw { white-space: nowrap; }

/* ---------- Top bar and the five-item menu ---------- */
.topbar { position: relative; z-index: 40; background: var(--bg) var(--tex); border-bottom: 2px solid var(--rule); }
@media (max-width: 1060px) { .topbar { position: sticky; top: 0; } }
.bar { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px 18px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; letter-spacing: .06em; color: var(--ink); text-decoration: none; text-transform: uppercase; }
.brand img { width: 34px; height: 34px; }
.menu { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (min-width: 1061px) { .switches .tool { font-size: 14px; min-height: 34px; padding: 5px 9px; } .motion-note { text-align: right; } }
.menu nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 20px; }
.menu nav a { color: var(--ink); text-decoration: none; font-family: "Archivo Black", Impact, sans-serif; text-transform: uppercase; letter-spacing: .05em; font-size: 15px; padding: 6px 0; border-bottom: 3px solid transparent; }
.menu nav a:hover { border-bottom-color: var(--line); }
.menu nav a[aria-current] { border-bottom-color: var(--accent); }
.switches { display: flex; gap: 6px; flex-wrap: wrap; }
.tool { font: inherit; font-size: 15px; line-height: 1.2; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; cursor: pointer; min-height: 40px; }
.tool:hover { border-color: var(--accent); }
.bar .bar-cta { padding: 8px 14px; font-size: 14px; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 3px; border-radius: 2px; background: var(--ink); }
.motion-note { flex-basis: 100%; margin: 0; font-size: 15px; color: var(--muted); }
.motion-note:empty { display: none; }
@media (max-width: 1060px) {
  .bar { flex-wrap: wrap; }
  .menu-btn { display: flex; margin-left: auto; }
  .bar .bar-cta { margin-left: auto; padding: 9px 12px; }
  .bar-cta + .menu-btn { margin-left: 0; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; z-index: 50; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel); border-bottom: 2px solid var(--rule); box-shadow: 0 10px 18px var(--shadow); padding: 4px 16px 14px;
    max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; }
  .bar.open .menu { display: flex; }
  .menu nav ul { flex-direction: column; gap: 0; }
  .menu nav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .menu nav a[aria-current] { border-bottom: 1px solid var(--line); border-left: 4px solid var(--accent); padding-left: 10px; }
  .switches { padding-top: 12px; }
}
@media (max-width: 480px) { .bar .bar-cta { display: none; } .bar .bar-cta + .menu-btn { margin-left: auto; } } /* narrow phones: the hero button and Join Us carry the sign-up */
@media (max-width: 380px) { .brand { font-size: 17px; gap: 6px; } .brand img { width: 28px; height: 28px; } .bar { gap: 8px; } }

/* ---------- Buttons ---------- */
.btn, .button { display: inline-block; background: var(--btn); color: var(--btn-ink); border: 2px solid var(--rule); border-radius: 3px; padding: 13px 22px; font-size: 17px; line-height: 1.2;
  text-decoration: none; font-family: "Archivo Black", Impact, sans-serif; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.btn:hover, .button:hover { text-decoration: underline; }
.btn.quiet { background: var(--panel); color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
/* Phones: both hero buttons on one row, so the three rule lines stay on the first screen (review site-r41d N1). */
@media (max-width: 480px) { .ctas { flex-wrap: nowrap; gap: 8px; } .ctas .btn { font-size: 13px; letter-spacing: .02em; padding: 12px 9px; flex: 1 1 auto; text-align: center; } }
@media (max-width: 340px) { .ctas { flex-wrap: wrap; } }

/* ---------- Title page ---------- */
.hero { display: grid; gap: 22px; padding: 26px 0 10px; align-items: center; }
.hero > * { min-width: 0; }
.stamp { display: inline-block; border: 2px solid var(--accent); color: var(--accent); padding: 2px 10px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-2deg); }
/* The word is 8.8 em wide in Archivo Black (measured in the browser): sized so it never breaks inside the word. */
.hero h1 { font-size: clamp(30px, 10vw, 60px); margin: 10px 0 10px; letter-spacing: .03em; }
@media (min-width: 900px) { .hero h1 { font-size: min(60px, 4.9vw); } }
.hook { font-size: clamp(21px, 3vw, 28px); line-height: 1.3; font-style: italic; margin: 0 0 10px; }
.one { font-size: 20px; margin: 0 0 18px; }
.hero .status-label { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
.kept { margin: 14px 0 0; font-size: 16px; color: var(--muted); font-style: italic; max-width: 34em; }
figure { margin: 0; }
.map { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: var(--panel); }
.map .ink { stroke: var(--ink); fill: none; stroke-linecap: round; }
.map .river { stroke: var(--river); fill: none; stroke-linecap: round; }
.map text { fill: var(--ink); font-family: "Gentium", Georgia, serif; font-style: italic; }
.map .place circle { fill: var(--panel); stroke: var(--ink); stroke-width: 2; }
.map .flag { fill: var(--flag); }
figcaption { font-size: 15px; color: var(--muted); padding-top: 6px; }
/* Phones: words, then the game in three lines, then the map, then the Keepers box (r42: the visitor learns what the game is before the
   lore frame). Wide: words and map side by side, the three lines under both, the Keepers box last. */
.hero { grid-template-areas: "text" "strip" "map" "kept"; gap: 14px; }
.hero > div:first-child { grid-area: text; }
.hero .kept-box { grid-area: kept; }
.hero .kept { margin: 8px 0 0; }
.hero .map-fig { grid-area: map; }
.hero .strip { grid-area: strip; margin: 4px 0 0; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr .95fr; grid-template-areas: "text map" "strip strip" "kept kept"; column-gap: 28px; row-gap: 10px; padding-top: 28px; }
  .hero .strip { margin-top: 14px; }
}

/* ---------- The game in three lines (Kyle, site-study-02 A) ---------- */
.strip { margin: 22px 0 6px; }
.strip ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.strip li { counter-increment: s; background: var(--panel); border: 2px solid var(--rule); padding: 12px 16px 14px 60px; position: relative; }
.strip li::before { content: counter(s); position: absolute; left: 16px; top: 10px; font-family: "Archivo Black", Impact, sans-serif; font-size: 30px; line-height: 1; color: var(--accent); }
.strip .t { display: block; font-family: "Archivo Black", Impact, sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: 16px; margin-bottom: 2px; }
.strip .d { display: block; font-size: 17px; line-height: 1.4; }
.strip .more { margin: 10px 0 0; }
.strip h2 { font-size: 22px; margin-bottom: 10px; }
@media (max-width: 600px) {
  .hero { padding-top: 16px; }
  .hero .one { font-size: 18px; margin-bottom: 14px; }
  .strip h2 { font-size: 19px; margin-bottom: 8px; }
  .strip ol { gap: 8px; }
  .strip li { padding: 9px 12px 10px 46px; }
  .strip li::before { left: 13px; top: 9px; font-size: 25px; }
  .strip .t { font-size: 15px; }
  .strip .d { font-size: 16px; line-height: 1.35; }
}

/* ---------- Contents ---------- */
#contents { margin: 26px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#contents h2 { font-size: 20px; }
#contents ol { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: 44px; }
#contents a { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; text-decoration: none; color: var(--ink); break-inside: avoid; }
#contents a:hover .t { text-decoration: underline; }
#contents .dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
#contents .n { color: var(--accent); font-style: italic; white-space: nowrap; }

/* ---------- Leaves: a main column and a margin where notes are taped ---------- */
.leaf { padding: 38px 0; border-bottom: 1px dashed var(--line); display: grid; gap: 22px 44px; }
.leaf > * { min-width: 0; }
.folio { margin: 0 0 4px; font-style: italic; color: var(--muted); font-size: 16px; }
.panel { background: var(--panel); border-left: 5px solid var(--accent); padding: 18px 20px; margin: 14px 0; }
.panel p:first-child { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }
ul.points { padding-left: 1.2em; }
ul.points li { margin: 6px 0; }
.sides { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 14px 0; }
.side { border: 1px solid var(--line); background: var(--panel); padding: 12px 14px; }
.side h3 { margin-top: 0; }
.side p { margin: 4px 0; }
.scrap { position: relative; align-self: start; background: var(--scrap); color: var(--scrap-ink); padding: 22px 16px 14px; font-style: italic; font-size: 17px; line-height: 1.45;
  box-shadow: 1px 2px 0 var(--shadow); transform: rotate(var(--tilt, -1.2deg)); max-width: 420px; margin: 6px 4px; }
.margin { display: flex; flex-direction: column; gap: 34px; align-self: start; }
/* r41l: every Keeper's note hangs from a nail, not tape (Kyle, 2026-11-16: "a nail instead of tape might be better"). The nail
   spot and the tilt change a little from note to note, so no two hang the same way. */
.margin .scrap:nth-child(2) { --tilt: 1.3deg; --nx: -11px; }
.margin .scrap:nth-child(3) { --tilt: -.5deg; --nx: 8px; }
#play .margin .scrap:first-child { --tilt: -1.7deg; --nx: 6px; }
#join .margin .scrap:nth-child(3) { --tilt: .8deg; --nx: -4px; }
#join .margin .scrap:first-child { --tilt: -.7deg; --nx: -6px; }
#people .margin .scrap:first-child { --tilt: 1deg; --nx: 3px; }
#contact .margin .scrap:first-child { --tilt: -1.5deg; --nx: 9px; }
/* Hammered silver tacks (Kyle: "Like a well hammered silvery one?"): a dented, uneven round head, a soft highlight, a dark rim
   and a small shadow. Shape, highlight, facets and dent change a little per note. The dark rim reads on light paper, the silver on dark. */
.scrap::before, .tag-note > details::before { content: ""; position: absolute; top: 6px; left: calc(50% + var(--nx, 0px)); width: var(--nw, 14px);
  height: calc(var(--nw, 14px) - 1px); margin-left: calc(var(--nw, 14px) / -2); border: 1px solid #3f4448; box-sizing: border-box;
  border-radius: var(--nr, 53% 47% 51% 49% / 48% 54% 46% 52%);
  background: radial-gradient(circle at var(--nd, 66% 64%), rgba(40,44,48,.35) 0 10%, transparent 16%),
    radial-gradient(circle at var(--nh, 34% 30%), #fdfdfb 0 9%, #d9dcde 24%, #a3a8ac 52%, #6b7176 88%),
    conic-gradient(from var(--na, 20deg), #e6e8ea, #8d9296 18%, #d4d7d9 37%, #7c8186 58%, #c9ccce 79%, #e6e8ea);
  background-blend-mode: normal, overlay, normal;
  box-shadow: 1px 2px 1px rgba(0,0,0,.45), inset -1px -1px 1px rgba(0,0,0,.3), inset 1px 1px 0 rgba(255,255,255,.55); }
.margin .scrap:nth-child(2) { --nr: 46% 54% 50% 50% / 55% 47% 53% 45%; --nh: 40% 28%; --na: 75deg; --nd: 30% 68%; }
.margin .scrap:nth-child(3) { --nr: 51% 49% 44% 56% / 50% 46% 54% 50%; --nh: 30% 36%; --na: 140deg; --nd: 70% 30%; }
#game .tag-note > details { --nr: 55% 45% 49% 51% / 47% 52% 48% 53%; --nh: 38% 32%; --na: 200deg; }
#join .tag-note > details { --nr: 48% 52% 56% 44% / 52% 48% 50% 50%; --na: 290deg; --nd: 64% 70%; }
#people .tag-note > details, #contact .margin .scrap:first-child { --nr: 44% 56% 52% 48% / 49% 55% 45% 51%; --nh: 28% 40%; --na: 110deg; }
#play .margin .scrap:first-child, #join .tag-note.road > details { --nr: 50% 50% 46% 54% / 53% 49% 51% 47%; --na: 250deg; --nd: 40% 72%; }
/* Desktop: the notes hang on a strip of old cork (Kyle: "Make the side look more cork board, maybe kinda cracked but together").
   CSS grain, hairline cracks held by staples, a worn frame. The notes are paper, so no cork shows under text. No motion. */
:root { --cork: #c49a6c; --cork-frame: #6e4a2d; --cork-ink: rgba(58,32,12,.55); }
@media (prefers-color-scheme: dark) { :root:not(.theme-light) { --cork: #5e4430; --cork-frame: #4a3524; --cork-ink: rgba(12,6,2,.7); } }
:root.theme-dark { --cork: #5e4430; --cork-frame: #4a3524; --cork-ink: rgba(12,6,2,.7); }
@media (min-width: 900px) {
  .leaf > .margin { position: relative; padding: 24px 14px 22px; border: 7px solid var(--cork-frame); border-radius: 5px 3px 6px 4px;
    background: radial-gradient(rgba(60,32,10,.3) .8px, transparent 1.4px) 1px 2px / 5px 7px,
      radial-gradient(rgba(255,232,196,.2) .9px, transparent 1.5px) 3px 1px / 9px 6px,
      radial-gradient(rgba(45,22,6,.24) 1.3px, transparent 2.1px) 4px 5px / 11px 13px,
      radial-gradient(rgba(70,40,15,.18) 1.8px, transparent 2.8px) 7px 3px / 17px 19px,
      radial-gradient(ellipse at 30% 40%, rgba(255,226,180,.16), transparent 60%) 0 0 / 37px 29px,
      radial-gradient(ellipse at 60% 50%, rgba(40,20,5,.14), transparent 60%) 11px 7px / 43px 31px,
      url("../img/paper-grain.svg"), var(--cork);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,236,206,.25), inset 0 0 16px rgba(30,15,4,.4), 1px 2px 0 var(--shadow); }
  .leaf > .margin .scrap { margin: 6px 0; z-index: 1; }
  .margin > .cracks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; filter: drop-shadow(.6px .7px 0 rgba(255,236,206,.3)); }
  .cracks .c { fill: none; stroke: var(--cork-ink); stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .cracks .s { fill: none; stroke: #a7acb0; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
}
@media print { .leaf > .margin { background: none; border: 0; box-shadow: none; } .margin > .cracks { display: none; } }
/* Phones: one small nailed tag per section, right after the paragraph its note fits (Kyle: "the tiny posted note with the nail
   was small, but it wiggled so people can tap it"; "it can have a little icon on it"). A tap opens the note in place. */
.tag-note { margin: 18px 0 22px; }
.tag-note > details { --tilt: -1.6deg; position: relative; display: inline-block; vertical-align: top; max-width: min(100%, 420px);
  background: var(--scrap); color: var(--scrap-ink); box-shadow: 1px 2px 0 var(--shadow); padding: 20px 14px 4px;
  transform: rotate(var(--tilt)); transform-origin: calc(50% + var(--nx, 0px)) 12px; }
#game .tag-note > details { --sw: 3.4deg; }
#play .tag-note > details { --tilt: 1.4deg; --nx: -14px; --nw: 13px; --sw: -2.8deg; padding: 19px 16px 4px; }
#join .tag-note.road > details { --tilt: -.9deg; --nx: 5px; --nw: 15px; --sw: 4deg; }
#join .tag-note > details { --tilt: 2.6deg; --nx: 3px; --sw: -3.2deg; padding: 21px 12px 5px; }
#people .tag-note > details { --tilt: -1.2deg; --nx: -4px; --nw: 13px; --sw: 2.6deg; }
#contact .tag-note > details { --tilt: .9deg; --nx: 9px; --nw: 15px; --sw: -3.6deg; padding: 20px 15px 3px; }
#join .margin .scrap:nth-child(2) { --nw: 15px; }
#play .margin .scrap:nth-child(3) { --nw: 13px; }
.tag-note > details > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; min-height: 44px; cursor: pointer;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--scrap-muted); }
.tag-note > details > summary::-webkit-details-marker { display: none; }
.tag-note > details > summary::marker { content: ""; }
.tag-note > details > summary:focus-visible { outline: 3px solid var(--scrap-ink); outline-offset: 3px; }
.tag-note .tag-ic { flex: none; color: var(--scrap-ink); }
.tag-note .tag-hint { font-size: 15px; letter-spacing: 0; text-transform: none; font-style: italic; }
.tag-note .t-click { display: none; }
@media (pointer: fine) { .tag-note .t-tap { display: none; } .tag-note .t-click { display: inline; } }
.tag-note > details[open] .tag-hint { display: none; }  /* the hint stays while closed, so the cue never depends on the swing */
.tag-note .tag-text { margin: 2px 0 10px; font-style: italic; font-size: 17px; line-height: 1.45; }
.tag-note details.lead { margin: 0 0 10px; }
@media (max-width: 899px) { .leaf > .margin { display: none; } }
@media (min-width: 900px) { .tag-note { display: none; } }
@media print { .tag-note { display: none; } .leaf > .margin { display: flex; } }
.scrap p { margin: 0 0 8px; }
.scrap .who { font-style: normal; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--scrap-muted); }
.scrap a { color: inherit; }
.scrap :focus-visible { outline-color: var(--scrap-ink); }
details.lead { margin-top: 8px; border-top: 1px dotted currentColor; padding-top: 6px; }
details.lead summary { cursor: pointer; font-style: normal; min-height: 32px; }
.fact { border-left: 5px solid var(--accent); background: var(--panel); padding: 12px 16px; margin: 14px 0; }
.fact p { margin: 4px 0; }
.big { font-size: 22px; }
@media (min-width: 900px) {
  .leaf { grid-template-columns: minmax(0, 1fr) 260px; }
  .leaf > .body { border-right: 1px solid var(--accent); padding-right: 44px; }
  .margin { margin-top: 40px; }
}

/* ---------- The cards (r43, Kyle 2026-11-22) ----------
   Cards are drawn in the page: real text, Kyle's own photos in the art box, no card pictures with words baked in, no switched art.
   A Wardens / Raiders switch shows one Banner's cards at a time (script adds it; without script both lists show). */
.card-set[hidden], .f-switch[hidden] { display: none !important; }
.f-switch { margin: 12px 0 4px; }
.card-shared { margin-top: 26px; }
.card-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); } /* r45: on screens 300 px and wider a card is at least 238 px wide, so its rules text stays at 11 px or more */
.card-grid > li { background: var(--panel); border: 1px solid var(--line); padding: 14px; }
.card-grid h3 { margin: 0 0 10px; font-size: 18px; text-align: center; text-transform: uppercase; }
.card-grid > li > p { margin: 0; font-size: 17px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The card. It stays light in the dark look, like a printed card.
   r45 (Kyle 2026-11-23: the cards were "VERY long"): every card has the printed card's shape, 2.5 x 3.5 in (5 : 7), at every width.
   Layout follows the printed face: Banner strip 4.5% at the left, name and cost bar, type line, art box from 18% to 88% of the
   height with the rules on a solid panel and at least a third of the art box left clear, stat blocks at the bottom right. Sizes scale with the card (cqw = 1% of
   the card's width), so every card looks the same at every width. If text ever cannot fit, the rules panel scrolls; nothing is cut off. */
.gc { --gc-bg: #e4e2ec; --gc-edge: #3b2f78; --gc-ink: #1b1a22; --gc-sub: #3d3a4a; --gc-line: #8d8aa0;
  container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; width: 100%; max-width: 320px; aspect-ratio: 5 / 7; min-height: 0;
  margin: 0 auto 12px; padding: 0; color: var(--gc-ink);
  background: linear-gradient(90deg, var(--gc-edge) 0 4.5%, var(--gc-bg) 4.5%); border: 1px solid var(--gc-line); border-radius: 10px; }
.gc.fac-r { --gc-bg: #eee4dd; --gc-edge: #8f2d1e; --gc-sub: #4a3a34; --gc-line: #a58f84; }
.gc.fac-n { --gc-bg: #e7e4da; --gc-edge: #4f4a40; --gc-sub: #3f3b32; --gc-line: #9b9686; }
.gc > * { flex: none; margin-left: 7.7cqw; margin-right: 4.8cqw; }
.gc-top { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; margin-top: 2.4cqw; min-height: 10.8cqw; }
.gc .gc-name { margin: 0; font-size: 16px; font-size: max(13px, 6.6cqw); font-weight: bold; line-height: 1.1; color: var(--gc-ink); }
.gc-cost { flex: none; display: grid; place-items: center; width: 26px; height: 26px; width: 10.8cqw; height: 10.8cqw; border-radius: 50%; background: var(--gc-edge); color: #fff;
  font-size: 15px; font-size: max(12px, 6.1cqw); font-weight: bold; line-height: 1; }
.gc .gc-line { display: flex; justify-content: space-between; gap: 2cqw; margin-top: 1.2cqw; margin-bottom: 0; padding-bottom: .8cqw; border-bottom: 2px solid var(--gc-edge);
  font-size: 12px; font-size: max(11px, 5cqw); font-weight: bold; line-height: 1.2; color: var(--gc-sub); white-space: nowrap; }
.gc-fac { display: inline-flex; align-items: center; gap: 1.2cqw; }
.gc-ic { flex: none; width: 1em; height: 1em; }
/* r46 (Kyle 2026-11-23: "THAT is how i wanted the card to look, but with shorter text"; full box art with the text overlay in the
   cloud style, rulings/kyle-card-face-full-art-cloud-overlay-direction-2026-11-16.md): the photo fills the whole art box and the rules
   sit on a soft white cloud over its lower part (Battlefield Location and Frontier cards: the upper part, as printed). Where there is
   text the cloud is 74% opaque, so the dark text keeps more than 4.5:1 contrast over any photo, even pure black (CHANGES-r46.md).
   If text ever cannot fit, the rules scroll; nothing is cut off. */
.gc-top { grid-row: 1; }
.gc .gc-line { grid-row: 2; }
.gc-stats { grid-row: 4; }
.gc-art { grid-row: 3; grid-column: 1; min-height: 0; margin-top: 4.4cqw; margin-bottom: 0; position: relative; overflow: hidden; border: 1px solid rgba(0, 0, 0, .4); background: #cfcbc0; }
.card-grid .gc-art img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; object-position: 50% 50%; }
.gc-ph { display: grid; place-items: start center; height: 100%; padding: 6cqw 2.5cqw 2.5cqw; text-align: center; font-size: 12px; font-size: max(11px, 4.6cqw); font-weight: bold; line-height: 1.25; color: #2b2820;
  background: repeating-linear-gradient(45deg, #d9d6cc, #d9d6cc 10px, #cdc9bd 10px, #cdc9bd 20px); }
.gc.fac-n .gc-ph { place-items: end center; padding: 2.5cqw 2.5cqw 6cqw; }
.gc > .gc-rules { grid-row: 3; grid-column: 1; align-self: end; position: relative; z-index: 1; min-height: 0; max-height: calc(100% - 4.4cqw - 2px); overflow-y: auto;
  margin: 0 calc(4.8cqw + 1px) 1px calc(7.7cqw + 1px); padding: 7cqw 3cqw 2.6cqw; border: 0;
  background: linear-gradient(to bottom, rgba(250, 248, 243, 0), rgba(250, 248, 243, .74) 6cqw); }
.card-grid .gc-rules p { margin: 0; font-size: 12px; font-size: max(11px, 4.8cqw); line-height: 1.28; color: var(--gc-ink); }
.card-grid .gc-rules p + p { margin-top: .35em; }
.gc-rules .gc-lab { display: block; font-weight: bold; } /* r53a F-009: an ability label on its own line, bold, same size (Kyle's pick) */
/* Battlefield Location and Frontier cards print their rules at the top of the art box */
.gc.fac-n > .gc-rules { align-self: start; margin-top: calc(4.4cqw + 1px); margin-bottom: 0; padding: 2.6cqw 3cqw 7cqw;
  background: linear-gradient(to top, rgba(250, 248, 243, 0), rgba(250, 248, 243, .74) 6cqw); }
.gc:not(:has(.gc-stats)) > .gc-art { margin-bottom: 4.8cqw; }
.gc:not(:has(.gc-stats)) > .gc-rules { margin-bottom: calc(4.8cqw + 1px); }
.gc.fac-n:not(:has(.gc-stats)) > .gc-rules { margin-bottom: 4.8cqw; }
.gc-stats { list-style: none; display: flex; justify-content: flex-end; align-items: stretch; gap: 1.1cqw; min-height: 12.3cqw; margin-top: 3.4cqw; margin-bottom: 1.6cqw; padding: 0; }
.card-grid .gc-stats li { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 12.8cqw; padding: .4cqw 1.6cqw; background: var(--gc-edge); color: #fff; border: 0; line-height: 1.1; }
.gc-stats b { font-size: 13px; font-size: max(12px, 5.4cqw); }
.gc-stats span { font-size: 11px; font-size: max(11px, 3.6cqw); font-weight: bold; letter-spacing: .03em; }

/* ---------- Try one turn (r41h): six short guided examples, a new one on each visit. Places keep one size; the message box
   sits under the map; the one button to press next sits right under it. That button is big, has its own bright color (--go,
   used for nothing else), says "Tap:" or "Click:" and what to do, and has an arrow and a thick outline, so color is never the
   only signal. It pulses only where the site allows motion. Every state also has words (Yours, Open, Theirs). ---------- */
.demo { --go: #8f4421; --go-ink: #fbf5e8; --go-ring: #8f4421; --warden: #34449c; --raider: #7a1f2b; --frontier: #d9b77a; --on-card: #fbf5e8; --on-sand: #1e1813; border: 2px solid var(--rule); background: var(--panel); padding: 16px; }
@media (prefers-color-scheme: dark) { :root:not(.theme-light) .demo { --go-ring: #d6aa6e; } }
:root.theme-dark .demo { --go-ring: #d6aa6e; }
.demo [hidden] { display: none !important; }
.taste { margin: 0; }
.d-map { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 12px; }
.d-map::before { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; border-top: 3px dotted var(--line); }
.d-place { position: relative; height: 122px; padding: 4px 4px; color: var(--ink); background: var(--bg); border: 2px solid var(--rule); border-radius: 20px 16px 22px 18px / 18px 22px 16px 20px; display: grid; grid-template-rows: 30px 22px 28px 28px; align-content: center; justify-items: center; text-align: center; }
.d-place.open { border-style: dashed; }
.d-place.mine { background: var(--scrap); color: var(--scrap-ink); border-width: 3px; }
.d-place.here { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--accent); }
.d-place .pn { align-self: end; font-family: "Archivo Black", Impact, sans-serif; font-size: 12px; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase; }
.d-place .po { font-size: 15px; font-style: italic; line-height: 24px; }
.d-place .pt { align-self: center; font-size: 13px; line-height: 1; padding: 5px 8px; border-radius: 999px; white-space: nowrap; background: var(--warden); color: var(--on-card); }
.d-place .pt:empty { visibility: hidden; }
.d-place .pt.enemy { background: var(--raider); color: var(--on-card); }
.d-place .pt.hurt { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.d-say { margin: 0; padding: 8px 12px; min-height: 196px; background: var(--bg); border: 2px solid var(--rule); border-left-width: 6px; }
.d-say p { margin: 0; }
#d-status::after { content: ""; display: table; clear: both; }
.d-mini { float: left; width: 66px; height: 88px; margin: 6px 12px 4px 0; padding: 4px 2px; border: 2px solid var(--rule); border-radius: 6px; background: var(--panel); color: var(--ink); display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; text-align: center; }
.d-mini .d-mk { font: 9px/1.2 "Archivo Black", Impact, sans-serif; letter-spacing: .02em; text-transform: uppercase; color: var(--accent); }
.d-mini .d-mw { font-size: 12px; font-style: italic; line-height: 1.1; }
.d-mini.k-unit, .d-mini.k-guard, .d-mini.k-overrun, .d-mini.k-tactic, .d-mini.k-vehicle { background: var(--warden); border-color: var(--warden); color: var(--on-card); }
.d-mini.k-eguard { background: var(--raider); border-color: var(--raider); color: var(--on-card); }
.d-mini.k-frontier { background: var(--frontier); border-color: var(--frontier); color: var(--on-sand); }
.d-mini.k-unit .d-mk, .d-mini.k-guard .d-mk, .d-mini.k-overrun .d-mk, .d-mini.k-tactic .d-mk, .d-mini.k-vehicle .d-mk, .d-mini.k-eguard .d-mk { color: var(--on-card); }
.d-mini.k-frontier .d-mk { color: var(--on-sand); }
.d-step { font-family: "Archivo Black", Impact, sans-serif; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.d-what { font-size: 17px; line-height: 1.45; }
.d-why { font-size: 17px; line-height: 1.45; margin-top: 4px !important; color: var(--muted); }
.d-say.over .d-step { font-size: 17px; line-height: 1.3; letter-spacing: .02em; text-transform: none; color: var(--ink); margin-bottom: 2px; }
.d-front { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: center; margin: 12px 0 0; min-height: 120px; }
/* r41l: every example starts with the top Frontier card face down; step 1 turns it up (rule book r10: Recovery, then Frontier). */
.d-front.down .d-storm { outline: 2px dashed var(--on-sand); outline-offset: -6px; }
.d-front.down .d-sname { font: italic 15px/1.2 "Gentium", Georgia, serif; text-transform: none; }
/* r41l: the header: who you are, the round as a Keeper's tally and a stamp, and the six phases (passed ones struck through,
   the current one circled in ink). No motion. */
.d-head { margin: 0 0 12px; }
.d-sides { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 8px; }
.d-side { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 7px; border-radius: 4px 8px 5px 7px; font-size: 15px; line-height: 1.35; color: var(--on-card); }
.d-side.you { background: var(--warden); }
.d-side.them { background: var(--raider); }
.d-side.now { outline: 2px solid var(--ink); outline-offset: 2px; }
.d-side svg { flex: none; }
.d-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; }
.d-tally { flex: none; color: var(--ink); }
.d-stamp { display: inline-block; font: 13px/1 "Archivo Black", Impact, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  border: 2px solid currentColor; border-radius: 3px 6px 4px 5px; padding: 5px 8px 4px; transform: rotate(-3deg); box-shadow: inset 0 0 0 2px var(--panel), inset 0 0 0 3px currentColor; }
.d-turn { font-style: italic; font-size: 16px; }
.d-phases { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.d-phases li { padding: 1px 6px; border: 2px solid transparent; border-radius: 10px 7px 11px 8px; }
.d-phases li.done { color: var(--ink); text-decoration: line-through; text-decoration-thickness: 2px; }
.d-phases li.now { color: var(--ink); border-color: var(--ink); }
@media (max-width: 359px) { .d-front { min-height: 140px; } }  /* measured: the longest card text is 139 px at 320 wide */
.d-storm { height: 120px; padding: 7px 6px; border-radius: 8px; background: var(--frontier); color: var(--on-sand); text-align: center; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; }
.d-storm p { margin: 0; }
.d-deck { font: 11px/1.2 "Archivo Black", Impact, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.d-sname { font: 13px/1.15 "Archivo Black", Impact, sans-serif; text-transform: uppercase; }
.d-stext { margin: 0; font-size: 16px; line-height: 1.45; }
.d-go-wrap { margin: 16px 0 0; }
.d-go { position: relative; display: block; width: 100%; min-height: 68px; margin: 0; padding: 10px 14px 10px 44px; border: 0; border-radius: 10px; background: var(--go); color: var(--go-ink); font: 17px/1.3 "Archivo Black", Impact, sans-serif; letter-spacing: .02em; text-align: left; cursor: pointer; outline: 4px solid var(--go-ring); outline-offset: 3px; box-shadow: 0 4px 0 var(--rule); }
.d-go::before { content: "\25B8"; content: "\25B8" / ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 24px; line-height: 1; }
.d-go:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; }
.d-act { min-height: 48px; padding: 10px 18px; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--rule); border-radius: 2px; text-align: center; cursor: pointer; }
.d-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.d-more { margin: 16px 0 0; }
.d-keys { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
@media (pointer: coarse) { .d-keys { display: none; } }
@media (max-width: 420px) { .demo { padding: 12px; } .d-say { min-height: 220px; } .d-mini { width: 62px; height: 80px; margin: 6px 10px 4px 0; } .d-mini svg { width: 26px; height: 26px; } .d-mini .d-mk { letter-spacing: 0; } .d-map { gap: 8px; } .d-place .pn { font-size: 11px; } }
@media (max-width: 359px) { .demo { padding: 10px; } .d-map { gap: 6px; } .d-place { grid-template-rows: 38px 20px 28px 28px; height: 128px; padding: 4px 2px; }
  .d-place .pn { font-size: 10px; } .d-place .pt { font-size: 11px; padding: 4px 5px; } .d-say { min-height: 244px; } .d-mini { width: 58px; height: 76px; margin-right: 8px; } .d-mini svg { width: 22px; height: 22px; } .d-mini .d-mk { font-size: 8.5px; } .d-go { font-size: 15px; } }
/* Motion, on phones too, only when the device allows it and the Motion switch is on (html.anim, set by site.js): the big
   button pulses; after each tap the new words and markers arrive (a short wait, then a slow ease-in, staggered); the storm
   card turns over once. Without motion the outline and arrow stay, just as clear, and everything simply shows. */
@media (prefers-reduced-motion: no-preference) {
  html.anim .d-go { animation: d-pulse 1.6s ease-in-out infinite; }
  html.anim .d-in { animation: d-arrive .7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 150ms) both; }
  html.anim .d-storm { animation: d-turn .8s cubic-bezier(0.22, 1, 0.36, 1) .25s both; }
  @keyframes d-pulse { 0%, 100% { outline-offset: 3px; box-shadow: 0 4px 0 var(--rule), 0 0 0 0 rgba(214, 170, 110, 0); } 50% { outline-offset: 9px; box-shadow: 0 4px 0 var(--rule), 0 0 22px 8px rgba(214, 170, 110, .6); } }
  @keyframes d-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes d-turn { from { opacity: 0; transform: perspective(500px) rotateY(-90deg); } to { opacity: 1; transform: none; } }
}
@media (forced-colors: active) {
  .d-place .pt, .d-storm, .d-say, .d-mini { border: 1px solid CanvasText; }
  .d-go { border: 3px solid ButtonText; }
}

/* ---------- Get Involved: posted bills on a board (from direction C) ---------- */
.board { background: var(--board) url("../img/board-grain.svg"); color: var(--board-ink); padding: 40px 0 46px; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.board h2 { color: var(--board-ink); }
.board .folio { color: var(--board-muted); }
.board > .wrap > p { max-width: 46em; }
.board a { color: var(--board-ink); }
.board :focus-visible { outline-color: var(--board-ink); }
.board-note { font-style: italic; color: var(--board-muted); }
.bills { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.bill { position: relative; background: var(--bill); color: var(--bill-ink); padding: 30px 18px 18px; box-shadow: 3px 5px 0 rgba(0,0,0,.35); min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bill::before { content: ""; position: absolute; top: 9px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--nail); box-shadow: inset 0 2px 0 rgba(255,255,255,.3); }
.bill::after { content: ""; position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; background: linear-gradient(135deg, rgba(30,24,19,.28) 0 50%, var(--board) 50%); }
.bill .no { margin: 0; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--bill-muted); text-align: center; }
.bill h3 { margin: 4px 0 8px; padding: 8px 0; font-size: 21px; text-transform: uppercase; text-align: center; border-top: 3px double var(--bill-ink); border-bottom: 3px double var(--bill-ink); }
.bill p { margin: 6px 0; }
.bill ul { margin: 6px 0; padding-left: 1.2em; }
.bill .note { font-style: italic; color: var(--bill-muted); font-size: inherit; }
.bill .small { color: var(--bill-muted); }
.bill a { color: var(--bill-accent); }
.bill .btn { color: var(--btn-ink); border-color: var(--bill-ink); margin-top: 6px; font-size: 15px; padding: 11px 14px; }
.bill :focus-visible { outline-color: var(--bill-ink); }
.bill .go { margin-top: auto; padding-top: 8px; }
.bill.empty { background: transparent; color: var(--ink); border: 3px dashed var(--line); box-shadow: none; }
.bill.empty::before, .bill.empty::after { display: none; }
.bill.empty h3 { border-color: var(--line); }
.bill.empty .no, .bill.empty .small { color: var(--muted); }
.bill.empty a { color: var(--accent); }
.bill.empty :focus-visible { outline-color: var(--accent); }
@media (min-width: 800px) {
  .bills > li:nth-child(3n+1) .bill { transform: rotate(-.7deg); }
  .bills > li:nth-child(3n+2) .bill { transform: rotate(.5deg); }
  .bills > li:nth-child(3n) .bill { transform: rotate(-.3deg); }
  .bills > li { display: flex; }
  .bills > li > .bill { flex: 1; }
}

/* ---------- Join Us ---------- */
.join-block { background: var(--panel); border: 2px solid var(--rule); padding: 22px 18px; margin-top: 8px; }
form.signup { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 14px 0 8px; }
form.signup .field { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
form.signup label { font-size: 16px; }
form.signup input[type="email"] { font: inherit; padding: 11px 12px; border-radius: 3px; border: 2px solid var(--input-line); background: var(--input-bg); color: var(--input-ink); width: 100%; }
.camp { margin-top: 22px; border: 2px solid var(--rule); background: var(--scrap); color: var(--scrap-ink); padding: 18px; }
.camp h3 { margin-top: 0; text-transform: uppercase; }
.camp a { color: inherit; }
.camp a.btn { color: var(--btn-ink); }
.camp :focus-visible { outline-color: var(--scrap-ink); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; padding: 0; list-style: none; }
.links a, .links .soon { display: block; border: 1px solid var(--rule); padding: 10px 14px; text-decoration: none; color: var(--ink); background: var(--bg); }
.links a:hover { border-color: var(--accent); text-decoration: underline; }
.links .soon { border-style: dashed; color: var(--muted); }
.camp .links a, .camp .links .soon { color: var(--ink); }
.contact-mail { font-size: 20px; overflow-wrap: anywhere; }

/* ---------- Status bars (older pages; written at build time, no script) ---------- */
.status { margin: 16px 0 24px; padding: 14px 16px; border: 1px solid var(--line); background: var(--panel); }
.status h2, .status h3 { margin: 0 0 6px; font-size: 18px; }
.status p { margin: 6px 0; }
.st-bar { position: relative; height: 14px; border-radius: 7px; background: color-mix(in srgb, var(--muted) 35%, transparent); margin: 14px 14px 12px 0; }
.st-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: var(--accent); }
.st-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--muted); }
.st-goal { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -3px; background: var(--ink); }
.st-goal::before { content: ""; position: absolute; top: 0; left: 3px; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent var(--ink); }
.st-nums { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.st-nums span { display: block; }
.st-trend, .st-asof, .st-steps { font-size: 15px; color: var(--muted); }
.stat { font-size: 20px; color: var(--accent); }
.status.compact { border: 0; padding: 0; margin: 10px 0 14px; background: none; }
.status.compact .st-bar { margin-top: 10px; }
.status.compact .st-nums { font-size: 15px; }
.bill .status.compact { margin: 8px 0 4px; }
.bill .st-asof, .bill .st-trend, .bill .st-steps { color: var(--bill-muted); }
.bill .st-fill { background: var(--bill-accent); }
.bill .st-goal { background: var(--bill-ink); }
.bill .st-goal::before { border-left-color: var(--bill-ink); }
.bill .st-bar { background: rgba(30,24,19,.18); }
/* The older pages wrap their main button in a .links row; keep it a real button. */
.links a.button, .links a.btn { background: var(--btn); color: var(--btn-ink); border: 2px solid var(--rule); padding: 13px 22px; }
.links a.button:hover, .links a.btn:hover { border-color: var(--rule); }
.note { color: var(--muted); font-size: 16px; }

/* ---------- Inner pages (Playtest, Draw, Privacy, Proving Ground, 404) ---------- */
.page { max-width: 820px; margin: 0 auto; padding: 8px 16px 40px; }
.page h1 { color: var(--accent); font-size: 32px; margin: 14px 0; }
.page h2 { font-size: 21px; margin: 28px 0 8px; }
.crumbs { max-width: 820px; margin: 0 auto; padding: 14px 16px 0; font-size: 16px; color: var(--muted); }
.d-banner { margin: 12px 0 0; color: var(--muted); }
.d-banner .d-bname { font-family: "Archivo Black", Impact, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.d-banner .d-bflavor { font-style: italic; }

/* ---------- Footer ---------- */
footer.site { text-align: center; padding: 30px 16px 40px; font-size: 15px; color: var(--muted); }
footer.site p { margin: 6px 0; }
.hero .status-label.made { margin-top: 4px; }  /* "Human made. AI assisted." said once, short (Kyle) */
footer.site .gate { padding-bottom: 22px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
footer.site .gate-ask { font-size: 17px; color: var(--ink); margin-bottom: 12px; }
footer.site .gate-btn { display: inline-block; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; padding: 12px 22px; border-radius: 3px; font-size: 17px; }
footer.site .gate-btn:hover, footer.site .gate-btn:focus { background: var(--panel); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  h2 { font-size: 23px; }
  .panel { padding: 16px 14px; }
  .btn, .button { padding: 12px 16px; font-size: 16px; }
  .page h1 { font-size: 26px; }
}
@media (forced-colors: active) {
  .menu nav a[aria-current] { border-color: Highlight; }
  .bill, .scrap, .strip li, .tag-note > details { border: 1px solid CanvasText; }
  .scrap::before, .tag-note > details::before { background: CanvasText; forced-color-adjust: none; }
  .margin > .cracks { display: none; }
  .leaf > .margin { background: none; border-color: CanvasText; box-shadow: none; }
  .d-side { border: 1px solid CanvasText; }
  .d-phases li.now { border-color: Highlight; }
}

/* ---------- Motion: only when the device allows it and the Motion switch is on (html.anim is set by script). Phones get motion
   too (Kyle, 2026-11-16). Arrivals wait a moment, then ease in slowly, moving only opacity and a small translate.
   The words never move while you read them. What moves: the map's art layers float a little; notes and bills settle in once;
   a posted bill's corner and shadow lift a little, like paper in a draft. ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.anim { scroll-behavior: smooth; }
  html.anim .map .lyr { transform-box: view-box; }
  html.anim .map .lyr-land { animation: drift-a 13s ease-in-out infinite alternate; }
  html.anim .map .lyr-river { animation: drift-b 10s ease-in-out infinite alternate; }
  html.anim .map .lyr-trails { animation: drift-c 12s ease-in-out infinite alternate; }
  html.anim .map .lyr-places { animation: drift-d 8s ease-in-out infinite alternate; }
  html.anim .map .river { stroke-dasharray: 1; stroke-dashoffset: 1; }
  html.anim .map.in .river { animation: draw 2.4s cubic-bezier(0.22, 1, 0.36, 1) .25s forwards; }  /* draws once the map is a quarter in view */
  html.anim .map .flag path { animation: flap 3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: left center; }
  html.anim .scrap, html.anim .bill { transition: opacity .8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 200ms), translate .8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 200ms); }
  html.anim .scrap:not(.in), html.anim .bill:not(.in):not(.empty) { opacity: 0; translate: 0 16px; }
  html.anim .bill.float { animation: shade 4.5s ease-in-out infinite alternate; }
  html.anim .tag-note > details.swing { animation: tag-swing 2.2s ease-in-out 1; }  /* one swing on its nail that dies down; the script spaces them out */
  @keyframes tag-swing { 0%, 100% { rotate: 0deg; } 16% { rotate: var(--sw, 3deg); } 38% { rotate: calc(var(--sw, 3deg) * -.65); }
    60% { rotate: calc(var(--sw, 3deg) * .35); } 80% { rotate: calc(var(--sw, 3deg) * -.12); } }
  html.anim .bill.float::after { animation: curl 4.5s ease-in-out infinite alternate; }
  html.anim .bills > li:nth-child(2n) .bill.float, html.anim .bills > li:nth-child(2n) .bill.float::after { animation-delay: -2s; }
  @keyframes drift-a { from { transform: translate(0, 0); } to { transform: translate(-6px, 4px); } }
  @keyframes drift-b { from { transform: translate(0, 0); } to { transform: translate(5px, -5px); } }
  @keyframes drift-c { from { transform: translate(0, 0); } to { transform: translate(-4px, -5px); } }
  @keyframes drift-d { from { transform: translate(0, 0); } to { transform: translate(3px, 7px); } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes flap { from { transform: skewY(-6deg); } to { transform: skewY(8deg) scaleX(.92); } }
  @keyframes shade { from { box-shadow: 3px 5px 0 rgba(0,0,0,.35); } to { box-shadow: 7px 11px 2px rgba(0,0,0,.26); } }
  @keyframes curl { from { width: 16px; height: 16px; } to { width: 30px; height: 30px; } }
}

/* r42c: Try one turn, Advanced (Kyle, 2026-11-18). A Simple / Advanced switch (Simple is the default); five places in one row when
   wide, and on phones a road that turns (3 places, then 2 under them); choices with no prompt; a Hint button. */
.d-mode { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.d-mode .d-act[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--accent); font-weight: bold; }
.a-map { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.a-map .d-place .po { font-size: 14px; }
@media (max-width: 640px) { .a-map .d-place .pt { font-size: 12px; padding: 4px 5px; } }  /* pills fit a 375 px tile */
@media (max-width: 359px) { .a-map .d-place .pt { font-size: 11px; padding: 4px 3px; } }  /* and a 320 px tile */
.a-map .d-place { z-index: 1; }  /* the places sit above the dotted roads drawn behind them */
.a-map::before, .a-map::after { z-index: 0; }
@media (max-width: 640px) {
  .a-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .a-map::before { top: 25%; }
  .a-map::after { content: ""; position: absolute; left: 50%; right: 16.7%; top: 25%; bottom: 25%; border-right: 3px dotted var(--line); border-bottom: 3px dotted var(--line); }
  #a-p3 { grid-column: 3; grid-row: 2; }
  #a-p4 { grid-column: 2; grid-row: 2; }
}
.a-say { min-height: 0; }
.a-note { font-weight: bold; margin-bottom: 6px !important; }
.a-choices { display: grid; gap: 8px; margin: 12px 0 0; }
.a-choices .d-act { text-align: left; }
.a-choices .d-act[disabled] { opacity: .6; text-decoration: line-through; cursor: default; }
.a-hint-text { margin: 12px 0 0; font-style: italic; }
.a-hint-text:empty { margin: 0; }

/* ---------- r47 (Kyle 2026-11-23, "Yes, all of it": website/qa/UX-UI-REVIEW-r46.md section 4) ----------
   The card section spans the whole page width on wide screens (M4) and is a sideways swipe row on phones (H2). A card can be exhausted
   (turned 90 degrees, S1) and flipped to a plain labeled back that explains its words (S3). r49: a puff of dust plays over a card on each flip or exhaust (Kyle 2026-11-25); nothing plays on scroll.
   Every motion sits inside prefers-reduced-motion: no-preference AND html.anim (the Motion switch): with motion off the cards are simply
   there, and flip and exhaust switch at once. The card itself keeps its 2.5 x 3.5 in shape and its cloud face (r46). */
@media (min-width: 900px) { .leaf > .leaf-wide { grid-column: 1 / -1; } }
.leaf-wide > p, .leaf-wide > ul.points { max-width: 46em; }
.gc-how .t-click { display: none; }
@media (pointer: fine) { .gc-how .t-tap { display: none; } .gc-how .t-click { display: inline; } }
.gc-how[hidden] { display: none; }

/* A card on the table: hold (the card's place; it never moves) > dust (blows in) > turn (exhausted = turned sideways) > flip (front and back in one cell) */
.card-grid > li { position: relative; }
.card-grid > li.has-hold > h3 { padding: 0 50px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.gc-hold { position: relative; container-type: inline-size; width: 100%; max-width: 320px; margin: 0 auto 12px; }
.gc-hold .gc { margin: 0; max-width: none; }
.gc-turn { perspective: 1400px; transform-origin: 50% 50%; }
.gc-hold.ex .gc-turn { transform: rotate(90deg) scale(.714); }   /* 1 / 1.4: the turned card is exactly as wide as the upright one */
.gc-flip { display: grid; transform-style: preserve-3d; }
.gc-flip > * { grid-area: 1 / 1; min-width: 0; min-height: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.gc-hold.flipped .gc-flip { transform: rotateY(180deg); }
.gc-back { --gc-edge: #3b2f78; transform: rotateY(180deg); visibility: hidden; display: flex; flex-direction: column; gap: 2cqw; overflow-y: auto;
  padding: 5.5cqw 5cqw 4cqw 8cqw; color: #1b1a22; background: #faf8f3; border: 1px solid #8d8aa0; border-left: 4.5cqw solid var(--gc-edge); border-radius: 10px; }
.gc-back.fac-r { --gc-edge: #8f2d1e; border-color: #a58f84; border-left-color: var(--gc-edge); }
.gc-back.fac-n { --gc-edge: #4f4a40; border-color: #9b9686; border-left-color: var(--gc-edge); }
.gc-hold.flipped .gc-back { visibility: visible; }
.gc-hold.flipped .gc-flip > .gc { visibility: hidden; }
.gc-back p, .gc-back li { margin: 0; font-size: 12px; font-size: max(12px, 4.6cqw); line-height: 1.25; color: #1b1a22; }  /* r47b: 12 px or more from 361 px wide up (r47: 11) */
.gc-flip { position: relative; }
.gc-flip > .gc-back { position: absolute; inset: 0; }   /* r47b: the back always has the card's own box; long text scrolls inside it, the card never grows */
@media (max-width: 360px) { .gc-back p, .gc-back li { font-size: max(11px, 4.4cqw); } .gc-back .gb-h { font-size: max(11px, 3.9cqw); } }   /* 320 px phones: 12 px does not fit the longest back (Warden Leader); r47 sizes */
.gc-back .gb-name { font-size: max(14px, 6.2cqw); font-weight: bold; line-height: 1.1; padding-bottom: 1.5cqw; border-bottom: 2px solid var(--gc-edge); }
.gc-back .gb-h { font-size: max(12px, 4.2cqw); font-weight: bold; letter-spacing: .04em; text-transform: uppercase; color: #3d3a4a; }
.gc-back ul { margin: 0; padding-left: 1.1em; }
.gc-back li + li { margin-top: .4em; }
.gc-back .gb-note { margin-top: auto; padding-top: 2cqw; border-top: 1px dashed #8d8aa0; font-style: italic; color: #3d3a4a; }
/* The whole card is the exhaust button (it lies over the card, so the card's own text stays readable to screen readers) */
.gc-ex { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gc-ex:hover { box-shadow: 0 0 0 2px var(--line); }
.gc-ex:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gc-hold.flipped .gc-ex { pointer-events: none; }   /* a turned-over card can be read (and scrolled); Flip turns it back */
.gc-tag { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%) rotate(-4deg); padding: 6px 12px; border-radius: 3px;
  background: #1e1813; color: #fbf5e8; font: 15px/1.2 "Archivo Black", Impact, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .3); pointer-events: none; opacity: 0; }
.gc-hold.ex .gc-tag { opacity: 1; }
.gc-flipbtn { position: absolute; top: 8px; right: 8px; z-index: 4; display: inline-flex; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 4px 10px;
  font: 15px/1.1 "Gentium", Georgia, serif; color: var(--ink); background: var(--bg); border: 2px solid var(--rule); border-radius: 22px; cursor: pointer; }
.gc-flipbtn::before { content: "\21BB"; content: "\21BB" / ""; font-size: 17px; line-height: 1; }
.gc-flipbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.gc-flipbtn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gc-hold::before, .gc-hold::after { content: ""; position: absolute; pointer-events: none; opacity: 0; z-index: 3; }   /* r49: the dust puff layers (hidden until a flip or exhaust) */
.gc-nav { display: none; }

/* Phones: a sideways swipe row, one card and a peek of the next, with "Card 1 of 7" and Previous / Next (keyboard: Tab to the row, then the arrow keys) */
@media (max-width: 767px) {
  .card-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(86%, 320px); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin; }
  .card-grid > li { scroll-snap-align: start; }
  .card-grid:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  .gc-nav { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; }
  .gc-nav .gc-count { flex: 1; margin: 0; text-align: center; font-size: 16px; line-height: 1.3; color: var(--muted); }
  .gc-nav .d-act { min-height: 44px; padding: 8px 12px; }
  .gc-nav .d-act[disabled] { opacity: .5; cursor: default; }
}
/* r47b (QA-AND-REVIEW-r47 finding 3): the r47 sticky button covered the Frontier text on phones. The button now sits in the page flow
   right under the message box and above the Frontier card (index.html order), so map, message, button and Frontier card fit one
   phone screen and nothing covers text (M5). */
.d-go-wrap { margin: 14px 0 0; }
.d-go-wrap + .d-front { margin-top: 16px; }
@media (max-width: 360px) { .card-grid { grid-auto-columns: 94%; } }   /* small phones: the card stays 238 px or wider, so its text stays 11 px or more */
@media (forced-colors: active) { .gc-tag, .gc-flipbtn, .gc-back { border: 2px solid CanvasText; forced-color-adjust: auto; } }

/* Try one turn (M6): an exhausted marker shows a small card turned sideways, in words for screen readers too; the mini card label is 11 px and fits */
.d-camp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -2px 0 12px; padding: 7px 10px; border: 2px dashed var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font-size: 15px; font-style: italic; line-height: 1.3; }
.d-camp.here { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--accent); }
.d-camp .pt { font-style: normal; font-size: 13px; line-height: 1; padding: 5px 8px; border-radius: 999px; white-space: nowrap; background: var(--warden); color: var(--on-card); }
.d-place .pt.ex, .d-camp .pt.ex { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 2px var(--warden); font-style: italic; }
.d-place .pt.enemy.ex { box-shadow: inset 0 0 0 2px var(--raider); }
.d-place .pt.ex::before, .d-camp .pt.ex::before { content: ""; display: inline-block; width: 11px; height: 7px; margin-right: 4px; border: 2px solid currentColor; border-radius: 2px; vertical-align: 0; }
.d-mini { width: 84px; }
.d-mini .d-mk { font-size: 11px; letter-spacing: 0; }
@media (max-width: 420px) { .d-mini { width: 80px; } }
@media (max-width: 359px) { .d-mini { width: 76px; } .d-mini .d-mk { font-size: 11px; } }
#d-front { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  html.anim .gc-turn { transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1); }
  html.anim .gc-flip { transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1); }
  html.anim .gc-back { transition: visibility 0s linear .3s; }
  html.anim .gc-hold.flipped .gc-back { transition-delay: 0s; }
  html.anim .gc-flip > .gc { transition: visibility 0s linear 0s; }
  html.anim .gc-hold.flipped .gc-flip > .gc { transition-delay: .3s; }
  html.anim .gc-tag { transition: opacity .2s linear .2s; }
  /* r49 (Kyle 2026-11-25): a puff of dust over the card on each flip and each exhaust / ready, every card (js adds .dust-puff for 1 s).
     A sandy haze drifts across the card and a few specks blow through, all inside the card's own box, then fade to nothing. It never
     takes a tap (pointer-events: none) and leaves nothing behind. No scroll-in dust any more. */
  html.anim .gc-hold.dust-puff::before { inset: 0; border-radius: 10px;
    background: radial-gradient(ellipse 55% 40% at 35% 60%, rgba(214, 190, 150, .62), transparent 70%), radial-gradient(ellipse 45% 35% at 68% 38%, rgba(190, 160, 115, .5), transparent 70%);
    animation: puff-haze .9s ease-out both; }
  html.anim .gc-hold.dust-puff::after { left: 6%; top: 28%; width: 5px; height: 5px; border-radius: 50%; background: rgba(150, 118, 74, .85);
    box-shadow: 28px -30px 0 0 rgba(150, 118, 74, .7), 60px 24px 0 1px rgba(171, 139, 95, .65), 96px -10px 0 0 rgba(150, 118, 74, .8), 126px 58px 0 1px rgba(171, 139, 95, .6),
      48px 100px 0 0 rgba(150, 118, 74, .7), 150px 22px 0 0 rgba(171, 139, 95, .65), 18px 150px 0 1px rgba(150, 118, 74, .6), 110px 132px 0 0 rgba(150, 118, 74, .7), 160px 96px 0 0 rgba(171, 139, 95, .6);
    animation: puff-specks .9s ease-out both; }
  @keyframes puff-haze { 0% { opacity: 0; transform: translateX(-8%); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(8%); } }
  @keyframes puff-specks { 0% { opacity: 0; transform: translate(-16px, 6px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(44px, -14px); } }
}
#try-words > details > summary { cursor: pointer; font-weight: bold; min-height: 24px; padding: 2px 0; }
#try-words > details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
/* A link to #try-words lands the box with the "Try one turn" heading above it fully visible under the sticky header
   (header 64px at 375px; scroll-padding-top 84px is added to this margin). */
@media (max-width: 1060px) { #try-words { scroll-margin-top: 36px; } }
