#game .scene-hotspots button.waypoint {
  pointer-events: auto;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  padding: 4px 5px 4px 12px;
  background: transparent url("assets/interface/willow-sign.webp") center / 100% 100% no-repeat;
  color: #284433;
  font: 900 12px/1.2 "Microsoft JhengHei",system-ui,sans-serif;
  text-shadow: 0 1px 0 #fcf0d6;
  filter: drop-shadow(0 3px 4px #1d3327a0);
}
#game .scene-hotspots button.waypoint span { display: block; }
#game .scene-hotspots button.waypoint span::after { content: " →"; }
#game .scene-hotspots button.waypoint[data-direction="left"] span::after { content: ""; }
#game .scene-hotspots button.waypoint[data-direction="left"] span::before { content: "← "; }
#game #menus > .menu-journal > header,
#game #menus > :is(.menu-debrief,.menu-prepare,.menu-craft,.menu-map) > header {
  min-height: 60px;
  background: var(--route-page) url("assets/interface/willow-sign.webp") 8% 49% / min(71%,450px) 118% no-repeat !important;
  border: 0 !important;
}
#game #menus > .menu-journal > .menu-body {
  background-color: #d8bb85 !important;
  background-image:
    linear-gradient(90deg,#f7ebcf00 6%,#f8edcfde 15% 86%,#f7ebcf00 94%),
    url("assets/interface/journey-book.webp") !important;
  background-size: 100% 100%, 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding-inline: clamp(25px, 9%, 88px) !important;
}
#game #menus > .menu-journal .sheet-chapters {
  background: #d8bc85 url("assets/interface/journey-book.webp") center 8% / 100% 310% no-repeat !important;
}
#game #menus > .menu-journal :is(.section-tabs,.sheet-chapters) [role="tab"] {
  min-height: 44px;
}
#game .journey-reward {
  position: relative;
  display: grid;
  grid-template-columns: minmax(125px,.65fr) 1.35fr;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
  padding: 8px 10px 16px;
  border-bottom: 1px dashed #b8a16a;
}
#game .journey-letter {
  position: relative;
  min-height: 128px;
  display: grid;
  align-items: end;
  justify-items: center;
  isolation: isolate;
  perspective: 400px;
}
#game .journey-letter > img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: memory-arrives 800ms cubic-bezier(.12,.75,.2,1.16) both;
  filter: drop-shadow(0 5px 7px #37513172);
}
#game .journey-letter > div {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 12px;
  margin-top: 5px;
  color: #294239;
  border-radius: 4px;
  background: #f6efd8ed;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
}
#game .journey-letter span { color: #52684e; font-size: 12px; }
#game .journey-loot { display: flex; flex-wrap: wrap; gap: 8px 10px; }
#game .journey-drop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: #304437;
  font-size: 13px;
  animation: reward-pocket 520ms 160ms cubic-bezier(.17,.78,.28,1.12) both;
}
#game .journey-drop:nth-child(2n) { animation-delay: 250ms; }
#game .journey-drop:nth-child(3n) { animation-delay: 340ms; }
#game .journey-drop :is(img,svg) { width: 29px; height: 29px; object-fit: contain; }
@keyframes memory-arrives {
  from { transform: translateY(28%) rotate(-13deg) scale(.7); opacity: 0; }
  to { transform: translateY(0) rotate(0) scale(1); opacity: 1; }
}
@keyframes reward-pocket {
  from { transform: translate(-36px,16px) scale(.5); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (max-width: 430px) {
  #game #menus > .menu-journal > .menu-body {
    background-size: 100% 100%, 114% 100% !important;
    padding-inline: 23px !important;
  }
  #game .journey-reward { grid-template-columns: minmax(101px,.75fr) 1.25fr; }
  #game .journey-loot { gap: 3px 5px; }
  #game .journey-letter { min-height: 102px; }
}
@media (prefers-reduced-motion: reduce) {
  #game :is(.journey-letter > img,.journey-drop) { animation: none !important; }
}
#game[data-reduce-motion="true"] :is(.journey-letter > img,.journey-drop) { animation: none !important; }

#game .garden-dock > button {
  min-width: 0;
  min-height: 54px;
  height: auto;
}
#game .garden-dock > button > span,
#game .garden-dock .garden-depart strong,
#game .scene-hotspots .waypoint > span {
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
#game .garden-dock .garden-depart {
  color: #183a2e;
  background: #e6ecce !important;
}
#game #menus .voyage-route :is(.button,.route-back,.section-tabs [role="tab"],.sheet-chapters [role="tab"]) {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.28;
}
#game #menus .voyage-route :is(.section-tabs,.sheet-chapters) [role="tab"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 3px;
}
@media (max-width: 480px) {
  #game .garden-dock { grid-template-columns: repeat(4,minmax(0,1fr)); }
  #game .garden-dock > button { padding-inline: 3px; text-align: center; }
  #game .garden-dock .garden-depart { border-radius: 6px; }
}

