/* World Choir — Simplified Home Page */

.home-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 24px 20px calc(var(--nav-height) + 24px);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  overflow-x: clip;
  text-align: center;
}

.home-page--centered {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Match lightbulb top so Voices shares its vertical center line */
  padding-top: calc(env(safe-area-inset-top, 0px) + 22px);
}

/* Suggestions / Guide tab — upper-right edge, understated */
.home-guide-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 22px);
  right: 0;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 40px;
  margin: 0;
  padding: 0 6px 0 8px;
  border: 1px solid var(--border-mid);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: #1c1d21;
  color: var(--accent-aurora);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.home-guide-btn[hidden] {
  display: none !important;
}

.home-guide-btn__icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.home-guide-btn:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

/* Discover guide — top-mounted panel over Home */
.home-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 0;
  pointer-events: none;
}

.home-guide-overlay[hidden] {
  display: none !important;
}

.home-guide-overlay.is-open {
  pointer-events: auto;
}

.home-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.26s ease;
}

.home-guide-overlay.is-open .home-guide-backdrop {
  opacity: 1;
}

.home-guide-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  max-height: min(78dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 88px));
  margin: 0 auto;
  padding: 12px 14px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid rgba(140, 160, 190, 0.18);
  border-radius: 28px;
  background: rgba(16, 18, 24, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: var(--df-warm);
  text-align: center;
  box-shadow: none;
  pointer-events: auto;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.home-guide-overlay.is-open .home-guide-panel {
  transform: translateY(0);
  opacity: 1;
}

.home-guide-panel__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: var(--border-subtle);
  color: rgba(242, 239, 232, 0.88);
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.home-guide-panel__close:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.home-guide-panel__title {
  margin: 8px 36px 6px;
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 4.8vw, 1.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

.home-guide-panel__subtitle {
  margin: 0 36px 14px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
}

.home-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
  margin: 0;
  text-align: center;
}

.home-guide-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding: 14px 12px 13px;
  border: 1px solid rgba(140, 160, 190, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.home-guide-card--action {
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.home-guide-card--action:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: 2px;
}

.home-guide-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
}

.home-guide-card__icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.home-guide-card__icon--cyan { color: var(--accent-aurora); }
.home-guide-card__icon--coral { color: #ff8e8e; }
.home-guide-card__icon--violet { color: var(--accent-violet); }
.home-guide-card__icon--gold { color: var(--accent-gold); }

.home-guide-card__title {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--text-primary);
}

.home-guide-card__copy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
}

body.home-guide-open {
  overflow: hidden;
}

/* Light Mode only — clear grey chrome; Dark Mode values above stay untouched */
html[data-theme="light"] .home-guide-btn {
  background: #e8e8ec;
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--accent-aurora);
}

html[data-theme="light"] .home-guide-btn:hover,
html[data-theme="light"] .home-guide-btn:active,
html[data-theme="light"] .home-guide-btn[aria-expanded="true"] {
  background: #e8e8ec;
}

html[data-theme="light"] .home-guide-panel {
  background: rgba(232, 232, 236, 0.97);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

html[data-theme="light"] .home-guide-panel__close {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

html[data-theme="light"] .home-guide-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .home-guide-backdrop {
  background: rgba(255, 255, 255, 0.45);
}

@media (max-width: 340px) {
  .home-guide-panel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-guide-grid {
    gap: 8px;
  }

  .home-guide-card {
    padding: 12px 10px 11px;
  }

  .home-guide-card__title {
    font-size: 0.9rem;
  }

  .home-guide-card__copy {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-guide-backdrop,
  .home-guide-panel {
    transition: none;
  }

  .home-guide-panel {
    transform: none;
  }
}

#earth-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-logo {
  display: block;
  width: min(240px, 56vw);
  height: auto;
  margin: 0 auto 24px;
  object-fit: contain;
  filter: none !important;
}

.home-voices-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Same height as .home-guide-btn so text center = lightbulb center */
  min-height: 40px;
  margin: 0 auto 14px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-aurora);
  font-variant-numeric: tabular-nums;
}

.home-voices-counter--loading {
  opacity: 0.42;
  animation: homeVoicesPulse 1.6s ease-in-out infinite;
}

