/* ============================================
   LEMON — Pregnancy Tracker
   Soft pastel + modern minimal design
============================================ */

:root {
  --rose:        #fda4af;
  --rose-light:  #fff1f2;
  --rose-mid:    #fecdd3;
  --lavender:    #c4b5fd;
  --lavender-light: #f5f3ff;
  --lavender-mid:   #ddd6fe;
  --mint:        #6ee7b7;
  --mint-light:  #f0fdf4;
  --mint-mid:    #a7f3d0;
  --yellow:      #fde68a;
  --yellow-light:#fffbeb;
  --yellow-mid:  #fef08a;
  --peach:       #fdba74;
  --peach-light: #fff7ed;

  --text-dark:   #1f2937;
  --text-mid:    #4b5563;
  --text-soft:   #9ca3af;
  --bg:          #fafaf9;
  --white:       #ffffff;
  --border:      #f3f4f6;

  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);

  --nav-height: 72px;
  --topbar-height: 60px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ============================================
   SETUP SCREEN
============================================ */

#setup-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff1f2 0%, #f5f3ff 50%, #f0fdf4 100%);
  padding: 24px;
}

.setup-container {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.setup-logo {
  font-size: 64px;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.setup-title {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.setup-subtitle {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 32px;
  font-weight: 300;
}

.setup-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}

.setup-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.setup-hint {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ============================================
   WEEK SELECTOR
============================================ */

.week-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 16px 0;
}

.week-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--lavender-mid);
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.week-btn:hover {
  background: var(--lavender);
  transform: scale(1.08);
}

.week-btn:active {
  transform: scale(0.95);
}

.week-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.week-display span:first-child {
  font-family: 'DM Serif Display', serif;
  font-size: 52px;
  line-height: 1;
  color: var(--text-dark);
}

.week-label {
  font-size: 13px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ============================================
   BUTTONS
============================================ */

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--lavender) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(253, 164, 175, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(253, 164, 175, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-sm {
  width: auto;
  padding: 10px 20px;
  font-size: 14px;
}

.btn-danger {
  display: inline-block;
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  color: #ef4444;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: #fff1f2;
}

/* ============================================
   TOP BAR
============================================ */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-logo {
  font-size: 22px;
}

.app-name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--text-dark);
}

.week-badge {
  background: linear-gradient(135deg, var(--rose-mid), var(--lavender-mid));
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}

/* ============================================
   PAGES
============================================ */

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  bottom: var(--nav-height);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.page-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 24px;
}

/* ============================================
   HOME PAGE — HERO CARD
============================================ */

