:root {
  color-scheme: light;
  --pine: #203d35;
  --forest: #2d5042;
  --ink: #273d31;
  --muted: #586353;
  --paper: #f5f0e2;
  --card: #fbf7ea;
  --line: #d1c9b5;
  --gold: #cda568;
  --berry: #824d45;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Avenir Next', Avenir, 'Segoe UI', system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: radial-gradient(#ad9c7540 0.65px, transparent 0.8px);
  background-size: 5px 5px;
  color: var(--ink);
  font: 15px/1.5 var(--sans);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
select,
label,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:disabled,
a[aria-disabled='true'] {
  opacity: 0.62;
}
a {
  color: inherit;
}
button,
a,
select,
input,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #ba672c;
  z-index: 2;
}
button,
select {
  border-radius: 5px;
}
button {
  line-height: 1.25;
}
[hidden],
.hidden {
  display: none !important;
}
.wrap {
  width: min(1190px, calc(100% - 80px));
  margin-inline: auto;
}
.glyph {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
.skip {
  position: fixed;
  top: 10px;
  clip-path: inset(50%);
  pointer-events: none;
  left: 12px;
  color: white;
  background: var(--pine);
  padding: 8px;
  z-index: 20;
}
.skip:focus {
  clip-path: none;
  pointer-events: auto;
}
#main:focus { outline:none; }
.mast {
  background: var(--pine);
  color: #fff4d4;
  border-bottom: 2px solid #95885e;
}
.mast-inner,
.mast-tools,
.brand,
.header-button,
.purse,
.trail,
.primary,
.secondary,
.text-btn,
.scene-location,
.view-switch,
.button-row,
.section-head,
.small-tag,
.tile,
.modal-head,
.step-dots,
.panel-icon,
.choice,
.timer-info,
.guide-title,
.status-line,
.field-row,
.shop-row,
.seg-tabs {
  display: flex;
  align-items: center;
}
.mast-inner {
  min-height: 70px;
  justify-content: space-between;
}
.brand {
  gap: 12px;
  text-decoration: none;
  color: #f6edcd;
  font: 600 30px/1 var(--serif);
  letter-spacing: -1.1px;
}
.brand i,
.footer-sign i {
  font-weight: 400;
  color: #d0b37f;
}
.brand img {
  width: 37px;
  height: 45px;
}
.mast-tools {
  gap: 18px;
}
.header-button,
.purse {
  font-weight: 600;
  font-size: 13px;
  gap: 9px;
}
.header-button {
  min-height: 42px;
  background: none;
  border: 0;
  color: #ede4c8;
  padding: 4px 0 4px 14px;
  border-left: 1px solid #627461;
  border-radius: 0;
}
.purse {
  border: 1px solid #6f8066;
  background: #344c3d;
  border-radius: 30px;
  padding: 6px 14px 6px 7px;
  color: #f4e8bf;
  font-variant-numeric: tabular-nums;
}
.purse b {
  font-size: 16px;
}
.coin {
  display: inline-grid;
  place-items: center;
  border: 2px solid #d9af5d;
  outline: 1px solid #9f793c;
  outline-offset: -4px;
  width: 25px;
  height: 25px;
  background: #f3d28a;
  color: #976d2b;
  border-radius: 50%;
  font: 16px Georgia;
}
.nav {
  background: #eae7d7;
  border-bottom: 1px solid #c6c3ac;
}
.trail {
  gap: 10px;
  min-height: 51px;
}
.trail a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 51px;
  padding: 0 20px;
  color: #586451;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  position: relative;
}
.trail a:first-child {
  margin-left: -12px;
}
.trail a[aria-current='page'] {
  color: #274c37;
}
.trail a[aria-current='page']::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: #486344;
}
.trail a:hover {
  background: #dfe1d0;
}
.trail .glyph {
  width: 18px;
  height: 18px;
}
.route-ready {
  background: #785038;
  color: white;
  width: 8px;
  height: 8px;
  border-radius: 100%;
  position: absolute;
  right: 6px;
  top: 9px;
}
main {
  padding-bottom: 24px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3,
.scene-location,
.footer-sign {
  font-family: var(--serif);
}
h1 {
  font-size: clamp(43px, 4.5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  font-weight: 500;
}
h2 {
  font-size: 31px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 23px;
  font-weight: 550;
  line-height: 1.17;
  letter-spacing: -0.025em;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 29px 0 22px;
}
.page-head p {
  color: var(--muted);
  margin-top: 5px;
  font-size: 15px;
}
.primary,
.secondary,
.text-btn,
.icon-btn {
  justify-content: center;
  gap: 9px;
  font-weight: 650;
  text-decoration: none;
}
.primary,
.secondary {
  min-height: 44px;
  border: 1px solid #bdb7a3;
  border-radius: 5px;
  padding: 9px 16px;
  text-align: center;
  font-size: 14px;
}
.primary {
  background: var(--forest);
  color: #fff6de;
  border-color: #304f3f;
  box-shadow: inset 0 0 0 1px #ffffff12;
}
.primary:hover:not(:disabled) {
  background: #1d3e31;
}
.secondary {
  background: #faf6e8;
}
.secondary:hover:not(:disabled),
.icon-btn:hover {
  background: #ede8d6;
}
.page-head .secondary {
  background: transparent;
  border-color: #aaa58e;
}
.text-btn {
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 4px 0;
  color: #405b42;
  font-size: 13px;
}
.text-btn:hover {
  text-decoration: underline;
}
.primary .glyph,
.secondary .glyph,
.text-btn .glyph {
  height: 17px;
  width: 17px;
}
.icon-btn {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--card);
}
.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(315px, 1fr);
  align-items: start;
  gap: 22px;
}
.scene-card {
  background: var(--pine);
  border: 1px solid #263c30;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 0 #a5997833;
  color: #f8eacd;
  position: relative;
  padding: 6px 6px 0;
}
.scene-box {
  position: relative;
  aspect-ratio: 352 / 224;
  overflow: hidden;
  background: #2d4f48;
  border: 1px solid #8d9676;
  border-radius: 5px 5px 1px 1px;
}
.scene-box canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.scene-box.awaiting-place :is(#scene, #props, #spots),
.scene-box.awaiting-place + figcaption .motion-toggle { visibility:hidden; }
.scene-loading { display:none; }
.scene-box[aria-busy="true"] .scene-loading {
  display:grid; place-items:center; position:absolute; inset:0;
  background:#2d4f48; color:#f8eacd; font:18px var(--serif);
}
.scene-box:before,
.scene-box:after {
  content: '';
  z-index: 1;
  position: absolute;
  pointer-events: none;
  width: 13px;
  height: 13px;
  top: 5px;
  border-top: 2px solid #f4d8a3b0;
}
.scene-box:before {
  left: 5px;
  border-left: 2px solid #f4d8a3b0;
}
.scene-box:after {
  right: 5px;
  border-right: 2px solid #f4d8a3b0;
}
.scene-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 54px;
  padding: 4px 10px;
}
.scene-location {
  font-size: 18px;
  gap: 7px;
  font-weight: 500;
}
.scene-location .glyph {
  color: #d9ba7c;
  width: 17px;
  height: 17px;
}
.view-switch button {
  min-height: 42px;
  padding: 5px 10px;
  border: 0;
  background: none;
  color: #d1dbc8;
  font-size: 13px;
  font-weight: 600;
}
.view-switch button[aria-pressed='true'] {
  background: #48624e;
  color: #fff1ce;
  box-shadow: inset 0 0 0 1px #74836b;
}
.scene-card small {
  color: #d2dccd;
}
.spots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.spot {
  pointer-events: auto;
  position: absolute;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -6%);
  background: transparent;
  border: 0;
  color: #f9f2dc;
}
.spot span {
  display: grid;
  place-items: center;
  border: 1.5px solid #eee2bd;
  background: #2f493de8;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 1px 4px #233b2c;
}
.spot[aria-pressed='true'] span {
  background: #ffdda0;
  color: #344431;
  border-color: #624d2e;
}
.spot:hover span {
  outline: 2px solid white;
}
#scene-error {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  background: #f9e6bb;
  color: #402f28;
  padding: 8px;
  border-radius: 4px;
}
.panel {
  background: var(--card);
  border: 1px solid #c6bda5;
  border-radius: 9px;
  padding: 24px;
  box-shadow: 0 3px 0 #a599781b;
  min-width: 0;
}
.panel-top {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.panel-icon {
  justify-content: center;
  background: #e6e7d3;
  color: var(--forest);
  border: 1px solid #c7c9ae;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex: none;
}
.panel-top h2 {
  font-size: 28px;
}
.panel p,
.tile p,
.modal p {
  color: var(--muted);
}
.panel p {
  font-size: 14px;
}
.journal-card {
  position: relative;
  padding: 15px;
  background: #eee9d6;
  border: 1px solid #d4caab;
  border-radius: 5px;
}
.journal-card h3 {
  font-size: 25px;
  margin: 2px 0 5px;
}
.guide-title {
  gap: 11px;
  justify-content: space-between;
}
.guide-title .thumb {
  width: 60px;
  height: 60px;
  flex: none;
  background: #e5ddbd;
  border: 1px dashed #afa47e;
  transform: rotate(3deg);
  border-radius: 5px;
}
.guide-title .thumb img {
  width: 80%;
  height: 80%;
  transform: rotate(-3deg);
}
.step-dots {
  justify-content: space-between;
  gap: 3px;
  position: relative;
  margin: 15px 0 14px;
}
.step-dots:before {
  content: '';
  height: 1px;
  position: absolute;
  top: 8px;
  left: 12%;
  right: 12%;
  background: #bbb393;
}
.step-dots span {
  display: grid;
  justify-items: center;
  font-size: 10px;
  font-weight: 650;
  color: #65664e;
  min-width: 40px;
}
.step-dots i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid #aaa287;
  border-radius: 50%;
  background: #f8f1de;
  position: relative;
  font-style: normal;
  font-size: 10px;
  margin-bottom: 3px;
}
.step-dots .current i {
  border: 4px solid #476149;
  background: #f4e3a7;
}
.step-dots .done i {
  border-color: #426044;
  background: #426044;
  color: #fff4d7;
}
.journal-card .primary {
  width: 100%;
}
.small-tag,
.kicker {
  font: 700 10.5px/1.4 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #62664e;
}
.small-tag {
  gap: 5px;
}
.button-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}
.button-row > * {
  flex: 1 0 auto;
}
.field-row {
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
}
.field-row strong {
  font-size: 14px;
}
.field-row small,
.shop-row small,
.tile small,
.muted {
  color: var(--muted);
  font-size: 12px;
}
.section-head {
  justify-content: space-between;
  gap: 12px;
}
.section-head h2 {
  font-size: 29px;
}
.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 16px 0;
}
.journal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.journal-actions .secondary {
  padding: 6px 10px;
}
.under-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 12px;
}
.under-title h2 {
  font-size: 26px;
  white-space: nowrap;
}
.under-title::after {
  content: '';
  height: 1px;
  background: var(--line);
  width: 100%;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tile {
  padding: 13px 14px;
  background: #f8f4e7;
  border: 1px solid #cbc3ac;
  border-radius: 7px;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}
.tile:hover {
  background: #eeecd9;
  border-color: #959b7f;
}
.tile h3 {
  font-size: 21px;
}
.tile small {
  display: block;
  margin-top: 2px;
}
.tile > .glyph {
  margin-left: auto;
  width: 15px;
  height: 15px;
  color: #66745e;
}
.tile-art {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  background: #e0e4cd;
  border: 1px solid #c7ccb1;
  border-radius: 7px;
  color: #52674c;
}
.tile:nth-child(2) .tile-art {
  background: #eee1c7;
  border-color: #d7caad;
  color: #88684c;
}
.tile:nth-child(3) .tile-art {
  background: #e7dddf;
  border-color: #cfc2c2;
  color: #79576f;
}
.tile-art > .glyph {
  width: 27px;
  height: 27px;
}
.thumb {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  width: 48px;
  height: 45px;
}
.thumb img {
  display: block;
  width: 95%;
  height: 95%;
  object-fit: contain;
  image-rendering: pixelated;
}
.thumb img:not([src]) {
  visibility: hidden;
}
.subnote {
  margin-top: 12px;
  font-size: 13px !important;
}
.compact {
  font-size: 12px !important;
}
.seg-tabs {
  gap: 4px;
  flex-wrap: wrap;
  margin: 0 0 13px;
}
.seg-tabs button {
  min-height: 42px;
  padding: 7px 12px;
  background: #f1eddf;
  border: 1px solid #d3cbb7;
  font-size: 13px;
  font-weight: 600;
}
.seg-tabs button[aria-pressed='true'] {
  color: #fff8e4;
  background: #496047;
  border-color: #496047;
}
.select-label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  margin: 12px 0 5px;
}
select {
  width: 100%;
  min-height: 44px;
  background: #f8f4e6;
  border: 1px solid #b6b59e;
  padding: 5px 10px;
}
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0;
}
.choice {
  gap: 6px;
  min-height: 54px;
  flex-wrap: wrap;
  justify-content: flex-start;
  text-align: left;
  padding: 6px 9px;
  border: 1px solid #d3cab4;
  background: #f6f0dd;
}
.choice[aria-pressed='true'] {
  border-color: #476347;
  background: #e5e8d1;
  box-shadow: inset 0 0 0 1px #738969;
}
.choice .thumb {
  width: 34px;
  height: 36px;
  flex: none;
}
.choice strong {
  font-size: 13px;
}
.choice small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: #51624b;
}
.shop-row {
  gap: 10px;
  border-bottom: 1px solid #ded7c1;
  padding: 8px 0;
}
.shop-row:last-child {
  border-bottom: 0;
}
.shop-row .thumb {
  background: #ebe7d5;
  border-radius: 5px;
  flex: none;
}
.shop-row > div {
  flex: 1;
  min-width: 0;
}
.shop-row strong,
.shop-row small {
  display: block;
}
.shop-row strong {
  font-size: 14px;
}
.shop-row button {
  min-height: 42px;
  padding: 6px 10px;
  font-size: 12px;
}
.shop-row .badge {
  font-size: 12px;
  font-weight: 600;
  color: #59674d;
}
.full {
  width: 100%;
  margin-top: 10px;
}
.plot-select {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.plot-select button {
  flex: 1;
  min-height: 43px;
  background: #eee9d6;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}
.plot-select button[aria-pressed='true'] {
  color: #fff9e2;
  background: #496047;
}
.harvest-ill {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #ebe8d5;
  border-radius: 5px;
}
.harvest-ill .thumb {
  width: 64px;
  height: 66px;
  flex: none;
}
.harvest-ill h3 {
  margin-bottom: 3px;
}
.panel progress {
  display: block;
  width: 100%;
  height: 7px;
  accent-color: #66815a;
  margin: 10px 0;
}
.timer-info {
  gap: 5px;
  font-variant-numeric: tabular-nums;
}
.timer-info .glyph {
  width: 15px;
  height: 15px;
}
.check-line {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 6px 0;
  min-height: 42px;
  font-size: 13px;
}
.check-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--forest);
}
.ingredient-list {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.ingredient {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  background: #f1ecdb;
  border: 1px solid #d8d0b9;
  border-radius: 5px;
  padding: 6px;
}
.ingredient .thumb {
  width: 31px;
  height: 32px;
}
.ingredient b,
.ingredient small {
  display: block;
  font-size: 12px;
}
.ingredient small {
  color: var(--muted);
}
.recipe-illustration {
  display: flex;
  gap: 12px;
  align-items: center;
}
.recipe-illustration .thumb {
  height: 64px;
  width: 62px;
}
.notice {
  padding: 12px;
  border-left: 3px solid #aaa172;
  background: #eee9d6;
  border-radius: 2px;
  font-size: 13px;
}
.footer {
  border-top: 1px solid #cfc9b3;
  color: #52604e;
  margin-top: 12px;
}
.footer > .wrap,
.footer > .wrap > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.footer > .wrap {
  min-height: 72px;
}
.footer-sign {
  font-size: 20px;
}
.footer-sign i {
  color: #7e734b;
}
.footer a {
  font-size: 12px;
  font-weight: 550;
  text-underline-offset: 4px;
}
.toast {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  max-width: min(92vw, 480px);
  min-width: 180px;
  text-align: center;
  background: #263f34;
  color: #fff6dc;
  box-shadow: 0 4px 20px #16251a3d;
  border-radius: 6px;
  padding: 12px 18px;
  pointer-events: none;
  font-size: 14px;
}
.toast:empty {
  display: none;
}
dialog {
  --dialog-padding: 22px;
  width: min(455px, calc(100% - 24px));
  max-height: 88dvh;
  color: var(--ink);
  padding: var(--dialog-padding);
  border: 1px solid #b3aa8d;
  border-radius: 10px;
  background: #faf5e7;
  box-shadow: 0 12px 70px #13251f60;
}
dialog::backdrop {
  background: #152d23a8;
}
.modal-head {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.modal-head h2 {
  font-size: 31px;
}
.modal-head .icon-btn {
  flex: none;
  align-items: center;
  padding: 0;
  background: transparent;
}
.modal-head .icon-btn > [data-icon] {
  display: flex;
}
.modal-status {
  margin-top: 10px;
  color: var(--berry);
  font-size: 13px;
}
.dialog-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.dialog-group:last-child {
  border-bottom: 0;
}
.dialog-group h3 {
  font-size: 21px;
  margin-bottom: 4px;
}
.dialog-group p {
  font-size: 13px;
  color: var(--muted);
}
.dialog-group input[type='file'] {
  width: 100%;
  padding: 10px 0;
  font-size: 13px;
}
.dialog-group input[type='text'] {
  width: 100%;
  padding: 9px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.visitor .game-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(265px, 1fr);
}
.visitor .nav {
  display: none;
}
@media (min-width: 1400px) {
  .page-head {
    padding-top: 37px;
  }
  .game-grid {
    gap: 26px;
  }
  .panel {
    padding: 26px;
  }
}
@media (max-width: 950px) {
  .wrap {
    width: min(100% - 38px, 900px);
  }
  .game-grid,
  .visitor .game-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(290px, 1fr);
    gap: 14px;
  }
  .panel {
    padding: 17px;
  }
  .tile {
    gap: 8px;
    padding: 10px;
  }
  .trail {
    gap: 2px;
  }
  .tiles {
    gap: 8px;
  }
  .tile-art {
    width: 41px;
    height: 43px;
  }
  .scene-location {
    font-size: 16px;
  }
}
@media (max-width: 730px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .mast-inner {
    min-height: 55px;
  }
  .brand {
    font-size: 24px;
    gap: 7px;
  }
  .brand img {
    width: 28px;
    height: 36px;
  }
  .mast-tools {
    gap: 8px;
  }
  .header-button {
    padding-left: 9px;
    gap: 5px;
    font-size: 12px;
  }
  .purse {
    padding: 3px 9px 3px 4px;
    gap: 5px;
  }
  .purse b {
    font-size: 14px;
  }
  .coin-text {
    display: none;
  }
  .coin {
    width: 22px;
    height: 22px;
  }
  .trail {
    justify-content: space-between;
    width: 100%;
    padding: 0 6px;
    gap: 0;
    min-height: 52px;
  }
  .trail a {
    flex: 1;
    font-size: 11px;
    flex-direction: column;
    gap: 1px;
    padding: 5px 2px;
    min-height: 51px;
  }
  .trail a:first-child {
    margin: 0;
  }
  .trail .glyph {
    width: 17px;
    height: 17px;
  }
  .trail a[aria-current='page']::after {
    left: 15%;
    right: 15%;
  }
  .route-ready {
    right: 19%;
    top: 7px;
  }
  .page-head {
    padding: 18px 0 13px;
    align-items: center;
  }
  .page-head p {
    font-size: 13px;
    line-height: 1.35;
    max-width: 36ch;
  }
  .page-head h1 {
    font-size: 40px;
  }
  .page-head .secondary {
    min-height: 42px;
    padding: 7px 10px;
    font-size: 12px;
    gap: 5px;
  }
  .game-grid,
  .visitor .game-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .scene-card {
    padding: 4px 4px 0;
  }
  .scene-card figcaption {
    min-height: 45px;
    padding: 2px 7px;
  }
  .view-switch button {
    min-height: 40px;
  }
  .panel {
    padding: 17px;
  }
  .panel-top {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  .panel-top h2 {
    font-size: 26px;
  }
  .journal-card {
    padding: 13px;
  }
  .under-title {
    margin-top: 18px;
  }
  .tiles {
    grid-template-columns: 1fr;
  }
  .tile {
    padding: 9px 13px;
  }
  .tile-art {
    width: 42px;
    height: 42px;
  }
  .footer > .wrap {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    padding: 14px 0;
  }
  .footer > .wrap > div {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .footer a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }
  .footer-sign {
    font-size: 17px;
  }
  .under-title h2 {
    font-size: 24px;
  }
  .shop-row button {
    min-height: 44px;
  }
  .choice .thumb {
    width: 38px;
    height: 38px;
  }
  .toast {
    bottom: 10px;
  }
  .step-dots {
    margin: 11px 0;
  }
  .page-head > div {
    min-width: 0;
  }
  .page-head button {
    flex: none;
  }
}
@media (max-width: 370px) {
  .wrap {
    width: calc(100% - 20px);
  }
  .trail {
    width: 100%;
  }
  .header-button span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .header-button {
    min-width: 42px;
    justify-content: center;
  }
  .brand {
    font-size: 22px;
  }
  .scene-location {
    font-size: 15px;
  }
  .view-switch button {
    font-size: 12px;
    padding: 4px 8px;
  }
  .panel {
    padding: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}
.guide-line {
  margin-top: 17px;
  border: 1px solid #cac2a8;
  background: #efead7;
  padding: 10px 15px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.guide-line > div {
  flex: 1;
}
.guide-line strong {
  font: 600 17px var(--serif);
}
.guide-line p {
  font-size: 13px;
  color: var(--muted);
}
.guide-line .text-btn {
  flex-shrink: 0;
}
.tile-art .thumb {
  max-width: 90%;
  max-height: 90%;
}
.badge .glyph {
  width: 15px;
  height: 15px;
}
@media (max-width: 730px) {
  .guide-line {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .guide-line .text-btn {
    min-height: 34px;
    margin-left: auto;
  }
  .guide-line > div {
    min-width: calc(100% - 57px);
  }
}
.preview-note {
  margin: 12px 0;
}
.preview-note p {
  margin-top: 3px;
}
.preview-note .button-row {
  margin-top: 8px;
}
.preview-note .button-row button,
.preview-note .button-row a {
  font-size: 12px;
}
.scene-location {
  min-width: 0;
}
#scene-tools,
.view-switch {
  flex-shrink: 0;
}
@media (max-width: 730px) {
  .header-button,
  .view-switch button,
  .seg-tabs button,
  .plot-select button,
  .page-head .secondary,
  .guide-line .text-btn,
  .footer a {
    min-height: 44px;
  }
}
.garden-basket{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:14px;padding-top:9px;border-top:1px solid var(--line)}
.garden-basket strong{font:600 17px var(--serif)}.garden-basket .glyph{width:17px;height:17px}.garden-basket p{font-size:12px}.garden-basket a{flex-shrink:0}

.sr-only{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0}
.character-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0 4px}
.character-grid .shop-row{border:1px solid #d2c9af;border-radius:6px;background:#f2eddb;display:flex;flex-direction:column;gap:4px;text-align:center;padding:8px 3px 5px;min-width:0;position:relative}
.character-grid .shop-row.equipped{background:#e6ead5;border:1px solid #718464;box-shadow:inset 0 0 0 1px #9aa88b}
.character-grid .thumb{height:55px;width:62px;background:none}.character-grid .shop-row>div{flex:1 0 auto}
.character-grid .shop-row small{line-height:1.25;font-size:10.5px}.character-grid .shop-row strong{font:600 17px var(--serif)}
.character-grid .shop-row button,.character-grid .shop-row .badge{font-size:11.5px;min-height:23px;align-content:center;color:var(--forest);border:0;box-shadow:none;background:transparent;padding:2px 3px}
.character-grid .shop-row button::after{content:"";position:absolute;inset:0;border-radius:6px}
.character-grid .shop-row:has(button:hover){border-color:#70886a;background:#eae8d4}
.character-grid .shop-row:focus-within{outline:3px solid #ab652e;outline-offset:2px}

.motion-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5e8cb;
}
.motion-toggle svg {
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 1px solid #90a28b;
  border-radius: 5px;
}
.motion-toggle:enabled:hover svg { background:#48624e; }
.motion-toggle:focus-visible { outline-offset:-3px; }
.motion-toggle:disabled { opacity:1; color:#c8d2c1; }
.journal-nav { margin: 3px 0 15px; }
.journal-nav button { flex: 1; }
#journal-goal .primary { margin-top: 12px; }
.journal-record { margin: 6px 0 0; }
.journal-record div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); padding: 4px 1px; gap: 10px; }
.journal-record dt { font-size: 13px; }
.journal-record dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }

/* The marker is centered on the native prop. Its caption hangs below the artwork. */
.scene-props { position:absolute; inset:0; pointer-events:none; }
.prop-hit {
  position:absolute; transform:translate(-50%,-50%); pointer-events:auto;
  display:grid; place-items:center; width:44px; height:44px; padding:0;
  border:0; background:transparent; color:#fff2cb; z-index:1;
}
.prop-spark {
  display:grid; place-items:center; width:19px; height:19px; line-height:1;
  background:#263e33e8; border:1px solid #d9bd83; border-radius:50%;
  color:#ffe7ae; font:14px Georgia,serif; box-shadow:0 1px 3px #182b28;
}
.prop-label {
  position:absolute; top:calc(50% + 11px); left:50%; transform:translateX(-50%);
  width:max-content; max-width:168px; border:1px solid #96a189; border-radius:4px;
  padding:3px 6px; font-size:11px; line-height:1.2; font-weight:600; background:#203d35ed;
  box-shadow:0 1px 3px #182b2866;
}
.prop-hit[data-side=left] .prop-label { left:6px; transform:none; }
.prop-hit[data-side=right] .prop-label { left:auto;right:6px;transform:none; }
.prop-hit:hover .prop-label,.prop-hit:focus-visible .prop-label { color:#fff3cc; background:#304e3b; border-color:#ebc281; }
/* The flower border and plot 1 are only 5% of a scene-width apart. */
.prop-hit[data-prop="garden-flowers"] { margin-left:min(0px, calc(5% - 46px)); }
.prop-hit[data-prop="garden-flowers"] .prop-label { left:0; max-width:100px; transform:none; }
.has-activity .prop-hit:not(:focus-visible) .prop-label { opacity:0; }
.has-activity .prop-hit:not(:focus-visible) .prop-spark { opacity:.22; }
.tending-border .spot[data-plot="0"]:not(:focus-visible) span { opacity:.18; }
.scene-card figcaption { display:block; align-content:center; }
.scene-bar { display:flex; align-items:center; gap:7px; min-height:44px; }
.scene-bar .scene-location { margin-inline-end:auto; }
#preview-return { margin-bottom:8px; }
.prop-lore,.moment-bar {
  border-top:1px solid #687c63; padding:8px 0 9px; font-size:13px; line-height:1.4; color:#f2e9ce;
}
.prop-lore {font-family:var(--serif);font-size:16px;}
.moment-bar { display:flex;align-items:center;justify-content:space-between;gap:10px; }
.moment-bar button { flex:none; min-height:44px; padding:4px 9px; background:#dce5d4; border:1px solid #9eb398; color:#273d31; font-size:12px; font-weight:650; }
.moment-bar.rare-active {color:#ffe1a5;}
.moment-bar.rare-active button {background:#f1ddb0; border-color:#c4ad78;}
#share.rare-ready { border-color:#a07837; background:#eeddb4; }
.captured-moment { margin:12px 0 0; }
#postcard-preview { display:block; width:100%; height:auto; image-rendering:pixelated; }
#postcard-frame { display:grid;place-items:center;aspect-ratio:1152/846;background:#f7efdf; border:1px solid #bcb29a; border-radius:4px; overflow:hidden; }
#postcard-caption { padding-top:8px; font:italic 18px/1.3 var(--serif); color:var(--ink); }
.postcard-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 10px; align-items:end; margin-top:14px; }
.postcard-frame-choice label,.postcard-post label,.visit-sharing label { display:block; margin-bottom:4px; font-size:13px; font-weight:650; }
.postcard-frame-select { position:relative; }
.postcard-frame-select select {
  appearance:none; min-height:44px; width:100%; padding-inline:8px 32px;
  border:1px solid #bdb7a3; border-radius:5px; background:#faf6e8;
}
.postcard-frame-select .glyph {
  position:absolute; inset-block-start:50%; inset-inline-end:8px; width:16px; height:16px;
  transform:translateY(-50%) rotate(90deg); pointer-events:none;
}
.postcard-toolbar small { grid-column:1/-1; color:var(--muted); font-size:13px; }
.postcard-actions,.postcard-platforms,.postcard-community > div { display:flex; flex-wrap:wrap; gap:8px; }
.postcard-actions { flex-wrap:nowrap; }
.postcard-actions button,.postcard-platforms :is(a,button),.postcard-copy-row button,.postcard-community a {
  display:grid; place-items:center; flex:none; inline-size:44px; min-block-size:44px; padding:0;
}
.postcard-actions .glyph,.postcard-platforms .glyph,.postcard-copy-row .glyph,.postcard-community .glyph { width:20px; height:20px; }
#postcard-share-toggle[aria-expanded="true"] { background:#dce5d4; color:var(--ink); border-color:#758b70; }
#postcard-share-options { margin-top:14px; padding:14px 0 0; border-top:1px solid var(--line); }
.postcard-post { margin-bottom:14px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.postcard-platforms { margin-bottom:12px; }
#image-share-action:empty { display:none; }
.postcard-copy-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:start; }
.postcard-copy-row textarea {
  inline-size:100%; min-inline-size:0; min-block-size:44px; padding:6px 8px; resize:vertical;
  border:1px solid var(--line); border-radius:4px; background:#fffcf3;
}
.visit-sharing input { width:100%; min-width:0; min-height:44px; padding:8px; border:1px solid var(--line); border-radius:4px; }
.postcard-community { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.postcard-community h3 { margin:0 0 6px; font-size:18px; }
@media (max-width:730px) {
  dialog[data-page="postcard"] {
    inline-size:min(455px, calc(100vw - 24px));
    max-inline-size:calc(100vw - 24px);
    inset-inline-start:max(12px, calc((100vw - 455px) / 2));
    inset-inline-end:auto;
    margin-inline:0;
  }
  dialog[data-page="postcard"] .modal-head {
    position:sticky;
    inset-block-start:calc(-1 * var(--dialog-padding));
    z-index:3;
    margin-block:-8px 6px;
    margin-inline:calc(-1 * var(--dialog-padding));
    padding:8px var(--dialog-padding) 7px;
    background:#faf5e7;
  }
  .moment-bar {
    display:grid; grid-template-columns:minmax(0, 1fr) 104px; gap:8px;
    min-height:52px; padding:4px 0; border:0;
  }
  .moment-bar #share { width:100%; justify-content:center; }
  .scene-bar { justify-content:space-between; border-top:1px solid #687c63; padding:3px 0; }
}
@media (max-width:370px) {
  .prop-label { max-width:125px; }
  dialog[data-page="postcard"] { --dialog-padding:14px; }
}
