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

:root {
  --primary: #F57F17;
  --primary-light: #F9A825;
  --primary-dark: #FBC02D;
  --accent: #FDD835;
  --accent-light: #FFFDE7;
  --accent-dark: #D4895A;
  --success: #6BBF8A;
  --danger: #E07575;
  --danger-light: #F5A8A8;
  --bg: #F7F4F0;
  --bg-card: #FFFFFF;
  --bg-paper: #FFFDF8;
  --text: #2D2A33;
  --text-secondary: #6B6575;
  --text-muted: #9E96A8;
  --border: #E8E3DD;
  --border-light: #F0EBE5;
  --shadow-sm: 0 1px 3px rgba(91, 74, 138, 0.06);
  --shadow-md: 0 4px 12px rgba(91, 74, 138, 0.08);
  --shadow-lg: 0 8px 30px rgba(91, 74, 138, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

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

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

html {
  scroll-behavior: smooth;
}

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

/* App Layout */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 2rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 168, 124, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.8rem;
  animation: gentleSpin 8s linear infinite;
}

@keyframes gentleSpin {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  75% { transform: rotate(-15deg); }
}

.app-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: white;
  letter-spacing: -0.02em;
}

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

.app-main {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

.app-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(91, 74, 138, 0.04);
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--primary);
}

.btn-seal {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-seal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 168, 124, 0.35);
}

.btn-seal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-reveal {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 2s ease-in-out infinite;
}

.btn-reveal:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(91, 74, 138, 0.3);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 74, 138, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(91, 74, 138, 0); }
}

.btn-open {
  background: var(--success);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 0.75rem;
}

.btn-open:hover {
  background: #5aad79;
  transform: translateY(-1px);
}

.btn-danger-outline {
  background: transparent;
  color: var(--danger);
  border: 1.5px solid var(--danger-light);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-outline:hover {
  background: rgba(224, 117, 117, 0.06);
  border-color: var(--danger);
}

.btn-danger {
  background: var(--danger);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: #cc5e5e;
}

.btn-icon {
  font-size: 1.1em;
}

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

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: gentleFloat 3s ease-in-out infinite;
}

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

.empty-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.empty-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Capsule Grid */
.capsule-list-container {
  animation: fadeInUp 0.4s ease both;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.capsule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

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

.capsule-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease both;
}

.capsule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.capsule-sealed::before {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.capsule-unlocked::before {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

.capsule-unlocked {
  cursor: pointer;
}

.capsule-unlocked:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.capsule-sealed {
  opacity: 0.85;
}

.capsule-status-badge {
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-sealed {
  background: rgba(91, 74, 138, 0.1);
  color: var(--primary);
}

.badge-unlocked {
  background: rgba(232, 168, 124, 0.15);
  color: var(--accent-dark);
}

.capsule-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.capsule-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 300;
}

.meta-value {
  color: var(--text-secondary);
  font-weight: 500;
}

.countdown-display {
  text-align: center;
  padding: 0.75rem;
  margin-top: 0.75rem;
  background: rgba(91, 74, 138, 0.04);
  border-radius: var(--radius-sm);
}

.countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.capsule-photo-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* Skeleton Loading */
.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: var(--border-light);
  margin-bottom: 0.75rem;
}

.skeleton-wide { width: 80%; }
.skeleton-medium { width: 60%; }
.skeleton-narrow { width: 40%; }

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

/* Create Capsule */
.create-container {
  animation: fadeInUp 0.4s ease both;
}

.create-header {
  margin-bottom: 2rem;
}

.create-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.step-indicator {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.step-active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.step-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.step-animate {
  animation: fadeInUp 0.35s ease both;
}

.field-label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.input-field:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(91, 74, 138, 0.1);
}

.textarea-field {
  width: 100%;
  padding: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  resize: vertical;
  min-height: 180px;
  line-height: 1.7;
}

.textarea-field:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(91, 74, 138, 0.1);
}

/* Photo Upload */
.photo-upload-area {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.photo-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--border);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-add-btn {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  background: transparent;
}

.photo-add-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: rgba(91, 74, 138, 0.03);
}

/* Seal Preview */
.seal-preview {
  background: linear-gradient(135deg, rgba(91, 74, 138, 0.04), rgba(232, 168, 124, 0.06));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed var(--border);
}

