:root {
  --paper: #fbf8f2;
  --ink: #4d413c;
  --muted: #90817a;
  --rose: #b96f76;
  --line: #e9dfd5;
  --blush: #f3e5df;
  --serif: Georgia, "Songti SC", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b96f7680;
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
header {
  height: 100px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font: 23px var(--serif);
  font-weight: 600;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  font: 8px var(--sans);
  letter-spacing: 3px;
  margin-top: 7px;
  color: var(--muted);
}
.brand-icon {
  font-size: 39px;
  color: var(--rose);
  font-weight: 400;
}
nav {
  display: flex;
  gap: 30px;
  height: 100%;
  align-items: center;
}
nav a {
  position: relative;
  font-size: 13px;
  color: #887871;
  white-space: nowrap;
  padding: 14px 0;
}
nav a.active {
  color: var(--rose);
}
nav a.active:after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--rose);
  border-radius: 50%;
}
.account {
  border: 1px solid #cba29a;
  border-radius: 25px;
  padding: 12px 20px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--rose);
}
.account span {
  margin-left: 13px;
}
main {
  min-height: calc(100vh - 180px);
}
.hero {
  position: relative;
  padding: 66px 8% 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  overflow: hidden;
  background: #f8f1e8;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.14' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-text {
  position: relative;
  z-index: 1;
  animation: rise 0.7s both;
}
.hero-balloon {
  position: absolute;
  width: 78px;
  opacity: .6;
  pointer-events: none;
  animation: balloon-sway 7s ease-in-out infinite;
}
.hero-balloon svg { display: block; width: 100%; }
.balloon-left { left: -10px; bottom: 9%; }
.balloon-right { right: 10px; top: 22px; animation-delay: -3s; }
@keyframes balloon-sway {
  0%,100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}
