/* Bug-report form (bug-report.js, WPF-256). Self-contained: the lobby page loads it without the game's overlay CSS. */
.bug-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px;
  background: rgba(43, 16, 48, 0.45); font: 14px/1.35 system-ui, sans-serif; color: #2b1030; }
.bug-overlay[hidden] { display: none; }
.bug-card { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; padding: 20px 24px;
  border-radius: 18px; background: #fff7fb; box-shadow: 0 10px 40px rgba(43, 16, 48, 0.35); display: grid; gap: 10px; }
.bug-heading { margin: 0; text-align: center; font-size: 22px; }
.bug-preview { display: block; width: 100%; max-height: 180px; object-fit: contain; border-radius: 10px; background: #1d2633; }
.bug-label { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-weight: 600; }
.bug-count { font-weight: 400; font-size: 12px; opacity: 0.7; align-self: end; }
.bug-title, .bug-description { grid-column: 1 / -1; box-sizing: border-box; width: 100%; padding: 7px 9px; border: 1px solid #d49ab3;
  border-radius: 8px; background: #fff; color: #2b1030; font: 14px/1.35 system-ui, sans-serif; }
.bug-description { resize: vertical; min-height: 96px; }
.bug-hint { margin: 0; font-size: 12px; opacity: 0.75; }
.bug-status { margin: 0; min-height: 1.35em; font-weight: 600; color: #2d6a3e; }
.bug-status-error { color: #a3123a; }
.bug-actions { display: flex; justify-content: flex-end; gap: 10px; }
.bug-actions button { padding: 9px 16px; border: 0; border-radius: 12px; font: 600 15px system-ui, sans-serif; cursor: pointer;
  background: #ff8fb8; color: #2b1030; }
.bug-actions button.secondary { background: #f1dce6; }
.bug-actions button:disabled { opacity: 0.5; cursor: default; }
.bug-actions button:hover:not(:disabled), .bug-actions button:focus-visible { background: #ffc0d6; }
/* Screenshot scenes hide every overlay unless the scene opts in (public/game/play.css). */
.test-scene.test-hud-bug-report #bug-report { display: grid; }
