:root {
  /* Večernja blizina — usamljenost / ljubav / veze */
  --ink: #2a1f24;
  --ink-soft: #6a555c;
  --mist: #f3e8ea;
  --mist-deep: #e5d2d7;
  --leaf: #5c2a3a;
  --leaf-mid: #8f4458;
  --sun: #d4a25a;
  --bloom: #c45b62;
  --foam: rgba(255, 248, 246, 0.78);
  --line: rgba(42, 31, 36, 0.12);
  --shadow: 0 18px 50px rgba(42, 31, 36, 0.12);
  --radius: 22px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  min-height: 100svh;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background-color: #efe4e7;
  background-image:
    radial-gradient(120% 80% at 8% -8%, #fff7f5 0%, transparent 52%),
    radial-gradient(85% 70% at 100% 0%, #e8c9d0 0%, transparent 48%),
    radial-gradient(70% 55% at 50% 100%, rgba(212, 162, 90, 0.22) 0%, transparent 55%),
    linear-gradient(165deg, #f7eef0 0%, #efe4e7 46%, #e2d0d6 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(196, 91, 98, 0.06) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, rgba(92, 42, 58, 0.05) 0 1px, transparent 1.5px);
  background-size: 42px 42px, 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: drift 14s var(--ease) infinite alternate;
}

.orb-a {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -40px;
  background: rgba(212, 162, 90, 0.26);
}

.orb-b {
  width: 320px;
  height: 320px;
  bottom: 8%;
  left: -80px;
  background: rgba(143, 68, 88, 0.2);
  animation-delay: -4s;
}

.orb-c {
  width: 180px;
  height: 180px;
  top: 42%;
  right: 8%;
  background: rgba(196, 91, 98, 0.18);
  animation-delay: -7s;
  animation-duration: 11s;
}

@keyframes drift {
  from { transform: translate3d(var(--orb-x, 0), var(--orb-y, 0), 0) scale(1); }
  to { transform: translate3d(calc(var(--orb-x, 0) + 18px), calc(var(--orb-y, 0) + 24px), 0) scale(1.08); }
}

.app {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 22px max(16px, env(safe-area-inset-bottom));
  min-height: calc(100svh - 7.5rem);
  display: flex;
  flex-direction: column;
}

/* Promo: trebamwebstranicu — mobile-first, Streak brand (leaf/sun), no overflow */
.site-credit {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 16px max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  display: grid;
  gap: 12px;
}

.site-credit-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "mark copy"
    "cta  cta";
  gap: 12px 14px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(92, 42, 58, 0.16);
  background:
    linear-gradient(155deg, rgba(92, 42, 58, 0.94) 0%, rgba(143, 68, 88, 0.9) 55%, rgba(92, 42, 58, 0.96) 100%);
  box-shadow:
    0 12px 32px rgba(42, 31, 36, 0.14),
    inset 0 1px 0 rgba(255, 247, 245, 0.12);
  color: #fff7f5;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  overflow: hidden;
}

.site-credit-mark {
  grid-area: mark;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--leaf);
  background: rgba(255, 247, 245, 0.94);
  box-shadow: 0 1px 0 rgba(42, 31, 36, 0.08);
}

.site-credit-copy {
  grid-area: copy;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.site-credit-kicker {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 247, 245, 0.72);
}

.site-credit-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4.2vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff7f5;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-credit-host {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(240, 196, 138, 0.95);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.site-credit-cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--leaf);
  background: #fff7f5;
  box-shadow: 0 1px 0 rgba(42, 31, 36, 0.06);
  white-space: nowrap;
}

.site-credit-cta::after {
  content: " →";
  font-weight: 800;
}

.site-credit-card:hover,
.site-credit-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(212, 162, 90, 0.45);
  box-shadow:
    0 16px 40px rgba(42, 31, 36, 0.18),
    inset 0 1px 0 rgba(255, 247, 245, 0.16);
  outline: none;
}

.site-credit-card:hover .site-credit-cta,
.site-credit-card:focus-visible .site-credit-cta {
  background: #fff;
}

/* Desktop: side-by-side CTA, wider canvas */
@media (min-width: 640px) {
  .site-credit-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "mark copy cta";
    gap: 16px 18px;
    padding: 18px 20px;
  }

  .site-credit-cta {
    width: auto;
    min-width: 7.5rem;
    padding: 12px 18px;
  }

  .site-credit-title {
    font-size: 1.35rem;
  }

  .site-credit-host {
    font-size: 0.88rem;
  }
}