.rose-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.rose-art { width: 100%; max-width: 360px; margin: auto; }
.rose-art svg { display: block; width: 100%; height: auto; }
.rose-copy h2 { margin: 18px 0 12px; font: 30px var(--serif); }
.rose-copy > p { color: var(--muted); line-height: 1.8; }
.rose-status { display: flex; gap: 18px; align-items: center; margin-top: 25px; }
.rose-status strong { color: var(--rose); font-weight: 500; }
.rose-status span { font-size: 12px; color: var(--muted); }
.rose-progress { display: flex; gap: 12px; margin: 18px 0; font-size: 23px; color: #d6c8bd; }
.rose-progress .grown { color: var(--rose); }
.rose-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.rose-actions .btn:disabled { opacity: .6; cursor: default; }
.motion-toggle { color: var(--muted); font-size: 11px; margin-top: 20px; text-decoration: underline; text-underline-offset: 4px; }
.rose-plant { transform-origin: 170px 252px; animation: rose-sway 6s ease-in-out infinite; }
.rose-grow { transform-origin: 170px 252px; transition: transform 1s ease, opacity .5s ease; }
.rose-stage-0 .rose-grow { opacity: 0; transform: scaleY(.1); }
.rose-stage-1 .rose-grow { transform: scaleY(.35); }
.rose-stage-2 .rose-grow { transform: scaleY(.75); }
.rose-stage-0 .rose-flower,
.rose-stage-1 .rose-flower,
.rose-stage-2 .rose-flower,
.rose-stage-3 .rose-bloom,
.rose-stage-4 .rose-bud { opacity: 0; }
.rose-seed { opacity: 0; }
.rose-stage-0 .rose-seed { opacity: 1; }
.watering-can { opacity: 0; transform-origin: 280px 88px; }
.watering .watering-can { animation: pour-water 2.2s ease both; }
.watering .water-drop { animation: water-drop 1s ease-in infinite; }
.watering .drop-two { animation-delay: .2s; }
.watering .drop-three { animation-delay: .4s; }
@keyframes rose-sway { 0%,100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes pour-water { 0%,100% { opacity: 0; transform: rotate(0); } 15%,75% { opacity: 1; transform: rotate(-12deg); } }
@keyframes water-drop { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translate(-20px,45px); } }
#romance-effects { position: fixed; inset: 0; z-index: 70; overflow: hidden; pointer-events: none; }
.romance-heart { position: absolute; bottom: -60px; color: #c77f89; font: 40px Georgia,serif; animation: heart-flight 3s ease-out both; }
.romance-heart:nth-child(1) { left: 8%; }
.romance-heart:nth-child(2) { left: 18%; animation-delay: .2s; font-size: 28px; }
.romance-heart:nth-child(3) { left: 28%; animation-delay: .5s; }
.romance-heart:nth-child(4) { left: 40%; animation-delay: .1s; font-size: 30px; }
.romance-heart:nth-child(5) { left: 50%; animation-delay: .4s; font-size: 50px; }
.romance-heart:nth-child(6) { left: 61%; animation-delay: .15s; }
.romance-heart:nth-child(7) { left: 72%; animation-delay: .55s; font-size: 27px; }
.romance-heart:nth-child(8) { left: 82%; animation-delay: .3s; }
.romance-heart:nth-child(9) { left: 92%; animation-delay: .6s; font-size: 28px; }
@keyframes heart-flight { 0% { opacity: 0; transform: translate(0,0) rotate(-12deg); } 15% { opacity: .8; } 100% { opacity: 0; transform: translate(-24px,-110vh) rotate(14deg); } }
.no-motion .hero-balloon,
.no-motion .rose-plant,
.no-motion .watering-can,
.no-motion .water-drop,
.no-motion .romance-heart { animation: none !important; }
.no-motion .watering-can { opacity: 0; }
@media (max-width: 760px) {
  .hero-balloon { width: 46px; opacity: .4; }
  .balloon-left { bottom: 45%; left: -12px; }
  .balloon-right { right: -7px; }
  .rose-section { grid-template-columns: 1fr; gap: 15px; }
  .rose-art { max-width: 260px; }
  .rose-copy h2 { font-size: 27px; }
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 10px;
  letter-spacing: 2.2px;
  color: var(--rose);
}
.eyebrow:before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--rose);
}
.anniversary {
  display: inline-flex;
  gap: 8px;
  border: 1px solid #e0c9bd;
  padding: 8px 13px;
  border-radius: 25px;
  color: #a07d6f;
  font-size: 11px;
  margin: 25px 0 19px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.3vw, 65px);
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 20px;
  letter-spacing: 3px;
}
h1 em {
  font-style: normal;
  color: var(--rose);
}
.hero-description {
  color: #8f7e73;
  font-size: 13px;
  line-height: 2.1;
  margin: 0 0 29px;
}
.btn {
  background: var(--rose);
  color: white;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.btn:hover {
  background: #a56068;
  transform: translateY(-2px);
}
.btn.outline {
  background: transparent;
  color: var(--rose);
  border: 1px solid #d6bbb0;
}
.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.text-link {
  font-size: 12px;
  color: #887871;
  padding: 10px 0;
}
.text-link:hover {
  color: var(--rose);
}
.hero-caption {
  font-size: 10px;
  letter-spacing: 1px;
  color: #a08c7f;
  margin-top: 28px;
}
.hero-caption span {
  color: var(--rose);
  margin: 0 7px;
}
.scene {
  position: relative;
  max-width: 530px;
  width: 100%;
  justify-self: center;
  animation: scene-in 1s both 0.12s;
}
.scene-frame {
  background: #fffcf7;
  padding: 13px 13px 44px;
  transform: rotate(2.5deg);
  box-shadow: 0 18px 45px #79523b15;
}
.scene-frame img {
  width: 100%;
  display: block;
}
.scene-label {
  position: absolute;
  bottom: 13px;
  left: 0;
  right: 0;
  text-align: center;
  font: italic 16px var(--serif);
  letter-spacing: 2px;
  color: #9b7b68;
}
.tape {
  position: absolute;
  z-index: 1;
  width: 100px;
  height: 30px;
  left: calc(50% - 50px);
  top: -13px;
  background: #c5b4a150;
  transform: rotate(-7deg);
  backdrop-filter: blur(2px);
}
.scene-badge {
  position: absolute;
  right: -20px;
  bottom: 70px;
  background: #fffcf4;
  padding: 14px 22px;
  transform: rotate(-7deg);
  box-shadow: 0 4px 18px #79523b0a;
  font: 15px var(--serif);
  color: #a97c6d;
  border: 1px solid #e7dacd;
}
.spark {
  position: absolute;
  left: -28px;
  top: 25px;
  font-size: 35px;
  color: #bf9880;
}
.day-strip {
  padding: 23px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  background: #fcf9f3;
}
.day-count {
  display: flex;
  align-items: center;
  gap: 18px;
}
.day-count strong {
  font: 36px var(--serif);
  color: var(--rose);
}
.day-count span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.day-count b {
  font-weight: 400;
  color: var(--ink);
}
.day-strip > p {
  font: 14px var(--serif);
  color: #9a8578;
}
.day-strip .star-sign {
  font-size: 11px;
  color: var(--muted);
}
.workspace {
  padding: 45px 8% 60px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.section-heading h2,
h2 {
  font: 27px var(--serif);
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0;
}
.section-heading p,
.subcopy {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 0;
  line-height: 1.8;
}
.section-heading .text-link {
  color: var(--rose);
}
.home-columns {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 65px;
}
.mood-picks {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 27px 0;
}
.mood-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 10px;
  transition: transform 0.2s;
}
.mood-pick:hover {
  transform: translateY(-5px);
}
.mood-pick .face {
  font-size: 27px;
  display: grid;
  place-items: center;
  background: #f1e9de;
  width: 49px;
  height: 49px;
  border-radius: 50%;
}
.mood-pick small {
  font-size: 11px;
  color: var(--muted);
}
.soft-note {
  padding: 21px 24px;
  background: #f0e7db;
  border-radius: 3px;
  font: 15px var(--serif);
  color: #8c7669;
  line-height: 1.8;
  position: relative;
}
.soft-note small {
  font: 10px var(--sans);
  display: block;
  margin-top: 8px;
  color: #a28e80;
}
.wish-preview {
  border-left: 1px solid var(--line);
  padding-left: 48px;
}
.wish-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.wish-icon {
  font-size: 22px;
  width: 35px;
  flex-shrink: 0;
  line-height: 1.7;
}
.wish-body {
  flex: 1;
}
.wish-body h3 {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 7px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.wish-body p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #a49287;
  margin-top: 10px;
}
.status {
  font-size: 10px;
  white-space: nowrap;
  padding: 5px 9px;
  background: #f4e6df;
  border-radius: 5px;
  color: #ad7e70;
}
.status.done {
  background: #e8ece0;
  color: #7e8a6b;
}
.page-header {
  padding: 58px 8% 40px;
  background: #f7efe5;
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-size: 44px;
  line-height: 1.3;
  margin: 15px 0;
}
.page-header p {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  margin: 0;
}
.page-tools {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 30px;
}
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-tabs button {
  padding: 10px 16px;
  color: var(--muted);
  font-size: 12px;
  border-radius: 20px;
}
.filter-tabs button.selected {
  background: var(--blush);
  color: var(--rose);
}
.entries {
  max-width: 900px;
  margin: auto;
}
.entries .wish-row {
  padding: 25px 0;
}
.row-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}
.row-actions button {
  font-size: 11px;
  color: var(--rose);
  padding: 5px 0;
}
.row-actions .delete {
  color: #9d8b80;
}
.empty {
  padding: 36px 22px;
  text-align: center;
  background: #f5eee5;
  border: 1px dashed #decfc0;
  border-radius: 5px;
  color: #928074;
  line-height: 1.9;
}
.empty .empty-symbol {
  font: 32px var(--serif);
  color: #bf8c83;
  display: block;
  margin-bottom: 10px;
}
.empty h3 {
  font: 18px var(--serif);
  margin: 0 0 9px;
}
.empty p {
  font-size: 12px;
  margin: 0 0 13px;
}
.empty .text-link {
  color: var(--rose);
}
.letter {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.letter-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #efe0d8;
  border-radius: 50%;
  color: var(--rose);
  font: 17px var(--serif);
}
.letter-top strong {
  font-size: 13px;
  font-weight: 400;
}
.letter-top small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.letter-content {
  font: 17px var(--serif);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 2;
  margin: 0;
}
.reply {
  margin-top: 18px;
  background: #f2e9df;
  border-left: 2px solid #d4aba0;
  padding: 15px 19px;
}
.reply p {
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0 0;
}
.reply strong {
  font-weight: 400;
  font-size: 11px;
  color: var(--rose);
}
.care-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}
.care-panel {
  padding-left: 40px;
  border-left: 1px solid var(--line);
}
.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.calendar-head h3 {
  font: 21px var(--serif);
  margin: 0;
}
.calendar-head button {
  padding: 9px 15px;
  color: var(--rose);
  font-size: 18px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}
