#spectate-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  background: #f1f5f9;
}

#spectate-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #f8fafc;
}

/* Header Bar */
.spectate-header {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  z-index: 20;
}

.title-group h1 {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Center Cargo Progress Bar */
.progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 320px;
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: #b45309;
  letter-spacing: 0.5px;
}

.progress-track {
  width: 100%;
  height: 16px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Sidebar for Live Operators */
.spectate-sidebar {
  position: absolute;
  top: 90px;
  right: 20px;
  width: 290px;
  padding: 18px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  z-index: 20;
}

.sidebar-title {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.operator-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 280px;
}

.operator-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  border-left-width: 4px;
  font-size: 0.85rem;
  color: #0f172a;
}

.operator-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.operator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.operator-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.live-feed {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  color: #475569;
}

/* Grand Birthday Reveal Modal */
#birthday-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.birthday-card {
  width: 90%;
  max-width: 680px;
  padding: 40px;
  text-align: center;
  background: #ffffff;
  border: 3px solid #f59e0b;
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.35);
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.birthday-card h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #b45309;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.birthday-card h2 {
  font-size: 1.3rem;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 24px;
}

.birthday-photo-box {
  width: 150px;
  height: 150px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 4px solid #f59e0b;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #fef3c7 0%, #ffffff 100%);
  font-size: 3.5rem;
}

.birthday-message {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 28px;
  background: #fefce8;
  padding: 20px 24px;
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
  border-right: 4px solid #f59e0b;
}
