.room-stage > .room-extra-hotspot.room-drawer-trigger,
.room-stage > .room-extra-hotspot.room-underbed-trigger {
  z-index: 3 !important;
  cursor: pointer !important;
}

.room-stage > .room-extra-hotspot.room-drawer-trigger::after,
.room-stage > .room-extra-hotspot.room-underbed-trigger::after {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 0.35rem) !important;
  display: none !important;
  min-width: max-content !important;
  padding: 0.32rem 0.55rem !important;
  transform: translateX(-50%) !important;
  border: 2px solid #17131d !important;
  border-radius: 0 !important;
  background: #ffdc37 !important;
  color: #17131d !important;
  box-shadow: 3px 3px 0 #17131d !important;
  font: 700 0.69rem/1.1 ui-monospace, "SFMono-Regular", Consolas, monospace !important;
  letter-spacing: 0.01em !important;
  text-transform: lowercase !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.room-stage > .room-extra-hotspot.room-drawer-trigger::after {
  content: "open drawer" !important;
}

.room-stage > .room-extra-hotspot.room-underbed-trigger::after {
  content: "look under bed" !important;
}

.room-stage > .room-extra-hotspot.room-drawer-trigger:hover::after,
.room-stage > .room-extra-hotspot.room-drawer-trigger:focus-visible::after,
.room-stage > .room-extra-hotspot.room-underbed-trigger:hover::after,
.room-stage > .room-extra-hotspot.room-underbed-trigger:focus-visible::after {
  display: block !important;
}

.room-stage > .room-extra-hotspot.room-drawer-trigger:hover,
.room-stage > .room-extra-hotspot.room-underbed-trigger:hover {
  box-shadow: inset 0 0 0 3px #ffdc37 !important;
}

.room-stage > .room-extra-hotspot.room-drawer-trigger:focus-visible,
.room-stage > .room-extra-hotspot.room-underbed-trigger:focus-visible {
  outline: 3px solid #ffdc37 !important;
  outline-offset: 2px !important;
  box-shadow: inset 0 0 0 3px #17131d !important;
}

.room-drawer-dialog {
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(44rem, calc(100vh - 2rem));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 3px solid #17131d;
  border-radius: 0;
  background: #fff8e8;
  color: #17131d;
  box-shadow: 8px 8px 0 #17131d;
}

.room-drawer-dialog::backdrop {
  background: #17131d;
}

.room-drawer-dialog.is-fallback-open {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 10000;
  display: block;
  transform: translate(-50%, -50%);
}

.room-drawer-dialog__panel {
  margin: 0;
  padding: clamp(1rem, 4vw, 1.75rem);
  background: #fff8e8;
}

.room-drawer-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 3px solid #17131d;
}

.room-drawer-dialog__eyebrow,
.room-drawer-dialog__note {
  margin: 0;
  color: #6b244f;
  font: 700 0.72rem/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.room-drawer-dialog__photo {
  margin: 1rem 0 0;
  padding: 0.75rem;
  border: 3px solid #17131d;
  background: #ffffff;
}

.room-drawer-dialog__photo[hidden] {
  display: none;
}

.room-drawer-dialog__photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #17131d;
  background: #ffffff;
}

.room-drawer-dialog__photo figcaption {
  margin-top: 0.65rem;
  color: #17131d;
  font: 800 1rem/1.2 Georgia, serif;
  text-align: center;
}

.room-drawer-dialog__photo-back {
  margin-left: auto;
  margin-right: auto;
}

.room-drawer-dialog__title {
  margin: 0.18rem 0 0;
  color: #17131d;
  font: 800 clamp(1.45rem, 5vw, 2.15rem)/1.05 Georgia, serif;
}

.room-drawer-dialog__close,
.room-drawer-dialog__action {
  border: 2px solid #17131d;
  border-radius: 0;
  background: #ffdc37;
  color: #17131d;
  box-shadow: 3px 3px 0 #17131d;
  font: 700 0.78rem/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
  text-decoration: none;
  cursor: pointer;
}

.room-drawer-dialog__close {
  flex: none;
  padding: 0.45rem 0.6rem;
  text-transform: lowercase;
}

