body:has(#maple-world) {
  background: #e9e6dc;
  color: #293c32;
}
body:has(#maple-world) .site-main {
  padding: 0;
  max-width: none;
  width: 100%;
}
body:has(#maple-world) .container,
body:has(#maple-world) .page-wrapper {
  max-width: none;
  padding: 0;
}
body:has(#maple-world) .site-header {
  height: 64px;
  min-height: 64px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  background: #f8f6ef;
}
body:has(#maple-world) .site-header-inner {
  width: 100%;
  box-sizing: border-box;
  padding-top: 10px;
  padding-bottom: 10px;
}
body:has(#maple-world) footer,
body:has(#maple-world) .rr-auth-banner[hidden] {
  display: none;
}
#maple-world {
  --mc-paper: #fbf8ef;
  --mc-ink: #2d4338;
  --mc-muted: #657465;
  --mc-edge: #41553c24;
  position: relative;
  width: 100%;
  height: calc(100dvh - 64px);
  min-height: 480px;
  overflow: hidden;
  background: #afb995;
  font-family: Inter, system-ui, sans-serif;
  isolation: isolate;
  color: var(--mc-ink);
}
#maple-world [hidden] {
  display: none !important;
}
#world-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
#world-canvas:active {
  cursor: grabbing;
}
.mc-top {
  position: absolute;
  top: 23px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  pointer-events: none;
}
.mc-top > * {
  pointer-events: auto;
}
.mc-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: #273e30;
  text-decoration: none !important;
  font:
    500 27px Georgia,
    serif;
  letter-spacing: -0.035em;
  text-shadow: 0 1px #fffa;
  white-space: nowrap;
}
.mc-brand svg {
  width: 26px;
  height: 36px;
  flex-shrink: 0;
}
.mc-brand small {
  display: block;
  font: 10px system-ui;
  letter-spacing: 0.12em;
  margin-top: 5px;
  color: #50634c;
  text-transform: uppercase;
}
.mc-time {
  border-left: 1px solid #45583d30;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #40513e;
  min-width: 0;
}
.mc-time time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mc-time span {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-time span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8a8870;
  margin-right: 6px;
}
.mc-time span[data-live="true"]::before {
  background: #4c7548;
}
#events-toggle {
  margin-left: auto;
}
#maple-world button,
#maple-world select,
.mc-admin {
  box-sizing: border-box;
  border: 1px solid #fff9;
  background: #fbf8edeb;
  border-radius: 8px;
  color: #354c3c;
  padding: 10px 13px;
  font: 500 11px system-ui;
  box-shadow: 0 3px 14px #253d2a0d;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
#maple-world button:hover {
  background: #fffdf4;
  box-shadow: 0 4px 14px #253d2a1a;
}
#maple-world button:focus-visible,
#maple-world select:focus-visible,
#maple-world summary:focus-visible {
  outline: 2px solid #7e794b;
  outline-offset: 3px;
}
.mc-location {
  position: absolute;
  top: 108px;
  left: 31px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
  text-shadow: 0 1px 5px #eef0d7b0;
}
.mc-eyebrow {
  font-size: 8px;
  letter-spacing: 0.17em;
  font-weight: 650;
  color: #6a785b;
}
.mc-location strong {
  font:
    22px Georgia,
    serif;
  letter-spacing: -0.025em;
}
.mc-location > span:last-child {
  font-size: 10px;
  color: #526549;
  max-width: 290px;
  line-height: 1.5;
}
.mc-bottom {
  position: absolute;
  bottom: 31px;
  left: 26px;
  right: 26px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}
