:root {
  --yard-ink: #18241c;
  --yard-cream: #fff8e9;
  --yard-paper: #f5ecd8;
  --yard-green: #2f684a;
  --yard-dark-green: #1e4a36;
  --yard-leaf: #72a85f;
  --yard-lime: #b8ce73;
  --yard-sky: #bcd9dd;
  --yard-blue: #315d7a;
  --yard-yellow: #f2c84b;
  --yard-red: #b9443d;
  --yard-earth: #856040;
}

.courtyard-history {
  order: -1;
  width: min(100%, 1240px);
  margin: 0 auto 38px;
  border: 2px solid var(--yard-ink);
  border-radius: 8px;
  color: var(--yard-ink);
  background: #e7d9b9;
  box-shadow: 5px 6px 0 var(--yard-ink);
}

.courtyard-history[hidden] {
  display: none;
}

.courtyard-history > summary {
  display: flex;
  min-height: 72px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.courtyard-history > summary::-webkit-details-marker {
  display: none;
}

.courtyard-history > summary > span:first-child {
  display: grid;
  gap: 2px;
}

.courtyard-history > summary small {
  color: #5f5b4d;
  font: 850 0.55rem/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.courtyard-history > summary strong {
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.courtyard-history > summary > span:last-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--yard-ink);
  border-radius: 50%;
  background: var(--yard-yellow);
  font: 950 1.15rem/1 ui-monospace, monospace;
  transition: transform 160ms ease;
}

.courtyard-history[open] > summary {
  border-bottom: 2px solid var(--yard-ink);
}

.courtyard-history[open] > summary > span:last-child {
  transform: rotate(45deg);
}

.courtyard-history > summary:focus-visible {
  outline: 4px solid var(--yard-yellow);
  outline-offset: 4px;
}

.courtyard-history-slot {
  padding: clamp(15px, 2vw, 24px);
  background: var(--yard-paper);
}

.courtyard-history-slot > :is(.daily-desk-call, .front-desk-board) {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.story-map-courtyard-door {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 20px;
  align-items: center;
  overflow: hidden;
  border: 2px solid var(--yard-ink);
  border-radius: 14px 14px 5px 5px;
  color: var(--yard-ink);
  background:
    linear-gradient(110deg, rgb(255 255 255 / 58%), transparent 46%),
    #cbdcaa;
  box-shadow: 5px 6px 0 var(--yard-ink);
}

.story-map-courtyard-door::after {
  position: absolute;
  right: 29%;
  bottom: -45px;
  width: 130px;
  height: 90px;
  border: 2px dashed rgb(24 36 28 / 24%);
  border-radius: 50%;
  content: "";
}

.story-map-courtyard-door > * {
  position: relative;
  z-index: 1;
}

.story-map-courtyard-door p,
.courtyard-heading p,
.courtyard-count,
.courtyard :is(.courtyard-today, .courtyard-memory, .courtyard-season) > p:first-child,
.courtyard-memory-pair dt,
.courtyard-footer,
.courtyard-branches button span,
.courtyard-branches button i,
.courtyard-origin span {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1.4;
  text-transform: uppercase;
}

.story-map-courtyard-door p {
  margin: 0 0 4px;
  color: #365840;
}

.story-map-courtyard-door h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 3.15rem);
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.story-map-courtyard-door h2 + span {
  display: block;
  margin-top: 6px;
  color: #465b49;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
}

.story-map-courtyard-seal {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 2px solid var(--yard-ink);
  border-radius: 50% 50% 46% 54%;
  color: #fff;
  background: var(--yard-green);
  box-shadow: 3px 3px 0 var(--yard-ink);
  font: 950 0.73rem/1 ui-monospace, monospace;
  transform: rotate(-4deg);
}

.story-map-courtyard-seal i {
  position: absolute;
  top: -13px;
  width: 22px;
  height: 31px;
  border: 2px solid var(--yard-ink);
  border-radius: 80% 0 80% 0;
  background: var(--yard-lime);
  transform-origin: bottom center;
}

.story-map-courtyard-seal i:first-child {
  left: 12px;
  transform: rotate(-29deg);
}

.story-map-courtyard-seal i:nth-child(2) {
  right: 11px;
  transform: rotate(23deg) scaleX(-1);
}

#story-map-courtyard-action {
  display: inline-flex;
  min-height: 48px;
  padding: 10px 13px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--yard-ink);
  border-radius: 6px;
  color: #fff;
  background: var(--yard-dark-green);
  box-shadow: 3px 3px 0 var(--yard-yellow);
  font-size: 0.71rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

#story-map-courtyard-action:hover {
  box-shadow: 5px 5px 0 var(--yard-yellow);
  transform: translate(-1px, -1px);
}