#game:has(> #loading) > .scene-hotspots { visibility: hidden; }
#game .scene-hotspots button.waypoint {
  background: transparent url("assets/interface/willow-sign.webp") center / 100% 100% no-repeat !important;
}
#game .scene-hotspots button.waypoint > span {
  display: inline;
  position: static;
  inset: auto;
  transform: none;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #284433;
  white-space: nowrap;
  overflow-wrap: normal;
  text-wrap: nowrap;
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 1px 0 #fcf0d6;
}
#game .scene-hotspots button.waypoint > span::before {
  display: inline;
  width: auto;
  height: auto;
  margin: 0;
  transform: none;
  background: none;
}

@media (max-width: 600px) {
  #game #menus .menu-craft .recipe-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 2px 0 4px;
    overflow: visible;
  }
  #game #menus .menu-craft .recipe-tile {
    width: 100%;
    min-width: 0;
    min-height: 71px;
    gap: 2px;
    padding: 4px 2px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #game #menus .menu-craft .recipe-tile > .painted-icon {
    width: 31px;
    height: 31px;
    flex: none;
  }
  #game #menus .menu-craft .recipe-tile b {
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.2;
  }
  #game #menus .menu-craft .recipe-tile small {
    font-size: 11px;
    line-height: 1.15;
  }
}
@media (max-width: 480px) {
  #game #menus > .menu-journal > .sheet-chapters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-inline: 6px !important;
    overflow: visible;
  }
  #game #menus > .menu-journal > .sheet-chapters [role="tab"] {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 49px;
    padding: 4px 3px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
  #game #menus > .menu-journal > .sheet-chapters .journey-action {
    --object-size: 16px;
  }
}

