@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800;900&family=Outfit:wght@600;700;800&display=swap');

:root {
  --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Outfit', sans-serif;

  /* Stage Theme Gradients & Accents */
  --bg-deep: radial-gradient(circle at 50% 15%, #0e1b3f 0%, #071026 40%, #020510 100%);
  --cyan: #00e5ff;
  --blue: #3b82f6;
  --purple: #a855f7;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --emerald: #10b981;

  /* Bubble Glow Colors */
  --bubble-blue-bg: radial-gradient(circle at 35% 35%, rgba(147, 197, 253, 0.35) 0%, rgba(59, 130, 246, 0.22) 60%, rgba(30, 58, 138, 0.35) 100%);
  --bubble-blue-border: rgba(96, 165, 250, 0.65);
  --bubble-blue-glow: rgba(59, 130, 246, 0.5);

  --bubble-purple-bg: radial-gradient(circle at 35% 35%, rgba(216, 180, 254, 0.35) 0%, rgba(168, 85, 247, 0.22) 60%, rgba(88, 28, 135, 0.35) 100%);
  --bubble-purple-border: rgba(192, 132, 252, 0.65);
  --bubble-purple-glow: rgba(168, 85, 247, 0.5);

  --bubble-amber-bg: radial-gradient(circle at 35% 35%, rgba(253, 230, 138, 0.35) 0%, rgba(245, 158, 11, 0.22) 60%, rgba(120, 53, 15, 0.35) 100%);
  --bubble-amber-border: rgba(251, 191, 36, 0.65);
  --bubble-amber-glow: rgba(245, 158, 11, 0.5);

  --bubble-rose-bg: radial-gradient(circle at 35% 35%, rgba(254, 205, 211, 0.35) 0%, rgba(244, 63, 94, 0.22) 60%, rgba(136, 19, 55, 0.35) 100%);
  --bubble-rose-border: rgba(251, 113, 133, 0.65);
  --bubble-rose-glow: rgba(244, 63, 94, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: #f8fafc;
}

/* Background Starfield Particle Canvas */
#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Main Display Wall Container */
.talk-wall-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  overflow: hidden;
}

/* Header Area (Stage Presentation Style) */
.talk-header {
  position: absolute;
  top: 26px;
  left: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 50;
  background: rgba(10, 17, 36, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 26px;
  border-radius: 24px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 229, 255, 0.12);
}

.event-badge {
  background: linear-gradient(135deg, #00e5ff 0%, #3b82f6 100%);
  color: #050813;
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 10px;
  text-transform: uppercase;
}

.talk-title-wrap {
  display: flex;
  flex-direction: column;
}

.talk-sub {
  font-size: 0.74rem;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.talk-title {
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, #67e8f9 70%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.talk-stats {
  font-size: 0.88rem;
  color: #94a3b8;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 16px;
  display: flex;
  gap: 12px;
}

.talk-stats strong {
  color: var(--cyan);
  font-family: var(--font-brand);
  font-size: 1.05rem;
}

/* Control Tools Top Right */
.talk-tools {
  position: absolute;
  top: 26px;
  right: 36px;
  display: flex;
  gap: 10px;
  z-index: 50;
}

.tool-btn {
  width: 44px;
  height: 44px;
  background: rgba(10, 17, 36, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #f8fafc;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.tool-btn:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: var(--cyan);
  transform: translateY(-2px);
  color: var(--cyan);
}

/* ==============================================================================
   Right-Edge Floating Semi-Transparent Trigger for Large QR Drawer
   ============================================================================== */
.qr-drawer-trigger {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  background: rgba(10, 17, 36, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  border-right: none;
  border-radius: 18px 0 0 18px;
  width: 36px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cyan);
  box-shadow: -4px 0 22px rgba(0, 229, 255, 0.25), 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  outline: none;
  padding: 0;
}

.qr-drawer-trigger:hover {
  background: rgba(0, 229, 255, 0.22);
  border-color: #00e5ff;
  width: 44px;
  box-shadow: -6px 0 32px rgba(0, 229, 255, 0.5);
}

.qr-drawer-trigger .trigger-arrow {
  font-size: 1.35rem;
  color: var(--cyan);
  font-weight: 900;
  animation: pulseArrowLeft 1.5s infinite ease-in-out;
  display: inline-block;
  line-height: 1;
}

@keyframes pulseArrowLeft {
  0%, 100% { transform: translateX(0); opacity: 0.9; }
  50% { transform: translateX(-4px); opacity: 1; }
}

/* ==============================================================================
   Large Slide-out QR Participation Drawer (부드럽게 열리고 닫히는 대형 QR 모달)
   ============================================================================== */
.qr-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.qr-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.qr-drawer-card {
  width: 480px;
  max-width: 90vw;
  height: 100%;
  background: linear-gradient(155deg, rgba(13, 27, 62, 0.95) 0%, rgba(6, 14, 34, 0.98) 100%);
  border-left: 2px solid rgba(0, 229, 255, 0.45);
  box-shadow: -20px 0 70px rgba(0, 0, 0, 0.85), -6px 0 40px rgba(0, 229, 255, 0.25);
  padding: 50px 36px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow-y: auto;
}

.qr-drawer-overlay.active .qr-drawer-card {
  transform: translateX(0);
}

.qr-drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qr-drawer-close:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: #f43f5e;
  color: #ffffff;
  transform: rotate(90deg);
}

.qr-drawer-badge {
  display: inline-block;
  background: linear-gradient(135deg, #00e5ff 0%, #3b82f6 100%);
  color: #050813;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
  font-family: var(--font-brand);
}

.qr-drawer-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  line-height: 1.3;
}

.qr-drawer-sub {
  font-size: 0.94rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 380px;
}

.qr-drawer-sub strong {
  font-size: 1.05rem;
  color: var(--cyan);
  display: block;
  margin-bottom: 4px;
}

.qr-drawer-box-wrap {
  position: relative;
  margin-bottom: 22px;
}

.drawer-qrcode-box {
  width: 270px;
  height: 270px;
  background: #ffffff;
  border-radius: 24px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 229, 255, 0.28);
  border: 4px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
}

.drawer-qrcode-box:hover {
  transform: scale(1.03);
}

.drawer-qrcode-box img, .drawer-qrcode-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.qr-drawer-url-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 14px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
  max-width: 380px;
  width: 100%;
}

.qr-drawer-url-pill span {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
}

.qr-drawer-url-pill strong {
  font-size: 0.94rem;
  color: var(--cyan);
  font-family: var(--font-brand);
  word-break: break-all;
}

.qr-drawer-footer-note {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  max-width: 380px;
}

/* Floating Stage Canvas */
#bubble-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  overflow: hidden;
}

