/* Block: window — black box with a white rounded border, like DQ command and message windows */

.window {
  position: absolute;
  padding: 6px 8px;
  border: 2px solid var(--color-white);
  border-radius: 4px;
  background: var(--color-black);
  color: var(--color-white);
}

.window--hidden {
  display: none;
}

/* Bottom message box, shared by all screens */
.window--message {
  z-index: 10;
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 80px;
}

/* Command menu, top left (wide enough for 4 Japanese characters: たたかう) */
.window--menu {
  top: 8px;
  left: 8px;
  width: 80px;
}

/* YES / NO, top right (clear of the monster and the task name) */
.window--confirm {
  top: 8px;
  right: 8px;
  width: 72px;
}

/* Hero status, top right */
.window--status {
  top: 8px;
  right: 8px;
  width: 96px;
}

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

/* ▼ "press Enter to continue" arrow, drawn as a pixel triangle */
.window__prompt {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid var(--color-white);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  visibility: hidden;
  transform: translateX(-50%);
}

.window__prompt--visible {
  visibility: visible;
  animation: blink 1s steps(1, end) infinite;
}
