  :root {
    /* Soft, neutral, eye-friendly */
    --bg: #f5f0ea;             /* page background */
    --card-bg: #ffffff;        /* main card */

    --accent: #cc9c5a;         /* warm gold accent */
    --accent-soft: rgba(204,156,90,0.14);

    --text-main: #2d2d2e;      /* charcoal */
    --text-soft: #93747b;      /* rose taupe */

    --shadow-soft: 0 14px 35px rgba(43, 37, 28, 0.12);
    --radius-card: 22px;
    --radius-pill: 999px;

   --odaily-gold: #c8a85a;   /* golden */
   --odaily-plum: #7a4d6b;   /* muted plum */
  }

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

html, body {
  background: transparent; /* Removes any solid fallback */
  min-height: 100vh;
}

body {
    min-height: 100svh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(
    to bottom,
    #f5e8d8 0%,      /* Warmer starting tint at the very top – a soft golden beige */
    #f9efe5 10%,
    #fcf8f4 20%,
    #ffffff 30%,     /* Fully pure white by ~30% down the screen */
    #ffffff 100%     /* Stays pure white the rest of the way */
  );
  background-attachment: fixed;

 }

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 60%; /* Limits the overlay height to the top warm zone – adjust to match your gradient fade */
  pointer-events: none;
  z-index: -1;
  
  background: 
    radial-gradient(circle at 10% 60%, rgba(204, 156, 90, 0.45) 0%, transparent 8%),
    radial-gradient(circle at 70% 20%, rgba(204, 156, 90, 0.50) 0%, transparent 7%),
    radial-gradient(circle at 40% 80%, rgba(245, 220, 180, 0.40) 0%, transparent 9%),
    radial-gradient(circle at 80% 50%, rgba(200, 168, 100, 0.45) 0%, transparent 8%),
    radial-gradient(circle at 25% 30%, rgba(204, 156, 90, 0.35) 0%, transparent 6%),
    radial-gradient(circle at 55% 70%, rgba(220, 180, 120, 0.40) 0%, transparent 7%),
    radial-gradient(circle at 90% 90%, rgba(204, 156, 90, 0.30) 0%, transparent 8%);
    
  background-repeat: repeat;
  background-size: 120px 120px, 140px 140px, 110px 110px, 130px 130px, 100px 100px, 150px 150px, 90px 90px;
  
  /* Gentle upward float within the limited height */
  animation: floatUp 25s linear infinite;

transform: translateZ(0);           /* Forces GPU rendering */
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  
  /* Soft fade at the bottom edge for seamless blend into white */
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

@keyframes floatUp {
  from { background-position: 0 0; }
  to   { background-position: 0 -100%; }
}

  .odaily-wrapper {
    min-height: 100svh;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
}

  .line-shell {
    width: 100%;
    max-width: 440px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  }

  .line-card {
    background: transparent !important;
    padding: 20px 18px 16px;
    box-shadow: var(--shadow-soft);
  }

  /* O•Daily pill / logo */
  .line-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background-color: rgba(197,154,123,0.12); /* soft tan glow */
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1;  /* helps vertical centering */
    height: 32px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }

  .spark {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cc9c5a;  /* warm gold */
    will-change: transform, box-shadow;
    box-shadow: 0 0 0 5px rgba(204,156,90,0.38);
    animation: sparkPulse 7s ease-in-out infinite;

  }

  @keyframes sparkPulse {
    0%, 70%, 100% {
      box-shadow: 0 0 0 5px rgba(204,156,90,0.38);
      transform: scale(1);
    }
    80% {
      box-shadow: 0 0 0 8px rgba(204,156,90,0.55);
      transform: scale(1.05);
    }
    90% {
      box-shadow: 0 0 0 5px rgba(204,156,90,0.38);
      transform: scale(1);
    }
  }

  .odaily-tagline {
    font-size: 11px;
    color: var(--text-soft);
    opacity: 0.8;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }

  .line-heading {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-main);
  }


/* ==================================== */
/* SOUND TOGGLE — FLUID RESPONSIVE      */
/* ==================================== */

.sound-toggle-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(4px, 1vw, 8px);
  margin-bottom: clamp(6px, 2vw, 12px);
  padding-right: clamp(4px, 2vw, 14px);
}

