/* Bug report widget. Scoped so it does not restyle games or tools. */
.bug-report-root, .bug-report-root *, .bug-report-root *::before, .bug-report-root *::after {
  box-sizing: border-box;
}
.bug-report-launch {
  font: 600 14px/1.3 "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  color: #f4eef6;
  background: #1a1524;
  border: 1px solid #3a3148;
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
  box-shadow: none;
  z-index: auto;
}
.bug-report-launch:hover, .bug-report-launch:focus-visible {
  border-color: #FF4F8B;
  color: #fff;
}
.bug-report-launch:focus-visible {
  outline: 3px solid #FF4F8B;
  outline-offset: 3px;
}
.bug-report-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  width: 100%;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  text-align: center;
  box-sizing: border-box;
}
.bug-report-slot .ai-note {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  background: transparent !important;
  pointer-events: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}
.site-footer .bug-report-launch,
.footer-bottom .bug-report-launch,
footer .bug-report-launch,
.bug-report-host .bug-report-launch {
  position: static;
  min-height: 44px;
  margin: 8px 0 0;
  box-shadow: none;
  background: transparent;
  border-color: currentColor;
  color: inherit;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: auto;
}
.site-footer .bug-report-launch,
.footer-bottom .bug-report-launch,
footer .bug-report-launch {
  margin: 0;
  border-color: transparent;
}
.site-footer .bug-report-launch:hover,
.footer-bottom .bug-report-launch:hover,
footer .bug-report-launch:hover,
.bug-report-host .bug-report-launch:hover,
.site-footer .bug-report-launch:focus-visible,
.footer-bottom .bug-report-launch:focus-visible,
footer .bug-report-launch:focus-visible,
.bug-report-host .bug-report-launch:focus-visible {
  color: #FF4F8B;
  border-color: #FF4F8B;
}

.bug-report-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 12, 0.72);
  z-index: 10000;
}
.bug-report-dialog {
  position: fixed;
  z-index: 10001;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 420px;
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #140f1c;
  color: #f4eef6;
  border: 1px solid #3a3148;
  border-radius: 16px;
  padding: 20px 18px 16px;
  font: 16px/1.45 "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.bug-report-dialog[hidden], .bug-report-backdrop[hidden],
.bug-report-thanks[hidden], .bug-report-panel[hidden] { display: none !important; }
.bug-report-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.bug-report-dialog h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.bug-report-dialog label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #f4eef6;
}
.bug-report-dialog .opt {
  font-weight: 400;
  color: #b8adc6;
}
.bug-report-dialog textarea,
.bug-report-dialog input[type="email"] {
  width: 100%;
  font: inherit;
  color: #f4eef6;
  background: #1c1628;
  border: 1px solid #4a4158;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 44px;
}
.bug-report-dialog textarea { min-height: 96px; resize: vertical; }
.bug-report-dialog textarea:focus-visible,
.bug-report-dialog input[type="email"]:focus-visible {
  outline: 3px solid #FF4F8B;
  outline-offset: 2px;
  border-color: #FF4F8B;
}
.bug-report-privacy {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: #c9bfd6;
}
.bug-report-err {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: #ff8a9b;
  font-size: 0.9rem;
}
.bug-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.bug-report-submit, .bug-report-cancel {
  font: 600 15px/1.2 inherit;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}
.bug-report-submit {
  background: #FF4F8B;
  color: #1a0610;
  border-color: #FF4F8B;
}
.bug-report-submit:hover { filter: brightness(1.05); }
.bug-report-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.bug-report-cancel {
  background: transparent;
  color: #f4eef6;
  border-color: #4a4158;
}
.bug-report-cancel:hover { border-color: #FF4F8B; }
.bug-report-submit:focus-visible, .bug-report-cancel:focus-visible {
  outline: 3px solid #FF4F8B;
  outline-offset: 2px;
}
@media (max-width: 400px) {
  .bug-report-dialog { width: calc(100% - 20px); padding: 16px 14px 14px; }
}
