/* Content pages only. The game client does not load this file. */

:root {
  --ink: #2a1a10;
  --muted: #7a6656;
  --paper: #fbf4e6;
  --cloth: #7a2e1d;
  --cloth-dark: #5b1f13;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Kannada", "Noto Sans Devanagari",
    "Noto Sans Tamil", "Noto Sans Telugu", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, #fff7e8 0, transparent 42%),
    var(--paper);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  transform: translateY(-150%);
  background: #fff;
  color: var(--cloth);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
}
.skip:focus {
  transform: none;
}

.prose {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
  /* viewport-fit=cover: keep the article out of a sideways phone's notch. */
  padding-left: calc(1.1rem + env(safe-area-inset-left, 0px));
  padding-right: calc(1.1rem + env(safe-area-inset-right, 0px));
}

/* ---- The game app's header, phone tab bar and footer ----
   Copied from apps/web/src/style.css (.topbar, .account-menu, .mobile-nav, .site-footer)
   so a rules page and an app page share one menu. Change both together. The header and
   footer sit where the app's .app box puts them: 1320px wide, 0.75rem from the edge. */
.topbar,
.site-footer {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: calc(0.75rem + env(safe-area-inset-left, 0px));
  padding-right: calc(0.75rem + env(safe-area-inset-right, 0px));
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.topbar__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cloth);
  letter-spacing: -0.01em;
}
.topbar__home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}
.topbar__mark {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgb(90 30 15 / 0.25);
}
.topbar__nav {
  display: none;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 1.25rem;
  margin-right: 1rem;
  font-size: 0.95rem;
}
.topbar__nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.topbar__nav a:hover,
.topbar__nav a[aria-current="page"] {
  color: var(--cloth);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
@media (min-width: 900px) {
  .topbar__nav {
    display: flex;
  }
}
.topbar__tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 640px) {
  .topbar {
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
  }
  .topbar__title {
    font-size: 1.3rem;
    min-width: 0;
  }
  .topbar__mark {
    width: 1.75rem;
    height: 1.75rem;
  }
  .topbar__tagline {
    display: none;
  }
}