.home-voices-counter--bump {
  animation: homeVoicesBump 0.9s cubic-bezier(0.22, 1.4, 0.36, 1);
}

@keyframes homeVoicesPulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.68; }
}

@keyframes homeVoicesBump {
  0% {
    transform: scale(1);
    color: var(--accent-aurora);
    text-shadow: none;
    letter-spacing: 0.28em;
  }
  18% {
    transform: scale(1.22);
    color: var(--text-primary);
    text-shadow:
      0 0 12px rgba(78, 197, 232, 0.95),
      0 0 28px rgba(61, 124, 255, 0.7);
    letter-spacing: 0.34em;
  }
  42% {
    transform: scale(1.1);
    color: var(--accent-blue);
    text-shadow:
      0 0 10px rgba(61, 124, 255, 0.65),
      0 0 22px rgba(78, 197, 232, 0.45);
    letter-spacing: 0.3em;
  }
  100% {
    transform: scale(1);
    color: var(--accent-aurora);
    text-shadow: none;
    letter-spacing: 0.28em;
  }
}

.home-brand {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.home-brand--live {
  color: var(--accent-aurora);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-aurora);
  box-shadow: 0 0 12px var(--accent-aurora);
  animation: liveDot 1.5s ease-in-out infinite;
}

@keyframes liveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.home-headline {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.home-copy {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.home-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.home-meta--pledged {
  color: var(--accent-aurora);
  margin-top: 20px;
  font-weight: 500;
}

.home-song {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* Countdown — visual hero */
.countdown-hero {
  margin-bottom: 28px;
}

.countdown-hero__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown-hero__unit {
  background: rgba(6, 8, 14, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 8px;
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.countdown-hero__value {
  display: block;
  font-size: clamp(1.8rem, 7vw, 2.75rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, rgba(180, 200, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-hero__label {
  display: block;
  margin-top: 10px;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

html[data-theme="light"] .countdown-hero__label,
html[data-theme="light"] .countdown-name {
  color: #ffffff;
}

/* ─── Home help tab + empty placeholder panel ─── */

.home-help-tab {
  position: fixed;
  top: max(56px, calc(env(safe-area-inset-top, 0px) + 48px));
  right: 0;
  z-index: 45;
  width: 48px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: #2c2e33;
  color: #3ba7c4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Half off-screen; right edge sits a little higher than the left. */
  transform: translateX(50%) rotate(-11deg);
  transform-origin: center center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  box-shadow: none;
}

.home-help-tab[hidden] {
  display: none !important;
}

.home-help-tab:focus-visible {
  outline: 2px solid rgba(59, 167, 196, 0.55);
  outline-offset: 2px;
}

.home-help-tab__icon {
  width: 18px;
  height: 18px;
  display: block;
  /* Push icon toward the clipped right edge so about half stays visible. */
  transform: translateX(7px);
  pointer-events: none;
}

.home-help-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(36, 38, 42, 0.72);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
}

.home-help-panel[hidden] {
  display: none !important;
}

/* Primary CTA */
.btn-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px;
  padding: 18px 36px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-violet) 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 48px var(--glow-blue);
}

.btn-hero:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 56px var(--glow-blue);
}

.btn-hero--pledged,
.btn-hero:disabled {
  background: rgba(78, 197, 232, 0.1);
  color: var(--accent-aurora);
  border: 1px solid rgba(78, 197, 232, 0.3);
  box-shadow: none;
  cursor: default;
}

.btn-hero__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, var(--border-soft) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: btnShine 5s ease-in-out infinite;
}

.btn-hero--pledged .btn-hero__glow,
.btn-hero:disabled .btn-hero__glow {
  display: none;
}

@keyframes btnShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.btn-hero__text {
  position: relative;
  z-index: 1;
}

.btn-hero-skeleton {
  width: 100%;
  max-width: 320px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    90deg,
    var(--surface-lift) 0%,
    var(--border-mid) 50%,
    var(--surface-lift) 100%
  );
  background-size: 200% 100%;
  animation: btnHeroSkeleton 1.4s ease-in-out infinite;
}

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

/* Post-pledge compact action toolbar (replaces "You're Singing" + circular icons) */
.pledged-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 16px;
  min-height: 52px;
  border-radius: var(--radius-md);
  background: rgba(78, 197, 232, 0.1);
  border: 1px solid rgba(78, 197, 232, 0.3);
  box-sizing: border-box;
  overflow: hidden;
}

.pledged-actions__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 12px 6px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--accent-aurora);
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition), color var(--transition);
}

