/* ==========================================================================
   TakeAMindbreak.com - Botanical Sanctuary Design System
   Pure CSS3 with CSS Variables, Light/Dark Modes & Zero-CLS Ad Placeholders
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300..900;1,300..900&family=Outfit:wght@300..800&display=swap');


/* --- 1. DESIGN TOKENS & CSS VARIABLES --- */
:root {
  /* Botanical Palette - Light Theme */
  --bg-surface: #EEF4F0;         /* Crisp Dew Green */
  --bg-surface-rgb: 238, 244, 240;
  --bg-card: #FAF9F5;            /* Warm Morning Cream */
  --bg-card-rgb: 250, 249, 245;
  --bg-card-hover: #FFFFFF;
  --bg-subtle: #E2ECE5;
  
  --accent-primary: #6B9E82;     /* Fresh Mint Leaf */
  --accent-primary-rgb: 107, 158, 130;
  --accent-primary-hover: #5A8C71;
  --accent-primary-light: rgba(107, 158, 130, 0.14);

  --accent-secondary: #E2B86B;   /* Golden Sunbeam */
  --accent-secondary-hover: #D4A757;
  --accent-secondary-light: rgba(226, 184, 107, 0.15);

  --accent-sage: #84A98C;
  --accent-terracotta: #D4A373;
  --accent-calm-blue: #7CA982;

  --text-main: #1C2D24;          /* Deep Moss Slate */
  --text-main-rgb: 28, 45, 36;
  --text-muted: #52665B;
  --text-light: #7E9487;

  --border-soft: rgba(28, 45, 36, 0.08);
  --border-subtle: rgba(28, 45, 36, 0.04);
  --border-focus: rgba(107, 158, 130, 0.5);

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(28, 45, 36, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 45, 36, 0.06);
  --shadow-lg: 0 16px 36px rgba(28, 45, 36, 0.08);
  --shadow-hover: 0 14px 30px rgba(107, 158, 130, 0.15);

  /* Geometry & Physics */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --ease-elastic: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.35s var(--ease-elastic);
  --transition-slow: 0.6s var(--ease-elastic);

  /* Layout & Ad Container Heights - Fluid Full Width System */
  --max-width-content: 100%;
  --header-height: 80px;
  --mobile-ad-height: 54px;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-surface: #121D17;         /* Deep Spruce Night */
  --bg-surface-rgb: 18, 29, 23;
  --bg-card: #1B2A22;            /* Deep Forest Pine */
  --bg-card-rgb: 27, 42, 34;
  --bg-card-hover: #22352B;
  --bg-subtle: #16241D;

  --accent-primary: #7FB397;     /* Brighter Mint for dark contrast */
  --accent-primary-hover: #91C4A9;
  --accent-primary-light: rgba(127, 179, 151, 0.18);

  --accent-secondary: #E9C279;
  --accent-secondary-hover: #F2D292;
  --accent-secondary-light: rgba(233, 194, 121, 0.18);

  --text-main: #E0EBE4;          /* Crisp Morning Mist */
  --text-main-rgb: 224, 235, 228;
  --text-muted: #9EBAAB;
  --text-light: #6C8578;

  --border-soft: rgba(224, 235, 228, 0.1);
  --border-subtle: rgba(224, 235, 228, 0.05);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.4);
}

/* Base Reset & Box-Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-surface);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Canvas Layer */
.ambient-bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-primary-light) 0%, rgba(107, 158, 130, 0) 70%);
}

.blob-2 {
  bottom: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-secondary-light) 0%, rgba(226, 184, 107, 0) 70%);
  animation-duration: 25s;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- 2. HEADER & NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(var(--bg-surface-rgb), 0.85);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.header-container {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 3.5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .header-container {
    padding: 1rem clamp(2.5rem, 4.5vw, 5rem);
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.5rem 1rem;
    gap: 0.75rem;
  }
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary-light);
  padding: 6px;
  border-radius: 10px;
  transition: transform var(--transition-normal);
}

