/* Module "gamevotes" (2.83.0, public/js/modules/gamevotes/gamevotes.js): vote box on the streamer's tile and the
   "Game votes" group in the send panel. Pages only get this file when the module is on (src/routes/pages.js). */

/* box at the bottom left of the stream (top: name and tools, bottom right: camera window) */
.gv-box { position: absolute; left: 10px; bottom: 10px; z-index: 6; width: min(300px, calc(100% - 20px)); padding: 8px;
  border-radius: 10px; background: rgba(8, 5, 13, .86); border: 1px solid rgba(232, 195, 122, .45); color: var(--k-text, #ded6ea);
  font: .78rem/1.3 var(--data); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.gv-box:has(.gv-chip) { width: auto; padding: 0; border-radius: 999px; }
.gv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.gv-title { flex: 1; min-width: 0; font: 600 .8rem/1.2 var(--display); color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-time { font-variant-numeric: tabular-nums; color: var(--gold); }
.gv-min, .gv-chip { all: unset; cursor: pointer; color: var(--k-muted, #a99cbc); padding: 0 6px; border-radius: 6px; }
.gv-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; color: var(--gold); }
.gv-min:hover, .gv-chip:hover, .gv-min:focus-visible, .gv-chip:focus-visible { color: var(--k-text, #fff); outline: 1px solid rgba(232, 195, 122, .5); }
.gv-opts { display: flex; flex-direction: column; gap: 4px; }
.gv-opt { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; overflow: hidden; cursor: pointer;
  border-radius: 7px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: inherit; font: inherit; text-align: left; }
.gv-opt:disabled { cursor: default; }
.gv-opt:not(:disabled):hover, .gv-opt:not(:disabled):focus-visible { border-color: var(--spirit); }
.gv-bar { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(127, 240, 200, .16); transition: width .3s; pointer-events: none; }
.gv-n { position: relative; width: 16px; height: 16px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .1); font-size: .68rem; }
.gv-name { position: relative; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-count { position: relative; font-variant-numeric: tabular-nums; color: var(--k-muted, #a99cbc); }
.gv-good .gv-n { background: rgba(127, 240, 200, .25); }
.gv-bad .gv-n { background: rgba(213, 72, 107, .35); }
.gv-opt.mine { border-color: var(--spirit); }
.gv-opt.mine .gv-name::after { content: ' ✓'; color: var(--spirit); }
.gv-opt.win { border-color: var(--gold); background: rgba(232, 195, 122, .14); }
.gv-opt.win .gv-bar { background: rgba(232, 195, 122, .22); }
.gv-foot { margin-top: 6px; color: var(--k-muted, #a99cbc); font-size: .7rem; }
@media (prefers-reduced-motion: reduce) { .gv-bar { transition: none; } }

/* send panel */
.send-game-status { margin: 0 0 8px; color: var(--k-muted, #a99cbc); font-size: .8rem; }
.send-game-status.ok { color: var(--spirit); }
.send-game-num input { width: 100%; }
