@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: #4E342E;
  --secondary: #5D4037;
  --accent: #6D4C41;
  --light: #A1887F;
  --bg: #EFEBE9;
  --card-bg: #FFFFFF;
  --text: #3E2723;
  --text-muted: #795548;
  --text-light: #A1887F;
  --border: #FFE0B2;
  --danger: #E53935;
  --success: #43A047;
  --overtime-bg: #FFF3E0;
  --overtime-border: #E65100;
  --shadow-sm: 0 1px 3px rgba(255, 143, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(255, 143, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(255, 143, 0, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

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

html {
  scroll-behavior: smooth;
}

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

/* ====================== HEADER ====================== */
.app-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 180%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 1;
}

.mic-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.25rem;
  animation: micBounce 2s ease-in-out infinite;
}

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

.app-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.app-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  margin-top: 0.25rem;
}

/* ====================== TAB NAV ====================== */
.tab-nav {
  display: flex;
  background: var(--card-bg);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  flex: 1;
  padding: 0.9rem 1rem;
  border: none;
  background: transparent;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}

.tab-btn:hover {
  color: var(--primary);
  background: rgba(255, 143, 0, 0.04);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(255, 143, 0, 0.06);
}

/* ====================== MAIN ====================== */
.app-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
}

/* ====================== LOADING ====================== */
.loading-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.skeleton-card {
  height: 80px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--border) 25%, rgba(255, 224, 178, 0.4) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

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

/* ====================== NOW PLAYING ====================== */
.now-playing-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeInDown 0.5s ease-out;
}

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

.now-playing-card.overtime {
  background: linear-gradient(135deg, var(--overtime-border), var(--danger));
}

.now-playing-pulse {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.now-playing-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.live-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.now-playing-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  opacity: 0.9;
}

