:root {
  color-scheme: dark;
  --ink: #352e3b;
  --paper: #fff2d9;
  --muted: #75685f;
  --copper: #dca879;
  --plum: #47394e;
  --teal: #527b77;
  --violet: #9980af;
  --mono: "Courier New", monospace;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  background: #24212c;
  color: var(--paper);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 3px solid #f6b96c;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 16px;
}
.skip-link:focus {
  top: 20px;
}
#experience,
#world-wrap {
  position: fixed;
  inset: 0;
}
#world-wrap {
  background: #25232c url("/static/images/experience/coast.webp") center/cover
    no-repeat;
}
#world {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
#scene-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
#transition {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #27222f;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}
#transition.active {
  opacity: 1;
}

.game-dock {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 10;
}
.hud-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 11px;
  color: #f5d7b3;
  background: #302739d9;
  border: 1px solid #d8b18e99;
  border-radius: 5px;
  box-shadow: 0 3px 0 #15111c66;
  backdrop-filter: blur(5px);
}
.hud-button:hover {
  background: #54415ce8;
}
.hud-button[aria-pressed="true"] {
  color: #dfebd3;
  border-color: #b6d4b8;
}
.hud-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.sound-waves,
[aria-pressed="true"] .sound-muted {
  display: none;
}
[aria-pressed="true"] .sound-waves {
  display: block;
}
#sound-button[data-state="connecting"] {
  animation: breathe 1.3s infinite;
}
.world-marker {
  pointer-events: auto;
  position: absolute;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid #e8cda1;
  border-radius: 3px;
  background: #31273de8;
  color: #fff1d7;
  box-shadow: 0 3px 0 #231b2a88;
  font: bold 18px var(--mono);
  padding: 0;
}
.world-marker:hover {
  background: #614b6d;
}
.world-marker.accessible-marker {
  opacity: 0;
  pointer-events: none;
}
.world-marker.accessible-marker:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.has-dialog .game-dock,
.has-dialog #touch-controls {
  visibility: hidden;
}
kbd {
  font: 11px var(--mono);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 3px 5px;
}
#touch-controls {
  display: none;
}
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #292330f5;
  transition: opacity 0.6s;
}
.loading-screen.finished {
  opacity: 0;
  pointer-events: none;
}
.loading-screen p {
  font: 26px var(--serif);
  margin: 20px 0 12px;
}
.loading-screen small {
  font-size: 10px;
  letter-spacing: 1px;
  color: #cdb49f;
}
.loading-sun {
  font-size: 45px;
  color: #e3ab79;
  animation: breathe 2s ease infinite;
}
.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  padding: 13px 20px;
  background: #302639ed;
  border: 1px solid #d3ad89;
  font-size: 12px;
  border-radius: 3px;
  max-width: 90%;
  text-align: center;
}
.paper-dialog {
  color-scheme: light;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(115deg, #fff9e633, #d7a97110);
  border: 2px solid #b78558;
  outline: 1px solid #fae7c9;
  outline-offset: -7px;
  box-shadow:
    0 0 0 3px #48323b,
    0 18px 100px #130f22a6;
  border-radius: 8px;
  padding: 27px 32px;
  max-height: calc(100dvh - 40px);
}
.paper-dialog::backdrop {
  background: #18142135;
  backdrop-filter: blur(1px);
}
.paper-dialog h2 {
  font: 34px/1.2 var(--serif);
  font-weight: normal;
  margin: 23px 0 12px;
}
.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-shrink: 0;
  min-height: 32px;
}
.close-dialog {
  border: 0;
  background: transparent;
  color: #665348;
  padding: 3px 7px;
  font-size: 29px;
  min-height: 38px;
  min-width: 38px;
}
.close-dialog:hover {
  color: #a45943;
  background: #ddb68d33;
}
.panel-top > .close-dialog {
  margin-left: auto;
}
.panel-intro {
  font: 16px/1.6 var(--serif);
  color: #79685d;
  margin: 0 0 22px;
}
.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #b9956d66;
  margin-top: 24px;
  padding-top: 18px;
  font: 11px/1.4 var(--mono);
  color: #756554;
  flex-shrink: 0;
}
.panel-footer a:hover {
  color: #623d70;
}
.footer-flower {
  font-size: 24px;
  color: #b18c61;
}
.text-button {
  font: 11px var(--mono);
  background: none;
  border: 0;
  padding: 5px 0;
  min-width: unset;
  min-height: unset;
  color: #786148;
}
.text-button:hover {
  text-decoration: underline;
  background: transparent;
}
.text-button kbd {
  font-size: 10px;
  margin-right: 6px;
}
.room-dialog {
  width: 540px;
  max-width: calc(100vw - 32px);
  margin: auto;
}
.room-list {
  display: grid;
  gap: 2px;
}
.room-list > button {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid #b3957544;
  color: var(--ink);
  padding: 17px 5px;
}
.room-list > button:hover {
  background: #cbb4d029;
}
.room-list strong {
  font: 21px var(--serif);
  display: block;
}
.room-list small {
  display: block;
  font-size: 10px;
  color: #897060;
  margin-top: 6px;
}
.room-list > button > span:last-child {
  margin-left: auto;
  color: #97739e;
  font-size: 19px;
}
.room-number {
  font-size: 10px;
  color: #a18871;
  align-self: flex-start;
  padding-top: 5px;
}
.room-list [aria-current="true"] {
  background: #d6bada33;
}
.content-dialog {
  position: fixed;
  inset: 20px 20px 20px auto;
  margin: 0;
  width: min(660px, calc(100vw - 40px));
  height: calc(100dvh - 40px);
  max-height: none;
}
.content-dialog[open] {
  display: flex;
  flex-direction: column;
}
#content-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c5a989 transparent;
  flex: 1;
  padding-right: 10px;
  margin-right: -10px;
}
.content-dialog .panel-footer {
  margin-top: 14px;
}
.content-dialog h2 {
  font-size: 35px;
  line-height: 1.22;
}
.content-meta {
  font-size: 10px;
  line-height: 1.8;
  color: #89705b;
  margin: 17px 0 22px;
}
.library-tools {
  display: flex;
  gap: 12px;
  flex-direction: column;
  margin: 22px 0 14px;
}
.search-input {
  width: 100%;
  background: #fffaf0;
  border: 1px solid #bea07f;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 12px;
  border-radius: 3px;
}
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-bar button {
  border: 1px solid #bea88e;
  background: transparent;
  color: #78604d;
  padding: 6px 10px;
  font-size: 9px;
  border-radius: 3px;
}
.filter-bar button[aria-pressed="true"] {
  background: #67506d;
  border-color: #67506d;
  color: #fff3df;
}
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list li {
  border-bottom: 1px solid #b3957555;
}
.post-choice {
  padding: 19px 0 21px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
}
.post-choice:hover .post-title {
  color: #80608a;
}
.post-title {
  font: 22px/1.35 var(--serif);
  display: block;
  margin: 9px 0;
}
.post-excerpt {
  font: 14px/1.55 var(--serif);
  color: #816d5d;
  display: block;
}
.post-date {
  font-size: 9px;
  color: #9a785f;
  letter-spacing: 0.4px;
}
.post-arrow {
  float: right;
  color: #9e7aac;
  font-size: 21px;
  margin: 0 0 10px 10px;
}
.article-text {
  font: 19px/1.78 var(--serif);
  color: #3d332d;
  border-top: 1px solid #b9956d55;
  padding-top: 17px;
  overflow-wrap: anywhere;
}
.article-text p {
  margin: 0 0 1.2em;
}
.article-text h1,
.article-text h2,
.article-text h3 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.3;
  margin: 1.1em 0 0.6em;
}
.article-text h1,
.article-text h2 {
  font-size: 28px;
}
.article-text h3 {
  font-size: 23px;
}
.article-text img,
.article-text video,
.article-text iframe {
  max-width: 100%;
  height: auto;
}
.article-text pre {
  font: 12px/1.6 var(--mono);
  background: #efe0c7;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid #ccb18d;
  border-radius: 3px;
}
.article-text code {
  font-family: var(--mono);
  font-size: 0.8em;
}
.article-text blockquote {
  border-left: 3px solid #ae89ac;
  margin: 20px 0;
  padding: 0 0 0 20px;
  color: #7b5f72;
}
.article-text a {
  color: #587b74;
}
.article-text table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
  font-size: 14px;
}
.article-text td,
.article-text th {
  border: 1px solid #bda485;
  padding: 8px;
}
.reader-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 12px;
}
.small-link {
  font: 10px var(--mono);
  color: #766c66;
  border: 1px solid #c2a589;
  background: transparent;
  padding: 9px 12px;
  border-radius: 3px;
  text-decoration: none;
}
.small-link:hover {
  background: #e4d0b3;
}
.project-description,
.about-copy {
  font: 19px/1.7 var(--serif);
  color: #67564a;
}
.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #5d8078;
  color: #fff6e5;
  text-decoration: none;
  padding: 13px 18px;
  border: 1px solid #354d49;
  border-radius: 3px;
  font: 12px var(--mono);
  box-shadow: 0 2px 0 #263a3555;
}
.project-link:hover {
  background: #466e65;
}
.project-link.secondary {
  background: transparent;
  color: #765a77;
  border-color: #a68aa2;
  box-shadow: none;
}
.object-caption {
  font-size: 10px;
  color: #92775e;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #bda38366;
  padding-bottom: 16px;
  margin-top: 28px;
}
.project-emblem {
  width: 72px;
  height: 72px;
  background: #e3cfb055;
  border: 1px solid #c7a887;
  display: grid;
  place-items: center;
  color: #916976;
  font: 35px var(--serif);
  margin-top: 24px;
  box-shadow: inset 0 0 0 5px #fff2d9;
}
.project-status {
  display: inline-block;
  border: 1px solid #bda086;
  border-radius: 3px;
  padding: 8px 12px;
  font: 11px var(--mono);
  color: #917165;
}
.project-list {
  display: grid;
  gap: 0;
}
.project-list button {
  border: 0;
  border-bottom: 1px solid #c3a98988;
  background: none;
  padding: 19px 0;
  text-align: left;
  color: var(--ink);
}
.project-list button strong {
  display: block;
  font: 22px var(--serif);
  margin: 8px 0;
}
.project-list button small {
  font-size: 9px;
  color: #98755f;
  letter-spacing: 0.8px;
}
.project-list button:hover strong {
  color: #87648c;
}
.gallery-image {
  display: block;
  max-width: 100%;
  max-height: 55dvh;
  object-fit: contain;
  margin: 24px auto;
  background: #ead9bd;
  box-shadow:
    0 0 0 8px #f4e4c9,
    0 0 0 10px #a98864;
}
.gallery-empty {
  border: 1px solid #c4a484;
  background: #eadbbf55;
  outline: 1px dashed #b4977477;
  outline-offset: -10px;
  min-height: 220px;
  margin: 30px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px;
  text-align: center;
}
.gallery-empty > span {
  font-size: 52px;
  color: #af8d99;
}
.gallery-empty strong {
  font: 22px var(--serif);
  font-weight: normal;
}
.gallery-empty small {
  font: 10px var(--mono);
  color: #967e68;
}
.gallery-nav {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 25px;
}
.gallery-nav button {
  background: none;
  border: 1px solid #bba080;
  padding: 10px 14px;
  color: #75624f;
  font-size: 11px;
}
.empty-results {
  font: 17px/1.6 var(--serif);
  color: #877160;
  padding: 30px 0;
}
.error-state {
  padding-block: 30px;
}
.error-state p {
  font: 18px/1.65 var(--serif);
}

