/* The report uses the game's native steel dialog, not another floating HUD. */
body #bug-report-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: calc(
    100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  );
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 3vw, 26px);
}
#bug-report-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: static;
}
#bug-report-dialog h2 {
  margin: 0;
  font-size: clamp(20px, 4vw, 25px);
}
#bug-report-dialog header button {
  flex: none;
}
#bug-report-dialog p {
  line-height: 1.5;
  font-size: 13px;
}
#bug-report-dialog .report-privacy {
  color: #bdcbd7;
}
#bug-report-live {
  color: #ffd271;
}
#bug-report-form {
  display: grid;
  gap: 12px;
}
#bug-report-form label {
  font-size: 15px;
  font-weight: 700;
}
#bug-report-body {
  display: block;
  width: 100%;
  min-height: 130px;
  height: min(24dvh, 220px);
  resize: vertical;
  padding: 12px;
  border: 1px solid #6c8a9f;
  border-radius: 3px;
  background: #081522;
  color: #f4f8fc;
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
  touch-action: auto;
}
#bug-report-body:focus-visible {
  outline: 2px solid #ffcf63;
  outline-offset: 2px;
}
#bug-report-status {
  min-height: 1.5em;
  margin: 0;
  color: #ffdb84;
  overflow-wrap: anywhere;
}
#bug-report-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #d9f2ff;
  border: 1px solid #6c8a9f;
  text-decoration: none;
}
#bug-report-login:focus-visible {
  outline: 3px solid #ffcf63;
}
#bug-report-submit {
  width: 100%;
}
body #bug-report-submit::before {
  background: linear-gradient(#ffe287, #ffc13f 52%, #e59a14);
}
@media (max-height: 480px) {
  body #bug-report-dialog {
    max-height: calc(100dvh - 12px);
    padding: 12px 16px;
  }
  #bug-report-dialog p {
    margin: 8px 0;
  }
  #bug-report-body {
    min-height: 84px;
  }
  #bug-report-form {
    gap: 8px;
  }
}
