#gameBugReport {
  box-sizing: border-box; width: min(520px, calc(100vw - 28px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 24px; overflow-y: auto; color: #f8f2df; background: #15131e;
  border: 1px solid #80663c; border-radius: 18px; box-shadow: 0 24px 70px #0009;
  font: 16px/1.5 system-ui, sans-serif; text-align: left;
}
#gameBugReport::backdrop { background: #030308c9; }
#gameBugReport h2 { margin: 0; font: 700 25px/1.2 Georgia, serif; color: #e8bd69; }
#gameBugReport .bug-report-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#gameBugReport .bug-report-heading button { padding: 4px 12px; font-size: 24px; }
#gameBugReport label { display: block; margin-bottom: 8px; font-weight: 650; }
#gameBugReport textarea { box-sizing: border-box; display: block; width: 100%; min-height: 140px; resize: vertical;
  padding: 12px; border: 1px solid #665c79; border-radius: 10px; color: #fff; background: #0c0b13; font: inherit; }
#gameBugReport textarea::placeholder { color: #aaa5b8; }
#gameBugReport .bug-report-note, #gameBugReport .bug-report-context { font-size: 14px; color: #c1bacd; }
#gameBugReport .bug-report-context { margin: 12px 0 18px; }
#gameBugReport .bug-report-note { margin: 12px 0 18px; }
#gameBugReport .bug-report-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
#gameBugReport button { min-height: 42px; padding: 9px 14px; border: 1px solid #74623e; border-radius: 9px; color: #f8f2df; background: #24202e; font: 600 14px/1.3 system-ui, sans-serif; cursor: pointer; }
#gameBugReport #gameBugSend { background: #e8bd69; color: #211809; }
#gameBugReport button:disabled { opacity: .5; cursor: wait; }
#gameBugReport :focus-visible { outline: 3px solid #d7b16c; outline-offset: 3px; }
#gameBugReport [hidden], #bugReportButton[hidden], .bug-report-prompt-button[hidden] { display: none !important; }
.bug-report-prompt-button { margin-inline-start: 8px; }
.modal:has(#bugReportPromptButton:not([hidden])) .modal-minimize { display: inline-block; margin-right: 0; }
#bugReportPromptButton { margin-bottom: 12px; }
#gameBugReportStatus { overflow-wrap: anywhere; }
/* Playtesters can report directly above the menu, including while it is closed. */
body.game-active .game-control-rail > #bugReportButton.bug-report-above-menu:not([hidden]) {
  display: block !important; flex: 0 0 auto;
}