textarea {
  font: inherit;
}
textarea:focus-visible {
  outline: 3px solid #f6b96c;
  outline-offset: 4px;
}
.paper-dialog {
  border-radius: 5px;
}
.paper-dialog .panel-top h2 {
  margin: 0;
  font-size: 28px;
}
.content-dialog .panel-top {
  margin-bottom: 5px;
  gap: 14px;
}
#reader-expand {
  margin-left: auto;
  white-space: nowrap;
}
#reader-expand + .close-dialog {
  margin-left: 0;
}
.content-dialog.reader-fullscreen {
  inset: 14px;
  margin: 0 auto;
  width: min(1180px, calc(100vw - 28px));
  height: calc(100dvh - 28px);
  padding: 24px 54px;
}
.reader-fullscreen #content-body {
  padding: 0 max(8px, calc((100% - 940px) / 2));
  margin-right: 0;
}
.reader-fullscreen .article-text {
  font-size: 19px;
  line-height: 1.65;
}
.contact-dialog {
  inset: 0;
  margin: auto;
  height: min(720px, calc(100dvh - 40px));
  width: min(570px, calc(100vw - 32px));
}
.email-form {
  display: grid;
  gap: 11px;
}
.email-form label {
  font-size: 11px;
  margin-top: 10px;
  color: #806653;
}
.email-form input,
.email-form textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid #bea07f;
  padding: 12px;
  border-radius: 3px;
  font: 15px/1.5 var(--serif);
}
.email-form input[readonly] {
  background: transparent;
  border-color: #bea07f66;
}
.email-form textarea {
  min-height: 140px;
  resize: vertical;
}
.email-form .project-actions {
  margin: 12px 0 0;
}
.room-list {
  margin-top: 20px;
}
.room-list > button {
  font: 23px var(--serif);
  padding: 16px 5px;
}
.motion-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.motion-option input {
  accent-color: #82628d;
}
.radio-credit {
  display: inline-block;
  font-size: 10px;
  color: #897466;
  margin-top: 20px;
}
.character-dialog {
  width: min(590px, calc(100vw - 32px));
  margin: auto;
}
.character-types {
  display: flex;
  margin: 24px 0;
  border: 1px solid #bda086;
  border-radius: 3px;
}
.character-types button {
  flex: 1;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.character-types button[aria-pressed="true"] {
  background: #68516e;
  color: var(--paper);
}
.character-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  min-height: 168px;
}
.character-preset {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  background: #ecdec555;
  border: 1px solid #bda08677;
  border-radius: 3px;
  padding: 14px 4px 10px;
  color: #75604e;
  font-size: 10px;
}
.character-preset[aria-pressed="true"] {
  border-color: #87618e;
  background: #d6bada44;
  box-shadow: inset 0 0 0 2px #87618e33;
}
.character-preset canvas {
  width: 76px;
  height: 126px;
  image-rendering: pixelated;
}
.no-script {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #282333f0;
  padding: 12vh 10vw;
  text-align: center;
  line-height: 2;
}
.no-script h2 {
  font: 34px var(--serif);
}
.is-still *,
.is-still *::before,
.is-still *::after {
  animation: none !important;
  transition: none !important;
}
@keyframes breathe {
  50% {
    opacity: 0.5;
  }
}
@media (pointer: coarse), (max-width: 700px) {
  #touch-controls {
    display: flex;
    position: fixed;
    z-index: 12;
    left: 16px;
    right: 16px;
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 70px));
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
  }
  .dpad {
    display: grid;
    grid-template-columns: repeat(3, 40px);
    grid-template-rows: repeat(3, 38px);
    gap: 3px;
    pointer-events: auto;
    touch-action: none;
  }
  .dpad button,
  #touch-interact {
    background: #29233285;
    border: 1px solid #e8c29b80;
    color: #fff1d4;
    border-radius: 4px;
    font: 22px var(--mono);
    touch-action: none;
    user-select: none;
  }
  .dpad button:active,
  #touch-interact:active {
    background: #a083aa99;
  }
  .dpad [data-direction="up"] {
    grid-column: 2;
  }
  .dpad [data-direction="left"] {
    grid-column: 1;
    grid-row: 2;
  }
  .dpad [data-direction="right"] {
    grid-column: 3;
    grid-row: 2;
  }
  .dpad [data-direction="down"] {
    grid-column: 2;
    grid-row: 3;
  }
  #touch-interact {
    pointer-events: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 3px;
  }
}
@media (max-width: 700px) {
  .paper-dialog {
    padding: 20px;
    max-height: calc(100dvh - 24px);
  }
  .content-dialog {
    inset: 10px;
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
  }
  .content-dialog.reader-fullscreen {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: max(16px, env(safe-area-inset-top)) 18px
      max(16px, env(safe-area-inset-bottom));
  }
  .reader-fullscreen #content-body {
    padding: 0;
  }
  .content-dialog h2 {
    font-size: 29px;
  }
  .article-text,
  .reader-fullscreen .article-text {
    font-size: 18px;
  }
  .contact-dialog {
    inset: 10px;
    margin: auto;
  }
  .character-presets {
    grid-template-columns: repeat(2, 1fr);
  }
  .character-preset canvas {
    height: 110px;
    width: 70px;
    object-fit: contain;
  }
  .gallery-nav button {
    padding: 9px;
    font-size: 10px;
  }
  .game-dock {
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
