/* Shared feedback widget: a small floating button + sheet, dropped into any
   game with one script tag and one <div id="af-feedback-root"></div>. Uses
   the game page's own --font-* and --accent/--surface/--border variables so
   it matches whichever theme the page has set. */
#af-feedback-root { all: initial; }
#af-feedback-root, #af-feedback-root * { box-sizing: border-box; font-family: var(--font-mono, ui-monospace, monospace); }

.af-btn {
  position: fixed; right: 14px; bottom: 14px; z-index: 9000;
  background: var(--surface, #0d1a2e); color: var(--accent, #e8a020);
  border: 1px solid var(--border-bright, rgba(78,140,220,0.5));
  border-radius: 999px; padding: 9px 16px; font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.af-btn:hover { filter: brightness(1.15); }

.af-overlay {
  position: fixed; inset: 0; z-index: 9001; background: rgba(0,0,0,.55);
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 560px) { .af-overlay { align-items: center; } }

.af-sheet {
  width: 100%; max-width: 420px; max-height: 86vh; overflow-y: auto;
  background: var(--surface, #0d1a2e); color: var(--text-bright, #ddeeff);
  border: 1px solid var(--border, rgba(78,140,220,.22));
  border-radius: 14px 14px 0 0; padding: 18px 18px 20px;
}
@media (min-width: 560px) { .af-sheet { border-radius: 14px; } }

.af-sheet h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.af-sub { margin: 0 0 14px; font-size: 11.5px; color: var(--text, #8aaed0); }

.af-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.af-reason {
  background: var(--accent-dim, rgba(232,160,32,.12)); color: var(--text-bright, #ddeeff);
  border: 1px solid var(--border, rgba(78,140,220,.22)); border-radius: 6px;
  padding: 7px 10px; font-size: 11px; cursor: pointer; letter-spacing: .02em;
}
.af-reason.af-active { border-color: var(--accent, #e8a020); color: var(--accent, #e8a020); }

.af-text {
  width: 100%; min-height: 64px; resize: vertical; margin-bottom: 10px;
  background: var(--bg, #08111f); color: var(--text-bright, #ddeeff);
  border: 1px solid var(--border, rgba(78,140,220,.22)); border-radius: 8px;
  padding: 8px 10px; font-size: 12.5px; line-height: 1.5;
}

.af-row { display: flex; gap: 8px; justify-content: flex-end; }
.af-cancel, .af-submit {
  border-radius: 6px; padding: 8px 14px; font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; border: 1px solid var(--border, rgba(78,140,220,.22));
}
.af-cancel { background: transparent; color: var(--text, #8aaed0); }
.af-submit { background: var(--accent, #e8a020); color: var(--on-accent, #08111f); border-color: transparent; font-weight: 600; }
.af-submit:disabled { opacity: .5; cursor: default; }

.af-status { margin-top: 10px; font-size: 11px; color: var(--text, #8aaed0); min-height: 14px; }
