/* ===== Meeting Flash ===== */
#meeting-flash {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.93); z-index: 3000;
  align-items: center; justify-content: center;
}
#meeting-flash.active { display: flex; }
#meeting-flash-text {
  font-size: 68px; font-weight: 900; text-align: center;
  line-height: 1.2; letter-spacing: 3px;
  animation: mPulse 0.55s ease-in-out infinite alternate;
  text-shadow: 0 0 60px currentColor;
  font-family: Impact, 'Arial Black', sans-serif;
}
@keyframes mPulse {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.05); opacity: 0.85; }
}

/* ===== Vote Screen ===== */
#vote-screen {
  display: none; position: fixed; inset: 0;
  background: rgba(4,4,16,0.97); z-index: 2500;
  align-items: flex-start; justify-content: center;
  padding: 16px 10px; overflow-y: auto;
  font-family: 'Segoe UI', sans-serif;
}
#vote-screen.active { display: flex; }

.vote-card {
  background: #0e0e1c; border: 2px solid #252545;
  border-radius: 16px; width: 100%; max-width: 590px;
  box-shadow: 0 0 50px rgba(231,76,60,0.12); overflow: hidden;
}
.vote-header {
  background: linear-gradient(135deg,#18182e,#101022);
  padding: 18px 22px; display: flex;
  align-items: center; justify-content: space-between;
  border-bottom: 1px solid #252545;
}
.vote-header h2 { margin: 0; font-size: 19px; color: #ecf0f1; }
#vote-timer {
  font-size: 26px; font-weight: bold; font-family: monospace;
  color: #f1c40f; background: rgba(0,0,0,0.35);
  padding: 4px 12px; border-radius: 8px;
  border: 1px solid #252545; min-width: 62px; text-align: center;
  transition: color 0.3s;
}
#caller-info {
  padding: 10px 22px; font-size: 13px; color: #95a5a6;
  border-bottom: 1px solid #151525; margin: 0;
}
#vote-player-list { padding: 10px 10px 4px; }

.vote-player-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 9px; margin-bottom: 5px;
  background: #14213e; border: 1px solid #1c2a4a;
}
.vote-player-row.dead  { opacity: 0.42; background: #0d0d1e; }
.vote-player-row.ejected { background: #3a1010; border-color: #c0392b; }
.vote-color-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25); flex-shrink: 0;
}
.vote-player-name { flex: 1; font-size: 14px; color: #ecf0f1; }
.vote-tally { font-size: 12px; color: #7f8c8d; min-width: 28px; text-align: right; }
.voted-check { font-size: 13px; color: #2ecc71; font-weight: bold; width: 18px; text-align: center; }

.vote-btn {
  background: #1a3a5c; color: #ecf0f1;
  border: 1px solid #2980b9; border-radius: 7px;
  padding: 5px 13px; cursor: pointer; font-size: 13px;
  transition: background 0.15s; white-space: nowrap;
}
.vote-btn:hover:not(:disabled) { background: #2980b9; }
.vote-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.vote-btn.chosen { background: #27ae60; border-color: #2ecc71; }

.skip-wrap { padding: 4px 10px 10px; }
.skip-btn {
  width: 100%; background: #1e1e34; color: #bdc3c7;
  border: 1px solid #303055; border-radius: 9px;
  padding: 9px 20px; cursor: pointer; font-size: 14px;
  transition: background 0.15s;
}
.skip-btn:hover:not(:disabled) { background: #2c2c4a; }
.skip-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.skip-btn.chosen { background: #27ae60; border-color: #2ecc71; color: #fff; }

#vote-result {
  padding: 12px 22px; text-align: center; font-size: 17px;
  font-weight: bold; display: none;
}

/* ===== Chat ===== */
.chat-section { border-top: 1px solid #252545; padding: 10px 10px 14px; }
#chat-toggle-btn {
  width: 100%; background: #14142a; color: #7f8c8d;
  border: 1px solid #252545; border-radius: 7px;
  padding: 7px 14px; cursor: pointer; font-size: 13px;
  text-align: left; transition: background 0.15s;
}
#chat-toggle-btn:hover { background: #1e1e38; }
#chat-panel { display: none; margin-top: 9px; }
#chat-panel.open { display: block; }
#chat-messages {
  background: #07070f; border: 1px solid #14142a;
  border-radius: 8px; height: 150px; overflow-y: auto;
  padding: 8px 10px; margin-bottom: 7px;
  display: flex; flex-direction: column; gap: 3px;
}
.chat-msg { font-size: 13px; color: #bdc3c7; line-height: 1.5; }
.chat-msg .chat-name { font-weight: bold; }
.chat-msg.ghost-msg { opacity: 0.45; font-style: italic; }
.chat-input-row { display: flex; gap: 7px; }
#chat-input {
  flex: 1; background: #0d0d1e; border: 1px solid #252545;
  border-radius: 7px; padding: 7px 11px; color: #ecf0f1;
  font-size: 14px; outline: none;
}
#chat-input:focus { border-color: #3498db; }
#chat-send-btn {
  background: #2980b9; color: #fff; border: none;
  border-radius: 7px; padding: 7px 15px; cursor: pointer;
  font-size: 13px; transition: background 0.15s;
}
#chat-send-btn:hover { background: #3498db; }