.courtyard {
  min-width: 0;
  margin-top: 18px;
  overflow: hidden;
  border: 2px solid var(--yard-ink);
  border-radius: 6px 6px 18px 18px;
  color: var(--yard-ink);
  background: var(--yard-paper);
  box-shadow: 6px 7px 0 var(--yard-ink);
}

.courtyard.is-courtyard-home {
  order: -2;
  width: min(100%, 1240px);
  margin: 0 auto 28px;
  box-shadow: 9px 10px 0 var(--yard-ink);
}

.courtyard [hidden] {
  display: none !important;
}

.courtyard :is(button, a):focus-visible,
#story-map-courtyard-action:focus-visible {
  outline: 4px solid var(--yard-yellow);
  outline-offset: 4px;
}

.courtyard-heading {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 22px 25px 19px;
  align-items: end;
  border-bottom: 2px solid var(--yard-ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 21px, rgb(24 36 28 / 5%) 21px 22px),
    var(--yard-cream);
}

.courtyard-heading p {
  margin: 0 0 5px;
  color: var(--yard-green);
}

.courtyard-heading p > span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--yard-red);
}

.courtyard-heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6.4vw, 6.7rem);
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.courtyard-heading .courtyard-count {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--yard-ink);
  border-radius: 4px;
  color: var(--yard-ink);
  background: #e7d9b9;
  text-align: right;
  transform: rotate(1deg);
}

.courtyard-count small {
  color: #676354;
  font: 750 0.51rem/1.3 ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.courtyard-scene {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0 67%, rgb(255 248 233 / 30%) 67%),
    var(--yard-sky);
  isolation: isolate;
}

.courtyard-weather,
.courtyard-ground {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.courtyard-sun {
  position: absolute;
  top: 52px;
  left: 7%;
  width: 86px;
  height: 86px;
  border: 2px solid var(--yard-ink);
  border-radius: 50%;
  background: var(--yard-yellow);
  box-shadow: 5px 5px 0 rgb(24 36 28 / 18%);
}

.courtyard-cloud {
  position: absolute;
  height: 31px;
  border: 2px solid var(--yard-ink);
  border-radius: 30px;
  background: #f9f2df;
  box-shadow: 3px 3px 0 rgb(24 36 28 / 15%);
}

.courtyard-cloud::before,
.courtyard-cloud::after {
  position: absolute;
  bottom: -2px;
  border: 2px solid var(--yard-ink);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: #f9f2df;
  content: "";
}

.courtyard-cloud::before {
  left: 15px;
  width: 37px;
  height: 36px;
}

.courtyard-cloud::after {
  right: 15px;
  width: 28px;
  height: 25px;
}

.courtyard-cloud-one {
  top: 77px;
  left: 33%;
  width: 115px;
}

.courtyard-cloud-two {
  top: 155px;
  right: 7%;
  width: 92px;
  transform: scale(0.82);
}

.courtyard-wall {
  position: absolute;
  right: -2px;
  bottom: 118px;
  left: -2px;
  display: grid;
  height: 182px;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--yard-ink);
  background: #e7cda3;
  transform: skewY(-1.1deg);
}

.courtyard-wall i {
  border-right: 1px solid rgb(24 36 28 / 30%);
  background:
    linear-gradient(90deg, transparent 49%, rgb(24 36 28 / 13%) 50% 51%, transparent 52%),
    linear-gradient(0deg, transparent 49%, rgb(24 36 28 / 13%) 50% 51%, transparent 52%);
  background-size: 90px 54px;
}

.courtyard-tree-art {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 34%;
  bottom: 58px;
  left: 2%;
  min-width: 0;
}

.courtyard[data-courtyard-changes="0"] .courtyard-tree-art {
  right: 34%;
}

.courtyard[data-courtyard-changes="0"] :is(.courtyard-crown, .courtyard-trunk, .courtyard-branches) {
  display: none;
}

.courtyard-crown {
  position: absolute;
  z-index: -1;
  border: 2px solid var(--yard-ink);
  background: var(--yard-leaf);
  box-shadow: 6px 7px 0 rgb(24 36 28 / 18%);
}

.courtyard-crown-one {
  top: 52px;
  right: 13%;
  width: 47%;
  height: 280px;
  border-radius: 48% 52% 43% 57% / 56% 48% 52% 44%;
  transform: rotate(7deg);
}

.courtyard-crown-two {
  top: 115px;
  left: 8%;
  width: 50%;
  height: 270px;
  border-radius: 59% 41% 61% 39% / 47% 57% 43% 53%;
  background: var(--yard-lime);
  transform: rotate(-5deg);
}

.courtyard-crown-three {
  top: 17px;
  left: 33%;
  width: 39%;
  height: 250px;
  border-radius: 51% 49% 43% 57% / 43% 61% 39% 57%;
  background: #4f8956;
  transform: rotate(2deg);
}

