/* ===== SyncOut - Custom Styles ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0b1a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a855f7, #06b6d4);
  border-radius: 999px;
}

/* ===== Animated Gradient Background ===== */
.hero-gradient-bg {
  background: linear-gradient(135deg, #0d0b1a 0%, #1a0e2e 25%, #0d1b2a 50%, #1a0e2e 75%, #0d0b1a 100%);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

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

/* ===== Glassmorphism Card ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  box-shadow:
    0 8px 32px rgba(168, 85, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card-hover:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 16px 48px rgba(168, 85, 247, 0.25),
    0 0 24px rgba(6, 182, 212, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
}

/* ===== Glassmorphism Navbar ===== */
.glass-nav {
  background: rgba(13, 11, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
}
.glass-nav.scrolled {
  background: rgba(13, 11, 26, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, #c084fc, #22d3ee, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #f472b6, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Neon Glow Effects ===== */
.neon-border {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
}
.neon-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #a855f7, #06b6d4, #f472b6, #a855f7);
  background-size: 300% 300%;
  animation: borderGlow 4s ease infinite;
  border-radius: 1.25rem;
  z-index: -1;
}
.neon-border::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #0d0b1a;
  border-radius: calc(1.25rem - 2px);
  z-index: -1;
}

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

/* ===== Floating Particles ===== */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatUp linear infinite;
  opacity: 0;
}

@keyframes floatUp {
  0%   { transform: translateY(0) scale(0); opacity: 0; }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.3; }
  100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* ===== Image hover animation ===== */
.hero-image-wrapper {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-image-wrapper:hover {
  transform: translateY(-8px) rotate(1deg);
}
.hero-image-wrapper:hover .hero-img-glow {
  opacity: 0.6;
}

.hero-img-glow {
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(6, 182, 212, 0.4));
  border-radius: 1.5rem;
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

/* ===== Entrance Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.15s; }
.fade-up-delay-2 { transition-delay: 0.3s; }
.fade-up-delay-3 { transition-delay: 0.45s; }

/* ===== Mobile Menu ===== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}

/* ===== Decorative Blobs ===== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

/* ===== Section placeholder ===== */
.section-placeholder {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Pulse dot for nav links ===== */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #06b6d4);
  border-radius: 999px;
  transition: transform 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ===== Story Gallery — Masonry Grid ===== */
.gallery-masonry {
  columns: 3;
  column-gap: 1.25rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
}
.gallery-tall .gallery-img-placeholder {
  height: 320px;
}

/* Responsive masonry */
@media (max-width: 1023px) {
  .gallery-masonry {
    columns: 2;
  }
}
@media (max-width: 639px) {
  .gallery-masonry {
    columns: 1;
  }
}

/* Gallery image placeholders — gradient backgrounds */
.gallery-img-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem 1.25rem 0 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-img-placeholder {
  transform: scale(1.03);
}

.gallery-img-placeholder-1 {
  background: linear-gradient(135deg, #1a0e2e 0%, #2d1b69 50%, #0d1b2a 100%);
}
.gallery-img-placeholder-2 {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a0e2e 50%, #2d1b69 100%);
}
.gallery-img-placeholder-3 {
  background: linear-gradient(135deg, #1a0533 0%, #0d1b2a 50%, #1a0e2e 100%);
}
.gallery-img-placeholder-4 {
  background: linear-gradient(135deg, #0d2b3a 0%, #1a0e2e 50%, #0d0b1a 100%);
}
.gallery-img-placeholder-5 {
  background: linear-gradient(135deg, #1a0e2e 0%, #1a0533 50%, #2d1b69 100%);
}
.gallery-img-placeholder-6 {
  background: linear-gradient(135deg, #0d0b1a 0%, #0d2b3a 50%, #1a0e2e 100%);
}

.gallery-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.5;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.5));
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .gallery-placeholder-icon {
  opacity: 0.8;
  transform: scale(1.15);
}

.gallery-caption {
  padding: 1rem 1.25rem;
}
.gallery-caption p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  font-style: italic;
}
.gallery-caption em {
  color: #c084fc;
  font-style: italic;
}

/* ===== Tree Hole — Form Inputs ===== */
.tree-hole-input {
  transition: all 0.3s ease;
}
.tree-hole-input:focus {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

/* ===== Tree Hole — Floating message animation ===== */
.tree-msg-float {
  opacity: 0;
  transform: translateY(20px);
  animation: msgFadeIn 0.8s ease forwards;
}

@keyframes msgFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tree-msg {
  transition: all 0.3s ease;
  position: relative;
}
.tree-msg:hover {
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.1);
  transform: translateX(4px);
}

/* Messages wall - scrollable with fade */
.tree-hole-messages-wall {
  max-height: 520px;
  overflow-y: auto;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  padding-right: 0.5rem;
}
.tree-hole-messages-wall::-webkit-scrollbar {
  width: 4px;
}
.tree-hole-messages-wall::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 999px;
}

/* ===== Toast Notification ===== */
.void-toast {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.void-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.void-toast .glass-card {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow:
    0 16px 48px rgba(168, 85, 247, 0.2),
    0 0 24px rgba(6, 182, 212, 0.1);
}

/* ===== Offline Oasis — Rule Banner ===== */
.oasis-rule-banner {
  border-color: rgba(244, 114, 182, 0.2);
  position: relative;
}
.oasis-rule-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== Offline Oasis — Timeline ===== */
.oasis-timeline {
  position: relative;
}
.oasis-event {
  position: relative;
}

/* ===== Offline Oasis — Image Placeholders ===== */
.oasis-img-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}
.oasis-img-card:hover .oasis-img-placeholder {
  transform: scale(1.03);
}

.oasis-img-1 {
  height: 250px;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a0e2e 40%, #2d1b69 100%);
}
.oasis-img-2 {
  height: 180px;
  background: linear-gradient(135deg, #1a0533 0%, #0d2b3a 50%, #1a0e2e 100%);
}
.oasis-img-3 {
  height: 180px;
  background: linear-gradient(135deg, #0d0b1a 0%, #1a0e2e 50%, #0d2b3a 100%);
}
.oasis-img-4 {
  height: 280px;
  background: linear-gradient(135deg, #1a0e2e 0%, #2d1b69 40%, #0d1b2a 100%);
}

.oasis-img-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== References — Cards ===== */
.ref-card {
  transition: all 0.3s ease;
}
.ref-card:hover {
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateX(4px);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.08);
}

/* ===== Hero Flip Cards ===== */
.flip-card {
  perspective: 1200px;
  cursor: grab;
  user-select: none;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s;
}
.flip-card.returning {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.flip-card.dragging {
  cursor: grabbing;
  z-index: 50 !important;
  transition: none;
}
.flip-card.dragging .flip-card-inner {
  box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3), 0 0 40px rgba(6, 182, 212, 0.15);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1.25rem;
}
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 1.25rem;
  overflow: hidden;
}
.flip-card-front {
  z-index: 2;
}
.flip-card-back {
  transform: rotateY(180deg);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1a0e2e 0%, #0d1b2a 40%, #2d1b69 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.flip-card-back .concept-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.6));
}
.flip-card-back .concept-title {
  font-size: 1.125rem;
  font-weight: 700;
  background: linear-gradient(135deg, #c084fc, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.flip-card-back .concept-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}
.flip-card-back .concept-source {
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}

/* Main flip card dimensions */
.flip-card-main {
  aspect-ratio: 4 / 3;
}
.flip-card-secondary {
  aspect-ratio: 1 / 1;
}

/* Glow hint on hover */
.flip-card:not(.dragging):hover .flip-card-inner {
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.2), 0 0 20px rgba(6, 182, 212, 0.1);
}
.flip-card:not(.dragging):hover::after {
  content: 'Click to flip · Drag to move';
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  pointer-events: none;
  animation: hintFadeIn 0.3s ease;
}
@keyframes hintFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== Understanding Section — Stat Cards ===== */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 16px 48px rgba(168, 85, 247, 0.15);
}
.stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.4));
}
.stat-card .stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #c084fc, #22d3ee, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.stat-card .stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}
.stat-card .stat-source {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Understanding content paragraphs */
.understanding-content p {
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}
.understanding-content strong {
  color: rgba(255, 255, 255, 0.8);
}
.understanding-content em {
  color: #c084fc;
  font-style: italic;
}

/* ===== Digital Facade Cards ===== */
.facade-card {
  perspective: 1000px;
  cursor: pointer;
}
.facade-card-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.facade-card:hover .facade-card-inner,
.facade-card.revealed .facade-card-inner {
  transform: rotateY(180deg);
}

.facade-card-front,
.facade-card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 1.25rem;
  overflow: hidden;
}
.facade-card-front {
  position: relative;
  z-index: 2;
}
.facade-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-color: rgba(244, 114, 182, 0.25);
  background: linear-gradient(160deg, rgba(26, 14, 46, 0.95), rgba(13, 11, 26, 0.98));
}

/* Glitch flicker on card reveal */
.facade-card:hover .facade-card-inner::before,
.facade-card.revealed .facade-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    transparent 40%,
    rgba(168, 85, 247, 0.08) 41%,
    transparent 42%,
    transparent 58%,
    rgba(6, 182, 212, 0.06) 59%,
    transparent 60%
  );
  background-size: 100% 6px;
  animation: scanlines 0.3s linear;
  pointer-events: none;
  z-index: 50;
  border-radius: 1.25rem;
}
@keyframes scanlines {
  0%   { opacity: 1; }
  50%  { opacity: 0.5; }
  100% { opacity: 0; }
}