.pledged-actions__btn:hover {
  background: rgba(78, 197, 232, 0.1);
  color: #fff;
}

.pledged-actions__btn:active {
  background: rgba(78, 197, 232, 0.16);
}

.pledged-actions__btn:focus-visible {
  outline: 2px solid var(--accent-aurora);
  outline-offset: -2px;
  z-index: 1;
}

.pledged-actions__btn .btn-icon__svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.pledged-actions__sep {
  flex: 0 0 1px;
  width: 1px;
  align-self: stretch;
  margin: 12px 0;
  background: rgba(78, 197, 232, 0.22);
}

/* Secondary actions — icon buttons (legacy; kept for any residual usage) */
.secondary-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--surface-lift);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon__svg {
  width: 20px;
  height: 20px;
}

.btn-icon:hover {
  border-color: var(--border-glow);
  color: var(--accent-aurora);
  background: rgba(78, 197, 232, 0.08);
  box-shadow: 0 4px 24px rgba(61, 124, 255, 0.12);
  transform: translateY(-1px);
}

.btn-glass {
  padding: 12px 18px;
  background: var(--surface-lift-mid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-glass:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  box-shadow: 0 4px 24px rgba(61, 124, 255, 0.1);
}

/* Modals */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6f7d' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.remind-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}

.remind-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-lift-mid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.remind-option:hover {
  border-color: var(--border-glow);
}

.remind-option input {
  accent-color: var(--accent-blue);
  width: 18px;
  height: 18px;
}

/* Remind Me — web/PWA fallback */
.remind-fallback-modal {
  max-width: 400px;
  text-align: center;
}

.remind-fallback-copy {
  margin-bottom: 12px;
  line-height: 1.6;
}

.remind-fallback-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 20px;
  line-height: 1.5;
}

.remind-fallback-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.remind-fallback-actions .btn {
  width: 100%;
  max-width: none;
}

.remind-fallback-hint {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: -8px 0 16px;
  line-height: 1.5;
}

.remind-fallback-hint--success {
  color: #8fd4a8;
}

/* Live event — promise & final moment */
.live-promise,
.live-final,
.live-event-error {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 28px;
  max-width: 440px;
  margin: 0 auto;
}