.calendar-grid span {
  padding: 13px 4px;
  font-size: 12px;
}
.calendar-grid .week {
  font-size: 10px;
  color: var(--muted);
}
.calendar-grid .today {
  outline: 1px solid #bd7e80;
  border-radius: 50%;
  color: var(--rose);
}
.calendar-grid .period-day {
  background: #efd8d5;
  border-radius: 8px;
  color: var(--rose);
}
.calendar-legend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
}
.care-message {
  margin-top: 32px;
  background: #efe6da;
  padding: 25px;
  line-height: 1.9;
  color: #8c7868;
}
.care-message strong {
  font: 18px var(--serif);
}
.care-message p {
  font-size: 12px;
  margin-bottom: 0;
}
.period-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.period-row h3 {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 10px;
}
.period-row p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.privacy {
  font-size: 10px;
  color: var(--rose);
}
.date-feature {
  text-align: center;
  padding: 30px 0 55px;
  border-bottom: 1px solid var(--line);
}
.date-feature .large-number {
  font: 100px var(--serif);
  color: var(--rose);
  line-height: 1.2;
}
.date-feature p {
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}
.date-feature h2 {
  font-size: 30px;
  margin: 20px 0;
}
.date-line {
  padding: 32px 0;
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.date-line > span {
  font: 30px var(--serif);
  color: #b88d7c;
  min-width: 120px;
}
.date-line h3 {
  font: 20px var(--serif);
  margin: 0 0 9px;
}
.date-line p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.date-line small {
  font-size: 11px;
  margin-left: auto;
  color: var(--rose);
  white-space: nowrap;
}
.settings-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 32px;
}
footer {
  padding: 25px 8%;
  border-top: 1px solid var(--line);
  color: #a28e80;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
}
footer span:last-child {
  letter-spacing: 1.5px;
  font-size: 8px;
}
.cat-companion {
  position: fixed;
  bottom: 24px;
  right: 22px;
  width: 86px;
  z-index: 5;
  transition: transform 0.25s;
}
.cat-companion:hover {
  transform: rotate(-5deg) translateY(-4px);
}
.cat-companion svg {
  width: 74px;
  filter: drop-shadow(0 4px 5px #87644e18);
}
.cat-companion span {
  display: block;
  font-size: 10px;
  color: #a67d6c;
  margin-top: -7px;
}
.cat-companion.petted svg {
  animation: pet 0.55s;
}
.cat-message {
  position: fixed;
  right: 100px;
  bottom: 80px;
  padding: 15px 20px;
  background: #fffaf1;
  border: 1px solid #e5d5c4;
  border-radius: 15px 15px 0 15px;
  z-index: 6;
  font-size: 12px;
  color: #917363;
  max-width: 230px;
  line-height: 1.7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cat-message.show {
  opacity: 1;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 35px;
  transform: translate(-50%, 15px);
  background: #67534b;
  color: #fff9ee;
  padding: 14px 24px;
  z-index: 40;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 90vw;
  font-size: 12px;
  line-height: 1.7;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid #eadbd0;
  border-radius: 16px;
  background: #fffcf7;
  padding: 40px;
  width: min(480px, calc(100% - 32px));
  color: var(--ink);
  box-shadow: 0 25px 80px #60423b20;
  max-height: 90svh;
}
dialog[open] {
  animation: rise 0.25s;
}
dialog::backdrop {
  background: #57443a45;
  backdrop-filter: blur(5px);
}
.close {
  position: absolute;
  right: 17px;
  top: 14px;
  font-size: 25px;
  color: #a78d80;
  padding: 3px 8px;
}
.modal-kicker {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--rose);
  margin: 0 0 13px;
}
dialog h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
dialog .subcopy {
  margin-bottom: 22px;
}
.form-field {
  display: block;
  margin-bottom: 17px;
  font-size: 12px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: #fbf5ed;
  border: 1px solid #e1d3c6;
  padding: 12px 14px;
  border-radius: 7px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
}
.form-field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.8;
}
.field-pair {
  display: flex;
  gap: 16px;
}
.field-pair > * {
  flex: 1;
  min-width: 0;
}
.form-error {
  font-size: 12px;
  color: #aa4e58;
  line-height: 1.8;
  margin: 10px 0;
  min-height: 20px;
}
.full {
  width: 100%;
}
.checkbox {
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.8;
  align-items: center;
  margin: 15px 0;
}
.checkbox input {
  accent-color: var(--rose);
  width: 16px;
  height: 16px;
}
.fine-print {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
  margin: 15px 0 0;
}
.welcome-symbol {
  font-size: 28px;
  color: var(--rose);
  margin-bottom: 15px;
}
.dialog-actions {
  display: flex;
  gap: 15px;
  margin-top: 22px;
}
.refresh {
  font-size: 11px;
  color: var(--muted);
  padding: 8px;
}
.loading {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
.reveal {
  animation: rise 0.45s both;
}
.scroll-reveal {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: none;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scene-in {
  from {
    opacity: 0;
    transform: translateY(25px) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}
@keyframes pet {
  25% {
    transform: rotate(-9deg) translateY(-4px);
  }
  75% {
    transform: rotate(7deg);
  }
}
@media (min-width: 1600px) {
  .hero {
    padding-left: 12%;
    padding-right: 12%;
    gap: 100px;
  }
  .workspace,
  .day-strip,
  .page-header {
    padding-left: 12%;
    padding-right: 12%;
  }
}
@media (max-width: 1100px) {
  header {
    padding: 0 4%;
    gap: 14px;
  }
  nav {
    gap: 17px;
  }
  .brand {
    font-size: 20px;
  }
  .account {
    padding: 11px 15px;
  }
  .hero {
    padding: 58px 6%;
    gap: 40px;
  }
  .workspace,
  .day-strip,
  .page-header {
    padding-left: 6%;
    padding-right: 6%;
  }
  .home-columns {
    gap: 35px;
  }
  .wish-preview {
    padding-left: 30px;
  }
  .care-grid {
    gap: 30px;
  }
  .care-panel {
    padding-left: 25px;
  }
}
@media (max-width: 760px) {
  header {
    height: auto;
    min-height: 90px;
    padding: 20px 6% 0;
    flex-wrap: wrap;
    gap: 15px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-icon {
    font-size: 30px;
  }
  .brand small {
    font-size: 7px;
  }
  .account {
    margin-left: auto;
    font-size: 11px;
    padding: 9px 12px;
  }
  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 27px;
    padding: 0 0 9px;
    justify-content: space-between;
  }
  nav a {
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 35px 8% 42px;
  }
  .hero-text {
    padding: 0;
  }
  .eyebrow {
    font-size: 9px;
  }
  .anniversary {
    margin: 19px 0 16px;
  }
  h1 {
    font-size: 43px;
    line-height: 1.4;
  }
  .hero-description {
    font-size: 12px;
    margin-bottom: 23px;
  }
  .hero-caption {
    margin-top: 18px;
  }
  .scene {
    max-width: 410px;
    width: 92%;
  }
  .scene-badge {
    right: -10px;
    font-size: 13px;
    bottom: 50px;
    padding: 11px 15px;
  }
  .spark {
    font-size: 25px;
    left: -20px;
  }
  .day-strip {
    padding: 17px 6%;
    gap: 15px;
  }
  .day-strip > p {
    display: none;
  }
  .day-count {
    gap: 12px;
  }
  .day-count strong {
    font-size: 32px;
  }
  .star-sign {
    font-size: 10px !important;
  }
  .workspace {
    padding: 32px 6% 45px;
  }
  .home-columns {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .wish-preview {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 30px 0 0;
  }
  .section-heading h2,
  h2 {
    font-size: 25px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .mood-picks {
    margin: 20px 0;
  }
  .mood-pick {
    padding: 5px;
  }
  .mood-pick .face {
    width: 44px;
    height: 44px;
    font-size: 25px;
  }
  .page-header {
    padding: 32px 6% 27px;
  }
  .page-header h1 {
    font-size: 35px;
  }
  .page-tools {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 17px;
  }
  .page-tools .btn {
    font-size: 11px;
    padding: 11px 17px;
  }
  .filter-tabs button {
    padding: 8px 12px;
    font-size: 11px;
  }
  .care-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .care-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 27px 0 0;
  }
  .calendar-grid {
    gap: 5px;
  }
  .calendar-grid span {
    padding: 11px 2px;
  }
  .date-feature {
    padding-top: 10px;
  }
  .date-feature .large-number {
    font-size: 85px;
  }
  .date-line {
    gap: 15px;
    flex-wrap: wrap;
  }
  .date-line > span {
    font-size: 26px;
    min-width: 75px;
  }
  .date-line h3 {
    font-size: 18px;
  }
  .date-line small {
    font-size: 10px;
    margin-left: 90px;
  }
  .cat-companion {
    width: 67px;
    right: 10px;
    bottom: 15px;
  }
  .cat-companion svg {
    width: 60px;
  }
  .cat-message {
    right: 76px;
    bottom: 70px;
    font-size: 11px;
  }
  footer {
    padding: 23px 6% 75px;
    flex-direction: column;
    gap: 13px;
    font-size: 10px;
  }
  dialog {
    padding: 32px 25px;
  }
  .letter-content {
    font-size: 16px;
  }
  .empty {
    padding: 28px 18px;
  }
  .hero-actions {
    gap: 15px;
  }
  .btn {
    padding: 12px 20px;
  }
  .wish-row {
    gap: 10px;
  }
  .wish-icon {
    width: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

.care-grid + .section-heading {
  margin-top: 50px;
}
.date-feature .eyebrow {
  justify-content: center;
}
.date-letter {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
}
.scene-frame img {
  height: auto;
}
.admin-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 10px 0 32px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.admin-summary strong {
  display: block;
  font: 38px var(--serif);
  color: var(--rose);
  margin-bottom: 10px;
}
.admin-summary span {
  font-size: 12px;
  color: var(--muted);
}
.admin-tools,
.account-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.admin-record {
  margin: 24px 0;
}
.admin-chat-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.admin-chat-record {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.chat-question-text,
.chat-answer-text,
.chat-bubble {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.chat-answer-text {
  padding: 20px;
  background: var(--blush);
  border-radius: 12px;
  margin-top: 15px;
}
#chat-dialog {
  width: min(620px, calc(100% - 28px));
  max-width: calc(100% - 28px);
  max-height: calc(100dvh - 32px);
  padding: 30px;
}
.chat-notice {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  padding: 12px 14px;
  background: #f3e9df;
  border-radius: 10px;
  margin-bottom: 18px;
}
.chat-log {
  max-height: min(360px, 34dvh);
  min-height: 110px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 6px 4px 0;
}
.chat-bubble {
  padding: 14px 16px;
  border-radius: 15px;
  font-size: 13px;
  margin: 8px 0;
}
.from-user {
  margin-left: 36px;
  background: #f2dcdb;
  border-bottom-right-radius: 4px;
}
.from-cat {
  margin-right: 20px;
  background: #f2eae0;
  border-bottom-left-radius: 4px;
}
.chat-turn {
  margin-bottom: 20px;
}
.chat-turn time {
  display: block;
  text-align: right;
  font-size: 10px;
  color: var(--muted);
}
.chat-welcome {
  padding: 15px 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.chat-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}
.chat-starters button {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 12px;
  color: var(--rose);
  font-size: 11px;
}
#chat-question {
  min-height: 80px;
  max-height: 150px;
}
@media (max-width: 760px) {
  #chat-dialog {
    padding: 25px 20px;
  }
  .chat-log {
    max-height: 24dvh;
  }
}
.record-type {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--rose);
}
.admin-record .letter,
.admin-record .wish-row,
.admin-record .period-row {
  padding-top: 15px;
}
.admin-privacy {
  text-align: center;
  margin-top: 30px;
}
@media (min-width: 761px) and (max-width: 1024px) {
  .hero {
    gap: 30px;
    padding: 45px 6%;
  }
  h1 {
    font-size: 42px;
  }
  .hero-description {
    font-size: 12px;
  }
  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .home-columns {
    gap: 25px;
  }
  .wish-preview {
    padding-left: 25px;
  }
  .care-grid {
    grid-template-columns: 1.1fr 1fr;
  }
  nav {
    gap: 14px;
  }
}
@media (max-width: 760px) {
  .admin-summary {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 16px;
  }
  .admin-summary strong {
    font-size: 32px;
  }
  .admin-summary span {
    font-size: 10px;
  }
  .admin-tools {
    gap: 16px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 380px) {
  .hero h1 {
    font-size: 38px;
    letter-spacing: 2px;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions .btn {
    padding: 12px 16px;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
}

.rose-reminder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 24px;
  background: #f3e1d9;
  color: #885a61;
  font-size: 12px;
  line-height: 1.8;
}
.rose-reminder[hidden] { display: none; }
.rose-reminder button { flex-shrink: 0; }
.pet-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.pet-avatar { position: relative; width: 78px; flex-shrink: 0; }
.pet-avatar svg { width: 100%; display: block; }
.pet-avatar::after { content: '♡'; position: absolute; top: 0; right: 0; color: var(--rose); opacity: 0; }
.pet-avatar.petted svg { animation: pet 0.55s; }
.pet-avatar.petted::after { animation: pet-heart 1s ease-out; }
.pet-avatar.fed svg, .cat-companion.fed svg { animation: cat-meal 0.8s ease-in-out; }
.pet-avatar.fed::after { content: '🐟'; animation: pet-heart 1s ease-out; }
.pet-controls { min-width: 0; }
.pet-response { font-size: 12px; line-height: 1.8; margin: 0 0 6px; color: var(--rose); }
.pet-controls .fine-print { margin: 0 0 10px; line-height: 1.7; }
.pet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pet-actions button { border: 1px solid var(--line); border-radius: 18px; padding: 8px 12px; font-size: 12px; color: var(--rose); }
.pet-actions button:disabled { opacity: 0.6; cursor: default; }
@keyframes cat-meal { 25%, 75% { transform: translateY(4px) rotate(5deg); } 50% { transform: translateY(2px) rotate(-4deg); } }
@keyframes pet-heart { 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }
.no-motion .pet-avatar *, .no-motion .cat-companion.fed svg { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .pet-avatar *, .cat-companion.fed svg { animation: none; }
}
@media (max-width: 480px) {
  .pet-panel { gap: 10px; }
  .pet-avatar { width: 60px; }
  .pet-actions button { padding: 8px 10px; font-size: 11px; }
  .rose-reminder { justify-content: flex-start; padding: 10px 20px; }
}

/* A few continuous particles keep the home alive without covering its controls. */
#ambient-romance {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
#ambient-romance span { position: absolute; opacity: 0; }
.ambient-heart { bottom: -35px; font: 26px Georgia,serif; color: #c78992; animation: ambient-float 18s linear infinite; }
.ambient-petal { top: -24px; width: 12px; height: 19px; border-radius: 75% 20% 70% 25%; background: #dca0a8; animation: petal-drift 22s linear infinite; }
#ambient-romance span:nth-child(1) { left: 3%; animation-delay: -5s; }
#ambient-romance span:nth-child(2) { left: 10%; animation-delay: -12s; }
#ambient-romance span:nth-child(3) { left: 27%; animation-delay: -13s; font-size: 18px; }
#ambient-romance span:nth-child(4) { left: 44%; animation-delay: -3s; width: 8px; height: 14px; }
#ambient-romance span:nth-child(5) { left: 74%; animation-delay: -1s; font-size: 21px; }
#ambient-romance span:nth-child(6) { left: 81%; animation-delay: -19s; }
#ambient-romance span:nth-child(7) { left: 95%; animation-delay: -7s; width: 9px; height: 15px; }
#ambient-romance span:nth-child(8) { left: 97%; animation-delay: -9s; }
.cat-companion svg { transform-origin: center bottom; animation: cat-idle 5s ease-in-out infinite; }
footer .motion-toggle { margin-top: 0; white-space: nowrap; }
@keyframes ambient-float {
  0% { transform: translate(0,0) rotate(-12deg); opacity: 0; }
  12%,75% { opacity: .22; }
  50% { transform: translate(18px,-55vh) rotate(10deg); }
  100% { transform: translate(-12px,-115vh) rotate(-8deg); opacity: 0; }
}
@keyframes petal-drift {
  0% { transform: translate(0,0) rotate(0); opacity: 0; }
  10%,75% { opacity: .24; }
  50% { transform: translate(-22px,55vh) rotate(150deg); }
  100% { transform: translate(24px,115vh) rotate(300deg); opacity: 0; }
}
@keyframes cat-idle { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }
.page-hidden #ambient-romance span,
.page-hidden .hero-balloon,
.page-hidden .rose-plant,
.page-hidden .cat-companion svg { animation-play-state: paused; }
.no-motion *, .no-motion *::before, .no-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.no-motion #ambient-romance { display: none; }
.no-motion .scroll-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { #ambient-romance { display: none; } }
@media (max-width: 760px) {
  #ambient-romance span:nth-child(3), #ambient-romance span:nth-child(4), #ambient-romance span:nth-child(5) { display: none; }
  footer { flex-wrap: wrap; gap: 12px; }
}
