.dialogue-box {
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  z-index: 80;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  width: min(620px, calc(100vw - 28px));
  min-height: 124px;
  padding: 12px;
  border: 3px solid #d7c7ff;
  background:
    linear-gradient(180deg, rgba(36, 22, 58, 0.96), rgba(7, 6, 12, 0.98));
  box-shadow: 0 0 24px rgba(124, 60, 255, 0.32), 8px 10px 0 rgba(0, 0, 0, 0.42);
  color: #fff;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  backdrop-filter: blur(2px);
}

.dialogue-box[hidden] {
  display: none;
}

.dialogue-portrait {
  width: 92px;
  height: 92px;
  border: 2px solid #050508;
  background: #050508;
  object-fit: cover;
  image-rendering: pixelated;
}

.dialogue-content {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.dialogue-speaker {
  color: #f8d56b;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dialogue-text {
  margin: 0;
  color: #f7f4ff;
  font-size: 1rem;
  line-height: 1.45;
}

.wing-master-cricket,
.candlewick-terminal,
.old-dilly-npc,
.liz-npc {
  pointer-events: auto;
}

@media (max-width: 560px) {
  .dialogue-box {
    grid-template-columns: 68px 1fr;
    gap: 10px;
    min-height: 104px;
    padding: 10px;
  }

  .dialogue-portrait {
    width: 68px;
    height: 68px;
  }

  .dialogue-text {
    font-size: 0.88rem;
  }
}









.dialogue-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.dialogue-choices[hidden] {
  display: none;
}

.dialogue-choice {
  min-height: 34px;
  border: 2px solid rgba(247, 244, 255, 0.62);
  border-radius: 6px;
  padding: 6px 10px;
  background: rgba(5, 5, 8, 0.78);
  color: #f7f4ff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.dialogue-choice:hover,
.dialogue-choice:focus-visible {
  background: linear-gradient(135deg, rgba(124, 60, 255, 0.92), rgba(27, 111, 214, 0.9));
  outline: none;
}

.dialogue-choice:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}
.bedroom-cage-prompt {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 90;
  max-width: min(86vw, 360px);
  border: 2px solid rgba(247, 244, 255, 0.68);
  border-radius: 6px;
  padding: 10px 14px;
  background: rgba(5, 5, 8, 0.88);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.72), 0 0 18px rgba(124, 60, 255, 0.28);
  color: #f7f4ff;
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  pointer-events: none;
}