.brand-link:hover .brand-icon {
  transform: rotate(12deg) scale(1.08);
}

.brand-tagline-micro {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: none;
  font-weight: 500;
}

@media (min-width: 768px) {
  .brand-tagline-micro {
    display: block;
  }
}

/* Nav Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 0.95rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--accent-primary-light);
}

.nav-link.active {
  color: #FFFFFF;
  background-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3);
}

/* Controls (Theme Toggle & Mobile Menu Trigger) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.05);
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  padding: 1rem 1.25rem;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer .nav-link {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

/* --- 3. MAIN CONTENT LAYOUT --- */
.main-wrapper {
  flex: 1;
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 3.5vw, 4rem) 5rem clamp(1.25rem, 3.5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  z-index: 10;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .main-wrapper {
    padding: 1.15rem clamp(1.5rem, 3.5vw, 3.5rem) 4.5rem clamp(1.5rem, 3.5vw, 3.5rem);
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    padding: 0.85rem 1rem 4.5rem 1rem;
    gap: 1.25rem;
  }
}

/* Hero Section */
.sanctuary-hero {
  text-align: center;
  max-width: min(92%, 1080px);
  margin: 0.5rem auto 0.25rem auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .sanctuary-hero {
    margin: 1.5rem auto 1rem auto;
  }
}

@media (max-width: 768px) {
  .sanctuary-hero {
    margin: 0 auto 0.25rem auto;
    max-width: 100%;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

[data-theme="dark"] .hero-pill {
  color: var(--accent-primary);
}

.hero-title {
  font-size: clamp(1.6rem, 4.5vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    white-space: normal;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

.hero-title-highlight {
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
}

.hero-title-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--accent-secondary-light);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
  max-width: 660px;
  margin: 0 auto 1.25rem auto;
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.4;
    margin: 0 auto 0.75rem auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .hero-actions {
    gap: 0.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  text-align: center;
  line-height: 1;
}

@media (max-width: 768px) {
  .btn {
    padding: 0.55rem 1.05rem;
    font-size: 0.85rem;
  }
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--accent-primary-rgb), 0.45);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- 4. ACTIVITY GRID & CARDS --- */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.view-all-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform var(--transition-fast);
}

.view-all-link:hover {
  transform: translateX(4px);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .activities-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .activities-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.activity-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast), background-color var(--transition-fast);
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-primary);
  background-color: var(--bg-card-hover);
}

/* Stretched Full-Card Click Target */
.card-click-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}

