@font-face {
  font-family: CampPixel;
  src: url("assets/VT323-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #fdf0c9;
  --muted: #b4d1be;
  --navy: #102a32;
  --deep: #101a2b;
  --gold: #eac26b;
  --rim: #9a6239;
  --panel: #17363b;
  --wood: url("assets/window-skin.png");
  --objects: url("assets/object-atlas.png");
  --props: url("assets/trail-props.png");
  font-family: CampPixel, "Courier New", monospace;
  color: var(--ink);
  background: #091c25;
  font-size: 24px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  touch-action: manipulation;
  background: #24474c;
  border: 3px solid #0b1b2d;
  box-shadow:
    inset 0 3px #709685,
    inset 3px 0 #496e68,
    inset -3px -3px #122d36;
  min-height: 44px;
  padding: 7px 15px;
  border-radius: 0;
  line-height: 1.05;
  text-shadow: 1px 2px #10212c;
  letter-spacing: 0.2px;
}
button:hover {
  background: #37605a;
}
button:active {
  transform: translateY(2px);
}
button[aria-pressed="true"] {
  background: #785020;
  box-shadow:
    inset 0 3px #ffdc85,
    inset 3px 0 #e0b05c,
    inset -3px -3px #66432b;
  color: #fff5d3;
}
button:disabled {
  opacity: 0.46;
  cursor: default;
  transform: none;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #fff1a8;
  outline-offset: 4px;
}
input,
select {
  background: #10272d;
  border: 3px solid #6b9b83;
  min-height: 44px;
  padding: 6px 10px;
}
select {
  font-size: 21px;
}
a {
  color: #fff1a8;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 20px;
  top: 15px;
  z-index: 90;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  clip-path: none;
  width: auto;
  height: auto;
  padding: 12px;
  background: #102a32;
}
.panel {
  border: 14px solid transparent;
  border-image-source: var(--wood);
  border-image-slice: 180;
  border-image-width: 14px;
  border-image-repeat: stretch;
  background: var(--panel);
  padding: 10px;
  image-rendering: pixelated;
  box-shadow: 0 5px #061320;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
h1 {
  font-size: 43px;
  letter-spacing: 1px;
  line-height: 1;
  color: #ffe39b;
  text-shadow: 3px 3px #291d32;
}
h2 {
  font-size: 33px;
  line-height: 1.05;
  color: #ffe39b;
}
h3 {
  font-size: 30px;
}
.game-shell {
  max-width: 1480px;
  margin: 16px auto;
  padding: 0 16px;
}
.top-hud {
  display: grid;
  grid-template-columns: 230px 1fr 160px;
  gap: 18px;
  align-items: center;
  min-height: 100px;
  padding: 7px 17px;
  margin-bottom: 14px;
}
.title-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.playtest-tag {
  font-size: 15px;
  letter-spacing: 1.2px;
  color: #a9cfb6;
}
.main-nav {
  display: flex;
  gap: 7px;
  justify-content: center;
}
.main-nav button {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 5px 12px;
  font-size: 24px;
  min-height: 58px;
}
.main-nav .item {
  width: 39px;
  height: 39px;
}
.hud-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 8px;
  align-items: center;
}
.hud-tools > button {
  padding: 2px 7px;
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 20px;
}
.hud-tools > button .item {
  width: 30px;
  height: 30px;
}
.stamp-counter {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 28px;
}
.stamp-counter .item {
  width: 37px;
  height: 37px;
}
.save-status {
  grid-column: 1/-1;
  text-align: right;
  font-size: 15px;
  color: #c1d8b8;
  margin-top: 5px;
}
.item {
  display: inline-block;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  background-image: var(--objects);
  background-size: 400% 300%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  vertical-align: middle;
}
.i-food {
  background-position: 0 0;
}
.i-ball {
  background-position: 33.333333% 0;
}
.i-brush {
  background-position: 66.666667% 0;
}
.i-bed {
  background-position: 100% 0;
}
.i-map {
  background-position: 0 50%;
}
.i-bag {
  background-position: 33.333333% 50%;
}
.i-book {
  background-position: 66.666667% 50%;
}
.i-sword {
  background-position: 100% 50%;
}
.i-planter {
  background-position: 0 100%;
}
.i-lantern {
  background-position: 33.333333% 100%;
}
.i-pennants {
  background-position: 66.666667% 100%;
}
.i-badge {
  background-position: 100% 100%;
}
.game-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.section-label {
  font-size: 20px;
  letter-spacing: 1px;
  color: #b8d7b1;
  margin-bottom: 9px;
}
.party-panel {
  padding: 11px 9px;
}
.party-list {
  display: grid;
  gap: 7px;
}
.party-button {
  display: grid;
  grid-template-columns: 57px 1fr;
  align-items: center;
  text-align: left;
  padding: 3px 8px 3px 2px;
  min-height: 67px;
}
.party-button img {
  width: 57px;
  height: 57px;
  object-fit: contain;
  image-rendering: pixelated;
  grid-row: 1/3;
}
.party-button strong {
  font-size: 24px;
  font-weight: 400;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.party-button small {
  font-size: 17px;
  color: #d4e6bf;
}
.party-button[aria-pressed="true"] small {
  color: #fff0c5;
}
.friend-details {
  border-top: 2px solid #668075;
  margin-top: 18px;
  padding-top: 15px;
}
.friend-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.friend-heading h2 {
  font-size: 32px;
  overflow-wrap: anywhere;
}
.tiny-button {
  font-size: 19px;
  padding: 6px 10px;
  min-height: 38px;
}
.region-label {
  font-size: 17px;
  color: #b1d2b8;
  margin: 4px 0 14px;
}
.vitals {
  display: grid;
  gap: 12px;
}
.vital {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 2px 6px;
  align-items: center;
}
.vital > .item {
  grid-row: 1/3;
  width: 28px;
  height: 28px;
}
.vital-label {
  font-size: 20px;
}
.vital-value {
  font-size: 18px;
  color: #cee0bf;
}
.vital meter {
  grid-column: 2/4;
}
.vital meter,
meter {
  width: 100%;
  height: 10px;
  appearance: none;
  border: 0;
  background: #10232c;
  border-radius: 0;
}
.vital meter::-webkit-meter-bar,
meter::-webkit-meter-bar {
  border: 2px solid #091824;
  background: #10232c;
  height: 10px;
  border-radius: 0;
}
.vital meter::-webkit-meter-optimum-value,
meter::-webkit-meter-optimum-value {
  background: #97cd63;
  border-radius: 0;
}
.vital meter::-moz-meter-bar,
meter::-moz-meter-bar {
  background: #97cd63;
}
.vital[data-stat="energy"] meter::-webkit-meter-optimum-value {
  background: #efd374;
}
.vital[data-stat="bond"] meter::-webkit-meter-optimum-value {
  background: #f3a0a3;
}
.pet-note {
  font-size: 19px;
  line-height: 1.12;
  color: #cce0c5;
  margin: 17px 0 12px;
  min-height: 40px;
}
.decor-open {
  width: 100%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 2px;
}
.decor-open .item {
  width: 35px;
  height: 35px;
}
.trail-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: #c2dfba;
}
.trail-progress > .item {
  width: 37px;
  height: 37px;
}
.trail-progress strong {
  display: block;
  font-size: 25px;
  font-weight: 400;
  color: #ffe39b;
}
.trail-progress > div > span {
  font-size: 17px;
}
.play-area {
  min-width: 0;
}
.world-frame {
  border: 5px solid #0a1625;
  box-shadow:
    0 0 0 3px #bb8644,
    0 7px #07151e;
  background: #10272b;
}
.world {
  position: relative;
  width: 100%;
  aspect-ratio: 1672/941;
  overflow: hidden;
  isolation: isolate;
}
.world-art {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  image-rendering: pixelated;
  z-index: -2;
}
.weather-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.world[data-weather="rain"] .weather-shade {
  background: #375d784d;
}
.world[data-weather="dusk"] .weather-shade {
  background: #1c235a6b;
}
.location-hud {
  position: absolute;
  z-index: 7;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}
.location-label {
  padding: 8px 13px;
  border: 3px solid #172537;
  background: #16323ce8;
  box-shadow: 2px 3px #2a1d32;
  color: #fff2b3;
  font-size: 23px;
  max-width: 75%;
}
.location-label > span {
  display: block;
}
.location-label small {
  display: block;
  font-size: 17px;
  color: #d0e3ba;
  margin-top: 2px;
}
.weather-label {
  pointer-events: auto;
}
.weather-label select {
  background: #16323ce8;
  border-color: #18332f;
  box-shadow: 2px 3px #2a1d32;
  max-width: 100px;
  font-size: 19px;
  padding: 4px 9px;
}
.ground {
  position: absolute;
  inset: 16% 10% 0;
  width: 80%;
  height: 80%;
  border: 0;
  box-shadow: none;
  background: transparent !important;
  cursor: crosshair;
  padding: 0;
  text-shadow: none;
  z-index: 0;
}
.ground:active {
  transform: none;
}
.actors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.actor {
  position: absolute;
  width: 17%;
  height: auto;
  aspect-ratio: 1;
  background: transparent !important;
  border: 0;
  box-shadow: none !important;
  padding: 0;
  transform: translate(-50%, -90%);
  min-height: 0;
  pointer-events: auto;
  transition:
    left 0.65s linear,
    top 0.65s linear;
  filter: drop-shadow(2px 3px 0 #122b3170);
}
.actor:active {
  transform: translate(-50%, -90%);
}
.actor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}
.actor-name {
  display: block;
  position: absolute;
  left: 50%;
  bottom: -17px;
  transform: translateX(-50%);
  padding: 3px 10px;
  background: #16323ce8;
  border: 2px solid #122332;
  color: #fff3cf;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1;
  text-shadow: 1px 1px #101a2b;
  max-width: 165%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.actor[aria-pressed="true"] .actor-name {
  border-color: #ffe59b;
  background: #355239;
}
.trail-landmark {
  position: absolute;
  width: 29%;
  aspect-ratio: 1;
  left: 55%;
  top: 29%;
  background-image: var(--props);
  background-size: 300% 100%;
  image-rendering: pixelated;
  z-index: 1;
  pointer-events: none;
}
.trail-landmark[data-stop="0"] {
  background-position: 0 0;
}
.trail-landmark[data-stop="1"] {
  background-position: 50% 0;
}
.trail-landmark[data-stop="2"] {
  background-position: 100% 0;
}
.camp-decoration {
  position: absolute;
  left: 24%;
  top: 58%;
  width: 11%;
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 2;
  background-size: 400% 300%;
}
.care-prop {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(2px 3px #10253266);
}
.route-stops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.route-stops button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  text-align: left;
  min-height: 68px;
  padding: 3px 8px;
}
.route-icon {
  display: block;
  flex-shrink: 0;
  width: 59px;
  height: 59px;
  background-image: var(--props);
  background-size: 300% 100%;
  image-rendering: pixelated;
}
.route-stops small {
  display: block;
  font-size: 17px;
  color: #cfe2bc;
}
.dialogue {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 103px;
  margin: 14px 0 10px;
  padding: 4px 10px;
}
.dialogue > img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.dialogue > div {
  min-width: 0;
}
.dialogue strong {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #ffe191;
  display: block;
  margin-bottom: 3px;
}
.dialogue p {
  font-size: 25px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.action-panel {
  padding: 3px 5px;
}
.commands {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.commands button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 25px;
  min-height: 104px;
  padding: 7px 3px;
}
.commands button > .item {
  width: 52px;
  height: 52px;
}
.commands small {
  font-size: 17px;
  color: #d6e6bc;
  line-height: 1;
}
.trail-commands {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.action-hint {
  color: #bad4b6;
  font-size: 18px;
  margin: 10px 4px 3px;
  text-align: center;
  line-height: 1.1;
  min-height: 20px;
}
.practice-welcome {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: min(450px, 73%);
  text-align: center;
  padding: 18px 12px;
  z-index: 8;
}
.practice-welcome > .item {
  width: 66px;
  height: 66px;
}
.practice-welcome h2 {
  font-size: 36px;
  margin: 4px 0 12px;
}
.practice-welcome p {
  font-size: 25px;
  line-height: 1.06;
  color: #e1edc6;
  margin-bottom: 16px;
}
.practice-welcome small {
  display: block;
  font-size: 19px;
  color: #c2d9b8;
  margin-top: 13px;
}
.practice-welcome > button {
  font-size: 28px;
  color: #ffe39b;
  padding: 11px 22px;
}
.combat-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.combat-hud {
  position: absolute;
  width: 35%;
  padding: 5px 7px;
  font-size: 20px;
  z-index: 7;
  pointer-events: auto;
}
.combat-hud > strong {
  display: block;
  font-weight: 400;
  font-size: 25px;
  color: #ffe39b;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}
.friend-hud {
  left: 3%;
  top: 21%;
}
.enemy-hud {
  right: 3%;
  top: 21%;
}
.combat-meter {
  display: grid;
  grid-template-columns: 22px 1fr 47px;
  align-items: center;
  gap: 5px;
  font-size: 19px;
  margin-top: 4px;
}
.combat-meter > span:last-child {
  text-align: right;
  font-size: 17px;
}
.intent-label {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 9px;
  padding-top: 6px;
  border-top: 2px solid #617f71;
  font-size: 18px;
}
.intent-label > strong {
  color: #ffe69e;
  font-weight: 400;
  font-size: 23px;
}
.battle-friend-art {
  position: absolute;
  width: 24%;
  height: auto;
  object-fit: contain;
  left: 19%;
  bottom: 7%;
  image-rendering: pixelated;
  filter: drop-shadow(3px 4px #122c3170);
}
.stump-sprite {
  position:absolute; width:22%; aspect-ratio:3/4; right:16%; bottom:8%;
  overflow:hidden; image-rendering:pixelated; filter:drop-shadow(3px 4px #122c3170);
}
.stump-atlas { position:absolute; width:400%; height:100%; max-width:none; top:0; left:0; image-rendering:pixelated; }
.stump-sprite[data-pose="0"] .stump-atlas { transform:translateX(0); }
.stump-sprite[data-pose="1"] .stump-atlas { transform:translateX(-25%); }
.stump-sprite[data-pose="2"] .stump-atlas { transform:translateX(-50%); }
.stump-sprite[data-pose="3"] .stump-atlas { transform:translateX(-75%); }
.stump-picture-state { pointer-events:auto; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; margin:10px 0; }
.stump-picture-state p { margin:0; font-size:23px; }
.stump-picture-state button { min-height:44px; flex-shrink:0; }
.practice-result {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 59%;
  transform: translate(-50%, -50%);
  width: 70%;
  text-align: center;
  padding: 12px;
  pointer-events: auto;
}
.practice-result > .item {
  width: 62px;
  height: 62px;
}
.practice-result > strong {
  font-size: 38px;
  font-weight: 400;
  color: #ffe39b;
  display: block;
}
.practice-result > span:not(.item) {
  display: block;
  font-size: 24px;
  margin: 7px 0 13px;
}
.practice-result > div {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.practice-log {
  font-size: 20px;
  color: #c4dcbc;
  margin: 12px 4px;
}
.practice-log summary {
  cursor: pointer;
  min-height: 36px;
  padding: 6px;
}
.practice-log ol {
  padding-left: 25px;
  font-size: 19px;
  line-height: 1.25;
}
.journal-view {
  min-height: 660px;
  padding: 15px 18px;
}
.journal-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 3px solid #577667;
}
.journal-heading > .item {
  width: 68px;
  height: 68px;
}
.journal-heading h2 {
  font-size: 39px;
}
.journal-heading .section-label {
  font-size: 18px;
  display: block;
}
.journal-heading > button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 23px;
}
.journal-heading > button > .item {
  width: 38px;
  height: 38px;
}
.journal-book {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 25px;
  min-height: 430px;
  padding: 25px 0;
}
.journal-portrait {
  text-align: center;
  padding: 15px 20px 15px 0;
  border-right: 3px solid #577667;
}
.journal-portrait > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
}
.journal-portrait h3 {
  font-size: 34px;
  overflow-wrap: anywhere;
  color: #ffe39b;
}
.journal-portrait > p {
  font-size: 23px;
  color: #c3dfb9;
  margin-top: 10px;
}
.journal-portrait > span {
  display: block;
  font-size: 19px;
  color: #efdaa1;
}
.journal-portrait > span > .item {
  width: 39px;
  height: 39px;
}
.journal-pages {
  padding: 5px 7px;
  max-height: 490px;
  overflow: auto;
}
.journal-pages ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.journal-pages li {
  padding: 13px 0;
  border-bottom: 2px solid #527063;
  font-size: 25px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.journal-pages li[data-kind="find"] {
  color: #ffe39b;
}
.journal-pages > p {
  font-size: 29px;
  line-height: 1.2;
  color: #c2ddbb;
  padding-top: 30px;
}
.journal-view > button {
  display: flex;
  align-items: center;
  gap: 10px;
}
.journal-view > button > .item {
  width: 37px;
  height: 37px;
}
.game-help {
  font-size: 18px;
  color: #b5cdb6;
  line-height: 1.1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 17px 4px 12px;
}
.game-help > span {
  color: #a3b9b0;
}
dialog.panel {
  width: min(620px, calc(100% - 30px));
  max-height: 90dvh;
  overflow: auto;
  margin: auto;
  padding: 20px 24px;
  box-shadow: 0 10px 0 #07151d;
}
dialog::backdrop {
  background: #071823cf;
}
dialog:modal {
  overscroll-behavior: contain;
}
html:has(dialog:modal) {
  overflow: hidden;
}
.close-form {
  float: right;
}
.close-form > button {
  font-size: 20px;
  min-height: 40px;
  padding: 6px 12px;
}
dialog h2 {
  font-size: 36px;
  margin: 4px 0 22px;
}
.menu-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  clear: both;
}
.menu-actions > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 22px;
  padding: 12px 4px;
}
.menu-note {
  font-size: 22px;
  line-height: 1.16;
  color: #c5dbbb;
  margin: 20px 0;
}
.load-label {
  display: block;
  font-size: 24px;
  color: #ffe39b;
  margin-bottom: 10px;
}
input[type="file"] {
  max-width: 100%;
  width: 100%;
  font-size: 20px;
  background: #112b32;
  min-height: 50px;
  padding: 8px;
}
input[type="file"]::file-selector-button {
  font: inherit;
  background: #375b52;
  color: #fff0c3;
  border: 2px solid #729e7d;
  padding: 5px;
}
#import-message {
  font-size: 22px;
  color: #ffe39b;
  margin: 16px 0;
  line-height: 1.16;
}
#import-preview p {
  font-size: 23px;
  line-height: 1.14;
  margin: 12px 0;
}
#import-preview small {
  display: block;
  font-size: 20px;
  color: #c2d9ba;
  margin-top: 9px;
}
#undo-import {
  font-size: 21px;
  margin-top: 10px;
}
.about-playtest {
  font-size: 22px;
  line-height: 1.2;
  border-top: 2px solid #577667;
  margin-top: 24px;
  padding-top: 16px;
}
.about-playtest summary {
  cursor: pointer;
  min-height: 44px;
  color: #ffe39b;
}
.about-playtest p {
  font-size: 21px;
  color: #c6dcbc;
  margin: 12px 0;
}
.decor-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.decor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 3px solid #65816b;
  background: #173b3d;
  padding: 10px 7px;
}
.decor-item > .item {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.decor-item h3 {
  font-size: 25px;
  min-height: 52px;
  color: #ffe39b;
}
.decor-item p {
  font-size: 20px;
  color: #c2d9ba;
  margin: 8px 0;
}
.decor-item button {
  font-size: 21px;
  margin-top: auto;
  padding: 9px 7px;
  width: 100%;
}
#decor-stamps {
  font-size: 24px;
  color: #ffe39b;
  margin-bottom: 20px;
}
#name-form label {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}
#nickname {
  width: 100%;
  font-size: 28px;
  min-height: 52px;
}
.name-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.name-actions button {
  font-size: 25px;
  padding: 10px 20px;
}
.quiet .actor {
  transition: none;
}
.quiet *,
.quiet *::before,
.quiet *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1600px) {
  .game-shell {
    margin: 24px auto;
  }
  .world {
    max-height: 675px;
  }
  .game-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
@media (max-width: 1150px) {
  .game-shell {
    padding: 0 11px;
    margin: 10px auto;
  }
  .top-hud {
    grid-template-columns: 200px 1fr 130px;
    gap: 8px;
    padding: 5px 8px;
  }
  .title-block h1 {
    font-size: 36px;
  }
  .playtest-tag {
    font-size: 13px;
  }
  .main-nav button {
    font-size: 22px;
    padding: 5px 7px;
    gap: 3px;
  }
  .main-nav .item {
    width: 32px;
    height: 32px;
  }
  .game-layout {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 10px;
  }
  .party-button {
    grid-template-columns: 48px 1fr;
    padding-right: 4px;
    min-height: 62px;
  }
  .party-button img {
    width: 48px;
    height: 48px;
  }
  .party-button strong {
    font-size: 23px;
    max-width: 110px;
  }
  .vital-label {
    font-size: 19px;
  }
  .vital-value {
    font-size: 17px;
  }
  .friend-heading h2 {
    font-size: 29px;
  }
  .location-label {
    font-size: 21px;
    padding: 5px 9px;
  }
  .location-label small {
    font-size: 16px;
  }
  .combat-hud {
    width: 40%;
    top: 23%;
    padding: 3px 5px;
    border-width: 10px;
    border-image-width: 10px;
  }
  .combat-hud > strong {
    font-size: 23px;
  }
  .intent-label {
    font-size: 16px;
  }
  .intent-label > strong {
    font-size: 21px;
  }
  .dialogue p {
    font-size: 24px;
  }
  .commands button {
    font-size: 23px;
    min-height: 97px;
  }
  .commands button > .item {
    width: 47px;
    height: 47px;
  }
  .battle-commands button {
    font-size: 20px;
  }
  .route-stops button {
    font-size: 20px;
  }
  .route-icon {
    width: 45px;
    height: 45px;
  }
  .journal-book {
    grid-template-columns: 170px 1fr;
  }
  .practice-welcome {
    padding: 10px;
    width: 78%;
  }
  .practice-welcome > .item {
    width: 44px;
    height: 44px;
  }
  .practice-welcome h2 {
    font-size: 30px;
    margin: 4px 0 9px;
  }
  .practice-welcome p {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .practice-welcome > button {
    font-size: 25px;
    min-height: 44px;
    padding: 7px 14px;
  }
  .practice-welcome small {
    font-size: 18px;
    margin-top: 8px;
  }
}
@media (max-width: 850px) {
  .top-hud {
    grid-template-columns: 1fr 130px;
    gap: 8px;
  }
  .main-nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: stretch;
    gap: 7px;
  }
  .main-nav button {
    flex: 1;
    justify-content: center;
    min-height: 51px;
    font-size: 24px;
  }
  .title-block {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  .title-block h1 {
    font-size: 38px;
  }
  .playtest-tag {
    font-size: 12px;
    max-width: 110px;
  }
  .hud-tools {
    grid-template-columns: 1fr 1fr;
  }
  .hud-tools > button {
    flex-direction: row;
    font-size: 20px;
    padding: 0 6px;
    min-height: 41px;
  }
  .hud-tools > button .item {
    width: 28px;
    height: 28px;
  }
  .stamp-counter {
    font-size: 25px;
  }
  .stamp-counter .item {
    width: 30px;
    height: 30px;
  }
  .save-status {
    font-size: 13px;
    margin-top: 0;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .party-panel {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 10px;
    padding: 5px 8px;
  }
  .party-panel > .section-label {
    display: none;
  }
  .party-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-column: 1;
    gap: 6px;
    align-self: start;
  }
  .party-button {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 3px 4px;
    gap: 0;
    min-height: 101px;
    min-width: 0;
  }
  .party-button img {
    width: 50px;
    height: 50px;
  }
  .party-button strong {
    font-size: 23px;
    width: 100%;
    max-width: 100%;
  }
  .party-button small {
    font-size: 16px;
  }
  .friend-details {
    grid-column: 2;
    grid-row: 1/3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 0;
    margin: 0;
    padding: 0;
  }
  .friend-heading {
    display: none;
  }
  .region-label {
    display: none;
  }
  .pet-note {
    display: none;
  }
  .vitals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
  }
  .vital {
    grid-template-columns: 18px 1fr auto;
    gap: 0 4px;
  }
  .vital > .item {
    width: 20px;
    height: 20px;
  }
  .vital-label {
    font-size: 17px;
  }
  .vital-value {
    font-size: 15px;
  }
  .vital meter {
    height: 8px;
  }
  .vital meter::-webkit-meter-bar {
    height: 8px;
  }
  .decor-open {
    grid-column: 1;
    font-size: 20px;
    min-height: 39px;
    padding: 2px;
    justify-self: start;
    width: auto;
    min-width: 170px;
  }
  .decor-open .item {
    width: 29px;
    height: 29px;
  }
  .trail-progress {
    display: none;
  }
  .world {
    aspect-ratio: 1672/941;
  }
  .world-frame {
    margin-top: 3px;
  }
  .journal-view {
    min-height: 550px;
  }
  .game-help {
    font-size: 17px;
    margin-top: 14px;
  }
}
@media (max-width: 550px) {
  .game-shell {
    padding: 0 8px;
    margin: 7px auto;
  }
  .panel {
    border-width: 10px;
    border-image-width: 10px;
    padding: 8px;
  }
  .top-hud {
    padding: 5px 6px;
    gap: 7px;
    grid-template-columns: 1fr 113px;
    margin-bottom: 10px;
  }
  .title-block {
    display: block;
  }
  .title-block h1 {
    font-size: 34px;
  }
  .playtest-tag {
    font-size: 11px;
    letter-spacing: 0.8px;
    margin-top: 4px;
    display: block;
    max-width: 100%;
  }
  .main-nav {
    gap: 4px;
  }
  .main-nav button {
    font-size: 20px;
    flex-direction: column;
    gap: 0;
    padding: 3px;
    min-height: 65px;
  }
  .main-nav .item {
    width: 31px;
    height: 31px;
  }
  .hud-tools {
    column-gap: 4px;
  }
  .stamp-counter {
    font-size: 25px;
    gap: 1px;
  }
  .stamp-counter .item {
    width: 27px;
    height: 27px;
  }
  .hud-tools > button {
    font-size: 18px;
    gap: 0;
    padding: 0 3px;
  }
  .hud-tools > button .item {
    width: 25px;
    height: 25px;
  }
  .save-status {
    font-size: 12px;
  }
  .game-layout {
    gap: 9px;
  }
  .party-panel {
    display: block;
    padding: 6px;
  }
  .party-list {
    gap: 4px;
  }
  .party-button {
    min-height: 84px;
    padding: 2px;
    line-height: 1.05;
  }
  .party-button img {
    width: 44px;
    height: 44px;
  }
  .party-button strong {
    font-size: 22px;
  }
  .party-button small {
    font-size: 14px;
  }
  .friend-details {
    padding-top: 8px;
    display: block;
  }
  .vitals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 9px;
  }
  .vital {
    grid-template-columns: 18px 1fr auto;
    gap: 1px 3px;
  }
  .vital-label {
    font-size: 16px;
  }
  .vital-value {
    font-size: 14px;
  }
  .decor-open {
    margin-top: 10px;
    min-height: 37px;
    font-size: 19px;
    width: 100%;
    padding: 2px;
  }
  .decor-open .item {
    width: 28px;
    height: 28px;
  }
  .world {
    aspect-ratio: 1.42;
  }
  .world-art {
    object-fit: cover;
    object-position: 50% 50%;
    width: 116%;
    max-width: none;
    left: -8%;
  }
  .location-hud {
    left: 6px;
    right: 6px;
    top: 6px;
    gap: 3px;
  }
  .location-label {
    font-size: 18px;
    padding: 4px 6px;
    max-width: 74%;
    border-width: 2px;
  }
  .location-label small {
    font-size: 14px;
    line-height: 1.05;
  }
  .weather-label select {
    font-size: 16px;
    min-height: 36px;
    max-width: 70px;
    padding: 2px 3px;
    border-width: 2px;
  }
  .actor {
    width: 23%;
  }
  .actor-name {
    font-size: 17px;
    padding: 2px 6px;
    bottom: -12px;
  }
  .camp-decoration {
    width: 15%;
    left: 16%;
    top: 62%;
  }
  .trail-landmark {
    width: 38%;
    left: 52%;
    top: 31%;
  }
  .dialogue {
    margin: 11px 0 8px;
    padding: 3px 6px;
    gap: 7px;
    min-height: 93px;
  }
  .dialogue > img {
    width: 49px;
    height: 49px;
  }
  .dialogue strong {
    font-size: 17px;
    margin-bottom: 3px;
  }
  .dialogue p {
    font-size: 22px;
    line-height: 1.04;
  }
  .commands {
    gap: 4px;
  }
  .commands button {
    font-size: 21px;
    min-height: 91px;
    padding: 5px 2px;
    gap: 3px;
  }
  .commands button > .item {
    width: 39px;
    height: 39px;
  }
  .commands small {
    font-size: 15px;
  }
  .battle-commands button {
    font-size: 17px;
    overflow-wrap: anywhere;
  }
  .battle-commands button > .item {
    width: 34px;
    height: 34px;
  }
  .action-panel {
    padding: 4px;
  }
  .action-hint {
    font-size: 16px;
    margin: 8px 1px 2px;
  }
  .route-stops {
    gap: 4px;
    margin: 10px 0;
  }
  .route-stops button {
    font-size: 18px;
    flex-direction: column;
    gap: 1px;
    text-align: center;
    padding: 4px 1px;
  }
  .route-icon {
    width: 44px;
    height: 44px;
  }
  .route-stops small {
    font-size: 14px;
  }
  .practice-welcome {
    width: 85%;
    top: 58%;
    padding: 7px;
  }
  .practice-welcome > .item {
    display: none;
  }
  .practice-welcome h2 {
    font-size: 29px;
    margin-bottom: 8px;
  }
  .practice-welcome p {
    font-size: 22px;
    margin-bottom: 9px;
  }
  .practice-welcome > button {
    font-size: 23px;
    padding: 6px 15px;
  }
  .practice-welcome small {
    font-size: 17px;
    margin-top: 6px;
  }
  .combat-hud {
    width: 44%;
    top: 27%;
    padding: 3px;
    border-width: 8px;
    border-image-width: 8px;
  }
  .friend-hud {
    left: 2%;
  }
  .enemy-hud {
    right: 2%;
  }
  .combat-hud > strong {
    font-size: 18px;
    line-height: 1;
  }
  .combat-meter {
    font-size: 15px;
    grid-template-columns: 17px 1fr 36px;
    gap: 3px;
    margin-top: 3px;
  }
  .combat-meter > span:last-child {
    font-size: 14px;
  }
  .combat-meter meter {
    height: 7px;
  }
  .combat-meter meter::-webkit-meter-bar {
    height: 7px;
  }
  .intent-label {
    font-size: 13px;
    margin-top: 5px;
    padding-top: 4px;
    gap: 3px;
  }
  .intent-label > strong {
    font-size: 16px;
  }
  .battle-friend-art {
    width: 30%;
    left: 13%;
    bottom: 5%;
  }
  .stump-sprite {
    width: 29%;
    right: 12%;
    bottom: 4%;
  }
  .practice-result {
    width: 90%;
    top: 65%;
    padding: 7px;
  }
  .practice-result > .item {
    width: 36px;
    height: 36px;
  }
  .practice-result > strong {
    font-size: 29px;
  }
  .practice-result > span:not(.item) {
    font-size: 20px;
    margin: 4px 0 8px;
  }
  .practice-result button {
    font-size: 19px;
    padding: 6px 10px;
  }
  .journal-view {
    padding: 11px;
    min-height: 480px;
  }
  .journal-heading {
    gap: 8px;
    padding-bottom: 14px;
  }
  .journal-heading > .item {
    width: 43px;
    height: 43px;
  }
  .journal-heading h2 {
    font-size: 30px;
  }
  .journal-heading .section-label {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .journal-heading > button {
    font-size: 19px;
    padding: 5px;
  }
  .journal-heading > button > .item {
    width: 25px;
    height: 25px;
  }
  .journal-book {
    grid-template-columns: 90px 1fr;
    gap: 12px;
    min-height: 350px;
    padding: 16px 0;
  }
  .journal-portrait {
    padding: 0 8px 0 0;
  }
  .journal-portrait h3 {
    font-size: 24px;
  }
  .journal-portrait > p {
    font-size: 18px;
  }
  .journal-portrait > span {
    font-size: 16px;
  }
  .journal-portrait > span > .item {
    width: 29px;
    height: 29px;
  }
  .journal-pages {
    padding: 0 3px;
    max-height: 430px;
  }
  .journal-pages li {
    font-size: 22px;
    padding: 10px 0;
  }
  .journal-pages > p {
    font-size: 23px;
  }
  .journal-view > button {
    font-size: 21px;
  }
  .game-help {
    font-size: 16px;
    display: block;
    text-align: center;
    margin: 13px 4px;
  }
  .game-help > span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
  }
  dialog.panel {
    padding: 16px;
    max-height: 91dvh;
  }
  dialog h2 {
    font-size: 31px;
    margin-bottom: 19px;
  }
  .close-form > button {
    font-size: 18px;
    padding: 4px 8px;
  }
  .menu-actions {
    gap: 5px;
  }
  .menu-actions > button {
    font-size: 19px;
    padding: 8px 2px;
  }
  .menu-actions .item {
    width: 42px;
    height: 42px;
  }
  .menu-note {
    font-size: 21px;
  }
  .decor-items {
    gap: 5px;
  }
  .decor-item {
    padding: 7px 3px;
  }
  .decor-item h3 {
    font-size: 22px;
    min-height: 46px;
  }
  .decor-item p {
    font-size: 18px;
  }
  .decor-item button {
    font-size: 19px;
    padding: 7px 2px;
  }
  .name-actions {
    gap: 8px;
  }
  .name-actions button {
    font-size: 23px;
    padding: 9px 15px;
  }
}

