@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #0F0C29;
  --secondary: #302B63;
  --accent: #24243E;
  --lime: #8E44AD;
  --white: #F5F5F5;
  --bg: #1a1118;
  --bg-card: #2a1f28;
  --bg-card-hover: #342a32;
  --bg-elevated: #3a2f38;
  --text: #FFFFFF;
  --text-muted: #b8a8b4;
  --text-dim: #8a7886;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #FFB300;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(255, 111, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: var(--primary);
  color: var(--white);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fredoka', sans-serif;
}

/* App Container */
.app-container {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Header */
.app-header {
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.header-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(255, 111, 0, 0.25) 0%, rgba(255, 179, 0, 0.1) 40%, transparent 70%);
  pointer-events: none;
}

.app-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.app-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
  font-weight: 300;
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  gap: 4px;
  padding: 0 1rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  margin-left: 1rem;
  margin-right: 1rem;
  border-radius: var(--radius);
  padding: 4px;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.6rem 0.25rem;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.tab-btn .tab-icon {
  font-size: 1.2rem;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 2px 12px rgba(255, 111, 0, 0.35);
}

.tab-btn:not(.active):hover {
  color: var(--text-muted);
  background: var(--bg-elevated);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 0 1rem 2rem;
}

.section-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Section Labels */
.section-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* Current Singer Card */
.current-singer-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow), var(--shadow-glow);
  border: 1px solid rgba(255, 111, 0, 0.15);
  animation: fadeInScale 0.4s ease both;
}

.singer-spotlight {
  margin-bottom: 1.5rem;
}

.spotlight-ring {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  padding: 4px;
  animation: pulseRing 2s ease-in-out infinite;
}

.spotlight-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.singer-emoji {
  font-size: 2.5rem;
}

.singer-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.singer-song {
  font-size: 1.05rem;
  color: var(--secondary);
  font-weight: 500;
}

/* Timer */
.timer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.timer-ring-container {
  position: relative;
  width: 140px;
  height: 140px;
}

.timer-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring-bg {
  fill: none;
  stroke: var(--bg-elevated);
  stroke-width: 8;
}

.timer-ring-progress {
  fill: none;
  stroke: url(#timerGradient);
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-display {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s ease;
}

.timer-warning {
  color: var(--danger);
  animation: timerPulse 0.5s ease-in-out infinite alternate;
}

.timer-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 2px 12px rgba(255, 111, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 111, 0, 0.45);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--secondary);
  border: 1px solid rgba(255, 179, 0, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 179, 0, 0.15);
}

.btn-warning {
  background: rgba(255, 179, 0, 0.15);
  color: var(--warning);
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.btn-warning:hover {
  background: rgba(255, 179, 0, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.btn-danger {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  width: 100%;
}

/* Icon Buttons */
.btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.btn-icon:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-icon:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.btn-icon-play {
  color: var(--lime);
  border-color: rgba(192, 202, 51, 0.3);
}

.btn-icon-play:hover {
  background: rgba(192, 202, 51, 0.15);
  color: var(--lime);
}

.btn-icon-remove {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-icon-remove:hover {
  background: rgba(239, 68, 68, 0.1);
}

.btn-icon-remove.confirm {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
  animation: confirmPulse 0.3s ease;
}

/* Next Up Section */
.next-up-section {
  margin-top: 0.5rem;
}

.next-up-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.next-up-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--secondary);
  animation: slideInLeft 0.3s ease both;
}

.next-up-card.next-up-0 { animation-delay: 0s; }
.next-up-card.next-up-1 { animation-delay: 0.05s; }
.next-up-card.next-up-2 { animation-delay: 0.1s; }

.next-up-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 179, 0, 0.15);
  color: var(--secondary);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
}

.next-up-info {
  display: flex;
  flex-direction: column;
}

.next-up-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.next-up-song {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sign Up Card */
.signup-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  animation: fadeInScale 0.3s ease both;
}

.signup-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.signup-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.signup-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.signup-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Forms */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  min-height: 44px;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.15);
}

/* Success Toast */
.success-toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  animation: fadeInScale 0.3s ease both;
}

/* Queue Status */
.queue-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.queue-count-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'Fredoka', sans-serif;
}

/* Entry Cards */
.my-entries {
  margin-top: 0.5rem;
}

.entries-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.entry-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  animation: slideInLeft 0.3s ease both;
}

.entry-card:nth-child(1) { animation-delay: 0s; }
.entry-card:nth-child(2) { animation-delay: 0.04s; }
.entry-card:nth-child(3) { animation-delay: 0.08s; }
.entry-card:nth-child(4) { animation-delay: 0.12s; }
.entry-card:nth-child(5) { animation-delay: 0.16s; }
.entry-card:nth-child(n+6) { animation-delay: 0.2s; }