.courtyard-trunk {
  position: absolute;
  z-index: -1;
  bottom: 15px;
  left: 48%;
  width: 95px;
  height: 370px;
  border: 2px solid var(--yard-ink);
  border-radius: 43% 38% 12px 18px;
  background: var(--yard-earth);
  box-shadow: inset -15px 0 rgb(87 57 35 / 28%), 6px 4px 0 rgb(24 36 28 / 16%);
  transform: translateX(-50%) rotate(1.5deg);
}

.courtyard-trunk::before,
.courtyard-trunk::after {
  position: absolute;
  width: 195px;
  height: 31px;
  border: 2px solid var(--yard-ink);
  border-radius: 50%;
  background: var(--yard-earth);
  content: "";
  transform-origin: left center;
}

.courtyard-trunk::before {
  top: 79px;
  left: 46px;
  transform: rotate(-32deg);
}

.courtyard-trunk::after {
  top: 143px;
  left: 35px;
  transform: rotate(204deg);
}

.courtyard-trunk i {
  position: absolute;
  width: 31px;
  height: 8px;
  border-top: 2px solid rgb(24 36 28 / 54%);
  border-radius: 50%;
}

.courtyard-trunk i:first-child { top: 191px; left: 12px; transform: rotate(-8deg); }
.courtyard-trunk i:nth-child(2) { top: 246px; right: 9px; transform: rotate(9deg); }
.courtyard-trunk i:nth-child(3) { top: 302px; left: 19px; transform: rotate(-4deg); }

.courtyard-branches {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  list-style: none;
}

.courtyard-branches li {
  position: absolute;
  width: clamp(155px, 25%, 210px);
}

.courtyard-branches li[data-slot="0"] { top: 91px; left: 3%; }
.courtyard-branches li[data-slot="1"] { top: 105px; right: 2%; }
.courtyard-branches li[data-slot="2"] { top: 245px; left: 0; }
.courtyard-branches li[data-slot="3"] { top: 260px; right: 0; }
.courtyard-branches li[data-slot="4"] { top: 382px; left: 13%; }