/* Keep desktop play compact; the camp remains the main screen. */
@media (min-width: 851px) {
  .world {
    max-height: calc(100dvh - 370px);
    min-height: 310px;
  }
  .actor {
    max-width: 180px;
  }
  .party-panel {
    padding-top: 8px;
  }
  .friend-details {
    margin-top: 13px;
    padding-top: 12px;
  }
  .pet-note {
    margin: 12px 0 10px;
  }
  .dialogue {
    min-height: 94px;
  }
  .commands button {
    min-height: 95px;
  }
  .action-panel {
    padding-top: 3px;
    padding-bottom: 3px;
  }
}

/* Sprite props retain the square aspect ratio of their atlas cells. */
.camp-decoration,
.care-prop {
  height: auto;
}

@media (max-width: 360px) {
  .main-nav button {
    font-size: 18px;
    letter-spacing: 0;
    padding: 3px 1px;
  }
}

/* Online v4: preserve a compact phone party and visible keyboard destinations. */
#journal-view:focus-visible { outline: 3px solid #fff1a8; outline-offset: 4px; }
@media (max-width:550px) {
  .party-button { min-height:67px; }
  .party-button img { width:37px; height:37px; }
  .party-button strong { font-size:20px; }
  .party-button small { display:none; }
  .friend-details { padding-top:6px; }
  .vitals { gap:6px 9px; }
  .decor-open { margin-top:7px; min-height:44px; }
}