.entry-status-singing {
  border-left: 3px solid var(--primary);
  background: rgba(255, 111, 0, 0.08);
}

.entry-status-done {
  opacity: 0.5;
}

.entry-number {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: 'Fredoka', sans-serif;
}

.entry-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.entry-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-song {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status Badges */
.status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

.status-singing {
  background: rgba(255, 111, 0, 0.2);
  color: var(--primary);
}

.status-waiting {
  background: rgba(255, 179, 0, 0.15);
  color: var(--secondary);
}

.status-done {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

/* Queue Display */
.queue-header-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.queue-header-bar h2 {
  font-size: 1.3rem;
}

.queue-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stat-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.stat-singing {
  background: rgba(255, 111, 0, 0.15);
  color: var(--primary);
}

.stat-waiting {
  background: rgba(255, 179, 0, 0.12);
  color: var(--secondary);
}

.stat-done {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}

/* Queue Items */
.queue-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.queue-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  animation: slideInLeft 0.3s ease both;
}

.queue-item:nth-child(2) { animation-delay: 0s; }
.queue-item:nth-child(3) { animation-delay: 0.04s; }
.queue-item:nth-child(4) { animation-delay: 0.08s; }
.queue-item:nth-child(5) { animation-delay: 0.12s; }
.queue-item:nth-child(n+6) { animation-delay: 0.16s; }

.queue-item-current {
  background: rgba(255, 111, 0, 0.1);
  border: 1px solid rgba(255, 111, 0, 0.2);
}

.queue-item-done {
  opacity: 0.45;
}

.queue-item-icon {
  font-size: 1.2rem;
}

.queue-item-position {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 179, 0, 0.12);
  color: var(--secondary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'Fredoka', sans-serif;
  flex-shrink: 0;
}

.queue-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.queue-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-song {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Host Controls */
.host-header {
  margin-bottom: 0.5rem;
}

.host-header h2 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.host-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.host-actions {
  margin-bottom: 0.5rem;
}

.current-host-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid rgba(255, 111, 0, 0.15);
  box-shadow: var(--shadow-glow);
}

.host-current-info {
  text-align: center;
  margin-bottom: 1rem;
}

.host-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

.host-singer-name {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.host-singer-song {
  display: block;
  color: var(--secondary);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.host-current-actions {
  display: flex;
  gap: 0.5rem;
}

.host-current-actions .btn {
  flex: 1;
}

.host-no-singer {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.host-no-singer p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Host Queue Items */
.host-queue-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.host-queue-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  animation: slideInLeft 0.25s ease both;
}

.host-queue-item:nth-child(2) { animation-delay: 0s; }
.host-queue-item:nth-child(3) { animation-delay: 0.03s; }
.host-queue-item:nth-child(4) { animation-delay: 0.06s; }
.host-queue-item:nth-child(5) { animation-delay: 0.09s; }
.host-queue-item:nth-child(n+6) { animation-delay: 0.12s; }

.host-queue-pos {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: 'Fredoka', sans-serif;
  flex-shrink: 0;
}

.host-queue-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.host-queue-name {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.host-queue-song {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.host-queue-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.host-bulk-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.host-bulk-actions .btn {
  flex: 1;
  min-width: 140px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  animation: fadeInScale 0.4s ease both;
}

.empty-emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Skeletons */
.skeleton-block {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-lg { height: 200px; }
.skeleton-md { height: 80px; }
.skeleton-sm { height: 50px; }
.skeleton-card { height: 70px; }

/* Footer */
.app-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseRing {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 111, 0, 0);
  }
}

@keyframes timerPulse {
  from { opacity: 1; }
  to { opacity: 0.5; }
}

@keyframes confirmPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Responsive */
@media (max-width: 640px) {
  .app-title {
    font-size: 1.6rem;
  }

  .tab-btn {
    padding: 0.5rem 0.15rem;
    font-size: 0.65rem;
  }

  .tab-btn .tab-icon {
    font-size: 1rem;
  }

  .current-singer-card {
    padding: 1.5rem 1rem;
  }

  .singer-name {
    font-size: 1.3rem;
  }

  .host-queue-actions {
    gap: 3px;
  }

  .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }
}

@media (min-width: 641px) {
  .tab-btn {
    flex-direction: row;
    gap: 0.4rem;
    font-size: 0.85rem;
  }
}
```

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Karaoke Night! This is the Now Playing screen — when someone's singing, you'll see their name, song, and a countdown timer here.", "view": "user", "highlight_selector": ".app-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Tap the Sign Up tab to add yourself to the karaoke queue. Enter your name and song choice, then hit 'Add Me to the Queue'.", "view": "user", "highlight_selector": ".tab-btn:nth-child(2)", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Fill in your singer name and the song you want to perform. You'll see a confirmation when you're added!", "view": "user", "highlight_selector": ".signup-form", "wait_for": "user_interaction"},
  {"step": 4, "narration": "The Queue tab shows the full lineup — who's singing now, who's waiting, and who's already performed.", "view": "user", "highlight_selector": ".tab-btn:nth-child(3)", "wait_for": "user_interaction"},
  {"step": 5, "narration": "The Host tab is where you manage everything. Start the first singer, skip or mark them done, reorder the queue with the arrow buttons, and remove entries.", "view": "host", "highlight_selector": ".tab-btn:nth-child(4)", "wait_for": "user_interaction"},
  {"step": 6, "narration": "When a singer is live, go back to Now Playing to start their performance timer. You can choose 4 or 5 minute timers, pause and resume as needed.", "view": "host", "highlight_selector": ".timer-controls", "wait_for": "tap_to_continue"},
  {"step": 7, "narration": "Use the arrow buttons to reorder singers, the play button to start someone early, or the X to remove them. The queue updates in real-time!", "view": "host", "highlight_selector": ".host-queue-section", "wait_for": "tap_to_continue"}
]
-->

.audience-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.audience-presence-indicator,
.audience-count-badge,
.returning-singer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.audience-presence-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: audiencePulse 1.8s infinite;
}

.audience-presence-text,
.audience-count-badge,
.returning-singer-pill,
.host-audience-count,
.audience-status,
.current-singer-audience {
  color: #f8fafc;
  font-size: 0.95rem;
}

.host-audience-list,
.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.host-audience-chip {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.returning-singer-recognition {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.returning-singer-avatar {
  font-size: 1.4rem;
}

@keyframes audiencePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.current-singer-reactions {
  justify-content: center;
  margin: 1rem 0 0.75rem;
  flex-wrap: wrap;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.reaction-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
}

.reaction-emoji {
  font-size: 1rem;
}

.reaction-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 0.75rem;
}

.reaction-summary {
  margin: 0.25rem 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reaction-summary-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.reaction-summary-text strong {
  color: var(--text);
}

.reaction-summary-empty {
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .reaction-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
}

.audience-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.audience-presence-indicator,
.audience-count-badge,
.returning-singer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.audience-presence-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: audiencePulse 1.8s infinite;
}

.audience-presence-text,
.audience-count-badge,
.returning-singer-pill,
.host-audience-count,
.audience-status,
.current-singer-audience {
  color: #f8fafc;
  font-size: 0.95rem;
}

.host-audience-list,
.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.host-audience-chip {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.returning-singer-recognition {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.returning-singer-avatar {
  font-size: 1.4rem;
}

@keyframes audiencePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.current-singer-reactions {
  justify-content: center;
  margin: 1rem 0 0.75rem;
  flex-wrap: wrap;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.reaction-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
}

.reaction-emoji {
  font-size: 1rem;
}

.reaction-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 0.75rem;
}

.reaction-summary {
  margin: 0.25rem 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reaction-summary-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.reaction-summary-text strong {
  color: var(--text);
}

.reaction-summary-empty {
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .reaction-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
}

.queue-item-history {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.host-track-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.host-track-editor {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.host-track-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.host-track-actions .btn {
  flex: 1;
}

.host-track-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
}

.host-track-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.host-track-empty {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.btn-icon-track {
  color: var(--secondary);
  border-color: rgba(255, 179, 0, 0.22);
}

.btn-icon-track:hover {
  background: rgba(255, 179, 0, 0.12);
  color: var(--secondary);
}

.room-share-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.room-share-url {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  word-break: break-all;
}

.room-share-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.room-share-value {
  font-size: 0.9rem;
  color: var(--text);
}

.room-share-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.room-share-actions .btn {
  flex: 1;
  min-width: 140px;
}

.room-share-status {
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .room-share-actions .btn {
    min-width: 0;
  }
}

.leaderboard-section {
  margin-bottom: 0.25rem;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: slideInLeft 0.3s ease both;
}

.leaderboard-rank {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.rank-1 {
  background: rgba(253, 216, 53, 0.18);
  color: var(--accent);
}

.rank-2 {
  background: rgba(255, 179, 0, 0.16);
  color: var(--secondary);
}

.rank-3 {
  background: rgba(192, 202, 51, 0.16);
  color: var(--lime);
}

.leaderboard-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.leaderboard-name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-song {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.leaderboard-votes {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex-shrink: 0;
}

.leaderboard-vote-count {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

.leaderboard-vote-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

@media (max-width: 640px) {
  .leaderboard-item {
    padding: 0.75rem 0.85rem;
  }

  .leaderboard-rank {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .leaderboard-vote-count {
    font-size: 1rem;
  }
}
