/* ==========================================================================
   CYBERPUNK AUDIENCE (MOBILE FIRST) STYLES
   ========================================================================== */
body {
  background: var(--bg-abyss);
  color: var(--text-main);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  border-left: 1.5px solid rgba(0, 240, 255, 0.2);
  border-right: 1.5px solid rgba(0, 240, 255, 0.2);
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.1);
}

/* Cyber Header */
.audience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(3, 7, 18, 0.95);
  border-bottom: 1.5px solid var(--border-dim);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.audience-title {
  font-family: var(--font-cyber);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-pill {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  background: rgba(255, 183, 3, 0.12);
  color: var(--neon-amber);
  border: 1px solid rgba(255, 183, 3, 0.4);
  padding: 4px 10px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.2);
}
.timer-pill.urgent {
  background: rgba(255, 0, 85, 0.2);
  color: var(--neon-crimson);
  border-color: var(--neon-crimson);
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
  animation: cyber-pulse 0.9s infinite;
}

/* Main Content Area */
.audience-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  overflow-y: auto;
}

/* 1. Waiting Scene */
.scene-waiting {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 24px 12px;
}

.waiting-icon {
  width: 96px;
  height: 96px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(0, 240, 255, 0.08);
  border: 2px solid var(--neon-cyan);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35), inset 0 0 15px rgba(0, 240, 255, 0.2);
  animation: waiting-glow 3s infinite alternate ease-in-out;
}

@keyframes waiting-glow {
  0% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); border-color: rgba(0, 240, 255, 0.6); }
  100% { box-shadow: 0 0 35px rgba(0, 240, 255, 0.6); border-color: var(--neon-cyan); }
}

.waiting-title {
  font-family: var(--font-cyber);
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.waiting-desc {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 340px;
  line-height: 1.5;
}

.device-info-card {
  margin-top: 10px;
  background: rgba(11, 19, 41, 0.9);
  border: 1px solid var(--border-bright);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
  clip-path: var(--clip-chamfer);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* 2. Voting Scene (Vote 1) */
.scene-vote {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.vote-question-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-bright);
  clip-path: var(--clip-chamfer);
  padding: 14px 18px;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.vote-question-card::before {
  content: "// SYS:QUERY";
  position: absolute;
  top: 4px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.vote-question-card h2 {
  font-family: var(--font-cyber);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--neon-cyan);
  margin-top: 6px;
  margin-bottom: 4px;
  letter-spacing: 0.8px;
}

.vote-question-card p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
}

.vote-options-group {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  justify-content: center;
}

/* Single Choice Button - >= 56px height (64px) with Cyberpunk Cutout */
.choice-btn {
  min-height: 66px;
  border-radius: 0;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  position: relative;
  background: rgba(11, 19, 41, 0.85);
  border: 1.5px solid var(--border-bright);
  overflow: hidden;
}

.choice-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--neon-cyan);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
}

.choice-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.choice-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

.choice-btn:hover::before {
  left: 150%;
  transition: all 0.5s ease;
}

.choice-btn .choice-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  font-family: var(--font-cyber);
  font-weight: 900;
  font-size: 1.3rem;
  color: #030712;
  background: #ffffff;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: transform 0.2s ease;
}

.choice-btn:hover .choice-letter {
  transform: scale(1.08);
}

.choice-btn .choice-text {
  flex: 1;
  color: #ffffff;
}

/* Selected State with Intense Neon Aura */
.choice-btn.selected {
  border-width: 2px !important;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.2) !important;
  animation: selected-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes selected-pop {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.choice-btn.selected::after {
  content: "✓";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  color: #030712;
  width: 28px;
  height: 28px;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cyber);
  font-weight: 900;
  font-size: 1rem;
}