/* The five illustrated destinations share the field journal, but each has its own scene. */
#game #menus > .voyage-route.game-dialog.illustrated-folio {
  --sheet-gutter:clamp(16px,3.6vw,34px);
  --route-page:#f8f0dd;
  inset:0; margin:auto; padding:10px!important;
  width:min(92%,840px); height:fit-content; max-height:calc(100% - 20px);
  background:transparent!important; overflow:hidden;
  border:0!important; filter:drop-shadow(0 6px 12px #14251e66);
}
#game #menus > .illustrated-folio.game-dialog::before {
  content:""!important; display:block!important; position:absolute; inset:0; z-index:-1;
  width:auto;height:auto;pointer-events:none; transform:none; opacity:1;
  background:transparent; border:0;
  border-image:url("assets/postbook/field-page.webp") 55 fill / 23px;
}
#game #menus > .illustrated-folio.menu-map {--folio-scene:url("assets/render/chart-map.webp");--folio-position:50% 48%}
#game #menus > .illustrated-folio.menu-journal {--folio-scene:url("assets/interface/letters.webp");--folio-position:50% 54%}
#game #menus > .illustrated-folio.menu-craft {--folio-scene:url("assets/interface/workbench.webp");--folio-position:65% 48%}
#game #menus > .illustrated-folio.menu-pet {--folio-scene:url("assets/interface/companion.webp");--folio-position:50% 44%}
#game #menus > .illustrated-folio > header {
  width:100%;min-height:clamp(76px,14dvh,125px);flex-shrink:0;
  align-items:center;gap:12px;padding:12px var(--sheet-gutter)!important;
  background:linear-gradient(95deg,#122c2be8 0%,#153631b0 31%,#18332b13 66%),var(--folio-scene,url("assets/render/home-dawn.webp")) var(--folio-position,50% 53%)/cover no-repeat!important;
  border:none!important;border-radius:9px 15px 27px 4px!important;
}
#game #menus > .illustrated-folio > header h2,
#game #menus > .illustrated-folio > header .eyebrow {color:#fff8e8!important;background:transparent!important;text-shadow:0 1px 3px #162c24!important}
#game #menus > .illustrated-folio > header .eyebrow {margin:0;font:650 13px/1.4 system-ui,sans-serif}
#game #menus > .illustrated-folio .folio-heading {min-width:0}
#game #menus > .illustrated-folio > .menu-body,
#game #menus > .illustrated-folio > .voyage-decision,
#game #menus > .illustrated-folio > .sheet-chapters {
  width:100%;background:transparent!important;box-shadow:none!important;border:none!important;
}
#game #menus > .illustrated-folio > .menu-body {
  flex:0 1 auto;min-height:0;padding:clamp(12px,2vw,22px) var(--sheet-gutter)!important;
}
#game #menus > .illustrated-folio > .sheet-chapters {
  gap:3px;align-items:stretch;min-height:44px;padding:3px var(--sheet-gutter) 0!important;
}
#game #menus > .illustrated-folio > .sheet-chapters [role=tab] {
  position:relative;color:#435444!important;background:transparent!important;border:0!important;box-shadow:none!important;
  min-width:0;min-height:44px;line-height:1.28;text-shadow:none!important;
}
#game #menus > .illustrated-folio > .sheet-chapters [aria-selected=true] {color:#183f30!important;font-weight:800}
#game #menus > .illustrated-folio > .sheet-chapters [aria-selected=true]::after {
  content:"";display:block;position:absolute;inset:auto 22% 2px;height:3px;background:#976a35;border-radius:50%;
}
#game #menus > .illustrated-folio > .voyage-decision {padding:6px var(--sheet-gutter) 10px!important}
#game #menus > .illustrated-folio .plan-selector {gap:clamp(4px,2vw,22px);margin:0 auto 10px;align-items:stretch}
#game #menus > .illustrated-folio .plan-selector button {
  display:grid;justify-items:center;align-content:center;gap:4px;min-height:86px;
  background:transparent!important;box-shadow:none!important;border:0!important;color:#273e34!important;
}
#game #menus > .illustrated-folio .plan-selector button .painted-icon {width:clamp(36px,6vw,62px);height:clamp(36px,6vw,62px)}
#game #menus > .illustrated-folio .plan-selector button[aria-pressed=true] {
  background:radial-gradient(ellipse,#c6d5a9b5,transparent 72%)!important;box-shadow:inset 0 -3px #64805d!important;
}
#game #menus > .illustrated-folio .plan-consequence {background:#e7eddd!important;color:#294a37!important}
#game #menus > .illustrated-folio .points-banner {display:flex;align-items:center;gap:12px;padding:3px 0 12px;color:#294334!important}
#game #menus > .illustrated-folio .points-banner b,
#game #menus > .illustrated-folio .points-banner strong {display:inline;color:#184432!important;font-size:clamp(18px,2.8vw,23px);line-height:1.35}
#game #menus > .illustrated-folio .points-banner span:not(.painted-icon) {display:block;color:#494f40!important;line-height:1.5}
#game #menus > .illustrated-folio .talent-paths {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2vw,26px);margin:5px 0 16px}
#game #menus > .illustrated-folio .talent-card {
  display:grid;grid-template-rows:65px 1fr auto;align-items:start;justify-items:center;gap:8px;
  min-width:0;margin:0;padding:10px 4px!important;text-align:center;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
