@page {
  size: letter;
  margin: 0;
}

:root {
  --paper: #fbf7ea;
  --paper-warm: #f6efdb;
  --ink: #213126;
  --muted: #6c7a6d;
  --moss: #235332;
  --leaf: #407b49;
  --clover: #8bbf5f;
  --soil: #7f5a34;
  --soil-deep: #5c3d22;
  --soil-hi: #9b7042;
  --dirt: #b9874c;
  --dirt-hi: #d6a266;
  --dirt-deep: #8a6231;
  --stone: #aeb5ad;
  --stone-hi: #cdd2cb;
  --stone-deep: #7f887f;
  --hose: #4db2d8;
  --hose-hi: #8fdcf0;
  --hose-deep: #1f7a9c;
  --sky: #dcefed;
  --sun: #f4c95d;
  --sun-deep: #e7a92f;
  --rain: #5ca6d6;
  --heat: #e87c45;
  --flower: #f59abc;
  --line: rgba(33, 49, 38, 0.26);
  --cut: rgba(33, 49, 38, 0.62);
  --fold: rgba(33, 49, 38, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  background: #cfe1c2;
}

/* ---------- page shell ---------- */
.page {
  position: relative;
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto;
  padding: 0.5in 0.5in 0.46in;
  overflow: hidden;
  page-break-after: always;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.5), transparent 42%),
    var(--paper);
}

.page::after {
  content: "";
  position: absolute;
  inset: 0.22in;
  border: 0.02in dashed rgba(33, 49, 38, 0.16);
  border-radius: 0.14in;
  pointer-events: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Young Serif", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 0.92in;
  line-height: 0.98;
}

h2 {
  font-size: 0.4in;
  line-height: 1.02;
}

h3 {
  font-size: 0.19in;
}

p {
  margin: 0;
}

.smallcap {
  display: inline-flex;
  align-items: center;
  gap: 0.07in;
  margin-bottom: 0.12in;
  padding: 0.05in 0.14in;
  border-radius: 999px;
  background: var(--moss);
  color: #eaf6dd;
  font-size: 0.1in;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.3in;
  margin-bottom: 0.1in;
}

.page-head .count-pill {
  flex: none;
  padding: 0.08in 0.18in;
  border-radius: 999px;
  border: 0.02in solid var(--line);
  background: #fff;
  color: var(--moss);
  font-size: 0.13in;
  font-weight: 900;
}

.caption {
  color: var(--muted);
  font-size: 0.132in;
  font-weight: 800;
  line-height: 1.34;
}

.cut-note {
  display: inline-flex;
  align-items: center;
  gap: 0.08in;
  margin-top: 0.07in;
  padding: 0.07in 0.16in;
  border-radius: 0.1in;
  background: rgba(139, 191, 95, 0.18);
  color: var(--moss);
  font-size: 0.12in;
  font-weight: 900;
}

.cut-note svg {
  width: 0.2in;
  height: 0.2in;
}

/* ---------- cover ---------- */
.cover {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(244, 201, 93, 0.28), transparent 45%),
    radial-gradient(circle at 12% 88%, rgba(139, 191, 95, 0.3), transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(77, 178, 216, 0.22), transparent 38%),
    var(--paper);
}

.cover .smallcap {
  background: #fff;
  color: var(--moss);
  border: 0.02in solid var(--line);
}

.cover h1 {
  margin-top: 0.08in;
  font-size: 1.5in;
  color: var(--moss);
}

.cover .subtitle {
  max-width: 5.4in;
  margin-top: 0.22in;
  color: var(--ink);
  font-size: 0.21in;
  font-weight: 800;
  line-height: 1.4;
}

.cover-scene {
  position: relative;
  width: 6.4in;
  height: 3in;
  margin-top: 0.28in;
}

.cover-scene svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.footer-note {
  position: absolute;
  left: 0.5in;
  right: 0.5in;
  bottom: 0.4in;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.13in;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- rules ---------- */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.16in;
  margin-top: 0.22in;
}

.rule {
  display: grid;
  grid-template-columns: 0.62in 1fr;
  gap: 0.14in;
  align-items: start;
  padding: 0.16in;
  border-radius: 0.14in;
  border: 0.02in solid var(--line);
  background: #fff;
}

.rule .rule-icon {
  width: 0.62in;
  height: 0.62in;
}

.rule b {
  display: block;
  margin-bottom: 0.05in;
  font-size: 0.155in;
  color: var(--moss);
}