.sound-icon {
  width: 16px;
  height: 16px;
  position: relative;
  top: -1px;
  order: 0;              /* icon appears on the left */
  margin-right: 2px;     /* tiny breathing room */
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2393747b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'%3E%3C/polygon%3E%3Cpath d='M19.07 4.93a10 10 0 010 14.14'%3E%3C/path%3E%3Cpath d='M15.54 8.46a5 5 0 010 7.07'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.7; /* default middle state */
  }

/* The pill container */
.sound-toggle-pill {
  order: 1; /* pill second */
  width: clamp(80px, 22vw, 110px);
  height: clamp(26px, 7vw, 32px);
  background: #f7f2f1;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(5px, 1.3vw, 8px);
  position: relative;
  cursor: pointer;
  user-select: none;
  border: none;
  transition: background 0.2s ease;
}

.sound-option {
  flex: 1;
  text-align: center;
  font-size: clamp(10px, 2.8vw, 13px);
  z-index: 2;
  color: var(--text-soft);
  pointer-events: none;
}

.sound-indicator {
  position: absolute;
  width: clamp(38px, 11vw, 52px);
  height: clamp(20px, 5.5vw, 26px);
  background: #2d2d2e;
  border-radius: 999px;
  top: 7%;
  order: 0; /* icon first */
  transform: translateY(-50%);
  left: clamp(3px, 0.8vw, 4px);
  transition: transform 0.22s ease-out;
  z-index: 1;
}

/* ON STATE */
.sound-toggle-pill.sound-on-active {
  background-color: var(--bg); 
}

.sound-toggle-pill.sound-on-active .sound-on {
  color: #fff;
}

/* OFF STATE */
.sound-toggle-pill.sound-off-active .sound-off {
  color: #fff;
}

.sound-toggle-pill.sound-on-active ~ .sound-icon {
  opacity: 1;
}

.sound-toggle-pill.sound-off-active ~ .sound-icon {
  opacity: 0.35;
}

  .category-block {
  position: relative;
  margin-bottom: 20px;  /* a bit more space below themes */
  }

  .category-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  }

  /* hide native arrow & add custom one */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2393747b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;   /* arrow pulled in from the edge */
  background-size: 10px 6px;
}

/* ======================================= */
/* SPINNER — FULLY RESPONSIVE, FLUID SCALE */
/* ======================================= */

.spinner-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(18px, 6vw, 32px);
  margin-bottom: clamp(12px, 4vw, 22px);
  position: relative;
  overflow: visible !important;
  height: clamp(150px, 48vw, 240px);
  min-height: 150px;
  flex-shrink: 0;
  z-index: 10;
  }

.spinner-label {
  position: absolute;
  padding: 4px 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  Z-index: 6;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #2d2d2e;
  opacity: 0.55;
  width: auto;
  background: transparent;
  pointer-events: none; /* so wheel remains clickable */
}