@media (min-width: 768px) {
  .app,
  .site-credit {
    width: min(640px, 100%);
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (min-width: 1100px) {
  .app,
  .site-credit {
    width: min(720px, 94vw);
  }

  .site-credit-card {
    padding: 20px 22px;
  }
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: rise 0.55s var(--ease) both;
}

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

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.38em;
  cursor: pointer;
}

.brand-mark {
  flex: 0 0 auto;
  width: 1.35em;
  height: 1.35em;
  border-radius: 22%;
  display: block;
  object-fit: contain;
  box-shadow: none;
}

.brand-word {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-wordmark {
  gap: 0;
}

.brand-wordmark-img {
  display: block;
  height: clamp(2.6rem, 12vw, 4.2rem);
  width: auto;
  max-width: min(92vw, 28rem);
  object-fit: contain;
}

a.brand:hover {
  opacity: 0.88;
}

.brand-lg {
  font-size: clamp(3.4rem, 14vw, 4.6rem);
}

.brand-lg .brand-mark {
  width: 0.78em;
  height: 0.78em;
}

.brand-sm {
  font-size: 1.15rem;
  color: var(--leaf);
}

.lede {
  margin: 18px 0 0;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 22ch;
}

.stake-line {
  margin: 16px 0 0;
  max-width: 34ch;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(92, 42, 58, 0.28);
  background: rgba(92, 42, 58, 0.08);
  color: var(--rose, #5c2a3a);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
}

.benefit-line {
  margin: 10px 0 0;
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}

.heart-title-chip {
  margin: 6px 0 0;
  color: var(--rose, #5c2a3a);
  font-weight: 700;
  font-size: 0.9rem;
}

.heart-title-badge {
  display: grid;
  gap: 2px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(196, 91, 98, 0.14), rgba(212, 162, 90, 0.16)),
    rgba(255, 248, 246, 0.75);
  border: 1px solid rgba(196, 91, 98, 0.28);
  max-width: 28ch;
}

.heart-title-badge.is-compact {
  margin: 4px 0 0;
  padding: 6px 8px;
  border-radius: 10px;
  max-width: none;
}

.heart-title-badge.is-locked {
  background: rgba(255, 248, 246, 0.5);
  border-color: rgba(92, 42, 58, 0.14);
}

.heart-title-badge-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.62rem;
  font-weight: 700;
  color: #9a5a12;
}

.heart-title-badge-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--rose, #5c2a3a);
  font-weight: 700;
}

.heart-title-badge.is-compact .heart-title-badge-name {
  font-size: 0.92rem;
}

.vibe-title-label {
  display: inline-block;
  margin-right: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  font-weight: 700;
  color: #9a5a12;
  vertical-align: middle;
}

.vibe-title.is-locked {
  font-weight: 600;
  color: var(--ink-soft);
}

.vibe-benefit {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.vibe-benefits {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(92, 42, 58, 0.1);
}

.vibe-benefits-title {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #9a5a12;
}

.vibe-benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.vibe-benefits-list li {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--ink-soft);
  padding-left: 0.9em;
  position: relative;
}

.vibe-benefits-list li::before {
  content: "♥";
  position: absolute;
  left: 0;
  color: var(--rose, #5c2a3a);
  font-size: 0.65rem;
  top: 0.25em;
}

.krug-slots-line {
  margin: 8px 0 0;
  font-weight: 700;
  color: var(--rose, #5c2a3a);
  font-size: 0.95rem;
}

.welcome-screen {
  position: relative;
}

.topbar-welcome {
  margin-bottom: 8px;
}

.topbar-welcome .lang-switch-inline {
  margin-left: auto;
}

/* Legacy fixed landing bar (kept if used elsewhere) */
.landing-lang-bar {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  left: auto;
  z-index: 120;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.lang-switch {
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(92, 42, 58, 0.28);
  background: #fff8f6;
  box-shadow: 0 8px 24px rgba(42, 31, 36, 0.16);
}

.lang-switch-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-radius: 999px;
  line-height: 1;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-switch-btn.is-active {
  color: #fff;
  background: var(--leaf);
}

.lang-switch-btn:hover,
.lang-switch-btn:focus-visible {
  color: var(--leaf);
  outline: none;
}

.lang-switch-btn.is-active:hover,
.lang-switch-btn.is-active:focus-visible {
  color: #fff;
  background: var(--leaf-mid);
}

.lang-switch-sep {
  color: rgba(106, 85, 92, 0.55);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  user-select: none;
  padding: 0 2px;
}

.topbar .lang-switch {
  box-shadow: none;
  padding: 3px;
}

.topbar .lang-switch-btn {
  font-size: 0.78rem;
  padding: 7px 10px;
}

.hero-space {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding-top: clamp(20px, 6vh, 72px);
  padding-bottom: 8px;
  min-height: min(72svh, 720px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

a.btn {
  color: inherit;
}

.auth-stack {
  display: grid;
  gap: 10px;
}

.facebook-slot,
.google-slot {
  min-height: 44px;
}

.btn-facebook {
  width: 100%;
  background: #1877f2;
  color: #fff;
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.28);
}

.btn-facebook:hover {
  background: #0f66d0;
}

.btn-facebook:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--leaf);
  color: #f4faf6;
  box-shadow: 0 10px 28px rgba(27, 58, 47, 0.28);
}

.btn-primary:hover {
  background: #23493b;
}

.btn-accent {
  background: var(--bloom);
  color: #fff7f5;
  box-shadow: 0 12px 30px rgba(232, 93, 76, 0.32);
  position: relative;
  overflow: hidden;
}

.btn-accent:hover {
  background: #d64e3e;
}

.btn-accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: btn-sheen 2.8s var(--ease) infinite;
}

@keyframes btn-sheen {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.section-head {
  margin-top: 8px;
}

.section-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 10px 0 0;
  line-height: 1.05;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.habit-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.habit-list > li {
  animation: rise 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

.habit-option {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--foam);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.habit-option:hover {
  border-color: rgba(47, 107, 85, 0.35);
  transform: translateY(-1px);
}

.habit-option.is-selected {
  border-color: var(--leaf-mid);
  background: rgba(47, 107, 85, 0.1);
  transform: translateX(3px) scale(1.01);
  box-shadow: 0 8px 22px rgba(47, 107, 85, 0.12);
  animation: select-pop 0.35s var(--ease);
}

@keyframes select-pop {
  0% { transform: scale(0.98); }
  55% { transform: translateX(3px) scale(1.03); }
  100% { transform: translateX(3px) scale(1.01); }
}

.habit-option .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(27, 58, 47, 0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: transparent;
  transition: all 0.2s var(--ease);
}

.habit-option.is-selected .check {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.footer-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.today-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding-top: 28px;
}

.today-footer .btn-accent {
  width: 100%;
}

.btn-faq-widget {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(92, 42, 58, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(212, 162, 90, 0.18), rgba(196, 91, 98, 0.1)),
    rgba(255, 248, 246, 0.78);
  color: var(--rose, #5c2a3a);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(42, 31, 36, 0.07);
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-faq-widget:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(42, 31, 36, 0.1);
}

.share-net-hint {
  margin: 14px 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.share-net-actions {
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
}

.share-net-actions .btn.is-attach-hint {
  outline: 2px solid var(--accent, #c45c6a);
  outline-offset: 2px;
  animation: attach-hint-pulse 1.2s ease-in-out 2;
}

@keyframes attach-hint-pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 10px 0 12px;
  /* Opaque enough that scrolled content never shows through pills */
  background: rgba(243, 232, 234, 0.97);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(92, 42, 58, 0.12);
  box-shadow: 0 10px 28px rgba(42, 31, 36, 0.06);
}

/* Stick under notch / status bar when .app top padding is present */
@supports (padding: max(0px)) {
  .topbar {
    top: 0;
    padding-top: 10px;
  }
}

.topbar > .brand {
  min-width: 0;
}

.topbar .brand-word {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(48vw, 12.5rem);
}

.streak-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(240, 180, 41, 0.18);
  color: #7a5608;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
  font-size: 0.92rem;
  position: relative;
}

.streak-pill.is-hot {
  animation: streak-glow 1.8s ease-in-out infinite;
}

.streak-pill.is-pop {
  animation: streak-pop 0.55s var(--ease);
}

@keyframes streak-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 180, 41, 0.0); }
  50% { box-shadow: 0 0 0 6px rgba(240, 180, 41, 0.12); }
}

@keyframes streak-pop {
  0% { transform: scale(0.86); }
  55% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.streak-pill strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  display: inline-block;
  min-width: 1ch;
}

.today-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 28px 0 18px;
  position: relative;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.week-strip li {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(27, 58, 47, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.week-strip li.is-done {
  background: linear-gradient(145deg, var(--leaf-mid), var(--leaf));
  color: #f4faf6;
  animation: day-fill 0.45s var(--ease) both;
}

.week-strip li.is-today {
  outline: 2px solid rgba(240, 180, 41, 0.75);
  outline-offset: 2px;
  transform: translateY(-2px);
}

@keyframes day-fill {
  from { transform: scale(0.7); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--leaf-mid);
  animation: rise 0.4s var(--ease) both;
}

.challenge-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  max-width: 11ch;
  animation: title-in 0.65s var(--ease) both;
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(22px) rotate(-0.6deg);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
    filter: blur(0);
  }
}

.challenge-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  animation: rise 0.5s var(--ease) 0.08s both;
}

.progress-ring {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(27, 58, 47, 0.1);
  overflow: hidden;
}

.progress-ring > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--leaf-mid), var(--sun), var(--bloom));
  background-size: 200% 100%;
  border-radius: inherit;
  transition: width 0.7s var(--ease);
  animation: bar-flow 2.8s linear infinite;
}