.rule span {
  color: var(--muted);
  font-size: 0.125in;
  font-weight: 800;
  line-height: 1.32;
}

.loss-box {
  display: grid;
  grid-template-columns: 0.7in 1fr;
  gap: 0.16in;
  align-items: center;
  margin-top: 0.18in;
  padding: 0.18in;
  border-radius: 0.14in;
  border: 0.03in solid rgba(232, 124, 69, 0.5);
  background: rgba(232, 124, 69, 0.12);
}

.loss-box svg {
  width: 0.7in;
  height: 0.7in;
}

.loss-box h3 {
  color: var(--heat);
}

.loss-box p {
  color: var(--ink);
  font-size: 0.13in;
  font-weight: 800;
  line-height: 1.32;
}

/* ---------- board ---------- */
.board-wrap {
  display: grid;
  justify-items: center;
  margin-top: 0.2in;
}

.print-board {
  display: grid;
  grid-template-columns: repeat(8, 0.84in);
  grid-template-rows: repeat(8, 0.84in);
  gap: 0.04in;
  padding: 0.16in;
  border-radius: 0.12in;
  border: 0.04in solid var(--moss);
  background:
    repeating-linear-gradient(45deg, rgba(35, 83, 50, 0.06) 0 0.1in, transparent 0.1in 0.2in),
    #9dbf73;
  box-shadow: inset 0 0 0 0.06in rgba(255, 255, 255, 0.28);
}

.print-board span {
  display: grid;
  place-items: center;
  border-radius: 0.05in;
  border: 0.015in solid rgba(33, 49, 38, 0.22);
  background: rgba(255, 255, 255, 0.32);
  color: rgba(33, 49, 38, 0.45);
  font-size: 0.12in;
  font-weight: 900;
}

/* ---------- cube nets ---------- */
.cube-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12in;
  margin: 0.04in 0 0.18in;
}

.cube-legend .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.08in;
  padding: 0.06in 0.14in 0.06in 0.06in;
  border-radius: 999px;
  border: 0.02in solid var(--line);
  background: #fff;
  font-size: 0.12in;
  font-weight: 900;
}

.cube-legend .swatch {
  width: 0.2in;
  height: 0.2in;
  border-radius: 0.05in;
  border: 0.015in solid rgba(33, 49, 38, 0.3);
}

.net-sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: start;
  gap: 0.18in 0.1in;
  margin-top: 0.06in;
}

.cube-net {
  width: 2.36in;
}

.cube-net svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.cube-net .face-label {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
}

/* ---------- tokens ---------- */
.token-page-grid {
  display: grid;
  gap: 0.22in;
  margin-top: 0.16in;
}

.token-section > .token-head {
  display: flex;
  align-items: baseline;
  gap: 0.14in;
  margin-bottom: 0.1in;
  padding-bottom: 0.06in;
  border-bottom: 0.02in solid var(--line);
}

.token-section .token-head p {
  color: var(--muted);
  font-size: 0.12in;
  font-weight: 800;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.1in;
}

.token {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 0.04in;
  aspect-ratio: 1 / 1.12;
  padding: 0.08in 0.05in 0.07in;
  border: 0.022in dashed var(--cut);
  background: #fff;
  text-align: center;
}

.token svg {
  width: 100%;
  height: 100%;
  display: block;
}

.token .label {
  font-size: 0.092in;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.04;
  color: var(--ink);
}

.token .label small {
  display: block;
  font-size: 0.078in;
  font-weight: 800;
  color: var(--muted);
}

.token.seed-token {
  border-radius: 0.09in 0.09in 0.16in 0.16in;
  background: #f3f8e2;
}

.token.weed-token {
  border-radius: 0.16in 0.16in 0.09in 0.09in;
  background: #eaf3df;
}

.token.tool-token {
  border-radius: 0.12in;
  background: #e6f1ef;
}

.token.path-token {
  border-radius: 0.12in;
  background: #eef0ec;
}

