  :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;
  }

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

body {
    min-height: 100svh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #f5f0ff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: -1;

  /* Soft dreamy aura gradient */
	background: linear-gradient(to bottom, 
    #E0C9E0, 
    #FAD7C3 25%,
    #FFEFD5 30%, 
    #FFFFFF 60%, 
    #FFFFFF 100%
);
background-size: 400% 400%;  /* Keeps the shifting scale */
animation: gradient 15s ease infinite;
height: 100vh;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

  .odaily-wrapper {
    min-height: 100svh;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

  .line-shell {
    width: 100%;
    max-width: 440px;
    background: #f0ebea;
    border-radius: 26px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  }

  .line-card {
    background-color: #fff;
    border-radius: var(--radius-card);
    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;
  }

.spinner-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  Z-index: 1;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #2d2d2e;
  opacity: 0.55;
  width: 100%;
  background: #fff;
  
  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;
}

/* 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;
}

@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;
  }

/* 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;
  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;
}

.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;
}

/* ====================================== */
/* 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: 0px;
  border-top: 3px solid #dcbf7a;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  position: relative;
  opacity: 0.92;
  backdrop-filter: blur(1px);
  transform: translateY(12px) scale(0.96);
  pointer-events: auto;

  /* Soft texture */
  background-image: url('https://www.transparenttextures.com/patterns/paper.png');
  background-size: 500px;
}

.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;
}

.microaction-footer {
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: left;
}

/* ====================================== */
/* 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));
}
: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;
  }

/* 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: 18px;
    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: 50;
  }
  .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;
  }

  .digest-panel {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.18);
  z-index: 40;
}

#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);
}

.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;
}

/* 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 */


/* Color Schemes */
@media (prefers-color-scheme: dark) { :root { --bg: #2d2d2e; --card-bg: #1a1a1b; /* invert colors */ } }

/* Phones */
@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .line-shell {
    max-width: 360px;
    margin-top: 6px; /* gentle lift */
    padding: 0 !important;
    box-shadow: none !important;
    background-color: #fff;
    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 14px 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: 18px;}

  .line-shell {
    max-width: 400px;}

  .line-card {
    padding: 20px 16px 14px;}

  .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 */
 }
}