/* ═══════════════════════════════════════════════════════════════
   BUG REPORT MODAL — shared between lobby + combat screens.
   Class-scoped so it can be dropped into any page without style
   collisions. Colors match the HoMM3 dark-wood + gold theme.
   ═══════════════════════════════════════════════════════════════ */
.bug-report-modal-bg {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center;
  background: rgba(10,6,3,0.75);
  backdrop-filter: blur(2px);
}
.bug-report-modal-bg.open { display: flex; }
.bug-report-modal {
  width: 520px; max-width: 92vw;
  padding: 24px 28px 20px;
  background: linear-gradient(180deg, rgba(60,42,24,0.98) 0%, rgba(26,18,9,0.98) 100%);
  border: 2px solid #5c3d1e;
  box-shadow: inset 0 0 0 1px #c9a84c, 0 0 40px rgba(0,0,0,0.85);
  color: #e0d8c0;
  font-family: 'Crimson Text', serif;
  border-radius: 3px;
  box-sizing: border-box;
}
.bug-report-modal * { box-sizing: border-box; }
.bug-report-modal h2 {
  font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #e8c96d;
  text-align: center; margin: 0 0 10px;
  text-shadow: 0 0 14px rgba(201,168,76,0.4), 0 2px 3px rgba(0,0,0,0.85);
}
.bug-report-hint {
  font-size: 0.85rem; color: #b8a97a;
  margin: 0 0 14px; line-height: 1.4;
  text-align: center;
}
.bug-report-modal textarea {
  width: 100%;
  min-height: 160px; max-height: 360px;
  padding: 10px 12px;
  font-family: 'Crimson Text', serif; font-size: 0.95rem;
  color: #e0d8c0;
  background: rgba(20,14,8,0.85);
  border: 1px solid #5c3d1e;
  border-radius: 2px;
  resize: vertical;
  line-height: 1.45;
}
.bug-report-modal textarea:focus {
  outline: none; border-color: #c9a84c;
  box-shadow: 0 0 6px rgba(201,168,76,0.35);
}
.bug-report-modal textarea::placeholder {
  color: #8a7a52; font-style: italic;
}
.bug-report-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px;
}
.bug-report-counter {
  font-size: 0.72rem; color: #8a7a52;
  letter-spacing: 1px;
}
.bug-report-actions { display: flex; gap: 10px; }
.bug-report-actions button {
  font-family: 'Cinzel', serif; font-size: 0.72rem; letter-spacing: 2px;
  text-transform: uppercase; padding: 8px 18px;
  background: linear-gradient(180deg, rgba(90,60,30,0.7), rgba(30,20,10,0.85));
  border: 1px solid #5c3d1e; color: #e0d8c0;
  cursor: pointer; border-radius: 2px;
}
.bug-report-actions button.primary {
  background: linear-gradient(180deg, rgba(122,82,48,0.95), rgba(58,37,16,0.98));
  color: #e8c96d; border-color: #c9a84c;
}
.bug-report-actions button:hover:not(:disabled) { filter: brightness(1.15); }
.bug-report-actions button:disabled { opacity: 0.55; cursor: default; }
.bug-report-status {
  margin-top: 10px; min-height: 1.2em;
  font-size: 0.85rem; text-align: right;
  color: #b8a97a;
}
.bug-report-status.error { color: #e68a8a; }
.bug-report-status.ok    { color: #8ce89a; }

/* Floating trigger pill — shared base for both lobby and combat.
   Kept out of layout (position: fixed) so it never competes with the
   lobby wall-ledge (Online / Invite / Logout) or the combat audio btn. */
.lobby-bug-btn,
.combat-bug-btn {
  position: fixed;
  z-index: 9000;
  padding: 5px 14px 5px 30px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #d8c98a;
  background: linear-gradient(180deg, rgba(70,45,25,0.92), rgba(22,15,8,0.92));
  border: 1px solid #5c3d1e;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(201,168,76,0.28),
              0 2px 6px rgba(0,0,0,0.6);
  text-shadow: 0 1px 0 rgba(0,0,0,0.7);
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.15s, filter 0.15s, box-shadow 0.2s;
}
.lobby-bug-btn::before,
.combat-bug-btn::before {
  content: "🐞";
  position: absolute; left: 9px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
}
.lobby-bug-btn:hover,
.combat-bug-btn:hover {
  opacity: 1;
  filter: brightness(1.15);
  box-shadow: inset 0 0 0 1px rgba(201,168,76,0.55),
              0 0 10px rgba(201,168,76,0.35);
}

/* Both buttons live in the bottom-right so placement is consistent
   across scenes. The combat audio mute button sits top-right inside
   the scaled combat-main, so bottom-right keeps the bug btn clear of
   both that and the lobby's wall ledge. */
.lobby-bug-btn { bottom: 14px; right: 16px; }
.combat-bug-btn { bottom: 14px; right: 16px; }
.combat-bug-btn[hidden] { display: none; }