@keyframes bar-flow {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: rgba(255, 255, 255, 0.45);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.badge.is-earned {
  color: var(--leaf);
  border-color: rgba(47, 107, 85, 0.35);
  background: rgba(47, 107, 85, 0.1);
  animation: badge-in 0.45s var(--ease) both;
}

@keyframes badge-in {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.done-burst {
  animation: burst 0.7s var(--ease) both;
}

@keyframes burst {
  0% { transform: scale(0.96); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.celebration {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: var(--leaf);
  animation: title-in 0.55s var(--ease) both;
}

.burst-layer {
  position: absolute;
  inset: 10% 0 auto;
  height: 180px;
  pointer-events: none;
  overflow: visible;
}

.burst-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  animation: spark 0.9s var(--ease) forwards;
}

.burst-dot:nth-child(2n) { background: var(--bloom); width: 6px; height: 6px; }
.burst-dot:nth-child(3n) { background: var(--leaf-mid); width: 10px; height: 10px; }

@keyframes spark {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1);
  }
}


.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}

.linkish {
  background: none;
  border: 0;
  color: var(--leaf-mid);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 58%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.account-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.account-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
}

.google-slot {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.auth-note {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 28ch;
}

.auth-note.is-error {
  color: #7a1f2e;
  font-weight: 600;
  max-width: 48ch;
}

.auth-note.is-ok {
  color: var(--leaf);
  font-weight: 600;
}

.profile-visible-notice {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(196, 91, 98, 0.35);
  background:
    linear-gradient(145deg, rgba(255, 244, 242, 0.98), rgba(255, 232, 228, 0.94));
  box-shadow: 0 10px 28px rgba(92, 42, 58, 0.1);
  max-width: 52ch;
}

.profile-visible-notice strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #5c2a3a;
  margin-bottom: 4px;
}

.profile-visible-notice p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.profile-visible-notice.is-urgent {
  border-color: rgba(196, 91, 98, 0.55);
  background:
    linear-gradient(145deg, rgba(255, 236, 230, 0.99), rgba(255, 220, 214, 0.96));
  animation: profile-notice-pulse 1.6s ease-in-out 2;
}

@keyframes profile-notice-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

.profile-visible-row {
  align-items: flex-start;
  gap: 12px;
}

.chat-notify-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-weight: 700;
  color: #5c2a3a;
  cursor: pointer;
  user-select: none;
}

.chat-notify-switch input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #8f4458;
}

.chat-notify-top {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(92, 42, 58, 0.2);
  background: rgba(255, 250, 248, 0.92);
  font-size: 0.85rem;
  font-weight: 650;
  gap: 5px;
}

.chat-notify-top .chat-notify-yesno {
  min-width: 1.4em;
}

.chat-notify-top .chat-notify-label {
  font-weight: 650;
}

.home-chats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.home-chats-head .rail-kicker {
  margin: 0;
}

#profile-alert-root {
  position: relative;
  z-index: 120;
}

.profile-alert-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 16, 22, 0.62);
  display: grid;
  place-items: center;
  padding: 20px 14px;
  overflow: auto;
}

.profile-alert {
  width: min(440px, 100%);
  border-radius: 22px;
  padding: 28px 22px 22px;
  background:
    linear-gradient(160deg, rgba(255, 248, 246, 0.99), rgba(255, 236, 232, 0.97));
  border: 1px solid rgba(92, 42, 58, 0.18);
  box-shadow: 0 28px 70px rgba(28, 16, 22, 0.35);
  text-align: center;
  animation: like-toast-in 0.35s var(--ease) both;
}

.profile-alert.is-error {
  border-color: rgba(196, 91, 98, 0.45);
}

.profile-alert.is-warn {
  border-color: rgba(212, 162, 90, 0.55);
}

.profile-alert-kicker {
  margin: 0 auto 10px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background: #c45b62;
}

.profile-alert.is-warn .profile-alert-kicker {
  background: #b8843a;
}

.profile-alert h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  color: var(--ink);
  line-height: 1.2;
}

.profile-alert-reason {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.profile-alert-ok {
  width: 100%;
  min-height: 48px;
  font-size: 1.05rem;
}

.settings-card {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
}

.field input[type="time"] {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--foam);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: inherit;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--leaf);
}

.user-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-block img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.user-block strong {
  display: block;
  font-size: 1.05rem;
}

.user-block span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.error-text {
  color: #b42318;
  font-size: 0.92rem;
  margin: 0;
}

.hook-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hook-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.35;
  animation: rise 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.hook-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--sun), var(--bloom));
}

.pitch {
  margin: 14px 0 0;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
  max-width: 28ch;
  font-weight: 600;
}

.play-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.play-card {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: grid;
  gap: 4px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.play-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 107, 85, 0.35);
  background: rgba(255, 255, 255, 0.78);
}

.play-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.play-card span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.play-card .play-card-note {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--leaf-mid);
}

.reflection-card {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(92, 42, 58, 0.16);
  background:
    linear-gradient(155deg, rgba(255, 248, 246, 0.95), rgba(232, 201, 208, 0.35));
  box-shadow: 0 10px 24px rgba(42, 31, 36, 0.06);
}

.reflection-card-kicker {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--leaf);
}

.reflection-story {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.reflection-plain-wrap {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.reflection-plain {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(92, 42, 58, 0.18);
  background: rgba(255, 252, 250, 0.95);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  resize: vertical;
  min-height: 7.5rem;
  white-space: pre-wrap;
}

.reflection-plain:focus {
  outline: 2px solid rgba(92, 42, 58, 0.35);
  outline-offset: 1px;
}

.reflection-story-widget {
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(92, 42, 58, 0.16);
  background:
    linear-gradient(155deg, rgba(255, 248, 246, 0.96), rgba(232, 201, 208, 0.4));
  box-shadow: 0 10px 24px rgba(42, 31, 36, 0.07);
  font: inherit;
  color: inherit;
}

button.reflection-story-widget {
  cursor: pointer;
  display: grid;
  gap: 4px;
}

button.reflection-story-widget strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--leaf);
}

.reflection-story-widget .reflection-share-actions {
  flex-wrap: wrap;
}

.reflection-card-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--leaf-mid);
}

.reflection-share-actions {
  margin-top: 12px;
  padding-top: 0;
}

.quiz-options.is-revealed .habit-option {
  cursor: default;
  opacity: 0.88;
}

