@font-face {
  font-family: Library;
  src: url("./assets/library-serif.woff2") format("woff2");
  font-display: swap;
}
:root {
  --ink: #f0e5d2;
  --muted: #c1b296;
  --gold: #d6b77a;
  --panel: #201b15;
  --line: #ffffff26;
  --serif: Library, Georgia, serif;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #17120e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  flex: none;
}
button[hidden],
[hidden] {
  display: none !important;
}
::selection {
  background: #987744;
  color: #fff;
}
input {
  caret-color: var(--gold);
}
#library,
#room {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
#room {
  display: block;
  touch-action: none;
  outline-offset: -5px;
}
.masthead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 38px;
  pointer-events: none;
  text-shadow: 0 2px 12px #0008;
}
.masthead > * {
  pointer-events: auto;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 25px var(--serif);
  letter-spacing: 0.01em;
}
.wordmark svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
}
.collection-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  font-size: 28px;
}
.icon-button:hover {
  background: #ffffff14;
}
.welcome {
  position: absolute;
  left: 7.5%;
  top: 26%;
  transition:
    opacity 0.65s,
    transform 0.65s;
  pointer-events: none;
  text-shadow: 0 3px 24px #0008;
}
.welcome h1 {
  font: clamp(48px, 6.4vw, 96px)/1.04 var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 0 0 25px;
}
.welcome p {
  font-size: 14px;
  letter-spacing: 0.025em;
  color: #e2d6c1;
  margin: 0 0 32px;
}
.welcome .enter-button {
  pointer-events: auto;
}
.enter-button {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 15px 0;
  border-bottom: 1px solid #c4a568;
  color: #f4e8d0;
  font-size: 13px;
}
.enter-button svg {
  width: 21px;
}
.entered .welcome {
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
  transition:
    opacity 0.65s,
    transform 0.65s,
    visibility 0s 0.65s;
}
.loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  padding: 20px 28px;
  border: 1px solid var(--line);
  font-size: 13px;
}
.loading-mark {
  width: 16px;
  height: 16px;
  border: 1px solid #d6b77a44;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: turn 1s linear infinite;
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
.room-caption {
  position: absolute;
  bottom: 115px;
  left: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2d2b5;
  font: italic 17px var(--serif);
  text-shadow: 0 2px 10px #000;
}
.caption-rule {
  width: 28px;
  height: 1px;
  background: #c4a568;
}
.dock {
  position: absolute;
  bottom: 37px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #211b15ed;
  box-shadow: 0 8px 28px #0006;
  border: 1px solid #bca47a3b;
  border-radius: 6px;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.dock button {
  min-height: 44px;
}
.dock-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  font-size: 12px;
}
.dock-search svg {
  width: 18px;
}
.dock kbd {
  font: 11px inherit;
  opacity: 0.5;
  border: 1px solid #bca47a44;
  padding: 2px 5px;
  border-radius: 2px;
}
.dock-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
  margin: 0 8px;
}
.destination {
  font-size: 12px;
  padding: 0 18px;
  color: var(--muted);
  border-radius: 3px;
  transition:
    background 0.2s,
    color 0.2s;
}
.destination.active {
  background: #d6b77a17;
  color: var(--ink);
}
.destination:hover {
  color: #fff;
  background: #ffffff09;
}
.navigation-hint {
  position: absolute;
  bottom: 13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.19em;
  color: #e2d2b5b3;
  white-space: nowrap;
  margin: 0;
}
.hover-label {
  position: absolute;
  pointer-events: none;
  padding: 10px 14px;
  background: #211b15f5;
  border: 1px solid var(--line);
  max-width: 260px;
  font: 15px var(--serif);
  box-shadow: 0 4px 18px #0006;
}
.search-panel,
.help-panel {
  position: absolute;
  background: #211b15f5;
  box-shadow: 0 12px 48px #0007;
  border: 1px solid var(--line);
  border-radius: 5px;
  backdrop-filter: blur(20px);
}
.search-panel {
  top: 100px;
  bottom: 125px;
  left: 38px;
  width: 400px;
  padding: 25px;
  display: flex;
  flex-direction: column;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}
