/* Fixed design dimensions with one scale factor for text, spacing, and controls. */
.mq-ui-dialog {
  position: fixed;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 28px;
  box-sizing: border-box;
  transform: translate(-50%, -50%) scale(var(--game-dialog-scale, 1));
  border: 1px solid #555d69;
  border-radius: 12px;
  background: #242a32;
  color: #f3f4f6;
  font: 18px system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 24px 70px rgb(0 0 0 / 55%);
}
.mq-ui-dialog::backdrop { background: rgb(4 6 9 / 70%); }
.mq-ui-dialog h2 { margin: 0; font-size: 28px; }
.mq-ui-dialog button {
  padding: 10px 16px;
  border: 1px solid #555d69;
  border-radius: 6px;
  background: #303946;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.mq-ui-dialog button:hover:not(:disabled) { background: #3c495a; }
.mq-ui-dialog button:disabled { opacity: 0.5; cursor: default; }
.mq-ui-dialog button:focus-visible { outline: 2px solid #edbc33; outline-offset: 2px; }
.mq-ui-dialog .mq-icon-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  line-height: 0;
}
.mq-icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.game-action-dialog { max-height: 850px; overflow: auto; }
.game-action-dialog p { margin: 28px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.game-action-dialog footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 16px; }
.game-action-dialog footer button { min-width: 104px; }
.game-action-dialog button:focus { outline: 2px solid #edbc33; outline-offset: 2px; }

.game-action-dialog [data-error] { margin: 0 0 20px; color: #ffabb5; }

.game-dialog-image { max-width: 100%; max-height: 240px; object-fit: contain; }
.game-dialog-catalog { display: grid; gap: 8px; padding-left: 20px; }

.game-action-dialog footer button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.game-action-dialog footer button img { max-width: 32px; max-height: 32px; object-fit: contain; }