/* Individual Floating Bubble */
.bubble {
  position: absolute;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 16px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 2px 14px rgba(255, 255, 255, 0.45), 0 16px 45px rgba(0, 0, 0, 0.45);
  transition: width 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              height 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.25s ease, 
              opacity 0.5s ease;
  will-change: transform, left, top, width, height;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.bubble:hover {
  transform: scale(1.15) !important;
  z-index: 100 !important;
  box-shadow: 0 0 55px var(--glow-color, rgba(0, 229, 255, 0.95)), inset 0 2px 16px rgba(255, 255, 255, 0.8);
}

/* Bubble Categories Themes */
.bubble.color-blue {
  background: var(--bubble-blue-bg);
  border-color: var(--bubble-blue-border);
  --glow-color: var(--bubble-blue-glow);
}

.bubble.color-purple {
  background: var(--bubble-purple-bg);
  border-color: var(--bubble-purple-border);
  --glow-color: var(--bubble-purple-glow);
}

.bubble.color-amber {
  background: var(--bubble-amber-bg);
  border-color: var(--bubble-amber-border);
  --glow-color: var(--bubble-amber-glow);
}

.bubble.color-rose {
  background: var(--bubble-rose-bg);
  border-color: var(--bubble-rose-border);
  --glow-color: var(--bubble-rose-glow);
}

/* Golden Bubble for AI Panel Opinion */
.bubble.color-gold {
  background: radial-gradient(circle at 35% 30%, rgba(254, 240, 138, 0.45) 0%, rgba(245, 158, 11, 0.35) 45%, rgba(180, 83, 9, 0.45) 100%);
  border-color: rgba(251, 191, 36, 0.95);
  --glow-color: rgba(245, 158, 11, 0.85);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.65), inset 0 0 20px rgba(254, 240, 138, 0.45);
  animation: goldAuraPulse 3.5s infinite ease-in-out;
}

