:root {
  --paper: #f3ead4;
  --paper-deep: #e7d8b5;
  --ink: #2b2418;
  --ink-soft: #5c5343;
  --moss: #3f5c34;
  --leaf: #6b8a49;
  --gold: #c4a35a;
  --clay: #b4633a;
  --creek: #4f92a3;
  --creek-deep: #2f6d7c;
  --grove: #3d6a38;
  --meadow: #c6d48a;
  --meadow-2: #b3c46f;
  --good: #2f6b3a;
  --warn: #8a5a12;
  --bad: #8f3324;
  --wood: #7a5a2e;
  --shadow: 0 10px 30px rgba(43, 36, 24, 0.12);
  --font-serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #fff6df 0%, transparent 50%),
    radial-gradient(900px 500px at 110% 0%, #d7e0b0 0%, transparent 42%),
    var(--paper);
  font-family: var(--font-sans);
}

#app {
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 4px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  overflow: hidden;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 0;
  flex: 0 0 auto;
}

.eyebrow,
.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--ink-soft);
}

h1,
h2,
h3,
.brand .tag {
  font-family: var(--font-serif);
}

h1 {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tag {
  margin: 4px 0 0;
  color: var(--moss);
  font-style: italic;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  justify-content: flex-end;
}

.season {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.food-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.meters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 0;
  flex: 0 0 auto;
}

.meter {
  background: rgba(255, 250, 237, 0.8);
  border: 1px solid rgba(43, 36, 24, 0.08);
  border-radius: 8px;
  padding: 4px 8px 5px;
  box-shadow: none;
}

.meter-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.meter-top strong {
  margin-left: auto;
  color: var(--ink);
  font-size: 0.95rem;
}

.delta {
  font-size: 0.72rem;
  font-weight: 700;
}
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }

.meter-bar {
  margin-top: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(43, 36, 24, 0.08);
  overflow: hidden;
}

.meter-bar i {
  display: block;
  height: 100%;
  background: var(--leaf);
}

.tone-good .meter-bar i { background: var(--good); }
.tone-ok .meter-bar i { background: var(--gold); }
.tone-warn .meter-bar i { background: var(--clay); }
.tone-bad .meter-bar i { background: var(--bad); }

.income-strip {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  margin: 0;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 250, 237, 0.88);
  border: 1px solid rgba(43, 36, 24, 0.08);
  font-size: 0.8rem;
}

.income-strip .kicker {
  margin-right: 4px;
}

.income-strip i {
  font-style: normal;
  color: var(--ink-soft);
}

.income-strip b {
  font-variant-numeric: tabular-nums;
}

.income-net b {
  color: var(--good);
}

.income-hint {
  color: var(--ink-soft);
}

.flash {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4d7c6;
  color: var(--bad);
  font-size: 0.92rem;
}

.play {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) minmax(280px, 330px);
  grid-template-areas: "story board notes";
  gap: 4px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.story-dock { grid-area: story; }
.board { grid-area: board; }
.notes { grid-area: notes; }

.dock,
.notes,
.board {
  background: rgba(255, 250, 237, 0.72);
  border: 1px solid rgba(43, 36, 24, 0.08);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
  min-height: 0;
}

.dock h2,
.notes h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.story-dock,
.notes {
  display: flex;
  flex-direction: column;
  position: static;
  max-height: none;
  height: 100%;
  overflow: auto;
}

.story-card {
  margin: 0 0 8px;
  padding: 8px 8px 8px;
  max-height: 210px;
  overflow: auto;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #f7eed6 0%, #efe4c4 100%);
  border: 2px solid rgba(63, 92, 52, 0.28);
  box-shadow: var(--shadow);
}

.story-card h2 {
  margin: 2px 0 6px;
  font-size: 1.15rem;
  line-height: 1.15;
}

.story-card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.42;
}

.story-beats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.story-beats li {
  margin: 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(255, 250, 237, 0.72);
  font-size: 0.84rem;
  line-height: 1.4;
}

.story-beats b {
  display: block;
  margin-bottom: 2px;
  color: var(--moss);
}

.story-art {
  margin: 0 0 6px;
  border-radius: 8px;
  background: #c9dff0;
  overflow: hidden;
  border: 1px solid rgba(43, 36, 24, 0.12);
  max-height: 64px;
}

.story-svg {
  display: block;
  width: 100%;
  height: 64px;
  object-fit: cover;
}

.dock h2.place-head {
  margin: 2px 0 8px;
  font-size: 0.95rem;
}

.story-dock .tools {
  gap: 5px;
}

.story-dock .tool {
  padding: 6px 7px;
}

.compare-panel {
  padding: 4px 0 8px;
}

.compare-panel h2 {
  margin-bottom: 6px;
  font-size: 1.28rem;
}

.farm-sidebar {
  display: grid;
  gap: 10px;
  margin: 10px 0 8px;
}

.farm-sidebar .farm-col {
  padding: 10px 12px 8px;
  border-width: 2px;
}

.farm-sidebar .farm-col h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.farm-sidebar .farm-col.is-slim {
  padding: 6px 10px;
  background: #f6eed8;
}

.farm-sidebar .farm-col.is-win {
  background: #e8f0d4;
  border-color: var(--moss);
}

.farm-sidebar .net-hero {
  margin: 8px 0 2px;
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 700;
}

.farm-sidebar .traditional .net-hero {
  color: var(--warn);
}

.farm-sidebar .regenerative .net-hero {
  color: var(--good);
}

.compare-punch {
  margin: 0;
  font-weight: 600;
}

.tools {
  display: grid;
  gap: 6px;
}

.tool {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(43, 36, 24, 0.12);
  background: #fffaf0;
  border-radius: 10px;
  padding: 7px 8px;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.tool:hover {
  border-color: var(--gold);
}

.tool.is-on {
  border-color: var(--moss);
  background: #e8f0d4;
  box-shadow: inset 0 0 0 1px var(--moss);
}

.tool.is-broke {
  opacity: 0.55;
}

.glyph {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--paper-deep);
  font-size: 1rem;
}

.tool-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tool-copy b {
  font-size: 0.86rem;
}

.tool .cost {
  font-size: 0.75rem;
  color: var(--wood);
}

.tool .cost.mute {
  color: var(--ink-soft);
}

.picked {
  margin: 14px 0 12px;
  padding: 10px;
  border-radius: 10px;
  background: #efe4c4;
}

.picked h3 {
  margin: 2px 0 4px;
  font-size: 1.15rem;
}

.cost-line {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--wood);
}

.hint,
.quiet,
.keys {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

.keys {
  margin-top: 10px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  width: 100%;
  background: var(--moss);
  color: #f7f1df;
}

.btn.primary:hover {
  background: #334d2b;
}

.btn.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(43, 36, 24, 0.2);
}

.btn.ghost.wide {
  width: 100%;
  margin: 0 0 8px;
}

.linkish {
  border: 0;
  padding: 0;
  background: none;
  color: var(--moss);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.farm-nudge {
  margin-top: 10px;
}

.farm-card {
  width: min(860px, 100%);
}

.farm-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 8px;
}

.farm-col {
  background: #fffaf0;
  border: 1px solid rgba(43, 36, 24, 0.1);
  border-radius: 12px;
  padding: 12px 12px 10px;
}

.farm-col h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.farm-col p {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.farm-col dl {
  margin: 0;
}

.farm-col dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(43, 36, 24, 0.1);
  font-size: 0.88rem;
}

.farm-col dt {
  color: var(--ink-soft);
}

.farm-col dd {
  margin: 0;
  font-weight: 700;
}

.farm-col .net dd {
  color: var(--good);
}

.farm-col.traditional .net dd {
  color: var(--warn);
}

.farm-col.is-you {
  box-shadow: inset 0 0 0 2px var(--moss);
}

.you-are {
  margin: -4px 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
}