/* Card Thumbnail & Visual Header */
.card-thumb-wrap {
  position: relative;
  z-index: 3;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.15rem;
  background-color: var(--bg-card);
  border: 1px solid rgba(var(--border-subtle-rgb, 107, 158, 130), 0.15);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.08);
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  -webkit-mask-image: radial-gradient(ellipse 96% 92% at 50% 48%, #000 68%, rgba(0, 0, 0, 0.6) 84%, transparent 100%),
                      linear-gradient(to bottom, #000 65%, transparent 100%);
  mask-image: radial-gradient(ellipse 96% 92% at 50% 48%, #000 68%, rgba(0, 0, 0, 0.6) 84%, transparent 100%),
              linear-gradient(to bottom, #000 65%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.activity-card:hover .card-thumb-img {
  transform: scale(1.05);
}

.card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(var(--bg-card-rgb, 250, 249, 245), 0.35) 90%),
              linear-gradient(180deg, rgba(18, 29, 23, 0.22) 0%, transparent 40%, rgba(var(--bg-card-rgb, 250, 249, 245), 0.75) 100%);
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

[data-theme="dark"] .card-thumb-overlay {
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(27, 42, 34, 0.5) 90%),
              linear-gradient(180deg, rgba(18, 29, 23, 0.3) 0%, transparent 40%, rgba(27, 42, 34, 0.85) 100%);
}

.card-thumb-wrap .card-icon-badge {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  background: rgba(250, 249, 245, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .card-thumb-wrap .card-icon-badge {
  background: rgba(27, 42, 34, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-primary);
}

.card-thumb-wrap .card-top-tags {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 2.35rem; /* Room for .favorite-btn */
}

.card-thumb-wrap .card-pill-category,
.card-thumb-wrap .card-pill-duration {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(18, 29, 23, 0.72);
  color: #FAF9F5;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

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

.card-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-primary-light);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-family: 'Outfit', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.card-emoji {
  display: inline-block;
  line-height: 1;
}

.activity-card:hover .card-icon-badge {
  transform: scale(1.1) rotate(5deg);
}

.card-pill-duration {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.card-title a {
  color: inherit;
  display: block;
  transition: color var(--transition-fast);
}

.card-title a:hover {
  color: var(--accent-primary);
}

.act-svg-icon {
  display: block;
  stroke: currentColor;
  transition: transform var(--transition-normal);
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.card-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-cta-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition-fast);
}

.activity-card:hover .card-cta-btn {
  color: var(--accent-primary);
}

/* --- 5. CLS-RESILIENT ADSENSE PLACEHOLDERS --- */
/* Layout containment and fixed aspect ratios prevent Cumulative Layout Shift */

.ad-placeholder-container {
  background: var(--bg-card);
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  contain: layout;
  z-index: 10;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.ad-badge-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.ad-notice-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* In-Feed Banner (Responsive 728x90 or full width) */
.ad-infeed-banner {
  width: 100%;
  min-height: 90px;
  padding: 0.75rem;
}

/* Desktop Sidebar 300x250 Card */
.ad-desktop-rectangle {
  width: 100%;
  max-width: 300px;
  min-height: 250px;
  height: auto;
  box-sizing: border-box;
  padding: 1rem;
  margin: 0.75rem auto;
  overflow: hidden;
}

/* Mobile Sticky Bottom Ad Banner */
.mobile-sticky-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: var(--mobile-ad-height);
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 1rem;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.mobile-sticky-ad.collapsed {
  transform: translateY(100%);
  pointer-events: none;
  opacity: 0;
}

.mobile-ad-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.mobile-ad-tag {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  text-transform: uppercase;
}

.mobile-ad-msg {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.ad-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ad-close-btn:hover {
  background: var(--text-main);
  color: var(--bg-card);
}

@media (min-width: 992px) {
  .mobile-sticky-ad {
    display: none !important;
  }
}

.ambient-quick-strip {
  background: linear-gradient(135deg, rgba(var(--bg-card-rgb), 0.9), rgba(var(--bg-card-rgb), 0.6));
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .ambient-quick-strip {
    padding: 1rem 0.85rem;
    border-radius: var(--radius-lg);
    gap: 0.75rem;
  }
}

.quick-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .quick-strip-header {
    gap: 0.25rem;
  }
  .quick-strip-header .section-title {
    font-size: 1.1rem !important;
  }
  .quick-strip-header .section-subtitle {
    font-size: 0.8rem;
  }
}

.soundscapes-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .soundscapes-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .soundscapes-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
  }
}

.sound-quick-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .sound-quick-toggle {
    padding: 0.5rem 0.3rem;
    font-size: 0.74rem;
    gap: 0.25rem;
    border-radius: var(--radius-sm);
  }
}

.sound-quick-toggle:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.sound-quick-toggle.playing {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(var(--accent-primary-rgb), 0.35);
}

.sound-quick-toggle.playing .sound-quick-icon {
  animation: pulseBeat 1.5s infinite ease-in-out;
}

@keyframes pulseBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --- 7. FOOTER --- */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  padding: 3rem 1.25rem 2rem 1.25rem;
  margin-top: auto;
  z-index: 20;
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 3.5rem clamp(2.5rem, 4.5vw, 5rem) 2.5rem clamp(2.5rem, 4.5vw, 5rem);
  }
}

