/* Farm & Auction - "Hay Day" look.
   Bright grass background, wooden sign-board headers, cream parchment cards, chunky rounded buttons.
   Chart series colours come from engine/config.py and are never set here; only the chrome is styled. */
:root {
  --grass: #74c62f; --grass-2: #5fb424; --grass-3: #8fd84a;
  --wood: #b57537; --wood-2: #8d5422; --wood-3: #d59a56; --wood-ink: #4a2a0c;
  --cream: #fff8e4; --cream-2: #f7e9c6; --cream-3: #efdcac; --card: var(--cream);
  --surface: var(--cream-2);
  --ink: #3a2410; --ink-2: #6f5235; --ink-3: #9b7d5c;
  --line: #e8d3a3; --axis: #cfb27a;
  --gold: #ffcf3f; --gold-2: #e9a800; --gold-3: #b57a00;
  --sky: #3f8ef0; --sky-2: #1f62c7;
  --accent: #1f62c7; --good: #1f7a1f; --bad: #c4261e;
  --btn-green: #7ad13d; --btn-green-2: #4ea51d; --btn-red: #ef5a4b; --btn-red-2: #b8281c;
  --shadow: 0 2px 0 rgba(0,0,0,.08), 0 6px 14px rgba(40,70,10,.18);
  --radius: 18px;
  --font-display: "Fredoka", "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--grass-2); }
body {
  margin: 0; color: var(--ink); font: 15px/1.45 var(--font-body);
  background-color: var(--grass);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(255,255,255,.14), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 26px, transparent 26px 52px);
  min-height: 100vh;
}
a { color: var(--accent); font-weight: 700; }
code, pre, .mono, td.num, .num { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { background: rgba(120,80,30,.1); padding: 0 .3em; border-radius: 6px; font-size: .92em; }
pre code { background: none; padding: 0; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; }
h1 { font-size: 1.9rem; margin: 0 0 .7rem; color: var(--ink); }
h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .4rem; color: var(--ink-2); }
.muted { color: var(--ink-2); } .small { font-size: .85rem; } .error { color: var(--bad); font-weight: 700; }
.good { color: var(--good); } .bad { color: var(--bad); }

/* ---- page title: a hanging wooden sign ----------------------------------- */
main > h1, .narrow > h1, .docs > h1 {
  display: block; width: fit-content; margin-bottom: .9rem; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35);
  background: linear-gradient(180deg, var(--wood-3), var(--wood) 55%, var(--wood-2));
  border: 3px solid var(--wood-2); border-radius: 14px; padding: .35rem 1.2rem;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.3), var(--shadow);
  position: relative;
}
.docs > h1::before, .docs > h1::after, .narrow > h1::before, .narrow > h1::after, main > h1::before, main > h1::after {
  content: ""; position: absolute; top: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c9, #9b7a45); box-shadow: 0 1px 1px rgba(0,0,0,.4);
}
main > h1::before, .narrow > h1::before, .docs > h1::before { left: 8px; } main > h1::after, .narrow > h1::after, .docs > h1::after { right: 8px; }

