/* Audience / voting page — mobile-first */
.vote-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh; padding: 1.5rem;
  text-align: center;
}
.vote-page h1 { font-size: 1.6rem; margin-bottom: 0.5rem; color: var(--primary); }
.vote-question {
  font-size: 1.3rem; font-weight: 600; margin-bottom: 2rem;
  max-width: 600px; line-height: 1.4;
}
.vote-area { width: 100%; max-width: 500px; }

/* Scale buttons */
.scale-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.scale-btn {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg-card);
  color: var(--text); font-size: 1.2rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.scale-btn:hover, .scale-btn.selected {
  border-color: var(--primary); background: var(--primary); color: #111;
  transform: scale(1.1);
}
.scale-labels { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }

/* Word cloud input */
.word-input-area { display: flex; flex-direction: column; gap: 0.75rem; }
.word-input-row { display: flex; gap: 0.5rem; }
.word-input-row input { flex: 1; }

/* Multiple choice */
.mc-options { display: flex; flex-direction: column; gap: 0.75rem; }
.mc-option {
  padding: 1rem 1.5rem; border: 2px solid var(--border);
  border-radius: var(--radius); background: var(--bg-card);
  cursor: pointer; font-size: 1.1rem; text-align: left;
  transition: all 0.2s;
}
.mc-option:hover { border-color: var(--primary); }
.mc-option.selected { border-color: var(--primary); background: rgba(11,141,131,0.15); }

/* Status messages */
.vote-status {
  margin-top: 1.5rem; padding: 0.75rem 1.5rem;
  border-radius: var(--radius); font-weight: 500;
}
.vote-status.confirmed { background: rgba(11,141,131,0.15); color: var(--primary); }
.vote-status.ended { background: rgba(146,150,149,0.15); color: var(--accent); }

/* Thank you screen */
.thank-you-screen {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding: 2rem 1rem;
}
.thank-you-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(11,141,131,0.2); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
}
.thank-you-text { font-size: 1.3rem; font-weight: 600; color: var(--primary); }
.thank-you-wait { font-size: 0.95rem; color: var(--text-muted); animation: pulse 2s ease-in-out infinite; }

/* Disabled vote controls */
.scale-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.mc-option[style*="pointer-events: none"] { opacity: 0.7; cursor: not-allowed; }

/* Waiting state */
.waiting-msg {
  font-size: 1.2rem; color: var(--text-muted);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Join page */
.join-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh; padding: 2rem;
}
.join-page h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.join-page .subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }
.code-input {
  font-size: 2.5rem !important; text-align: center; letter-spacing: 0.5rem;
  max-width: 300px; font-weight: 700;
}
.join-btn { margin-top: 1rem; font-size: 1.2rem; padding: 0.8rem 3rem; }

/* MC scrollable for 25 options */
.mc-options { max-height: 70vh; overflow-y: auto; }

/* Open-ended vote */
.oe-vote-area { display: flex; flex-direction: column; gap: 0.5rem; }
.oe-vote-area textarea { resize: vertical; min-height: 60px; }

/* Ranking vote */
.ranking-vote-area { display: flex; flex-direction: column; gap: 0.75rem; }
.ranking-hint { font-size: 0.9rem; color: var(--text-muted); text-align: center; }
.ranking-sortable { display: flex; flex-direction: column; gap: 0.5rem; }
.ranking-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg-card); border: 2px solid var(--border);
  padding: 0.9rem 1rem; border-radius: var(--radius);
  cursor: grab; transition: all 0.15s; font-size: 1.05rem;
}
.ranking-item:active { cursor: grabbing; }
.ranking-handle { font-size: 1.5rem; color: var(--text-muted); cursor: grab; user-select: none; }
.ranking-text { flex: 1; }
.ranking-ghost { opacity: 0.4; background: rgba(11,141,131,0.1); border-color: var(--primary); }

/* Q&A audience */
.qa-input-area { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.qa-input-area textarea { flex: 1; resize: none; min-height: 40px; }
.qa-audience-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 50vh; overflow-y: auto; }
.qa-audience-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 0.75rem; border-radius: 8px; text-align: left;
}
.qa-audience-item.answered { opacity: 0.5; }
.qa-text { flex: 1; font-size: 0.95rem; word-break: break-word; }
.qa-reacts { display: flex; gap: 0.5rem; flex-shrink: 0; }
.qa-react-btn {
  background: var(--bg-input); border: 1px solid var(--border);
  padding: 0.3rem 0.6rem; border-radius: 4px; cursor: pointer;
  font-size: 0.85rem; transition: all 0.15s;
}
.qa-react-btn.up:hover { color: var(--primary); border-color: var(--primary); }
.qa-react-btn.down:hover { color: #FF6B6B; border-color: #FF6B6B; }
