/* ============================================
   Campfire Conspiracy - Live Scene Styles
   Warm campfire palette: amber, orange, dark brown, cream
   ============================================ */

/* === Question Scene === */
.campfire-question-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center bottom, #451a03 0%, #1c0a00 60%, #0a0500 100%);
  padding: 4rem;
  position: relative;
}

.campfire-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 2rem;
}

.campfire-round-badge {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.campfire-answer-count {
  font-size: 1.2rem;
  color: #fef3c7;
  opacity: 0.8;
}

.campfire-question-text {
  font-size: 3.5rem;
  font-weight: 600;
  color: #fef3c7;
  text-align: center;
  max-width: 1200px;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(245, 158, 11, 0.3);
}

.campfire-timer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(254, 243, 199, 0.1);
}

.campfire-timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  transform-origin: left center;
  transition: background 0.3s;
}

.campfire-timer-fill.campfire-timer-urgent {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.campfire-waiting-banner {
  font-size: 2rem;
  font-weight: 700;
  color: #f59e0b;
  text-align: center;
  padding: 1rem 2rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  animation: campfire-pulse 2s ease-in-out infinite;
}

.campfire-matching-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #451a03 0%, #1c0a00 70%);
}

.campfire-matching-text {
  font-size: 2.5rem;
  font-weight: 600;
  color: #f59e0b;
  text-align: center;
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.campfire-matching-glow {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, transparent 70%);
  animation: campfire-pulse 2s ease-in-out infinite;
  margin-top: 2rem;
}

@keyframes campfire-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* === Pairs Scene === */
.campfire-pairs-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center bottom, #451a03 0%, #1c0a00 60%, #0a0500 100%);
  padding: 3rem;
}

.campfire-pairs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.campfire-pairs-timer {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: monospace;
  color: #f59e0b;
}

.campfire-pairs-timer.campfire-timer-urgent {
  color: #ef4444;
  animation: campfire-pulse 1s ease-in-out infinite;
}

.campfire-pairs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-content: center;
  flex: 1;
  overflow-y: auto;
}

.campfire-pair-card {
  background: rgba(254, 243, 199, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 250px;
  max-width: 320px;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.1);
}

.campfire-pair-avatars {
  display: flex;
  gap: -0.5rem;
  align-items: center;
}

.campfire-pair-avatars.campfire-pair-trio {
  gap: 0.25rem;
}

.campfire-pair-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #f59e0b;
  object-fit: cover;
}

.campfire-pair-trio .campfire-pair-avatar {
  width: 52px;
  height: 52px;
}

.campfire-pair-names {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fef3c7;
  text-align: center;
}

.campfire-pair-similarity {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.campfire-pair-mission {
  font-size: 0.85rem;
  color: rgba(254, 243, 199, 0.7);
  text-align: center;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.campfire-reflection-progress {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f59e0b;
  text-align: center;
  padding: 1rem;
}

/* === Summary Scene === */
.campfire-summary-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #451a03 0%, #1c0a00 70%);
  padding: 4rem;
}

.campfire-summary-badge {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.campfire-summary-text {
  font-size: 2rem;
  color: #fef3c7;
  text-align: center;
  max-width: 1000px;
  line-height: 1.5;
  min-height: 3rem;
}

.campfire-summary-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.campfire-summary-stat {
  font-size: 1.1rem;
  color: rgba(254, 243, 199, 0.7);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
}

/* === Reveal Scene === */
.campfire-reveal-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center bottom, #451a03 0%, #1c0a00 50%, #000 100%);
  padding: 4rem;
}

.campfire-reveal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Intro */
.campfire-reveal-intro {
  text-align: center;
  position: relative;
}

.campfire-reveal-fire-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
  animation: campfire-pulse 2s ease-in-out infinite;
}

.campfire-reveal-title {
  font-size: 4.5rem;
  font-weight: 800;
  color: #f59e0b;
  text-shadow: 0 0 60px rgba(245, 158, 11, 0.5);
  position: relative;
  z-index: 1;
  letter-spacing: 0.1em;
}