/* Wheel scales elegantly from small phones to tablets */
.spinner-wheel {
  margin-left: auto;
  margin-right: auto;
  width: clamp(150px, 48vw, 240px);
  height: clamp(150px, 48vw, 240px);
  will-change: transform, box-shadow;
  border-radius: 50%;
  background: conic-gradient(
    rgba(204,156,90,0.12) 0deg 60deg,
    #ffffff 60deg 120deg,
    rgba(147,116,123,0.08) 120deg 180deg,
    #ffffff 180deg 240deg,
    rgba(204,156,90,0.12) 240deg 300deg,
    #ffffff 300deg 360deg);
  border: 3px solid rgba(147,116,123,0.3);
  position: relative;
  box-shadow: 0 10px 24px rgba(31, 27, 24, 0.18);
  
  cursor: pointer;
  transform: translateZ(0);
  backface-visibility: hidden;
  z-index: 7; 
}

/* Glow center scales proportionally with wheel size */
.spinner-center {
  width: 70px;
  height: 70px;
  background-color: #f0ebea;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 clamp(4px, 1.3vw, 8px) rgba(204,156,90,0.32);
  justify-content: center;
  align-items: center;
  z-index: 5;
}

/* Pointer scales + stays aligned to wheel top */
.spinner-pointer {
  width: 0;
  height: 0;
  border-left: clamp(7px, 1.8vw, 10px) solid transparent;
  border-right: clamp(7px, 1.8vw, 10px) solid transparent;
  border-bottom: clamp(11px, 2.3vw, 16px) solid #2d2d2e;
  position: absolute;
  top: calc(-1 * clamp(12px, 2.5vw, 18px));
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.9;
  border-radius: 3px;
}

/* Spin animation preserved exactly */
.spinner-wheel.spinning {
  animation: spin 3s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
  will-change: transform;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(1080deg); /* or whatever you use — at least 720deg+ */
  }
}

  .line-wrapper {
    margin-bottom: 6px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

.line-wrapper.rare {
  padding-top: clamp(20px, 5vw, 36px);
}

/* Rare Glow */
@keyframes textGoldFlash {
  0% {
    color: #eaeaea;
    text-shadow: none;
  }
  45% {
    color: #f3d7a1;
    text-shadow: 0 0 10px rgba(243, 215, 161, 0.8);
  }
  100% {
    color: #eaeaea;
    text-shadow: none;
  }
}

.line-text.rare-glow {
  animation: textGoldFlash 0.9s ease-out;
}
/* End Rare Glow */
  

.rare-line-text {
  font-size: 1.18rem;
  line-height: 1.55;
  color: #3b291c;
  font-weight: 500;
  text-align: center;
}
  .rare-tag {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
    opacity: 0;
    transition: opacity 200ms ease-out;
  }
  .rare-tag.visible {
    opacity: 1;
  }
  .line-text {
    font-family: "Playfair display", serif;
    font-size: 18px;
    text-align: center;
    opacity: none;
    transform: translateY(6px);
    transition: opacity 260ms ease-out, transform 260ms ease-out;
    color: var(--text-main);
  }

  .line-text.visible {
    opacity: 1;
    transform: translateY(0);
  }

/* ====================================== */
/* Tap Instructions                       */
/* ====================================== */

.tap-instruction {
  transition: opacity 0.4s ease;
}

.tap-instruction.softened {
  opacity: 0.45;
}

/* ====================================== */
/* Base Layout                            */
/* ====================================== */

.daily-result {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem) 0;
}

/* ====================================== */
/* Reflection Card                        */
/* ====================================== */

.reflection-card {
  width: 100%;
  max-width: 480px;
  min-height: clamp(5.5em, 12vw, 7em);
  background: #f7f4ef;
  border-radius: 0px;
  border-top: 3px solid #dcbf7a;
  padding: clamp(1rem, 4vw, 1.5rem);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: relative;
  overflow: visible;
  font-family: 'Montserrat', sans-serif;
  align-items: center;
}

.reflection-card::after {
  content: "";
  position: absolute;
  top: 3px;               /* exactly under the border */
  left: 0;
  right: 0;
  height: 8px;

  background: linear-gradient(
    to bottom,
    rgba(220, 191, 122, 0.35),
    transparent
  );

  pointer-events: none;
}

.reflection-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0.5rem;
}

.reflection-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;     /* Optional: vertically centers shorter text */
  justify-content: center;
  text-align: center;
}

/* ====================================== */
/* End Reflection Card                    */
/* ====================================== */


#revealStepBtn {
  display: none;
}

.reveal-step-btn {
  background: none;
  border: none;
  padding: 0.75rem 0;
  width: 100%;
  text-align: left;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: #a58f7b;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.reveal-step-btn:hover {
  opacity: 1;
}

/* ====================================== */
/* Microaction Card — Soft Matte + Texture */
/* ====================================== */

.microaction-card {
  width: 88%; 
  margin-left: clamp(1rem, 4vw, 1.5rem);
  margin-top: 0.35rem;
  padding: 0.8rem 1rem;
  background: #f5efe8;
  border-radius: 0;
  border-top: 3px solid #dcbf7a;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  position: relative;

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;

  transition: opacity 0.25s ease, transform 0.25s ease;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: clamp(6.5em, 14vw, 9em);

  background-image: url('https://www.transparenttextures.com/patterns/paper.png');
  background-size: 500px;
  z-index: 0;
}

.microaction-title {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.microaction-text {
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.microaction-footer {
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: left;
}

.microaction-card.revealed {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 5;
}
/* ====================================== */
/* Hidden / Revealed States               */
/* ====================================== */

.hidden {
  display: none;
}

.microaction-card.revealed {
  display: block;
  animation: liftCardUp 0.48s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* ====================================== */
/* Animations                              */
/* ====================================== */

@keyframes liftCardUp {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.14);
  }
}

  /* Reflection, Micro-Action, Journal: clean white panels */
  .reflection-block,
  .micro-action-block,
  .journal-block {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(45,45,46,0.06);
  }

  .reflection-block {
    margin-bottom: 8px;
    padding: 8px 10px;
    color: var(--text-soft);
  }

  .micro-action-block {
    margin-bottom: 12px;
    padding: 8px 10px;
    color: var(--text-soft);
    background-color: rgba(197,154,123,0.12) !important; /* soft tan glow */
    display: none; /* still appears after spin only */
  }
  .micro-action-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 4px;
    color: #7b5252;
  }
  .micro-action-text {
    font-size: 13px;
    line-height: 1.4;
  }

