.qhlc-ui #museumPage {
  --museum-home-paper: var(--ui-paper);
  --museum-home-ink: var(--ui-ink);
  --museum-home-muted: var(--ui-muted);
  --museum-home-rule: var(--ui-line-strong);
  --museum-header-height: 88px;
  --museum-entry-size: 52px;
  --museum-main-entry-size: 64px;
  --museum-scene-overlap: 80px;
  background: linear-gradient(150deg, #f1e7ce, #ddcba4) !important;
}
.qhlc-ui #museumPage.night-environment {
  --museum-home-paper: #14243a;
  --museum-home-ink: #f4e8cb;
  --museum-home-muted: #b9c4d3;
  --museum-home-rule: #526579;
  background: #202d43 !important;
}
.qhlc-ui #museumPage .topbar {
  position: relative;
  inset: auto;
  flex: 0 0 calc(var(--museum-header-height) + var(--ui-safe-top));
  height: calc(var(--museum-header-height) + var(--ui-safe-top));
  min-height: calc(var(--museum-header-height) + var(--ui-safe-top));
  padding: calc(12px + var(--ui-safe-top)) 16px 12px;
  background: var(--museum-home-paper) !important;
}
.qhlc-ui #museumPage .brand {
  position: absolute;
  left: 112px;
  right: 112px;
  top: calc(12px + var(--ui-safe-top));
  min-height: 64px;
  gap: 4px;
  color: var(--museum-home-ink) !important;
  text-shadow: none;
  font-size: 18px;
  line-height: 28px;
}
.qhlc-ui #museumPage .museum-environment {
  position: absolute;
  left: 16px;
  top: calc(22px + var(--ui-safe-top));
  width: 96px;
  height: 44px;
  padding: 0;
  gap: 4px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border: 0;
  box-shadow: none;
  background: transparent !important;
}
.qhlc-ui #museumPage .museum-environment button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}
.qhlc-ui #museumPage .title-badge {
  position: absolute;
  top: calc(12px + var(--ui-safe-top));
  right: 16px;
  width: 56px;
  height: 64px;
  min-width: 56px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--museum-home-ink);
  box-shadow: none;
}
.qhlc-ui #museumPage .title-badge .title-seal {
  width: 40px;
  height: 40px;
  min-height: 40px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.qhlc-ui #museumPage .title-badge img.handdrawn-icon {
  width: 40px !important;
  height: 40px !important;
}
.qhlc-ui #museumPage .museum-tool-label {
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}
.qhlc-ui #museumPage .museum-floor,
.qhlc-ui #museumPage.night-environment .museum-floor {
  background: transparent !important;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  margin: 0;
  margin-bottom: calc(-1 * var(--museum-scene-overlap));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.qhlc-ui #museumPage .museum-footer {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
  gap: 8px;
  padding: 8px 16px calc(12px + var(--ui-safe-bottom));
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(to bottom, transparent 0 var(--museum-scene-overlap), var(--museum-home-paper) var(--museum-scene-overlap));
  color: var(--museum-home-ink);
}
.qhlc-ui #museumPage.night-environment .museum-footer {
  background: transparent;
}
.qhlc-ui #museumPage .stats {
  display: grid;
  grid-template-columns: 36.5fr 27.8fr 35.7fr;
  flex: none;
  width: 100%;
  gap: 0;
  aspect-ratio: 2070 / 170;
  padding: 0 9px;
  border: 0;
  background: url('assets/ui/handdrawn/museum-stats.png') center / 100% 100% no-repeat;
}
.qhlc-ui #museumPage .stats > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.qhlc-ui #museumPage .stats > div + div {
  border: 0;
}
.qhlc-ui #museumPage .stats span {
  font-size: 10px;
  line-height: 18px;
  color: #68482e;
  white-space: nowrap;
}
.qhlc-ui #museumPage .stats b {
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  color: #57351f;
}
.qhlc-ui #museumPage .museum-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}
.qhlc-ui #museumPage .museum-actions > button {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  align-self: stretch;
  width: 100%;
  height: 96px;
  min-width: 0;
  min-height: 96px;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--museum-home-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transform: none;
}
.qhlc-ui #museumPage .museum-actions > button::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 35px;
  width: calc(var(--museum-entry-size) - 14px);
  aspect-ratio: 1;
  border: 2px solid #815b3d;
  border-radius: 50%;
  background: #fff7e4bd;
  transform: translateX(-50%);
  pointer-events: none;
}
.qhlc-ui #museumPage #openGame::before {
  width: calc(var(--museum-main-entry-size) - 16px);
}
.qhlc-ui #museumPage.night-environment .museum-actions > button::before {
  border-color: #e6c98f;
  background: #24364bcf;
}
.qhlc-ui #museumPage .museum-actions img.handdrawn-icon,
.qhlc-ui #museumPage .museum-entry-label {
  position: relative;
  z-index: 1;
}
.qhlc-ui #museumPage .museum-actions img.handdrawn-icon {
  width: var(--museum-entry-size) !important;
  height: var(--museum-entry-size) !important;
}
.qhlc-ui #museumPage #openInventory img.handdrawn-icon {
  display: block;
}
.qhlc-ui #museumPage #openGame img.handdrawn-icon {
  width: var(--museum-main-entry-size) !important;
  height: var(--museum-main-entry-size) !important;
}
.qhlc-ui #museumPage .museum-entry-label {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  min-height: 20px;
  white-space: nowrap;
  font-family: var(--ui-font-display);
}
.qhlc-ui #museumPage #inventoryCount {
  min-width: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.qhlc-ui #museumPage .museum-actions > button:hover,
.qhlc-ui #museumPage .title-badge:hover {
  background: transparent;
}
.qhlc-ui #museumPage .museum-actions > button:active img.handdrawn-icon {
  transform: translateY(2px);
}
.qhlc-ui #museumPage .museum-actions > button:active .museum-entry-label {
  color: var(--ui-gold);
}
.qhlc-ui #museumPage .placement-cancel {
  top: calc(var(--museum-header-height) + 8px + var(--ui-safe-top));
  right: 16px;
}
@media (max-width: 359px) {
  .qhlc-ui #museumPage .stats > div { gap: 2px; }
  .qhlc-ui #museumPage .stats span { font-size: 9px; }
  .qhlc-ui #museumPage .stats b { font-size: 11px; }
}
@media (max-height: 650px) {
  .qhlc-ui #museumPage {
    --museum-header-height: 80px;
    --museum-entry-size: 44px;
    --museum-main-entry-size: 52px;
    --museum-scene-overlap: 68px;
  }
  .qhlc-ui #museumPage .museum-actions > button { height: 80px; min-height: 80px; }
  .qhlc-ui #museumPage .museum-footer { gap: 4px; padding-top: 4px; padding-bottom: calc(8px + var(--ui-safe-bottom)); }
}
@media (prefers-reduced-motion: no-preference) {
  .qhlc-ui #museumPage .museum-actions img.handdrawn-icon { transition: transform .12s ease-out; }
}