#game #menus > .illustrated-folio .talent-card>.painted-icon {width:60px;height:60px;align-self:center}
#game #menus > .illustrated-folio .talent-card h3 {margin:0 0 4px;line-height:1.25;color:#234635}
#game #menus > .illustrated-folio .talent-rank {color:#64533b;font:650 14px/1.3 system-ui,sans-serif;white-space:nowrap}
#game #menus > .illustrated-folio .talent-card p {font-size:15px;line-height:1.5;margin:0;color:#37483b}
#game #menus > .illustrated-folio .talent-card button {min-height:44px;min-width:76px}
#game #menus > .illustrated-folio .departure-stats {display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;margin:12px 0}
#game #menus > .illustrated-folio .departure-stats>span {display:inline-flex;align-items:baseline;gap:7px;background:transparent!important;padding:0}
#game #menus > .illustrated-folio .cost-progress {display:flex;flex-wrap:wrap;gap:10px 20px;margin:12px 0}
#game #menus > .illustrated-folio .cost-progress>div {
  flex:1 1 133px;display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-areas:"icon label" "icon count";
  align-items:center;gap:0 8px;padding:4px 5px 10px!important;min-width:0;background:transparent!important;border:0!important;box-shadow:none!important;
}
#game #menus > .illustrated-folio .cost-progress .painted-icon {grid-area:icon;width:32px;height:32px}
#game #menus > .illustrated-folio .cost-progress span:not(.painted-icon) {grid-area:label}
#game #menus > .illustrated-folio .cost-progress b {grid-area:count;white-space:nowrap;font:750 16px/1.3 system-ui,sans-serif;font-variant-numeric:tabular-nums}
#game #menus > .illustrated-folio .cost-progress i {bottom:0}
#game #menus > .illustrated-folio .recipe-rail {
  display:grid;align-self:start;align-content:start;grid-template-columns:repeat(2,minmax(0,1fr));
  max-height:none;height:auto;overflow:visible;min-width:0;gap:5px;
}
#game #menus > .illustrated-folio .workbench-layout {display:grid;grid-template-columns:minmax(145px,28%) minmax(0,1fr);align-items:start;gap:clamp(10px,2.5vw,24px)}
#game #menus > .illustrated-folio .recipe-tile {width:100%;min-width:0;min-height:64px;gap:2px;padding:5px 2px!important;background:transparent!important;box-shadow:none!important}
#game #menus > .illustrated-folio .recipe-tile[aria-pressed=true] {background:#dee7d2!important;box-shadow:inset 0 -3px #4e6c4e!important}
#game #menus > .illustrated-folio .recipe-tile .painted-icon {width:38px;height:38px}
#game #menus > .illustrated-folio .recipe-tile b {font-size:14px}
#game #menus > .illustrated-folio .forge-heading>.painted-icon {width:clamp(62px,10vw,96px);height:clamp(62px,10vw,96px)}
@media(max-width:600px) {
  #game #menus > .voyage-route.game-dialog.illustrated-folio {width:calc(100% - 8px);max-height:calc(100% - 8px);padding:12px 12px 17px!important;--sheet-gutter:10px}
  #game #menus > .illustrated-folio .talent-paths {grid-template-columns:1fr;gap:4px}
  #game #menus > .illustrated-folio .talent-card {grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;justify-items:start;text-align:start;gap:9px;padding:7px 0!important}
  #game #menus > .illustrated-folio .talent-card>.painted-icon {width:44px;height:44px}
  #game #menus > .illustrated-folio .talent-card button {min-width:48px;padding-inline:8px!important}
  #game #menus > .illustrated-folio .workbench-layout {grid-template-columns:minmax(0,1fr)}
  #game #menus > .illustrated-folio .recipe-rail {grid-template-columns:repeat(4,minmax(0,1fr))}
  #game #menus > .illustrated-folio .plan-selector button {min-height:74px}
}
@media(max-height:480px) and (orientation:landscape) {
  #game #menus > .voyage-route.game-dialog.illustrated-folio {width:min(98%,920px);max-height:calc(100% - 4px);padding:12px 14px 20px!important}
  #game #menus > .illustrated-folio > header {min-height:49px;padding-block:3px!important}
  #game #menus > .illustrated-folio > .sheet-chapters {padding-top:0!important}
  #game #menus > .illustrated-folio > .menu-body {padding-block:8px!important}
  #game #menus > .illustrated-folio > .voyage-decision {padding-block:3px!important}
}