/* Front — Social Post UI */
.facade-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
}
.facade-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.facade-avatar-1 { background: linear-gradient(135deg, #a855f7, #06b6d4); }
.facade-avatar-2 { background: linear-gradient(135deg, #f472b6, #a855f7); }
.facade-avatar-3 { background: linear-gradient(135deg, #06b6d4, #818cf8); }
.facade-avatar-4 { background: linear-gradient(135deg, #c084fc, #f472b6); }
.facade-avatar-5 { background: linear-gradient(135deg, #f59e0b, #f472b6); }
.facade-avatar-6 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.facade-avatar-7 { background: linear-gradient(135deg, #818cf8, #f472b6); }
.facade-avatar-8 { background: linear-gradient(135deg, #06b6d4, #c084fc); }

/* Image source attribution */
.img-source {
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.18);
  font-style: italic;
  margin-top: 0.25rem;
  text-align: right;
}

.facade-username {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.facade-timestamp {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.3);
}

.image-placeholder {
  border-radius: 0;
  position: relative;
}

.facade-caption {
  padding: 0.75rem 1rem 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-style: italic;
}

.facade-stats {
  display: flex;
  gap: 0.75rem;
  padding: 0 1rem 0.5rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Ironic Like Button */
.facade-like-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: calc(100% - 2rem);
  margin: 0.5rem 1rem 0.875rem;
  padding: 0.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  z-index: 5;
}
.facade-like-btn:hover {
  border-color: rgba(244, 114, 182, 0.3);
  color: #f472b6;
  background: rgba(244, 114, 182, 0.06);
}

.facade-like-icon {
  font-size: 1rem;
  transition: all 0.2s ease;
}
.facade-like-text {
  transition: all 0.3s ease;
}

/* Like button — glitch active state */
.facade-like-btn.liked {
  border-color: rgba(244, 114, 182, 0.4);
  background: rgba(244, 114, 182, 0.08);
}
.facade-like-btn.liked .facade-like-icon {
  animation: heartGlitch 0.6s ease forwards;
}
.facade-like-btn.liked .facade-like-text {
  animation: textGlitchReveal 0.5s ease forwards;
}

@keyframes heartGlitch {
  0%   { transform: scale(1); filter: none; }
  15%  { transform: scale(1.4) rotate(5deg); filter: hue-rotate(90deg) brightness(2); color: #f472b6; }
  30%  { transform: scale(0.8) rotate(-8deg) skewX(10deg); filter: hue-rotate(-60deg); opacity: 0.6; }
  45%  { transform: scale(1.6) rotate(3deg); filter: saturate(3) brightness(1.5); color: #a855f7; }
  60%  { transform: scale(0.9) skewX(-5deg); filter: blur(1px); }
  80%  { transform: scale(1.2); filter: none; color: #f472b6; }
  100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(244,114,182,0.5)); color: #f472b6; }
}

@keyframes textGlitchReveal {
  0%   { opacity: 1; }
  20%  { opacity: 0; transform: translateX(-4px); filter: blur(2px); }
  40%  { opacity: 0; }
  60%  { opacity: 0.6; transform: translateX(2px); filter: blur(1px); }
  100% { opacity: 1; transform: translateX(0); filter: none; }
}

/* Flash overlay text on like */
.facade-like-btn .facade-flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(244, 114, 182, 0.8);
  background: rgba(13, 11, 26, 0.85);
  border-radius: 0.75rem;
  animation: flashIn 1.8s ease forwards;
  pointer-events: none;
}
@keyframes flashIn {
  0%   { opacity: 0; transform: scale(0.9); }
  15%  { opacity: 1; transform: scale(1); }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Back — Truth side */
.facade-truth-icon {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 12px rgba(244, 114, 182, 0.5));
}
.facade-truth-title {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f472b6, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.facade-truth-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  text-align: left;
  width: 100%;
}
.facade-truth-list li {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.5;
}
.facade-truth-list li:last-child {
  border-bottom: none;
}
.facade-truth-list strong {
  color: #f472b6;
}
.facade-truth-quote {
  font-size: 0.6875rem;
  color: rgba(192, 132, 252, 0.7);
  font-style: italic;
  line-height: 1.5;
  margin-top: auto;
}

/* ===== Emoji Canvas & Stories ===== */
.emoji-story-input {
  transition: all 0.3s ease;
}
.emoji-story-input:focus {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.1);
}
.emoji-story-input.input-error {
  border-color: rgba(244, 114, 182, 0.5) !important;
  animation: inputShake 0.4s ease;
}
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Neon border hover for emoji cards */
.neon-border-hover {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-color: rgba(255, 255, 255, 0.08);
}
.neon-border-hover:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow:
    0 0 20px rgba(168, 85, 247, 0.12),
    0 0 40px rgba(6, 182, 212, 0.06),
    0 8px 32px rgba(168, 85, 247, 0.1);
  transform: translateY(-4px);
}
.neon-border-hover::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.neon-border-hover:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, #a855f7, #06b6d4, #f472b6, #a855f7);
  background-size: 300% 300%;
  animation: borderGlow 4s ease infinite;
}

/* Emoji story card content */
.emoji-story-card {
  cursor: default;
}
.emoji-display {
  font-size: 2.5rem;
  letter-spacing: 0.15em;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.emoji-story-card:hover .emoji-display {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 16px rgba(168, 85, 247, 0.35));
}
.emoji-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.emoji-interpretation {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.5rem;
  transition: color 0.3s ease;
}
.emoji-story-card:hover .emoji-interpretation {
  color: rgba(192, 132, 252, 0.6);
}

/* New card entrance */
.emoji-card-enter {
  animation: cardSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Void CTA (Tree Hole → Offline Oasis) ===== */
.void-cta {
  border-color: rgba(6, 182, 212, 0.2);
  background: linear-gradient(160deg, rgba(6, 182, 212, 0.06), rgba(168, 85, 247, 0.06));
}
.void-cta.show {
  display: block !important;
  animation: ctaReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes ctaReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.void-cta-text {
  color: rgba(255, 255, 255, 0.75);
}
.void-cta-highlight {
  background: linear-gradient(135deg, #06b6d4, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.4));
}

/* Pulsing glow on button */
.void-cta-pulse {
  animation: ctaPulse 2s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.2), 0 0 20px rgba(168, 85, 247, 0.1); }
  50%      { box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 0 0 40px rgba(168, 85, 247, 0.2), 0 0 60px rgba(6, 182, 212, 0.1); }
}

/* ===== Interview Cards ===== */
.interview-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid rgba(168, 85, 247, 0.4);
}
.interview-card:hover {
  transform: translateY(-4px);
  border-left-color: rgba(168, 85, 247, 0.8);
  box-shadow:
    0 16px 48px rgba(168, 85, 247, 0.12),
    0 0 24px rgba(6, 182, 212, 0.06);
}
.interview-card:nth-child(2) {
  border-left-color: rgba(244, 114, 182, 0.4);
}
.interview-card:nth-child(2):hover {
  border-left-color: rgba(244, 114, 182, 0.8);
}
.interview-card:nth-child(3) {
  border-left-color: rgba(6, 182, 212, 0.4);
}
.interview-card:nth-child(3):hover {
  border-left-color: rgba(6, 182, 212, 0.8);
}
.interview-card:nth-child(4) {
  border-left-color: rgba(129, 140, 248, 0.4);
}
.interview-card:nth-child(4):hover {
  border-left-color: rgba(129, 140, 248, 0.8);
}
.interview-card:nth-child(5) {
  border-left-color: rgba(192, 132, 252, 0.4);
}
.interview-card:nth-child(5):hover {
  border-left-color: rgba(192, 132, 252, 0.8);
}

/* Question card entrance animation */
.question-card-enter {
  animation: questionSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes questionSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Reply button */
.reply-btn:hover {
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