.footer-container {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-sizing: border-box;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-brand h4 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links-col h5 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

.footer-disclaimer {
  max-width: 600px;
  line-height: 1.45;
}

/* --- 8. UTILITIES --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.badge-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-mint {
  background: var(--accent-primary-light);
  color: var(--accent-primary);
}

.badge-gold {
  background: var(--accent-secondary-light);
  color: var(--accent-secondary);
}

/* ==========================================================================
   9. TACTILE MICRO-INTERACTIONS & SENSORY PHYSICS
   ========================================================================== */

/* --- Feature 2: Tactile "Dew Drop" Button System --- */
@keyframes dewDropMorph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
  }
}

.dew-drop-btn,
.btn,
.theme-toggle-btn,
.audio-toggle-btn {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-radius 0.4s ease,
              box-shadow 0.3s ease,
              background-color 0.2s ease;
  will-change: transform, border-radius;
}

/* Subtle continuous liquid tension on primary buttons & toggles */
.btn-primary,
.theme-toggle-btn,
.audio-toggle-btn {
  animation: dewDropMorph 6s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* Squish & Elastic Spring Physics */
.dew-drop-btn:active,
.dew-drop-btn.is-squished {
  transform: scale(0.92, 0.88) !important;
  transition: transform 0.08s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* --- Feature 3: Elastic 3D "Moss Cushion" Container Cards --- */
.activity-card,
.sound-track-card,
.moss-cushion {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(850px) rotateX(0deg) rotateY(0deg) translateZ(0px) scale(1);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.25s ease,
              border-color 0.2s ease,
              background-color 0.2s ease;
  overflow: hidden;
  will-change: transform;
}

/* Golden Touch Glow Highlight */
.activity-card::before,
.sound-track-card::before,
.moss-cushion::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    220px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(226, 184, 107, var(--glow-opacity, 0)) 0%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.activity-card:hover,
.sound-track-card:hover,
.moss-cushion:hover {
  box-shadow: 0 16px 36px rgba(107, 158, 130, 0.18),
              0 0 20px rgba(226, 184, 107, 0.12);
  border-color: var(--accent-primary);
}

[data-theme="dark"] .activity-card:hover,
[data-theme="dark"] .sound-track-card:hover,
[data-theme="dark"] .moss-cushion:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45),
              0 0 20px rgba(233, 194, 121, 0.15);
}

/* --- Feature 4: "Breathe-Sync" Global Visual Rhythm --- */
@keyframes breatheSyncPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.breathe-sync {
  animation: breatheSyncPulse 8s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}

/* --- Header Audio Controls Button --- */
.audio-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
}

.audio-toggle-btn:hover {
  transform: rotate(-12deg) scale(1.05);
}

/* --- Feature 5: Mobile Safety & Ad Container Guardrails --- */
.ad-placeholder-container,
.ad-infeed-banner,
.ad-desktop-rectangle,
.mobile-sticky-ad,
.ad-placeholder-container * {
  transform: none !important;
  animation: none !important;
  touch-action: auto !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Solution B: Ambient Hourglass Canvas — Content & AdSense Stacking Isolation
   Guarantees floating hourglasses (z-index: -1 canvas) always render behind
   all interactive UI elements, cards, and AdSense containers.
   ───────────────────────────────────────────────────────────────────────────── */

/* Background canvas layer — strictly behind everything */
#ambientCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
}

/* Activity cards — solid opaque surface elevated above canvas */
.activity-card,
.sound-track-card,
.moss-cushion {
  position: relative;
  z-index: 10;
  background-color: var(--bg-card);
}

