/* Player-facing modal chrome (Report dialog + suspended-account overlay). Kept out of admin sheets: both are shown to non-admins, so tiering to admins would leave them unstyled. */

/* z 1400: #app is a plain flex box, so this and the fixed mobile bottom bar (500) share the
   ROOT stacking context — at 100 the bar painted over the scrim and stayed tappable, including
   under showAccountSuspended, whose only way out is signing out. Above .chat-unread (1310) and
   the mobile #dm-dock (1300), below .coin-toast-overlay (10000). */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1400; }
.modal-card { background: var(--bg-1); border: 1px solid var(--border-strong); border-radius: var(--radius-l); padding: 24px 28px; min-width: 360px; max-width: 460px; text-align: center; box-shadow: var(--shadow-2); }
.modal-card h3 { color: var(--text-primary); margin-bottom: 8px; font-size: 1.15rem; }
.modal-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.modal-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.modal-prompt .modal-prompt-icon {
  display: inline-block;
  margin-right: 4px;
  font-size: 1.05em;
  vertical-align: baseline;
}
.modal-input-wrap {
  margin: 0 0 16px;
}
.modal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-input, var(--bg-card));
  border: 1px solid var(--border-color, rgba(255,255,255,0.12));
  border-radius: 8px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  outline: none;
}
.modal-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.modal-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.modal-prompt-error {
  margin: -8px 0 14px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-red);
  background: color-mix(in srgb, var(--porphyry) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--porphyry) 35%, transparent);
  border-radius: 6px;
  text-align: left;
  line-height: 1.35;
}
.modal-buttons .btn.is-busy {
  opacity: 0.7;
  cursor: progress;
}

.stats-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 20px; min-width: 340px; }

.ai-confirm-prompt {
  display: flex; align-items: center; gap: 6px; margin-left: 8px;
  padding: 3px 8px; background: color-mix(in srgb, var(--accent-gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent-gold) 30%, transparent);
  border-radius: 6px; animation: fadeIn 0.15s ease;
}
.ai-confirm-text { font-size: 0.78rem; color: var(--accent-gold); font-weight: 600; white-space: nowrap; }
.btn.ai-confirm-yes { padding: 2px 10px; font-size: 0.72rem; min-width: 0; }
.btn.ai-confirm-no { padding: 2px 10px; font-size: 0.72rem; min-width: 0; background: transparent; border-color: var(--ink-3); color: var(--ink-3); }
.btn.ai-confirm-no:hover { border-color: var(--porphyry-2); color: var(--porphyry-2); }

.report-modal { max-width: 460px; text-align: left; }
.report-sub { margin: 0 0 14px; }
.report-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }
/* .profile-input is flex:1 1 220px — in a COLUMN flex the 220px basis becomes a HEIGHT; pin to content. */
.report-field .profile-input { flex: 0 0 auto; width: 100%; }
.report-select { height: auto; }
.report-textarea { resize: vertical; font-family: inherit; min-height: 96px; }
.report-chat-note {
  margin: 0 0 12px; padding: 8px 10px; font-size: 0.85rem;
  background: color-mix(in srgb, var(--bronze) 12%, transparent); border-radius: var(--radius-s); color: var(--ink-2);
}

.modal-overlay-block { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.modal-suspended { max-width: 420px; text-align: center; }
.modal-suspended-ico { font-size: 2.4rem; color: var(--porphyry-2); margin-bottom: 6px; }
.modal-suspended-reason {
  margin-top: 8px; padding: 8px 10px; font-size: 0.9rem; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-s);
}
