/* ──────────────────────────────────────────────────────────────────────────
 * The information pages: Despre cercetași and its chapters.
 *
 * Same voice as the game — Baloo 2, scout green, warm paper — but laid out
 * for reading rather than playing. Illustrated throughout with the game's own
 * sprite art, so the pages and the camp are visibly the same world.
 * ────────────────────────────────────────────────────────────────────────── */

:root {
  --green: #2e6b2f;
  --green-deep: #1f4a21;
  --green-mid: #4a8c3f;
  --ink: #33301f;
  --ink-soft: #6b6450;
  --paper: #fdfaf2;
  --edge: #e6dcc2;
  --orange: #e08a24;
  --sky: #a8cc7f;
  --shadow: 0 18px 50px rgba(35, 45, 20, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* ── top bar ── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.6rem clamp(0.9rem, 4vw, 2.4rem);
  background: rgba(253, 250, 242, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--edge);
}
.topnav .home { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.topnav .badge {
  width: 34px; height: 34px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; flex: 0 0 auto;
}
.topnav .badge svg,
.topnav .badge img { width: 22px; height: 22px; fill: var(--paper); }
.topnav b { font-weight: 700; font-size: 1rem; line-height: 1.1; display: block; }
.topnav small { color: var(--ink-soft); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.topnav nav { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.topnav nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 0.4rem 0.7rem; border-radius: 999px; white-space: nowrap;
}
.topnav nav a:hover { background: rgba(46, 107, 47, 0.1); color: var(--green); }
.topnav nav a[aria-current="page"] { background: var(--green); color: var(--paper); }
/* Same font-size, same vertical padding and same border width as .langswitch,
 * so the two chips are identical boxes on one baseline. They sit side by side;
 * any difference reads as a mistake. */
.topnav .play {
  background: var(--orange); color: #fff; font-weight: 800; text-decoration: none;
  font-size: 0.82rem; line-height: inherit;
  border: 1.5px solid var(--orange);
  padding: 0.36rem 0.9rem; border-radius: 999px;
  box-shadow: 0 2px 0 rgba(140, 80, 10, 0.45);
}
.topnav .play:hover { filter: brightness(1.05); }

/* ── hero ── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #b9d891, #7fb356 46%, #56913f);
  color: #fff; padding: clamp(2.4rem, 7vw, 4.6rem) clamp(1rem, 5vw, 2rem) clamp(3rem, 8vw, 5rem);
  text-align: center;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 46px;
  background: radial-gradient(60% 100% at 50% 0, transparent 68%, var(--paper) 69%);
}
.hero .wrap { position: relative; z-index: 1; max-width: 46rem; margin: 0 auto; }
.hero .fleur { width: 66px; height: 66px; margin: 0 auto 0.6rem; display: block; fill: #fff; opacity: 0.95; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.08; margin: 0 0 0.5rem; text-shadow: 0 3px 16px rgba(20, 40, 10, 0.35); }
.hero p { font-size: clamp(1rem, 2.4vw, 1.18rem); margin: 0 auto; max-width: 34rem; opacity: 0.97; }
.hero .kicker {
  display: inline-block; margin-bottom: 0.8rem; padding: 0.28rem 0.9rem;
  background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
}

/* ── layout ── */
.page { max-width: 62rem; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2rem) 5rem; }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.22rem); color: var(--ink-soft); max-width: 40rem; margin: 2.2rem auto 0; text-align: center; }

section { margin-top: clamp(2.4rem, 6vw, 3.6rem); scroll-margin-top: 5rem; }
section > h2 {
  font-size: clamp(1.4rem, 3.6vw, 1.9rem); color: var(--green-deep);
  margin: 0 0 0.2rem; display: flex; align-items: center; gap: 0.6rem;
}
section > h2 svg { width: 1.5rem; height: 1.5rem; fill: var(--green-mid); flex: 0 0 auto; }
section > .sub { color: var(--ink-soft); margin: 0 0 1.2rem; font-size: 0.98rem; }
h3 { font-size: 1.12rem; color: var(--green); margin: 1.4rem 0 0.35rem; }
p { margin: 0 0 0.9rem; }
a { color: var(--green); }

/* ── cards ── */
.grid { display: grid; gap: 1rem; }
/* 22rem, not 17: inside the 62rem reading column this lands on exactly two
 * columns, so a four-card set reads 2×2 instead of an orphaned 3+1. */