/* Ad containers — solid opaque, elevated, no transforms */
.ad-placeholder-container,
.ad-infeed-banner,
.ad-desktop-rectangle,
.mobile-sticky-ad {
  position: relative;
  z-index: 12;
  background-color: var(--bg-card);
  box-shadow: 0 8px 24px rgba(28, 45, 36, 0.06);
}

/* Main content wrapper — above ambient canvas(-1) & touch trail(5) */
.main-wrapper {
  position: relative;
  z-index: 6;
}

/* Site header and footer — highest fixed-layout elements */
.site-header,
.site-footer {
  position: relative;
  z-index: 20;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Touch Trail Particle Canvas — Overlay Layer (z-index: 5)
   pointer-events: none ensures swipes pass through to links, buttons & AdSense.
   ───────────────────────────────────────────────────────────────────────────── */

#touchTrailCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  pointer-events: none;
  display: block;
}

/* Ensure touch trail never causes stacking conflicts with the ambient background */
#ambientCanvas  { z-index: -1; }
#touchTrailCanvas { z-index: 5; }

/* Cards & ads always sit on top of the touch trail overlay */
.activity-card,
.sound-track-card,
.moss-cushion {
  z-index: 10;
}

.ad-placeholder-container,
.ad-infeed-banner,
.ad-desktop-rectangle,
.mobile-sticky-ad {
  z-index: 12;
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO — Sound Dropdown (Listen to Sounds ▾)
   ════════════════════════════════════════════════════════════════════ */

.sound-dropdown-wrapper {
  position: relative;
  display: inline-flex;
}

/* Chevron rotates on open */
.sound-dropdown-trigger .dropdown-chevron {
  transition: transform 0.25s var(--ease-elastic);
  flex-shrink: 0;
}
.sound-dropdown-wrapper.is-open .dropdown-chevron {
  transform: rotate(180deg);
}

/* ── Dropdown Panel ────────────────────────────────────────────────── */
.sound-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(28, 45, 36, 0.14),
              0 4px 12px rgba(28, 45, 36, 0.08);
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
  z-index: 200;
  /* Entrance animation */
  animation: dropdownReveal 0.22s var(--ease-elastic) both;
}

@keyframes dropdownReveal {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* ── Menu Items ────────────────────────────────────────────────────── */
.sound-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.sound-dropdown-item:hover,
.sound-dropdown-item:focus-visible {
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
  outline: none;
}

.sound-dropdown-item.is-active {
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
  font-weight: 700;
}

.sound-dropdown-item.is-active::before {
  content: '▶';
  font-size: 0.55rem;
  margin-right: 0.1rem;
  color: var(--accent-primary);
}

.sdrop-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Divider ───────────────────────────────────────────────────────── */
.sdrop-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 0.35rem 0.75rem;
}

/* ── More Soundscapes link ─────────────────────────────────────────── */
.sdrop-more {
  font-weight: 700;
  color: var(--accent-primary) !important;
  letter-spacing: 0.01em;
}

.sdrop-more:hover,
.sdrop-more:focus-visible {
  background-color: var(--accent-primary-light) !important;
}

/* ── Dark Mode ─────────────────────────────────────────────────────── */
[data-theme="dark"] .sound-dropdown-menu {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.50),
              0 4px 12px rgba(0, 0, 0, 0.30);
}

/* ── Mobile: full-width and centred ───────────────────────────────── */
@media (max-width: 480px) {
  .sound-dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  .sound-dropdown-wrapper,
  #btn-explore-activities {
    width: 100%;
    max-width: 280px;
  }
  .sound-dropdown-trigger {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   6. FAQ & KNOWLEDGE BASE SECTION
   ════════════════════════════════════════════════════════════════════ */

.sanctuary-faq-section {
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
}

.faq-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.faq-main-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-category-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-category-group h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary-light);
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.faq-item {
  background: rgba(var(--bg-surface-rgb), 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--border-soft);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  outline: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '＋';
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: bold;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  content: '－';
}

.faq-answer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-soft);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-answer p {
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--text-main);
  font-weight: 600;
}