/* ---- header: wooden plank with round HUD buttons -------------------------- */
header.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; padding: .45rem 1.1rem .5rem;
  background: linear-gradient(180deg, var(--wood-3) 0, var(--wood) 30%, var(--wood-2) 100%);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 90px),
    linear-gradient(180deg, var(--wood-3) 0, var(--wood) 30%, var(--wood-2) 100%);
  border-bottom: 4px solid #5e3410; box-shadow: 0 4px 12px rgba(0,0,0,.25);
  position: sticky; top: 0; z-index: 5; color: #fff;
}
header.top a { color: #fff; }
.brand {
  display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; color: #fff; text-decoration: none; white-space: nowrap; text-shadow: 0 2px 0 rgba(0,0,0,.35);
  line-height: 1;
}
.brand svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.3)); }
header nav { display: flex; gap: .35rem; flex-wrap: wrap; align-items: flex-start; }
header nav a {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; width: 62px;
  text-decoration: none; font-family: var(--font-display); font-size: .74rem; font-weight: 600; line-height: 1;
  color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.45); white-space: nowrap; padding: 2px 0 1px;
}
header nav a .ring {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #fff6d6 0, #ffd863 55%, #e3a21d 100%);
  border: 3px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,.28), 0 5px 9px rgba(0,0,0,.28);
  transition: transform .08s;
}
header nav a .ring svg { width: 22px; height: 22px; }
header nav a:hover .ring { transform: translateY(-1px); }
header nav a.on .ring { background: radial-gradient(circle at 50% 30%, #d4ffb0 0, #8be24c 55%, #4ea51d 100%); box-shadow: 0 0 0 3px rgba(255,220,90,.75), 0 3px 0 rgba(0,0,0,.28), 0 5px 9px rgba(0,0,0,.28); }
header nav a.on { color: #fff6c4; }

.clock {
  margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .9rem;
  background: rgba(255,248,228,.94); color: var(--ink); border-radius: 999px; padding: .3rem .8rem;
  box-shadow: inset 0 2px 0 #fff, 0 2px 0 rgba(0,0,0,.25); border: 2px solid #f5dfa4; font-weight: 700;
}
.clock b { color: var(--ink); }
.clock .live { color: var(--good); font-weight: 800; } .clock .paused { color: var(--bad); font-weight: 800; }

.hud { display: flex; align-items: center; gap: .6rem; white-space: nowrap; }
.hud[hidden] { display: none; }
.coin-counter {
  display: inline-flex; align-items: center; gap: .4rem; height: 32px; padding: 0 2px 0 .9rem;
  background: rgba(40,22,6,.55); border-radius: 999px; box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.45);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.coin-counter svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.star-badge { position: relative; width: 44px; height: 44px; display: grid; place-items: center; filter: drop-shadow(0 3px 0 rgba(0,0,0,.3)); }
.star-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.star-badge b { position: relative; font-family: var(--font-display); font-weight: 700; font-size: .88rem; letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.5); line-height: 1; margin-top: 2px; }
.who { white-space: nowrap; font-size: .9rem; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.who strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.who a { font-weight: 600; opacity: .9; }
.progress { flex-basis: 100%; height: 7px; background: rgba(0,0,0,.28); position: relative; margin: .05rem -1.1rem -.5rem; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(180deg, #ffe27a, var(--gold-2)); box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); transition: width .4s; }

main > p.hostline, main > p.onsky { color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.45); font-weight: 700; }
main > p.hostline code { background: rgba(0,0,0,.25); color: #fff; }
main > p.hostline .good { color: #e4ffc8; } main > p.hostline .bad { color: #ffd0c8; }

/* ---- layout ----------------------------------------------------------------- */
main { max-width: 1280px; margin: 0 auto; padding: 1.2rem; }
.narrow { max-width: 640px; margin: 1.5rem auto; }
.card {
  background: var(--card); border: 3px solid #e4c88e; border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem;
  box-shadow: inset 0 0 0 2px #fffdf3, var(--shadow); overflow-x: auto;
}
/* First heading in a card becomes a wooden name-plate. */
.card > h2:first-child, .card > .toolbar:first-child {
  margin: -1rem -1.1rem .9rem; padding: .45rem 1.1rem; border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, var(--wood-3), var(--wood) 60%, var(--wood-2));
  color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); border-bottom: 3px solid var(--wood-2);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25);
}
.card > .toolbar:first-child { display: flex; }
.card > .toolbar:first-child h2 { color: #fff; }
.card > h2:first-child .muted, .card > .toolbar:first-child .muted { color: #ffe9b8; }
.card > h2:first-child a { color: #fff3c4; }
.cols { display: flex; gap: 1rem; align-items: flex-start; }
.grow { flex: 1; min-width: 0; } .side { width: 360px; flex-shrink: 0; }
@media (max-width: 900px) { .cols { flex-direction: column; align-items: stretch; } .side { width: auto; } }

/* ---- stat tiles --------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.tile {
  background: var(--card); border: 3px solid #e4c88e; border-radius: 14px; padding: .55rem .9rem .6rem;
  box-shadow: inset 0 0 0 2px #fffdf3, var(--shadow);
}
.tile .k { color: var(--ink-2); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.tile .v { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile .d { font-size: .8rem; color: var(--ink-2); }

/* ---- tables (dense) ------------------------------------------------------------ */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  text-align: left; color: var(--wood-ink); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
  background: var(--cream-3); border-bottom: 2px solid #dcbd82; padding: .3rem .5rem;
}
.table tr:first-child th:first-child { border-radius: 8px 0 0 0; } .table tr:first-child th:last-child { border-radius: 0 8px 0 0; }
.table td { padding: .33rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table tr.me td { background: #fff1b8; }
.table tbody tr:hover td, .table tr:hover td { background: rgba(255,230,160,.35); }
.table tr.me:hover td { background: #ffeaa4; }
/* crop marker: a small cartoon icon on a ring tinted with the crop's chart colour */
.dot {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  margin-right: .35rem; vertical-align: -5px; border: 2px solid; background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.dot svg { width: 15px; height: 15px; display: block; }
.dot:empty { width: 11px; height: 11px; vertical-align: -1px; border: 0; }
h2 .dot { width: 26px; height: 26px; vertical-align: -6px; } h2 .dot svg { width: 20px; height: 20px; }
.bar { position: relative; height: 10px; background: var(--cream-3); border-radius: 5px; width: 120px; display: inline-block; vertical-align: middle; box-shadow: inset 0 1px 2px rgba(0,0,0,.15); }
.bar i { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.bar i.pos { left: 50%; background: linear-gradient(180deg, #8fdc4f, #3f9a16); } .bar i.neg { right: 50%; background: linear-gradient(180deg, #ff8a7a, #c4261e); }
.pill {
  display: inline-block; padding: 0 .5rem; border-radius: 999px; font-size: .74rem; font-weight: 800;
  background: #fff; border: 2px solid #e4c88e; color: var(--ink-2); line-height: 1.45;
}

/* ---- toolbar + controls ----------------------------------------------------------- */
.toolbar { display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; } .toolbar.wrap { flex-wrap: wrap; }
.toolbar h2 { margin: 0; margin-right: auto; }
.toolbar label { font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.sep { width: 2px; height: 26px; background: rgba(0,0,0,.12); border-radius: 2px; }
.card > .toolbar:first-child .sep { background: rgba(0,0,0,.25); }
.card > .toolbar:first-child .ok { color: #d9ffb3; } .card > .toolbar:first-child .error { color: #ffd3c9; }
.card > .toolbar:first-child select { max-width: 100%; }
button, .button, select, input {
  font: inherit; font-weight: 700; color: var(--ink); border-radius: 12px; padding: .4rem .8rem; text-decoration: none;
  border: 2px solid #c9a564; background: linear-gradient(180deg, #fffdf6, #f4e4bd);
}
input, select { box-shadow: inset 0 2px 3px rgba(0,0,0,.08); background: #fffdf6; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(63,142,240,.45); outline-offset: 1px; }
button, .button {
  cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  border: 2px solid #9c6a24; border-bottom-width: 2px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.75), 0 4px 0 #b0843d, 0 6px 10px rgba(0,0,0,.2);
  color: var(--ink); display: inline-block; position: relative; top: 0;
  transition: transform .06s, box-shadow .06s;
}
button:hover, .button:hover { filter: brightness(1.04); }
button:active, .button:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 1px 0 #b0843d, 0 2px 4px rgba(0,0,0,.2); }
button.primary, .button.primary {
  background: linear-gradient(180deg, #9ee45e, var(--btn-green) 50%, var(--btn-green-2)); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.3);
  border-color: #3b8514; box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 4px 0 #2f6c10, 0 6px 10px rgba(0,0,0,.22);
}
button.primary:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 1px 0 #2f6c10, 0 2px 4px rgba(0,0,0,.2); }
button.danger, .button.danger {
  background: linear-gradient(180deg, #ff9a8c, var(--btn-red) 50%, var(--btn-red-2)); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.3);
  border-color: #8e1c12; box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 4px 0 #7a160e, 0 6px 10px rgba(0,0,0,.22);
}
button.danger:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 1px 0 #7a160e, 0 2px 4px rgba(0,0,0,.2); }
button.gold, .button.gold {
  background: linear-gradient(180deg, #fff0a8, var(--gold) 50%, var(--gold-2)); color: var(--wood-ink); text-shadow: 0 1px 0 rgba(255,255,255,.5);
  border-color: #b57a00; box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 4px 0 #9a6700, 0 6px 10px rgba(0,0,0,.22);
}
button:disabled, button:disabled:active { opacity: .5; cursor: default; transform: none; filter: grayscale(.4); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 2px 0 rgba(0,0,0,.2); }
.table button { padding: .2rem .6rem; font-size: .85rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 #b0843d, 0 3px 5px rgba(0,0,0,.15); }
.table button:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 #b0843d; }
.form label, .grid label { display: block; margin-bottom: .7rem; font-weight: 800; color: var(--ink-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.form input, .grid input[type=number] { display: block; width: 100%; margin-top: .25rem; font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: 0; padding: .55rem .8rem; }
.form button { margin-top: .3rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .3rem 1rem; }
.grid fieldset, .grid > div, .grid label.inline { grid-column: 1 / -1; }
fieldset { border: 2px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.35); }
fieldset legend { font-weight: 800; color: var(--ink-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: 0 .4rem; }
label.inline { display: inline-block; margin-right: 1rem; text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 700; color: var(--ink); }
input[type=checkbox] { accent-color: var(--btn-green-2); width: 1.05rem; height: 1.05rem; vertical-align: -2px; }
ol.tight li { margin-bottom: .35rem; }

/* ---- code, logs, charts ------------------------------------------------------------ */
.CodeMirror { height: 520px; border: 3px solid #e4c88e; border-radius: 12px; font-size: 13px; background: #fffdf6; }
.CodeMirror-gutters { background: var(--cream-2); border-right: 1px solid var(--line); }
.CodeMirror-linenumber { color: var(--ink-3); }
textarea#code { width: 100%; height: 520px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; border: 3px solid #e4c88e; border-radius: 12px; background: #fffdf6; }
pre.testout, pre.log, pre.code {
  background: #fffdf6; border: 2px solid var(--line); border-radius: 12px; padding: .7rem .8rem; font-size: .83rem;
  overflow: auto; max-height: 420px; white-space: pre-wrap; box-shadow: inset 0 2px 4px rgba(0,0,0,.06); color: var(--ink);
}
pre.code { max-height: none; }
pre.testout { margin: .8rem 0 .4rem; border: 3px solid #e4c88e; border-left: 8px solid var(--gold-2); border-radius: 12px; background: #fffdf6; }
pre.testout::before { content: "Dry run"; display: block; font: 600 .8rem var(--font-display); color: var(--gold-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.chartbox { position: relative; height: 180px; background: #fffdf6; border: 2px solid var(--line); border-radius: 12px; padding: .5rem .5rem .3rem; }
.chartbox.tall { height: 300px; }
.cropcard .charts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; }
@media (max-width: 900px) { .cropcard .charts { grid-template-columns: 1fr; } }
.cropcard .meta { display: flex; gap: .4rem .8rem; flex-wrap: wrap; color: var(--ink-2); font-size: .83rem; margin-bottom: .7rem; }
.cropcard .meta span { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; }
.cropcard .meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.docs { max-width: 900px; } .docs table td:first-child { white-space: nowrap; }
.docs h2 { margin-top: 1.4rem; color: var(--wood-ink); }
.docs > h2, .docs > p, .docs > ol, .docs > ul, .docs > table, .docs > pre { background: var(--card); }
.docs > p, .docs > ol, .docs > ul, .docs > table, .docs > pre.code { padding: .7rem 1rem; border-radius: 12px; margin: 0 0 .8rem; border: 2px solid #e4c88e; box-shadow: var(--shadow); }
.docs > ol, .docs > ul { padding-left: 2rem; }
.docs > table { display: block; overflow-x: auto; }
.docs > h2 { display: inline-block; padding: .25rem .9rem; border-radius: 10px; border: 2px solid #e4c88e; margin: .6rem 0 .5rem; box-shadow: var(--shadow); }
.errline { color: var(--bad); font-size: .85rem; }
.ok { color: var(--good); font-weight: 800; }

/* ---- farm plot grid ------------------------------------------------------------------- */
.fence {
  padding: 8px; border-radius: 10px; margin: .2rem 0 .6rem;
  background: repeating-linear-gradient(90deg, #fff 0 9px, #dcdccf 9px 11px, #fff 11px 14px);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.06), 0 2px 0 rgba(0,0,0,.12);
}
.plotgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 4px; padding: 5px; border-radius: 6px;
  background: linear-gradient(180deg, #8fd84a, #74c62f);
}
.plot {
  position: relative; aspect-ratio: 1; min-width: 0; border-radius: 6px; overflow: hidden; cursor: default;
  background: linear-gradient(180deg, #a86a35, #7f4b1e);
  background-image: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 7px, rgba(0,0,0,.14) 7px 9px), linear-gradient(180deg, #a86a35, #7f4b1e);
  box-shadow: inset 0 2px 3px rgba(0,0,0,.35), inset 0 -1px 0 rgba(255,255,255,.12);
  display: grid; place-items: center;
}
.plot.free { background-image: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 7px, rgba(0,0,0,.08) 7px 9px), linear-gradient(180deg, #b9834f, #9a6433); }
.plot .ic { width: 70%; height: 70%; display: grid; place-items: center; margin-bottom: 8px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.3)); }
.plot .ic svg { width: 100%; height: 100%; }
.plot.sprout .ic { width: 42%; height: 42%; }
.plot.young .ic { width: 58%; height: 58%; }
.plot .grow { position: absolute; left: 5px; right: 5px; bottom: 15px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.35); display: block; }
.plot .grow b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: linear-gradient(180deg, #a9ec6c, #4ea51d); display: block; }
.plot.ripe .grow b { background: linear-gradient(180deg, #ffe27a, #e9a800); }
.plot .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 2px 2px; text-align: center; font-size: .62rem; font-weight: 800; line-height: 1;
  color: #fff3d6; text-shadow: 0 1px 0 rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35));
}
.plot.free .cap { bottom: auto; position: static; background: none; color: rgba(255,243,214,.75); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.plot:hover { outline: 3px solid rgba(255,220,90,.9); outline-offset: -3px; }
.plantings { list-style: none; margin: 0 0 .9rem; padding: 0; font-size: .85rem; }
.plantings li { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; padding: .2rem 0; border-bottom: 1px solid var(--line); }
.plantings li:last-child { border-bottom: 0; }
.plantings .when { margin-left: auto; color: var(--good); font-weight: 800; white-space: nowrap; }
h3.barn { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; }
h3.barn svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); }
@media (max-width: 700px) {
  .plotgrid { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 3px; }
  .plot .cap { font-size: .58rem; }
}

/* ---- join page hero ------------------------------------------------------------------ */
.hero { text-align: center; padding: 1.4rem 0 .2rem; position: relative; }
.hero .scene { width: min(560px, 100%); height: auto; display: block; margin: 0 auto -1.1rem; filter: drop-shadow(0 8px 10px rgba(0,60,0,.22)); }
.hero .sign {
  display: inline-block; position: relative; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.35);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 7vw, 3.1rem); line-height: 1.05; letter-spacing: .01em;
  background: linear-gradient(180deg, var(--wood-3), var(--wood) 55%, var(--wood-2));
  border: 4px solid var(--wood-2); border-radius: 18px; padding: .45rem 1.6rem .55rem;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.3), 0 6px 0 #5e3410, 0 12px 18px rgba(0,0,0,.3);
}
.hero .sign::before, .hero .sign::after {
  content: ""; position: absolute; top: 10px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c9, #9b7a45); box-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.hero .sign::before { left: 10px; } .hero .sign::after { right: 10px; }
.hero .sign small { display: block; font-size: .42em; font-weight: 600; color: #ffe9b8; letter-spacing: .08em; text-transform: uppercase; margin-top: .15rem; }
.hero p { color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.4); font-weight: 700; margin: 1rem auto .4rem; max-width: 520px; }
.join-card { margin-top: 1rem; }
.join-card .enter { width: 100%; font-size: 1.25rem; padding: .6rem 1rem; }
.join-card .error { margin: 0 0 .6rem; }

/* ---- phone -------------------------------------------------------------------------- */
@media (max-width: 700px) {
  main { padding: .8rem; }
  header.top { padding: .4rem .7rem; gap: .4rem .6rem; }
  .progress { margin: .05rem -.7rem -.4rem; }
  .brand span { display: none; }
  header nav a { width: 46px; font-size: .62rem; }
  header nav a .ring { width: 34px; height: 34px; } header nav a .ring svg { width: 18px; height: 18px; }
  .clock { margin-left: 0; width: 100%; text-align: center; font-size: .82rem; order: 10; }
  .card { padding: .8rem .8rem; }
  .card > h2:first-child, .card > .toolbar:first-child { margin: -.8rem -.8rem .7rem; padding: .4rem .8rem; }
  .tiles { gap: .5rem; grid-template-columns: repeat(2, 1fr); }
  .toolbar { flex-wrap: wrap; }
  .table { font-size: .84rem; }
  .bar { width: 70px; }
  .CodeMirror, textarea#code { height: 380px; }
  .chartbox.tall { height: 240px; }
}
