* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #242b3b;
  color: #eee5d3;
  font-family: Georgia, "Times New Roman", serif;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 2px solid #dfbd83;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
#walk {
  position: fixed;
  inset: 30px 0 0;
  overflow: hidden;
}
#world {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}
#labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.label {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  text-align: center;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.09em;
  color: #eee5d3;
  text-shadow: 0 1px 5px #24202a;
}
.label.place {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: #242b3b85;
  padding: 5px 8px;
  border: 1px solid #e0d4bc30;
}
.label.ghost {
  padding: 5px 9px;
  background: #242b3bcc;
  border-radius: 3px;
}
.label.speech {
  max-width: 260px;
  white-space: normal;
  font:
    15px/1.5 Georgia,
    serif;
  background: #eee5d3;
  color: #293242;
  padding: 12px 16px;
  border-radius: 12px 12px 12px 2px;
  text-shadow: none;
  box-shadow: 0 6px 24px #261e3540;
}
.masthead {
  position: absolute;
  top: 28px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}
.eyebrow {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.22em;
  color: #c7c6bd;
}
h1 {
  font-weight: 400;
  letter-spacing: -0.06em;
  font-size: 39px;
  margin: 6px 0;
}
h1 span {
  font:
    italic 16px Georgia,
    serif;
  letter-spacing: 0;
  color: #d9c3cc;
}
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    10px ui-monospace,
    monospace;
  background: #242b3bab;
  padding: 10px 13px;
  border: 1px solid #f5e0e426;
  border-radius: 3px;
}
.connection i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d7baa0;
}
.connection i.connected {
  background: #b9d3c7;
}
.coordinates {
  position: absolute;
  right: 32px;
  bottom: 100px;
  text-align: right;
  font:
    10px ui-monospace,
    monospace;
  display: grid;
  gap: 9px;
  pointer-events: none;
  text-shadow: 0 2px 8px #17111b;
}
.coordinates span:last-child {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #c7c6bd;
}
#arrival {
  position: absolute;
  left: 7%;
  top: 30%;
  width: 330px;
  background: linear-gradient(100deg, #242b3bb8, transparent);
  padding: 22px 26px;
  border-left: 1px solid #e6ceda55;
}
#arrival h2 {
  font-weight: 400;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 18px 0;
}
#arrival p {
  font-size: 14px;
  line-height: 1.7;
  color: #e0ced3;
}
#enter {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 14px 17px;
  border: 1px solid #f9e5e054;
  background: #e0d4bc;
  color: #3b303c;
  margin: 25px 0 17px;
  text-align: left;
}
#arrival small {
  font:
    9px/1.9 ui-monospace,
    monospace;
  color: #d7c1ca;
}
.dock {
  position: absolute;
  bottom: 22px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #f4e0eb38;
  padding-top: 14px;
}
.dock button {
  border: 1px solid #e1ccd82b;
  background: #293242cc;
  border-radius: 3px;
  padding: 10px 13px;
  font-size: 16px;
}
.dock button span {
  font:
    10px ui-monospace,
    monospace;
  margin-left: 8px;
}
.dock button:hover,
.dock button[aria-expanded="true"],
.dock button[aria-pressed="true"] {
  background: #e0d4bc;
  color: #3c303f;
}
.dock b {
  font:
    9px ui-monospace,
    monospace;
  padding: 2px 4px;
  background: #713f4c;
  margin-left: 6px;
  border-radius: 3px;
}
.control-hint {
  margin-left: auto;
  font:
    9px ui-monospace,
    monospace;
  color: #c7c6bd;
}
.control-hint em {
  padding: 0 10px;
  color: #aa8b9f;
}
aside {
  position: absolute;
  right: 25px;
  top: 110px;
  bottom: 100px;
  width: 330px;
  overflow: auto;
  background: #292430ed;
  backdrop-filter: blur(14px);
  border: 1px solid #b99ca64d;
  padding: 24px;
  box-shadow: 0 20px 60px #15111b44;
  scrollbar-color: #866475 transparent;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.panel-heading h2 {
  font-size: 23px;
  font-weight: 400;
  margin: 0;
}
.panel-heading button {
  font-size: 25px;
  background: none;
  border: 0;
}
.muted {
  font-size: 12px;
  color: #c3aebb;
  line-height: 1.6;
}
h3 {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  color: #d4b3c4;
  margin: 26px 0 12px;
}
#residents button,
#places button,
#objects button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid #b493a320;
  padding: 11px 0;
  font-size: 14px;
}
#residents small,
#places small {
  font:
    9px ui-monospace,
    monospace;
  color: #bca8b9;
  text-align: right;
}
#transcript {
  width: 410px;
}
article {
  border-top: 1px solid #b493a334;
  padding: 16px 0;
}
article header {
  font:
    10px/1.7 ui-monospace,
    monospace;
  color: #ddb8c8;
}
article p {
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 0;
}
article button {
  background: none;
  border: 1px solid #b493a355;
  padding: 5px 9px;
  font-size: 11px;
  margin-top: 12px;
}
#live-line {
  position: absolute;
  bottom: 103px;
  left: 32px;
  max-width: 380px;
  padding: 14px 18px;
  border-left: 2px solid #d8a5b8;
  background: #242b3bd9;
}
#live-speaker {
  display: block;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  color: #dcb7ca;
  margin-bottom: 7px;
}
#live-content {
  display: block;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font:
    14px/1.5 Georgia,
    serif;
  color: #f6e8e9;
}
#failure {
  position: absolute;
  inset: 30% 15%;
  background: #242b3b;
  padding: 30px;
  z-index: 20;
}
#failure a {
  color: #edc3d1;
}
#failure button {
  margin: 15px;
  padding: 8px;
  background: none;
  border: 1px solid #b99ca6;
}
#touch-controls {
  display: none;
}
noscript {
  position: absolute;
  top: 40%;
  left: 15%;
  background: #242b3b;
  padding: 20px;
}
@media (max-width: 760px) {
  .masthead {
    top: 20px;
    left: 20px;
    right: 20px;
  }
  .eyebrow {
    font-size: 7px;
  }
  h1 {
    font-size: 32px;
  }
  .connection {
    font-size: 8px;
    padding: 8px;
    max-width: 140px;
  }
  .dock {
    left: 15px;
    right: 15px;
    bottom: 15px;
    justify-content: space-between;
  }
  .dock button {
    padding: 8px;
  }
  .dock button span {
    font-size: 8px;
    margin-left: 3px;
  }
  .control-hint {
    display: none;
  }
  #arrival {
    left: 7%;
    top: 25%;
    width: 300px;
  }
  #arrival h2 {
    font-size: 40px;
  }
  aside,
  #transcript {
    left: 15px;
    right: 15px;
    width: auto;
    top: 100px;
    bottom: 80px;
    z-index: 5;
  }
  #live-line {
    left: 18px;
    bottom: 160px;
    max-width: 280px;
  }
  .coordinates {
    right: 20px;
    bottom: 220px;
  }
}
@media (pointer: coarse), (max-width: 760px) {
  #touch-controls {
    position: absolute;
    bottom: 80px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
  }
  #touch-controls > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  #touch-controls button {
    pointer-events: auto;
    touch-action: none;
    width: 42px;
    height: 38px;
    background: #382d43a6;
    border: 1px solid #dec8d755;
    border-radius: 5px;
    font: 20px Georgia;
  }
  #touch-controls > div > div {
    display: flex;
    gap: 4px;
  }
  .control-hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

