/* === module: rigged_vote === */
.rv-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(5, 8, 18, 0.92);
  backdrop-filter: blur(12px);
  flex-direction: column; align-items: center;
  overflow-y: auto; padding: 40px 20px;
}
.rv-overlay.visible { display: flex; }

.rv-phase { max-width: 640px; width: 100%; }

.rv-header { text-align: center; margin-bottom: 28px; }
.rv-title { color: #e0e0e0; font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.rv-subtitle { color: #6a7a8a; font-size: 14px; margin: 0; }

/* Ballot cards */
.rv-ballot-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }

.rv-ballot-card {
  background: #121a2a;
  border: 1px solid #1e2d40;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.rv-ballot-card:hover { border-color: #2a4060; }
.rv-ballot-card.revealed { border-color: #e8a040; box-shadow: 0 0 20px rgba(232, 160, 64, 0.1); cursor: default; }

.rv-ballot-front {
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.rv-ballot-voter {
  font-size: 16px; font-weight: 600; color: #e0e0e0;
}
.rv-ballot-lock { font-size: 18px; color: #555; transition: transform 0.3s; }
.rv-ballot-card.revealed .rv-ballot-lock { transform: rotate(15deg); }

.rv-ballot-secret {
  display: none;
  padding: 0 20px 18px;
  animation: rvFadeIn 0.4s ease;
}
.rv-ballot-card.revealed .rv-ballot-secret { display: block; }

@keyframes rvFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.rv-ballot-choice {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.rv-ballot-choice-label { color: #666; font-size: 12px; }
.rv-ballot-choice-name { color: #ff8a80; font-size: 18px; font-weight: 700; }

.rv-ballot-reason {
  background: #0d1420;
  border-left: 3px solid #e8a040;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  color: #b0b8c0; font-size: 13px; line-height: 1.6;
  margin-bottom: 10px;
  font-style: italic;
}

.rv-ballot-confidence {
  display: flex; align-items: center; gap: 10px;
}
.rv-confidence-bar {
  flex: 1; height: 6px; background: #1a2030; border-radius: 3px; overflow: hidden;
}
.rv-confidence-fill {
  height: 100%; background: linear-gradient(90deg, #4a6fa5, #60c8e8);
  border-radius: 3px; transition: width 0.6s ease;
}
.rv-confidence-text { color: #556; font-size: 11px; min-width: 60px; }

/* Peek footer */
.rv-peek-footer { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Strategy phase */
.rv-real-summary {
  background: #0d1420; border: 1px solid #1e2d40; border-radius: 10px;
  padding: 14px 18px; margin-bottom: 20px;
  font-size: 13px; color: #8a9aaa; line-height: 1.7;
}
.rv-real-summary .rv-summary-line { margin: 2px 0; }
.rv-real-summary .rv-voter-name { color: #e8a040; font-weight: 600; }
.rv-real-summary .rv-choice-name { color: #ff8a80; font-weight: 600; }

.rv-strategy-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.rv-strategy-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: #121a2a; border: 1px solid #1e2d40; border-radius: 10px;
  padding: 14px 18px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.rv-strategy-card:hover { border-color: #2a4060; background: #151f30; }
.rv-strategy-card:has(input:checked) { border-color: #e8a040; background: #1a2235; }
.rv-strategy-card input[type="radio"] { margin-top: 4px; accent-color: #e8a040; }

.rv-strategy-body { flex: 1; }
.rv-strategy-name { color: #e0e0e0; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.rv-strategy-desc { color: #8a9aaa; font-size: 13px; margin-bottom: 4px; }
.rv-strategy-drama { color: #6a7a8a; font-size: 12px; }

.rv-strategy-detail {
  background: #0d1420; border: 1px solid #1e2d40; border-radius: 10px;
  padding: 16px 18px; margin-bottom: 20px;
  animation: rvFadeIn 0.3s ease;
}
.rv-detail-title { color: #aaa; font-size: 13px; margin-bottom: 12px; }

/* Private message rows */
.rv-private-msg-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap;
}
.rv-private-msg-row select, .rv-private-msg-row input {
  background: #121a2a; color: #ccc; border: 1px solid #2a3a4a; border-radius: 6px;
  padding: 6px 10px; font-size: 13px;
}
.rv-private-msg-row input { flex: 1; min-width: 160px; }
.rv-private-msg-row .rv-remove-msg {
  background: none; border: none; color: #a44; cursor: pointer; font-size: 16px; padding: 2px 6px;
}

.rv-fabricated-input {
  width: 100%; background: #121a2a; color: #ccc; border: 1px solid #2a3a4a;
  border-radius: 8px; padding: 10px 14px; font-size: 14px; resize: vertical;
  font-family: inherit;
}
.rv-fabricated-input:focus { border-color: #e8a040; outline: none; }

.rv-strategy-footer { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* Shared buttons */
.rv-btn {
  padding: 10px 24px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: opacity 0.15s, transform 0.1s;
}
.rv-btn:hover { opacity: 0.85; }
.rv-btn:active { transform: scale(0.97); }
.rv-btn-primary { background: #e8a040; color: #0d1420; }
.rv-btn-primary:disabled { opacity: 0.4; cursor: default; }
.rv-btn-ghost { background: transparent; color: #6a7a8a; border: 1px solid #2a3a4a; }
.rv-btn-ghost:hover { border-color: #4a5a6a; color: #aaa; }
.rv-btn-small { background: #1a2a3a; color: #8aa; border: 1px solid #2a3a4a; border-radius: 6px; padding: 6px 14px; font-size: 12px; cursor: pointer; }
.rv-btn-small:hover { background: #223040; }
/* === end module: rigged_vote === */