.micro-action-toggle {
  background: none;
  border: none;
  color: #e8d6c5;
  font-size: 1rem;
  letter-spacing: 0.4px;
  margin: 14px auto 6px auto;
  padding: 6px 0;
  display: block;
  text-align: center;
  opacity: 0.9;
  cursor: pointer;
  transition: opacity .2s ease;
}

.micro-action-toggle:hover {
  opacity: 1;
}

.micro-action-section {
  margin-top: 8px;
  animation: fadeSlide 0.25s ease-out;
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-microaction-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: rgba(0,0,0,0.4);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: opacity 0.25s ease;
}

.close-microaction-btn:hover {
  opacity: 0.7;
}

@keyframes lowerCardDown {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

/* Line Action */
  .line-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    margin-top: 4px;
    overflow: visible !important;
    position: relative;
  }

/* SHARE — Floating Heart */
.share-heart {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 18px;
  opacity: 0;
  animation: shareHeartUp 1.5s ease forwards;
}

@keyframes shareHeartUp {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0.9;
  }
  60% {
    transform: translateY(-40px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-70px) scale(0.85);
    opacity: 0;
  }
}

/* SHARE CONFIRMATION */
.share-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 14px;
  opacity: 0;
  z-index: 9999;
  backdrop-filter: blur(6px);
  transition: opacity .25s ease, transform .25s ease;
}

.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0px);
}

/* Begin Save This Line */
#heart-container {
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 9999;
}

.heart {
  position: absolute;
  opacity: 0;
  animation: floatUp var(--duration) ease-out forwards;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255, 143, 163, 0.5));
}

.heart.from-bottom-nav {
  position: fixed;   /* overrides absolute */
}

:root {
  --heart1: #ff6fa5;   /* soft O•Daily pink */
  --heart2: #ffb8d2;   /* lighter pink */
  --heart3: #d97c9a;   /* muted rose */
}
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-160px) scale(1.7); /* Higher float */
    opacity: 0;
  }
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #ffffff 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  animation: sparkleUp var(--duration) ease-out forwards;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
}

@keyframes sparkleUp {
  0% {
    transform: translateY(0) scale(0.4);
    opacity: 1;
  }
  100% {
    transform: translateY(-120px) scale(1);
    opacity: 0;
  }
}
  /* End Save This Line */

/* Begin Archive */
#sacredArchiveWrapper {
  text-align: center;
  margin-top: 30px;
}

.archive-title {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin-bottom: 16px;
}

#archive-timeline {
  max-width: 450px;
  margin: 0 auto;
  max-height: 220px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.archive-line {
  padding: 14px 18px;
  background: #f8f4f2;
  border-left: 4px solid #d2a48f;
  border-radius: 6px;
  font-family: "Playfair Display", serif;
  font-size: 15px;
  line-height: 1.5;
  color: #3b302b;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 0.5s forwards ease-out;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Story modal */
.story-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  overflow-y: auto; /* enables scrolling */
}

.story-content {
  background: #fffaf5;
  width: 85%;
  max-width: 500px;
  max-height: 80vh;      /* keeps modal from overflowing screen */
  overflow-y: auto;      /* enables inner scrolling */
  padding: 26px;
  border-radius: 12px;
  font-family: "Playfair Display", serif;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  animation: fadeIn 0.35s ease;
}

.story-content button {
  margin-top: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#sacredStoryText {
  white-space: pre-wrap;
  font-family: "Playfair Display", serif;
  line-height: 1.6;
  color: #3b302b;
  padding: 8px 0;
}

#sacredArchiveWrapper {
  position: fixed;
  left: 50%;
  bottom: -100%;  /* starts off-screen */
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fffaf5;
  padding: 24px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transition: bottom 0.45s ease;
  z-index: 9999;
}

/* When visible */
#sacredArchiveWrapper.open {
  bottom: 0; /* slides all the way up */
}

#archiveOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9998;
}

#archiveOverlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* End Archive */

/* Begin Buttons */

  .primary-btn,
  .secondary-btn,
  .tertiary-btn {
    border: none;
    cursor: pointer;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .primary-btn {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #3b291c;
    color: #f0ebea;
    box-shadow: 0 8px 20px rgba(31,27,24,0.25);
  }
  .secondary-btn {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: transparent;
    color: var(--text-soft);
    border: 1px solid rgba(45,45,46,0.14);
  }

  #shareButton.secondary-btn{
    width: 100%;
    padding: 2%;
    margin-bottom: 1%;
    background-color: #f0ebea;
    color: #3b291c;
    border-radius: 10px;
}

.primary-btn,
  .secondary-btn {
    font-size: 11px;
    padding: 8px 12px;
  }

  .tertiary-btn {
    background: transparent;
    color: var(--text-soft);
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0.03em;
    padding: 6px 10px;
    opacity: 0.9;
  }

#saveButton.tertiary-btn {
    font-size: clamp(15px, 4vw, 18px) !important;
    padding: 12px 18px; /* improves tap area */
    letter-spacing: 0.3px;
  }

#copyButton.primary-btn {
background-color:;
}

 #lineButton {
  filter: none !important;
  }

 #lineButton.primary-btn {
  display: none !important;
  }

.whisper-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.whisper-btn:hover {
  opacity: 1;
}

.line-wrapper.rare .whisper-btn {
  opacity: 0.45;
}

#night-toggle.

/* End Buttons */

  .journal-block {
    margin-top: 4px;
    overflow: hidden;
  }
  .journal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
  }
  .journal-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    color: #7b5252;
  }
  .journal-toggle {
    font-size: 11px;
    color: var(--text-soft);
    opacity: 0.8;
  }
  .journal-body {
    padding: 0 10px 8px;
    display: none;
  }
  .journal-body.open {
    display: block;
  }
  .journal-textarea {
    width: 100%;
    min-height: 70px;
    resize: none;
    border-radius: 10px;
    border: 1px solid rgba(45,45,46,0.14);
    padding: 8px 9px;
    font-size: 11px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.4;
    background-color: #ffffff;
    outline: none;
    color: var(--text-main);
  }
  .journal-textarea::placeholder {
    color: rgba(147,116,123,0.7);
  }
  .journal-actions {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  align-items: center;
  }

.journal-actions > * {     /* all direct children */
  flex-shrink: 1;          /* allow shrinking */
  min-width: 0;            /* very important for buttons with long text */
}

  .toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom)); /* Clears bottom nav + safe area */
  transform: translateX(-50%) translateY(20px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(43, 37, 28, 0.98);
  color: #f0ebea;
  font-size: 11px;
  opacity: 0;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  z-index: 1000; /* Much higher — safely above most nav bars */
  pointer-events: none; /* Good practice: doesn't block taps */
  max-width: 90%;
  text-align: center;
  box-sizing: border-box;
}
  .toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .odaily-footer {
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #93747b;
    opacity: 0.8;
    margin-top: 18px;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
  }

/* Begin O Daily Bottom Nav */
.odaily-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px; /* Comfortable for thumb reach + safe area */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top:1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 8px 8px -8px rgba(0, 0, 0, 0.28);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom); /* Respects iPhone notch */
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #c49ea6;
  text-decoration: none;
  flex: 1;
  transition: all 0.3s ease;
}

.nav-item.active,
.nav-item:hover {
  color: #93747b; 
}

.nav-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 4px;
}

.nav-item.active .nav-icon {
  stroke-width: 2.2;
}

.nav-label {
  font-size: 10px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.nav-disabled {
  opacity: 0.4;
  pointer-events: none;
}

#bottomSaveHeart {
  background: none;
  border: none;
}

.save-heart-btn:active {
  opacity: 0.7;
  transform: scale(0.94);
  transition: all 0.2s ease;
}
/* End O Daily Bottom Nav */

  .digest-panel {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.18);
  z-index: 2000;
}

#digestButton {
margin-left: auto;
}


.digest-panel.visible {
  display: flex;
}

.digest-card {
  width: 100%;
  max-width: 420px;
  margin: 0 16px 20px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
  padding: 12px 14px 14px;
  font-size: 12px;
  color: var(--text-main);
  position: relative;
}

.digest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}