.now-playing-body {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.now-playing-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.now-playing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.now-playing-type {
  font-size: 0.95rem;
  opacity: 0.9;
}

.now-playing-song {
  font-size: 0.85rem;
  opacity: 0.8;
  font-style: italic;
}

/* Timer */
.timer-section {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.timer-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.timer-bar-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  transition: width 1s linear;
}

.timer-bar-fill.timer-overtime {
  background: rgba(255, 255, 255, 0.95);
  animation: overtimeFlash 0.8s ease-in-out infinite;
}

@keyframes overtimeFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.timer-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timer-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.overtime-text {
  animation: overtimeFlash 1s ease-in-out infinite;
}

.timer-elapsed {
  font-size: 0.8rem;
  opacity: 0.7;
}

.btn-finish {
  width: 100%;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.btn-finish:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: white;
}

/* ====================== NO PERFORMER ====================== */
.no-performer-card {
  background: var(--card-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.no-performer-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.no-performer-text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ====================== QUEUE SECTION ====================== */
.queue-section {
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.badge {
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  font-family: 'Fredoka', sans-serif;
}

.badge-muted {
  background: var(--text-light);
}

.empty-state {
  background: var(--card-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state p {
  margin-bottom: 1rem;
}

/* ====================== PERFORMER LIST ====================== */
.performer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.performer-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  animation: fadeInUp 0.4s ease-out both;
}

.performer-card:nth-child(1) { animation-delay: 0s; }
.performer-card:nth-child(2) { animation-delay: 0.05s; }
.performer-card:nth-child(3) { animation-delay: 0.1s; }
.performer-card:nth-child(4) { animation-delay: 0.15s; }
.performer-card:nth-child(5) { animation-delay: 0.2s; }
.performer-card:nth-child(6) { animation-delay: 0.25s; }
.performer-card:nth-child(7) { animation-delay: 0.3s; }
.performer-card:nth-child(8) { animation-delay: 0.35s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.performer-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.performer-position {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

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

.performer-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.performer-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.performer-song {
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.performer-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.on-deck-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  white-space: nowrap;
  border: 1px solid var(--border);
}

/* ====================== COMPLETED ====================== */
.completed-section {
  margin-bottom: 1.5rem;
}

.completed-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.completed-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.completed-card:hover {
  opacity: 1;
}

.completed-check {
  color: var(--success);
  font-weight: 700;
  font-size: 0.9rem;
}

.completed-name {
  flex: 1;
  font-weight: 500;
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.completed-type {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ====================== TOTAL TIME BAR ====================== */
.total-time-bar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.total-time-bar strong {
  color: var(--primary);
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
}

/* ====================== SIGNUP FORM ====================== */
.signup-form-container {
  animation: fadeInUp 0.4s ease-out;
}

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

.form-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

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

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.optional-tag {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
}

.form-input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--card-bg);
  transition: all 0.2s ease;
  outline: none;
  min-height: 48px;
}

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

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

/* Type Grid */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
}

.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 0.4rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}

.type-btn:hover {
  border-color: var(--accent);
  background: var(--bg);
}

.type-btn-active {
  border-color: var(--primary);
  background: rgba(255, 143, 0, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 143, 0, 0.15);
}

.type-btn-icon {
  font-size: 1.4rem;
}

.type-btn-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.type-btn-active .type-btn-label {
  color: var(--primary);
  font-weight: 600;
}

/* Time Selector */
.time-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.time-btn {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-btn:hover {
  border-color: var(--accent);
}

.time-btn-active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* ====================== BUTTONS ====================== */
.btn {
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--secondary);
}

.btn-small {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  min-height: 32px;
}

.btn-submit {
  width: 100%;
  padding: 0.95rem;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--primary);
}

.btn-danger-icon:hover {
  background: #FFEBEE;
  border-color: var(--danger);
  color: var(--danger);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 640px) {
  .app-header {
    padding: 1.5rem 1rem 1.25rem;
  }

  .app-title {
    font-size: 1.6rem;
  }

  .app-main {
    padding: 0.75rem;
  }

  .now-playing-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .now-playing-name {
    font-size: 1.4rem;
  }

  .type-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  }

  .performer-card {
    padding: 0.7rem 0.8rem;
  }

  .performer-actions {
    gap: 0.25rem;
  }
}

@media (max-width: 360px) {
  .type-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .time-selector {
    gap: 0.35rem;
  }

  .time-btn {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }
}

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Open Mic Night! This is the lineup board where you can see who's performing and who's up next.", "view": "user", "highlight_selector": ".app-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Right now the stage is empty. Let's sign someone up! Tap the 'Sign Up' tab.", "view": "user", "highlight_selector": ".tab-btn:nth-child(2)", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Enter your stage name, pick your performance type, and set how long you'll be on stage.", "view": "user", "highlight_selector": ".signup-form", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Choose your performance type — comedy, music, poetry, and more. Each gets its own icon in the lineup.", "view": "user", "highlight_selector": ".type-grid", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Select your estimated time. This helps the host manage the evening and shows a countdown when you're on stage.", "view": "user", "highlight_selector": ".time-selector", "wait_for": "tap_to_continue"},
  {"step": 6, "narration": "Hit 'Add Me to the Lineup' and you'll appear in the queue on the Lineup tab.", "view": "user", "highlight_selector": ".btn-submit", "wait_for": "user_interaction"},
  {"step": 7, "narration": "Back on the Lineup tab, the host can start the first performer. A live countdown timer will appear showing remaining time.", "view": "user", "highlight_selector": ".no-performer-card", "wait_for": "tap_to_continue"},
  {"step": 8, "narration": "When someone is performing, you'll see the Now Playing card with a live timer. The host taps 'Finish & Next' to move to the next performer.", "view": "user", "highlight_selector": ".now-playing-card", "wait_for": "tap_to_continue"},
  {"step": 9, "narration": "The running order shows position numbers. The host can reorder performers or remove someone from the queue.", "view": "user", "highlight_selector": ".performer-list", "wait_for": "tap_to_continue"},
  {"step": 10, "narration": "The total estimated time remaining is shown at the bottom so everyone knows how long the night will go. Enjoy the show!", "view": "user", "highlight_selector": ".total-time-bar", "wait_for": "tap_to_continue"}
]
-->

.presence-section {
  margin-bottom: 1.5rem;
}

.presence-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.presence-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

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

.presence-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.presence-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.presence-name {
  flex: 1;
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presence-status {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
  white-space: nowrap;
}

.presence-empty {
  padding: 0.85rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
}

.audience-presence-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.audience-presence-header,
.reactions-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.audience-presence-title,
.reactions-panel-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.audience-presence-count,
.reactions-panel-count {
  font-size: 0.8rem;
  opacity: 0.85;
  white-space: nowrap;
}

.audience-presence-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.audience-presence-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.audience-presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.45);
  animation: audiencePulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes audiencePulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.audience-presence-name,
.audience-presence-more,
.audience-presence-empty,
.reactions-note,
.reactions-loading {
  font-size: 0.86rem;
  opacity: 0.92;
}

.audience-presence-more,
.audience-presence-empty,
.reactions-loading,
.reactions-note {
  margin: 0;
}

.reactions-panel {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reaction-btn:hover {
  transform: translateY(-1px) scale(1.02);
  background: rgba(255, 255, 255, 0.24);
}

.reaction-btn-active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

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

.reaction-count {
  font-size: 0.8rem;
  min-width: 1ch;
}

@media (max-width: 640px) {
  .reaction-bar {
    gap: 0.4rem;
  }

  .reaction-btn {
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
  }
}

.audience-count-badge,
.reactions-live-pill {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  white-space: nowrap;
}

.audience-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.audience-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}

.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.audience-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 0.88rem;
}

.audience-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  animation: audiencePulse 1.6s ease-in-out infinite;
}

.audience-name {
  flex: 1;
}

.audience-tab {
  opacity: 0.85;
  font-size: 0.78rem;
}

.audience-empty {
  color: white;
  opacity: 0.9;
  font-size: 0.9rem;
}

.reactions-section {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.reactions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.reactions-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}

.reactions-subtitle {
  font-size: 0.86rem;
  opacity: 0.92;
  color: white;
  margin-top: 0.1rem;
}

.performer-history-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.performer-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.performer-history-title {
  margin: 0;
}

.performer-history-subtitle {
  margin: 0.25rem 0 0;
  opacity: 0.8;
}

.performer-history-pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.performer-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.performer-history-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.12);
}

.performer-history-avatar {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}

.performer-history-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.performer-history-name,
.performer-history-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performer-history-meta {
  opacity: 0.8;
}

.performer-history-empty {
  margin: 0;
  opacity: 0.8;
}

.share-event-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.share-event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.share-event-title {
  margin: 0;
}

.share-event-subtitle {
  margin: 0.25rem 0 0;
  opacity: 0.8;
}

.share-event-pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.share-event-link-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.share-event-link {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
}

.share-event-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-event-btn {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
}

.share-event-btn.primary {
  background: rgba(255, 255, 255, 0.18);
}

.share-event-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.share-event-status {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}