.hero-card {
  background: linear-gradient(135deg, #fff1f2 0%, #f5f3ff 60%, #f0fdf4 100%);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.hero-fruit {
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-info {
  flex: 1;
}

.hero-week {
  font-size: 12px;
  font-weight: 600;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero-size {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 400;
}

/* ============================================
   SECTION CARDS
============================================ */

.section-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.fun-card {
  background: var(--yellow-light);
  border-color: var(--yellow-mid);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fun-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.fun-card:active {
  transform: translateY(0);
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.tag-milestone {
  background: var(--rose-mid);
  color: #9f1239;
}

.tag-week {
  background: var(--lavender-mid);
  color: #4c1d95;
}

.tag-dev {
  background: var(--mint-mid);
  color: #065f46;
}

.tag-fun {
  background: var(--yellow-mid);
  color: #78350f;
}

.section-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}

.dev-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dev-list li {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.dev-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-size: 12px;
  top: 3px;
}

/* ============================================
   JOURNAL PAGE
============================================ */

.page-header {
  margin-bottom: 20px;
}

.page-title {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-soft);
}

.journal-compose {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.journal-textarea {
  width: 100%;
  min-height: 120px;
  border: none;
  outline: none;
  resize: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.7;
  background: transparent;
}

.journal-textarea::placeholder {
  color: var(--text-soft);
}

.journal-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.journal-date-label {
  font-size: 13px;
  color: var(--text-soft);
}

.journal-entries-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journal-entry {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.journal-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.journal-entry-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.journal-entry-week {
  font-size: 12px;
  background: var(--lavender-mid);
  color: #4c1d95;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.journal-entry-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  white-space: pre-wrap;
}

.journal-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 14px;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s;
  margin-left: 8px;
}

.journal-delete-btn:hover {
  color: #ef4444;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.empty-state-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

/* ============================================
   LOOK BACK PAGE
============================================ */

.lookback-label {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}

.lookback-week-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.lb-week-chip {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.lb-week-chip:hover {
  border-color: var(--lavender);
  background: var(--lavender-light);
  color: var(--text-dark);
  transform: scale(1.05);
}

.lb-week-chip.is-current {
  background: linear-gradient(135deg, var(--rose-mid), var(--lavender-mid));
  border-color: transparent;
  color: var(--text-dark);
  font-weight: 700;
}

.lb-week-chip.is-future {
  opacity: 0.35;
  cursor: not-allowed;
}

.lb-week-chip.is-future:hover {
  transform: none;
  border-color: var(--border);
  background: var(--white);
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-mid);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
  display: block;
  transition: color 0.15s;
}

.back-btn:hover {
  color: var(--text-dark);
}

.lookback-detail {
  animation: fadeIn 0.2s ease;
}

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

.lb-journal-section {
  margin-top: 8px;
  margin-bottom: 16px;
}

.lb-journal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

/* ============================================
   SETTINGS PAGE
============================================ */

.settings-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.settings-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.settings-hint {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.6;
}

.settings-danger-zone {
  border-color: #fca5a5;
  background: #fff5f5;
}

/* ============================================
   BOTTOM NAV
============================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 100;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px 4px;
  transition: all 0.15s ease;
  border-radius: 0;
}

.nav-btn:hover .nav-icon,
.nav-btn:hover .nav-label {
  opacity: 0.8;
}

.nav-icon {
  font-size: 20px;
  transition: transform 0.15s ease;
}

.nav-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.15s ease;
}

.nav-btn.active .nav-label {
  color: #be185d;
  font-weight: 700;
}

.nav-btn.active .nav-icon {
  transform: scale(1.15);
}

/* ============================================
   TOAST NOTIFICATION
============================================ */

.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-dark);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   SETUP MODE TABS
============================================ */

.setup-mode-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.mode-tab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab.active {
  background: var(--white);
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   DATE INPUT
============================================ */

.date-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 4px;
}

.date-input:focus {
  border-color: var(--lavender);
}

/* ============================================
   EMAIL GATE MODAL
============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 500;
  padding: 0 0 0 0;
}

@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
  }
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 32px 28px 40px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

@media (min-width: 600px) {
  .modal-card {
    border-radius: var(--radius-xl);
  }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-soft);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: var(--text-dark);
}

.modal-card {
  position: relative;
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.modal-body {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 24px;
}

.email-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 14px;
  text-align: center;
}

.email-input:focus {
  border-color: var(--lavender);
  background: var(--white);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 20px;
  text-align: left;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--rose);
  cursor: pointer;
}

.gate-note {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 12px;
  line-height: 1.5;
}

.gate-skip-btn {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  margin-top: 16px;
  padding: 8px;
  display: block;
  width: 100%;
  text-align: center;
  transition: color 0.15s;
}

.gate-skip-btn:hover {
  color: var(--text-mid);
}

.gate-sent-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.gate-sent-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================
   AUTH BANNER
============================================ */

.auth-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--rose) 0%, var(--lavender) 100%);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 600;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

.auth-banner button {
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  padding: 4px 8px;
}

.auth-banner button:hover {
  opacity: 1;
}

/* ============================================
   FOOTER
============================================ */

.app-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
  padding: 12px 0 calc(var(--nav-height) + 12px);
}

.app-footer a {
  color: var(--text-soft);
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--text-mid);
}

/* ============================================
   RESPONSIVE — DESKTOP
============================================ */

@media (min-width: 600px) {
  .page-content {
    padding: 28px 24px 32px;
  }

  .hero-fruit {
    font-size: 90px;
  }

  .hero-title {
    font-size: 34px;
  }

  .lookback-week-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (min-width: 900px) {
  .topbar {
    padding: 0 40px;
  }

  .page-content {
    max-width: 680px;
    padding: 32px 0;
  }

  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
  }
}

/* ============================================
   MOOD PICKER
============================================ */

.mood-picker-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 12px 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.mood-picker-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
}

.mood-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.mood-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 8px 2px 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.mood-btn:hover {
  background: var(--yellow-light);
}

.mood-btn.selected {
  background: var(--yellow-light);
  border-color: var(--peach);
}

.mood-mini-fruit {
  width: 56px;
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.mood-mini-fruit .fruit-char {
  width: 56px !important;
  height: 67px !important;
}

.mood-btn-label {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}

.mood-btn.selected .mood-btn-label {
  color: #92400e;
  font-weight: 700;
}

.mood-badge {
  font-size: 15px;
  line-height: 1;
}

/* ============================================
   LOOK BACK STRIP
============================================ */

.lb-strip-hint {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.lb-strip-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 4px 16px 12px;
  scrollbar-width: none;
}

.lb-strip-scroll::-webkit-scrollbar {
  display: none;
}

.lb-strip {
  display: flex;
  gap: 6px;
  width: max-content;
}

.lb-strip-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 4px 8px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  width: 72px;
}

