/* The site around the game: a thin header, the game itself as the first screen of the home page,
   and the written pages as sheets of parchment. /g/79a2d42b13 is replaced by the game's versioned address. */
@font-face { font-family: "Bodoni Moda"; src: url("/g/79a2d42b13/fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: Besley; src: url("/g/79a2d42b13/fonts/besley.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #17120d; --ink: #3b2814; --paper: #efdfb6; --brass: #e3b04b; --brass-l: #f7dc8f; --red: #7d1a14;
  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  --slab: Besley, Superclarendon, Rockwell, Georgia, serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  /* the wordmark's own ink, ruled line and the light under a pressed letter (docs/redesign/plan.md, section 11) */
  --b-ink: #2b1a0c; --b-rule: #3b2814; --b-lift: rgba(255,248,222,.7);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: #e9dfc8; font: 17px/1.6 var(--serif);
  background-image: radial-gradient(110% 50% at 50% 0, rgba(227,176,75,.1), transparent 60%); }
a { color: inherit; }

.top { height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* the wordmark: the same mark at every size, only smaller on a phone so that it shares the row with the links */
.brand { display: block; flex: none; line-height: 0; }
.brand img { display: block; height: 34px; width: auto; }
@media (max-width: 560px) { .brand img { height: 26px; } header.top { padding: 0 10px; gap: 8px; } header.top nav { gap: 11px; flex-wrap: nowrap; } header.top nav a { letter-spacing: .1em; } }
@media (max-width: 350px) { .brand img { height: 22px; } header.top nav { gap: 9px; } header.top nav a { font-size: 11px; letter-spacing: .06em; } }
.top nav, .foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a, .foot nav a { font: 700 11.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #cdb98c; text-decoration: none; padding: 8px 0; }
.top nav a:hover, .foot nav a:hover { color: var(--brass-l); }

/* home: the game is the first screen; the heading and the article follow it */
/* The two lines under the name on the first screen are the page's own words, written inside the game's element.
   Until the game has taken them in (it then marks its element with data-screen) they stand about where it will
   put them, over the still picture. */
#game:not([data-screen]) { display: grid; align-content: start; justify-items: center; gap: 8px; padding: calc(max(52px, 7vh) + min(54vw, 590px) * .128 + 12px) 14px 0; box-sizing: border-box; text-align: center; }
#game:not([data-screen]) > p { margin: 0; color: #efdfb4; text-shadow: 0 1px 8px #000, 0 0 2px #000; font: italic clamp(14.5px, 3.9vw, 20px)/1.3 var(--serif); }
#game:not([data-screen]) > p + p { font: 600 clamp(11.5px, 2.9vw, 13.5px)/1.35 Besley, var(--serif); letter-spacing: .02em; color: #d9c79b; }
@media (max-aspect-ratio: 3/4) {
#game:not([data-screen]) { padding-top: calc(clamp(88px, 15vh, 140px) + 90vw * .128 + 10px); } }
/* On the home page the first screen shows the name large. The small wordmark in the page head would say it a
   second time (the owner: "too many of the same banner"): it is kept back while the first screen is in view, and
   comes out once that screen is left behind or the game has gone on to another screen. The head stays in reach. */
body:has(main.home) header.top { position: sticky; top: 0; z-index: 5; background: var(--bg); }
/* it comes in and goes out softly (the owner: "it pops up, then vanishes"): a short fade and a small drop; while it
   is away it cannot be pressed. On the home page pressing it brings the game back into view; elsewhere it goes home. */
header.top .brand { transition: opacity .4s ease, transform .4s ease, visibility 0s, filter .12s; }
/* it is a button (Menu): it answers the pointer and goes down when pressed */
header.top .brand:hover { filter: brightness(1.1) drop-shadow(0 0 6px rgba(247,220,143,.35)); }
header.top .brand:active { transform: translateY(1px); filter: brightness(.95); }
header.top .brand:focus-visible { outline: 2px solid var(--brass-l); outline-offset: 3px; border-radius: 2px; }
body:has(#game:is([data-screen="gate"], [data-screen="hq"])):not(.past-first) header.top .brand { opacity: 0; transform: translateY(-5px); visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
@media (prefers-reduced-motion: reduce) { header.top .brand { transition: none; transform: none !important; } }
/* The game's two title screens fill the window from its very top (the owner, of the first screen: "that dark edge
   is better gone; let the picture fill it"; and of the menu: "the same here"). While the game shows either of them,
   or has not yet begun, the head is not a strip: it is out of the flow, above the window, and its links stand in
   the game's own top row (the game is handed them). It comes down, with the wordmark as Menu, once that screen is
   left behind by scrolling. In a battle it is the strip it was, the wordmark at its left: the way back to the menu. */
body:has(main.home #game:not([data-screen="play"])) header.top { position: fixed; left: 0; right: 0; transform: translateY(-100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
body.past-first:has(main.home #game:not([data-screen="play"])) header.top { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
body:has(main.home #game:not([data-screen="play"])) .home .game-box { height: 100vh; height: 100svh; }
@media (prefers-reduced-motion: reduce) { header.top { transition: none !important; } }
.home { display: flex; flex-direction: column; }
/* The game fills the window under the page head. It may be as low as 340 (a phone on its side, a
   small window): the game has a layout for that, and a taller box would push its own buttons off the screen. */
.home .game-box { order: -1; width: 100%; height: calc(100vh - 44px); height: calc(100svh - 44px); min-height: 340px; max-height: 900px; }
.home h1 { margin: 34px auto 0; padding: 0 18px; max-width: 760px; text-align: center; font: 700 clamp(26px, 5vw, 40px)/1.15 var(--display); color: var(--brass-l); }
/* On a phone the first screen does not take the whole window (the SEO plan of 2026-11-28: the page's own words must
   show under the game without a scroll). While the game shows its first screen, or has not begun, its box is 480
   high at most and leaves room under it for the heading and the first lines of the text; a short window gets a
   lower box, never under 360. From the menu on the box is the whole window again, as before: the menu and a battle
   need it. The game stays where it is, first on the page. (The game lays its first screen out for such a box: game.css,
   "a phone's width, a low box"; the two lines written into the page stand where it will put them.) */
@media (max-width: 480px) and (orientation: portrait) {
  body:has(main.home #game:is(:not([data-screen]), [data-screen="gate"])) .home .game-box { height: clamp(360px, 100vh - 184px, 480px); height: clamp(360px, 100svh - 184px, 480px); }
  .home #game:not([data-screen]) { padding-top: calc(84px + 90vw * .128 + 7px); }
  .home h1 { margin-top: 20px; }
  .home .prose { margin-top: 18px; }
}

.prose { position: relative; width: min(100% - 24px, 760px); margin: 26px auto 40px; padding: clamp(18px, 4vw, 40px); border-radius: 6px; color: var(--ink);
  background: linear-gradient(175deg, #f1e2ba, #dfc996 70%, #d2b981);
  box-shadow: 0 0 0 1px #7a5a26, 0 20px 50px rgba(0,0,0,.6), inset 0 0 60px rgba(92,56,16,.28); }
/* the wordmark's two ruled lines round the sheet. (The plate itself is for cards and buttons: stretched over a long page its paper would be pulled out of shape.) */
.prose::before, .prose::after { content: ""; position: absolute; pointer-events: none; }
.prose::before { inset: 7px; border: 2px solid var(--b-rule); }
.prose::after { inset: 12px; border: 1px solid var(--b-rule); opacity: .8; }
.prose h1 { margin: 0 0 18px; font: 700 clamp(28px, 5.4vw, 42px)/1.12 var(--display); color: var(--b-ink); text-shadow: .7px 1px 0 var(--b-lift); }
/* headings: one ink, the paper lit under it. Red is kept for the seal and the compass star */
.prose h2 { margin: 34px 0 10px; font: 700 clamp(22px, 3.8vw, 28px)/1.2 var(--display); color: var(--b-ink); text-shadow: .7px 1px 0 var(--b-lift); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 8px; font: 700 17px/1.3 var(--slab); color: #3b2814; }
.prose p { margin: 0 0 14px; }
.prose a { color: var(--red); text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.prose code { font: 600 .92em/1 var(--slab); }
.table { overflow-x: auto; margin: 6px 0 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.4; }
.prose th { text-align: left; font: 700 11px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--b-rule); }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid rgba(59,40,20,.3); vertical-align: top; }
.prose tbody tr:nth-child(odd) { background: rgba(59,40,20,.06); }
/* short columns keep to one line and the last, wordy one gets the room; on a phone the table scrolls sideways inside its own box */
.prose th:not(:last-child), .prose td:not(:last-child) { white-space: nowrap; }
.prose td:last-child { min-width: 200px; }
/* who wrote the page and when: one quiet line between the heading and the rule */
.byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin: -8px 0 16px !important; font: italic 15px/1.5 var(--serif); color: #5a4424; }
.byline b { font: 700 11.5px/1.6 var(--display); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--b-rule); }
/* the blog's index: its articles down the sheet, a ruled line between them */
.posts { list-style: none; margin: 6px 0 0 !important; padding: 0 !important; display: grid; gap: 0 !important; }
.posts li { padding: 16px 0; border-bottom: 1px solid rgba(59,40,20,.3); }
.posts li:first-child { padding-top: 4px; }
.posts li:last-child { border-bottom: 0; padding-bottom: 0; }
.posts a { font: 700 clamp(19px, 3.4vw, 23px)/1.25 var(--display); color: var(--b-ink); text-decoration-thickness: 1px; text-shadow: .7px 1px 0 var(--b-lift); }
.posts time { display: block; margin: 6px 0 4px; font: 700 11.5px/1.4 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--b-rule); }
.posts p { margin: 0; font-size: 16px; line-height: 1.5; }
.up { margin: 26px 0 -14px !important; text-align: center; font: 700 11.5px/1.4 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.toc { margin: 0 0 22px; padding: 12px 16px; border-radius: 3px; background: rgba(59,40,20,.07); box-shadow: inset 0 0 0 1px rgba(59,40,20,.35); font-size: 15px; }
.toc b { font: 700 11.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--b-rule); }
.toc ol { margin: 8px 0 0; gap: 3px; columns: 2; column-gap: 2.6em; display: block; } /* (the numbers of the second column stand in the gap: a long line of the first must not reach them) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 4px 0 8px; }
/* the way on to another page: a plate to press, the compass star before its name */
.card { --pb: 16px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 2px 8px 4px; text-decoration: none; color: var(--b-ink) !important;
  border: var(--pb) solid transparent; border-image: url("/g/79a2d42b13/img/brand/plate-w.svg") 24 fill / var(--pb) stretch; filter: drop-shadow(0 4px 4px rgba(43,26,12,.5)) brightness(1.04) saturate(1.1); transition: transform .08s ease-out; }
.card::before { content: ""; grid-row: span 2; width: 38px; aspect-ratio: 1; background: url("/g/79a2d42b13/img/brand/compass.svg") center / contain no-repeat; }
.card:active { transform: translateY(2px); }
.card b { font: 700 17px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--b-ink); text-shadow: .7px 1px 0 var(--b-lift); }
.card span { font-size: 14.5px; line-height: 1.4; font-style: italic; color: #5a4424; }
/* at the foot of a written page, the way back to the game: the main button, as in the game (the plate made of the
   seal's wax, its words and star in the paper's colour, a low light that slowly comes and goes). Its words are as
   they are written: they are a sentence. */
@keyframes beckon { 50% { filter: drop-shadow(0 4px 4px rgba(43,26,12,.5)) drop-shadow(0 0 26px rgba(255,200,125,.78)) brightness(1.1) saturate(1.06); } }
@media (prefers-reduced-motion: reduce) { .back a, .lost p a { animation: none !important; } }
.back { margin: 30px 0 0 !important; text-align: center; }
.back a { --pb: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 62px; padding: 0 12px 0 6px; text-decoration: none; color: #f7ebc8 !important;
  border: var(--pb) solid transparent; border-image: url("/g/79a2d42b13/img/brand/plate-wax.svg") 24 fill / var(--pb) stretch; font: 700 17px/1.2 var(--display); letter-spacing: .04em; text-shadow: 0 1px 0 #3d0906, 0 0 2px rgba(61,9,6,.85);
  filter: drop-shadow(0 4px 4px rgba(43,26,12,.5)) drop-shadow(0 0 12px rgba(255,190,110,.34)) brightness(1) saturate(1); animation: beckon 3.8s ease-in-out infinite; transition: transform .08s ease-out; }
.back a::before { content: ""; flex: none; width: 34px; aspect-ratio: 1; background: url("/g/79a2d42b13/img/brand/compass-l.svg") center / contain no-repeat; }
.back a:active { transform: translateY(3px); }

.foot { padding: 8px 16px 34px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.foot p { margin: 0; font-size: 13px; color: #9c8c6d; }
@media (max-width: 520px) { body { font-size: 16.5px; } .toc ol { columns: 1; } .prose table { font-size: 14px; } .prose td:last-child { min-width: 0; } .prose th, .prose td { padding: 7px 6px; } }

/* ---------- home: the article as modules ----------
   One sheet, wider than a page of prose. Words keep to a column of about 720; pictures, cards and
   tables may take the sheet's whole width. Every h2 opens a module (a <section class="mod">). */
.home .prose { width: min(100% - 24px, 1060px); padding: clamp(16px, 3.4vw, 44px) clamp(14px, 3.4vw, 48px) clamp(20px, 3.4vw, 44px); }
.home .prose > *, .mod > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.home .prose > .mod, .mod > .wide { max-width: none; }
.mod { padding: 6px 0 4px; }
.mod > .rose-rule { max-width: none; margin: clamp(14px, 2.6vw, 24px) 0 clamp(18px, 3vw, 28px); }
.mod:first-of-type { margin-top: 6px; }
.mod h2 { margin-top: 0; }
.mod p { margin-top: 0; }
/* the four lines under the heading */
.prose .sum { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
/* the four lines at the head of the sheet, and the numbered steps: no boxes. Written on the sheet itself, a ruled
   line between them; their signs and numbers in the map's ink. (A row of small boxes is what the plate is not for.) */
.sum li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; padding: 4px 14px 4px 0; font: 15px/1.4 var(--serif); color: var(--ink); }
.sum li + li { padding-left: 14px; border-left: 1px solid rgba(59,40,20,.4); }
.sum svg { width: 32px; height: 32px; padding: 4px; border-radius: 50%; fill: var(--b-ink); box-shadow: 0 0 0 1.5px var(--b-rule); }
.sum strong { font: 700 15px/1.25 var(--slab); color: var(--b-ink); }
/* numbered steps */
.prose .steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 8px; }
.steps li { counter-increment: step; position: relative; min-height: 54px; margin: 0; padding: 11px 14px 11px 60px; border-bottom: 1px solid rgba(59,40,20,.3); line-height: 1.45; }
.steps li:first-child { border-top: 1px solid rgba(59,40,20,.3); }
.steps li::before { content: counter(step); position: absolute; left: 13px; top: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 17px/1 var(--display); color: #f7ebc8; background: var(--b-rule); }
.steps strong { font: 700 16.5px/1.3 var(--slab); color: var(--b-ink); }
/* pictures of the game: real ones, framed like the map */
.shot { margin: 20px auto 6px; }
/* never shown larger than it was taken: a picture of the game stays sharp, or it is centred at its own size */
.shot img, .mcard > img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: 4px; background: #1c1610; box-shadow: 0 0 0 2px #3b2814, 0 0 0 3.5px #ecd9a6, 0 0 0 4.5px #3b2814, 0 10px 20px rgba(40,20,5,.32); }
.shots .shot img, .mcard > img { width: 100%; }
.mod > .shot.narrow { max-width: 430px; }
.shot figcaption { margin-top: 9px; text-align: center; font: italic 14px/1.4 var(--serif); color: #5a4424; }
.shots { display: grid; gap: 16px; margin: 20px auto 6px; align-items: start; }
.shots .shot { margin: 0; }
.shots.n2 { grid-template-columns: 1fr 1fr; max-width: 940px; }
.shots.n3 { grid-template-columns: repeat(3, 1fr); max-width: 940px; }
.shots.screens { grid-template-columns: minmax(0, .36fr) 1fr; align-items: end; max-width: 900px; }
/* two cards side by side (the two battles) */
.mcards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px auto 6px; max-width: 940px; }
/* a card is the wordmark's plate; its name is in pressed capitals */
.mcard, .foe-card { --pb: 20px; position: relative; border: var(--pb) solid transparent; border-image: url("/g/79a2d42b13/img/brand/plate.svg") 24 fill / var(--pb) stretch; filter: drop-shadow(0 4px 4px rgba(43,26,12,.45)); }
.mcard { display: grid; align-content: start; gap: 12px; padding: 2px 4px 4px; }
.mcard-t { padding: 0 4px 4px; }
.mcard h3, .foe-card h3 { font: 700 16.5px/1.25 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--b-ink); text-shadow: .7px 1px 0 var(--b-lift); }
.mcard h3 { margin: 0 0 4px; }
.mcard p { margin: 0; font-size: 16px; line-height: 1.5; }
.badge { display: inline-block; margin-bottom: 7px; font: 700 10.5px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #7d1810; }
/* the three opponents */
.foe-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px auto 16px; max-width: 940px; }
.foe-card { padding: 2px 4px 4px; text-align: center; }
.foe-card img { width: 112px; height: 112px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 2px #3b2814, 0 0 0 3.5px #ecd9a6, 0 0 0 4.5px #3b2814, 0 6px 14px rgba(40,20,5,.3); }
.foe-card h3 { margin: 14px 0 6px; }
.foe-card h3 .lv { display: inline-flex; align-items: center; gap: 4px; margin: 6px auto 0; padding: 3px 9px 3px 6px; border-radius: 999px; border: 1px solid rgba(255,244,214,.65); color: #fff6dc; font: 700 11px/1 var(--slab); letter-spacing: .1em; text-shadow: none; text-transform: uppercase; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.foe-card h3 .lv svg { width: 13px; height: 13px; flex: none; }
.foe-card h3 { display: grid; justify-items: center; }
.lv-easy { background: #2f6b3d; } .lv-medium { background: #8a5d12; } .lv-hard { background: #a3231b; }
.foe-card p { margin: 0; font-size: 15.5px; line-height: 1.5; text-align: left; }
/* the twelve portraits: the game's own sheet, one frame each, no words */
.pcs { display: flex; gap: 10px; margin: 18px auto; padding: 6px 4px 12px; overflow-x: auto; max-width: 940px; scrollbar-width: thin; }
.pcs i { flex: 0 0 auto; width: 66px; aspect-ratio: 1.3; border-radius: 50%; background: #2a1c10 url("/g/79a2d42b13/img/army-red.webp") 0 0 / 1200% 100% no-repeat; background-position: calc(var(--n) * 100% / 11) 0; box-shadow: 0 0 0 2px #8f2118, 0 0 0 3px var(--brass), 0 0 0 4px #2a1806, 0 4px 8px rgba(40,20,5,.4); }
/* questions that open */
.faq details { border-top: 1px solid rgba(90,60,20,.28); }
.faq details:last-child { border-bottom: 1px solid rgba(90,60,20,.28); }
.faq summary { cursor: pointer; padding: 13px 30px 13px 2px; position: relative; list-style: none; font: 700 17px/1.35 var(--slab); color: #3b2814; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 700 22px/1 var(--slab); color: #7d1810; }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 3px; }
.faq details p { margin: 0 0 14px; padding-right: 26px; }
/* the page's foot: who this is not */
.foot .indie { max-width: 640px; margin: 12px auto 0; font-size: 12.5px; line-height: 1.5; color: #a8966c; }
@media (max-width: 760px) {
  .prose .sum { grid-template-columns: 1fr 1fr; }
  .mcards, .foe-cards { grid-template-columns: 1fr; }
  .mcard, .foe-card { --pb: 16px; }
  .foe-card { display: grid; grid-template-columns: 84px 1fr; gap: 0 14px; text-align: left; align-items: start; }
  .foe-card img { width: 84px; height: 84px; grid-row: span 2; }
  .foe-card h3 { margin: 2px 0 6px; justify-items: start; } .foe-card h3 .lv { margin-left: 0; }
  .shots.n3 { gap: 8px; } .shots.n3 figcaption { font-size: 12.5px; }
  .shots.n2:not(.screens) { grid-template-columns: 1fr; }
  .pcs i { width: 58px; }
}
@media (max-width: 900px) { .sum li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 420px) { .sum li { grid-template-columns: 1fr; gap: 6px; font-size: 14px; } .prose .sum { gap: 8px; } }


/* ---------- the brand's elements ----------
   The wordmark's own parts, cut out of it by the program that draws it (tools/art/logo/make_wordmark.py)
   and kept with the game's pictures: one copy for the game and the site. Nothing here is a new drawing.
   Where each goes, and where it does not, is in docs/redesign/plan.md, section 11. In short: the plate for
   cards and buttons; the compass star before the one thing to do and in the divider; the seal as a pin,
   rarely; the flag for who is playing and for what is lost or won. */
.rose { --rose: 28px; display: inline-block; flex: 0 0 auto; width: var(--rose); aspect-ratio: 1; background: url("/g/79a2d42b13/img/brand/compass.svg") center / contain no-repeat; }
.rose-rule { display: flex; align-items: center; gap: 14px; color: var(--b-rule); }
.rose-rule::before, .rose-rule::after { content: ""; flex: 1; height: 5px; border-top: 2px solid currentColor; border-bottom: 1px solid currentColor; opacity: .75; }
.prose > h1 + .rose-rule { margin: -4px 0 22px; }
.seal { --seal: 44px; display: inline-block; flex: 0 0 auto; width: var(--seal); aspect-ratio: 116 / 120; background: url("/g/79a2d42b13/img/brand/seal.svg") center / contain no-repeat; }
/* the seal pins the sheet by its corner, and marks the battle to start with: twice on a long page, far apart */
.pin-sheet { --seal: 64px; position: absolute; top: -30px; right: clamp(8px, 3vw, 34px); transform: rotate(8deg); z-index: 2; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.pin-card { --seal: 50px; position: absolute; top: -34px; right: -26px; transform: rotate(10deg); z-index: 1; }
.flag { --flag: 72px; display: inline-block; flex: 0 0 auto; width: var(--flag); aspect-ratio: 1; border-radius: 50%; background: #5a100c url("/g/79a2d42b13/img/pieces/rF.webp") 46% 48% / 150% auto no-repeat; box-shadow: 0 0 0 2px #3b2814, 0 0 0 3.5px #ecd9a6, 0 0 0 4.5px #3b2814; }
/* a page that is not there: the flag, one line, and the way back as the main button */
.lost { text-align: center; }
.lost .flag { margin: 6px 0 16px; }
.lost p a { --pb: 16px; display: flex; width: fit-content; max-width: 100%; margin: 18px auto 0; align-items: center; gap: 12px; min-height: 62px; padding: 0 12px 0 6px; text-decoration: none; color: #f7ebc8;
  border: var(--pb) solid transparent; border-image: url("/g/79a2d42b13/img/brand/plate-wax.svg") 24 fill / var(--pb) stretch; font: 700 16px/1.2 var(--display); letter-spacing: .04em; text-shadow: 0 1px 0 #3d0906, 0 0 2px rgba(61,9,6,.85);
  filter: drop-shadow(0 4px 4px rgba(43,26,12,.5)) drop-shadow(0 0 12px rgba(255,190,110,.34)) brightness(1) saturate(1); animation: beckon 3.8s ease-in-out infinite; }
.lost p a::before { content: ""; flex: none; width: 34px; aspect-ratio: 1; background: url("/g/79a2d42b13/img/brand/compass-l.svg") center / contain no-repeat; }
@media (max-width: 640px) {
  /* a narrow sheet has no room for two rules and its words: one rule, close to the edge */
  .prose::before { inset: 4px; border-width: 1.5px; } .prose::after { display: none; }
  .pin-sheet { --seal: 46px; top: -22px; }
  .pin-card { --seal: 42px; top: -28px; right: -20px; }
  .back a, .lost p a { font-size: 15px; }
}

/* ---------- the form for writing to us (the footer's Contact, in a dialog; game/parts/feedback.js) ----------
   On a sheet of the written pages' paper: labels in the slab face, fields of a lighter paper ruled in the page's ink, and Send as
   a small plate of the seal's wax, like the main button at the foot of the page but quieter. */
.fb { display: grid; gap: 6px; }
.fb-label { margin-top: 8px; font: 700 15px/1.3 var(--slab); color: #3b2814; }
.fb-message, .fb-email { width: 100%; box-sizing: border-box; padding: 10px 12px; font: 16px/1.5 var(--serif); color: var(--b-ink);
  background: rgba(255,250,232,.72); border: 1px solid var(--b-rule); border-radius: 3px; box-shadow: inset 0 1px 3px rgba(59,40,20,.18); }
.fb-message { min-height: 128px; resize: vertical; }
.fb-message:focus, .fb-email:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.fb-count { justify-self: end; font-size: 13px; font-style: italic; color: #6b5a45; }
.fb-human:empty { display: none; }
.fb-human { margin-top: 8px; }
.fb-send { --pb: 12px; justify-self: start; margin-top: 12px; min-height: 46px; padding: 0 18px; cursor: pointer; color: #f7ebc8;
  border: var(--pb) solid transparent; border-image: url("/g/79a2d42b13/img/brand/plate-wax.svg") 24 fill / var(--pb) stretch; background: none;
  font: 700 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 0 #3d0906, 0 0 2px rgba(61,9,6,.85);
  filter: drop-shadow(0 3px 3px rgba(43,26,12,.45)); transition: transform .08s ease-out; }
.fb-send:active { transform: translateY(2px); }
.fb-send:disabled { cursor: progress; filter: drop-shadow(0 3px 3px rgba(43,26,12,.45)) grayscale(.4) brightness(.92); }
.fb-note { min-height: 1.5em; margin: 6px 0 0 !important; font-style: italic; color: #5a4424; }
.fb-note[data-kind="ok"] { color: #2f5a1e; font-style: normal; font-weight: 700; }
.fb-note[data-kind="error"] { color: var(--red); }
.fb-dialog { width: min(100% - 24px, 520px); max-height: calc(100% - 24px); padding: 0; border: 0; background: none; overflow: visible; color: var(--ink); }
.fb-dialog::backdrop { background: rgba(10,7,5,.78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.fb-dialog-card { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; box-sizing: border-box; padding: clamp(20px, 5vw, 32px);
  border-radius: 6px; font: 17px/1.55 var(--serif);
  /* the same paper and edge as a written page (.prose) */
  background: linear-gradient(175deg, #f1e2ba, #dfc996 70%, #d2b981); box-shadow: 0 0 0 1px #7a5a26, 0 20px 50px rgba(0,0,0,.6), inset 0 0 60px rgba(92,56,16,.28); }
.fb-dialog-card::before { content: ""; position: absolute; inset: 7px; border: 2px solid var(--b-rule); pointer-events: none; }
.fb-dialog-card h2 { margin: 0 0 8px; font: 700 clamp(22px, 5vw, 28px)/1.2 var(--display); color: var(--b-ink); text-shadow: .7px 1px 0 var(--b-lift); }
.fb-intro { margin: 0 0 4px; }
.fb-intro a { color: var(--red); text-underline-offset: 3px; }
.fb-close { position: relative; display: block; margin: 14px auto 0; padding: 8px 18px; border: 1px solid var(--b-rule); border-radius: 3px; background: none; cursor: pointer;
  font: 700 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--b-ink); }

/* ---------- /online: the H1 and a line under it, then the game, then the page's words ----------
   The head stays the ordinary strip here (the game's wordmark and the head's are not on one screen at once: the
   H1 stands between them). The box leaves room above it for the H1 and the line, so that on most screens the
   game's start button is in view without scrolling; it is never lower than its own smallest layout (340). */
.online { display: flex; flex-direction: column; }
/* the head keeps its wordmark here: the rule above hides it only where the game's own name fills the top of the window */
body:has(main.online #game):not(.past-first) header.top .brand { opacity: 1; transform: none; visibility: visible; }
.online h1 { margin: clamp(12px, 2.4vh, 22px) auto 0; padding: 0 16px; max-width: 1100px; text-align: center; font: 700 clamp(24px, 4.6vw, 38px)/1.15 var(--display); color: var(--brass-l); }
.online .lede { margin: 6px auto clamp(10px, 2vh, 14px); padding: 0 16px; max-width: 900px; text-align: center; font: italic clamp(15px, 2.6vw, 18px)/1.4 var(--serif); color: #cdb98c; }
.online .game-box { width: 100%; height: calc(100vh - 44px - 118px); height: calc(100svh - 44px - 118px); min-height: 440px; max-height: 860px; }
@media (max-width: 560px) { .online .game-box { height: calc(100svh - 192px); min-height: 500px; } }

/* ---------- the foot's Learn row: the guides, once released ---------- */
.foot nav.learn { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 18px; }
.foot nav.learn b { font: 700 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #8f7d5a; }

/* ---------- /setups: the H1 and a line, then the formation builder (game/parts/setups.js), then the words ----------
   The builder sits on a sheet of the written pages' paper; the board is the four home rows, the front row on top. */
.tool { display: flex; flex-direction: column; }
.tool h1 { margin: clamp(14px, 3vh, 24px) auto 0; padding: 0 16px; max-width: 1000px; text-align: center; font: 700 clamp(24px, 4.6vw, 38px)/1.15 var(--display); color: var(--brass-l); }
.tool .lede { margin: 6px auto 12px; padding: 0 16px; max-width: 760px; text-align: center; font: italic clamp(15px, 2.6vw, 18px)/1.4 var(--serif); color: #cdb98c; }
.builder { width: min(100% - 16px, 760px); margin: 0 auto; padding: clamp(12px, 3vw, 22px); box-sizing: border-box; border-radius: 6px; color: var(--ink);
  background: linear-gradient(175deg, #f1e2ba, #dfc996 70%, #d2b981); box-shadow: 0 0 0 1px #7a5a26, 0 14px 34px rgba(0,0,0,.55), inset 0 0 50px rgba(92,56,16,.25); }
.sb-off { margin: 0; font-style: italic; }
.sb-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 8px; }
.sb-chip, .sb-small, .sb-use { font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--b-ink); background: rgba(255,250,232,.55); border: 1px solid var(--b-rule); border-radius: 3px; padding: 9px 12px; cursor: pointer; min-height: 38px; }
.sb-chip[aria-checked="true"], .sb-chip[aria-pressed="true"] { background: #3b2814; color: #f7ebc8; }
.sb-small { padding: 6px 9px; min-height: 32px; font-size: 11px; }
.sb-small:disabled { opacity: .45; cursor: default; }
.sb-use { display: block; margin: 10px auto 0; background: linear-gradient(180deg, #8f2118, #6e150f); color: #f7ebc8; border-color: #3d0906; }
.sb-board { margin: 6px 0 0; }
.sb-edge { margin: 2px 0; text-align: center; font: italic 12.5px/1.2 var(--serif); color: #6b5334; }
.sb-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; padding: 5px; border-radius: 4px; background: #6d5a35; box-shadow: inset 0 0 0 1px #3b2814; }
.sb-cell { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 3px; background: #b9a26d; cursor: pointer; display: grid; place-items: center; }
.sb-cell.bare { background: #a8915e; }
.sb-cell[aria-pressed="true"] { outline: 3px solid #f7dc8f; outline-offset: -1px; background: #e8cf8a; }
.sb-cell:focus-visible { outline: 2px solid #7d1a14; outline-offset: 1px; }
.sb-tok { position: relative; width: 92%; aspect-ratio: 1; border-radius: 50%; background: #2a1c10 var(--art) calc(var(--n) * 100% / 11) 0 / 1200% 100% no-repeat; box-shadow: 0 0 0 2px #8f2118, 0 1px 3px rgba(0,0,0,.45); }
.sb-tok b { position: absolute; right: -3px; bottom: -3px; min-width: 15px; padding: 1px 3px; border-radius: 8px; font: 700 10px/1.2 var(--slab); color: #f7ebc8; background: #3b2814; text-align: center; }
.sb-how { min-height: 1.4em; margin: 8px 0 2px; text-align: center; font: italic 14.5px/1.4 var(--serif); }
.sb-count { margin: 0 0 8px; text-align: center; font-size: 13px; color: #6b5334; }
.sb-slots-head { margin: 10px 0 6px; font: 700 13.5px/1.35 var(--slab); color: #3b2814; }
.sb-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.sb-list li { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid rgba(59,40,20,.35); border-radius: 3px; background: rgba(255,250,232,.4); }
.sb-slot-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.sb-slot-name.empty { color: #8a7650; font-style: italic; }
.sb-said { min-height: 1.4em; margin: 8px 0 0; text-align: center; font-size: 14px; color: #2f5524; }
@media (max-width: 420px) { .sb-grid { gap: 2px; padding: 3px; } .sb-tok b { font-size: 9px; min-width: 12px; right: -2px; bottom: -2px; } .sb-chip { padding: 8px 9px; font-size: 11px; } }

/* the four short lines at the top of a written page (/online, /strategy): two by two in the narrower column of a
   written page; the home page's wide sheet keeps its four in a row */
main:not(.home) .prose .sum { grid-template-columns: 1fr 1fr; row-gap: 14px; }
main:not(.home) .sum li:nth-child(3) { padding-left: 0; border-left: 0; }

/* ---------- a long page's two small things: a second button in outline, and a row of links to its parts ----------
   The button is the cards' parchment plate, small (the red plate is the page's one main button). The row is the
   contents box's own look; on a phone it is one line that is slid sideways, on a wide screen it wraps. */
.go2 { margin: 14px 0 18px !important; text-align: center; }
.go2 a { --pb: 12px; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 8px; text-decoration: none; color: var(--ink) !important;
  border: var(--pb) solid transparent; border-image: url("/g/79a2d42b13/img/brand/plate.svg") 24 fill / var(--pb) stretch; font: 700 14.5px/1.2 var(--display); letter-spacing: .05em;
  filter: drop-shadow(0 2px 2px rgba(43,26,12,.4)); transition: transform .08s ease-out; }
.go2 a:hover { filter: drop-shadow(0 2px 2px rgba(43,26,12,.4)) brightness(1.05); } .go2 a:active { transform: translateY(2px); }
.strip { margin: 0 0 22px; }
.strip b { display: block; margin: 0 0 8px; font: 700 11.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--b-rule); }
.strip div { display: flex; flex-wrap: wrap; gap: 8px; }
.strip a { flex: none; padding: 8px 13px; border-radius: 3px; background: rgba(59,40,20,.07); box-shadow: inset 0 0 0 1px rgba(59,40,20,.35); font-size: 15px; line-height: 1.2; white-space: nowrap; color: var(--ink); text-decoration: none; }
.strip a:hover { background: rgba(59,40,20,.14); }
@media (max-width: 640px) {
  .strip div { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * clamp(18px, 4vw, 40px)); padding: 0 clamp(18px, 4vw, 40px) 8px; scroll-padding: 0 clamp(18px, 4vw, 40px); scrollbar-width: thin; }
  .strip a { scroll-snap-align: start; }
}

/* ---------- small tags under an H1 (a page's line written as words parted by " · "): Free · No signup · No download ---------- */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 8px auto clamp(10px, 2vh, 14px); padding: 0 16px; }
.tags li { padding: 6px 11px 5px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(227,176,75,.6); font: 700 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #e9d7a6; white-space: nowrap; }

/* The way to the site's other languages: one row in the foot, under the links, in the hand of the "Learn" row.
   (Added to the stylesheet only once a second language is live: tools/build-site.mjs.) */
.foot nav.langs { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 18px; }
.foot nav.langs b { font: 700 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #8f7d5a; }
.foot nav.langs a { text-transform: none; letter-spacing: .04em; font-size: 12.5px; }
.foot nav.langs a[aria-current] { color: var(--brass-l); }

/* A language whose three words in the head are longer than the English ones (Dutch: Spelen, Online, Spelregels; German: Spielen, Online, Spielregeln)
   did not fit beside the wordmark on a phone: the last word ran off the screen and the page could be pushed
   sideways. On a narrow screen such a language's wordmark is a little smaller and its words a little closer; on
   the narrowest the words go under the wordmark. English is as it was. */
@media (max-width: 430px) {
  html:is(:lang(nl), :lang(de)) .brand img { height: 22px; }
  html:is(:lang(nl), :lang(de)) header.top nav { gap: 8px; }
  html:is(:lang(nl), :lang(de)) header.top nav a { font-size: 10.5px; letter-spacing: .04em; }
}
@media (max-width: 345px) {
  html:is(:lang(nl), :lang(de)) header.top { height: auto; min-height: 44px; flex-wrap: wrap; justify-content: center; row-gap: 0; padding-top: 6px; }
}

/* German makes long words, and puts them in headings ("Datenschutzerklärung", "Verbraucherstreitbeilegung"): on the
   narrowest phones one such word was wider than the page, which could then be pushed sideways. There a heading
   may break a word that does not fit its line, with a hyphen where the browser knows the language's. */
@media (max-width: 380px) {
  html:lang(de) :is(h1, h2, h3) { overflow-wrap: break-word; hyphens: auto; }
}