.live-promise__label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.live-promise__title {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.live-promise__copy {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.live-promise__form {
  margin-bottom: 8px;
  text-align: left;
}

.live-final__line {
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.live-final__line--emphasis {
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.live-final__line--calm {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.live-final__actions {
  max-width: 280px;
  margin: 0 auto;
}

.live-event-error__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.live-event-error__copy {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.home-post-event {
  animation: fadeIn 0.6s ease;
}

.home-post-event__title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.home-post-event__copy {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* ── Post-event Home (after World Choir event) ── */

.home-page--post-event {
  display: block;
  justify-content: flex-start;
  max-width: 520px;
  padding: 0 0 calc(var(--nav-height) + 12px);
  text-align: left;
  overflow: visible;
}

.home-after {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.home-after-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #050810 0%, #000 100%);
  pointer-events: none;
}

.home-after-hero__stage {
  position: relative;
  width: 100%;
  overflow: visible;
  line-height: 0;
}

.home-after-hero__confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.home-after-hero__confetti__piece {
  position: absolute;
  top: 0;
  border-radius: 1px;
  opacity: 0;
  will-change: transform, opacity;
}

.home-after-hero__planet {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.home-after-hero__planet:not([src]),
.home-after-hero__planet[src=""] {
  opacity: 0;
}

.home-after-hero__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  padding: clamp(20px, 6vw, 28px) 20px clamp(24px, 7vw, 36px);
  text-align: center;
  line-height: normal;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 16, 0.2) 0%,
    rgba(5, 8, 16, 0.05) 28%,
    rgba(0, 0, 0, 0.45) 72%,
    rgba(0, 0, 0, 0.68) 100%
  );
}

.home-after-hero__logo {
  display: block;
  width: min(112px, 30vw);
  height: auto;
  margin: 0 auto 4px;
}

.home-after-hero__title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  max-width: 22rem;
}

.home-after-hero__message {
  margin: 0 auto 0;
  max-width: 22rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(244, 244, 246, 0.78);
}

.home-after-body {
  position: relative;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
  padding: 14px 20px 8px;
  max-width: 100%;
  pointer-events: auto;
}

.home-after-body .home-after-card--song,
.home-after-body .home-after-memory {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* Stats sit on the planet image (inside the hero stage) on mobile and desktop */
.home-after-stats-float {
  position: absolute !important;
  left: 20px;
  right: 20px;
  top: 85%;
  z-index: 6;
  margin: 0;
  height: 60px;
  box-sizing: border-box;
  pointer-events: auto;
}

.home-after-card {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: rgba(12, 14, 22, 0.85);
  border: 1px solid var(--df-line);
}

.home-after-card__eyebrow {
  margin: 0 0 14px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent-aurora);
}

.home-after-card__eyebrow--left {
  text-align: left;
  margin-bottom: 8px;
}

.home-after-card--stats {
  padding: 6px 12px 8px;
  height: 60px;
}

.home-after-stats-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  height: 100%;
  gap: 0;
}

.home-after-stats-row__divider {
  width: 1px;
  align-self: stretch;
  margin: 2px 10px;
  background: var(--border-mid);
}

.home-after-voices-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 0;
  height: 100%;
  padding: 0;
  text-align: center;
}

a.home-after-voices-stat {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a.home-after-voices-stat:active {
  opacity: 0.75;
}

.home-after-voices-stat__num-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.home-after-voices-stat__num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1;
}

.home-after-voices-stat .home-after-stat__label {
  flex-shrink: 0;
  margin-top: 0;
  max-width: 9.5rem;
}

.home-after-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  max-width: 100%;
  min-width: 0;
}

.home-after-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 0;
  text-align: center;
}

.home-after-stat--divider {
  width: 1px;
  min-height: 72px;
  align-self: center;
  background: var(--border-mid);
  padding: 0;
}

.home-after-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-aurora);
}

.home-after-stat__icon--glyph {
  font-size: 1.25rem;
  line-height: 1;
}

.home-after-stat__icon .nav-icon__svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.home-after-stat__value {
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.15;
}

.home-after-stat__label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.3;
}

.home-after-song {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

a.home-after-card--song {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

a.home-after-card--song:hover,
a.home-after-card--song:focus-visible {
  border-color: var(--border-soft);
  background: rgba(16, 18, 28, 0.92);
  outline: none;
}

a.home-after-card--song:active {
  opacity: 0.9;
}

.home-after-song__art {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  background:
    linear-gradient(145deg, rgba(40, 60, 100, 0.4), rgba(10, 14, 24, 0.9));
  border: 1px solid var(--df-line);
}

.home-after-song__meta {
  flex: 1;
  min-width: 0;
}

.home-after-song__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  margin: 0 0 8px;
  min-width: 0;
}

.home-after-song__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.home-after-song__dot {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.25;
}

.home-after-song__artist {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.home-after-song__quote {
  margin: 0;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-secondary);
}

.home-after-song__quote-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.home-after-song__quote-wrap .home-after-song__quote {
  flex: 1;
  min-width: 0;
}

.home-after-song__tap-indicator {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.55;
  line-height: 1.1;
  padding-bottom: 2px;
  white-space: nowrap;
}

/* Letter-follow shimmer: post-event song quote + pre-event countdown headline. */
.home-after-song__quote.sws-quote-shimmer {
  /* Base appearance stays identical; the shimmering gradient is clipped to text. */
  --sws-shimmer-base: var(--text-secondary);
  color: var(--sws-shimmer-base);
}

.home-headline.sws-quote-shimmer {
  --sws-shimmer-base: var(--text-primary);
  color: var(--sws-shimmer-base);
}

@supports (-webkit-background-clip: text) {
  .home-after-song__quote.sws-quote-shimmer,
  .home-headline.sws-quote-shimmer {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;

    /* Base -> highlight peak -> base. */
    background-image: linear-gradient(
      90deg,
      var(--sws-shimmer-base) 0%,
      var(--sws-shimmer-base) 38%,
      rgba(30, 90, 180, 0.72) 48%,
      rgba(70, 150, 255, 0.95) 53%,
      rgba(30, 90, 180, 0.72) 58%,
      var(--sws-shimmer-base) 100%
    );
    background-size: 240% 100%;
    background-repeat: repeat-x;
    background-position: 120% 0%;

    animation: swsQuoteShimmer 4.4s linear infinite;
    will-change: background-position;
  }

  @keyframes swsQuoteShimmer {
    /* 3.2s shimmer sweep + 1.2s rest (~72.7% + ~27.3%). */
    0% {
      background-position: 120% 0%;
    }
    72.7% {
      background-position: -20% 0%;
    }
    /* Bring it back to the same base state before the next loop. */
    80% {
      background-position: 120% 0%;
    }
    100% {
      background-position: 120% 0%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-after-song__quote.sws-quote-shimmer,
  .home-headline.sws-quote-shimmer {
    animation: none !important;
    background-image: none !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--sws-shimmer-base) !important;
    color: var(--sws-shimmer-base) !important;
  }
}

.home-after-song__note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--text-muted);
  margin-top: 4px;
}