.panel-heading h2,
.help-panel h2 {
  font: 26px/1.15 var(--serif);
  margin: 0;
}
.panel-heading .icon-button {
  margin-right: -12px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid #a98c5f75;
  flex: none;
}
.search-field svg {
  width: 18px;
  color: var(--muted);
}
.search-field input {
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  outline: 0;
  font-size: 13px;
  min-width: 0;
  padding: 12px 0;
}
.search-field input::placeholder {
  color: var(--muted);
}
.result-count {
  font-size: 11px;
  color: var(--muted);
  margin: 18px 0 14px;
  min-height: 14px;
}
.search-results {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #8a7048 transparent;
  scrollbar-width: thin;
}
.search-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 12px 3px;
  border-bottom: 1px solid #ffffff0d;
}
.search-result:hover {
  background: #d6b77a0c;
}
.mini-spine {
  width: 8px;
  align-self: stretch;
  min-height: 38px;
  border-radius: 2px;
  flex: none;
  box-shadow: inset 2px 0 2px #ffffff22;
}
.result-text {
  min-width: 0;
}
.result-title {
  font: 17px/1.25 var(--serif);
  display: block;
}
.result-author {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.result-arrow {
  margin-left: auto;
  color: var(--gold);
  font-size: 16px;
}
.more-results {
  color: var(--gold);
  font-size: 12px;
  min-height: 44px;
  flex: none;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 12px 16px;
  background: #c6a66b;
  color: #211b15;
  font-size: 12px;
  border-radius: 3px;
  gap: 12px;
}
.primary-button:hover {
  background: #e0c28b;
}
.secondary-button {
  min-height: 46px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--gold);
  margin-top: 9px;
}
.help-panel {
  top: 92px;
  right: 38px;
  width: 330px;
  padding: 25px;
}
.help-panel p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.help-panel label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  min-height: 44px;
}
.help-panel input {
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
}
.error-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 90%);
  padding: 35px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.error-panel h2 {
  font: 32px var(--serif);
}
.error-panel p {
  line-height: 1.7;
  color: var(--muted);
}
.error-panel a {
  display: block;
  font-size: 13px;
  margin-top: 20px;
  text-decoration: underline;
}
@media (max-width: 760px) {
  .masthead {
    padding: 20px;
    gap: 10px;
  }
  .wordmark {
    font-size: 21px;
    gap: 8px;
  }
  .wordmark svg {
    width: 25px;
  }
  .collection-status {
    font-size: 11px;
    letter-spacing: 0.04em;
    gap: 6px;
  }
  .masthead .icon-button {
    width: 36px;
  }
  .welcome {
    left: 8%;
    top: 25%;
  }
  .welcome h1 {
    font-size: 56px;
  }
  .welcome p {
    font-size: 12px;
  }
  .dock {
    bottom: 36px;
    width: calc(100% - 28px);
    padding: 6px;
    justify-content: center;
    gap: 0;
  }
  .dock-search {
    padding: 0 10px;
    gap: 8px;
  }
  .dock-search span {
    font-size: 11px;
  }
  .dock kbd {
    display: none;
  }
  .dock-divider {
    margin: 0 3px;
    height: 20px;
  }
  .destination {
    font-size: 11px;
    padding: 0 10px;
  }
  .destination[data-place="shelves"] {
    display: none;
  }
  .dock .icon-button {
    width: 36px;
  }
  .dock .icon-button svg {
    width: 19px;
  }
  .room-caption {
    left: 22px;
    bottom: 112px;
    font-size: 14px;
  }
  .search-panel {
    top: 85px;
    left: 14px;
    width: calc(100% - 28px);
    bottom: 118px;
    padding: 20px;
  }
  .help-panel {
    right: 14px;
    left: 14px;
    top: 85px;
    width: auto;
  }
  .navigation-hint {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  .panel-heading h2 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.touch-walk {
  display: none;
  position: absolute;
  right: 20px;
  bottom: 112px;
  gap: 6px;
}
.touch-walk button {
  width: 44px;
  height: 44px;
  background: #211b15e8;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 20px;
}
@media (max-width: 760px), (pointer: coarse) {
  .touch-walk {
    display: flex;
  }
}
@media (max-width: 365px) {
  .dock-search {
    padding: 0 6px;
    gap: 5px;
  }
  .destination {
    padding: 0 7px;
    font-size: 11px;
  }
  .dock-divider {
    margin: 0 2px;
  }
  .dock-search span {
    font-size: 11px;
  }
  .dock .icon-button {
    width: 30px;
  }
}

.section-controls {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
}
.section-controls select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  color: var(--ink);
  background: #30271e;
  border: 1px solid #bca47a44;
  border-radius: 3px;
  padding: 8px;
  font: 12px inherit;
}
.section-controls button {
  color: var(--gold);
  font-size: 11px;
  min-height: 44px;
  flex: none;
}
.shelving-order {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0;
}
.result-count {
  margin: 12px 0 14px;
}

.panel-open .touch-walk {
  display: none !important;
}

.mobile-label {
  display: none;
}
@media (max-width: 760px) {
  .desktop-label {
    display: none;
  }
  .mobile-label {
    display: inline;
  }
  .dock-search span,
  .dock-search kbd {
    display: none;
  }
  .dock-search {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .destination {
    font-size: 11px;
    padding: 0 9px;
  }
  .navigation-hint {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
  .collection-status {
    font-size: 11px;
    text-align: right;
  }
  .dock-divider {
    margin: 0 3px;
  }
}
@media (max-width: 365px) {
  .destination {
    padding: 0 7px;
  }
  .dock .icon-button {
    width: 30px;
  }
  .dock-divider {
    margin: 0 2px;
  }
  .wordmark {
    font-size: 19px;
  }
  .masthead {
    padding: 16px;
    gap: 6px;
  }
}

.masthead {
  color: #342b20;
  text-shadow: 0 1px 6px #fff8;
}
.masthead .wordmark svg {
  color: #7e633b;
}
.masthead .status-dot {
  background: #7e633b;
}
.welcome {
  color: #30291f;
  text-shadow: 0 1px 10px #ffffff65;
}
.welcome p {
  color: #40372a;
}
.enter-button {
  color: #30291f;
  border-bottom-color: #826b46;
}
.room-caption {
  color: #403326;
  text-shadow: 0 1px 6px #fff7;
}

.welcome {
  top: auto;
  bottom: 112px;
  left: 38px;
  text-shadow: none;
}
.welcome h1,
.welcome p {
  display: none;
}
.welcome .enter-button {
  padding: 14px 20px;
  background: #211b15ed;
  color: var(--ink);
  border: 1px solid #bca47a66;
  border-radius: 3px;
  gap: 30px;
}
.room-caption {
  display: none;
}
.entered .room-caption {
  display: flex;
}
.asset-notice {
  position: absolute;
  top: 90px;
  left: 38px;
  padding: 15px 20px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  border: 1px solid var(--line);
}
.asset-notice button {
  color: var(--gold);
  min-height: 44px;
  padding: 0 12px;
}
@media (max-width: 760px) {
  .welcome {
    left: 22px;
    bottom: 112px;
  }
  .asset-notice {
    left: 14px;
    right: 14px;
    top: 80px;
  }
}
.room-caption {
  padding: 8px 12px;
  background: #211b15c9;
  color: var(--ink);
  text-shadow: none;
  border-radius: 3px;
}
.evening .masthead {
  color: var(--ink);
  text-shadow: 0 2px 10px #0008;
}
.evening .masthead .wordmark svg {
  color: var(--gold);
}
.evening .masthead .status-dot {
  background: var(--gold);
}
.masthead .wordmark,
.collection-status,
.masthead > .icon-button {
  background: #211b15dc;
  color: var(--ink);
  text-shadow: none;
  border-radius: 3px;
}
.masthead .wordmark {
  padding: 8px 12px;
}
.collection-status {
  padding: 11px 12px;
}
.masthead .wordmark svg {
  color: var(--gold);
}
.masthead .status-dot {
  background: var(--gold);
}
@media (max-width: 760px) {
  .masthead .wordmark {
    padding: 8px;
  }
  .collection-status {
    padding: 8px;
    font-size: 11px;
  }
  .masthead {
    gap: 8px;
  }
}
