/* DataLab — Ideias e bugs (feedback.js): Main Menu sub-screen and the in-game #feedback window.
   Same pixel look as the menu windows (menu.css: VT323 / Silkscreen, #05070d frames, #3dffa2 accent). */

/* menu button icon: a pixel light bulb (teal; --bg on hover, like the other icons) */
.mm-btn__icon--idea {
  background:
    linear-gradient(var(--teal) 0 0) 5px 0/6px 2px, linear-gradient(var(--teal) 0 0) 3px 2px/2px 2px, linear-gradient(var(--teal) 0 0) 11px 2px/2px 2px,
    linear-gradient(var(--teal) 0 0) 1px 4px/2px 4px, linear-gradient(var(--teal) 0 0) 13px 4px/2px 4px,
    linear-gradient(var(--teal) 0 0) 3px 8px/2px 2px, linear-gradient(var(--teal) 0 0) 11px 8px/2px 2px,
    linear-gradient(var(--teal) 0 0) 5px 10px/6px 2px, linear-gradient(var(--teal) 0 0) 5px 13px/6px 1px, linear-gradient(var(--teal) 0 0) 6px 15px/4px 1px,
    linear-gradient(var(--teal) 0 0) 7px 4px/2px 4px;
}
.mm-btn:hover:not(:disabled) .mm-btn__icon--idea,
.mm-btn:focus-visible:not(:disabled) .mm-btn__icon--idea {
  background-image:
    linear-gradient(var(--bg) 0 0), linear-gradient(var(--bg) 0 0), linear-gradient(var(--bg) 0 0),
    linear-gradient(var(--bg) 0 0), linear-gradient(var(--bg) 0 0),
    linear-gradient(var(--bg) 0 0), linear-gradient(var(--bg) 0 0),
    linear-gradient(var(--bg) 0 0), linear-gradient(var(--bg) 0 0), linear-gradient(var(--bg) 0 0),
    linear-gradient(var(--bg) 0 0);
}

/* ---------------- the component ---------------- */
.fb { --fb-frame: #46506b; --fb-ink: #e6ecf5; --fb-dim: #a3adbf; --fb-mute: #808ba6; --fb-hi: #3dffa2; --fb-warm: #ffb547; --fb-well: #05070d;
  display: flex; flex-direction: column; gap: 14px; min-width: 0; color: var(--fb-ink); }
.fb .fb-tabs { margin-bottom: 0; }
.fb .fb-tabs .mv-tab { height: auto; padding: 9px 16px 7px; font: 400 16px/1 'Silkscreen', monospace; }
.fb-lead { margin: 0; font: 400 20px/1.25 'VT323', monospace; color: var(--fb-dim); }
.fb-lead b { font-weight: 400; color: var(--fb-warm); }

