/* ==========================================================================
   LUNIUS LABS — Interactive Live Product Scenes (scenes.css)
   Authentic App Palettes:
   - Lunaria: #0A0A0C / #12141D / #64FFDA (Polaris) / #BA68C8 (Night Violet)
   - YouNote: #0F172A / #1E293B / #6366F1 (Slate Indigo) / #38BDF8 (Sky)
   ========================================================================== */

.live-scene {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(213, 222, 236, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  user-select: none;
  font-family: var(--font-sans);
}

/* Window / Device Top Chrome */
.scene-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.scene-dots {
  display: inline-flex;
  gap: 6px;
}

.scene-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(213, 222, 236, 0.18);
}

.scene-badge {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-muted);
}

.scene-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   LUNARIA SCENES
   ========================================================================== */
.scene-lunaria {
  background:
    radial-gradient(circle at 78% 18%, rgba(100, 255, 218, 0.08), transparent 48%),
    radial-gradient(circle at 22% 82%, rgba(186, 104, 200, 0.09), transparent 52%),
    linear-gradient(180deg, #0b0e18 0%, #111524 100%);
}

/* Lunaria Scene 1: Interactive Constellation Memory Sky */
.lunaria-sky-stage {
  position: relative;
  height: 196px;
  margin: 16px 18px 12px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 25%, rgba(27, 34, 54, 0.72), rgba(10, 12, 20, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.lunaria-constellation-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lunaria-constellation-line {
  stroke: rgba(226, 232, 240, 0.16);
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
  transition: stroke 0.6s var(--ease-celestial);
}

.lunaria-star-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lunaria-star-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e2e8f0;
  box-shadow: 0 0 12px rgba(226, 232, 240, 0.75);
  transition: transform 0.5s var(--ease-celestial), box-shadow 0.5s var(--ease-celestial), background 0.5s var(--ease-celestial);
}

.lunaria-star-btn[data-polaris="true"] .lunaria-star-dot {
  background: #64ffda;
  box-shadow: 0 0 14px rgba(100, 255, 218, 0.85);
}

.lunaria-star-ring {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.22);
  transform: scale(0.72);
  opacity: 0;
  transition: transform 0.55s var(--ease-celestial), opacity 0.55s var(--ease-celestial), border-color 0.55s var(--ease-celestial);
}

.lunaria-star-btn:hover .lunaria-star-dot,
.lunaria-star-btn.active .lunaria-star-dot {
  transform: scale(1.32);
}

.lunaria-star-btn.active .lunaria-star-ring {
  transform: scale(1.12);
  opacity: 1;
  border-color: rgba(100, 255, 218, 0.65);
}

.lunaria-star-label {
  position: absolute;
  top: 30px;
  white-space: nowrap;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  opacity: 0.78;
  pointer-events: none;
}

.lunaria-memory-card {
  margin: 0 18px 18px;
  padding: 15px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.35s var(--ease-celestial), transform 0.35s var(--ease-celestial);
}

.lunaria-memory-card.switching {
  opacity: 0.35;
  transform: translateY(3px);
}

.lunaria-memory-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64ffda;
}

.lunaria-memory-date {
  color: var(--text-dim);
}

.lunaria-memory-text {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--text-pure);
  line-height: 1.48;
}

/* Lunaria Scene 2: Voice Memory Waveform */
.lunaria-voice-body {
  padding: 24px 22px;
}

.voice-player-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(186, 104, 200, 0.22);
  margin-bottom: 16px;
}

.voice-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(100, 255, 218, 0.45);
  background: rgba(100, 255, 218, 0.12);
  color: #64ffda;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.voice-play-btn:hover {
  background: rgba(100, 255, 218, 0.22);
  transform: scale(1.05);
}

.voice-waveform {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
}

.voice-bar {
  flex: 1;
  border-radius: 99px;
  background: linear-gradient(180deg, #64ffda, #ba68c8);
  height: var(--bar-h, 35%);
  opacity: 0.48;
  transition: opacity 0.4s var(--ease-celestial), height 0.4s var(--ease-celestial);
}

.voice-player-row.playing .voice-bar {
  opacity: 0.92;
  animation: gentleWave 2.1s var(--ease-breath) infinite;
  animation-delay: var(--bar-d, 0s);
}

@keyframes gentleWave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1.18); }
}

.voice-timer {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  min-width: 42px;
  text-align: right;
}

.voice-caption-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border-left: 2px solid rgba(186, 104, 200, 0.55);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--luna-silver);
}

/* Lunaria Scene 3: Letter to the Future (Time Capsule) */
.lunaria-capsule-body {
  padding: 28px 24px;
  text-align: center;
}

.capsule-seal-ring {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px dashed rgba(100, 255, 218, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64ffda;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.12), transparent 70%);
  animation: slowOrbitGlow 8s var(--ease-breath) infinite;
}

@keyframes slowOrbitGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(100, 255, 218, 0); }
  50% { box-shadow: 0 0 26px rgba(100, 255, 218, 0.22); }
}

.capsule-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-pure);
  margin-bottom: 6px;
}