/* Keep the welcome copy clear of the flight dock. */
#arrival {
  top: 24%;
  width: 390px;
}
#arrival h2 {
  font-size: 43px;
}
#arrival small {
  display: block;
}
#objects details {
  border-bottom: 1px solid #b493a330;
  padding: 12px 0;
  font-size: 13px;
}
#objects summary {
  cursor: pointer;
}
#objects p {
  white-space: pre-wrap;
}
#residents button:disabled {
  opacity: 0.55;
  cursor: default;
}
@media (max-width: 760px) {
  #arrival {
    top: 22%;
    width: min(350px, 86vw);
    padding: 18px;
  }
  #arrival h2 {
    font-size: 37px;
  }
}
@media (max-height: 650px) {
  #arrival {
    top: 20%;
    padding: 12px 20px;
  }
  #arrival h2 {
    font-size: 32px;
    margin: 10px 0;
  }
  #arrival p {
    margin: 8px 0;
  }
  #enter {
    margin: 12px 0;
  }
  #arrival small {
    font-size: 8px;
  }
  .masthead {
    top: 18px;
  }
}
/* The original media panels retain their own styles and playback behavior. */
#room-actions {
  position: absolute;
  top: 135px;
  left: 32px;
  display: flex;
  gap: 8px;
}
#room-actions button,
#owner-actions button {
  background: #293242dd;
  border: 1px solid #d3b9c65c;
  padding: 10px 15px;
  font: 12px Georgia;
  color: #f5e8e9;
}
#owner-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
#interact {
  position: absolute;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 75%;
  background: #e0d4bc;
  color: #392f40;
  border: 1px solid #f2e0e5;
  padding: 12px 18px;
  font:
    12px ui-monospace,
    monospace;
}
.interactive-label {
  pointer-events: auto;
  cursor: pointer !important;
}
.interactive-label:hover {
  background: #e0d4bc !important;
  color: #392f40 !important;
}
#action-dialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #17141dcc;
  display: grid;
  place-items: center;
}
.action-card {
  background: #302937;
  color: #f4e5e9;
  width: min(650px, 94vw);
  max-height: 85vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid #aa899d;
}
.action-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.action-card h2 {
  font-size: 26px;
  font-weight: 400;
  margin: 0;
}
.action-card button {
  background: #564254;
  color: #f5e8ec;
  border: 1px solid #b596a8;
  padding: 9px 15px;
}
.action-card header button {
  font-size: 22px;
  background: none;
  border: 0;
}
.action-card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.action-card form {
  display: grid;
  gap: 10px;
}
.action-card textarea {
  width: 100%;
  font: 16px Georgia;
  background: #211d28;
  color: #faedf1;
  padding: 12px;
  border: 1px solid #b596a8;
}
.action-card #action-status {
  font-size: 12px;
  color: #dfb7c5;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
@media (max-width: 760px) {
  #room-actions {
    left: 20px;
    top: 118px;
  }
  #interact {
    bottom: 180px;
    font-size: 10px;
    width: max-content;
    max-width: 90%;
  }
}

.weather-status { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .08em; opacity: .8; }

.collection-piece { white-space: pre-wrap; overflow-wrap: anywhere; }