.quiz-options .habit-option.is-correct {
  border-color: rgba(46, 125, 80, 0.55);
  background: rgba(72, 160, 110, 0.18);
  opacity: 1;
}

.quiz-options .habit-option.is-wrong {
  border-color: rgba(180, 60, 70, 0.45);
  background: rgba(196, 91, 98, 0.16);
  opacity: 1;
}

.play-best-banner {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(92, 42, 58, 0.16);
  background: rgba(255, 248, 246, 0.85);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--leaf);
  letter-spacing: -0.01em;
}

.play-best-banner.is-gain {
  border-color: rgba(143, 68, 88, 0.28);
  background:
    linear-gradient(145deg, rgba(212, 162, 90, 0.2), rgba(196, 91, 98, 0.12)),
    rgba(255, 248, 246, 0.9);
}

.lang-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.85);
  color: inherit;
}

.share-card {
  margin: 18px 0 0;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(212, 162, 90, 0.1)),
    rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
}

.h-sm {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.mood-share-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mood-share-tile {
  position: relative;
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: #fff7f5;
  background: #2a1f24;
  aspect-ratio: 4 / 5;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.mood-share-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mood-share-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 12, 16, 0.78) 100%);
  pointer-events: none;
}

.mood-share-tile:hover {
  transform: translateY(-2px);
}

.mood-share-tile.is-selected {
  border-color: var(--ink);
  box-shadow: 0 12px 28px rgba(42, 31, 36, 0.22);
}

.mood-share-meta {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.mood-share-rank {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.62rem;
  font-weight: 700;
}

.mood-share-meta strong {
  font-family: var(--font-display);
  font-size: clamp(0.58rem, 1.6vw, 0.78rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .mood-share-grid {
    gap: 6px;
  }

  .mood-share-tile {
    border-radius: 8px;
  }

  .mood-share-meta strong {
    font-size: 0.55rem;
  }
}

.mood-share-preview {
  margin: 16px 0 0;
  padding: 0;
  text-align: center;
}

.mood-share-preview img {
  width: min(300px, 78vw);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(42, 31, 36, 0.2);
  animation: rise 0.4s var(--ease) both;
}

.mood-share-preview figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.vibe-line {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.vibe-line strong {
  color: var(--leaf);
  font-family: var(--font-display);
}

.vibe-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(196, 91, 98, 0.16), rgba(212, 162, 90, 0.2));
  color: #7a3a42;
  border-radius: 999px;
  padding: 0.4rem 0.75rem 0.4rem 0.7rem;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid rgba(196, 91, 98, 0.2);
}

.vibe-pill.is-lit {
  animation: streak-glow 2.2s ease-in-out infinite;
}

.vibe-pill-heart {
  display: inline-block;
  color: #c45b62;
  line-height: 1;
  font-size: 0.95rem;
}

.vibe-pill.is-lit .vibe-pill-heart {
  color: #b44952;
}

/* Compact header ECG (~80×20) — scrolling PQRST trace */
.vibe-ecg {
  display: block;
  width: 80px;
  height: 20px;
  flex: 0 0 80px;
  overflow: hidden;
  color: #c45b62;
  opacity: 0.92;
}

.vibe-pill.is-lit .vibe-ecg {
  color: #b44952;
  opacity: 1;
}

.vibe-ecg-scroll {
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: vibe-ecg-scroll 2.5s linear infinite;
}

.vibe-ecg-path {
  vector-effect: non-scaling-stroke;
}

@keyframes vibe-ecg-scroll {
  from {
    transform: translate(0, 0);
  }
  to {
    /* Path is two cycles wide; -50% shifts exactly one PQRST cycle. */
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vibe-ecg-scroll {
    animation: none;
  }
}

.vibe-pill strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1;
}

.vibe-hero {
  margin: 4px 0 2px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(212, 162, 90, 0.16), rgba(196, 91, 98, 0.12)),
    rgba(255, 248, 246, 0.62);
  border: 1px solid rgba(196, 91, 98, 0.22);
  box-shadow: 0 10px 28px rgba(42, 31, 36, 0.06);
  animation: rise 0.45s var(--ease) both;
}

.vibe-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

.vibe-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
  color: #9a5a12;
}

.vibe-score {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.vibe-title {
  margin: 6px 0 0;
  font-weight: 700;
  color: var(--leaf);
}

.vibe-next {
  text-align: right;
  display: grid;
  gap: 2px;
}

.vibe-next strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--bloom);
}

.vibe-bar {
  margin-top: 12px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(27, 58, 47, 0.1);
  overflow: hidden;
}

.vibe-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bloom), var(--sun), #f7d56a);
  background-size: 200% 100%;
  animation: bar-flow 2.4s linear infinite;
  transition: width 0.55s var(--ease);
}

.vibe-nudge {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.35;
}

.purpose-banner {
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(92, 42, 58, 0.94), rgba(143, 68, 88, 0.9)),
    var(--leaf);
  color: #fff7f5;
  box-shadow: 0 14px 34px rgba(92, 42, 58, 0.22);
  animation: rise 0.5s var(--ease) both;
}

.purpose-title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(212, 162, 90, 0.95);
}

.purpose-body {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.6vw, 1.35rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 28ch;
}

.mood-grid {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.mood-btn {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--foam);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: grid;
  gap: 4px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.mood-btn.is-selected {
  border-color: var(--leaf-mid);
  background: rgba(47, 107, 85, 0.12);
  transform: translateX(2px);
}

.mood-btn strong {
  font-family: var(--font-display);
}

.mood-btn span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.tip-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
}

.game-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 24px 0;
  position: relative;
}

.spark-field {
  position: relative;
  margin-top: 12px;
  flex: 1;
  min-height: 58svh;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 20%, rgba(240, 180, 41, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.45);
  overflow: hidden;
  touch-action: manipulation;
}

.spark-orb {
  position: absolute;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 35% 30%, #fff6c8 0%, var(--sun) 42%, #e07a2f 100%);
  box-shadow:
    0 10px 28px rgba(224, 122, 47, 0.35),
    0 0 0 6px rgba(240, 180, 41, 0.18);
  animation: spark-bob 1.1s ease-in-out infinite;
  transform: translate3d(0, 0, 0);
}

.spark-orb.spark-heart {
  width: 82px;
  height: 74px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(196, 74, 90, 0.35));
}