@keyframes goldAuraPulse {
  0%, 100% {
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.55), inset 0 0 16px rgba(254, 240, 138, 0.35);
    border-color: rgba(251, 191, 36, 0.85);
  }
  50% {
    box-shadow: 0 0 52px rgba(245, 158, 11, 0.9), inset 0 0 26px rgba(254, 240, 138, 0.6);
    border-color: #fbbf24;
  }
}

.ai-crown-badge {
  position: absolute;
  top: 9px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #050813;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.7);
  display: flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.3px;
}

.bubble.color-gold .bubble-like {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.6);
}

.bubble.color-gold .bubble-category {
  background: rgba(245, 158, 11, 0.3);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fef08a;
}

/* Answered Status on Bubble */
.bubble.is-answered {
  opacity: 0.68;
  filter: saturate(0.85);
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3), inset 0 2px 8px rgba(255, 255, 255, 0.25);
}

.answered-tag {
  position: absolute;
  top: 10px;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ==============================================================================
   Tiered Bubble Elements & Responsive Typography (크기별 내부 폰트 최적화)
   ============================================================================== */
.bubble-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 86%;
  max-width: 86%;
  margin: auto 0;
  z-index: 2;
  pointer-events: none;
  text-align: center;
}

.bubble-category {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.bubble-content {
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.38;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 4px;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  transition: font-size 0.3s ease;
}

.bubble-author {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 5px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: font-size 0.3s ease;
  flex-shrink: 0;
}

.bubble-like {
  position: absolute;
  bottom: 8px;
  background: rgba(244, 63, 94, 0.92);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

/* Tier Hero (Rank 1 / AI Panel) - Diameter ~390px */
.bubble.tier-hero { padding: 26px 20px; }
.bubble.tier-hero .bubble-category { font-size: 0.96rem; padding: 4px 15px; margin-bottom: 10px; }
.bubble.tier-hero .bubble-content { font-size: 1.52rem; line-height: 1.45; -webkit-line-clamp: 5; font-weight: 850; text-shadow: 0 2px 14px rgba(0,0,0,0.95), 0 0 6px rgba(0,0,0,0.9); }
.bubble.tier-hero .bubble-author { font-size: 0.96rem; margin-top: 8px; font-weight: 750; }
.bubble.tier-hero .bubble-like { font-size: 0.95rem; padding: 5px 16px; bottom: 14px; }

/* Tier 1 (Rank 2) - Diameter ~350px */
.bubble.tier-1, .bubble.tier-lg { padding: 24px 18px; }
.bubble.tier-1 .bubble-category, .bubble.tier-lg .bubble-category { font-size: 0.90rem; padding: 3px 13px; margin-bottom: 8px; }
.bubble.tier-1 .bubble-content, .bubble.tier-lg .bubble-content { font-size: 1.38rem; line-height: 1.42; -webkit-line-clamp: 4; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,0.95), 0 0 5px rgba(0,0,0,0.9); }
.bubble.tier-1 .bubble-author, .bubble.tier-lg .bubble-author { font-size: 0.90rem; margin-top: 7px; font-weight: 700; }
.bubble.tier-1 .bubble-like, .bubble.tier-lg .bubble-like { font-size: 0.90rem; padding: 4px 14px; bottom: 12px; }

/* Tier 2 (Rank 3) - Diameter ~314px */
.bubble.tier-2 { padding: 20px 16px; }
.bubble.tier-2 .bubble-category { font-size: 0.84rem; padding: 3px 11px; margin-bottom: 7px; }
.bubble.tier-2 .bubble-content { font-size: 1.25rem; line-height: 1.40; -webkit-line-clamp: 4; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.95), 0 0 4px rgba(0,0,0,0.9); }
.bubble.tier-2 .bubble-author { font-size: 0.84rem; margin-top: 6px; font-weight: 700; }
.bubble.tier-2 .bubble-like { font-size: 0.85rem; padding: 3px 12px; bottom: 11px; }