.lb-strip-cell:hover:not(.is-future) {
  background: var(--yellow-light);
}

.lb-strip-cell.is-current {
  border-color: #f5c842;
  background: var(--yellow-light);
}

.lb-strip-cell.is-future {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

.lb-strip-fruit {
  width: 60px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.lb-strip-fruit .fruit-char {
  width: 60px !important;
  height: 72px !important;
}

.lb-strip-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
}

.lb-strip-week-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
}

.lb-strip-cell.is-current .lb-strip-week-num {
  color: #92400e;
}

/* ============================================
   FRUIT CHARACTER ANIMATION SYSTEM
============================================ */

/* Base: idle bounce loop (always playing) */
.fruit-char {
  animation: fruit-idle 2s ease-in-out infinite;
  cursor: pointer;
  display: block;
}

/* One-shot body animations — override idle while playing, auto-revert */
.fruit-char.fruit-wiggle       { animation: fruit-wiggle       0.65s ease-in-out; }
.fruit-char.fruit-hiccup       { animation: fruit-hiccup       0.85s ease-in-out; }
.fruit-char.fruit-strut        { animation: fruit-strut        1.1s  ease-in-out; }
.fruit-char.fruit-spin         { animation: fruit-spin         0.7s  ease-in-out; }
.fruit-char.fruit-bounce-happy { animation: fruit-bounce-happy 1s    ease-in-out; }
.fruit-char.fruit-hop-off      { animation: fruit-hop-off      0.7s  ease-in-out forwards; }
.fruit-char.fruit-hop-in       { animation: fruit-hop-in       0.7s  ease-in-out forwards; }

/* Arm animations (body continues idle-bounce while arm waves) */
.fruit-arm-r.arm-wave      { animation: arm-wave      0.85s ease-in-out 2; }
.fruit-arm-r.arm-high-five { animation: arm-high-five 0.6s  ease-in-out forwards; }

@keyframes fruit-idle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes fruit-wiggle {
  0%, 100% { transform: rotate(0deg); }
  20%      { transform: rotate(-12deg); }
  40%      { transform: rotate(12deg); }
  60%      { transform: rotate(-7deg); }
  80%      { transform: rotate(7deg); }
}

@keyframes fruit-hiccup {
  0%   { transform: translateY(0) scale(1); }
  15%  { transform: translateY(-22px) scale(0.95, 1.08); }
  30%  { transform: translateY(0) scale(1.07, 0.92); }
  45%  { transform: translateY(-10px) scale(0.97, 1.05); }
  60%  { transform: translateY(0) scale(1); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes fruit-strut {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); }
  20%  { transform: translateY(-6px) translateX(-8px) rotate(-4deg); }
  40%  { transform: translateY(0) translateX(0) rotate(0deg); }
  60%  { transform: translateY(-6px) translateX(8px) rotate(4deg); }
  80%  { transform: translateY(0) translateX(0) rotate(0deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

@keyframes fruit-spin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes fruit-bounce-happy {
  0%   { transform: translateY(0) scale(1); }
  25%  { transform: translateY(-22px) scale(0.92, 1.1); }
  50%  { transform: translateY(0) scale(1.1, 0.9); }
  68%  { transform: translateY(-12px) scale(0.95, 1.06); }
  84%  { transform: translateY(0) scale(1.04, 0.97); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes fruit-hop-off {
  0%   { transform: translateX(0) translateY(0) rotate(0deg); opacity: 1; }
  25%  { transform: translateX(-15px) translateY(-20px) rotate(-10deg); opacity: 1; }
  100% { transform: translateX(-240px) translateY(0) rotate(-25deg); opacity: 0; }
}

@keyframes fruit-hop-in {
  0%   { transform: translateX(240px) translateY(0); opacity: 0; }
  40%  { transform: translateX(10px) translateY(-18px); opacity: 1; }
  65%  { transform: translateX(-4px) translateY(0); }
  100% { transform: translateX(0) translateY(0); opacity: 1; }
}

@keyframes arm-wave {
  0%, 100% { transform: rotate(0deg); }
  30%      { transform: rotate(35deg); }
  70%      { transform: rotate(-12deg); }
}

@keyframes arm-high-five {
  0%, 100% { transform: rotate(0deg); }
  30%      { transform: rotate(-45deg) translateY(-10px); }
  60%      { transform: rotate(-45deg) translateY(-10px); }
  80%      { transform: rotate(0deg); }
}
