/* Report a problem: a window of its own, opened from the town's tools and,
   in the corridors, from the top right corner. */

.report-modal.game-modal { width:min(480px,calc(var(--safe-vw) - 32px)); max-height:calc(var(--safe-dvh) - 32px); padding:24px; overflow-y:auto; pointer-events:auto; }
.report-modal h2,.report-modal p { margin:0; }
.report-body { display:grid; gap:14px; padding-top:20px; }
.report-body p { font-size:14px; line-height:1.5; color:#c4baa5; }
#report-input { width:100%; min-height:96px; padding:10px 12px; resize:vertical; font:400 15px/1.4 "Segoe UI",system-ui,sans-serif; color:#f4e8c9; background:#0b0d10; border:2px solid #3b3328; }
#report-input:focus { outline:2px solid var(--gold); outline-offset:2px; }
#report-input::placeholder { color:#6f6656; }
.report-actions { display:flex; justify-content:flex-end; }
.report-actions button { min-height:44px; min-width:112px; }
#report-status:empty { display:none; }
#report-status[data-tone="warn"] { color:#e0a07a; }
#report-status[data-tone="ok"] { color:#a9c98e; }
@media(max-height:440px) {
  .report-modal.game-modal { padding:18px; }
  .report-body { gap:10px; padding-top:12px; }
  #report-input { min-height:72px; }
}

/* In the corridors, the top right corner, in a cut frame - where a
   players-online badge stood until how many are online moved under Chat's
   title. Shown there only, never over a fight, and not in town, which has
   its own Report among the tools (client.js, showFieldTools). Chat stands
   52px to its left, and each place here has its twin in chat.css. */
#btn-report-field {
  position:absolute; top:18px; right:18px; z-index:40;
  display:flex; align-items:center; justify-content:center;
  width:44px; min-width:44px; height:44px; min-height:44px; padding:0;
  border:0; border-radius:0; color:#d9c79f; pointer-events:auto;
  clip-path:polygon(6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px),0 6px);
  background:linear-gradient(140deg,#a38c60,#5e5947 50%,#8b7953); box-shadow:none;
}
#btn-report-field::before { content:""; position:absolute; inset:1px; z-index:-1; clip-path:inherit; background:linear-gradient(145deg,#25302c,#111a1a 48%,#0b1213); box-shadow:inset 0 1px #d2c09233,inset 0 -2px #0009; }
#btn-report-field svg { width:24px; height:24px; pointer-events:none; }
#btn-report-field:focus-visible { outline:0; background:#f0d497; }
#btn-report-field:focus-visible::before { inset:2px; }
@media (hover:hover) and (pointer:fine) { #btn-report-field:hover::before { background:linear-gradient(145deg,#344039,#18221f); } }
@media (max-width:760px), (max-height:540px) {
  #btn-report-field { top:12px; right:12px; }
}
#viewport:has(#navigation-hud:not(.hidden)) #btn-report-field { top:190px; }
@media (orientation:landscape) and (max-height:540px) {
  #viewport:has(#navigation-hud:not(.hidden)) #btn-report-field { top:166px; right:12px; }
}
/* Upright the hero's card reaches across the top, so Report keeps to the corner
   beside it and Chat goes under Report. */
@media (orientation:portrait) and (max-width:600px) {
  #viewport:has(#navigation-hud:not(.hidden)) #btn-report-field { top:12px; right:12px; }
}