/* Tier 3 (Rank 4~5) - Diameter ~280px */
.bubble.tier-3, .bubble.tier-md { padding: 18px 14px; }
.bubble.tier-3 .bubble-category, .bubble.tier-md .bubble-category { font-size: 0.80rem; padding: 2px 10px; margin-bottom: 6px; }
.bubble.tier-3 .bubble-content, .bubble.tier-md .bubble-content { font-size: 1.15rem; line-height: 1.38; -webkit-line-clamp: 3; font-weight: 750; text-shadow: 0 2px 8px rgba(0,0,0,0.95); }
.bubble.tier-3 .bubble-author, .bubble.tier-md .bubble-author { font-size: 0.80rem; margin-top: 5px; font-weight: 650; }
.bubble.tier-3 .bubble-like, .bubble.tier-md .bubble-like { font-size: 0.80rem; padding: 3px 11px; bottom: 10px; }

/* Tier 4 (Rank 6~7) - Diameter ~250px */
.bubble.tier-4 { padding: 16px 12px; }
.bubble.tier-4 .bubble-category { font-size: 0.76rem; padding: 2px 9px; margin-bottom: 5px; }
.bubble.tier-4 .bubble-content { font-size: 1.06rem; line-height: 1.35; -webkit-line-clamp: 3; font-weight: 750; text-shadow: 0 2px 8px rgba(0,0,0,0.95); }
.bubble.tier-4 .bubble-author { font-size: 0.76rem; margin-top: 4px; font-weight: 650; }
.bubble.tier-4 .bubble-like { font-size: 0.76rem; padding: 3px 10px; bottom: 9px; }

/* Tier 5 (Rank 8~9) - Diameter ~220px */
.bubble.tier-5, .bubble.tier-sm { padding: 14px 10px; }
.bubble.tier-5 .bubble-category, .bubble.tier-sm .bubble-category { font-size: 0.72rem; padding: 2px 8px; margin-bottom: 4px; }
.bubble.tier-5 .bubble-content, .bubble.tier-sm .bubble-content { font-size: 0.98rem; line-height: 1.32; -webkit-line-clamp: 3; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.95); }
.bubble.tier-5 .bubble-author, .bubble.tier-sm .bubble-author { font-size: 0.72rem; margin-top: 3px; font-weight: 600; }
.bubble.tier-5 .bubble-like, .bubble.tier-sm .bubble-like { font-size: 0.72rem; padding: 2px 9px; bottom: 8px; }

/* Tier 6 (Rank 10~12) - Diameter ~190px */
.bubble.tier-6, .bubble.tier-xs { padding: 12px 8px; }
.bubble.tier-6 .bubble-category, .bubble.tier-xs .bubble-category { font-size: 0.68rem; padding: 2px 7px; margin-bottom: 3px; }
.bubble.tier-6 .bubble-content, .bubble.tier-xs .bubble-content { font-size: 0.90rem; line-height: 1.30; -webkit-line-clamp: 3; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.95); }
.bubble.tier-6 .bubble-author, .bubble.tier-xs .bubble-author { font-size: 0.68rem; margin-top: 3px; font-weight: 600; }
.bubble.tier-6 .bubble-like, .bubble.tier-xs .bubble-like { font-size: 0.68rem; padding: 2px 8px; bottom: 7px; }