.courtyard-branches button {
  position: relative;
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 10px 11px;
  border: 2px solid var(--yard-ink);
  border-left: 7px solid var(--yard-green);
  border-radius: 5px;
  color: var(--yard-ink);
  background: rgb(255 248 233 / 95%);
  box-shadow: 4px 4px 0 var(--yard-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.courtyard-branches li[data-change-kind="visitors"] button { border-left-color: var(--yard-blue); }
.courtyard-branches li[data-change-kind="refusal"] button { border-left-color: var(--yard-red); }
.courtyard-branches li[data-change-kind="shelter"] button { border-left-color: var(--yard-yellow); }

.courtyard-branches button::after {
  position: absolute;
  top: -10px;
  right: 9px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--yard-ink);
  border-radius: 50% 0 50% 50%;
  background: var(--yard-leaf);
  content: "";
  transform: rotate(30deg);
}

.courtyard-branches button:hover {
  box-shadow: 6px 6px 0 var(--yard-ink);
  transform: translate(-1px, -1px) rotate(-0.5deg);
}

.courtyard-branches button span {
  color: var(--yard-green);
  font-size: 0.48rem;
}

.courtyard-branches button strong {
  font-size: 0.76rem;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.courtyard-branches button small {
  color: #57594f;
  font-size: 0.58rem;
  font-weight: 680;
  line-height: 1.3;
}

.courtyard-branches button i {
  margin-top: 3px;
  color: var(--yard-blue);
  font-size: 0.45rem;
  font-style: normal;
}

.courtyard-branches button[data-pip-return="changed"] {
  border-left-color: #8f382d;
  background:
    linear-gradient(118deg, rgb(245 217 133 / 72%), transparent 48%),
    rgb(255 248 233 / 98%);
  box-shadow: 5px 5px 0 var(--yard-ink), 9px 9px 0 var(--yard-yellow);
}

.courtyard-branches button[data-pip-return="changed"]::before {
  position: absolute;
  right: -8px;
  bottom: -12px;
  padding: 4px 6px;
  border: 2px solid var(--yard-ink);
  color: #fff8e9;
  background: var(--yard-red);
  box-shadow: 2px 2px 0 var(--yard-ink);
  content: "PIP / RETURNED";
  font: 950 0.42rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.035em;
  transform: rotate(-4deg);
}

.courtyard-origin {
  position: absolute;
  z-index: 5;
  bottom: 8px;
  left: 23%;
  display: grid;
  width: clamp(210px, 39%, 300px);
  gap: 3px;
  padding: 12px 16px;
  border: 2px solid var(--yard-ink);
  border-radius: 50% 50% 12px 12px;
  color: #fff;
  background: var(--yard-dark-green);
  box-shadow: 5px 5px 0 var(--yard-yellow);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transform: rotate(-1deg);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.courtyard[data-courtyard-changes="0"] .courtyard-origin {
  bottom: 72px;
  left: 50%;
  width: min(72%, 270px);
  border-radius: 50% 50% 12px 12px;
  background: #6f4f36;
  transform: translateX(-50%) rotate(-1deg);
}

.courtyard[data-courtyard-changes="0"] .courtyard-origin::before,
.courtyard[data-courtyard-changes="0"] .courtyard-origin::after {
  position: absolute;
  bottom: calc(100% - 2px);
  border: 2px solid var(--yard-ink);
  content: "";
}

.courtyard[data-courtyard-changes="0"] .courtyard-origin::before {
  left: 50%;
  width: 6px;
  height: 42px;
  border-width: 0 2px 0 0;
  transform: translateX(-50%) rotate(-4deg);
}

.courtyard[data-courtyard-changes="0"] .courtyard-origin::after {
  left: calc(50% + 2px);
  width: 27px;
  height: 17px;
  border-radius: 80% 0 80% 0;
  background: var(--yard-lime);
  transform: translateY(-30px) rotate(-13deg);
}

.courtyard[data-courtyard-changes="0"] .courtyard-origin:hover {
  transform: translate(-50%, -1px) rotate(-1deg);
}

.courtyard-origin:hover {
  box-shadow: 7px 7px 0 var(--yard-yellow);
  transform: translate(-1px, -1px) rotate(-1deg);
}

.courtyard-origin span {
  color: #b8d8be;
  font-size: 0.5rem;
}

.courtyard-origin strong {
  font-size: 0.77rem;
  line-height: 1.15;
}

.courtyard-origin small {
  color: rgb(255 255 255 / 72%);
  font-size: 0.56rem;
  font-weight: 700;
}

.courtyard-unknown {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 1%;
  display: grid;
  width: clamp(175px, 29%, 225px);
  gap: 3px;
  padding: 11px 12px 11px 47px;
  border: 2px dashed var(--yard-ink);
  border-radius: 5px;
  color: #374439;
  background: rgb(245 236 216 / 88%);
  box-shadow: 3px 3px 0 rgb(24 36 28 / 18%);
  transform: rotate(2deg);
}

.courtyard-unknown > span {
  position: absolute;
  top: 50%;
  left: 12px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font: 950 0.8rem/1 ui-monospace, monospace;
  transform: translateY(-50%);
}

.courtyard-unknown strong {
  font-size: 0.69rem;
  line-height: 1.15;
}

.courtyard-unknown small {
  font-size: 0.54rem;
  font-weight: 680;
  line-height: 1.3;
}

.courtyard-season-guest {
  position: absolute;
  z-index: 6;
  right: 7%;
  bottom: 54px;
  width: 142px;
  height: 178px;
  filter: drop-shadow(5px 6px 0 rgb(24 36 28 / 18%));
  transform-origin: center bottom;
  animation: courtyard-pigeon-arrive 520ms cubic-bezier(0.2, 0.9, 0.3, 1.18) both;
}

.courtyard-pigeon-body {
  position: absolute;
  right: 18px;
  bottom: 34px;
  width: 86px;
  height: 100px;
  border: 2px solid var(--yard-ink);
  border-radius: 52% 48% 44% 56% / 59% 55% 45% 41%;
  background: #748995;
  transform: rotate(-5deg);
}

.courtyard-pigeon-body::before {
  position: absolute;
  right: 9px;
  top: 29px;
  width: 55px;
  height: 45px;
  border: 2px solid var(--yard-ink);
  border-radius: 60% 40% 53% 47%;
  background: #9cacb2;
  content: "";
  transform: rotate(12deg);
}

.courtyard-pigeon-body i {
  position: absolute;
  z-index: 1;
  right: 17px;
  top: 40px;
  width: 31px;
  border-top: 2px solid var(--yard-ink);
  transform: rotate(19deg);
}

.courtyard-pigeon-body i:nth-child(2) { top: 49px; width: 25px; }
.courtyard-pigeon-body i:nth-child(3) { top: 58px; width: 20px; }

.courtyard-pigeon-head {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 5px;
  width: 70px;
  height: 70px;
  border: 2px solid var(--yard-ink);
  border-radius: 55% 45% 48% 52%;
  background: #607985;
}

.courtyard-pigeon-head::before {
  position: absolute;
  right: -25px;
  top: 26px;
  width: 29px;
  height: 18px;
  border: 2px solid var(--yard-ink);
  border-radius: 0 80% 25% 0;
  background: var(--yard-yellow);
  content: "";
  transform: skewX(-16deg);
}

.courtyard-pigeon-head::after {
  position: absolute;
  right: 13px;
  top: 17px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--yard-ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 4px 0 var(--yard-ink);
  content: "";
}

.courtyard-pigeon-head i:first-child {
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 42px;
  height: 16px;
  border-radius: 50%;
  background: #5aa188;
  transform: rotate(12deg);
}

.courtyard-pigeon-head i:nth-child(2) {
  position: absolute;
  right: 7px;
  bottom: 0;
  width: 36px;
  height: 11px;
  border-radius: 50%;
  background: #8a64a1;
  transform: rotate(12deg);
}

.courtyard-pigeon-leg {
  position: absolute;
  z-index: -1;
  bottom: 8px;
  left: 55px;
  width: 2px;
  height: 36px;
  background: var(--yard-red);
}

.courtyard-pigeon-leg::after {
  position: absolute;
  bottom: 0;
  left: -8px;
  width: 17px;
  border-top: 2px solid var(--yard-red);
  content: "";
}

.courtyard-pigeon-leg.is-right {
  left: 84px;
  height: 31px;
}

.courtyard-pigeon-folder,
.courtyard-pigeon-ticket {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 45px;
  padding: 5px 7px;
  border: 2px solid var(--yard-ink);
  color: var(--yard-ink);
  background: #f6df9f;
  font: 950 0.47rem/1 ui-monospace, monospace;
  transform: rotate(6deg);
}

.courtyard-pigeon-ticket {
  display: none;
  right: 8px;
  bottom: 70px;
  width: 37px;
  height: 45px;
  place-items: center;
  border-style: dashed;
  background: #fff8e9;
  font-size: 0.86rem;
  transform: rotate(-8deg);
}

.courtyard-season-guest[data-guest-mood="ticket"] .courtyard-pigeon-ticket {
  display: grid;
}

.courtyard-season-guest[data-guest-mood="ticket"] .courtyard-pigeon-folder {
  display: none;
}

.courtyard-season-guest[data-guest-mood="clerk"] .courtyard-pigeon-folder {
  right: -7px;
  bottom: 62px;
  background: #fff;
  transform: rotate(-2deg) scale(1.1);
}

.courtyard-season-guest[data-guest-mood="clerk"]::before {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 3px;
  width: 73px;
  padding: 4px 2px;
  border: 2px solid var(--yard-ink);
  background: var(--yard-yellow);
  content: "CLERK";
  font: 950 0.45rem/1 ui-monospace, monospace;
  text-align: center;
  transform: rotate(-7deg);
}

.courtyard-season-tree-change {
  position: absolute;
  z-index: 5;
  right: 2%;
  bottom: 28px;
  width: 210px;
  height: 120px;
  transform-origin: left bottom;
  animation: courtyard-tree-response 430ms cubic-bezier(0.2, 0.9, 0.32, 1.25) both;
}

.courtyard-season-perch {
  position: absolute;
  right: 5px;
  bottom: 18px;
  width: 190px;
  height: 25px;
  border: 2px solid var(--yard-ink);
  border-radius: 50%;
  background: var(--yard-earth);
  transform: rotate(-3deg);
}

.courtyard-season-sign {
  position: absolute;
  right: 13px;
  bottom: 40px;
  display: grid;
  min-width: 128px;
  gap: 2px;
  padding: 8px 9px;
  border: 2px solid var(--yard-ink);
  border-radius: 3px;
  background: var(--yard-yellow);
  box-shadow: 3px 3px 0 var(--yard-ink);
  text-align: center;
  transform: rotate(2deg);
}

.courtyard-season-sign small,
.courtyard-season-sign strong {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  line-height: 1.1;
}

.courtyard-season-sign small {
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.courtyard-season-sign strong {
  font-size: 0.6rem;
  font-weight: 950;
}

.courtyard-season-tree-change[data-tree-response="canopy-desk"] .courtyard-season-sign {
  right: 27px;
  bottom: 28px;
  min-width: 148px;
  background: #f9e5b2;
  transform: rotate(-2deg);
}

.courtyard-season-tree-change[data-tree-response="canopy-desk"] .courtyard-season-perch {
  height: 38px;
  border-radius: 8px;
  background: #6c8f55;
  transform: rotate(2deg);
}

.courtyard-ground {
  z-index: 1;
  top: auto;
  height: 148px;
  border-top: 2px solid var(--yard-ink);
  background: #a8b879;
}

.courtyard-ground i {
  position: absolute;
  bottom: 0;
  width: 58px;
  height: 86px;
  border: 2px solid var(--yard-ink);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: #6c8f55;
  transform-origin: bottom center;
}

.courtyard-ground i:first-child { left: 4%; transform: rotate(-6deg); }
.courtyard-ground i:nth-child(2) { left: 15%; height: 59px; transform: rotate(8deg); }
.courtyard-ground i:nth-child(3) { right: 44%; height: 72px; transform: rotate(-4deg); }
.courtyard-ground i:nth-child(4) { right: 18%; height: 66px; transform: rotate(7deg); }
.courtyard-ground i:nth-child(5) { right: 5%; height: 92px; transform: rotate(-8deg); }

.courtyard-today,
.courtyard-memory,
.courtyard-season {
  position: absolute;
  z-index: 7;
  top: 110px;
  right: 3%;
  width: 29%;
  min-width: 260px;
  padding: 19px 20px;
  border: 2px solid var(--yard-ink);
  border-radius: 6px;
  color: var(--yard-ink);
  background: rgb(255 248 233 / 96%);
  box-shadow: 6px 6px 0 var(--yard-ink);
}

.courtyard-memory {
  top: 84px;
  background: #f9e5b2;
}

.courtyard-season {
  top: 66px;
  width: 35%;
  min-width: 300px;
  background: rgb(255 248 233 / 97%);
}

.courtyard-season[data-season-state="locked"] {
  border-style: dashed;
  background: rgb(245 236 216 / 96%);
}

.courtyard :is(.courtyard-today, .courtyard-memory, .courtyard-season) > p:first-child {
  margin: 0 0 6px;
  color: var(--yard-green);
}

.courtyard :is(.courtyard-today, .courtyard-memory, .courtyard-season) h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.courtyard :is(.courtyard-today, .courtyard-memory, .courtyard-season) h3 + p {
  margin: 12px 0 0;
  color: #4b5047;
  font-size: 0.7rem;
  font-weight: 660;
  line-height: 1.5;
}

#courtyard-next-action,
#courtyard-return-today,
#courtyard-season-open {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  margin-top: 16px;
  padding: 8px 10px;
  align-items: center;
  border: 2px solid var(--yard-ink);
  border-radius: 5px;
  color: #fff;
  background: var(--yard-dark-green);
  box-shadow: 3px 3px 0 var(--yard-yellow);
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

#courtyard-season-open {
  width: 100%;
  justify-content: space-between;
}

.courtyard-season-encounter {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dashed rgb(24 36 28 / 38%);
}

.courtyard-guest-name {
  margin: 0 0 7px;
  color: var(--yard-blue);
  font: 900 0.54rem/1.35 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.courtyard-season blockquote {
  margin: 0;
  padding: 10px 11px;
  border: 1px solid var(--yard-ink);
  border-left: 6px solid var(--yard-yellow);
  background: #fff;
  font-size: 0.69rem;
  font-weight: 750;
  line-height: 1.45;
}

.courtyard-season-actions {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.courtyard-season-actions legend {
  margin-bottom: 8px;
  color: var(--yard-ink);
  font-size: 0.67rem;
  font-weight: 900;
  line-height: 1.35;
}

.courtyard-season-actions button {
  display: grid;
  width: 100%;
  min-height: 58px;
  gap: 3px;
  padding: 10px 11px;
  border: 2px solid var(--yard-ink);
  border-radius: 5px;
  color: var(--yard-ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--yard-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.courtyard-season-actions button:first-of-type {
  background: #fff0b9;
}

.courtyard-season-actions button:hover {
  box-shadow: 5px 5px 0 var(--yard-ink);
  transform: translate(-1px, -1px);
}

.courtyard-season-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.courtyard-season-actions button strong {
  font-size: 0.7rem;
  line-height: 1.2;
}

.courtyard-season-actions button span {
  color: #5a5d53;
  font-size: 0.58rem;
  font-weight: 680;
  line-height: 1.35;
}

.courtyard-season-result {
  margin-top: 17px;
  padding: 13px;
  border: 2px solid var(--yard-ink);
  border-left: 8px solid var(--yard-yellow);
  border-radius: 4px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--yard-ink);
}

.courtyard-season-result:focus {
  outline: 4px solid var(--yard-yellow);
  outline-offset: 4px;
}

.courtyard-season-result > strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
}

.courtyard-season-result > p:not(.courtyard-guest-name) {
  margin: 8px 0 0;
  color: #4b5047;
  font-size: 0.64rem;
  font-weight: 680;
  line-height: 1.45;
}

.courtyard-season-result .courtyard-season-return {
  padding-top: 8px;
  border-top: 1px dashed rgb(24 36 28 / 35%);
  color: var(--yard-green);
}

.courtyard-season-status {
  min-height: 1.3em;
  margin: 13px 0 0;
  color: var(--yard-green);
  font: 800 0.55rem/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.courtyard-season-status.is-warning {
  color: var(--yard-red);
}

.courtyard-memory-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 14px 0 0;
}

.courtyard-memory-pair div {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border-left: 4px solid var(--yard-green);
  background: rgb(255 255 255 / 45%);
}

.courtyard-memory-pair dt {
  color: #5d6559;
  font-size: 0.45rem;
}

.courtyard-memory-pair dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--yard-red);
  font: 900 0.59rem/1.25 ui-monospace, monospace;
}

.courtyard-memory-consequence {
  display: block;
  margin-top: 13px;
  padding: 10px;
  border: 1px solid var(--yard-ink);
  border-left: 6px solid var(--yard-red);
  background: rgb(255 248 233 / 66%);
  font-size: 0.64rem;
  line-height: 1.4;
}

.courtyard-footer {
  display: flex;
  gap: 15px 25px;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--yard-ink);
  color: #e3efe4;
  background: var(--yard-dark-green);
}

.courtyard-footer p {
  margin: 0;
}

.courtyard-footer .is-warning {
  color: #ffcf77;
}

.courtyard-footer > span {
  color: rgb(255 255 255 / 67%);
  font-size: 0.54rem;
  text-align: right;
}

.courtyard-branches li {
  animation: courtyard-branch-in 540ms cubic-bezier(0.19, 0.86, 0.29, 1) both;
}

.courtyard-branches li[data-pip-return="changed"] {
  animation: courtyard-return-grow 760ms cubic-bezier(0.16, 0.86, 0.26, 1.18) both;
}

.courtyard-branches li:nth-child(2) { animation-delay: 60ms; }
.courtyard-branches li:nth-child(3) { animation-delay: 120ms; }
.courtyard-branches li:nth-child(4) { animation-delay: 180ms; }
.courtyard-branches li:nth-child(5) { animation-delay: 240ms; }

.courtyard[data-courtyard-state="memory"] .courtyard-memory {
  animation: courtyard-memory-in 260ms ease-out both;
}

.story-map-courtyard-seal i {
  animation: courtyard-leaf-wave 2.8s ease-in-out infinite alternate;
}

.story-map-courtyard-seal i:nth-child(2) {
  animation-delay: -1.1s;
}

.courtyard-branches li[data-slot="1"]::before,
.courtyard-branches li[data-slot="1"]::after {
  position: absolute;
  z-index: 3;
  top: -27px;
  width: 18px;
  height: 13px;
  border: 2px solid var(--yard-ink);
  border-radius: 70% 30% 55% 45%;
  background: var(--yard-yellow);
  content: "";
  pointer-events: none;
}

.courtyard-branches li[data-slot="1"]::before {
  right: 31px;
  transform: rotate(-12deg);
}

.courtyard-branches li[data-slot="1"]::after {
  right: 8px;
  background: var(--yard-red);
  transform: rotate(17deg) scale(0.82);
}

@keyframes courtyard-branch-in {
  from { opacity: 0; transform: translateY(13px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes courtyard-return-grow {
  0% { opacity: 0.72; transform: scale(0.88) rotate(-2deg); filter: saturate(0.55); }
  46% { opacity: 1; transform: scale(1.06) rotate(1deg); filter: saturate(1.2); }
  100% { opacity: 1; transform: scale(1) rotate(0); filter: saturate(1); }
}

@keyframes courtyard-memory-in {
  from { opacity: 0; transform: translateY(10px) rotate(0.7deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes courtyard-leaf-wave {
  from { rotate: -3deg; }
  to { rotate: 7deg; }
}

@keyframes courtyard-pigeon-arrive {
  from { opacity: 0; transform: translate(34px, -48px) rotate(7deg) scale(0.82); }
  to { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
}

@keyframes courtyard-tree-response {
  from { opacity: 0; transform: rotate(-8deg) scale(0.55); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

@media (max-width: 1080px) {
  .courtyard-tree-art {
    right: 31%;
  }

  .courtyard-today,
  .courtyard-memory,
  .courtyard-season {
    right: 2%;
    width: 31%;
    min-width: 245px;
  }

  .courtyard-branches li {
    width: clamp(145px, 27%, 190px);
  }
}

@media (max-width: 860px) {
  .story-map-courtyard-door {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  #story-map-courtyard-action {
    grid-column: 1 / -1;
    width: fit-content;
    margin-left: 88px;
  }

  .courtyard-scene {
    display: grid;
    min-height: 960px;
    align-content: start;
  }

  .courtyard-tree-art {
    position: relative;
    inset: auto;
    min-height: 655px;
    margin: 20px 16px 0;
  }

  .courtyard-today,
  .courtyard-memory,
  .courtyard-season {
    position: relative;
    inset: auto;
    width: auto;
    min-width: 0;
    margin: 4px 22px 28px;
  }

  .courtyard-memory {
    background: rgb(249 229 178 / 96%);
  }

  .courtyard-season {
    background: rgb(255 248 233 / 97%);
  }

  .courtyard[data-courtyard-changes="0"] .courtyard-scene {
    min-height: 760px;
  }

  .courtyard[data-courtyard-changes="0"] .courtyard-tree-art {
    min-height: 430px;
  }

  .courtyard-ground {
    height: 260px;
  }
}

@media (max-width: 620px) {
  .story-map-courtyard-door {
    grid-template-columns: minmax(0, 1fr);
    padding: 21px 16px 17px;
  }

  .story-map-courtyard-seal {
    width: 59px;
    height: 59px;
  }

  #story-map-courtyard-action {
    grid-column: auto;
    width: 100%;
    margin-left: 0;
  }

  .courtyard-heading {
    grid-template-columns: minmax(0, 1fr);
    padding: 21px 16px 17px;
  }

  .courtyard-heading h2 {
    font-size: clamp(2.65rem, 15vw, 4.4rem);
  }

  .courtyard-heading .courtyard-count {
    width: fit-content;
    text-align: left;
    transform: none;
  }

  .courtyard-tree-art {
    min-height: 730px;
    margin: 16px 8px 0;
  }

  .courtyard[data-courtyard-changes="0"] .courtyard-tree-art {
    min-height: 410px;
  }

  .courtyard-crown-one {
    right: 3%;
    width: 58%;
  }

  .courtyard-crown-two {
    left: 0;
    width: 59%;
  }

  .courtyard-crown-three {
    left: 27%;
    width: 47%;
  }

  .courtyard-branches li {
    width: min(46%, 190px);
  }

  .courtyard-branches li[data-slot="0"] { top: 112px; left: 1%; }
  .courtyard-branches li[data-slot="1"] { top: 126px; right: 1%; }
  .courtyard-branches li[data-slot="2"] { top: 262px; left: 0; }
  .courtyard-branches li[data-slot="3"] { top: 277px; right: 0; }
  .courtyard-branches li[data-slot="4"] { top: 405px; left: 5%; }

  .courtyard-unknown {
    top: 8px;
    right: 0;
    width: min(55%, 210px);
  }

  .courtyard-origin {
    bottom: 15px;
    left: 50%;
    width: min(76%, 290px);
    transform: translateX(-50%) rotate(-1deg);
  }

  .courtyard-origin:hover {
    transform: translate(-50%, -1px) rotate(-1deg);
  }

  .courtyard-today,
  .courtyard-memory,
  .courtyard-season {
    margin: 2px 12px 24px;
    padding: 17px 16px;
  }

  .courtyard-footer {
    align-items: start;
    flex-direction: column;
  }

  .courtyard-footer > span {
    text-align: left;
  }

  .courtyard-season-guest {
    right: 4%;
  }

  .courtyard-season-tree-change {
    right: 1%;
  }

  .courtyard-history {
    margin-bottom: 30px;
    box-shadow: 4px 5px 0 var(--yard-ink);
  }

  .courtyard-history-slot {
    padding: 10px;
  }
}

@media (max-width: 430px) {
  .courtyard-tree-art {
    min-height: 830px;
  }

  .courtyard[data-courtyard-changes="0"] .courtyard-tree-art {
    min-height: 420px;
  }

  .courtyard-crown-one,
  .courtyard-crown-two,
  .courtyard-crown-three {
    top: 82px;
    right: 6%;
    left: 6%;
    width: 88%;
    height: 520px;
  }

  .courtyard-crown-two { transform: rotate(4deg); }
  .courtyard-crown-three { transform: rotate(-3deg) scale(0.84); }

  .courtyard-trunk {
    height: 440px;
  }

  .courtyard-branches li {
    right: 30px !important;
    left: 30px !important;
    width: auto;
  }

  .courtyard-branches li[data-slot="0"] { top: 132px; }
  .courtyard-branches li[data-slot="1"] { top: 236px; }
  .courtyard-branches li[data-slot="2"] { top: 340px; }
  .courtyard-branches li[data-slot="3"] { top: 444px; }
  .courtyard-branches li[data-slot="4"] { top: 548px; }

  .courtyard-unknown {
    top: 7px;
    right: 12px;
    width: calc(100% - 24px);
  }

  .courtyard-origin {
    bottom: 14px;
    width: calc(100% - 62px);
  }

  .courtyard-wall {
    bottom: 135px;
  }

  .courtyard-season-guest {
    right: 14px;
    bottom: 36px;
    transform: scale(0.9);
  }

  .courtyard-season-tree-change {
    right: 8px;
    bottom: 13px;
    transform: scale(0.85);
  }

  #courtyard-next-action,
  #courtyard-return-today,
  #courtyard-season-open {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-map-courtyard-seal i,
  .courtyard-branches li,
  .courtyard-branches li[data-pip-return="changed"],
  .courtyard[data-courtyard-state="memory"] .courtyard-memory,
  .courtyard-season-guest,
  .courtyard-season-tree-change {
    animation: none;
  }

  #story-map-courtyard-action,
  .courtyard :is(button, a),
  .courtyard-history > summary {
    scroll-behavior: auto;
    transition: none;
  }
}