.fb-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.fb-bar--list { margin-top: 10px; padding-top: 14px; border-top: 2px dashed #262f46; }
.fb-sub, .fb-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fb-pill {
  height: auto; padding: 7px 10px 5px; border: 0; cursor: pointer;
  font: 400 14px/1 'Silkscreen', monospace; color: var(--fb-dim); background: #141b2c;
  box-shadow: 0 0 0 2px #262f46;
}
.fb-pill--sm { padding: 5px 8px 3px; font-size: 12px; }
.fb-pill:hover, .fb-pill:focus-visible { color: var(--fb-ink); box-shadow: 0 0 0 2px var(--fb-frame); outline: none; }
.fb-pill.is-on { color: var(--fb-well); background: var(--fb-hi); box-shadow: 0 0 0 2px #1f9e66; }

/* forms */
.fb-form { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: var(--fb-well); box-shadow: 0 0 0 2px var(--fb-frame); }
.fb-field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fb-field .input { width: 100%; }
.fb-text { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; font: 400 20px/1.2 'VT323', monospace; }
.fb .input { color: var(--fb-ink); background: #0d1424; border: 2px solid #262f46; border-radius: 0; }
.fb .input:focus { border-color: var(--fb-hi); outline: none; }
.fb input.input { height: 40px; padding: 0 12px; font: 400 20px/1 'VT323', monospace; }
.fb .input--sm { width: auto; height: 30px; padding: 0 8px; font: 400 12px/1 'Silkscreen', monospace; }
.fb-count { align-self: flex-end; font: 400 12px/1 'Silkscreen', monospace; color: var(--fb-mute); }
.fb-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

/* screenshot */
.fb-shot { display: flex; gap: 14px; align-items: center; padding: 12px; background: #0d1424; box-shadow: 0 0 0 2px #262f46; }
.fb-shot.is-drag { box-shadow: 0 0 0 2px var(--fb-hi); background: #0f2a22; }
.fb-shot__empty, .fb-shot__info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fb-shot__empty b, .fb-shot__info b { font: 400 14px/1 'Silkscreen', monospace; color: var(--fb-ink); }
.fb-shot__empty > span { font: 400 18px/1.2 'VT323', monospace; color: var(--fb-dim); }
.fb-shot__img { width: 180px; max-width: 45%; aspect-ratio: 16 / 10; object-fit: cover; flex: none; background: var(--fb-well); box-shadow: 0 0 0 2px var(--fb-frame); }
.fb-shot__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fb-shot__acts label.btn { cursor: pointer; }

/* ideas */
.fb-list, .fb-bugs { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fb-idea { display: flex; gap: 14px; padding: 12px 14px; background: var(--fb-well); box-shadow: 0 0 0 2px var(--fb-frame); }
.fb-idea.is-top { box-shadow: 0 0 0 2px var(--fb-warm); }
.fb-like {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: none;
  width: 56px; height: 60px; padding: 0; border: 0; cursor: pointer;
  color: var(--fb-dim); background: #141b2c; box-shadow: 0 0 0 2px #262f46;
}
.fb-like span { font: 400 22px/1 'VT323', monospace; }
.fb-like b { font: 400 14px/1 'Silkscreen', monospace; color: var(--fb-ink); }
.fb-like:hover:not(:disabled), .fb-like:focus-visible { box-shadow: 0 0 0 2px #ff5d8a; color: #ff5d8a; outline: none; }
.fb-like.is-on { color: #ff5d8a; background: #2a0f1c; box-shadow: 0 0 0 2px #ff5d8a; }
.fb-like:active:not(:disabled) { transform: translateY(2px); }
.fb-like:disabled { cursor: default; opacity: 0.75; }
.fb-idea__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.fb-idea__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fb-idea__title { font: 400 24px/1.05 'VT323', monospace; color: var(--fb-ink); overflow-wrap: anywhere; }
.fb-rank { font: 400 12px/1 'Press Start 2P', monospace; color: var(--fb-warm); }
.fb-idea__body, .fb-bug__msg { margin: 0; font: 400 19px/1.2 'VT323', monospace; color: var(--fb-dim); white-space: pre-line; overflow-wrap: anywhere; }
.fb-idea__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.fb-meta { font: 400 12px/1.3 'Silkscreen', monospace; color: var(--fb-mute); }
.fb-note { margin: 0; padding: 6px 10px; font: 400 18px/1.2 'VT323', monospace; color: var(--fb-ink); background: #0f2a22; box-shadow: inset 2px 0 var(--fb-hi); }
.fb-note b { font-weight: 400; color: var(--fb-hi); }
.fb-del { margin-left: auto; font: 400 12px/1 'Silkscreen', monospace; color: var(--fb-mute); }
.fb-del:hover { color: #ff5d6c; }

.fb-tag { padding: 4px 6px 2px; font: 400 11px/1 'Silkscreen', monospace; letter-spacing: 0.5px; color: var(--fb-dim); background: #262f46; }
.fb-tag--hot, .fb-tag--planned, .fb-tag--confirmed { color: #05070d; background: var(--fb-warm); }
.fb-tag--done, .fb-tag--fixed { color: #05070d; background: var(--fb-hi); }
.fb-tag--rejected, .fb-tag--invalid { color: #e6ecf5; background: #5a2330; }
.fb-tag--new { color: #05070d; background: #a0c3ec; }

/* bugs */
.fb-bug { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--fb-well); box-shadow: 0 0 0 2px var(--fb-frame); }
.fb-bug__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.fb-bug__ctx { overflow-wrap: anywhere; }
.fb-bug__img { max-width: 100%; max-height: 220px; align-self: flex-start; cursor: zoom-in; box-shadow: 0 0 0 2px var(--fb-frame); }
.fb-bug__img.is-zoom { max-height: none; cursor: zoom-out; }
.fb-bug__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.fb-msg { min-height: 1.3em; margin: 0; font: 400 20px/1.2 'VT323', monospace; color: var(--fb-dim); }
.fb-msg--ok { color: var(--fb-hi); }
.fb-msg--warn { color: var(--fb-warm); }

/* ---------------- in game: the window ---------------- */
.overlay--fb { z-index: 55; }
.fb-card { width: min(760px, 100%); padding: 24px 28px 28px; border: 0; border-radius: 0; background: #0d1424;
  box-shadow: 0 0 0 4px #46506b, 0 0 0 8px #05070d, 8px 12px 0 8px rgba(5, 7, 13, .8); }
.fb-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.fb-card__head .card__title { margin-top: 6px; font: 400 20px/1.4 'Press Start 2P', monospace; letter-spacing: 0; color: #3dffa2; text-shadow: 0 3px #0f4a33; }

@media (max-width: 560px) {
  .fb-card { padding: 18px 16px 20px; }
  .fb-shot { flex-direction: column; align-items: stretch; }
  .fb-shot__img { width: 100%; max-width: none; }
  .fb-idea { gap: 10px; padding: 10px; }
  .fb-like { width: 46px; height: 52px; }
}