/* Rank Badges */
.rank-badge {
  position: absolute;
  top: 9px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

.rank-badge.badge-hero {
  top: 12px;
  background: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 4px 14px;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.7);
  animation: heroBadgePulse 2.2s infinite ease-in-out;
}

@keyframes heroBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(244, 63, 94, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 6px 22px rgba(244, 63, 94, 0.95); }
}

/* Spawn Animation */
@keyframes bubbleSpawn {
  0% { transform: scale(0.1) translateY(80px); opacity: 0; }
  70% { transform: scale(1.15) translateY(-10px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ==============================================================================
   Enlarged Question Modal (Central Zoom Display)
   ============================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 150;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Background Dimming & Blur when Spotlight Modal is active */
#bubble-stage.is-dimmed {
  opacity: 0.1;
  filter: blur(14px) brightness(0.4);
  pointer-events: none;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Stage Spotlight Card (Extra Large & Crystal Clear for 10m LED Visibility) */
.modal-card {
  width: 92%;
  max-width: 1040px;
  background: linear-gradient(135deg, rgba(11, 18, 38, 0.98) 0%, rgba(5, 9, 20, 0.99) 100%);
  border: 2px solid rgba(0, 229, 255, 0.65);
  border-radius: 36px;
  padding: 44px 56px 40px;
  text-align: center;
  position: relative;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.95), 0 0 90px rgba(0, 229, 255, 0.35);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.spotlight-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.spotlight-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.18);
  border: 1.5px solid rgba(0, 229, 255, 0.6);
  color: #00e5ff;
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.spotlight-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
  animation: spotlightDotPulse 1.4s infinite ease-in-out;
}

@keyframes spotlightDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.modal-category-badge {
  font-size: 0.92rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}

.modal-answered-badge {
  font-size: 0.88rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.25);
  border: 1.5px solid rgba(16, 185, 129, 0.6);
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-emoji-big {
  font-size: 3.8rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}

.modal-full-content {
  font-size: 2.35rem; /* ~38px - Crisp, bold, legible across entire hall */
  font-weight: 800;
  line-height: 1.48;
  color: #ffffff;
  margin: 16px auto 26px;
  max-width: 920px;
  word-break: keep-all;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.85);
  white-space: normal;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.modal-author-info {
  font-size: 1.12rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 0;
}

.modal-likes-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #fb7185;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 800;
}

.modal-actions-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn-modal-like {
  background: linear-gradient(135deg, #f43f5e 0%, #ff4d6d 100%);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-modal-like:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(244, 63, 94, 0.6);
}

.btn-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}
}

/* Golden Modal for AI Opinion */
.modal-card.is-ai-gold {
  border: 2px solid rgba(251, 191, 36, 0.9);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 60px rgba(245, 158, 11, 0.5), inset 0 0 30px rgba(245, 158, 11, 0.15);
}

.modal-card.is-ai-gold .modal-category-badge {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(251, 191, 36, 0.6);
  color: #fef08a;
}

.btn-modal-ai-tts {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-modal-ai-tts:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.6);
}

/* ==============================================================================
   Holographic AI Panel Modal (Look at Stage Photo!)
   ============================================================================== */
.ai-panel-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ai-panel-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.ai-panel-card {
  width: 90%;
  max-width: 820px;
  background: radial-gradient(circle at 50% 30%, rgba(30, 20, 60, 0.95) 0%, rgba(10, 14, 30, 0.98) 70%, rgba(4, 7, 18, 0.99) 100%);
  border: 2px solid #f59e0b;
  border-radius: 40px;
  padding: 46px 52px;
  position: relative;
  box-shadow: 0 0 70px rgba(245, 158, 11, 0.45), 0 0 120px rgba(0, 229, 255, 0.25), inset 0 0 40px rgba(245, 158, 11, 0.2);
  transform: scale(0.85) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.ai-panel-modal.active .ai-panel-card {
  transform: scale(1) translateY(0);
}

/* Glowing Neon Outer Ring */
.ai-panel-card::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 46px;
  background: linear-gradient(135deg, #f59e0b, #00e5ff, #a855f7, #f59e0b);
  z-index: -1;
  opacity: 0.6;
  filter: blur(12px);
  animation: neonRotate 8s linear infinite;
}

@keyframes neonRotate {
  0% { filter: blur(12px) hue-rotate(0deg); }
  100% { filter: blur(12px) hue-rotate(360deg); }
}

.ai-header-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.ai-avatar-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #ff8c00 100%);
  color: #050813;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.7);
}