/* 4.0.1: user nicknames must not widen the game or collide with HUD text. */
.journal-heading > div, .dialogue > div { min-width:0; }
#journal-title, #journal-friend, #speaker-name, #message { overflow-wrap:anywhere; }
.friend-heading h2 { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.actor-name { max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.combat-hud > strong { display:block; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
@media (max-width:550px) { .vitals { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* 4.1: a compact quest-book page, derived from existing sample progress. */
.journal-page-buttons { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.journal-page-buttons button { display:flex; align-items:center; gap:7px; min-height:44px; }
.journal-page-buttons .item { width:28px; height:28px; }
#journal-notes > button { display:flex; align-items:center; gap:8px; margin-top:14px; }
#camp-goals-summary { color:var(--gold); margin:8px 0 16px; overflow-wrap:anywhere; }
.camp-goal-row { display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:12px; align-items:center; padding:15px 0; border-bottom:2px solid #496e68; }
.camp-goal-row > .item { width:40px; height:40px; }
.camp-goal-copy { min-width:0; overflow-wrap:anywhere; }
.camp-goal-heading { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; }
.camp-goal-heading h3 { font-size:28px; }
.camp-goal-heading strong { color:var(--gold); white-space:nowrap; font-weight:400; }
.camp-goal-copy p { color:var(--muted); margin:5px 0 8px; font-size:22px; }
.camp-goal-copy progress { display:block; width:100%; height:12px; accent-color:#97cd63; }
.camp-goal-row > button { min-height:44px; }
@media (max-width:550px) { .camp-goal-row { grid-template-columns:34px minmax(0,1fr); gap:8px; } .camp-goal-row > .item { width:30px; height:30px; } .camp-goal-row > button { grid-column:2; justify-self:start; } .camp-goal-heading h3 { font-size:24px; } }

@media (max-width:550px) { .stump-picture-state { flex-wrap:wrap; gap:8px; padding:8px; } .stump-picture-state p { font-size:20px; } .stump-picture-state button { font-size:20px; padding:5px 10px; } }

.founder-picture-help { margin-top:16px; padding-top:12px; border-top:2px solid #729e7d; }
.founder-picture-help p { font-size:22px; line-height:1.2; margin:0 0 10px; }
.founder-picture-help button { min-height:44px; max-width:100%; white-space:normal; }

.school-banner { margin-bottom:12px;padding:12px 16px;color:#f8f0d9;background:#183a40; }
.school-banner p {margin:6px 0 0;font-size:20px;line-height:1.3;overflow-wrap:anywhere;}
.demo-school-link {padding:12px;margin:0;background:#183a40;text-align:center;}
.demo-school-link a {color:#fff5d6;}
#school-save-retry {font-size:18px;padding:6px;}

/* 5.0: decor atlas, friendship levels, foraging, the stump ladder and the curio shelf. */
.item.i-shelf, .item.i-campfire, .item.i-chimes, .item.i-heart { background-image:url("assets/decor-atlas.png"); background-size:400% 100%; }
.item.i-shelf { background-position:0 0; }
.item.i-campfire { background-position:33.333333% 0; }
.item.i-chimes { background-position:66.666667% 0; }
.item.i-heart { background-position:100% 0; }
.bond-level { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin:4px 0 6px; font-size:21px; color:#ffd7d7; }
.bond-level .item { width:26px; height:26px; }
.bond-level small { flex-basis:100%; font-size:16px; color:var(--muted); }
.bond-heart { width:8%; z-index:6; }
body:not(.quiet) .bond-heart:not([hidden]) { animation:bond-rise 2.4s ease-out forwards; }
@keyframes bond-rise { from { transform:translateY(12px) scale(.6); opacity:0; } 20% { transform:translateY(0) scale(1.1); opacity:1; } to { transform:translateY(-26px) scale(1); opacity:0; } }
.forage-tag { margin-top:2px; color:#d8d0ff !important; }
.forage-tag[data-ready="true"] { color:#ffe39b !important; }
#forage[aria-disabled="true"] { opacity:.62; }
.trail-commands { grid-template-columns:repeat(5,minmax(0,1fr)); }
.tier-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0; }
.tier-picker[hidden] { display:none; }
.tier-picker button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:6px 4px; min-height:68px; font-size:22px; line-height:1; }
.tier-picker button strong { font-weight:400; color:#ffe39b; }
.tier-picker button small { font-size:15px; color:#c2d9b8; }
.tier-picker button[aria-disabled="true"] { opacity:.55; }
.stump-sprite[data-tier="2"] .stump-atlas { filter:sepia(.45) saturate(1.35) brightness(.78) hue-rotate(-12deg); }
.stump-sprite[data-tier="3"] .stump-atlas { filter:grayscale(.5) brightness(.78) contrast(1.2) hue-rotate(200deg) saturate(1.4); }
.journal-pages li[data-kind="bond"] { color:#ffd7d7; }
.curio { display:inline-block; background-image:url("assets/curio-atlas.png"); background-size:400% 400%; background-repeat:no-repeat; image-rendering:auto; }
#curio-summary { color:var(--gold); margin:8px 0 10px; overflow-wrap:anywhere; }
.curio-today { list-style:none; padding:0; margin:0 0 14px; display:grid; gap:4px; font-size:20px; color:var(--muted); }
.curio-today strong { color:var(--ink); font-weight:400; }
.curio-grid { list-style:none; padding:0; margin:0 0 14px; display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.curio-card { display:flex; flex-direction:column; align-items:center; text-align:center; padding:10px 6px; border:3px solid #496e68; background:#143437; min-width:0; }
.curio-card .curio { width:78px; height:78px; }
.curio-card[data-owned="false"] .curio { filter:brightness(0) opacity(.32); }
.curio-card strong { font-weight:400; font-size:21px; color:#ffe39b; overflow-wrap:anywhere; }
.curio-card[data-owned="false"] strong { color:#8fa99b; }
.curio-card small { font-size:15px; color:var(--muted); text-transform:uppercase; }
.curio-card[data-rarity="rare"] { border-color:#c9a24f; }
.curio-card p { margin:6px 0 0; font-size:17px; line-height:1.1; color:#d9e7cf; }
.curio-shelf > button { display:flex; align-items:center; gap:8px; }
.curio-shelf > button .item { width:37px; height:37px; }
@media (max-width:550px) { .curio-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .curio-card .curio { width:60px; height:60px; } .tier-picker button { font-size:17px; } }
/* Founder journeys and the supply workshop share the camp's existing sprite atlas. */
.adventure-doors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.adventure-doors button{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:12px;min-height:60px}
.adventure-doors small{flex-basis:100%;font:14px/1.4 system-ui,sans-serif}
.journey-scene{padding:20px;margin-top:12px;scroll-margin:16px}
.journey-scene h2,.journey-card h3,.recipe-card h3{font-size:20px;line-height:1.5;margin:8px 0}
.journey-scene p,.journey-card p,.workshop-dialog p,.recipe-card p{font:16px/1.65 system-ui,sans-serif}
.journey-scene:focus,.journey-card button:focus-visible{outline:3px solid #f5d994;outline-offset:4px}
.journey-choices{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.journey-choices button{flex:1 1 220px;min-height:52px;line-height:1.5}
.journey-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.journey-card{display:flex;align-items:flex-start;gap:12px;border:2px solid #789286;background:#173c3d;padding:16px;min-width:0}
.journey-card>div{min-width:0;flex:1}.journey-card img{width:64px;height:64px;object-fit:contain;image-rendering:pixelated}
.journey-card progress{width:100%;accent-color:#f4d88b;height:12px}
.journey-card button{min-height:44px}.journal-page-buttons{flex-wrap:wrap}
.workshop-dialog{width:min(850px,calc(100vw - 28px));max-height:85dvh;overflow:auto;padding:24px;overscroll-behavior:contain}
.workshop-dialog::backdrop{overscroll-behavior:contain;overflow:hidden}
.workshop-supplies{border:2px solid #789286;padding:12px;color:#f6e3af;background:#143332}
.supply-trips{display:flex;flex-wrap:wrap;gap:8px}.supply-trips button{min-height:44px}
.workshop-recipes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.recipe-card{border:2px solid #789286;padding:16px;display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:8px;background:#173c3d}
.recipe-card .item{width:40px;height:40px}.recipe-card small{font:14px/1.6 system-ui,sans-serif;color:#e3d3b4}.recipe-card button{margin-top:auto;min-height:44px}
.crafted-keepsake{position:absolute;left:5%;bottom:9%;pointer-events:none;display:flex;align-items:center;gap:5px;max-width:45%;padding:5px;background:#143332e8;border:2px solid #d6c19a;color:#fff2cf;font:12px/1.4 system-ui,sans-serif}
.crafted-keepsake .item{flex-shrink:0;width:40px;height:40px}
@media(max-width:720px){.journey-cards{grid-template-columns:1fr}.journey-card{padding:12px}.journey-card img{width:48px;height:48px}.workshop-dialog{padding:14px}.workshop-recipes{grid-template-columns:1fr}.adventure-doors button{font-size:14px}.adventure-doors small{font-size:12px}.crafted-keepsake{font-size:10px;max-width:48%;bottom:4%}}
.craft-sprite{display:inline-block;flex-shrink:0;width:72px;height:72px;background-image:url('assets/workshop-atlas-v1.png');background-size:400% 200%;background-repeat:no-repeat;image-rendering:pixelated}.crafted-keepsake .craft-sprite{width:56px;height:56px}
/* The paused camp keeps its current state and native keyboard focus handling. */
#school-pause-dialog { width: min(34rem, calc(100vw - 2rem)); }
.pause-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.pause-actions button { min-height: 44px; }
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { overscroll-behavior: contain; overflow: hidden; }
.guide-intro,.guide-copy,.guide-title,.guide-camp-name,.guide-region{font:16px/1.65 system-ui,sans-serif}
.founder-guide-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.founder-guide-card{container-type:inline-size;display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px;border:2px solid #789286;background:#173c3d;padding:16px;min-width:0;align-content:start}
.founder-guide-card>img{width:80px;height:80px;object-fit:contain;image-rendering:pixelated}
.founder-guide-card h3{font-size:22px;line-height:1.4;margin:4px 0;color:#f5d994}
.guide-region{color:#c9d8cb;margin:0;font-size:14px}.guide-title,.guide-camp-name{margin:4px 0}
.guide-copy,.founder-guide-card>footer{grid-column:1/-1;min-width:0}
.guide-copy>p{margin:0 0 12px}.guide-progress{margin:16px 0;padding:10px;border:1px solid #789286}
.guide-progress>div{display:flex;justify-content:space-between;gap:12px}.guide-progress dd{margin:0;white-space:nowrap;color:#f5d994}
.guide-copy summary{cursor:pointer;min-height:44px;padding:8px 0}.guide-copy details p{margin:8px 0 12px}
.founder-guide-card>footer{display:flex;flex-wrap:wrap;gap:8px;align-self:end}.founder-guide-card button{min-height:44px;max-width:100%;line-height:1.5}
@container(max-width:240px){.founder-guide-card>img{width:64px;height:64px}}
@media(max-width:720px){.founder-guide-cards{grid-template-columns:1fr}.founder-guide-card{padding:12px;gap:8px}}
.recipe-supplies{list-style:none;padding:0;margin:8px 0;width:100%;font:15px/1.6 system-ui,sans-serif}
.recipe-supplies li{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;margin-bottom:12px}
.recipe-supplies strong{font-size:14px;color:#f5d994}.recipe-supplies small{color:#e3d3b4}
.recipe-supplies progress{width:100%;accent-color:#f4d88b}
.recipe-actions,.build-plan-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
.recipe-actions{margin-top:auto}.recipe-actions button{margin-top:0;max-width:100%;line-height:1.5}
.build-plan{padding:16px;margin-top:16px}.build-plan h2{font-size:22px;line-height:1.5}
.build-plan .recipe-supplies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.build-plan-actions button{min-height:44px;max-width:100%;line-height:1.5}
@media(max-width:480px){.build-plan .recipe-supplies{grid-template-columns:1fr;gap:0}.build-plan{padding:12px}}

/* The bus stop: Kettle Creek to the shared Checkaverse town. */
.bus-link { display: block; margin: 0.75rem 0 0; padding: 0.6rem 0.8rem; text-align: center; font-weight: 700; color: inherit; border: 2px solid currentColor; border-radius: 6px; text-decoration: none; }
.bus-link:hover, .bus-link:focus-visible { background: rgba(255,255,255,0.1); }