.btn {
  font: inherit;
  border-radius: 999px;
  border: 1px solid var(--cloth);
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  background: #fff;
  color: var(--cloth);
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.btn--small {
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
}
.btn--link {
  border: none;
  background: none;
  padding: 0.3rem 0;
  text-decoration: underline;
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.btn:focus-visible {
  outline: 3px solid #e07b00;
  outline-offset: 2px;
}
.account {
  margin-left: auto;
}
.account-menu {
  position: relative;
}
.account-menu__pop {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 20;
  min-width: 14rem;
  background: #fffaf0;
  border: 1px solid #e3cfae;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  box-shadow: 0 8px 24px rgb(42 26 16 / 0.16);
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}
.account-menu__pop[hidden] {
  display: none;
}
.account-menu__email {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  word-break: break-all;
}

/* Below 900px the top menu is hidden: the app's pages are a tab bar fixed to the bottom. */
.mobile-nav {
  --tab-h: 3.5rem;
  position: fixed;
  z-index: 9;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: rgb(255 251 242 / 0.97);
  border-top: 1px solid #e8d4b0;
  box-shadow: 0 -6px 18px -12px rgb(90 40 15 / 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  line-height: 1.4;
}
.mobile-nav__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: var(--tab-h);
  min-width: 0;
  padding: 0.3rem 0.1rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.mobile-nav__icon {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-nav__tab--play .mobile-nav__icon circle {
  fill: currentColor;
  stroke: none;
}
.mobile-nav__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 360px) {
  .mobile-nav__tab {
    padding-inline: 0;
    font-size: 0.6rem;
    letter-spacing: -0.01em;
  }
}
.mobile-nav__tab[aria-current="page"] {
  color: var(--cloth);
}
.mobile-nav__tab[aria-current="page"] .mobile-nav__icon {
  stroke-width: 2.1;
}
@media (max-width: 899.98px) {
  body {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 900px) {
  .mobile-nav {
    display: none;
  }
}
@media (pointer: coarse) {
  .topbar .btn--small {
    min-height: 2.5rem;
  }
  .account-menu__pop .btn--link {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
  }
  .site-footer a,
  .site-footer button[data-consent-settings] {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
  }
  .site-footer nav {
    gap: 0 1rem;
  }
}

/* html.in-app (/header.js): inside the Android app or an installed web app a rules page
   is one of the app's screens. It keeps the app's one-row header and tab bar and drops
   the web chrome: the tagline, the breadcrumbs and the long footer. */
.in-app .topbar__tagline,
.in-app .crumbs,
.in-app .site-footer__web {
  display: none;
}
.in-app .site-footer {
  font-size: 0.85rem;
}
.in-app .site-footer nav {
  justify-content: center;
}
.in-app .btn,
.in-app .mobile-nav {
  -webkit-user-select: none;
  user-select: none;
}
.in-app a,
.in-app button {
  -webkit-tap-highlight-color: transparent;
}

.consent-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  box-sizing: border-box;
  width: auto;
  /* As wide as the article, and clear of a notch on either side, as .prose is. */
  margin: 0.75rem max(calc(1.1rem + env(safe-area-inset-right, 0px)), (100% - 72ch) / 2) 0
    max(calc(1.1rem + env(safe-area-inset-left, 0px)), (100% - 72ch) / 2);
  padding: 0.55rem 0.7rem;
  border: 1px solid #e3cfae;
  border-radius: 10px;
  background: #fffaf0;
  font-size: 0.92rem;
}
.consent-banner[hidden] {
  display: none;
}
.consent-banner p {
  margin: 0;
  flex: 1 1 16rem;
  min-width: 0;
}
.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 0 0 auto;
}
.consent-banner button {
  font: inherit;
  border: 1px solid var(--cloth);
  background: #fff;
  color: var(--cloth-dark);
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
}
.consent-banner [data-consent-ask] button[data-consent="granted"] {
  background: var(--cloth);
  color: #fff;
}
.consent-banner__actions[hidden] {
  /* Reopened after a choice, the banner swaps the first ask for Turn on/off and Close. */
  display: none;
}
.consent-banner a {
  color: var(--cloth);
}
/* Analytics settings focuses the banner (tabindex -1) after scrolling to it. */
.consent-banner:focus {
  outline: none;
}
.consent-banner:focus-visible {
  outline: 2px solid var(--cloth, #7a2e1d);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .consent-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .consent-banner p {
    flex: 0 1 auto;
  }
  .consent-banner__actions {
    justify-content: flex-start;
  }
}

.prose {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}
.prose h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--cloth);
  margin: 0.4rem 0 0.8rem;
}
.prose h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 1.6rem 0 0.4rem;
  color: var(--cloth-dark);
}
.prose p,
.prose li {
  font-size: 1.05rem;
}
.prose a {
  color: var(--cloth);
}
.prose a:focus-visible,
.site-footer a:focus-visible,
.topbar a:focus-visible,
.mobile-nav a:focus-visible {
  outline: 3px solid #e07b00;
  outline-offset: 2px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--muted);
}