.spark-orb.spark-heart::before,
.spark-orb.spark-heart::after {
  content: "";
  position: absolute;
  top: 0;
  width: 42px;
  height: 66px;
  border-radius: 42px 42px 0 0;
  background: linear-gradient(160deg, #f0b429 0%, #e07a2f 55%, #c44a5a 100%);
}

.spark-orb.spark-heart::before {
  left: 40px;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.spark-orb.spark-heart::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

.spark-orb.is-pop {
  animation: spark-pop 0.16s var(--ease);
}

@keyframes spark-bob {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes spark-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

.pair-stage {
  position: relative;
  margin-top: 12px;
  flex: 1;
  min-height: 42svh;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, rgba(196, 91, 98, 0.14), transparent 42%),
    radial-gradient(circle at 18% 80%, rgba(212, 162, 90, 0.16), transparent 40%),
    rgba(255, 248, 246, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 16px;
  touch-action: pan-y;
  user-select: none;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.pair-stage.is-ok {
  border-color: rgba(92, 42, 58, 0.35);
  box-shadow: 0 0 0 3px rgba(143, 68, 88, 0.18);
}

.pair-stage.is-bad {
  border-color: rgba(196, 91, 98, 0.45);
  animation: pair-shake 0.28s var(--ease);
}

.pair-stage.is-swipe-right .pair-hearts {
  transform: translateX(18px) rotate(3deg);
}

.pair-stage.is-swipe-left .pair-hearts {
  transform: translateX(-18px) rotate(-3deg);
}

.pair-hearts {
  display: flex;
  gap: clamp(14px, 5vw, 28px);
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease);
}

.pair-heart {
  width: min(42vw, 148px);
  height: min(42vw, 148px);
  max-width: 148px;
  max-height: 148px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  background:
    linear-gradient(155deg, rgba(255, 248, 246, 0.95), rgba(232, 201, 208, 0.55));
  border: 1px solid rgba(92, 42, 58, 0.14);
  box-shadow: 0 14px 32px rgba(42, 31, 36, 0.1);
}

.pair-swipe-hint {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.pair-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.pair-btn-no,
.pair-btn-yes {
  min-height: 52px;
  border-radius: 16px;
}

@keyframes pair-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.faq-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(196, 91, 98, 0.28);
  box-shadow: 0 8px 22px rgba(42, 31, 36, 0.06);
}

.faq-q {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.faq-q::-webkit-details-marker,
.faq-q::marker {
  display: none;
  content: "";
}

.faq-q-text {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 1px;
}

.faq-q::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(196, 91, 98, 0.1);
  color: var(--leaf-mid);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
}

.faq-item[open] > .faq-q::after {
  content: "–";
}

.faq-a {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(42, 31, 36, 0.06);
}

.faq-a p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 1rem;
}

@media (max-width: 720px) {
  .faq-list {
    gap: 14px;
    margin-top: 18px;
  }

  .faq-q {
    min-height: 52px;
    padding: 16px 16px;
    font-size: 1.05rem;
    gap: 14px;
  }

  .faq-q::after {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  .faq-a {
    padding: 0 16px 18px;
  }

  .faq-a p {
    margin-top: 14px;
    font-size: 1.02rem;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* —— Profile / matching —— */
.profile-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 18px;
}

.profile-top-copy {
  flex: 1;
  min-width: 0;
}

.profile-top-copy h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
}

.profile-top-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.4;
}

.profile-upload-btn {
  display: inline-flex;
  cursor: pointer;
  margin-top: 4px;
}

.profile-photo-preview {
  width: 112px;
  height: 112px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(92, 42, 58, 0.18), rgba(212, 162, 90, 0.2));
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.8rem;
  color: var(--rose, #5c2a3a);
  order: 0; /* uvijek lijevo / na vrhu */
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 420px) {
  .profile-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-photo-preview {
    width: 96px;
    height: 96px;
  }
}

.profile-form .field {
  margin-bottom: 14px;
}

.profile-form textarea,
.profile-form select,
.profile-form input[type="text"],
.profile-form input[type="number"] {
  width: 100%;
  border: 1px solid rgba(92, 42, 58, 0.18);
  background: rgba(255, 248, 246, 0.72);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
}

.age-range-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.age-range-row input {
  width: 5rem;
}

.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-chip {
  border: 1px solid rgba(92, 42, 58, 0.22);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.interest-chip.is-on {
  background: rgba(92, 42, 58, 0.9);
  border-color: transparent;
  color: #fff7f2;
}

.interest-chip.is-shared {
  box-shadow: 0 0 0 2px rgba(212, 162, 90, 0.55);
}

.interest-chip:active {
  transform: scale(0.97);
}

.discover-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 248, 246, 0.55);
  border: 1px solid rgba(92, 42, 58, 0.12);
}

.discover-photo {
  width: 96px;
  height: 96px;
  margin: 16px 16px 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #5c2a3a, #2a1520);
  flex-shrink: 0;
}

button.discover-photo-peek {
  display: block;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}

.discover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: discoverIn 0.45s ease both;
}

@keyframes discoverIn {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: none; }
}

.discover-meta {
  padding: 16px 16px 8px;
}

.discover-meta h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.discover-bio {
  margin: 10px 0;
  line-height: 1.45;
}

.discover-shared {
  margin: 0 0 10px;
  color: var(--accent, #d4a25a);
  font-weight: 600;
  font-size: 0.92rem;
}

.discover-checklist {
  margin: 12px 0 16px;
  padding-left: 1.2rem;
  color: var(--ink);
  line-height: 1.45;
}

.discover-checklist li {
  margin: 4px 0;
}

.discover-actions {
  display: flex;
  gap: 10px;
  padding: 8px 16px 16px;
}

.discover-actions .btn {
  flex: 1;
}

.match-flash {
  background: rgba(212, 162, 90, 0.2);
  border: 1px solid rgba(212, 162, 90, 0.45);
  color: var(--rose, #5c2a3a);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  animation: matchPop 0.4s ease both;
}

@keyframes matchPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 248, 246, 0.55);
  border: 1px solid rgba(92, 42, 58, 0.1);
}

.match-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(92, 42, 58, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.match-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-row strong {
  display: block;
}

/* —— Email auth —— */
.email-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(92, 42, 58, 0.12);
}

.email-auth-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.email-auth .field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.email-auth input {
  width: 100%;
  border: 1px solid rgba(92, 42, 58, 0.18);
  background: rgba(255, 248, 246, 0.72);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
}

.email-auth-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.email-auth-links .btn {
  justify-content: flex-start;
  padding-left: 0;
}

.match-row-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.match-row-main {
  display: flex;
  gap: 12px;
  align-items: center;
}

.match-row-peek {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 12px;
}

.match-row-peek:focus-visible {
  outline: 2px solid rgba(196, 91, 98, 0.45);
  outline-offset: 2px;
}

.match-row-peek .match-avatar,
.match-row-peek .krug-avatar {
  pointer-events: none;
}

.krug-sub {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.krug-panel-outgoing {
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(212, 162, 90, 0.14);
  border: 1px solid rgba(212, 162, 90, 0.38);
}

.krug-panel-outgoing .krug-sub {
  margin-top: 0;
}

.krug-panel-empty {
  margin: 0;
  font-size: 0.92rem;
}

.match-row.is-outgoing .btn {
  width: 100%;
}

.krug-streak {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.9rem;
  color: var(--rose, #5c2a3a);
  font-weight: 600;
}

.krug-streak .muted {
  font-weight: 500;
}

/* —— Today: mobile stack (center → right rail); desktop 3-col —— */
.today-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.today-rail {
  display: none;
}

/* Mobile: show Sviđa im se / Krug srca under the center column */
.today-rail-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  order: 3;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 248, 246, 0.55);
  border: 1px solid rgba(92, 42, 58, 0.1);
  box-shadow: 0 8px 22px rgba(42, 31, 36, 0.05);
}