.faq-answer em {
  font-style: normal;
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent-primary-light);
  border-left: 3px solid var(--accent-primary);
  border-radius: 4px;
  color: var(--text-main);
  font-size: 0.88rem;
}

/* Responsive FAQ */
@media (max-width: 768px) {
  .sanctuary-faq-section {
    padding: 2rem 1.25rem;
  }
  .faq-main-title {
    font-size: 1.5rem;
  }
  .faq-main-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
  }
  .faq-item summary {
    font-size: 0.98rem;
  }
  .faq-answer {
    font-size: 0.9rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   TEMPORAL ENGINE — 4-Phase Time-of-Day CSS Custom Properties
   Applied via .time-dawn | .time-day | .time-evening | .time-night on <html>
   ════════════════════════════════════════════════════════════════════ */

/* ── Dawn Phase (5:00 AM – 9:00 AM) ───────────────────────────────── */
html.time-dawn {
  --temporal-glow:       rgba(107, 200, 160, 0.12);
  --temporal-accent:     #5FA880;
  --temporal-gold:       #E6C575;
  --temporal-mist:       rgba(214, 237, 225, 0.6);
  --temporal-badge-bg:   rgba(95, 168, 128, 0.1);
  --temporal-badge-text: #3D7A5E;
}

/* ── Midday Phase (9:00 AM – 5:00 PM) ─────────────────────────────── */
html.time-day {
  --temporal-glow:       rgba(107, 158, 130, 0.10);
  --temporal-accent:     #6B9E82;
  --temporal-gold:       #E2B86B;
  --temporal-mist:       rgba(234, 246, 239, 0.5);
  --temporal-badge-bg:   rgba(107, 158, 130, 0.1);
  --temporal-badge-text: #4A7A61;
}

/* ── Evening / Golden Hour Phase (5:00 PM – 8:00 PM) ──────────────── */
html.time-evening {
  --temporal-glow:       rgba(232, 168, 80, 0.14);
  --temporal-accent:     #D4A373;
  --temporal-gold:       #E8A850;
  --temporal-mist:       rgba(246, 235, 215, 0.6);
  --temporal-badge-bg:   rgba(212, 163, 115, 0.12);
  --temporal-badge-text: #8C5E2A;
}
html.time-evening:not([data-theme="dark"]) {
  --bg-surface:   #F5EDE0;
  --bg-card:      #FDF7EF;
}

/* ── Late Night / Midnight Phase (8:00 PM – 5:00 AM) ──────────────── */
html.time-night {
  --temporal-glow:       rgba(226, 184, 107, 0.15);
  --temporal-accent:     #7FB397;
  --temporal-gold:       #E2B86B;
  --temporal-mist:       rgba(18, 29, 23, 0.8);
  --temporal-badge-bg:   rgba(226, 184, 107, 0.12);
  --temporal-badge-text: #C9A86B;
}
/* Night auto-enforces dark if user has no manual theme preference */
html.time-night:not([data-theme="light"]) {
  --bg-surface:   #0E1812;
  --bg-card:      #16221B;
  --bg-card-hover: #1C2B23;
  --bg-subtle:    #111A15;
  --text-main:    #DDE8E2;
  --text-muted:   #8CABA0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TEMPORAL GREETING BADGE — Hero Section Live Status Indicator
   ───────────────────────────────────────────────────────────────────────────── */

.temporal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: var(--temporal-badge-bg, rgba(107, 158, 130, 0.1));
  border: 1px solid rgba(107, 158, 130, 0.18);
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--temporal-badge-text, var(--text-muted));
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
  animation: badgeFadeSlide 0.55s var(--ease-elastic) both;
  transition: background-color 0.6s ease, border-color 0.6s ease, color 0.6s ease;
}