.room-drawer-dialog__action {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.46rem 0.62rem;
}

.room-drawer-dialog__close:hover,
.room-drawer-dialog__action:hover {
  background: #ffffff;
}

.room-drawer-dialog__close:focus-visible,
.room-drawer-dialog__action:focus-visible {
  outline: 3px solid #6b244f;
  outline-offset: 3px;
}

.room-drawer-dialog__intro {
  margin: 1rem 0;
  color: #302434;
  font: 600 0.95rem/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.room-drawer-dialog__items {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-drawer-item {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem;
  border: 2px solid #17131d;
  background: #ffffff;
}

.room-drawer-item__icon {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 2px solid #17131d;
  background: #ffd0e5;
  color: #17131d;
  font: 800 1.25rem/1 Georgia, serif;
}

.room-drawer-item__copy h3 {
  margin: 0;
  color: #17131d;
  font: 800 1rem/1.2 Georgia, serif;
}

.room-drawer-item__copy p {
  margin: 0.25rem 0 0;
  color: #302434;
  font: 500 0.84rem/1.45 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.room-drawer-dialog__note {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 2px solid #17131d;
}

@media (max-width: 34rem) {
  .room-drawer-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    box-shadow: 4px 4px 0 #17131d;
  }

  .room-drawer-dialog__header {
    gap: 0.5rem;
  }

  .room-drawer-item {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.7rem;
  }

  .room-drawer-item__icon {
    width: 2.2rem;
    height: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .room-drawer-dialog *,
  .room-stage > .room-drawer-trigger,
  .room-stage > .room-underbed-trigger {
    scroll-behavior: auto !important;
  }
}

.room-drawer-item__icon{width:100px!important;height:100px!important;background:#f6f3eb!important;flex:0 0 100px!important;padding:0!important;border:0!important}
.drawer-object-art{display:block;width:100%;height:100%;background-image:url('assets/drawer-objects.png');background-size:400% 300%;background-repeat:no-repeat}
.drawer-object-image{display:block;width:100%;height:100%;object-fit:contain}
a.room-drawer-item__icon:focus-visible{outline:3px solid #000080;outline-offset:3px}

.room-drawer-item{grid-template-columns:100px minmax(0,1fr);align-items:start;gap:1rem}
.room-drawer-item__copy{min-width:0;overflow-wrap:anywhere}
.room-drawer-item h3,.room-drawer-item p{color:#17131d!important;letter-spacing:normal;text-shadow:none!important}
.room-drawer-dialog__action{max-width:100%;white-space:normal;overflow-wrap:anywhere;color:#17131d!important}
.room-drawer-dialog *{box-sizing:border-box}
.room-drawer-dialog [hidden]{display:none!important}
.room-drawer-discs{color:#17131d;font:14px/1.5 Arial,sans-serif}
.room-drawer-discs h3,.room-drawer-discs h4{color:#17131d!important;text-shadow:none!important;font:bold 18px Arial}
.room-drawer-disc-tabs{display:flex;gap:8px;margin:12px 0}
.room-drawer-discs button{color:#111!important;background:#d4d0c8!important;border:2px outset #fff;border-radius:0;box-shadow:none;padding:8px 12px;min-height:44px;font:14px Arial;cursor:pointer}
.room-drawer-disc-tabs button[aria-pressed=true],.room-drawer-track-list button[aria-pressed=true]{color:#fff!important;background:#000080!important;border-style:inset}
.room-drawer-track-list{list-style:none;padding:0;margin:12px 0;background:#fff;border:1px solid #888}
.room-drawer-track-list button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #ddd;background:#fff!important}
.room-drawer-disc-player{width:100%;aspect-ratio:4/3;border:0;background:#111}
.room-drawer-photo-backup{display:block;width:min(100%,360px);height:auto;margin:12px 0}
@media(max-width:420px){.room-drawer-item{grid-template-columns:72px minmax(0,1fr);gap:.7rem}.room-drawer-item__icon{width:72px!important;height:72px!important;flex-basis:72px!important}.room-drawer-item h3{font-size:1rem!important}.room-drawer-item p{font-size:.875rem!important}.room-drawer-dialog__action{font-size:.8rem}}