.today-center {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  order: 1;
}

/* Mobile: Streak bonus + miss-day at very bottom (after likes/Krug) */
.today-rail-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  order: 4;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.today-rail-left .ritam-desktop-only {
  display: none;
}

.today-rail-left .ritam-foot-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.today-rail-left .ritam-bonus-block {
  margin-top: 0;
}

.today-activities-desktop {
  display: none;
}

.krug-member {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.krug-member .match-row-peek {
  align-items: flex-start;
}

.krug-member-extra {
  display: grid;
  gap: 6px;
}

.krug-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(92, 42, 58, 0.12);
  display: grid;
  place-items: center;
}

.krug-member.is-compact .krug-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.krug-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.krug-avatar-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--leaf, #5c2a3a);
}

.krug-member-meta {
  flex: 1;
  min-width: 0;
}

.krug-member-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  flex-wrap: wrap;
  font-size: 0.98rem;
}

.krug-member-name-text {
  min-width: 0;
}

.sub-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  min-width: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}

.sub-dot.is-active {
  background: #2e7d46;
  box-shadow: 0 0 0 2px rgba(46, 125, 70, 0.22);
}

.sub-dot.is-inactive {
  background: #c62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
}

.krug-member.is-compact .sub-dot {
  width: 0.5rem;
  height: 0.5rem;
  min-width: 0.5rem;
}

.krug-member-city {
  display: block;
  font-size: 0.85rem;
  margin-top: 2px;
}

.krug-rail-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.krug-rail-item {
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 248, 246, 0.5);
  border: 1px solid rgba(92, 42, 58, 0.08);
}

.rail-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.rail-checkin {
  width: 100%;
  text-align: left;
  margin-bottom: 12px;
}

.week-strip-rail {
  margin-bottom: 12px;
}

@media (min-width: 900px) {
  .app {
    width: min(1100px, 96vw);
  }

  .today-layout {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) minmax(220px, 260px);
    gap: 20px;
    align-items: start;
  }

  .today-rail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 248, 246, 0.45);
    border: 1px solid rgba(92, 42, 58, 0.1);
  }

  .today-rail-left {
    order: 1;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 248, 246, 0.45);
    border: 1px solid rgba(92, 42, 58, 0.1);
    box-shadow: none;
  }

  .today-rail-left .ritam-desktop-only {
    display: contents;
  }

  .today-rail-left .ritam-foot-notes {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .today-center {
    order: 2;
  }

  .today-rail-right {
    order: 3;
  }

  .week-strip-mobile,
  .week-strip-mobile-head {
    display: none;
  }

  .today-activities-mobile {
    display: none;
  }

  .today-activities-desktop {
    display: block;
  }

  .today-rail .vibe-hero {
    margin: 0 0 10px;
  }
}

.profile-avatar-left {
  margin-right: 4px;
}

.profile-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-main {
  min-width: 0;
  flex: 1;
  order: 2;
}

.profile-rail-right {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 248, 246, 0.45);
  border: 1px solid rgba(92, 42, 58, 0.1);
}

.incoming-likes-panel.has-likes .rail-kicker {
  color: var(--rose, #5c2a3a);
}

.like-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--rose, #5c2a3a);
  color: #fff8f6;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.home-krug-invite-banner {
  margin: 0 0 14px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(196, 91, 98, 0.4);
  background:
    linear-gradient(145deg, rgba(255, 242, 238, 0.99), rgba(255, 224, 218, 0.95));
  box-shadow: 0 12px 28px rgba(92, 42, 58, 0.12);
  animation: profile-notice-pulse 1.8s ease-in-out 2;
}

.home-krug-invite-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #5c2a3a;
  margin-bottom: 2px;
}

.home-krug-invite-copy p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
}

.home-krug-invite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-krug-invite-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 248, 246, 0.85);
  border: 1px solid rgba(92, 42, 58, 0.12);
}

.krug-outgoing-rail-panel {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 248, 246, 0.7);
  border: 1px dashed rgba(92, 42, 58, 0.2);
}

.home-chats-panel {
  order: -2;
  margin: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(255, 250, 248, 0.98), rgba(255, 236, 230, 0.92));
  border: 1px solid rgba(92, 42, 58, 0.18);
  box-shadow: 0 6px 18px rgba(92, 42, 58, 0.08);
}

.home-chats-panel.has-active {
  border-color: rgba(196, 91, 98, 0.28);
}

.home-chats-panel .rail-kicker {
  margin: 0;
  color: #5c2a3a;
}

.home-chats-list {
  margin: 0;
}

.home-chat-item {
  list-style: none;
}

.home-chat-item-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-chat-item-inner .home-chat-row {
  flex: 1;
  min-width: 0;
}

.home-chat-cancel {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 4px 10px;
  font-size: 0.8rem;
}

.home-chat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  padding: 6px 4px;
  margin: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  border-radius: 12px;
}

.home-chat-row:hover,
.home-chat-row:focus-visible {
  background: rgba(255, 248, 246, 0.9);
  outline: none;
}

.home-chat-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
}

.home-chat-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.home-chat-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.home-chat-status {
  font-size: 0.82rem;
  line-height: 1.3;
}

.home-chat-item.is-active .home-chat-status {
  color: #5c2a3a;
  font-weight: 600;
}

.krug-pending-panel {
  margin-top: 0;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 240, 236, 0.98), rgba(255, 228, 222, 0.94));
  border: 1px solid rgba(196, 91, 98, 0.32);
  box-shadow: 0 8px 22px rgba(92, 42, 58, 0.1);
  animation: profile-notice-pulse 1.8s ease-in-out 2;
  order: -1;
}

.krug-pending-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.krug-pending-head .rail-kicker {
  margin: 0;
  flex: 1;
}

.krug-pending-close {
  flex-shrink: 0;
  border: 0;
  background: rgba(255, 248, 246, 0.9);
  color: #5c2a3a;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(92, 42, 58, 0.16);
  cursor: pointer;
}

.krug-pending-close:hover {
  background: #fff;
}

.krug-pending-collapsed {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 248, 246, 0.75);
  border: 1px dashed rgba(196, 91, 98, 0.35);
}

.krug-pending-collapsed-copy {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.krug-pending-panel .rail-kicker {
  color: #5c2a3a;
  margin: 0;
}

.krug-pending-hint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink);
}

.krug-rail-item.is-krug-pending,
.match-row.is-krug-pending {
  border-color: rgba(196, 91, 98, 0.28);
}