.ai-header-titles {
  text-align: left;
}

.ai-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.ai-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.ai-header-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

/* Audio Waveform Animation */
.ai-waveform-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  margin: 18px 0 26px;
}

.wave-bar {
  width: 5px;
  height: 12px;
  background: linear-gradient(180deg, #00e5ff 0%, #f59e0b 100%);
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  transition: height 0.1s ease;
}

.ai-panel-modal.speaking .wave-bar {
  animation: waveBounce 0.8s ease-in-out infinite alternate;
}

.ai-panel-modal.speaking .wave-bar:nth-child(2n) { animation-delay: 0.15s; }
.ai-panel-modal.speaking .wave-bar:nth-child(3n) { animation-delay: 0.3s; }
.ai-panel-modal.speaking .wave-bar:nth-child(4n) { animation-delay: 0.45s; }
.ai-panel-modal.speaking .wave-bar:nth-child(5n) { animation-delay: 0.6s; }

@keyframes waveBounce {
  0% { height: 8px; }
  100% { height: 42px; }
}

/* AI Quote Subtitle */
.ai-quote-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 24px;
  padding: 28px 34px;
  margin-bottom: 24px;
  position: relative;
}

.ai-quote-text {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.65;
  color: #ffffff;
  word-break: keep-all;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.ai-quote-text::before {
  content: '“';
  font-size: 2.4rem;
  color: #f59e0b;
  margin-right: 6px;
  vertical-align: -6px;
}

.ai-quote-text::after {
  content: '”';
  font-size: 2.4rem;
  color: #f59e0b;
  margin-left: 6px;
  vertical-align: -6px;
}

.ai-context-tag {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 10px;
}

.btn-ai-dismiss {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ai-dismiss:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* ==========================================================================
   Continuous Likes Stage Animations & Floating Hearts
   ========================================================================== */
.stage-floating-heart {
  position: absolute;
  font-size: 2rem;
  pointer-events: none;
  z-index: 120;
  animation: stageHeartFly 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.85));
}

@keyframes stageHeartFly {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 1;
  }
  100% {
    transform: translate(var(--drift-x, 0px), -130px) scale(1.6);
    opacity: 0;
  }
}

.bubble.bubble-pulse-glow {
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.95), inset 0 2px 20px rgba(255, 255, 255, 0.95) !important;
  border-color: #ffffff !important;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease !important;
}

.bubble.color-gold.bubble-pulse-glow {
  box-shadow: 0 0 65px rgba(245, 158, 11, 0.98), inset 0 2px 20px rgba(254, 240, 138, 0.95) !important;
  border-color: #fef08a !important;
}

/* ==========================================================================
   Mobile Smartphone Guide Banner & Responsive Adjustments
   ========================================================================== */
.mobile-guide-banner {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 229, 255, 0.3);
}

.mobile-guide-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.btn-mobile-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #00e5ff 0%, #3b82f6 100%);
  color: #050813 !important;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
}

@media (max-width: 768px) {
  .talk-header {
    top: 95px !important;
    left: 10px !important;
    right: 10px !important;
    padding: 10px 14px !important;
    border-radius: 16px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .talk-title {
    font-size: 1.02rem !important;
  }
  .talk-tools {
    top: 95px !important;
    right: 10px !important;
  }
  .qr-panel {
    display: none !important;
  }
}

