@page {
  margin: 0.35in;
  size: letter;
}

body {
  margin: 0;
  color: #202225;
  font-family: Georgia, "Times New Roman", serif;
}

.single-card-page {
  align-items: center;
  background: #f5f1e8;
  display: flex;
  min-height: 100vh;
  justify-content: center;
  padding: 0.35in;
}

.sheet {
  display: grid;
  gap: 0.14in;
  grid-template-columns: repeat(3, 2.45in);
}

.single-card {
  display: block;
}

.card {
  border: 1px solid #5f665d;
  border-radius: 0.08in;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  height: 3.45in;
  overflow: hidden;
  padding: 0.12in;
  page-break-inside: avoid;
}

.card header {
  align-items: start;
  display: flex;
  gap: 0.08in;
  justify-content: space-between;
}

.card h2,
.card p {
  margin: 0;
}

.card h2 {
  font-size: 13pt;
  line-height: 1;
}

.card header p,
.card footer {
  font-size: 7.8pt;
}

.biome {
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 0.05in;
  display: inline-flex;
  font-size: 7pt;
  gap: 0.04in;
  padding: 0.025in 0.06in;
  white-space: nowrap;
}

.biome-glyph {
  color: rgba(0, 0, 0, 0.78);
  height: 0.16in;
  width: 0.16in;
}

.biome-name {
  letter-spacing: 0.01in;
}

.card-mushroom .biome::after {
  /* Mycelium glyph in the corner — per the rulebook, mushroom cards
     carry a tagged marker so players can spot them at a glance. */
  content: "✻";
  color: rgba(0, 0, 0, 0.55);
  font-size: 8.5pt;
  line-height: 1;
  margin-left: 0.04in;
}

.art {
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.06in;
  display: flex;
  justify-content: center;
  margin: 0.08in 0;
  min-height: 1.28in;
  overflow: hidden;
}

.art img {
  display: block;
  height: 1.28in;
  object-fit: contain;
  width: 100%;
}

.yields {
  display: grid;
  gap: 0.025in;
  list-style: none;
  margin: 0;
  padding: 0;
}

.yields li {
  display: flex;
  font-size: 8.4pt;
  justify-content: space-between;
}

.card footer {
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  margin-top: 0.07in;
  padding-top: 0.055in;
}

.biome-forest {
  background: #e2efdf;
}

.biome-forest-edge {
  background: #edf2d6;
}

.biome-meadow {
  background: #f8edc8;
}

.biome-wetland {
  background: #dff0f2;
}

.biome-disturbed {
  background: #eee1d6;
}

.biome-mountain {
  background: #e7e9eb;
}

.event-card {
  background: #f5ecd9;
}

.event-card .art img {
  height: 1.36in;
}

.event-bonus {
  border-color: #5d8a5a;
}

.dice-note {
  break-before: page;
  font-family: "EB Garamond", Georgia, serif;
  margin: 0.4in auto;
  max-width: 6in;
  padding: 0.25in;
  border: 1px solid #29323a;
  background: #f5ecd9;
}

.dice-note h3 {
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.15in;
}

.dice-note p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.dice-note strong {
  font-weight: 700;
}

@media print {
  .dice-note { background: #fff; }

  /* Printable cards must leave everything OUTSIDE the card borders white
     (no ink). The screen previews keep their paper-toned page background,
     but printing strips the page/sheet fills so only the cards lay down ink. */
  html,
  body,
  .single-card-page,
  .card-pair-page,
  .border-options-page,
  .sample-sheet-page,
  .sheet,
  .sheet-v2,
  .card-pair,
  .border-options,
  .sample-sheet,
  .single-card {
    background: transparent !important;
  }
}

.event-damage {
  border-color: #b84d3f;
}

.season-spring {
  background: #eef5e9;
}

.season-summer {
  background: #f8efcb;
}

.season-fall {
  background: #f1e5dc;
}

.season-winter {
  background: #e7e9eb;
}