.capsule-Blurred-preview {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  margin: 12px auto 18px;
  max-width: 340px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  filter: blur(2.4px);
  transition: filter 0.65s var(--ease-celestial);
}

.lunaria-capsule-body:hover .capsule-Blurred-preview {
  filter: blur(0.9px);
}

.capsule-unlock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #64ffda;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(100, 255, 218, 0.08);
  border: 1px solid rgba(100, 255, 218, 0.25);
}

/* ==========================================================================
   YOUNOTE SCENES (Slate Indigo Dark Palette)
   ========================================================================== */
.scene-younote {
  background:
    radial-gradient(circle at 82% 16%, rgba(99, 102, 241, 0.14), transparent 50%),
    radial-gradient(circle at 18% 85%, rgba(56, 189, 248, 0.10), transparent 50%),
    linear-gradient(180deg, #0c1324 0%, #0f172a 100%);
}

/* YouNote Scene 1: Interactive Timestamped Video Player */
.yn-player-screen {
  margin: 16px 18px 12px;
  border-radius: 14px;
  background: linear-gradient(155deg, #131c33 0%, #0b1020 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  padding: 16px 18px 14px;
  position: relative;
}

.yn-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.yn-video-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-pure);
}

.yn-video-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #38bdf8;
}

.yn-video-canvas {
  height: 82px;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.18), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
  margin-bottom: 14px;
}

.yn-stage-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--luna-white);
  transition: opacity 0.35s var(--ease-celestial);
}

.yn-scrubber {
  position: relative;
  height: 5px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.18);
}

.yn-scrubber-fill {
  height: 100%;
  width: 18%;
  border-radius: 99px;
  background: linear-gradient(90deg, #6366f1, #38bdf8);
  transition: width 0.65s var(--ease-celestial);
}

.yn-scrubber-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f8fafc;
  border: 2px solid #6366f1;
}

.yn-notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 18px 18px;
}

.yn-note-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.4s var(--ease-celestial), border-color 0.4s var(--ease-celestial), transform 0.4s var(--ease-celestial);
}

.yn-note-item:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(99, 102, 241, 0.38);
}

.yn-note-item.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(56, 189, 248, 0.52);
}

.yn-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 9px;
  border-radius: 6px;
  flex-shrink: 0;
}

.yn-note-text {
  font-size: 0.84rem;
  color: var(--text-pure);
  line-height: 1.4;
}

/* YouNote Scene 2: One-Tap Frame Capture */
.yn-capture-body {
  padding: 20px 20px 22px;
}

.yn-frame-card {
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 14px;
}

.yn-frame-diagram {
  position: relative;
  height: 126px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.14), rgba(11, 17, 32, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.yn-shutter-flash {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  opacity: 0;
  pointer-events: none;
}

.yn-frame-card.flashing .yn-shutter-flash {
  animation: calmShutter 0.65s var(--ease-celestial);
}

@keyframes calmShutter {
  0% { opacity: 0.65; }
  100% { opacity: 0; }
}

.yn-capture-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.yn-capture-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.18);
  color: var(--text-pure);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.yn-capture-btn:hover {
  background: rgba(99, 102, 241, 0.32);
}

/* YouNote Scene 3: Phone <-> Chrome Google Drive Sync Bridge */
.yn-sync-body {
  padding: 26px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.yn-device-card {
  padding: 16px 14px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.14);
  text-align: center;
}

.yn-device-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-pure);
  margin-top: 8px;
}

.yn-device-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 3px;
}

.yn-sync-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.yn-sync-line {
  width: 68px;
  height: 2px;
  background: rgba(56, 189, 248, 0.22);
  position: relative;
  overflow: hidden;
  border-radius: 99px;
}

.yn-sync-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  animation: syncGlide 3.2s var(--ease-breath) infinite;
}

@keyframes syncGlide {
  0% { left: -35%; }
  50% { left: 100%; }
  100% { left: -35%; }
}

.yn-drive-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .yn-sync-body {
    grid-template-columns: 1fr;
  }
  .yn-sync-line {
    width: 2px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .lunaria-sky-stage {
    margin: 12px 12px 10px;
    height: 180px;
  }
  .lunaria-memory-card {
    margin: 0 12px 14px;
    padding: 12px 14px;
  }
  .lunaria-voice-body {
    padding: 16px 14px;
  }
  .voice-player-row {
    padding: 12px 14px;
    gap: 10px;
  }
  .voice-play-btn {
    width: 38px;
    height: 38px;
  }
  .voice-caption-card {
    font-size: 0.98rem;
    padding: 12px 14px;
  }
  .lunaria-capsule-body {
    padding: 22px 16px;
  }
  .yn-player-screen {
    margin: 12px 12px 10px;
    padding: 14px 12px 12px;
  }
  .yn-stage-caption {
    font-size: 0.94rem;
  }
  .yn-notes-list {
    padding: 0 12px 14px;
  }
  .yn-capture-body {
    padding: 16px 14px;
  }
  .yn-sync-body {
    padding: 20px 14px;
  }
}
