/* Ink, warm silk paper and a restrained ochre edge. */
:root {
  --ink:#2b4238; --pine:#355447; --pine-deep:#60785e; --cream:#faf5e8;
  --paper:#f7f2e5; --paper-light:#fdf9ef; --paper-line:#b3b399;
  --cinnabar:#973e2c; --number:ui-sans-serif,system-ui,"PingFang SC","Microsoft YaHei",sans-serif;
  --enamel:linear-gradient(115deg,#fbf8ee,#efe8d8);
  --panel-shadow:0 2px 8px #503c231b;
}
body,.viewport { background-color:#e4dfc8; color:var(--ink); }
.viewport .pixel,.viewport .scene,.viewport .station img,.viewport .nest-badge img { image-rendering:auto; }
.viewport button:focus-visible { outline:2px solid var(--cinnabar); outline-offset:2px; box-shadow:0 0 0 3px #fff9e5; }
.scene {
  background-color:#d2cf9e; --field-left:21%; --field-width:53%; --field-top:38%; --field-height:40%;
}
.map-shade { box-shadow:inset 0 -22px 50px -45px #4e55394f; }
.farm-sign,.almanac,.next {
  color:var(--ink); border:1px solid #a3a58a;
  background:linear-gradient(124deg,#fffaf0fa,#f5efddfa);
  box-shadow:inset 0 0 0 3px #fcf7ea,inset 0 0 0 4px #cfc8ab,0 2px 7px #444a361b;
}
.farm-sign { padding:8px 17px 8px 12px; column-gap:8px; border-radius:13px; }
.farm-crest { width:clamp(34px,3.4vw,52px); filter:none; }
.sign-name h1 { font:720 clamp(25px,2.45vw,43px)/1.16 var(--book); letter-spacing:.12em; color:#2f493b; text-shadow:none; }
#level { color:#566854; font-weight:550; }
#level b { color:#495e49; }
.xp-track { height:3px; border-radius:2px; box-shadow:none; background:#d7d6bd; }
.xp-track i { background:#809478; }
.almanac { border-radius:999px; padding:8px 18px; gap:10px; }
.almanac strong,.purse b { color:#304c3c; font-weight:700; }
.almanac span { color:#626b55; }
.almanac > img,.purse img { filter:none; }
.purse { border-color:#c9c6a9; }
.utility { width:34px; height:34px; color:#425c4a; border:1px solid #afb39a; border-radius:50%; background:#f9f4e6f0; box-shadow:0 1px 3px #394d3617; }
.utility:is(:hover,:focus-visible),.utility[aria-pressed=true]#zoom,.utility.current { color:#943d29; background:#fffaf0; }
.next { padding:13px 24px; color:#354e3d; border-radius:999px; font-size:clamp(17px,1.5vw,25px); }
.next svg { color:#758064; }
.save-state { color:#4b5946; background:#faf5e5e8; border:1px solid #c2c1a6; border-radius:30px; }
.save-state svg { color:#658269; }
.save-state[data-saved="false"] { color:#823a29; background:#fff0d9; }
.day-splash { color:#425a47; border:1px solid #adad91; border-radius:12px; }

/* Each sign is attached to its painted location. The transparent hit area also covers the object. */
.station {
  --size:clamp(68px,7vw,110px); min-height:clamp(39px,5.4vh,66px); flex-direction:row;
  justify-content:center; align-items:flex-end; border-radius:10px;
}
.station .object { display:none; }
.station.market { left:9%; top:45%; }
.station.barn { left:66.5%; top:33%; }
.station.coop { left:82%; top:41%; }
.station.kitchen { left:35%; top:33%; }
.station.post { left:6.4%; top:65%; }
.station.riverbank { left:89.5%; top:57.4%; }
.station .nameplate {
  min-width:0; color:#344d3b; padding:4px 11px; border:1px solid #aba98c;
  background:#fbf6e5ed; box-shadow:0 1px 4px #514d3524; border-radius:5px;
  font:700 clamp(13px,1.02vw,17px)/1.13 var(--book); letter-spacing:.07em;
}
.nameplate::before,.nameplate::after { display:none; }
.station:is(:hover,:focus-visible,.current) .nameplate { background:#fff8e8; color:#8e422d; border-color:#a76f54; }
.station .order-badge,.station .nest-badge {
  position:static; align-self:flex-end; margin-left:1px; padding:4px; border-radius:6px;
  background:#edeedc; border:1px solid #a4ab8d; box-shadow:none; color:#425839; font-size:11px;
}
.station .order-badge.ready,.station .nest-badge { color:#853f26; background:#fff1d6; border-color:#ba9270; }
.hen { left:12%; top:61%; width:clamp(39px,4.2vw,74px); animation-timing-function:ease-in-out; }
.hen img { filter:drop-shadow(0 2px 1px #655b3d3d); }
.water-float { left:94%; top:61%; }
.float-call { color:#384c3b; background:#fffae7; border-color:#ac9c72; }
#fieldSummary {
  bottom:calc(100% - var(--field-top) + 5px); left:calc(var(--field-left) + var(--field-width) - 1px);
  transform:translateX(-100%); border-color:#aaad90; background:#f8f5e8ed; box-shadow:0 1px 3px #424d3520; border-radius:8px;
}
#fieldSummary button,#fieldSummary button + button { color:#3c5744; background:#e4e8d7; font-size:12px; }
#fieldSummary button + button { background:#e1e9e0; }
#fieldSummary button:disabled { background:transparent; color:#777d6b; }
#fieldSummary svg { color:#8a7238; }
#quickWater svg { color:#598078; }

@media(orientation:portrait) {
  .scene { --field-left:6%; --field-width:88%; --field-top:43%; --field-height:27.2%; }
  .farm-sign { padding:6px 9px; border-radius:10px; column-gap:4px; }
  .farm-crest { width:clamp(22px,7vw,37px); }
  .sign-name h1 { font-size:clamp(18px,5vw,33px); letter-spacing:.045em; }
  .almanac { min-height:43px; padding:5px 10px; gap:5px; }
  .station { --size:clamp(43px,12vw,80px); min-height:32px; }
  .station .nameplate { font-size:clamp(12px,3vw,15px); padding:4px 6px; }
  .station.kitchen { left:9.7%; top:33.5%; }
  .station.barn { left:80%; top:29.5%; }
  .station.market { left:29%; top:39.5%; }
  .station.coop { left:87%; top:39.8%; }
  .station.post { left:56.5%; top:30.1%; width:max-content; gap:2px; }
  .station.post .nameplate,.station.post .order-badge { flex:none; white-space:nowrap; }
  .station.post .order-badge { margin:0; }
  .station.riverbank { left:68%; top:80.2%; }
  .station:is(.market,.coop) .object {
    display:block; position:absolute; bottom:calc(100% - 15px); left:50%;
    width:clamp(42px,11.5vw,86px); transform:translateX(-50%); filter:drop-shadow(0 1px 1px #4b473026);
  }
  .hen { left:72.5%; top:33.3%; width:clamp(29px,7.8vw,51px); }
  .station .order-badge,.station .nest-badge { font-size:9px; padding:3px; }
  .water-float { left:91%; top:77.5%; }
  .next { padding:10px 15px; font-size:16px; }
  #fieldSummary { top:calc(var(--field-top) + var(--field-height) + 4px); bottom:auto; left:var(--field-left); transform:none; }
}
@media(orientation:portrait) and (max-height:690px) {
  .station.riverbank { left:60%; top:77.4%; width:44px; min-height:36px; pointer-events:auto; }
}
@media(orientation:portrait) and (max-width:345px) {
  .farm-sign { padding:6px; gap:3px; } .farm-crest { width:22px; }
  .almanac { gap:4px; padding-inline:7px; }
}
@media(orientation:landscape) and (max-height:580px) {
  .scene { --field-left:22%; --field-width:49%; --field-top:39%; --field-height:34%; }
  .farm-sign { padding:4px 10px; } .farm-crest { width:28px; } .sign-name h1 { font-size:22px; }
  .almanac { min-height:36px; padding:4px 8px; } .utility { width:29px;height:29px; }
  .station { min-height:27px; } .station .nameplate { padding:3px 7px; font-size:12px; }
  .next { padding:8px 12px; font-size:14px; }
  #fieldSummary { bottom:calc(100% - var(--field-top) + 2px); left:52.5%; transform:translateX(-50%); }
}