/* Personality */
.campfire-reveal-personality {
  text-align: center;
}

.campfire-reveal-label {
  font-size: 1.5rem;
  color: rgba(254, 243, 199, 0.6);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.campfire-reveal-personality-text {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fef3c7;
  text-shadow: 0 0 40px rgba(245, 158, 11, 0.3);
}

/* Awards */
.campfire-reveal-award {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.campfire-reveal-award-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.campfire-reveal-award-recipient {
  font-size: 3rem;
  font-weight: 800;
  color: #fef3c7;
}

.campfire-reveal-award-reason {
  font-size: 1.3rem;
  color: rgba(254, 243, 199, 0.7);
  font-style: italic;
}

/* Movie */
.campfire-reveal-movie {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.3);
}

.campfire-reveal-movie-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fef3c7;
}

.campfire-reveal-movie-tagline {
  font-size: 1.5rem;
  color: #f59e0b;
  font-style: italic;
}

.campfire-reveal-movie-plot {
  font-size: 1.2rem;
  color: rgba(254, 243, 199, 0.7);
  max-width: 600px;
  line-height: 1.5;
}

/* Stats */
.campfire-reveal-stats {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.campfire-reveal-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.campfire-reveal-stat-number {
  font-size: 4rem;
  font-weight: 800;
  color: #f59e0b;
}

.campfire-reveal-stat-label {
  font-size: 1.2rem;
  color: rgba(254, 243, 199, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Story */
.campfire-reveal-story {
  text-align: center;
  max-width: 900px;
}

.campfire-reveal-story-text {
  font-size: 2rem;
  color: #fef3c7;
  line-height: 1.6;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

/* Closing */
.campfire-reveal-closing {
  text-align: center;
}

.campfire-reveal-closing-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f59e0b;
  text-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
  font-style: italic;
}

/* === Generic Campfire Lobby (uses game-lobby with cssPrefix="campfire") === */
.campfire-lobby-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse at center bottom, #451a03 0%, #1c0a00 60%, #0a0500 100%);
}

.campfire-splash-wrapper {
  position: absolute;
  top: 1%;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 32%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.campfire-splash-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.campfire-player-list {
  position: absolute;
  top: 36%;
  left: 0;
  width: 100%;
  height: 220px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 0 40px;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.campfire-player-list::-webkit-scrollbar {
  display: none;
}

.campfire-lobby-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-color: rgba(245, 158, 11, 0.3);
}

.campfire-lobby-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #f59e0b;
  box-shadow:
    0 0 25px rgba(245, 158, 11, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  background: rgba(30, 30, 30, 0.8);
}

.campfire-lobby-name {
  font-size: 20px;
  font-weight: 600;
  color: #fef3c7;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.campfire-timer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  z-index: 103;
  box-shadow: 0 -2px 10px rgba(245, 158, 11, 0.5);
  pointer-events: none;
}

@media (max-width: 1600px) {
  .campfire-splash-wrapper {
    width: 24%;
    height: 28%;
  }
  .campfire-lobby-avatar {
    width: 120px;
    height: 120px;
  }
  .campfire-lobby-name {
    font-size: 18px;
  }
  .campfire-player-list {
    gap: 20px;
  }
}

@media (max-width: 1280px) {
  .campfire-splash-wrapper {
    width: 22%;
    height: 26%;
  }
  .campfire-lobby-avatar {
    width: 100px;
    height: 100px;
  }
  .campfire-lobby-name {
    font-size: 16px;
    max-width: 100px;
  }
  .campfire-player-list {
    gap: 16px;
    padding: 0 24px;
    height: 180px;
  }
}

/* === Collaboration Scene === */
.campfire-collab-container {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center bottom, #451a03 0%, #1c0a00 60%, #0a0500 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 3rem;
}

.campfire-collab-timer {
  font-size: 8rem;
  font-weight: 700;
  font-family: monospace;
  color: #f59e0b;
  text-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
  margin-bottom: 3rem;
}

.campfire-collab-timer.campfire-collab-timer-amber {
  color: #f59e0b;
}

.campfire-collab-timer.campfire-collab-timer-red {
  color: #ef4444;
  text-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
}

.campfire-collab-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-content: start;
}

.campfire-collab-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.campfire-collab-team-name {
  font-size: 2rem;
  font-weight: 700;
  color: #fef3c7;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

.campfire-collab-team-avatars {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.campfire-collab-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
  object-fit: cover;
  background: rgba(30, 30, 30, 0.8);
}

/* === Presenting Scene === */
.campfire-presenting-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  background: radial-gradient(ellipse at center bottom, #451a03 0%, rgba(245, 158, 11, 0.15) 30%, #1c0a00 70%);
}

.campfire-presenting-timer {
  font-size: 5rem;
  font-weight: 700;
  font-family: monospace;
  color: #f59e0b;
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
  margin-bottom: 1rem;
}

.campfire-presenting-timer-warn {
  color: #f59e0b;
  animation: campfire-pulse 1s ease-in-out infinite;
}

.campfire-presenting-timer-red {
  color: #ef4444;
  text-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
  animation: campfire-pulse 0.5s ease-in-out infinite;
}

.campfire-presenting-group-name {
  font-size: 4rem;
  font-weight: 800;
  color: #f59e0b;
  text-shadow: 0 0 60px rgba(245, 158, 11, 0.5);
  margin-bottom: 2rem;
  text-align: center;
}

.campfire-presenting-question {
  font-size: 1.2rem;
  color: rgba(254, 243, 199, 0.6);
  text-align: center;
  max-width: 800px;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.campfire-presenting-members {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.campfire-presenting-member {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(254, 243, 199, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 1rem;
  padding: 1.2rem 2rem;
}

.campfire-presenting-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #f59e0b;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  flex-shrink: 0;
}

.campfire-presenting-member-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.campfire-presenting-member-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f59e0b;
}

.campfire-presenting-member-answer {
  font-size: 1.4rem;
  color: #fef3c7;
  line-height: 1.4;
}

/* === Voting Overlay (on presenting scene) === */
.campfire-voting-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 3rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 30%);
  border-top: 2px solid rgba(245, 158, 11, 0.4);
}

.campfire-voting-title {
  font-size: 3rem;
  font-weight: 800;
  color: #f59e0b;
  text-shadow: 0 0 40px rgba(245, 158, 11, 0.5);
  margin-bottom: 0.5rem;
}

.campfire-voting-subtitle {
  font-size: 1.5rem;
  color: #fef3c7;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.campfire-voting-timer {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: monospace;
  color: #f59e0b;
}

/* === Leaderboard Scene === */
.campfire-leaderboard-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  background: radial-gradient(ellipse at center bottom, #451a03 0%, #1c0a00 60%, #0a0500 100%);
}

.campfire-leaderboard-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.campfire-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 800px;
}

.campfire-leaderboard-entry {
  background: rgba(254, 243, 199, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 1rem;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.campfire-leaderboard-entry.campfire-leaderboard-winner {
  border: 2px solid #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.3);
}

.campfire-leaderboard-rank {
  font-size: 1.8rem;
  font-weight: 800;
  color: #f59e0b;
  min-width: 60px;
  text-align: center;
}

.campfire-leaderboard-entry.campfire-leaderboard-winner .campfire-leaderboard-rank {
  font-size: 2.5rem;
}

.campfire-leaderboard-info {
  flex: 1;
  min-width: 0;
}

.campfire-leaderboard-group-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fef3c7;
}

.campfire-leaderboard-members {
  font-size: 0.9rem;
  color: rgba(254, 243, 199, 0.6);
  margin-top: 0.25rem;
}

.campfire-leaderboard-score-box {
  text-align: center;
  min-width: 80px;
}

.campfire-leaderboard-score {
  font-size: 2.2rem;
  font-weight: 800;
  color: #f59e0b;
}

.campfire-leaderboard-votes {
  font-size: 0.8rem;
  color: rgba(254, 243, 199, 0.5);
}