.board-mark {
  margin: 0.5rem 0 1rem;
}
.board-mark img {
  display: block;
}
.board-mark figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-footer {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  /* Below 900px the body's room for the tab bar already holds the bottom inset. */
  padding-bottom: 0.75rem;
  border-top: 1px solid #e3cfae;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p {
  margin: 0.4rem 0 0;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.site-footer a,
.site-footer button[data-consent-settings] {
  color: var(--cloth);
}
.site-footer button[data-consent-settings] {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.site-footer button[data-consent-settings][hidden] {
  display: none;
}
/* Where the tab bar is hidden, the footer keeps clear of the home indicator itself.
   After the base rule, so it wins. */
@media (min-width: 900px) {
  .site-footer {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
}

/* A notice from the presence socket (your move, an invite): bottom of the page. */
.presence-note {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(36rem, calc(100vw - 2rem));
  padding: 0.7rem 0.9rem;
  border: 1px solid #e8d4b0;
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 10px 30px -12px rgb(90 40 15 / 0.45);
  z-index: 50;
}
/* On a phone the notice sits above the tab bar (it is drawn over it, z-index 50 > 9). */
@media (max-width: 899.98px) {
  .presence-note {
    bottom: calc(1rem + 3.5rem + env(safe-area-inset-bottom, 0px));
  }
}
.presence-note p {
  margin: 0;
  font-weight: 600;
}
.presence-note__go {
  flex: none;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #7a2e1d;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.presence-note__close {
  flex: none;
  border: none;
  background: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: #7a6656;
}

/* ---- Chowka Bara rules pictures (packages/seo/src/chowkaFigures.ts) ----
   Drawn like the game board (ChowkaBoard.vue and the .cb-* rules in src/style.css):
   keep the two in step. */
.cbf {
  --cbf-square: #f6e7c8;
  --cbf-line: #6b3f22;
  --cbf-home: #f3d27a;
  --cbf-accent: #e07b00;
  --cbf-dest: #ffe27a;
  --cbf-red: #b3261e;
  --cbf-red-soft: #f1c2bb;
  --cbf-green: #2e7d32;
  --cbf-green-soft: #c8e4c2;
  --cbf-no: #b3261e;
  margin: 1rem 0 1.4rem;
  padding: 0.85rem;
  border: 1px solid #e8d4b0;
  border-radius: 14px;
  background: #fffaf0;
}
.cbf figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.6rem;
}
.cbf-svg {
  display: block;
  width: 100%;
  height: auto;
}
.cbf-svg--strip {
  max-width: 24rem;
}
.cbf-cloth {
  fill: var(--cloth);
}
.cbf-coords text {
  fill: #f6e7c8;
  font-size: 17px;
  font-weight: 600;
  text-anchor: middle;
}
.cbf-face {
  fill: var(--cbf-square);
  stroke: var(--cbf-line);
  stroke-width: 1.5;
}
.cbf-sq--safe .cbf-face {
  fill: #f0d9a4;
}
.cbf-sq--home-0 .cbf-face {
  fill: var(--cbf-red-soft);
}
.cbf-sq--home-1 .cbf-face {
  fill: var(--cbf-green-soft);
}
.cbf-sq--centre .cbf-face {
  fill: var(--cbf-home);
}
.cbf-sq--dest .cbf-face {
  fill: var(--cbf-dest);
}
.cbf-cross line {
  stroke: var(--cbf-line);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.45;
}
.cbf-pawn {
  stroke: #fff8ea;
  stroke-width: 2.5;
}
.cbf-seat-0 .cbf-pawn {
  fill: var(--cbf-red);
}
.cbf-seat-1 .cbf-pawn {
  fill: var(--cbf-green);
}
/* South's pawns carry a dot and North's a ring, as on the board. */
.cbf-mark {
  fill: #fff8ea;
}
.cbf-seat-1 .cbf-mark {
  fill: none;
  stroke: #fff8ea;
  stroke-width: 2;
}
.cbf-band {
  fill: #2a1a10;
  stroke: #f3d27a;
  stroke-width: 2.5;
}

/* Whole boards. */
.cbf-boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.cbf-board {
  min-width: 0;
}
.cbf-board__name {
  margin: 0.3rem 0 0;
  text-align: center;
  font-weight: 700;
  color: var(--cloth-dark);
}
.cbf-step {
  fill: var(--cbf-line);
  font-size: 22px;
  font-weight: 700;
  opacity: 0.75;
}
.cbf-route polyline,
.cbf-route .cbf-route__gate {
  fill: none;
  stroke: var(--cbf-accent);
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-width: 7;
  opacity: 0.9;
}
.cbf-route--7 polyline,
.cbf-route--7 .cbf-route__gate {
  stroke-width: 9;
}
.cbf-route--9 polyline,
.cbf-route--9 .cbf-route__gate {
  stroke-width: 11;
}
.cbf-route .cbf-route__gate {
  stroke: var(--cloth);
  stroke-dasharray: 3 14;
}
.cbf-route--7 .cbf-route__gate,
.cbf-route--9 .cbf-route__gate {
  stroke-dasharray: 4 18;
}
.cbf-route__gate-end {
  fill: none;
  stroke: var(--cloth);
  stroke-width: 5;
}
.cbf-chevron {
  fill: none;
  stroke: var(--cloth-dark);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cbf-route--7 .cbf-chevron {
  stroke-width: 5.5;
}
.cbf-route--9 .cbf-chevron {
  stroke-width: 7;
}
.cbf-route__start {
  fill: var(--cbf-red);
  stroke: #fff8ea;
  stroke-width: 3;
}
.cbf-route__end {
  fill: var(--cloth);
  stroke: #fff8ea;
  stroke-width: 3;
}
.cbf-path {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 0.8rem;
  align-items: center;
}
.cbf-path__main {
  min-width: 0;
}
.cbf-path__more {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}
@media (max-width: 520px) {
  .cbf-path {
    grid-template-columns: minmax(0, 1fr);
  }
  .cbf-path__more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Cowrie shells, as the game draws them. */
.cbf-defs {
  position: absolute;
}
.cbf-throws {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.8rem;
}
.cbf-throw p {
  margin: 0.4rem 0 0;
  font-size: 0.98rem;
}
.cbf-shells {
  display: flex;
  gap: 0.3rem;
}
.cbf-shell {
  width: 1.9rem;
  height: 2.7rem;
}
.cbf-shell__body {
  stroke: #120805;
  stroke-width: 0.8;
}
.cbf-shell__specks {
  fill: #f3dfbd;
  opacity: 0.9;
}
.cbf-shell__shine {
  fill: #fff6e6;
  opacity: 0.55;
}
.cbf-shell__lip {
  stroke: #7a4e2c;
  stroke-width: 0.5;
}
.cbf-shell__slit {
  fill: #2a130b;
}
.cbf-shell__teeth {
  fill: none;
  stroke: #6b3f22;
  stroke-width: 0.9;
  stroke-linecap: round;
}

/* Strips of squares with a move drawn over them. */
.cbf-strip {
  fill: var(--cloth);
}
.cbf-rows {
  display: grid;
  gap: 0.9rem;
}
.cbf-row__title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.98rem;
}
.cbf-arc {
  fill: none;
  stroke: var(--cbf-accent);
  stroke-width: 4.5;
  stroke-linecap: round;
}
.cbf-arc--no {
  stroke: var(--cbf-no);
  stroke-dasharray: 9 7;
}
.cbf-head {
  fill: var(--cbf-accent);
}
.cbf-head--no {
  fill: var(--cbf-no);
}
.cbf-pill rect {
  fill: #fff;
  stroke: var(--cbf-accent);
  stroke-width: 2.5;
}
.cbf-pill--no rect {
  stroke: var(--cbf-no);
}
.cbf-pill--yes rect {
  stroke: var(--cbf-green);
}
.cbf-pill text {
  fill: var(--ink);
  font-size: 21px;
  font-weight: 700;
  text-anchor: middle;
}
.cbf-pill--no text {
  fill: var(--cbf-no);
}
.cbf-pill--yes text {
  fill: var(--cbf-green);
}

/* The pair words. */
.cbf-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.9rem;
}
.cbf-term strong,
.cbf-throw strong {
  display: block;
}
.cbf-term p {
  margin: 0.4rem 0 0;
  font-size: 0.98rem;
}
.cbf-svg--term {
  width: auto;
  height: 5.5rem;
  max-width: 100%;
}

/* ---- Pagaday rules pictures (packages/seo/src/pagadayFigures.ts) ----
   Drawn like the game board (Board.vue, PawnShape.vue, Kavade.vue and the .square,
   .pawn and .home-text rules in src/style.css): keep the two in step. */
.pgf {
  --pgf-square: #f6e7c8;
  --pgf-line: #6b3f22;
  --pgf-home: #f3d27a;
  --pgf-accent: #e07b00;
  --pgf-dest: #ffe27a;
  --pgf-red: #b3261e;
  --pgf-green: #2e7d32;
  --pgf-black: #262322;
  --pgf-no: #b3261e;
  margin: 1rem 0 1.4rem;
  padding: 0.85rem;
  border: 1px solid #e8d4b0;
  border-radius: 14px;
  background: #fffaf0;
}
.pgf figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.6rem;
}
.pgf-defs {
  position: absolute;
}
.pgf-svg {
  display: block;
  width: 100%;
  height: auto;
}
.pgf-board {
  max-width: 36rem;
  margin: 0 auto;
}
.pgf-cloth,
.pgf-strip {
  fill: var(--cloth);
}
.pgf-sq rect {
  fill: var(--pgf-square);
  stroke: var(--pgf-line);
  stroke-width: 1.2;
}
.pgf-sq__label {
  font-size: 8px;
  font-weight: 700;
}
.pgf-sq--red .pgf-sq__label {
  fill: var(--pgf-red);
}
.pgf-sq--green .pgf-sq__label {
  fill: var(--pgf-green);
}
.pgf-sq--black .pgf-sq__label {
  fill: var(--pgf-black);
}
.pgf-sq--yellow .pgf-sq__label {
  fill: #9a6c00;
}
.pgf-sq--belly.pgf-sq--red rect {
  fill: #f1c2bb;
}
.pgf-sq--belly.pgf-sq--green rect {
  fill: #c8e4c2;
}
.pgf-sq--belly.pgf-sq--black rect {
  fill: #d4cdc3;
}
.pgf-sq--belly.pgf-sq--yellow rect {
  fill: #f6df9c;
}
.pgf-sq--tip rect {
  fill: #ecd3a6;
}
.pgf-sq--home rect {
  fill: var(--pgf-home);
  stroke-width: 2;
}
.pgf-sq.pgf-sq--dest rect {
  fill: var(--pgf-dest);
  stroke: var(--pgf-accent);
  stroke-width: 2.5;
}
.pgf-home-title {
  font-size: 10px;
  font-weight: 700;
  fill: var(--cloth-dark);
  text-anchor: middle;
}
.pgf-home-title--small {
  font-size: 8px;
}
.pgf-home-count {
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
}
.pgf-home-count--red {
  fill: var(--pgf-red);
}
.pgf-home-count--green {
  fill: var(--pgf-green);
}
.pgf-home-count--black {
  fill: var(--pgf-black);
}
.pgf-home-count--yellow {
  fill: #9a6f00;
}

/* Pawns: cones in their colour's shade, each with its colour's mark. */
.pgf-pawn__body {
  stroke: rgb(255 247 232 / 0.65);
  stroke-width: 0.05;
}
.pgf-pawn__shadow {
  fill: rgb(20 10 4 / 0.28);
}
.pgf-pawn__shine {
  fill: rgb(255 255 255 / 0.42);
}
.pgf-pawn__mark {
  fill: rgb(255 247 232 / 0.88);
}
.pgf-pawn--yellow .pgf-pawn__mark {
  fill: #6a4500;
}
.pgf-lock__body {
  fill: #5b1f13;
  stroke: #fff8ea;
  stroke-width: 1;
}
.pgf-lock__shackle {
  fill: none;
  stroke: #5b1f13;
  stroke-width: 1.8;
}

/* One arm close up, two panels side by side. */
.pgf-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem;
}
.pgf-svg--arm {
  max-width: 24rem;
}
.pgf-axis {
  fill: #f6e7c8;
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
}
.pgf-note {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.pgf-lead {
  fill: none;
  stroke: var(--cloth-dark);
  stroke-width: 1;
  opacity: 0.7;
}

/* The lap. */
.pgf-route polyline {
  fill: none;
  stroke: var(--pgf-accent);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.9;
}
.pgf-route .pgf-route__last {
  stroke: var(--pgf-red);
}
.pgf-route .pgf-route__gate {
  stroke: var(--cloth);
  stroke-dasharray: 2 6;
}
.pgf-chevron {
  fill: none;
  stroke: var(--cloth-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pgf-route__start {
  fill: var(--pgf-red);
  stroke: #fff8ea;
  stroke-width: 1.5;
}
.pgf-route__end {
  fill: var(--cloth);
  stroke: #fff8ea;
  stroke-width: 1.5;
}

/* The sticks. */
.pgf-stick__grain rect {
  fill: #2a100c;
  opacity: 0.2;
}
.pgf-stick__pip {
  fill: #fffdf8;
  stroke: #efe2c8;
  stroke-width: 1.05;
}
.pgf-faces {
  display: flex;
  gap: 1.4rem;
  margin-bottom: 0.9rem;
}
.pgf-face p {
  margin: 0.3rem 0 0;
  text-align: center;
  font-weight: 700;
}
.pgf-svg--sticks {
  width: auto;
  height: 6.5rem;
}
.pgf-throws {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.9rem;
}
.pgf-throw p {
  margin: 0.4rem 0 0;
  font-size: 0.98rem;
}
.pgf-throw strong {
  display: block;
}

/* Strips of squares with a move drawn over them. */
.pgf-rows {
  display: grid;
  gap: 0.9rem;
}
.pgf-row__title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.98rem;
}
.pgf-svg--strip {
  max-width: 26rem;
}
.pgf-svg--w10 {
  max-width: 32rem;
}
.pgf-arc {
  fill: none;
  stroke: var(--pgf-accent);
  stroke-width: 2;
  stroke-linecap: round;
}
.pgf-arc--no {
  stroke: var(--pgf-no);
  stroke-dasharray: 4 3;
}
.pgf-head {
  fill: var(--pgf-accent);
}
.pgf-head--no {
  fill: var(--pgf-no);
}
.pgf-pill rect {
  fill: #fff;
  stroke: var(--pgf-accent);
  stroke-width: 1.2;
}
.pgf-pill--no rect {
  stroke: var(--pgf-no);
}
.pgf-pill--yes rect {
  stroke: var(--pgf-green);
}
.pgf-pill text {
  fill: var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-anchor: middle;
}
.pgf-pill--no text {
  fill: var(--pgf-no);
}
.pgf-pill--yes text {
  fill: var(--pgf-green);
}

/* The finish, as a short flow. */
.pgf-flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pgf-step {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e8d4b0;
  border-radius: 10px;
  background: #fff;
}
.pgf-step strong {
  display: block;
  line-height: 1.3;
}
.pgf-step p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}
.pgf-step--draw {
  border-color: #d39a00;
  background: #fdf3d6;
}
.pgf-step--win {
  border-color: var(--pgf-red);
  background: #fbe9e6;
}
.pgf-flow__arrow {
  flex: none;
  color: var(--pgf-accent);
  font-size: 1.4rem;
  font-weight: 700;
}
.pgf-flow__ends {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  gap: 0.5rem;
}
@media (max-width: 640px) {
  .pgf-flow {
    flex-direction: column;
    align-items: stretch;
  }
  .pgf-flow__arrow {
    align-self: center;
    transform: rotate(90deg);
  }
}