/* On a large screen the drawing and the interactive page sit on opposite sides of the binding. */
@media(min-width:860px) and (min-height:540px) {
  #game #menus > .voyage-route.game-dialog.illustrated-folio {
    display:grid;grid-template-columns:12% 34% 15% 29% 10%;grid-template-rows:auto minmax(0,1fr) auto auto;
    column-gap:0; width:min(96%,1060px);height:min(84dvh,700px);max-height:calc(100% - 12px);
    padding:70px 0 86px!important;
    --sheet-gutter:8px;
  }
  #game #menus > .illustrated-folio.game-dialog::before {
    background:transparent;border-image:url("assets/interface/journey-book.webp") 97 67 157 68 fill / 60px 54px 64px 48px;
  }
  #game #menus > .illustrated-folio > header {
    grid-column:2;grid-row:1/-1;display:flex;flex-flow:column;align-items:flex-start;justify-content:space-between;
    isolation:isolate;position:relative;overflow:visible;min-width:0;min-height:0;padding:0 2px 20px!important;
    background:transparent!important;border-radius:0!important;max-width:100%;
  }
  #game #menus > .illustrated-folio > header::before {
    content:""!important;display:block!important;position:absolute;z-index:-1;inset:6% -4% 15%;width:auto;height:auto;
    background:var(--folio-scene,url("assets/render/home-dawn.webp")) var(--folio-position,center) / cover no-repeat!important;
    mask-image:linear-gradient(to bottom,transparent,black 8% 88%,transparent),linear-gradient(to right,transparent,black 5% 95%,transparent);
    mask-composite:intersect;pointer-events:none;
  }
  #game #menus > .illustrated-folio > header h2,
  #game #menus > .illustrated-folio > header .eyebrow {
    color:#253a2b!important;text-shadow:none!important;flex:0;position:relative;
  }
  #game #menus > .illustrated-folio > header h2 {font-size:clamp(23px,3.2vw,36px)!important}
  #game #menus > .illustrated-folio > header .eyebrow {color:#634627!important}
  #game #menus > .illustrated-folio > .sheet-chapters {grid-column:4;grid-row:1;padding-inline:0!important}
  #game #menus > .illustrated-folio > .menu-body {grid-column:4;grid-row:2;padding:10px 2px 12px!important;scrollbar-gutter:stable}
  #game #menus > .illustrated-folio > .menu-feedback {grid-column:4;grid-row:3}
  #game #menus > .illustrated-folio > .voyage-decision {grid-column:4;grid-row:4;padding:4px 2px!important}
  #game #menus > .illustrated-folio .talent-paths {grid-template-columns:1fr;gap:5px}
  #game #menus > .illustrated-folio .talent-card {grid-template-columns:42px minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;justify-items:start;text-align:left;gap:6px;padding:6px 0!important}
  #game #menus > .illustrated-folio .talent-card>.painted-icon {width:40px;height:40px}
  #game #menus > .illustrated-folio .talent-card button {min-width:46px;padding-inline:7px!important}
  #game #menus > .illustrated-folio .workbench-layout {grid-template-columns:1fr;gap:9px}
  #game #menus > .illustrated-folio .recipe-rail {grid-template-columns:repeat(4,minmax(0,1fr))}
  #game #menus > .illustrated-folio .plan-selector {gap:4px}
  #game #menus > .illustrated-folio .plan-selector button {min-height:76px;padding-inline:4px!important}
  #game #menus > .illustrated-folio .plan-selector button .painted-icon {width:47px;height:47px}
}

#game #menus > .illustrated-folio .workbench-layout {grid-template-columns:minmax(0,1fr)}
#game #menus > .illustrated-folio .blueprint-book {min-width:0}
#game #menus > .illustrated-folio .blueprint-book summary {
  min-height:44px;padding:10px 8px;color:#294c39;font-weight:700;cursor:pointer;
}
#game #menus > .illustrated-folio .blueprint-book .recipe-rail {grid-template-columns:repeat(4,minmax(0,1fr))}
#game #menus > .illustrated-folio .blueprint-book summary::after {content:" ▾";color:#536543}
#game #menus > .illustrated-folio .blueprint-book[open] summary::after {content:" ▴"}
@media(min-width:860px) and (min-height:540px) {
  #game #menus > .menu-journal.illustrated-folio > .sheet-chapters {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0
  }
  #game #menus > .menu-journal.illustrated-folio > .sheet-chapters [role=tab] {padding:4px!important}
  #game #menus > .menu-journal.illustrated-folio .chapter-thread {grid-template-columns:1fr;gap:5px}
  #game #menus > .menu-journal.illustrated-folio .letter-fold {grid-template-columns:minmax(0,1fr);padding:8px}
  #game #menus > .menu-journal.illustrated-folio .letter-fold > .journey-partners {grid-row:auto}
  #game #menus > .menu-journal.illustrated-folio .letter-fold :is(.garden-letter-keepsake,.route-stamp) {
    grid-template-columns:minmax(42px,25%) minmax(0,1fr);gap:8px
  }
  #game #menus > .illustrated-folio .preparation-links button {
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;white-space:nowrap
  }
}