.digest-title {
  font-size: clamp(10px, 3.2vw, 12px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
   }

.digest-close {
  border: none;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-soft);
  padding: 2px 4px;
}

.digest-content p {
  margin: 2px 0;
  line-height: 1.4;
}

.digest-content p.digest-line {
  margin-top: 6px;
  font-style: italic;
}

.digest-range {
  font-size: 0.85rem;
  opacity: 0.65;
  margin-bottom: 6px;
  text-align: center;
}


/* Visible O•Daily dropdown */
.theme-dropdown {
  width: 100%;
  padding: 8px 34px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(45,45,46,0.14);
  font-size: 12px;
  color: var(--text-main);
  background-color: #fbf8f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.theme-dropdown:hover {
  background-color: #f6f1ee;
}

#themeSelected {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* little arrow */
.dropdown-arrow {
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2393747b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Options panel */
.theme-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  padding: 6px 0;
  z-index: 30;
  display: none;        /* IMPORTANT: hide by default */
}

.theme-options.open {
  display: block;       /* JS toggles this */
}

.theme-options button {
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--text-main);
  cursor: pointer;
}

.theme-options button:hover {
  background: #fbf5f1;
}

.theme-options button[data-selected="true"] {
  background: #fbf5f1;
  font-weight: 600;
}

/* Begin Streak Modal */
.streak-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  backdrop-filter: blur(3px);
}

.streak-content {
  background: #fffaf5;
  padding: 28px 26px;
  border-radius: 14px;
  width: 85%;
  max-width: 420px;
  text-align: center;
  font-family: "Playfair Display", serif;
  animation: streakFade 0.35s ease-out;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

@keyframes streakFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.streak-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: #d2a48f;
}

.streak-message {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #3b302b;
}

/* End Streak Modal */

/* Gold Spinner */
 #spinnerWheel.golden-spinner {
  filter: drop-shadow(0 0 26px rgba(247, 212, 154, 1))
          drop-shadow(0 0 55px rgba(247, 212, 154, 0.85))
          drop-shadow(0 0 90px rgba(247, 212, 154, 0.55));
  transition: filter 0.4s ease-out;
}

@keyframes goldenPulse {
  0% { filter: drop-shadow(0 0 6px gold); }
  50% { filter: drop-shadow(0 0 18px gold); }
  100% { filter: drop-shadow(0 0 6px gold); }
}
/* End Gold Spinner */

/* BEGIN WHISPER CARD */
.whisper-card {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  padding: 36px 32px;
  background: #f7f4ef;
  color: #1e1e1e;
  border-radius: 12px;

  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.whisper-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.01em;
}

.whisper-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}

.whisper-text::selection {
  background: rgba(220, 191, 122, 0.25);
}

.whisper-divider {
  width: 42px;
  height: 1.5px;
  margin: 20px auto 18px;
  background: rgba(200, 168, 90, 0.55); /* gold, restrained */
}

.whisper-watermark {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(59, 41, 28, 0.55); /* softened ink */
}

.whisper-feather {
  color: var(--odaily-gold);
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.85;
}

.whisper-footer {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  opacity: 0.45;
  gap: 6px;
}
/* END WHISPER CARD */

/* ONBOARDING WELCOME */
.onboarding-modal {
  max-width: 420px;
  text-align: center;
  background: #ffffff;
  color: #121212;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f7f4ef 100%
  );
  padding: 1.75rem 1.5rem;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

.onboarding-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(
    90deg,
    rgba(220, 191, 122, 0.8),
    rgba(220, 191, 122, 0.3)
  );
}

/* Spark container for onboarding */
.onboarding-spark {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
  pointer-events: none;
}

.onboarding-modal h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.onboarding-intro {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.9;
}

