/* The note button and form (docs/SPEC_v4.md). Loaded on arcade pages and, through the
   game chrome, on game pages, so it sets everything it relies on: a game's own
   stylesheet may style bare buttons and inputs. */
.fss-note-ui, .fss-note-ui * {
  box-sizing: border-box;
  font: 13px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: normal;
  text-transform: none;
  cursor: auto;
}
.fss-note-ui [hidden] { display: none !important; }

.fss-note-btn {
  position: fixed; right: 10px; bottom: 10px; z-index: 10000;
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0; padding: 7px 10px; border: 0; border-radius: 4px;
  color: #eee; background: rgba(0, 0, 0, .55);
  cursor: pointer;
}
.fss-note-btn * { cursor: pointer; }
.fss-note-btn:hover, .fss-note-btn:focus-visible { background: rgba(0, 0, 0, .8); }
.fss-note-btn:focus-visible { outline: 2px solid #eee; outline-offset: 2px; }
.fss-note-btn svg { display: block; }

.fss-note-strip {
  position: fixed; left: 0; right: 0; top: 0; z-index: 10000;
  margin: 0; padding: 8px 12px; text-align: center;
  color: #eee; background: rgba(0, 0, 0, .8);
}

html.fss-noting, html.fss-noting * { cursor: crosshair !important; }
html.fss-noting .fss-note-ui, html.fss-noting .fss-note-ui * { cursor: auto !important; }
html.fss-noting .fss-note-btn, html.fss-noting .fss-note-btn * { cursor: pointer !important; }

.fss-note-form {
  position: fixed; z-index: 10001;
  width: 300px; max-width: calc(100vw - 16px);
  margin: 0; padding: 12px;
  color: #eee; background: #1b1b1f;
  border: 1px solid #444; border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}
.fss-note-form.fss-docked {
  left: 8px; right: 8px; bottom: 50px; top: auto;
  width: auto; max-width: none;
}
.fss-note-about { margin: 0 0 8px; color: #bbb; }
.fss-note-label { display: block; margin: 0 0 8px; color: #bbb; }
.fss-note-name, .fss-note-text {
  display: block; width: 100%; margin: 3px 0 0; padding: 6px 7px;
  color: #eee; background: #0e0e10;
  border: 1px solid #555; border-radius: 4px;
  font-size: 16px;                       /* 16px: phones don't zoom into the field */
  resize: vertical; cursor: text;
}
.fss-note-name:focus, .fss-note-text:focus { outline: 2px solid #8ab4f8; outline-offset: 0; }
.fss-note-row { display: flex; align-items: center; gap: 8px; }
.fss-note-count { flex: 1; color: #888; }
.fss-note-cancel, .fss-note-send {
  margin: 0; padding: 6px 12px; border-radius: 4px; cursor: pointer;
}
.fss-note-cancel { color: #ccc; background: transparent; border: 1px solid #555; }
.fss-note-send { color: #111; background: #e8e8e8; border: 1px solid #e8e8e8; }
.fss-note-send:disabled { opacity: .4; cursor: default; }