.temporal-badge .badge-icon { font-size: 1rem; }
.temporal-badge .badge-sep  { color: var(--text-light); opacity: 0.6; }
.temporal-badge .badge-sub  { color: var(--text-muted); font-weight: 400; font-size: 0.78rem; }

@keyframes badgeFadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .temporal-badge .badge-sep,
  .temporal-badge .badge-sub { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   TEMPORAL DROPDOWN — Header Time-of-Day Mode Selector
   ───────────────────────────────────────────────────────────────────────────── */

.temporal-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.temporal-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  background: var(--temporal-badge-bg, var(--accent-primary-light));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease,
              transform 0.2s var(--ease-elastic), box-shadow 0.2s ease;
}

.temporal-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(107, 158, 130, 0.2);
  background: var(--accent-primary-light);
}

.temporal-toggle-btn[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.temporal-toggle-btn .dropdown-chevron {
  transition: transform 0.25s var(--ease-elastic);
}

.temporal-btn-icon { font-size: 1rem; }

.temporal-btn-label {
  display: none;
}
@media (min-width: 900px) {
  .temporal-btn-label { display: inline; }
}

/* Temporal Dropdown Panel */
.temporal-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 44px rgba(28, 45, 36, 0.16), 0 4px 12px rgba(28, 45, 36, 0.08);
  padding: 0.5rem 0.4rem;
  z-index: 200;
  animation: dropdownReveal 0.22s var(--ease-elastic) both;
}

[data-theme="dark"] .temporal-dropdown-menu {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.temporal-menu-header {
  padding: 0.35rem 0.75rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.35rem;
}

.temporal-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.temporal-item:hover,
.temporal-item:focus-visible {
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
  outline: none;
}

.temporal-item.active,
.temporal-item[aria-checked="true"] {
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
  font-weight: 600;
}

.t-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 1.4rem;
  text-align: center;
}

.t-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.t-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.t-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
  font-weight: 400;
}

/* ─────────────────────────────────────────────────────────────────────────────
   COMPANION WIDGETS — Perched Robin & Sleepy Cat
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Perched Robin (Top-Right Header) ─────────────────────────────── */
.companion-robin {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  cursor: help;
  filter: drop-shadow(0 2px 6px rgba(107, 85, 71, 0.2));
  transition: filter 0.3s ease, transform 0.3s var(--ease-elastic);
}

.companion-robin:hover {
  filter: drop-shadow(0 4px 12px rgba(107, 85, 71, 0.3));
  transform: translateY(-2px);
}

/* Default: Robin blinks eye every 4s */
.robin-eyelid {
  animation: robinBlink 4s ease-in-out infinite;
  transform-origin: center top;
}

@keyframes robinBlink {
  0%, 88%, 100% { transform: scaleY(0); opacity: 0; }
  90%, 98%      { transform: scaleY(1); opacity: 1; }
}

/* Robin tail shifts position every 15s */
.robin-character {
  animation: robinShift 15s ease-in-out infinite;
}

@keyframes robinShift {
  0%, 40%, 100% { transform: translateX(0) rotate(0deg); }
  20%           { transform: translateX(1.5px) rotate(0.8deg); }
  60%           { transform: translateX(-1px) rotate(-0.5deg); }
}

/* Sleep mode: beak tucked, head droops */
.companion-robin.robin-sleeping .robin-head {
  animation: robinSleep 4s ease-in-out infinite;
}

.companion-robin.robin-sleeping .robin-beak {
  transform-origin: 37px 16px;
  animation: robinTuckBeak 4s ease-in-out infinite;
}

.companion-robin.robin-sleeping .robin-eyelid {
  animation: none;
  transform: scaleY(1);
  opacity: 1;
}

@keyframes robinSleep {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-6deg) translateY(2px); }
}

@keyframes robinTuckBeak {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-30deg) translateY(3px); }
}

/* Hide robin on very narrow mobile — keep header clean */
@media (max-width: 640px) {
  .companion-robin { display: none; }
}