.mc-bottom > * {
  pointer-events: auto;
}
.mc-residents {
  display: flex;
  gap: 5px;
  background: #fbf8eee8;
  border: 1px solid #fff8;
  box-shadow: 0 5px 25px #263b2412;
  padding: 7px;
  border-radius: 12px;
  backdrop-filter: blur(16px);
}
#maple-world .mc-person {
  padding: 3px 7px;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  min-width: 52px;
  font-size: 10px;
  border-radius: 7px;
}
#maple-world .mc-person[aria-pressed="true"] {
  background: #dce2cf;
}
.mc-person canvas {
  width: 36px;
  height: 43px;
  border-radius: 5px;
}
.mc-camera {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.mc-camera select {
  width: 155px;
  max-width: 155px;
}
.mc-camera #zoom-in,
.mc-camera #zoom-out {
  width: 32px;
  padding: 10px 0;
}
.mc-hint {
  position: absolute;
  bottom: 9px;
  width: 100%;
  text-align: center;
  color: #3e573a99;
  font-size: 9px;
  pointer-events: none;
  margin: 0;
  letter-spacing: 0.03em;
}
.mc-panel {
  box-sizing: border-box;
  position: absolute;
  left: 27px;
  bottom: 132px;
  width: 296px;
  max-height: calc(100% - 230px);
  overflow: auto;
  background: #fcf9f0f5;
  border: 1px solid #fff9;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 32px #283d2820;
  backdrop-filter: blur(18px);
}
.mc-panel h2 {
  font:
    24px Georgia,
    serif;
  letter-spacing: -0.035em;
  margin: 6px 0;
  color: #2e4438;
}
.mc-panel p {
  font-size: 11px;
  line-height: 1.65;
  color: #606c5b;
  margin: 10px 0;
}
.mc-resident-heading {
  display: grid;
  grid-template-columns: 57px 1fr;
  align-items: center;
  gap: 13px;
  padding-right: 9px;
}
#resident-portrait {
  display: block;
  width: 57px;
  height: 70px;
  border-radius: 7px;
  float: none;
  margin: 0;
}
#resident-age {
  font-size: 10px;
  color: #78816c;
}
#maple-world .mc-panel .mc-close {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 3px;
  font: 19px system-ui;
  color: #74816d;
  box-shadow: none;
}
.mc-close::before,
.mc-close::after {
  content: none !important;
}
.mc-activity {
  padding-top: 11px;
  border-top: 1px solid var(--mc-edge);
  color: #344e37 !important;
  margin: 12px 0 2px !important;
}
.mc-panel .mc-resident-place {
  font-size: 10px;
  color: #808b73;
  margin: 2px 0 12px;
}
#maple-world #follow-resident {
  width: 100%;
  background: #405d45;
  border-color: #405d45;
  color: #fff9e7;
  padding: 11px 12px;
  box-shadow: none;
}
#maple-world #follow-resident[aria-pressed="true"] {
  background: #e7ebdc;
  color: #425b3e;
  border-color: #ccd4be;
}
#resident-story {
  border-top: 1px solid var(--mc-edge);
  margin-top: 13px;
  padding-top: 11px;
}
#resident-story summary {
  font-size: 10px;
  cursor: pointer;
  color: #6c7a61;
}
#resident-story p {
  margin-bottom: 0;
}
#events-panel {
  left: auto;
  right: 27px;
  top: 91px;
  bottom: auto;
  max-height: 55%;
  width: 286px;
}
.mc-panel ol {
  padding: 0;
  list-style: none;
  margin-bottom: 0;
}
.mc-panel li {
  padding: 11px 0;
  border-top: 1px solid var(--mc-edge);
  font-size: 11px;
  line-height: 1.6;
}
.mc-panel li time {
  display: block;
  font-size: 9px;
  color: #8a947d;
  margin-bottom: 4px;
}
.mc-subtle {
  font-size: 10px !important;
}
#world-message {
  position: absolute;
  left: 50%;
  top: 110px;
  transform: translateX(-50%);
  max-width: 360px;
  padding: 13px 18px;
  border-radius: 8px;
  background: #f8f5e9ee;
  color: #526347;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 4px 20px #263a2915;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.mc-noscript {
  position: absolute;
  top: 45%;
  left: 20%;
  background: #fff;
  padding: 20px;
}
@media (max-width: 760px) {
  body:has(#maple-world) .site-header__nav,
  body:has(#maple-world) .plus-pill {
    display: none;
  }
  .mc-top {
    top: 15px;
    left: 16px;
    right: 16px;
    gap: 13px;
    align-items: center;
  }
  .mc-brand {
    font-size: 21px;
    gap: 7px;
    flex: 0 0 207px;
  }
  .mc-brand svg {
    width: 21px;
    height: 30px;
  }
  .mc-brand small {
    font-size: 8px;
    letter-spacing: 0.06em;
  }
  .mc-time {
    padding-left: 12px;
    font-size: 10px;
    gap: 5px;
    flex: 1;
  }
  .mc-time span {
    font-size: 9px;
  }
  #maple-world #events-toggle {
    position: absolute;
    right: 0;
    top: 64px;
    font-size: 10px;
    padding: 8px 10px;
    max-width: 112px;
    white-space: nowrap;
  }
  .mc-admin {
    display: none;
  }
  .mc-location {
    top: 86px;
    left: 18px;
  }
  .mc-location strong {
    font-size: 20px;
  }
  .mc-location > span:last-child {
    font-size: 9px;
    max-width: 215px;
  }
  .mc-bottom {
    left: 12px;
    right: 12px;
    bottom: 29px;
    gap: 8px;
    flex-direction: column;
    align-items: center;
  }
  .mc-residents {
    padding: 5px;
    gap: 4px;
  }
  #maple-world .mc-person {
    padding: 3px 6px;
    min-width: 49px;
    font-size: 9px;
  }
  .mc-person canvas {
    width: 34px;
    height: 41px;
  }
  .mc-camera {
    justify-content: center;
    gap: 4px;
    width: 100%;
  }
  .mc-camera select {
    width: 132px;
    max-width: 132px;
    min-width: 0;
  }
  #maple-world .mc-camera button,
  #maple-world .mc-camera select {
    padding: 9px 6px;
    font-size: 10px;
  }
  #maple-world #return-live {
    width: 88px;
    padding: 9px 2px;
    white-space: nowrap;
  }
  #maple-world #return-street {
    width: 54px;
    padding: 9px 2px;
  }
  #maple-world #zoom-in,
  #maple-world #zoom-out {
    width: 29px;
    padding: 9px 0;
    flex-shrink: 0;
  }
  .mc-panel {
    left: 12px;
    right: 12px;
    bottom: 151px;
    top: auto;
    width: auto;
    max-width: 370px;
    max-height: 38%;
    padding: 15px;
    border-radius: 11px;
    margin: auto;
  }
  .mc-resident-heading {
    grid-template-columns: 46px 1fr;
    gap: 11px;
  }
  #resident-portrait {
    width: 46px;
    height: 56px;
  }
  .mc-panel h2 {
    font-size: 23px;
    margin: 4px 0;
  }
  .mc-panel .mc-eyebrow {
    font-size: 7px;
  }
  #resident-story {
    padding-top: 9px;
    margin-top: 11px;
  }
  #resident-story p {
    max-height: 88px;
    overflow: auto;
  }
  .mc-panel .mc-activity {
    margin-top: 9px !important;
    padding-top: 8px;
  }
  #events-panel {
    left: auto;
    right: 12px;
    top: 123px;
    bottom: auto;
    width: 275px;
    max-height: 47%;
  }
  .mc-hint {
    font-size: 8px;
    bottom: 9px;
    letter-spacing: 0;
  }
  #world-message {
    top: 155px;
    width: 84%;
    max-width: none;
  }
}
@media (max-width: 360px) {
  .mc-brand {
    font-size: 19px;
    flex-basis: 187px;
  }
  .mc-time {
    padding-left: 9px;
  }
  .mc-top {
    gap: 8px;
  }
  .mc-camera select {
    width: 112px;
    max-width: 112px;
  }
  .mc-residents {
    gap: 1px;
  }
  #maple-world .mc-person {
    min-width: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #maple-world button {
    transition: none;
  }
}
