/* The painting is a 1672 × 941 stage. The locations are placed on the
   illustrated objects themselves, so the view stays clear between actions. */
.folio-journal-actions { display:none; }
#panel[data-panel="journal"]:not([data-choosing-place]) .folio-journal-actions {
  display:flex; flex-wrap:wrap; gap:7px; margin:1px 0 14px;
}
.folio-journal-actions #fieldSummary,
.folio-journal-actions .utilities {
  position:static; display:flex; flex-wrap:wrap; align-items:center; gap:5px;
  transform:none; padding:0; border:none; box-shadow:none; background:none; margin:0;
}
.folio-journal-actions #fieldSummary button,
.folio-journal-actions .utilities .utility {
  display:inline-flex; align-items:center; justify-content:center; flex:none;
  gap:4px; height:34px; width:auto; padding:5px 8px; margin:0;
  border:1px solid #b7b99d; border-radius:6px; background:#f5f1df;
  color:#3c523e; font:600 13px/1.2 var(--font);
}
.folio-journal-actions #fieldSummary button:disabled { opacity:.6; }
.folio-journal-actions .utilities svg { width:14px;height:14px; }
.folio-journal-actions .utilities [hidden] { display:none; }
#restartDialog {
  box-sizing:border-box;width:min(350px,calc(100% - 32px));max-height:90%;overflow:auto;
  margin:auto;padding:22px;border:1px solid #aaa78b;border-radius:14px;
  background:#faf6e9;color:#344b36;box-shadow:0 8px 32px #20291f44;
}
#restartDialog::backdrop {background:#2835266b}
#restartDialog h2 {margin:0;font:700 22px/1.4 var(--book),serif}
#restartDialog p {margin:12px 0 18px;font:15px/1.7 var(--font)}
#restartError {color:#96472d}
#restartError:empty {display:none}
.restart-actions {display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.restart-actions button {padding:8px 12px;min-height:42px;border:1px solid #bbb99e;border-radius:7px;background:#f4efde;color:#405742;font:600 15px/1.3 var(--font)}
#confirmRestart {background:#4c664d;color:#fffaf0;border-color:#4c664d}
.folio-landscape #save[data-saved="true"] { display:none; }
.folio-landscape .map-shade { box-shadow:none; }
.folio-landscape #viewport:not([data-action-message]) .dock-hud .hint {
  opacity:0; pointer-events:none; visibility:hidden;
}
.folio-landscape #viewport[data-action-message]:not([data-panel]) .dock-hud .hint {
  opacity:1; visibility:visible;
}
@media(orientation:landscape) {
  html,body { background:#364937; }
  body.folio-landscape { display:grid; place-items:center; position:relative; isolation:isolate; }
  body.folio-landscape::before {
    content:""; position:fixed; inset:-30px; pointer-events:none;
    background:linear-gradient(#273b3052,#273b3052),url('art/folio-scenery.webp?v=9') center / cover;
    filter:blur(26px); z-index:-1;
  }
  body.folio-landscape #viewport {
    width:min(100vw,177.6833156dvh); height:min(100dvh,56.2799043vw);
    container-type:size; transform:translateZ(0);
    box-shadow:0 0 30px #182f2a3b;
  }
  .folio-landscape #scene {
    background:url('art/folio-scenery.webp?v=9') center / 100% 100% no-repeat;
    --field-top:33.2%; --field-height:43.35%; --field-left:19.2%; --field-width:60.4%;
  }
  .folio-landscape #scene .farm-life { display:none; }
  .folio-landscape #scene .hen {
    animation:none; background:transparent; left:8.6%; top:57.1%; height:6.9%; width:5.5%; z-index:2;
  }
  .folio-landscape #scene .hen img { visibility:hidden; }
  .folio-landscape .locations .station {
    display:flex; flex-direction:row; position:absolute; transform:none;
    align-items:flex-end; justify-content:center; width:var(--hit-w); height:var(--hit-h);
    min-height:0; padding:0; border:0; background:none; box-shadow:none; pointer-events:auto;
    top:var(--hit-y); left:var(--hit-x); cursor:pointer; touch-action:manipulation;
  }
  .folio-landscape .station.market { --hit-x:16.6%; --hit-y:14.8%; --hit-w:16%; --hit-h:17%; }
  .folio-landscape .station.barn { --hit-x:58.7%; --hit-y:12.8%; --hit-w:17%; --hit-h:16.9%; }
  .folio-landscape .station.coop { --hit-x:3.95%; --hit-y:49.9%; --hit-w:10.7%; --hit-h:9.2%; }
  .folio-landscape .station.kitchen { --hit-x:2.0%; --hit-y:30%; --hit-w:11.9%; --hit-h:16.9%; }
  .folio-landscape .station.post { --hit-x:48.8%; --hit-y:18.9%; --hit-w:6.1%; --hit-h:9.5%; }
  .folio-landscape .station.riverbank { --hit-x:91.15%; --hit-y:36.8%; --hit-w:8.45%; --hit-h:19.2%; }
  .folio-landscape .station .object { display:none; }
  .folio-landscape .station :is(.nameplate,.nest-badge,.order-badge) {
    opacity:0; transition:opacity .13s ease-out; pointer-events:none;
  }
  .folio-landscape .station:focus-visible :is(.nameplate,.nest-badge,.order-badge) { opacity:1; }
  @media(hover:hover) {
    .folio-landscape .station:hover :is(.nameplate,.nest-badge,.order-badge) { opacity:1; }
  }
  .folio-landscape .water-float { left:96.1%; top:56.25%; }
  .folio-landscape #viewport.close-up .water-float { left:96.1%; }
  .folio-landscape .inset-menu { max-height:68%; }
  .folio-landscape #viewport.close-up .locations { pointer-events:none; }
}