/* ---------- weather + plan cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.16in;
  margin-top: 0.2in;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 3.7in;
  border-radius: 0.16in;
  border: 0.025in solid var(--line);
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 0 0 0.06in rgba(255, 255, 255, 0.6);
}

.weather-card .scene {
  position: relative;
  height: 2.05in;
  border-bottom: 0.02in solid var(--line);
}

.weather-card .scene svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.weather-card .body {
  display: flex;
  flex-direction: column;
  gap: 0.07in;
  padding: 0.15in 0.16in 0.16in;
}

.weather-card .body h3 {
  font-size: 0.22in;
}

.weather-card .body p {
  color: var(--muted);
  font-size: 0.123in;
  font-weight: 800;
  line-height: 1.32;
}

.weather-card .tag {
  align-self: flex-start;
  margin-bottom: 0.02in;
  padding: 0.04in 0.12in;
  border-radius: 999px;
  font-size: 0.092in;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.weather-card.heat .tag { background: var(--heat); }
.weather-card.rain .tag { background: var(--rain); }
.weather-card.sunny .tag { background: var(--sun-deep); }

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.16in;
  margin-top: 0.2in;
}

.plan-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.92in 1fr;
  gap: 0.16in;
  align-items: center;
  min-height: 1.9in;
  padding: 0.2in;
  border-radius: 0.16in;
  border: 0.025in solid var(--line);
  background: #fff;
}

.plan-card.win { background: #eef6df; border-color: rgba(64, 123, 73, 0.4); }
.plan-card.lose { background: #fdeee4; border-color: rgba(232, 124, 69, 0.4); }

.plan-card .badge {
  width: 0.92in;
  height: 0.92in;
}

.plan-card h3 {
  margin-bottom: 0.08in;
  font-size: 0.24in;
}

.plan-card.win h3 { color: var(--moss); }
.plan-card.lose h3 { color: var(--heat); }

.plan-card ul {
  margin: 0;
  padding-left: 0.2in;
  color: var(--muted);
  font-size: 0.135in;
  font-weight: 800;
  line-height: 1.4;
}

.plan-card p {
  color: var(--muted);
  font-size: 0.135in;
  font-weight: 800;
  line-height: 1.4;
}

.section-break {
  margin-top: 0.34in;
  padding-top: 0.04in;
}

/* ---------- meeple stand-ups ---------- */
.standee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.18in;
  margin-top: 0.16in;
}

.standee {
  position: relative;
  display: grid;
  grid-template-rows: 0.26in 1fr auto 1fr 0.26in;
  width: 100%;
  border: 0.022in dashed var(--cut);
  border-radius: 0.16in;
  overflow: hidden;
  background: #fff;
}

.standee-panel {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding: 0.1in 0.12in 0.08in;
  background:
    radial-gradient(circle at 16% 14%, rgba(139, 191, 95, 0.28) 0 0.18in, transparent 0.19in),
    radial-gradient(circle at 84% 16%, rgba(244, 201, 93, 0.3) 0 0.16in, transparent 0.17in),
    radial-gradient(circle at 88% 84%, rgba(77, 178, 216, 0.18) 0 0.16in, transparent 0.17in),
    var(--panel, #eef6df);
}

.standee-panel .figure {
  display: grid;
  justify-items: center;
  align-content: end;
  width: 100%;
}

.standee-panel img {
  width: 0.92in;
  height: 0.92in;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.standee-panel .name-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.01in;
  margin-top: 0.03in;
  padding: 0.04in 0.14in;
  border-radius: 999px;
  background: #fff;
  border: 0.02in solid var(--line);
}

.standee-panel .name-plate h3 {
  font-size: 0.15in;
  color: var(--moss);
}

.standee-panel .name-plate span {
  font-size: 0.092in;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.standee-panel.back {
  transform: rotate(180deg);
}

.standee .fold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1in;
  height: 0.3in;
  border-top: 0.018in dashed var(--fold);
  border-bottom: 0.018in dashed var(--fold);
  background: repeating-linear-gradient(90deg, transparent 0 0.07in, rgba(33, 49, 38, 0.05) 0.07in 0.14in);
  color: var(--muted);
  font-size: 0.092in;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.standee .fold svg {
  width: 0.18in;
  height: 0.18in;
}

.standee-foot {
  display: grid;
  place-items: center;
  background: rgba(35, 83, 50, 0.13);
  color: var(--moss);
  font-size: 0.085in;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.standee-foot.top { border-bottom: 0.018in dotted var(--fold); }
.standee-foot.bottom { border-top: 0.018in dotted var(--fold); }

@media screen {
  body {
    padding: 0.3in 0;
  }
  .page {
    box-shadow: 0 0.18in 0.5in rgba(33, 49, 38, 0.28);
    border-radius: 0.04in;
    margin-bottom: 0.4in;
  }
}