.krug-panel-incoming.has-invites {
  border: 1px solid rgba(196, 91, 98, 0.28);
  border-radius: 16px;
  padding: 12px 12px 4px;
  background: linear-gradient(145deg, rgba(255, 244, 240, 0.9), rgba(255, 236, 230, 0.75));
}

.incoming-like-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.incoming-like-actions {
  display: flex;
  gap: 8px;
}

.incoming-like-actions .btn {
  flex: 1;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.incoming-likes-empty {
  margin: 0;
  font-size: 0.9rem;
}

.rail-section {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-empty-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 14px 12px 12px;
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(212, 162, 90, 0.16), rgba(196, 91, 98, 0.1)),
    rgba(255, 248, 246, 0.72);
  border: 1px solid rgba(92, 42, 58, 0.12);
  box-shadow: 0 8px 22px rgba(42, 31, 36, 0.06);
}

.rail-empty-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px 0 4px;
  min-height: 40px;
}

.rail-empty-avatar {
  width: 36px;
  height: 36px;
  margin-left: -10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--rose, #5c2a3a);
  background:
    linear-gradient(145deg, rgba(255, 248, 246, 0.95), rgba(212, 162, 90, 0.28));
  border: 1.5px solid rgba(255, 248, 246, 0.9);
  box-shadow: 0 4px 12px rgba(42, 31, 36, 0.1);
  animation: rise 0.45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

.rail-empty-avatar:first-child {
  margin-left: 0;
}

.rail-empty-title {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
}

.rail-empty-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
}

.rail-empty-cta {
  width: 100%;
  margin-top: 2px;
}

.rail-krug-all {
  width: 100%;
}

.today-rail-right .rail-kicker,
.profile-rail-right .rail-kicker {
  letter-spacing: 0.08em;
}

.incoming-likes-panel.is-empty .rail-kicker {
  margin-bottom: 6px;
}

@media (min-width: 900px) {
  .profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    gap: 20px;
    align-items: start;
  }

  .profile-main {
    order: 1;
  }

  .profile-rail-right {
    order: 2;
    position: sticky;
    top: 12px;
  }
}

.ritam-me {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
}

.ritam-me-avatar {
  width: 36px;
  height: 36px;
}

.ritam-me-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}

.sub-status-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sub-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.sub-status.is-active {
  background: rgba(46, 125, 70, 0.12);
  color: #2e7d46;
}

.sub-status.is-inactive {
  background: rgba(92, 42, 58, 0.12);
  color: var(--leaf);
}

.sub-remain {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.sub-status-hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.play-card.is-locked {
  opacity: 0.72;
  cursor: not-allowed;
  border-style: dashed;
}

.ritam-week-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 0;
}

.ritam-week-head .rail-kicker {
  margin: 0;
}

.ritam-streak-count {
  margin: 0;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--rose, #5c2a3a);
  white-space: nowrap;
}

.ritam-streak-bonus {
  margin: 2px 0 6px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft);
  font-weight: 600;
}

.ritam-bonus-block {
  margin-top: auto;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(196, 91, 98, 0.18), rgba(212, 162, 90, 0.2)),
    rgba(255, 248, 246, 0.88);
  border: 1px solid rgba(196, 91, 98, 0.32);
  box-shadow: 0 10px 24px rgba(42, 31, 36, 0.08);
}

.ritam-bonus-kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 700;
  color: #9a5a12;
}

.ritam-bonus-lead {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--rose, #5c2a3a);
}

.ritam-bonus-body {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

#streak-toast-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 0 16px;
}

.streak-toast {
  pointer-events: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(92, 42, 58, 0.94);
  color: #fff8f6;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 32px rgba(28, 16, 22, 0.28);
  animation: rise 0.35s var(--ease) both;
}

/* Incoming like + BIO update — prominent in-app notice */
#like-toast-root {
  position: fixed;
  left: 0;
  right: 0;
  top: max(16px, env(safe-area-inset-top));
  z-index: 120;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 0 14px;
}

.like-toast {
  pointer-events: auto;
  appearance: none;
  border: 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(440px, 100%);
  padding: 14px 16px;
  border-radius: 18px;
  text-align: left;
  color: #fff7f5;
  background:
    linear-gradient(145deg, rgba(92, 42, 58, 0.97) 0%, rgba(143, 68, 88, 0.94) 55%, rgba(92, 42, 58, 0.98) 100%);
  box-shadow:
    0 18px 40px rgba(42, 31, 36, 0.28),
    inset 0 1px 0 rgba(255, 247, 245, 0.14);
  animation: like-toast-in 0.45s var(--ease) both;
}

.like-toast.is-bio {
  background:
    linear-gradient(145deg, rgba(46, 90, 58, 0.96) 0%, rgba(92, 42, 58, 0.94) 60%, rgba(46, 90, 58, 0.95) 100%);
}

.like-toast.is-krug-invite {
  border-color: rgba(196, 91, 98, 0.35);
  background:
    linear-gradient(145deg, rgba(255, 248, 246, 0.98), rgba(255, 232, 226, 0.96));
}

.like-toast.is-chat {
  cursor: default;
  background:
    linear-gradient(145deg, rgba(36, 72, 110, 0.98) 0%, rgba(92, 42, 58, 0.95) 55%, rgba(36, 72, 110, 0.97) 100%);
  box-shadow:
    0 22px 48px rgba(24, 40, 64, 0.35),
    0 0 0 2px rgba(255, 247, 245, 0.18),
    inset 0 1px 0 rgba(255, 247, 245, 0.16);
  animation: like-toast-in 0.45s var(--ease) both, chat-toast-pulse 1.8s ease-in-out 0.45s 3;
}

.like-toast-actions {
  display: grid;
  gap: 6px;
}

.like-toast-cta.is-ghost {
  background: transparent;
  color: #fff7f5;
  border: 1px solid rgba(255, 247, 245, 0.45);
}

@keyframes chat-toast-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

.like-toast-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 247, 245, 0.94);
  color: var(--leaf);
  font-weight: 800;
  flex: 0 0 auto;
}

.like-toast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.like-toast-fallback {
  font-size: 1.15rem;
}

.like-toast-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.like-toast-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.like-toast-body {
  font-size: 0.86rem;
  opacity: 0.86;
  line-height: 1.3;
}

.like-toast-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7f5;
  color: var(--leaf);
  white-space: nowrap;
}

@keyframes like-toast-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.match-profile-extras {
  display: grid;
  gap: 8px;
  padding: 4px 0 2px;
  width: 100%;
}

.match-profile-extras.has-bio-fresh,
.match-row.has-bio-fresh,
.krug-member.has-bio-fresh {
  outline: 1px solid rgba(92, 42, 58, 0.22);
  outline-offset: 2px;
  border-radius: 14px;
}

.bio-fresh-badge {
  display: inline-flex;
  align-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff7f5;
  background: rgba(92, 42, 58, 0.88);
}