.grid.two { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.card {
  background: #fff; border: 1.5px solid var(--edge); border-radius: 18px;
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .art { display: block; height: 210px; margin: -0.7rem auto 0.7rem; object-fit: contain; }

/* age sections */
.branch {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1.5px solid var(--edge); border-left: 6px solid var(--green-mid);
  border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); margin-bottom: 0.9rem;
}
.branch .age {
  flex: 0 0 auto; min-width: 4.6rem; text-align: center;
  background: var(--green); color: #fff; border-radius: 12px; padding: 0.5rem 0.6rem;
  font-weight: 800; line-height: 1.15;
}
.branch .age small { display: block; font-weight: 600; font-size: 0.66rem; opacity: 0.85; letter-spacing: 0.06em; }
.branch h3 { margin: 0 0 0.2rem; }
.branch p { margin: 0; font-size: 0.95rem; }
.branch.r { border-left-color: #c0392b; }
.branch.b { border-left-color: #2f6db4; }
.branch.g { border-left-color: #4a8c3f; }
.branch.o { border-left-color: var(--orange); }

/* the law, numbered */
.law { counter-reset: law; display: grid; gap: 0.4rem; }
.law li {
  counter-increment: law; list-style: none; display: flex; gap: 0.8rem; align-items: baseline;
  background: #fff; border: 1.5px solid var(--edge); border-radius: 12px; padding: 0.6rem 0.9rem;
}
.law li::before {
  content: counter(law); flex: 0 0 auto; width: 1.7rem; height: 1.7rem;
  background: var(--green); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 0.82rem;
}
.law { padding: 0; margin: 0; }

/* pull quote */
.quote {
  margin: 1.6rem 0; padding: 1.2rem 1.4rem; border-radius: 16px;
  background: linear-gradient(160deg, #f4f8ec, #eaf2e0);
  border: 1.5px solid #d8e6c8;
}
.quote p { font-size: 1.08rem; font-style: italic; color: var(--green-deep); margin: 0 0 0.4rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--ink-soft); font-size: 0.88rem; }

/* figure strip */
.strip { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin: 1.4rem 0; }
.strip figure { margin: 0; text-align: center; width: 12.5rem; }
.strip img { height: 172px; object-fit: contain; display: block; margin: 0 auto 0.4rem; }
.strip figcaption { font-size: 0.86rem; color: var(--ink-soft); font-weight: 600; }

/* step list */
.steps { counter-reset: step; padding: 0; margin: 1rem 0 0; }
.steps li {
  counter-increment: step; list-style: none; position: relative;
  padding: 0 0 1.1rem 2.9rem; border-left: 2px dashed #d8d0bb; margin-left: 1rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: -1rem; top: -0.1rem;
  width: 2rem; height: 2rem; background: var(--orange); color: #fff;
  border-radius: 50%; display: grid; place-items: center; font-weight: 800;
}
.steps b { display: block; color: var(--green); }

/* year-stamped variant: the marker is the date, so a life or a history reads
 * as a timeline rather than as a numbered list of equal-weight steps. */
.steps.years li { padding-left: 3.6rem; margin-left: 2.1rem; }
.steps.years li::before {
  content: attr(data-year);
  left: -2.1rem; top: 0; width: 4.2rem; height: 1.8rem;
  border-radius: 999px; font-size: 0.8rem; background: var(--green);
}

/* knot / skill table */
.skills { width: 100%; border-collapse: collapse; margin-top: 0.6rem; font-size: 0.95rem; }
.skills th, .skills td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--edge); vertical-align: top; }
.skills th { color: var(--green-deep); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.skills tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* table of contents for the long chapters */
.toc {
  background: #fff; border: 1.5px solid var(--edge); border-radius: 18px;
  padding: 1rem 1.2rem; margin: 1.8rem 0 0; box-shadow: var(--shadow);
}
.toc b { display: block; color: var(--green-deep); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.toc ol { margin: 0; padding: 0; counter-reset: toc; columns: 2; column-gap: 1.6rem; }
.toc li { counter-increment: toc; list-style: none; margin: 0.18rem 0; break-inside: avoid; }
.toc a { text-decoration: none; font-weight: 600; }
.toc a::before { content: counter(toc) '. '; color: var(--ink-soft); font-weight: 700; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* a myth, called a myth */
.myth {
  background: #fdf0ee; border: 1.5px solid #f0c9c1; border-radius: 14px;
  padding: 0.9rem 1.1rem; margin: 1.2rem 0; font-size: 0.95rem;
}
.myth b { color: #a8412c; }

/* callout */
.note {
  background: #fff8e6; border: 1.5px solid #f0dfae; border-radius: 14px;
  padding: 0.9rem 1.1rem; margin: 1.2rem 0; font-size: 0.95rem;
}
.note b { color: #9a6a12; }

/* chapter cards on the hub */
.chapters { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.4rem; }
.chapter {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1.5px solid var(--edge); border-radius: 18px;
  padding: 1.2rem; box-shadow: var(--shadow); transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.chapter:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(35, 45, 20, 0.22); }
.chapter img { height: 196px; object-fit: contain; margin-bottom: 0.8rem; }
.chapter b { color: var(--green); font-size: 1.08rem; }
.chapter span { color: var(--ink-soft); font-size: 0.9rem; }
.chapter .go { margin-top: auto; padding-top: 0.6rem; color: var(--orange); font-weight: 700; font-size: 0.9rem; }

/* call to action */
.cta {
  margin-top: 3rem; text-align: center; padding: 2rem 1.2rem;
  background: linear-gradient(160deg, #f4f8ec, #e6f0da);
  border: 1.5px solid #d8e6c8; border-radius: 22px;
}
.cta h2 { color: var(--green-deep); margin: 0 0 0.4rem; }
.cta p { color: var(--ink-soft); max-width: 30rem; margin: 0 auto 1.1rem; }
.cta a {
  display: inline-block; background: var(--orange); color: #fff; font-weight: 800;
  text-decoration: none; padding: 0.8rem 1.8rem; border-radius: 999px;
  box-shadow: 0 4px 0 rgba(140, 80, 10, 0.45);
}

/* footer */
footer {
  border-top: 1px solid var(--edge); margin-top: 3rem;
  padding: 1.6rem clamp(1rem, 5vw, 2rem); text-align: center;
  color: var(--ink-soft); font-size: 0.88rem;
}
footer a { color: var(--green); }

/* language toggle */
.langs button {
  border: 1.5px solid var(--edge); background: #fff; color: var(--ink-soft);
  font-family: inherit; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.04em;
  border-radius: 999px; padding: 0.3rem 0.5rem; cursor: pointer; margin-left: 0.2rem;
}
.langs button.on { background: var(--green); color: #fff; border-color: var(--green); }

@media (max-width: 700px) {
  .topnav { flex-wrap: wrap; }
  .topnav nav { order: 3; width: 100%; justify-content: center; }
  .branch { flex-direction: column; }
  .branch .age { align-self: flex-start; }
}

/* ══ generated shell: side navigation, language switch, pager ══
 * Added when the pages became generated per language (build-site.mjs). The
 * side navigation is built from the article's own sections, so it cannot list
 * a heading that is not there. */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip:focus { left: 0; }

.topnav-end { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
.langswitch {
  color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 0.82rem;
  border: 1.5px solid var(--edge); background: #fff; border-radius: 999px;
  padding: 0.36rem 0.72rem; white-space: nowrap;
}
.langswitch:hover { border-color: var(--green); color: var(--green); }

/* two columns: the contents rail, then the article */
.layout {
  max-width: 82rem; margin: 0 auto;
  display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.6rem);
  align-items: start;
}
.layout > .page { max-width: 62rem; padding-left: 0; }

.sidenav { padding: 2.4rem 0 0 clamp(1rem, 4vw, 2rem); }
.sidenav-inner { position: sticky; top: 5.2rem; max-height: calc(100vh - 7rem); overflow-y: auto; }
.sidenav b {
  display: block; color: var(--green-deep); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 0.55rem;
}
.sidenav ol { list-style: none; margin: 0; padding: 0; counter-reset: s; border-left: 2px solid var(--edge); }
.sidenav li { counter-increment: s; }
.sidenav a {
  display: block; padding: 0.34rem 0 0.34rem 0.8rem; margin-left: -2px;
  border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none;
  font-size: 0.9rem; font-weight: 600; line-height: 1.3;
}
.sidenav a:hover { color: var(--green); }
.sidenav a.on { color: var(--green-deep); border-left-color: var(--green); background: rgba(46, 107, 47, 0.06); }

/* previous / next chapter */
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; }
.pager a {
  display: flex; flex-direction: column; gap: 0.1rem; text-decoration: none;
  background: #fff; border: 1.5px solid var(--edge); border-radius: 14px;
  padding: 0.7rem 1.1rem; min-width: 9rem; box-shadow: var(--shadow);
}
.pager a:hover { border-color: var(--green-mid); }
.pager small { color: var(--ink-soft); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; }
.pager b { color: var(--green); }
.pager-next { text-align: right; }

@media (max-width: 900px) {
  .layout { display: block; }
  .sidenav { padding: 1.4rem clamp(1rem, 5vw, 2rem) 0; }
  .sidenav-inner {
    position: static; max-height: none;
    background: #fff; border: 1.5px solid var(--edge); border-radius: 16px; padding: 0.9rem 1.1rem;
  }
  .sidenav ol { columns: 2; column-gap: 1.2rem; border-left: 0; }
  .sidenav li { break-inside: avoid; }
  .sidenav a { padding-left: 0; border-left: 0; }
  .sidenav a.on { background: none; }
}
@media (max-width: 520px) { .sidenav ol { columns: 1; } }

/* homepage hero: taller, with a call to action under the lede */
.hero-home { padding-block: clamp(3rem, 9vw, 6rem) clamp(3.6rem, 10vw, 6rem); }
.hero-home h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
.herocta {
  display: inline-block; margin-top: 1.3rem; background: var(--orange); color: #fff;
  font-weight: 800; text-decoration: none; padding: 0.8rem 1.9rem; border-radius: 999px;
  box-shadow: 0 4px 0 rgba(140, 80, 10, 0.45);
}
.herocta:hover { filter: brightness(1.06); }
.page.is-home > .grid:first-of-type { margin-top: 2rem; }

/* the animated diagram at the top of an opened game */
.game-anim { margin: 0.9rem 0 0.2rem; }
.game-anim canvas {
  display: block; width: 100%; height: 230px;
  border-radius: 12px; border: 1.5px solid var(--edge); background: #a9cf82;
}
.game-anim figcaption {
  color: var(--ink-soft); font-size: 0.82rem; font-weight: 600;
  margin-top: 0.4rem; text-align: center;
}
@media (max-width: 700px) { .game-anim canvas { height: 190px; } }
@media print { .game-anim { display: none; } }

/* ══ the games library ══
 * A working tool, not an article: the search box is the first thing under the
 * hero, the filters are one row of togglable chips, and a result is a single
 * line a leader can scan in a second. */

.page.is-wide { max-width: 74rem; }
/* The games page is a tool, not an article: shrink the hero so the search box
 * is reachable without scrolling on a laptop. */
.is-tool .hero { padding-block: clamp(1.6rem, 4vw, 2.6rem) clamp(2.2rem, 5vw, 3.2rem); }
.is-tool .hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.is-tool .hero p { font-size: 1rem; }

.games-bar {
  position: sticky; top: 3.6rem; z-index: 20;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 0 0.8rem; margin-top: 1.6rem;
  background: linear-gradient(var(--paper) 70%, rgba(253, 250, 242, 0));
}
.games-search {
  position: relative; flex: 1 1 22rem; display: flex; align-items: center;
}
.games-search svg {
  position: absolute; left: 1rem; width: 20px; height: 20px; fill: var(--ink-soft); pointer-events: none;
}
.games-search input {
  width: 100%; font-family: inherit; font-size: 1.05rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 2px solid var(--edge); border-radius: 999px;
  padding: 0.8rem 5rem 0.8rem 2.9rem; box-shadow: var(--shadow);
  -webkit-appearance: none; appearance: none;
}
.games-search input::-webkit-search-cancel-button { display: none; }
.games-search input:focus { outline: none; border-color: var(--green-mid); }
.games-search input::placeholder { color: #a49c86; font-weight: 500; }
.games-search kbd {
  position: absolute; right: 1rem; font-family: inherit; font-size: 0.78rem; font-weight: 700;
  color: var(--ink-soft); background: #f3eede; border: 1px solid var(--edge);
  border-radius: 6px; padding: 0.1rem 0.42rem; pointer-events: none;
}
.games-search input:focus ~ kbd { opacity: 0; }
#q-clear {
  position: absolute; right: 2.9rem; border: 0; background: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--ink-soft); padding: 0 0.3rem;
}
#q-clear:hover { color: var(--green); }
.games-count { font-weight: 700; color: var(--ink-soft); font-size: 0.92rem; white-space: nowrap; }

.games-filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; align-items: center; margin-bottom: 1.4rem; }
.facet { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.facet > b {
  color: var(--ink-soft); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-right: 0.15rem;
}
.facet button {
  font-family: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer;
  color: var(--ink); background: #fff; border: 1.5px solid var(--edge);
  border-radius: 999px; padding: 0.32rem 0.72rem;
  display: inline-flex; align-items: center; gap: 0.38rem;
}
.facet button:hover { border-color: var(--green-mid); }
.facet button span {
  font-size: 0.72rem; font-weight: 800; color: var(--ink-soft);
  background: #f3eede; border-radius: 999px; padding: 0 0.36rem; min-width: 1.5rem; text-align: center;
}
.facet button.on { background: var(--green); border-color: var(--green); color: #fff; }
.facet button.on span { background: rgba(255, 255, 255, 0.24); color: #fff; }
.facet button.is-empty { opacity: 0.38; }
.facet-reset {
  font-family: inherit; font-size: 0.84rem; font-weight: 700; cursor: pointer;
  color: #a8412c; background: #fdf0ee; border: 1.5px solid #f0c9c1; border-radius: 999px; padding: 0.32rem 0.8rem;
}

.games-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.game { background: #fff; border: 1.5px solid var(--edge); border-radius: 14px; overflow: hidden; }
.game.is-open { border-color: var(--green-mid); box-shadow: var(--shadow); }
.game-head {
  width: 100%; display: flex; align-items: flex-start; gap: 0.85rem; text-align: left;
  font-family: inherit; background: none; border: 0; cursor: pointer; padding: 0.8rem 1rem;
}
.game-head:hover { background: #faf7ee; }
.game-n {
  flex: 0 0 auto; min-width: 2.1rem; height: 1.55rem; padding: 0 0.35rem;
  background: #f3eede; color: var(--ink-soft); border-radius: 8px;
  font-size: 0.78rem; font-weight: 800; display: grid; place-items: center;
}
.game.is-open .game-n { background: var(--green); color: #fff; }
.game-main { flex: 1 1 auto; min-width: 0; }
.game-main > b { display: block; color: var(--green-deep); font-size: 1.02rem; line-height: 1.3; }
.game-sum { display: block; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4; margin-top: 0.05rem; }
.game-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.tag {
  font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft);
  background: #f6f2e6; border-radius: 999px; padding: 0.08rem 0.5rem;
}
.tag-lupisori { background: #fdf0dc; color: #9a6a12; }
.tag-cercetasi { background: #e8f1dd; color: #3d6b2c; }
.tag-free { background: #eaf2e0; color: #3d6b2c; }
.tag-kit { background: #f0eef8; color: #574a86; }
.game-chev { flex: 0 0 auto; color: var(--ink-soft); transition: transform 0.18s ease; padding-top: 0.15rem; }
.game.is-open .game-chev { transform: rotate(180deg); }
.game-body { padding: 0.2rem 1.1rem 1.1rem 4rem; border-top: 1px solid var(--edge); margin-top: -1px; }
.game-body p { margin: 0.75rem 0 0; }
.game-body pre {
  background: #f7f4ea; border: 1px solid var(--edge); border-radius: 10px;
  padding: 0.7rem 0.9rem; overflow-x: auto; font-size: 0.82rem; line-height: 1.35; margin: 0.8rem 0 0;
}
.game-meta { color: var(--ink-soft); font-size: 0.84rem; border-top: 1px dashed var(--edge); padding-top: 0.6rem; margin-top: 1rem !important; }
.game mark { background: #ffe9a8; color: inherit; border-radius: 3px; padding: 0 0.1em; }

.games-more { color: var(--ink-soft); font-size: 0.9rem; text-align: center; padding: 1rem; }
.games-empty { text-align: center; color: var(--ink-soft); padding: 3rem 1rem; }
.games-source { color: var(--ink-soft); font-size: 0.86rem; border-top: 1px solid var(--edge); margin-top: 2.4rem; padding-top: 1rem; }

@media (max-width: 700px) {
  /* On a phone the top bar wraps to three rows and, stuck to the top, eats a
   * third of the screen for good. Let it scroll away and give that space to
   * the search box, which is the thing a leader actually needs pinned. */
  .topnav { position: static; }
  .games-bar { top: 0; }
  .games-search kbd { display: none; }
  .games-search input { padding-right: 3rem; }
  #q-clear { right: 0.9rem; }
  .facet { width: 100%; }
  .game-body { padding-left: 1.1rem; }
}

@media print {
  .topnav, .hero, .games-bar, .games-filters, .games-source, .pager, footer, .game-chev { display: none !important; }
  .game { break-inside: avoid; border: 0; border-bottom: 1px solid #ccc; border-radius: 0; }
  .game-head { padding-left: 0; }
}