.choice-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Feedback Banners */
.vote-feedback {
  background: rgba(0, 255, 136, 0.12);
  border: 1.5px solid var(--neon-green);
  color: var(--neon-green);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  text-align: center;
  font-weight: 700;
  clip-path: var(--clip-chamfer);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.vote-closed-banner {
  background: rgba(255, 0, 85, 0.15);
  border: 1.5px solid var(--neon-crimson);
  color: #ffa6c2;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: center;
  font-weight: 700;
  clip-path: var(--clip-chamfer);
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
}

/* 3. Question Scene (q1 - q5) */
.scene-question {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 18px 8px;
}

.question-badge {
  font-family: var(--font-cyber);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1.5px solid var(--neon-cyan);
  padding: 6px 20px;
  clip-path: var(--clip-chamfer);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  letter-spacing: 1px;
}

.question-text {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.reflection-timer-box {
  width: 100%;
  max-width: 330px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-bright);
  clip-path: var(--clip-chamfer-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.reflection-countdown-number {
  font-family: var(--font-cyber);
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--neon-amber);
  line-height: 1;
  text-shadow: 0 0 25px rgba(255, 183, 3, 0.5);
}

.reflection-label {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(22, 36, 71, 0.8);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border-bright);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 10px #fbbf24;
  width: 100%;
  transition: width 0.25s linear;
}

/* 4. Vote 2 Scene */
.scene-vote2 {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 24px;
}

.vote2-section-title {
  font-family: var(--font-cyber);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--neon-cyan);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.sway-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sway-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-dim);
  clip-path: var(--clip-chamfer);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sway-item.selected {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.sway-item input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--neon-cyan);
  margin-top: 3px;
}

.sway-item-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.35;
}

.submit-vote2-btn {
  min-height: 60px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35) 0%, rgba(58, 134, 255, 0.45) 100%);
  border: 2px solid var(--neon-cyan);
  clip-path: var(--clip-chamfer);
  color: #ffffff;
  font-family: var(--font-cyber);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 10px;
  animation: btn-glow-pulse 3s infinite alternate;
}
.submit-vote2-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}
.submit-vote2-btn:active {
  transform: scale(0.98);
}
.submit-vote2-btn:disabled {
  background: #111827;
  border-color: #374151;
  color: #6b7280;
  box-shadow: none;
  cursor: not-allowed;
  animation: none;
}

@keyframes btn-glow-pulse {
  0% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.25); border-color: rgba(0, 240, 255, 0.6); }
  100% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.6), inset 0 0 15px rgba(0, 240, 255, 0.2); border-color: #00f0ff; }
}

/* 5. Dashboard info for audience */
.scene-dashboard {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 24px 16px;
}

.dashboard-screen-icon {
  font-size: 3.8rem;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
}

/* 6. Q&A Scene */
.scene-qna {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.qna-form-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-bright);
  clip-path: var(--clip-chamfer);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.qna-textarea {
  width: 100%;
  height: 74px;
  background: rgba(3, 7, 18, 0.95);
  border: 1px solid var(--border-bright);
  border-radius: 0;
  color: #f8fafc;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  resize: none;
}
.qna-textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.qna-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-counter {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.submit-qna-btn {
  min-height: 44px;
  padding: 0 18px;
  background: rgba(0, 240, 255, 0.2);
  border: 1.5px solid var(--neon-cyan);
  clip-path: var(--clip-chamfer);
  color: #ffffff;
  font-family: var(--font-cyber);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.submit-qna-btn:disabled {
  background: #111827;
  border-color: #374151;
  color: #6b7280;
  cursor: not-allowed;
}

.qna-list-title {
  font-family: var(--font-cyber);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.5px;
}

.qna-items-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 24px;
}

.qna-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  clip-path: var(--clip-chamfer);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.qna-card.pinned {
  border-color: var(--neon-amber);
  background: rgba(255, 183, 3, 0.1);
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.25);
}

.qna-card-content {
  flex: 1;
}

.qna-card-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.4;
  word-break: break-word;
}

.qna-card-badges {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.qna-upvote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 54px;
  background: rgba(22, 36, 71, 0.8);
  border: 1px solid var(--border-bright);
  clip-path: var(--clip-chamfer);
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.qna-upvote-btn:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}
.qna-upvote-btn:active {
  transform: scale(0.92);
}
.qna-upvote-btn.upvoted {
  background: rgba(0, 255, 136, 0.2);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
  animation: upvote-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes upvote-pop {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.qna-upvote-count {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
}

/* 7. Closed Scene */
.scene-closed {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 24px 16px;
}

.closed-icon {
  font-size: 3.8rem;
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.6));
}