.home-after-song__note .home-after-stat__icon,
.home-after-song__note .nav-icon__svg {
  width: 1.25rem;
  height: 1.25rem;
}

.home-after-promise__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--accent-aurora);
  margin-top: 2px;
}

.home-after-promise__icon .home-after-stat__icon,
.home-after-promise__icon .home-after-stat__icon--glyph {
  width: 1.25rem;
  height: 1.25rem;
}

.home-after-promise {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.home-after-promise__body {
  flex: 1;
  min-width: 0;
}

.home-after-promise__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.home-after-promise__text--muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.home-after-promise__btn {
  flex-shrink: 0;
  align-self: center;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-lift);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-after-promise__btn:active {
  background: var(--df-line);
}

.home-after-promise-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
}

.home-after-promise-copy {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.home-after-memory {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-md);
  min-height: 210px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border: 1px solid var(--df-line);
}

/* Bleed + cover so the map paints every pixel of the box on mobile and desktop. */
.home-after-memory__media {
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  z-index: 0;
  width: auto;
  height: auto;
  background-color: var(--bg-primary);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transform: scale(1.06);
  transform-origin: center center;
  pointer-events: none;
}

.home-after-memory__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.home-after-memory__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.home-after-memory__tagline {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

.home-after-memory__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #0a0c12;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.home-after-memory__btn:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.home-promise-sheet {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.home-promise-sheet[hidden] {
  display: none !important;
}

.home-promise-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.home-promise-sheet__panel {
  position: relative;
  width: min(100%, 480px);
  margin: 0 12px calc(var(--nav-height) + 12px);
  padding: 28px 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 20, 32, 0.98), rgba(8, 10, 18, 0.98));
  border: 1px solid rgba(201, 169, 98, 0.2);
  box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.45);
}

.home-promise-sheet__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.home-promise-sheet__label {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.home-promise-sheet__title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.home-promise-sheet__text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .home-after-hero__confetti__piece {
    display: none;
  }

  .home-after-memory__btn:active {
    transform: none;
  }
}