.bio-fresh-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 6px;
  border-radius: 50%;
  background: #d4a25a;
  box-shadow: 0 0 0 3px rgba(212, 162, 90, 0.28);
  vertical-align: middle;
  animation: bio-fresh-pulse 1.4s var(--ease) infinite;
}

@keyframes bio-fresh-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

.krug-last-seen {
  display: block !important;
  visibility: visible !important;
  opacity: 0.8;
  margin: 2px 0 0;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft, #6b5a60);
  white-space: normal;
}

.match-bio-snippet {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.match-bio-kicker {
  display: inline-block;
  margin-right: 4px;
  font-weight: 700;
  color: var(--rose, #5c2a3a);
}

.interest-grid.is-compact {
  gap: 6px;
}

.interest-grid.is-compact .interest-chip {
  font-size: 0.75rem;
  padding: 4px 8px;
}

.krug-panel-incoming .incoming-like-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}

.share-locked-hint {
  margin: 0;
  width: 100%;
}

.ritam-miss-day {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(92, 42, 58, 0.12);
}

.ritam-miss-day-title {
  display: block;
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rose, #5c2a3a);
  line-height: 1.3;
}

.ritam-miss-day-body {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

#profile-peek-root {
  position: relative;
  z-index: 80;
}

.profile-peek-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 16, 22, 0.55);
  display: grid;
  place-items: center;
  padding: 20px 14px;
  overflow: auto;
}

.profile-peek {
  position: relative;
  width: min(420px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 248, 246, 0.98), rgba(255, 240, 236, 0.96));
  border: 1px solid rgba(92, 42, 58, 0.14);
  box-shadow: 0 24px 60px rgba(28, 16, 22, 0.28);
  padding: 0 0 18px;
}

.profile-peek-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 248, 246, 0.88);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.profile-peek-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 360px;
  overflow: hidden;
  background: linear-gradient(160deg, #5c2a3a, #2a1520);
  display: grid;
  place-items: center;
}

.profile-peek-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-peek-fallback {
  font-size: 3rem;
  color: rgba(255, 248, 246, 0.85);
}

.profile-peek-meta {
  padding: 16px 18px 0;
}

.profile-peek-meta h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.profile-peek-actions {
  margin: 12px 0 4px;
}

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

.chat-screen {
  display: flex;
  flex-direction: column;
  min-height: min(100dvh, 900px);
  gap: 10px;
}

.chat-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chat-close-btn,
.chat-cancel-btn {
  color: #5c2a3a;
  border-color: rgba(92, 42, 58, 0.22);
}

.chat-head {
  margin-bottom: 0;
}

.chat-peer-bar {
  margin-top: 6px;
}

.chat-peer-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.chat-peer-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-peer-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-peer-status {
  font-size: 0.9rem;
}

.chat-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #5c2a3a, #8f4458);
  color: #fff7f5;
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
}

.chat-avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
  align-self: flex-end;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 2px 10px;
  min-height: 260px;
  max-height: min(68dvh, 720px);
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.chat-row.is-mine {
  align-self: stretch;
  justify-content: flex-end;
  width: 100%;
}

.chat-row.is-theirs {
  align-self: stretch;
  justify-content: flex-start;
  width: 100%;
}

.chat-empty,
.chat-locked {
  margin: 8px 0;
}

.chat-bubble {
  max-width: min(94%, 560px);
  padding: 11px 14px;
  border-radius: 16px;
  line-height: 1.45;
  overflow: visible;
  box-sizing: border-box;
}

.chat-row .chat-bubble {
  max-width: min(92%, 560px);
  flex: 0 1 auto;
  min-width: 0;
}

.chat-bubble p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: 1.02rem;
}

.chat-bubble.is-mine {
  align-self: flex-end;
  background: linear-gradient(145deg, #5c2a3a, #8f4458);
  color: #fff7f5;
  border-bottom-right-radius: 6px;
}

.chat-bubble.is-theirs {
  align-self: flex-start;
  background: rgba(255, 247, 245, 0.92);
  color: #2a1f24;
  border-bottom-left-radius: 6px;
}

.chat-compose-wrap {
  display: grid;
  gap: 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.chat-emoji-panel {
  display: none;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 247, 245, 0.96);
  border: 1px solid rgba(92, 42, 58, 0.14);
}

.chat-emoji-panel.is-open {
  display: grid;
}

.chat-emoji-btn {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 10px;
  min-height: 40px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.chat-emoji-btn:hover,
.chat-emoji-btn:focus-visible {
  background: rgba(92, 42, 58, 0.08);
  outline: none;
}

.chat-compose {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.chat-emoji-toggle {
  min-width: 44px;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(92, 42, 58, 0.18);
  background: rgba(255, 247, 245, 0.95);
  color: #5c2a3a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.chat-compose textarea {
  width: 100%;
  min-height: 48px;
  max-height: 160px;
  border-radius: 14px;
  border: 1px solid rgba(92, 42, 58, 0.18);
  padding: 12px 14px;
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.4;
  background: rgba(255, 247, 245, 0.95);
  color: #2a1f24;
  resize: none;
  overflow-y: auto;
  field-sizing: content;
}

@media (max-width: 520px) {
  .chat-emoji-panel {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .chat-bubble,
  .chat-row .chat-bubble {
    max-width: 94%;
  }
}

/* (referrerpolicy belongs on <img>, not CSS — kept empty on purpose) */

/* Hearts guide (/srca) + short benefit highlights */
.vibe-benefits-highlights li {
  font-weight: 650;
}

.vibe-benefits-more {
  margin: 12px 0 0;
}

.vibe-benefits-more a,
.benefit-line-link,
.faq-more-link {
  color: var(--leaf);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-highlights {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.faq-highlights li {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.35;
}

.faq-more {
  margin: 14px 0 0;
}

.hearts-guide-screen {
  padding-bottom: 2.5rem;
}

.hearts-guide-block {
  margin-top: 28px;
}

.hearts-guide-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.hearts-guide-sub {
  margin-top: 18px;
}

.hearts-guide-sub h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--leaf-mid);
  letter-spacing: 0.02em;
}

.hearts-guide-sub p,
.hearts-guide-note {
  margin: 0 0 10px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.hearts-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hearts-guide-list li {
  position: relative;
  padding: 10px 12px 10px 2.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 247, 245, 0.72);
  line-height: 1.4;
  animation: rise 0.4s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}

.hearts-guide-list li::before {
  content: "♥";
  position: absolute;
  left: 0.75rem;
  top: 0.7rem;
  color: var(--bloom);
  font-size: 0.85rem;
}

.hearts-guide-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 247, 245, 0.78);
}

.hearts-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hearts-guide-table th,
.hearts-guide-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.hearts-guide-table th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf-mid);
  background: rgba(92, 42, 58, 0.05);
}

.hearts-guide-table tr:last-child td {
  border-bottom: 0;
}

.hearts-guide-streak {
  margin-top: 20px;
}