.onboarding-flow {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 1.25rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.onboarding-flow span {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.onboarding-note {
  display: block;
  margin-top: 10px;
  font-size: 0.7rem;
  opacity: 0.5;
}

.onboarding-modal button {
  margin-top: 0.75rem;
}

/* --- Modal Base (Required for Onboarding) --- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  border-radius: 12px;
  padding: 1.5rem;
  width: calc(100% - 2rem);
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.hidden {
  display: none;
}
/* END ONBOARDING WELCOME */

/* --- Creator Modal --- */

.creator-modal {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f5f2ec 100%
  );
  color: #121212;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.2),
    0 6px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.creator-spark {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
  pointer-events: none;
}

.creator-modal h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.creator-copy {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.creator-copy.muted {
  opacity: 0.75;
  font-size: 0.9rem;
}
/* --- END Creator Modal --- */

/* --- BEGIN LEGAL Modal --- */
  .legal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.legal-modal.hidden {
  display: none;
}

.legal-modal__content {
  background: #fff;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 12px;
}

.legal-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- END LEGAL Modal --- */

/* --- Hamburger Menu Button --- */
.menu-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 10000;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #dcbf7a; /* your gold */
  border-radius: 2px;
  transition: opacity 0.3s ease;
}

/* --- Menu Modal --- */
.menu-modal {
  background: linear-gradient(180deg, #ffffff 0%, #f7f4ef 100%);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.menu-spark {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  pointer-events: none;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.menu-list li {
  margin-bottom: 0.75rem;
}

.menu-list button {
  background: none;
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: #121212;
  cursor: pointer;
}

/* --- End Hamburger Menu Button --- */

/* --- Share Modal --- */

.share-modal {
  background: linear-gradient(180deg, #ffffff 0%, #f7f4ef 100%);
  color: #121212;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.share-spark {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
  pointer-events: none;
}

.share-line {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 1rem 0 1.25rem;
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.share-note {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 1rem;
}
/* --- End Share Modal --- */

/* --- Daily Modal --- */
.daily-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.daily-modal.active {
  display: block;
}

.daily-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.daily-modal-card {
  position: relative;
  max-width: 340px;
  margin: 15vh auto;
  background: #f7f4ef;
  padding: 2rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.daily-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1rem;
  color: #93747b;
  cursor: pointer;
}

.daily-affirmation {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 26ch;
  margin: 0 auto;
  color: #2b2b2b;
  text-align: center;
}

.daily-modal-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.daily-modal-mark .spark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c49ea6;
  box-shadow: 0 0 0 6px rgba(196, 158, 166, 0.35);
}
/* --- End Daily Modal --- */

/* --- Paid Categories --- */
  option[data-paid] {
  color: #aaa;
}

.paid-marker {
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.65;
  color: #b08b6f; /* soft gold / neutral accent */
}
/* --- End Paid Categories --- */


/* --- Begin Unlock Modal --- */
.unlock-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  z-index: 9999;
}

.unlock-modal.active {
  display: flex;
}

.unlock-content {
  background: #fffaf5;
  padding: 28px;
  border-radius: 16px;
  width: 90%;
  max-width: 340px;
  text-align: center;
  font-family: "Playfair Display", serif;
  position: relative;
}

.unlock-mark {
  font-size: 22px;
  color: #c9a46c;
  margin-bottom: 10px;
}

.unlock-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #8c7a73;
  opacity: 0.75;
}

.unlock-close:hover {
  opacity: 1;
}

/* --- End Unlock Modal --- */

/* Color Schemes */
@media (prefers-color-scheme: dark) { :root { --bg: #2d2d2e; --card-bg: #1a1a1b; /* invert colors */ } }

/* Phones */
@media (max-width: 480px) {
  body {
    padding-top: 18px;
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .line-shell {
    max-width: 360px;
    margin-top: 6px; /* gentle lift */
    padding: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    width: 100% !important;
    border-radius: 0 !important; box-shadow: none !important;
  }

  .line-actions {
    margin-bottom: 14px;
  }

.line-text {
  font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  line-height: 1.35;
  padding-inline: clamp(16px, 5vw, 28px);
  text-align: center;
  word-break: normal;
  overflow-wrap: break-word;
}

  .line-card {
    padding: 16px 12px 12px;
    text-align: center;
    width: 100%;
    border-radius: 0 !important; box-shadow: none !important;
  }

 .line-heading {
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
  }

  .line-pill {
    padding: 10px 22px;      
    font-size: 15px;                
    height: 38px;                    
    border-radius: 999px;            
  }

.line-pill .spark {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 8px rgba(204,156,90,0.45);
    animation: sparkPulse 7s ease-in-out infinite;
  }

.odaily-wrapper {
    overflow: hidden;
  }

  .odaily-tagline {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
  }

   .sound-toggle-container {
    margin-top: -2px;
    margin-bottom: 10px;
    padding-right: 0px;
    justify-content: center;
  }

  .sound-icon {
    position: relative;
    width: 14px;
    height: 14px;
    top: -1px;  /* keeps it optically centered on small screens too */
  }

.sound-indicator {
  position: absolute;
  top: 2px;
  left: 2px;

  height: calc(100% - 4px);
  width: 50%;

  background: #2d2d2e;
  border-radius: 999px;

  transform: translateX(0);
  transition: transform 0.25s ease-out;

  z-index: 1;
}

.sound-toggle-pill {
  position: relative;
  display: block;

  width: 84px;   /* keep your value */
  height: 32px;

  padding: 2px;
  box-sizing: border-box;
}

.sound-toggle-pill.off .sound-indicator {
  transform: translateX(100%);
}

.sound-option {
  position: absolute;
  top: 50%;
  width: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.75rem;
  line-height: 1;

  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.sound-on {
  left: 0;
}

.sound-off {
  right: 0;
}

  .category-block {
    margin-bottom: 18px;
  }

  .category-select {
    font-size: 11px;
    padding: 8px 30px 8px 12px;
  }

.theme-dropdown {
  width: 100%;
  padding: 8px 34px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(45,45,46,0.14);
  font-size: 14px;
  color: var(--text-main);
  background-color: #fbf8f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.theme-dropdown:hover {
  background-color: #f6f1ee;
}

.theme-dropdown span#themeSelected {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* little arrow */
.dropdown-arrow {
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2393747b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Options panel */
.theme-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  padding: 6px 0;
  z-index: 30;
  display: none;
}

.theme-options.open {
  display: block;
}

.theme-options button {
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--text-main);
  cursor: pointer;
}

.theme-options button:hover {
  background: #fbf5f1;
}

.theme-options button[data-selected="true"] {
  background: #fbf5f1;
  font-weight: 600;
}
  
.spinner-wrapper {
    margin-top: 26px;
    margin-bottom: 14px;
  }

  .spinner-wheel {
    width: min(60vw, 215px);
    height: min(60vw, 215px);
    box-shadow: 0 8px 18px rgba(31, 27, 24, 0.16);
  }

  .spinner-pointer {
    top: -14px;
    border-bottom: 12px solid #2d2d2e;
  }

  .line-wrapper {
    margin-bottom: 10px;
  }

  .reflection-block {
    margin-bottom: 6px;
  }

  #reflectionText {
   font-size: clamp(0.95rem, 2.8vw, 1.15rem);
   line-height: 1.55;
}

  .micro-action-block {
    margin-bottom: 8px;   
  }

  #microActionText.micro-action-text {
   font-size: clamp(14px, 3.6vw, 17px) !important;
   line-height: 1.4;
}

/* Save Icons */

.save-icon {
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='%232d2d2e' stroke='%232d2d2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 012-2h10a2 2 0 012 2z'%3E%3C/path%3E%3C/svg%3E");

}

.save-star {
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 6px;
  background-repeat: no-repeat;
  background-size: contain;
  
  /* SVG star icon encoded with color #7b5252 */
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237b5252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='12 2 15 9 22 9 17 14 19 21 12 17 5 21 7 14 2 9 9 9'%3E%3C/polygon%3E%3C/svg%3E");
}

/* Thumbtack save icon */
.pin-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 6px;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.85;
  transform: translateY(1px);

  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2393747b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 17v5m5-11l-1.5-1.5c-.3-.3-.3-.7 0-1l3.8-3.8c.4-.4.4-1 0-1.4l-2.6-2.6c-.4-.4-1-.4-1.4 0l-3.8 3.8c-.3.3-.7.3-1 0L7 2m5 5l-5-5'/%3E%3C/svg%3E");
}

  .journal-header {
    padding: 8px 10px;
  }
  .journal-textarea::placeholder {
    color: #b8b1ad;;
    font-size: clamp(15px, 4vw, 19px) !important;
  }

  .journal-body {
    padding: 0 10px 8px;
  }

  .odaily-footer {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 10px;
  }


/* Phones */
/* Tablets + small laptops */
@media (max-width: 768px) {
  body {
    padding-top: 18px;}
    padding-bottom: calc(86px + env(safe-area-inset-bottom));

  .line-shell {
    max-width: 400px;}

  .line-card {
    padding:16px 12px 12px;}

  .sound-toggle-container {
    padding-right: 6px;  /* a bit of breathing room from the edge */
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .spinner-wrapper {
    margin-top: clamp(18px, 6vw, 32px);
  }
}

@media (min-width: 1024px) {
  /* reduce aura, calm motion, keep restraint */
 }
}