@media (max-width: 400px) {
  .home-after-promise {
    flex-wrap: wrap;
  }

  .home-after-promise__btn {
    width: 100%;
    margin-top: 4px;
  }

  .home-after-stat__value {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .home-logo {
    width: min(200px, 50vw);
    margin-bottom: 20px;
  }

  .home-headline {
    font-size: 1.35rem;
    margin-bottom: 20px;
  }

  .countdown-hero {
    margin-bottom: 20px;
  }

  /* Single unified box — all units on one line */
  .countdown-hero__grid {
    display: flex;
    flex-direction: row;
    gap: 0;
    background: rgba(6, 8, 14, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 6px;
    backdrop-filter: blur(24px);
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .countdown-hero__unit {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0 4px;
    box-shadow: none;
    backdrop-filter: none;
  }

  .countdown-hero__unit:not(:last-child) {
    border-right: 1px solid var(--df-line);
  }

  .countdown-hero__value {
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
  }

  .countdown-hero__label {
    margin-top: 6px;
    font-size: 0.45rem;
    letter-spacing: 0.1em;
  }

  .home-song {
    margin-bottom: 28px;
  }

  .pledged-actions {
    min-height: 48px;
    margin-bottom: 12px;
  }

  .pledged-actions__btn {
    min-height: 48px;
    padding: 10px 4px;
  }

  .pledged-actions__btn .btn-icon__svg {
    width: 20px;
    height: 20px;
  }

  .pledged-actions__sep {
    margin: 10px 0;
  }

  .secondary-actions {
    gap: 12px;
  }

  .btn-icon {
    width: 44px;
    height: 44px;
  }

  .btn-icon__svg {
    width: 18px;
    height: 18px;
  }
}

/* Home skeleton — mirrors countdown layout, shown briefly until data is ready */
.home-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  pointer-events: none;
}

.home-skel {
  display: block;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--surface-lift) 0%,
    var(--surface-lift) 50%,
    var(--surface-lift) 100%
  );
  background-size: 200% 100%;
  animation: homeSkelShimmer 1.1s ease-in-out infinite;
}

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

.home-skel--voices {
  width: 7.5rem;
  height: 0.55rem;
  /* Center the bar inside the same 40px row as Voices / lightbulb */
  margin: calc((40px - 0.55rem) / 2) auto calc((40px - 0.55rem) / 2 + 14px);
  border-radius: 999px;
}

.home-skel--logo {
  width: min(240px, 56vw);
  aspect-ratio: 1;
  max-width: 240px;
  margin: 0 auto 24px;
  border-radius: 28px;
}

.home-skel--headline {
  width: min(18rem, 78%);
  height: 1.35rem;
  margin: 0 auto 32px;
}

.home-skel-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 28px;
}

.home-skel--unit {
  height: 5.4rem;
  border-radius: var(--radius-md, 12px);
}

.home-skel--meta {
  width: min(14rem, 70%);
  height: 0.85rem;
  margin: 0 auto 12px;
}

.home-skel--song {
  width: min(11rem, 55%);
  height: 0.85rem;
  margin: 0 auto 36px;
}

.home-skel--planet {
  width: 100%;
  aspect-ratio: 1015 / 1030;
  border-radius: 0;
}

.home-skel--after-logo {
  width: min(112px, 30vw);
  aspect-ratio: 1;
  margin: 0 auto 10px;
  border-radius: 20px;
}

.home-skel--after-title {
  width: min(10rem, 50%);
  height: 2rem;
  margin: 0 auto 10px;
}

.home-skel--after-msg {
  width: min(22rem, 88%);
  height: 2.6rem;
  margin: 0 auto;
}

.home-skel--after-stats {
  height: 60px;
  border-radius: var(--radius-md);
  margin-top: -8px;
}

.home-skel--after-memory {
  height: 160px;
  border-radius: var(--radius-md);
}

.home-after-stat-skel {
  display: block;
  width: 3.2rem;
  height: 1.35rem;
  margin: 0 auto;
  border-radius: 6px;
}

.home-skel--cta {
  width: 100%;
  max-width: 320px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md, 12px);
}

.home-skel-actions {
  display: none;
}

.home-skel--icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

@media (max-width: 480px) {
  .home-skel--logo {
    width: min(200px, 50vw);
    margin-bottom: 20px;
  }

  .home-skel--headline {
    margin-bottom: 20px;
  }

  .home-skel-countdown {
    gap: 0;
    background: rgba(6, 8, 14, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md, 12px);
    padding: 14px 6px;
    margin-bottom: 20px;
  }

  .home-skel--unit {
    height: 3.4rem;
    background: linear-gradient(
      90deg,
      var(--surface-lift-mid) 0%,
      var(--df-line) 50%,
      var(--surface-lift-mid) 100%
    );
    background-size: 200% 100%;
    animation: homeSkelShimmer 1.1s ease-in-out infinite;
    border-radius: 6px;
    margin: 0 4px;
  }

  .home-skel--song {
    margin-bottom: 28px;
  }

  .home-skel--icon {
    width: 44px;
    height: 44px;
  }
}