/* ── Sleepy Sanctuary Companion (Activities Section Header & Header) ──────────────────── */
.companion-cat,
.companion-interactive-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  filter: drop-shadow(0 3px 10px rgba(85, 65, 45, 0.2));
  transition: filter 0.3s ease, transform 0.3s var(--ease-elastic);
  position: relative;
  user-select: none;
}

.companion-cat:hover,
.companion-interactive-wrap:hover {
  filter: drop-shadow(0 6px 18px rgba(226, 184, 107, 0.45));
  transform: translateY(-3px) scale(1.04);
}

.companion-popping {
  animation: companionPop 0.4s var(--ease-elastic);
}

@keyframes companionPop {
  0% { transform: scale(0.85) rotate(-4deg); opacity: 0.7; }
  50% { transform: scale(1.1) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.companion-avatar-badge {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  padding: 3px;
  background: linear-gradient(135deg, rgba(226, 184, 107, 0.6), rgba(107, 158, 130, 0.6));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.companion-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--bg-card);
  animation: companionBreathCycle 4s ease-in-out infinite;
  display: block;
}

.companion-avatar-fallback {
  font-size: 1.5rem;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.companion-breath-aura {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(226, 184, 107, 0.4);
  pointer-events: none;
  animation: auraPulse 4s ease-in-out infinite;
}

@keyframes companionBreathCycle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes auraPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.companion-reaction-bubble {
  background: rgba(250, 249, 245, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 184, 107, 0.5);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  animation: bubbleFloatUp 0.35s var(--ease-elastic) both;
  pointer-events: none;
  white-space: nowrap;
}

[data-theme="dark"] .companion-reaction-bubble {
  background: rgba(27, 42, 34, 0.95);
  border-color: rgba(226, 184, 107, 0.3);
  color: var(--text-main);
}

.companion-reaction-bubble.fade-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@keyframes bubbleFloatUp {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Cat tail swings in sync with 4-second Breathe cycle */
.cat-tail {
  transform-origin: 11px 30px;
  animation: catTailSway 4s ease-in-out infinite;
}

@keyframes catTailSway {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(18deg); }
  75%      { transform: rotate(-8deg); }
}

/* Cat body breathes gently */
.cat-body-group {
  animation: catBreath 4s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes catBreath {
  0%, 100% { transform: scaleY(1); }
  40%      { transform: scaleY(1.025); }
  60%      { transform: scaleY(0.99); }
}

/* Section header layout updates for companion integration */
.section-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.section-title-wrap {
  flex: 1;
}

/* AI Companion Image Badge — section header companion */
.companion-ai-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.companion-ai-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
}

.companion-ai-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
  background: var(--bg-card);
  box-shadow: 0 4px 16px rgba(107, 158, 130, 0.25);
  animation: companionBreathCycle 4s ease-in-out infinite;
  transition: opacity 0.6s ease;
}

.companion-breathe-ring {
  position: absolute;
  inset: -5px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(226, 184, 107, 0.45);
  animation: auraPulse 4s ease-in-out infinite;
  pointer-events: none;
}

/* Hide companion on small mobile to save header space */
@media (max-width: 768px) {
  .companion-cat,
  .companion-ai-badge { display: none; }
  .section-header-right { gap: 0; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   Ambient Canvas — Temporal-Adaptive System (replaces hourglass)
   Canvas at z-index: -1, pointer-events: none (AdSense-safe)
   Temporal phase classes trigger different particle systems:
     .time-dawn    → Dew Ripples + Morning Mist
     .time-day     → Dandelion Seeds + Sun-Dappled Light
     .time-evening → Twilight Embers
     .time-night   → Bioluminescent Fireflies (#E2B86B)
   ───────────────────────────────────────────────────────────────────────────── */

/* Canvas base — unchanged z-index stack */
#ambientCanvas {
  transition: opacity 0.8s ease;
}