.legend {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.swatch {
  display: inline-block;
  width: 14px;
  height: 8px;
  border-radius: 0;
  margin-right: 5px;
  vertical-align: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.swatch.meadow { background: var(--meadow); }
.swatch.grove { background: var(--grove); }
.swatch.water { background: var(--creek); }

.board {
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% 30%, rgba(190, 210, 140, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(232, 220, 184, 0.35), rgba(210, 198, 160, 0.2)),
    rgba(255, 250, 237, 0.72);
}

#grid.grid,
.iso-world {
  --tw: 54px;
  --th: 27px;
  --slab: 10px;
  --cols: 12;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.iso-stage {
  --tw: 54px;
  --th: 27px;
  --cols: 12;
  position: relative;
  flex: 0 0 auto;
  transform-origin: top center;
}

.iso-earth {
  position: absolute;
  left: 50%;
  top: calc(var(--head, 58px) + 12px);
  width: calc(var(--cols) * var(--tw) + 36px);
  height: calc(var(--cols) * var(--th) + 48px);
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, #7a6238 0%, #5a4528 70%, #3f301c 100%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 18px 28px rgba(40, 28, 10, 0.28);
  pointer-events: none;
}

.board.is-farm .iso-earth {
  background:
    linear-gradient(180deg, #8a6a38 0%, #5c4324 70%, #3a2818 100%);
}

.board-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.view-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.18rem;
}

.view-sub {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

#back-map {
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 7px 12px;
}

.is-field .iso-cap {
  background:
    repeating-linear-gradient(118deg, #c4a24e 0 3px, #8a6a2c 3px 4px, #d1b45c 4px 7px);
}
.is-field .iso-left { background: #8a6a2c; }
.is-field .iso-right { background: #6a5020; }

.iso-tile {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--tw);
  height: var(--th);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  z-index: calc(10 + var(--z));
  pointer-events: none;
  overflow: visible;
}

.iso-shadow {
  position: absolute;
  inset: 0;
  background: rgba(40, 28, 10, 0.22);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: translate(3px, 5px);
  pointer-events: none;
}

.iso-stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 0.12s ease;
}

.iso-cap,
.iso-left,
.iso-right,
.iso-ring,
.piece,
.regen-hud,
.regen-badge {
  pointer-events: auto;
}

.iso-cap {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.iso-left,
.iso-right {
  position: absolute;
  top: 50%;
  width: 50%;
  height: var(--slab);
}

.iso-left {
  left: 0;
  transform: skewY(26.565deg);
  transform-origin: top left;
}

.iso-right {
  left: 50%;
  transform: skewY(-26.565deg);
  transform-origin: top left;
}

.is-meadow .iso-cap {
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 220, 0.22), transparent 42%),
    repeating-linear-gradient(120deg, #b7c86a 0 3px, #a8bc5c 3px 6px, #c4d47a 6px 8px);
}

.is-meadow.shade-1 .iso-cap { filter: brightness(1.04); }
.is-meadow.shade-2 .iso-cap { filter: brightness(0.96); }
.is-meadow.shade-3 .iso-cap { filter: brightness(1.07); }
.is-meadow.shade-4 .iso-cap { filter: brightness(0.93); }

.is-meadow .iso-left { background: #7e9444; }
.is-meadow .iso-right { background: #5f7534; }

.is-grove .iso-cap {
  background:
    radial-gradient(circle at 40% 45%, #4d7a3a 0 28%, transparent 30%),
    #35582c;
}
.is-grove .iso-left { background: #2a4724; height: 14px; }
.is-grove .iso-right { background: #1e3418; height: 14px; }

.is-water {
  --slab: 5px;
  cursor: not-allowed;
}

.is-water .iso-cap {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 36%),
    repeating-linear-gradient(118deg, #4f9aab 0 6px, #3d8496 6px 11px, #68b3c2 11px 13px);
  animation: creek-flow 7s linear infinite;
}

.is-water .iso-left { background: #2f6574; }
.is-water .iso-right { background: #214c58; }

.is-water.bank-n .iso-cap,
.is-water.bank-s .iso-cap,
.is-water.bank-w .iso-cap,
.is-water.bank-e .iso-cap {
  box-shadow: inset 0 0 0 1px rgba(90, 70, 32, 0.35);
}

.has-farm .iso-cap {
  background:
    repeating-linear-gradient(118deg, #c4a24e 0 3px, #8a6a2c 3px 4px, #d1b45c 4px 7px);
}

.has-farm.is-young .iso-cap {
  background:
    repeating-linear-gradient(118deg, #b89a4a 0 3px, #6a5020 3px 4px, #c4a85a 4px 7px);
  filter: saturate(0.75);
}

.has-farm.is-young .farm-crop {
  opacity: 0.35;
}

.has-farm.is-mature .iso-cap {
  background:
    repeating-linear-gradient(118deg, #c4b24e 0 3px, #6d8a32 3px 4px, #d4c45c 4px 7px);
}

.has-apartment .iso-cap {
  background:
    linear-gradient(135deg, #e8d7b0, #cbb892);
}

.has-rail .iso-cap {
  background:
    repeating-linear-gradient(118deg, #7a7668 0 4px, #5c584c 4px 5px, #8a8678 5px 8px);
}

.has-compost .iso-cap {
  background: #7a5a34;
}

.tufts,
.furrows,
.ripples {
  position: absolute;
  inset: 0;
}

.tufts {
  background:
    radial-gradient(circle at 35% 40%, #6d8f3a 0 6%, transparent 7%),
    radial-gradient(circle at 62% 58%, #58782e 0 5%, transparent 6%);
}

.ripples {
  background: repeating-linear-gradient(
    118deg,
    transparent 0 7px,
    rgba(255, 255, 255, 0.16) 7px 8px
  );
}

.iso-ring {
  position: absolute;
  inset: -3px;
  background: #d4b45a;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.iso-cap {
  z-index: 1;
}

.iso-left,
.iso-right {
  z-index: 1;
}

.in-loop .iso-cap {
  box-shadow: inset 0 0 0 2px rgba(47, 107, 58, 0.7);
}

.is-hover .iso-stack,
.iso-tile:hover .iso-stack {
  transform: translateY(-5px);
}

.is-hover,
.is-picked,
.can-drop,
.no-drop {
  z-index: calc(80 + var(--z));
}

.is-hover .iso-ring,
.iso-tile:hover .iso-ring {
  opacity: 1;
  background: #d4b45a;
}

.is-picked .iso-ring {
  opacity: 1;
  background: var(--moss);
}

.can-drop .iso-ring {
  opacity: 1;
  background: var(--good);
}

.no-drop .iso-ring {
  opacity: 1;
  background: var(--bad);
}

.piece {
  position: absolute;
  left: 50%;
  bottom: 42%;
  width: 48px;
  height: 56px;
  transform: translate(-50%, 0);
  overflow: visible;
  filter: drop-shadow(1px 3px 2px rgba(40, 28, 10, 0.28));
}

.piece-rail {
  height: 40px;
  bottom: 28%;
}

.piece-compost {
  height: 46px;
}

.piece-apt {
  height: 68px;
  bottom: 34%;
}

.regen-hud,
.regen-badge {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

.regen-hud {
  right: -6px;
  top: -28px;
  width: 34px;
  text-align: center;
  color: var(--ink);
}

.regen-ring {
  width: 34px;
  height: 34px;
  display: block;
}

.regen-ring .track {
  fill: none;
  stroke: rgba(43, 36, 24, 0.2);
  stroke-width: 3;
}

.regen-ring .prog {
  fill: none;
  stroke: #3f6d32;
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 18px 18px;
}

.regen-hud b {
  display: block;
  margin-top: -22px;
  font-size: 0.62rem;
  font-weight: 800;
}

.regen-badge {
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  background: #3f6d32;
  color: #f4ead3;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 99px;
}

@keyframes creek-flow {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 22px 0; }
}

.notes section + section {
  margin-top: 16px;
}

.inspect h3 {
  margin: 0 0 6px;
}

.inspect ul,
.goals,
.log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.inspect li,
.goals li,
.log li {
  font-size: 0.88rem;
  line-height: 1.45;
}

.goals li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(43, 36, 24, 0.1);
}

.goals li em {
  font-style: normal;
  color: var(--ink-soft);
}

.goals li.is-met {
  color: var(--good);
}

.log {
  display: grid;
  gap: 8px;
}

.log .when {
  display: inline-block;
  min-width: 28px;
  color: var(--wood);
  font-weight: 700;
  font-size: 0.75rem;
}

.veil {
  position: fixed;
  inset: 0;
  background: rgba(35, 28, 16, 0.42);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 20;
}

.veil[hidden] {
  display: none;
}

.card {
  width: min(520px, 100%);
  background: var(--paper);
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 4px 0 10px;
}

.card p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.card .btn {
  margin-top: 8px;
  width: auto;
  min-width: 180px;
}

.score {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--moss);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.zox-chat {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 16px;
  width: min(340px, calc(100vw - 24px));
  max-height: min(72vh, 520px);
  display: flex;
  flex-direction: column;
  background: #fffaf0;
  border: 1px solid rgba(43, 36, 24, 0.12);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 15;
}

.zox-chat[hidden] {
  display: none;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(43, 36, 24, 0.08);
}

.chat-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.chat-x {
  padding: 4px 10px;
}

.chat-log {
  flex: 1;
  overflow: auto;
  padding: 10px 12px;
  display: grid;
  gap: 10px;
}

.chat-line b {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood);
}

.chat-line p {
  margin: 2px 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.chat-line.is-you p {
  color: var(--ink-soft);
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 8px;
}

.chat-chips button {
  border: 1px solid rgba(43, 36, 24, 0.14);
  background: var(--paper);
  border-radius: 999px;
  padding: 4px 8px;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.chat-form {
  display: flex;
  gap: 6px;
  padding: 8px 12px 12px;
  border-top: 1px solid rgba(43, 36, 24, 0.08);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(43, 36, 24, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  background: #fff;
}

.chat-form .btn {
  width: auto;
  padding: 8px 14px;
}

@media (max-width: 1100px) {
  .play {
    grid-template-columns: 188px minmax(0, 1fr) minmax(240px, 280px);
  }
}

@media (max-width: 900px) {
  .farm-compare {
    grid-template-columns: 1fr;
  }

  .play {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "story notes"
      "board board";
  }

  .story-dock,
  .notes {
    position: static;
    max-height: none;
  }

  .meters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .play {
    grid-template-columns: 1fr;
    grid-template-areas:
      "story"
      "notes"
      "board";
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
  }

  .meters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iso-world {
    min-height: 300px;
  }
}

/* —— Aerial corridor map (world view) —— */
.board.is-corridor {
  background:
    linear-gradient(180deg, rgba(244, 234, 211, 0.35), transparent 40%),
    var(--panel, #f3ebd8);
}

#grid.corridor-world {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  overflow: hidden;
  padding: 0;
}

.corridor-stage {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.corridor-banner {
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: linear-gradient(120deg, #2f6a32, #4a7a38 55%, #3f5c34);
  color: #f4ead3;
  box-shadow: 0 2px 8px rgba(40, 50, 20, 0.22);
}

.corridor-banner strong {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.corridor-banner span {
  font-size: 0.78rem;
  opacity: 0.92;
}

.rail-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(244, 234, 211, 0.22);
  overflow: hidden;
}

.rail-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c9e86a, #f0f5a8);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.corridor-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  border-radius: 12px;
  border: 2px solid #5a7040;
  box-shadow:
    inset 0 0 0 1px rgba(244, 234, 211, 0.35),
    0 4px 14px rgba(40, 50, 20, 0.14);
  background: #7a9a52;
  cursor: default;
}

.corridor-map .city-label {
  font-size: 2.6px;
  font-weight: 700;
  fill: #1e2a14;
  paint-order: stroke;
  stroke: rgba(244, 234, 211, 0.85);
  stroke-width: 0.5px;
}

.corridor-map .corridor-caption {
  font-size: 2.2px;
  fill: #243018;
  font-weight: 600;
  opacity: 0.85;
}

.corridor-parcel {
  cursor: pointer;
}

.corridor-parcel .parcel-deed {
  fill: #e8d9a8;
  stroke: #5a4018;
  stroke-width: 0.35;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.corridor-parcel.is-open .parcel-deed {
  fill: #f4ead3;
  stroke: #3f6d32;
  stroke-dasharray: 0.8 0.5;
}

.corridor-parcel.is-owned .parcel-deed {
  fill: #c9a24a;
  stroke: #5a4018;
  stroke-dasharray: none;
}

.corridor-parcel.is-mature .parcel-deed {
  fill: #6b9a40;
  stroke: #2f4a20;
}

.corridor-parcel .parcel-name {
  font-size: 1.9px;
  font-weight: 700;
  fill: #1e2a14;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(244, 234, 211, 0.9);
  stroke-width: 0.45px;
}

.corridor-parcel .parcel-badge {
  font-size: 1.7px;
  font-weight: 700;
  fill: #3f5c34;
  pointer-events: none;
}

.corridor-parcel.is-mature .parcel-badge {
  fill: #1e3a14;
}

.corridor-parcel.is-hover .parcel-deed,
.corridor-parcel:hover .parcel-deed {
  stroke-width: 0.7;
  filter: brightness(1.08);
}

.corridor-parcel.is-picked .parcel-deed {
  stroke: #f4ead3;
  stroke-width: 0.85;
}

.corridor-parcel.can-buy .parcel-deed {
  fill: #d7ef9a;
  stroke: #2f6a32;
}

.corridor-parcel.no-buy .parcel-deed {
  fill: #c4b48a;
  opacity: 0.75;
}

.rail-future {
  opacity: 0.95;
}

.rail-lit {
  filter: drop-shadow(0 0 0.8px #c9e86a);
}

@media (max-width: 980px) {
  .corridor-map {
    min-height: 240px;
  }
}


/* —— Amazon book link —— */
.book-line {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
}
.book-link {
  display: inline-block;
  color: #5a4018;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.book-link:hover {
  color: #2f5a28;
}
.intro-book {
  margin: 0.85rem 0 1rem;
}
.intro-book .book-link {
  color: #3f5c34;
}


/* —— Viewport fit (wide / short) —— */
.brand .eyebrow { display: none; }
.tag {
  margin: 2px 0 0;
  font-size: 0.85rem;
}
.season { font-size: 1rem; }
.food-note { font-size: 0.8rem; }
.meter-bar { margin-top: 3px; height: 4px; }
.meter-top { font-size: 0.68rem; }
.meter-top strong { font-size: 0.85rem; }
.flash { margin: 0; padding: 5px 8px; font-size: 0.82rem; }
.board {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.board-bar { margin-bottom: 4px; flex: 0 0 auto; }
.view-title { font-size: 1rem; }
.view-sub { font-size: 0.75rem; margin-top: 1px; }
.board.is-corridor .legend { display: none; }
.legend { margin: 0 0 4px; flex: 0 0 auto; }
#grid.grid,
.iso-world {
  flex: 1 1 auto;
  min-height: 0;
}
.story-card { padding: 8px 8px 10px; margin-bottom: 8px; }
.story-beats { gap: 5px; }
.story-beats li { padding: 5px 7px; font-size: 0.78rem; line-height: 1.3; }
.story-beats b { display: inline; margin-right: 0.25em; }
.compare-panel h2 { font-size: 1.05rem; margin-bottom: 4px; }
.farm-sidebar { gap: 6px; margin: 6px 0; }
.farm-sidebar .farm-col { padding: 7px 8px 6px; }
.corridor-banner { padding: 0.35rem 0.55rem; gap: 0.2rem; flex: 0 0 auto; }
.corridor-banner strong { font-size: 0.82rem; }
.corridor-banner span { font-size: 0.7rem; }
.rail-meter { height: 6px; }
.keys { font-size: 0.7rem; margin: 4px 0 0; }
.book-line { margin: 0.4rem 0 0; font-size: 0.78rem; }
.picked { padding-top: 4px; }
.picked h3 { font-size: 0.95rem; margin: 0; }
@media (min-width: 1400px) {
  .play {
    grid-template-columns: 220px minmax(0, 1fr) 340px;
  }
}
@media (min-width: 1700px) {
  .play {
    grid-template-columns: 230px minmax(0, 1fr) 360px;
  }
}
@media (max-height: 820px) {
  .story-art { display: none; }
  .story-beats li:nth-child(n+3) { display: none; }
  h1 { font-size: 1.1rem; }
}
@media (max-height: 700px) {
  .tag, .food-note { display: none; }
  .meters { gap: 4px; }
  .meter { padding: 2px 6px 3px; }
}


/* —— Edge-to-edge board —— */
body {
  padding: 0;
}
#app {
  width: 100vw;
  max-width: 100vw;
}
.play {
  width: 100%;
}
.board {
  width: 100%;
  min-width: 0;
}
.corridor-map {
  width: 100%;
}
@media (max-width: 1100px) {
  .play {
    grid-template-columns: 188px minmax(0, 1fr) minmax(240px, 280px);
  }
}


/* —— Fill horizontal — no letterbox —— */
.board {
  padding: 6px !important;
}
.corridor-map {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover;
}
.corridor-stage {
  height: 100%;
  min-height: 0;
}
#grid.corridor-world {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}
.story-dock,
.notes {
  padding: 6px !important;
  font-size: 0.82rem;
}
.story-card h2,
.compare-panel h2 {
  font-size: 0.95rem !important;
}
.story-beats li {
  font-size: 0.72rem !important;
  padding: 4px 5px !important;
}
.farm-sidebar .farm-col {
  padding: 5px 6px !important;
}
.dock,
.notes,
.board {
  border-radius: 8px;
}


/* Carbon sequestration meter label */
.meter-sub {
  font-style: normal;
  font-weight: 500;
  font-size: 0.72em;
  opacity: 0.72;
  margin-left: 0.25em;
}


/* —— Season wins popup —— */
.season-win-card {
  max-width: min(520px, calc(100vw - 24px));
}
.season-wins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 10px;
}
.season-wins article {
  padding: 12px 12px 14px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid rgba(63, 92, 52, 0.25);
  background: rgba(255, 250, 237, 0.9);
}
.season-wins .earth-win {
  border-color: rgba(47, 106, 50, 0.45);
  background: linear-gradient(180deg, #e8f2d4, #f4ead3);
}
.season-wins .pop-win {
  border-color: rgba(180, 99, 58, 0.4);
  background: linear-gradient(180deg, #f7e6d4, #f4ead3);
}
.season-wins .win-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.season-wins .big-num {
  margin: 2px 0 2px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--moss);
}
.season-wins .pop-win .big-num {
  color: #8a4a28;
}
.season-wins .quiet {
  margin: 0;
  font-size: 0.82rem;
}
@media (max-width: 520px) {
  .season-wins { grid-template-columns: 1fr; }
}

.great-job-card {
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 720px);
  overflow: hidden;
}
.great-job-body {
  overflow: auto;
  min-height: 0;
}
.great-job-card .season-win-actions {
  flex: 0 0 auto;
  margin-top: 8px;
}
.great-job-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  margin: 0 0 4px;
  color: var(--moss);
  text-align: center;
}
.great-job-card .eyebrow,
.great-job-card .quiet {
  text-align: center;
}
.great-job-compare {
  margin: 4px 0 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}
.great-job-card .season-win-actions .btn {
  width: 100%;
}


.score-how {
  margin: 0 0 12px;
  text-align: center;
}
.score-how > summary.linkish {
  list-style: none;
  border: 0;
  background: none;
  padding: 4px 6px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  display: inline-block;
}
.score-how > summary.linkish::-webkit-details-marker {
  display: none;
}
.score-how > summary.linkish:hover {
  color: #2f5a28;
}
.score-how[open] > summary.linkish {
  margin-bottom: 8px;
}
.score-how-body {
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 250, 237, 0.92);
  border: 1px solid rgba(43, 36, 24, 0.1);
  text-align: left;
  font-size: 0.84rem;
  line-height: 1.4;
  display: block;
}
.score-how-body p {
  margin: 0 0 8px;
}
.score-how-body p:last-child {
  margin-bottom: 0;
}


/* —— Next season: graze / crop rent —— */
#next-season.season-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  margin-top: auto;
  padding: 6px 8px 7px;
  text-align: left;
  line-height: 1.2;
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: #3f5c34;
  box-shadow: 0 -6px 12px rgba(43, 36, 24, 0.12);
}
.season-btn-art {
  flex: 0 0 auto;
  width: 72px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: #3f5c34;
  border: 1px solid rgba(244, 234, 211, 0.25);
}
.graze-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.season-btn-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.season-btn-copy strong {
  font-size: 0.95rem;
}
.season-btn-copy small {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.92;
  white-space: normal;
}


/* —— Animals grazing on farm fields —— */
.piece-graze {
  position: absolute !important;
  left: 50% !important;
  bottom: 18% !important;
  width: 58px !important;
  height: 50px !important;
  transform: translateX(-50%) !important;
  z-index: 20 !important;
  pointer-events: none !important;
  filter: drop-shadow(0 3px 3px rgba(40, 28, 10, 0.35));
  animation: graze-nibble 1.6s ease-in-out infinite;
}
.is-grazing .iso-cap {
  filter: brightness(1.08);
}
@keyframes graze-nibble {
  0%, 100% { transform: translateX(-50%) translateY(0) !important; }
  50% { transform: translateX(-42%) translateY(2px) !important; }
}
.board.is-farm.is-grazing-board {
  outline: 3px solid #2f6a32;
  box-shadow: 0 0 0 4px rgba(201, 232, 106, 0.35);
}
.graze-banner {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  z-index: 40;
  padding: 6px 14px;
  border-radius: 999px;
  background: #2f6a32;
  color: #f4ead3;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(20, 40, 10, 0.35);
  pointer-events: none;
}
.graze-banner.is-idle {
  background: #5a7040;
}
.iso-stage {
  position: relative;
}
.graze-scene {
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(63, 92, 52, 0.35);
  background: #6b8a49;
}
.graze-scene-svg {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}
.graze-rent-line {
  margin: 0;
  padding: 6px 10px 8px;
  background: rgba(244, 234, 211, 0.92);
  font-size: 0.88rem;
  text-align: center;
}
.graze-rent-line strong {
  color: var(--moss);
  font-size: 1.05rem;
}
.season-btn-art {
  width: 100% !important;
  height: 32px !important;
}


.farm-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.graze-banner {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 5;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}


/* —— Buy next farm along the corridor —— */
.buy-next {
  margin-left: 8px;
  white-space: nowrap;
  animation: buy-pulse 1.4s ease-in-out infinite;
}
#back-map.is-hot {
  border-color: #2f6a32;
  color: #2f6a32;
  font-weight: 700;
  animation: buy-pulse 1.4s ease-in-out infinite;
}
@keyframes buy-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 106, 50, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(47, 106, 50, 0.12); }
}
.season-win-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.season-win-actions .btn {
  margin-top: 0;
  min-width: 160px;
}


/* —— Full input ledger —— */
.ledger-kicker {
  margin: 8px 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft, #5a4a32);
}
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  margin-bottom: 6px;
}
.ledger-table th {
  text-align: left;
  font-weight: 600;
  padding: 2px 4px 2px 0;
  color: var(--ink-soft, #5a4a32);
}
.ledger-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding: 2px 0;
  font-weight: 700;
}
.ledger-table tr.is-zero td {
  color: #2f6a32;
}
.ledger-table tr.is-good td {
  color: #2f6a32;
}
.ledger-table tr.is-bad td {
  color: #8a4a28;
}
.farm-summary .net dd,
.farm-col .net-hero {
  color: var(--moss, #2f6a32);
}
.farm-col.traditional .net-hero {
  color: #8a4a28;
}
.farm-col .net-sub,
.net-hero .net-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.75;
}
.compare-punch b {
  color: var(--moss, #2f6a32);
}

/* —— Season report card —— */
.season-report {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 250, 237, 0.95);
  border: 1px solid rgba(63, 92, 52, 0.22);
  text-align: left;
  font-size: 0.82rem;
}
.report-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--ink-soft, #5a4a32);
}
.report-head span:first-child { color: #8a4a28; }
.report-head span:last-child { color: #2f6a32; }
.report-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.report-label {
  font-size: 0.72rem;
  font-weight: 600;
}
.report-bars {
  display: grid;
  gap: 3px;
}
.report-bars .bar {
  height: 14px;
  border-radius: 4px;
  min-width: 4px;
  position: relative;
  transition: width 0.35s ease;
}
.report-bars .bar.trad {
  background: linear-gradient(90deg, #c48a5a, #a86838);
}
.report-bars .bar.regen {
  background: linear-gradient(90deg, #6b9a40, #c9e86a);
}
.report-bars .bar i {
  position: absolute;
  right: 4px;
  top: 0;
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 14px;
  color: #1e2a14;
  text-shadow: 0 0 2px #f4ead3;
}
.report-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(63, 92, 52, 0.25);
  font-size: 0.78rem;
}
.report-cash {
  grid-column: 1 / -1;
  font-size: 0.88rem;
}
.report-link {
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2f6a32;
}

/* —— Eco-village glow —— */
.piece-village {
  filter: drop-shadow(0 0 6px rgba(201, 232, 106, 0.85));
}
.village-glow {
  animation: village-pulse 2.2s ease-in-out infinite;
}
@keyframes village-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}
.has-village .iso-cap,
.iso-tile.has-village .iso-cap {
  box-shadow: inset 0 0 0 2px rgba(201, 232, 106, 0.7);
}
.corridor-parcel.has-village .parcel-deed {
  fill: #8fbf4a;
  stroke: #c9e86a;
  stroke-width: 0.7;
  filter: drop-shadow(0 0 1.2px #c9e86a);
}

/* —— Field state polish —— */
.is-converting-field .iso-cap {
  background: linear-gradient(135deg, #c4a86a, #8a9a48);
}
.is-young-convert .iso-cap {
  background: linear-gradient(135deg, #b89058, #9a7a40);
}
.is-regen-field .iso-cap {
  background: linear-gradient(135deg, #6b9a40, #3f7a38);
  box-shadow: inset 0 0 8px rgba(201, 232, 106, 0.35);
}
.manure-dots {
  position: absolute;
  inset: 30% 20% auto;
  height: 10px;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 50%, #5a3a20 0 2px, transparent 2.5px),
    radial-gradient(circle at 55% 40%, #6a4a28 0 1.8px, transparent 2.2px),
    radial-gradient(circle at 80% 60%, #4a2a18 0 1.5px, transparent 2px);
  opacity: 0.55;
}
.is-grazing .manure-dots {
  opacity: 0.9;
  animation: manure-settle 1.8s ease-in-out infinite;
}
@keyframes manure-settle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(1px); }
}

/* Stronger lit rail */
.rail-lit {
  filter: drop-shadow(0 0 1.4px #e8f5a0) drop-shadow(0 0 2.5px #c9e86a);
  stroke: #e8f5a0 !important;
  stroke-width: 2.2 !important;
}
.corridor-parcel.is-mature .parcel-deed {
  fill: #5a9a38;
  stroke: #c9e86a;
  filter: drop-shadow(0 0 1px #c9e86a);
}
.corridor-parcel.is-owned:not(.is-mature) .parcel-deed {
  fill: #c9a24a;
  stroke: #8a6a28;
}

/* Decade season chip */
.season {
  font-size: 0.92rem;
  line-height: 1.25;
  max-width: 320px;
}

/* —— Ledger, decades, report card, board cues —— */
.season-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.decade-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.decade-seg {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px;
  border-radius: 7px;
  background: rgba(255, 250, 237, 0.85);
  border: 1px solid rgba(43, 36, 24, 0.08);
}

.decade-seg b {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-right: 1px;
}

.decade-seg .pip {
  display: block;
  width: 6px;
  height: 9px;
  border-radius: 2px;
  background: rgba(43, 36, 24, 0.12);
}

.decade-seg .pip.is-done { background: var(--leaf); }
.decade-seg .pip.is-now { background: var(--gold); }
.decade-seg.is-now { outline: 2px solid var(--moss); }
.decade-seg.is-done .pip { background: var(--moss); }

.income-deed {
  flex: 1 0 100%;
  color: var(--moss);
  font-weight: 650;
  line-height: 1.35;
}

.horizon {
  margin: 6px 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.ledger-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.64rem;
  line-height: 1.15;
}

.ledger-compare th,
.ledger-compare td {
  padding: 1px 3px;
  vertical-align: baseline;
}

.ledger-compare thead th {
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  text-align: right;
  color: var(--ink-soft);
}

.ledger-compare thead th:first-child,
.ledger-compare tbody th {
  text-align: left;
  font-weight: 650;
}

.ledger-compare td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.ledger-compare tr.grp td {
  padding-top: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-soft);
  font-weight: 750;
}

.ledger-compare tr.kind-cash td:not(.is-zero) { color: #8a4a28; }
.ledger-compare td.is-zero,
.ledger-compare tr.kind-good td,
.ledger-compare tr.kind-mult td,
.ledger-compare tr.kind-carbon td { color: #2f6a32; }
.ledger-compare tr.kind-bad td,
.ledger-compare tr.kind-labor td { color: #5c5343; }

.ledger-compare tr.subtotal td,
.ledger-compare tr.subtotal th {
  border-top: 1px solid rgba(43, 36, 24, 0.16);
  padding-top: 3px;
}

.ledger-compare tr.netline td,
.ledger-compare tr.netline th {
  border-top: 2px solid rgba(47, 92, 52, 0.45);
  font-size: 0.92rem;
  padding-top: 4px;
}

.ledger-compare td.is-you,
.ledger-compare th.is-you {
  background: rgba(107, 154, 64, 0.18);
}

.ledger-note {
  margin: 6px 0 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.model-notes p {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.card.season-win-card {
  width: min(860px, calc(100vw - 20px));
  max-width: min(860px, calc(100vw - 20px));
  max-height: calc(100dvh - 16px);
  overflow: auto;
}

.report-head {
  display: grid;
  grid-template-columns: 108px 1fr 1fr 1fr;
  gap: 6px;
  align-items: end;
}

.report-head span:nth-child(2) { color: #6a5420; }

.report-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cmp-row {
  display: grid;
  grid-template-columns: 108px 1fr 1fr 1fr;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
}

.cmp-label {
  font-size: 0.72rem;
  font-weight: 700;
}

.cmp-cell {
  position: relative;
  height: 16px;
  border-radius: 4px;
  background: rgba(43, 36, 24, 0.06);
  overflow: hidden;
}

.cmp-cell i {
  display: block;
  height: 100%;
}

.cmp-cell.trad i { background: linear-gradient(90deg, #c48a5a, #a86838); }
.cmp-cell.you i { background: linear-gradient(90deg, #d4b45a, #a88830); }
.cmp-cell.regen i { background: linear-gradient(90deg, #6b9a40, #c9e86a); }

.cmp-cell b {
  position: absolute;
  right: 4px;
  top: 0;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 16px;
  color: #1e2a14;
  text-shadow: 0 0 2px #f4ead3;
}

.report-cash-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.75rem;
}

.report-cash-table th {
  text-align: left;
  font-weight: 650;
  padding: 2px 4px 2px 0;
}

.report-cash-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  padding: 2px 4px;
}

.report-cash-table td.trad { color: #8a4a28; }
.report-cash-table td.regen { color: #2f6a32; }
.report-cash-table td.you { color: #5a4018; }

.report-cash-table tr.netline th,
.report-cash-table tr.netline td {
  border-top: 2px solid rgba(47, 92, 52, 0.4);
  font-size: 0.95rem;
  padding-top: 4px;
}

.decade-close {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e7f0cf;
  border: 1px solid rgba(47, 106, 50, 0.35);
  font-size: 0.84rem;
}

.farm-compare {
  display: block;
}

.parcel-field {
  fill: #d5e2a4;
  stroke: #5a7040;
  stroke-width: 0.28;
}

.corridor-parcel.is-owned .parcel-field {
  fill: #c9a24a;
  stroke: #6a4a18;
}

.corridor-parcel.is-mature .parcel-field {
  fill: #3f8a42;
  stroke: #c9e86a;
  stroke-width: 0.4;
}

.corridor-parcel.is-open .parcel-field {
  fill: #e7efc4;
}

.parcel-furrow {
  fill: none;
  stroke: #6a4a20;
  stroke-width: 0.32;
}

.parcel-clover { fill: #e4f5a4; }
.parcel-manure { fill: #5a3418; }

.parcel-village .village-halo {
  fill: #c9e86a;
  opacity: 0.55;
  animation: village-pulse 2.2s ease-in-out infinite;
}

.parcel-village path { fill: #2f6a32; }
.parcel-village rect { fill: #f4ead3; }

.parcel-herd {
  fill: #f0d090;
  stroke: #5a4018;
  stroke-width: 0.16;
}

.rail-future {
  animation: rail-dash 16s linear infinite;
}

@keyframes rail-dash {
  to { stroke-dashoffset: -40; }
}

.rail-gleam {
  stroke-dasharray: 1.4 7;
  animation: rail-gleam 2.6s linear infinite;
  filter: drop-shadow(0 0 0.4px #fff6c2);
}

@keyframes rail-gleam {
  to { stroke-dashoffset: -18; }
}

.iso-tile .village-halo {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 78px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 232, 106, 0.85), rgba(201, 232, 106, 0) 68%);
  pointer-events: none;
  z-index: 0;
  animation: village-pulse 2.2s ease-in-out infinite;
}

.is-almost-regen .iso-cap {
  background:
    radial-gradient(circle at 30% 40%, rgba(201, 232, 106, 0.45), transparent 40%),
    repeating-linear-gradient(118deg, #8aaa48 0 3px, #6a8a32 3px 4px, #c4b45a 4px 7px);
}

.show-manure .manure-dots {
  opacity: 0.95;
  height: 14px;
  background:
    radial-gradient(circle at 18% 50%, #4a2a14 0 2.6px, transparent 3px),
    radial-gradient(circle at 48% 35%, #6a4424 0 2.2px, transparent 2.7px),
    radial-gradient(circle at 74% 62%, #3a2010 0 2px, transparent 2.5px);
}

.is-regen-field .iso-cap {
  background:
    radial-gradient(circle at 22% 42%, #d6ef7a 0 2px, transparent 2.6px),
    radial-gradient(circle at 68% 58%, #e7f5b0 0 1.6px, transparent 2.2px),
    linear-gradient(135deg, #3d7a38, #6eac4a 55%, #2f6a32);
  box-shadow: inset 0 0 10px rgba(201, 232, 106, 0.45);
}

/* —— Corridor map: satellite board + label fit —— */
.play {
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr) minmax(260px, 330px);
}
.story-dock,
.notes {
  min-width: 0;
  overflow: auto;
}
.board {
  min-width: 0;
  overflow: hidden;
}

h1 {
  font-size: 1.12rem;
}
.tag {
  font-size: 0.72rem;
  line-height: 1.2;
}
.top {
  gap: 8px;
}
.top-actions {
  gap: 6px 8px;
}
.season {
  font-size: 0.75rem;
  line-height: 1.2;
  max-width: 220px;
}
.food-note {
  font-size: 0.7rem;
}
.top-actions .btn {
  padding: 5px 10px;
  font-size: 0.75rem;
}

.view-title {
  font-size: 0.92rem;
}
.view-sub {
  font-size: 0.68rem;
  line-height: 1.25;
  max-width: 42rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-bar {
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.buy-next {
  font-size: 0.72rem;
  padding: 5px 10px;
  margin-left: 0;
}

.corridor-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 3px 8px;
}
.corridor-banner strong {
  font-size: 0.72rem;
}
.corridor-banner span {
  font-size: 0.64rem;
}
.rail-meter {
  flex: 1 1 72px;
  height: 5px;
  min-width: 64px;
}

.corridor-map {
  background: #1a4d38;
  border: 1px solid #243428;
  border-radius: 8px;
}
.corridor-map text {
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
  paint-order: stroke;
}
.corridor-map .map-label,
.corridor-map .parcel-badge,
.corridor-map .village-pin,
.corridor-map .corridor-city {
  pointer-events: none;
}
.corridor-parcel {
  pointer-events: auto;
}
.corridor-map .city-label {
  font-size: 13px;
  font-weight: 700;
  fill: #141414;
  stroke: rgba(255, 252, 245, 0.94);
  stroke-width: 2.8px;
}
.corridor-map .parcel-name {
  font-size: 11px;
  font-weight: 700;
  fill: #141414;
  stroke: rgba(255, 252, 245, 0.94);
  stroke-width: 2.6px;
}
.corridor-map .parcel-badge {
  font-size: 6.2px;
  font-weight: 800;
  fill: #1c1c1c;
  stroke: none;
}
.corridor-map .place-water {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  fill: #f4fbff;
  stroke: #0c3044;
  stroke-width: 2.6px;
}
.corridor-map .place-state {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: rgba(18, 18, 18, 0.88);
  stroke: rgba(255, 252, 245, 0.94);
  stroke-width: 3.2px;
}
.corridor-map .place-minor {
  font-size: 10.5px;
  font-weight: 600;
  fill: #1a1a1a;
  stroke: rgba(255, 252, 245, 0.94);
  stroke-width: 2.4px;
}

.corridor-map .rail-case {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.corridor-map .rail-future {
  stroke: #1c7a32;
  stroke-width: 3.5;
  stroke-dasharray: 9 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
}
.corridor-map .rail-lit {
  stroke: #dcff73 !important;
  stroke-width: 5.2 !important;
  stroke-linecap: round;
  filter: drop-shadow(0 0 1.5px #f3ffc4);
}

.corridor-parcel .parcel-deed {
  fill: #f7f3e6;
  stroke: #1f5c30;
  stroke-width: 1.25;
  filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.4));
}
.corridor-parcel.is-open .parcel-deed {
  fill: #fbf8ee;
  stroke: #1d6a34;
  stroke-dasharray: 2.6 1.6;
}
.corridor-parcel.is-owned .parcel-deed {
  fill: #e2b84c;
  stroke: #6a4c14;
  stroke-dasharray: none;
}
.corridor-parcel.is-mature .parcel-deed {
  fill: #3c8c38;
  stroke: #e9f8ae;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 1.5px rgba(220, 255, 120, 0.8));
}
.corridor-parcel.is-mature .parcel-badge {
  fill: #f3ffe6;
}
.corridor-parcel.can-buy .parcel-deed {
  fill: #d9f09a;
  stroke: #1d6a34;
}
.corridor-parcel.no-buy .parcel-deed {
  fill: #c9bea0;
  opacity: 0.85;
}
.corridor-parcel.is-hover .parcel-deed,
.corridor-parcel:hover .parcel-deed {
  stroke-width: 2.2;
}
.corridor-parcel.is-picked .parcel-deed {
  stroke: #fff6d4;
  stroke-width: 2.5;
}
.corridor-parcel.has-village .parcel-deed {
  stroke: #e7f6a8;
  stroke-width: 1.7;
}

.compare-panel h2 {
  font-size: 0.82rem !important;
  line-height: 1.2;
}
.compare-panel .quiet,
.compare-punch {
  font-size: 0.66rem;
  line-height: 1.3;
}
.farm-sidebar {
  gap: 4px;
}
.farm-sidebar .farm-col h3 {
  font-size: 0.74rem;
}
.farm-sidebar .net-hero {
  font-size: 1.05rem;
  margin: 4px 0 0;
}
.farm-sidebar .farm-col dl,
.farm-col dt,
.farm-col dd {
  font-size: 0.66rem;
}
.ledger-kicker {
  margin: 4px 0 2px;
}
.ledger-table th,
.ledger-compare th {
  white-space: normal;
}
.notes h2,
.dock h2.place-head {
  font-size: 0.82rem;
}
.inspect li,
.goals li,
.log li {
  font-size: 0.72rem;
  line-height: 1.35;
}

.regen-hud {
  width: 22px;
  top: -4px;
  right: 0;
}
.regen-ring {
  width: 22px;
  height: 22px;
}
.regen-hud b {
  margin-top: -16px;
  font-size: 0.48rem;
}
.regen-badge {
  font-size: 0.48rem;
  top: -2px;
  padding: 0 3px;
}
.piece-graze {
  width: 34px !important;
  height: 30px !important;
}
.graze-banner {
  font-size: 0.68rem;
  padding: 3px 8px;
  line-height: 1.25;
}
.legend {
  font-size: 0.68rem;
  gap: 8px;
}

@media (min-width: 1400px) {
  .play {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(280px, 340px);
  }
}
@media (min-width: 1700px) {
  .play {
    grid-template-columns: minmax(0, 230px) minmax(0, 1fr) minmax(300px, 360px);
  }
}
@media (max-width: 1100px) {
  .play {
    grid-template-columns: minmax(0, 168px) minmax(0, 1fr) minmax(200px, 260px);
  }
}
@media (max-width: 900px) {
  .play {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "story notes"
      "board board";
  }
}
@media (max-width: 800px) {
  .board {
    min-height: 300px;
  }
  .board.is-corridor {
    overflow: auto;
  }
  .corridor-stage {
    width: 880px;
    min-width: 880px;
    height: auto;
  }
  #grid.corridor-world {
    justify-content: flex-start;
    align-items: flex-start;
    overflow: auto;
    height: auto !important;
    min-height: 280px;
  }
  .corridor-stage {
    flex: 0 0 auto;
  }
  .corridor-map {
    width: 880px !important;
    height: auto !important;
    aspect-ratio: 960 / 620;
    flex: 0 0 auto;
  }
}
@media (max-width: 640px) {
  .play {
    grid-template-columns: 1fr;
    grid-template-areas:
      "story"
      "notes"
      "board";
  }
}

/* Mosaic squares + Monopoly title deeds */
.board-split {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
}
.board-split > #grid {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}
.deed-board {
  width: 100%;
  flex: 0 1 auto;
  max-height: min(340px, 46vh);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.06), transparent 40%),
    #1b4332;
  color: #f6f1e4;
  border-radius: 10px;
  padding: 8px;
  border: 2px solid #0e2a1c;
  box-shadow: inset 0 0 0 1px rgba(244, 234, 211, 0.12);
}
.deed-board[hidden] { display: none; }
.deed-head h2 {
  margin: 0;
  font-size: 1rem;
  color: #f6f1e4;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
}
.deed-jar {
  margin: 2px 0 6px;
  font-size: 0.68rem;
  line-height: 1.3;
  color: #d7e6c8;
}
.deed-alert {
  margin: 0 0 6px;
  padding: 8px;
  background: #fff4f0;
  color: #7a1e12;
  border: 2px solid #c4492a;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}
.deed-owned {
  margin-bottom: 6px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.deed-owned .m-deed {
  flex: 0 0 168px;
  width: 168px;
}
.deed-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  align-items: start;
}
.deed-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(246, 241, 228, 0.4);
  border-radius: 8px;
  padding: 6px;
}
.deed-col.is-buy {
  border-style: solid;
  border-color: #d4b15a;
}
.deed-col.is-over {
  background: rgba(212, 177, 90, 0.22);
}
.deed-col h3 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  color: #f6f1e4;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
}
.deed-stack {
  overflow: visible;
  flex: 1 1 auto;
  min-height: 72px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  align-content: flex-start;
  gap: 8px;
}
.deed-stack > .m-deed {
  flex: 0 0 156px;
  width: 156px;
  max-width: 168px;
}
.deed-empty {
  margin: 0;
  flex: 1 1 100%;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #d7e6c8;
}
.m-deed {
  background: #fbf6e8;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 3px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
  cursor: grab;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  max-width: 230px;
}
.m-deed.is-dragging { opacity: 0.55; }
.m-deed.is-pop { animation: deed-pop 0.35s ease; }
.m-deed.is-shake { animation: deed-shake 0.42s ease; }
@keyframes deed-pop {
  from { transform: translateY(8px) scale(0.94); }
}
@keyframes deed-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.m-band {
  background: #c4a15a;
  color: #1a1a1a;
  padding: 6px 6px 5px;
  text-align: center;
  border-bottom: 2px solid #1a1a1a;
}
.m-band span {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.m-band strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.15;
}
.m-rail {
  display: inline-block;
  margin-top: 3px;
  font-style: normal;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #1a1a1a;
  color: #f4e7b8;
  padding: 1px 4px;
}
.m-body { padding: 6px 6px 2px; }
.m-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 3px;
}
.m-row span {
  color: #5c5346;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.58rem;
}
.m-row b {
  font-size: 0.78rem;
  text-align: right;
}
.m-acres b,
.m-price b { font-size: 1.2rem; line-height: 1; }
.m-price b { color: #8d1d1d; }
.m-note {
  margin: 4px 0 2px;
  font-size: 0.62rem;
  line-height: 1.3;
  color: #3d3830;
  font-family: "Segoe UI", sans-serif;
}
.m-look {
  margin: 0 0 6px;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b5428;
  font-family: "Segoe UI", sans-serif;
}
.m-actions { display: flex; padding: 0 6px 6px; }
.m-actions button {
  flex: 1;
  font: 700 0.66rem/1.2 "Segoe UI", sans-serif;
  padding: 5px 4px;
  border-radius: 4px;
  border: 1px solid #1a1a1a;
  background: #fff;
  cursor: pointer;
}
.m-actions button:hover { background: #f3e6b8; }
.m-deed.is-yours .m-band { background: #1f8a4c; }
.m-deed.is-yours .m-band span,
.m-deed.is-yours .m-band strong { color: #f4fff6; }
.deed-col.is-buy #deed-confirm,
#deed-confirm {
  margin-top: 6px;
  width: 100%;
  font-size: 0.75rem;
  padding: 7px 4px;
}
.lot-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
}
.lot-key i {
  width: 11px;
  height: 11px;
  border: 1px solid #fff6e8;
  border-radius: 2px;
  display: inline-block;
}
.sw-own { background: #ff4d00; }
.sw-regen { background: #39f5a0; }
.parcel-tip {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  background: #1c2416;
  color: #f4ead3;
  border: 1px solid #e2c56a;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  max-width: 260px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.corridor-map image,
.corridor-map .rail-case,
.corridor-map .rail-future,
.corridor-map .rail-lit,
.corridor-map .rail-built,
.corridor-map .stop-ring {
  pointer-events: none;
}
.corridor-map .parcel-lot {
  cursor: pointer;
}
.corridor-map .parcel-lot.is-open {
  fill: rgba(255, 252, 240, 0.05);
  stroke: rgba(255, 250, 235, 0.78);
  stroke-width: 0.7;
}
.corridor-map .parcel-lot.is-spine.is-open {
  stroke: rgba(255, 250, 220, 0.95);
  stroke-width: 0.9;
}
.corridor-map .parcel-lot.is-open:hover,
.corridor-map.is-buying .parcel-lot.is-open:hover {
  fill: rgba(255, 236, 170, 0.55);
  stroke: #fff6d2;
  stroke-width: 1.25;
}
.corridor-map .parcel-lot.is-held {
  fill: rgba(240, 196, 74, 0.5);
  stroke: #fff1c2;
  stroke-width: 1.2;
}
.corridor-map .parcel-lot.is-staged {
  fill: rgba(120, 196, 110, 0.48);
  stroke: #f3ffd2;
  stroke-width: 1.3;
}
.corridor-map .parcel-lot.is-owned {
  fill: #ff4d00;
  stroke: #fff6e8;
  stroke-width: 1.5;
  fill-opacity: 1;
  filter: drop-shadow(0 0 1.4px #ff4d00);
}
.corridor-map .parcel-lot.is-y3,
.corridor-map .parcel-lot.is-y4 {
  fill: #f0a01a;
}
.corridor-map .parcel-lot.is-y5 {
  fill: #e4c84a;
  stroke: #5c4310;
}
.corridor-map .parcel-lot.is-mature {
  fill: #39f5a0;
  stroke: #04150e;
  stroke-width: 1.7;
  fill-opacity: 1;
  filter: drop-shadow(0 0 1.6px #39f5a0);
}
.corridor-map .parcel-lot.is-picked {
  stroke: #ffffff;
  stroke-width: 1.5;
}
.corridor-map .parcel-lot.is-future-stop {
  stroke: #ffe36a;
  stroke-width: 1.5;
  stroke-dasharray: 2.1 1.2;
}
.corridor-map .parcel-lot.is-focus {
  stroke: #ffffff !important;
  stroke-width: 2.3 !important;
}
.corridor-map .stop-ring {
  fill: none;
  stroke: #ffe36a;
  stroke-width: 1.35;
  stroke-dasharray: 2.4 1.5;
}
.corridor-map .stop-ring.is-built {
  stroke: #06210f;
  fill: rgba(220, 255, 115, 0.35);
  stroke-dasharray: none;
}
.corridor-map .rail-built {
  stroke: #dcff73;
  stroke-width: 6.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px #f3ffc4);
}
.autopilot-bar {
  background: #14301f;
  color: #f6f1e4;
  border: 2px solid #e2c56a;
  border-radius: 10px;
  padding: 8px 12px 9px;
  margin: 0 0 6px;
}
.autopilot-bar[hidden] { display: none; }
.autopilot-phase {
  margin: 0;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.autopilot-progress {
  margin: 2px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #d6f5c8;
}
.autopilot-note {
  margin: 4px 0 0;
  font-size: 0.86rem;
  line-height: 1.35;
  max-width: 78rem;
}
.deed-board.is-auto .deed-cols,
.deed-board.is-auto #deed-owned { display: none; }
.board.is-corridor .village-line { max-height: none; }
.deed-spotlight {
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}
.deed-spotlight[hidden] { display: none !important; }
.m-deed.is-spotlight {
  width: min(440px, 100%);
  max-width: 440px;
  cursor: default;
}
.m-deed.is-spotlight .m-why {
  margin: 8px 0 4px;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #241e16;
}
.m-deed.is-spotlight .m-why span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b2a1a;
}
.m-deed.is-spotlight .m-beat {
  margin: 0 0 8px;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f5c30;
}
.m-deed.is-spotlight.is-wait .m-beat { color: #8d1d1d; }
#autopilot[aria-pressed="true"] {
  background: #8d1d1d;
  border-color: #5c100c;
}
@media (max-width: 1180px) {
  .deed-board { max-height: min(300px, 42vh); }
  .corridor-stage { width: auto !important; min-width: 0 !important; }
  .corridor-map { width: 100% !important; height: auto !important; }
}
@media (max-width: 720px) {
  .deed-cols { grid-template-columns: 1fr; }
  .deed-stack > .m-deed,
  .deed-owned .m-deed {
    flex: 1 1 148px;
    width: auto;
    max-width: none;
  }
  .farm-photo-veil {
    align-items: end;
    padding: 0;
  }
  .farm-photo-card {
    width: 100%;
    max-height: 88dvh;
    border-radius: 16px 16px 0 0;
  }
}

.village-line {
  margin: 0;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.06), transparent 40%),
    #1b4332;
  color: #f6f1e4;
  border-radius: 10px;
  padding: 6px 8px 8px;
  border: 2px solid #0e2a1c;
}
.village-line[hidden] { display: none; }
.village-line-head h2 {
  margin: 0;
  font-size: 0.92rem;
  color: #f6f1e4;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
}
.village-line-head p,
#village-econ {
  margin: 2px 0 6px;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #d7e6c8;
}
.village-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}
.v-card {
  flex: 0 0 156px;
  scroll-snap-align: start;
  background: #fbf6e8;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 3px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
}
.v-card header {
  background: #2f6a32;
  color: #f4fff6;
  padding: 4px 6px 3px;
  text-align: center;
  border-bottom: 2px solid #1a1a1a;
}
.v-card.is-site header { background: #8a6232; }
.v-card.is-framing header { background: #a67c32; }
.v-card.is-open header { background: #1f8a4c; }
.v-card.is-sold header { background: #3d4a62; }
.v-card.is-focus {
  outline: 3px solid #ffe36a;
  outline-offset: 1px;
}
.v-card header span {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.v-card header strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.15;
}
.v-stage {
  display: block;
  width: 100%;
  height: 34px;
  background: #d7c4a2;
}
.v-stage-label,
.v-econ,
.v-detail {
  margin: 2px 6px;
  font-size: 0.6rem;
  line-height: 1.25;
}
.v-stage-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.v-econ { color: #8d1d1d; font-weight: 700; }
.v-detail {
  color: #3d3830;
  font-family: "Segoe UI", sans-serif;
}
.v-card button {
  display: block;
  width: calc(100% - 12px);
  margin: 0 6px 6px;
  font: 700 0.66rem/1.2 "Segoe UI", sans-serif;
  padding: 5px 4px;
  border-radius: 4px;
  border: 1px solid #1a1a1a;
  background: #fff;
  cursor: pointer;
}
.v-card button:hover { background: #f3e6b8; }
.v-card button:disabled {
  opacity: 0.55;
  cursor: default;
}
.farm-photo-card {
  width: min(460px, 100%);
  max-height: min(92dvh, 720px);
  overflow: auto;
  padding: 14px 14px 16px;
}
.farm-photo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.farm-photo-top .btn {
  min-width: 0;
  margin: 0;
  padding: 8px 14px;
}
.farm-photo-art {
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  background: #c5e4f5;
}
.farm-portrait {
  display: block;
  width: 100%;
  height: auto;
}
.farm-photo-caption {
  margin: 8px 0 0;
  font-size: 0.92rem;
}
.corridor-map .village-pin text {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  pointer-events: none;
}

/* Autopilot year clock — absolute year, held long enough to read. Manual play is unchanged. */
html[data-ap-running="1"] .season {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  max-width: none;
  line-height: 1.15;
}
html[data-ap-running="1"] .season.is-year-tick {
  animation: year-tick 0.65s ease;
}
@keyframes year-tick {
  0% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
html[data-ap-running="1"][data-year-tint="1"] .board {
  box-shadow: var(--shadow), inset 0 0 0 4px rgba(126, 200, 227, 0.55);
}
html[data-ap-running="1"][data-year-tint="2"] .board {
  box-shadow: var(--shadow), inset 0 0 0 4px rgba(242, 211, 27, 0.6);
}
html[data-ap-running="1"][data-year-tint="3"] .board {
  box-shadow: var(--shadow), inset 0 0 0 4px rgba(31, 157, 85, 0.55);
}
html[data-ap-running="1"][data-year-tint="4"] .board {
  box-shadow: var(--shadow), inset 0 0 0 4px rgba(208, 120, 74, 0.55);
}

/* Autopilot corridor overview — map fills the board; deeds and side panels step aside. */
html[data-map-overview="1"] .story-dock,
html[data-map-overview="1"] .notes,
html[data-map-overview="1"] #village-line,
html[data-map-overview="1"] #deed-board {
  display: none !important;
}
html[data-map-overview="1"] .play {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "board" !important;
}
html[data-map-overview="1"] .board {
  min-height: calc(100dvh - 108px);
}
html[data-map-overview="1"] #grid.corridor-world {
  min-height: calc(100dvh - 230px) !important;
  height: calc(100dvh - 230px) !important;
}
html[data-map-overview="1"] .corridor-stage,
html[data-map-overview="1"] .corridor-map {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
}
.board.is-map-pulse .corridor-map {
  animation: map-pulse 0.9s ease;
}
@keyframes map-pulse {
  0% { box-shadow: 0 0 0 5px #e2c56a; }
  100% { box-shadow: inset 0 0 0 1px rgba(244, 234, 211, 0.35), 0 4px 14px rgba(40, 50, 20, 0.14); }
}