.preview-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.seal-preview h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.preview-date {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.preview-letter {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
}

.preview-photos {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.step-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Viewer */
.viewer-container {
  animation: fadeInUp 0.4s ease both;
}

.sealed-view {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.sealed-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.sealed-view h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.sealed-message {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.sealed-date {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.sealed-countdown {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Reveal Ceremony */
.reveal-ceremony {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.reveal-ceremony::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 168, 124, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.ceremony-icon {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  animation: gentleFloat 3s ease-in-out infinite;
}

.ceremony-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.ceremony-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.ceremony-text:last-of-type {
  margin-bottom: 2rem;
}

/* Opened Capsule */
.opened-capsule {
  animation: fadeInUp 0.6s ease both;
}

.opened-header {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 1.5rem;
}

.opened-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.opened-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.opened-dates {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.date-separator {
  color: var(--border);
}

/* Letter */
.letter-container {
  margin-bottom: 2rem;
}

.letter-paper {
  background: var(--bg-paper);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.letter-paper::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(232, 168, 124, 0.2);
}

.letter-line {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text);
  padding-left: 1.5rem;
  border-bottom: 1px solid rgba(91, 74, 138, 0.03);
}

/* Photos */
.photos-section {
  margin-bottom: 2rem;
}

.photos-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.photo-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: all 0.2s ease;
}

.photo-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Capsule Actions */
.capsule-actions {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.delete-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.delete-confirm p {
  font-size: 0.9rem;
  color: var(--danger);
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .app-header {
    padding: 1.5rem 1rem 2rem;
  }

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

  .app-main {
    padding: 1rem;
  }

  .capsule-grid {
    grid-template-columns: 1fr;
  }

  .step-content {
    padding: 1.25rem;
  }

  .letter-paper {
    padding: 1.25rem;
  }

  .letter-paper::before {
    left: 1.25rem;
  }

  .letter-line {
    padding-left: 1rem;
  }

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

  .step-nav {
    flex-direction: column;
  }

  .step-nav .btn-secondary,
  .step-nav .btn-primary,
  .step-nav .btn-seal {
    width: 100%;
    justify-content: center;
  }

  .list-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .reveal-ceremony {
    padding: 2.5rem 1rem;
  }

  .ceremony-title {
    font-size: 1.4rem;
  }
}

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to Time Capsule — a place to write letters to your future self and seal them away until the right moment.", "view": "user", "highlight_selector": ".app-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "When you first open the app, you'll see an empty vault. Let's create your first capsule.", "view": "user", "highlight_selector": ".empty-state", "wait_for": "tap_to_continue"},
  {"step": 3, "narration": "Tap 'Create Your First Capsule' to begin. You'll walk through four simple steps.", "view": "user", "highlight_selector": ".btn-primary", "wait_for": "user_interaction"},
  {"step": 4, "narration": "First, give your capsule a name — something meaningful like 'Letter to 2026 Me'.", "view": "user", "highlight_selector": ".input-field", "wait_for": "user_interaction"},
  {"step": 5, "narration": "Next, write your letter. Pour your heart out — your future self will thank you.", "view": "user", "highlight_selector": ".textarea-field", "wait_for": "user_interaction"},
  {"step": 6, "narration": "Choose when this capsule should unlock. It could be next month, next year, or a decade from now.", "view": "user", "highlight_selector": "input[type='date']", "wait_for": "user_interaction"},
  {"step": 7, "narration": "Optionally add up to 5 photos to remember this moment. Then seal the capsule.", "view": "user", "highlight_selector": ".photo-upload-area", "wait_for": "tap_to_continue"},
  {"step": 8, "narration": "Sealed capsules show a countdown. When the unlock date arrives, you'll see a special opening ceremony.", "view": "user", "highlight_selector": ".capsule-card", "wait_for": "tap_to_continue"},
  {"step": 9, "narration": "Opening a capsule reveals your letter on beautiful paper and all your enclosed photos. Enjoy the memories!", "view": "user", "highlight_selector": ".letter-paper", "wait_for": "tap_to_continue"}
]
-->

.auth-gate {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.sealed-countdown {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.9rem 1.25rem;
  background: rgba(91, 74, 138, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-top: 0.5rem;
}

.countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}

.countdown-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.reflection-card {
  background: linear-gradient(135deg, rgba(91, 74, 138, 0.04), rgba(232, 168, 124, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

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

.reflection-icon {
  font-size: 1.1rem;
}

.reflection-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.reflection-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.reflection-loading {
  color: var(--primary);
  font-size: 0.92rem;
  font-style: italic;
}

.reflection-error {
  color: var(--danger);
  font-size: 0.92rem;
}

.share-card {
  background: linear-gradient(135deg, rgba(91, 74, 138, 0.04), rgba(232, 168, 124, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

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

.share-card-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.share-card-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.share-link-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.share-link-input {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.75);
}

.share-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--success);
}

.share-error {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--danger);
}

@media (max-width: 640px) {
  .share-card-header,
  .share-link-row {
    flex-direction: column;
    align-items: stretch;
  }

  .share-card-header .btn-secondary,
  .share-link-row .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

.pdf-keepsake-card {
  background: linear-gradient(135deg, rgba(91, 74, 138, 0.04), rgba(232, 168, 124, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.pdf-keepsake-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pdf-keepsake-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pdf-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--success);
}

.pdf-error {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--danger);
}

@media (max-width: 640px) {
  .pdf-keepsake-card {
    flex-direction: column;
    align-items: stretch;
  }

  .pdf-keepsake-card .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
