:root {
  --cream: #fff8e7;
  --cream-light: #fffdf6;
  --paper: #fffdf8;
  --ink: #4b382a;
  --muted: #8d7462;
  --wine: #e86f61;
  --wine-dark: #a94d43;
  --rose: #f5c94f;
  --olive: #88aa91;
  --line: rgba(75, 56, 42, 0.18);
  --honey: #f8ce60;
  --honey-light: #ffe9a5;
  --peach: #f8b8aa;
  --mint: #bfe2d6;
  --sky: #c7e4ef;
  --cocoa: #9c684a;
  --serif: "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --script: "Segoe Print", "Bradley Hand", "Segoe Script", cursive;
}

body {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(233, 191, 104, 0.2) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .gallery-section,
body[data-page="home"] .mood-section,
body[data-page="home"] #private,
body[data-page="home"] .private-zone {
  display: none;
}

body[data-private-view="hub"] .relationship-tools,
body[data-private-view="hub"] .anniversary,
body[data-private-view="hub"] .coupons,
body[data-private-view="hub"] .message-section {
  display: none;
}

.standalone-page {
  min-height: 100vh;
}

.standalone-page > :first-child {
  padding-top: 150px;
}

.private-page > .private-intro {
  padding-top: 145px;
}

.browse-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  padding: 7px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-light);
  font-size: 9px;
  font-weight: 800;
}

.browse-back:hover {
  background: var(--honey);
}

.anniversary-content .browse-back {
  position: absolute;
  top: 24px;
  left: 26px;
  margin: 0;
}

.user-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.user-background::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 248, 231, 0.22),
    rgba(255, 253, 248, 0.42)
  );
  content: "";
}

body.has-user-background .user-background {
  opacity: var(--user-background-opacity, 0.38);
}

body.has-user-background .hero {
  background:
    linear-gradient(rgba(255, 248, 231, 0.55), rgba(255, 245, 217, 0.72));
}

body.has-user-background .love-counter {
  background: rgba(248, 206, 96, 0.82);
}

body.has-user-background .story,
body.has-user-background .gallery-section,
body.has-user-background .mood-section,
body.has-user-background .relationship-tools,
body.has-user-background .weather-section,
body.has-user-background .coupons,
body.has-user-background .message-section {
  background-color: rgba(255, 248, 231, 0.78);
  background-image: none;
}

body.has-user-background .private-intro {
  background-color: rgba(248, 184, 170, 0.78);
}

body.has-user-background .private-zone {
  background: transparent;
}

.grain {
  opacity: 0.018;
}

.site-header {
  top: 14px;
  right: clamp(18px, 4vw, 60px);
  left: clamp(18px, 4vw, 60px);
  width: auto;
  padding: 10px 14px 10px 20px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.93);
  box-shadow: 0 5px 0 rgba(75, 56, 42, 0.12);
  backdrop-filter: blur(14px);
}

.site-header.scrolled {
  padding: 8px 14px 8px 20px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 5px 0 rgba(75, 56, 42, 0.12);
}

.monogram {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 18px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
}

.mono-bear {
  display: inline-grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--honey-light);
  place-items: center;
}

.mono-bear svg {
  width: 29px;
  height: 29px;
  overflow: visible;
}

.mono-bear img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.mono-bear circle,
.mono-bear path {
  fill: var(--cocoa);
  stroke: none;
}

.mono-bear .bear-inner {
  fill: #f8d34e;
}

.mono-bear .bear-face {
  fill: #a9714c;
}

.mono-bear .bear-dot {
  fill: var(--ink);
}

.mono-bear .bear-line {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.nav-links {
  gap: 5px;
  padding: 4px;
  border-radius: 18px;
  background: #f9efd8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links a {
  padding: 8px 15px;
  border-radius: 14px;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.is-current {
  background: var(--honey);
}

.icon-button,
.menu-button {
  border: 2px solid var(--ink);
  background: var(--cream-light);
}

.music-button {
  position: relative;
  overflow: visible;
}

.edit-button svg {
  width: 17px;
}

.edit-button.is-active {
  color: var(--ink);
  background: var(--honey);
}

.edit-toolbar {
  position: fixed;
  z-index: 280;
  right: clamp(12px, 3vw, 40px);
  bottom: 18px;
  left: clamp(12px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 14px 12px 21px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 8px 0 rgba(75, 56, 42, 0.18), 0 18px 50px rgba(75, 56, 42, 0.18);
  backdrop-filter: blur(14px);
}

.edit-toolbar[hidden] {
  display: none;
}

.edit-toolbar-copy {
  display: grid;
  gap: 1px;
}

.edit-toolbar-copy strong {
  color: var(--wine-dark);
  font-size: 11px;
  font-weight: 800;
}

.edit-toolbar-copy span {
  color: var(--muted);
  font-size: 9px;
}

.edit-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-toolbar-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.edit-reset,
.edit-cancel {
  background: var(--cream-light);
}

.edit-save {
  background: var(--honey);
}

body.is-editing [data-edit-id] {
  border-radius: 6px;
  outline: 1.5px dashed rgba(232, 111, 97, 0.7);
  outline-offset: 3px;
  cursor: text;
  transition: background 0.2s ease, outline-color 0.2s ease;
}

body.is-editing [data-edit-id]:hover {
  background: rgba(255, 233, 165, 0.35);
  outline-color: var(--wine);
}

body.is-editing [data-edit-id]:focus {
  outline: 2px solid var(--wine);
  background: rgba(255, 253, 248, 0.92);
}

body.is-editing img[data-image-id] {
  cursor: copy;
  outline: 4px dashed var(--honey);
  outline-offset: -9px;
}

body.is-editing .gallery-item {
  cursor: copy;
}

body.is-editing .gallery-item::before {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  padding: 6px 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #fffdf8;
  background: rgba(69, 45, 31, 0.78);
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
  transform: translate(-50%, -50%);
  content: "点击更换照片";
}

body.is-editing .gallery-item:not(.gallery-light)::after {
  pointer-events: none;
}

body.is-editing .arch-photo::after,
body.is-editing .photo-caption {
  pointer-events: none;
}

body.is-editing .arch-photo::before {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  padding: 7px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #fffdf8;
  background: rgba(69, 45, 31, 0.76);
  box-shadow: 0 4px 14px rgba(49, 34, 24, 0.2);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
  transform: translate(-50%, -50%);
  content: "点击更换照片";
}

body.is-editing img[data-image-id]:hover {
  outline-color: var(--wine);
}

.music-button svg {
  width: 18px;
}

.music-button.is-playing {
  color: var(--ink);
  background: var(--honey);
}

.music-pulse {
  position: absolute;
  top: -3px;
  right: -2px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--peach);
  opacity: 0;
  transform: scale(0.5);
}

.music-button.is-playing .music-pulse {
  opacity: 1;
  animation: musicPulse 1.2s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
}

.icon-button:hover,
.menu-button:hover {
  color: var(--ink);
  background: var(--honey);
}

.hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
  padding-top: 155px;
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 233, 165, 0.75) 0 8%, transparent 8.2%),
    radial-gradient(circle at 90% 12%, rgba(248, 184, 170, 0.34) 0 18%, transparent 18.2%),
    linear-gradient(180deg, #fff8e7, #fff5d9);
}

.hero::before {
  right: 42%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(75, 56, 42, 0.1) 0 6px,
    transparent 6px 13px
  );
}

.hero::after {
  position: absolute;
  right: -105px;
  bottom: -105px;
  width: 260px;
  height: 260px;
  border: 50px solid rgba(248, 206, 96, 0.4);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-orb-one {
  background: rgba(248, 184, 170, 0.3);
}

.hero-orb-two {
  background: rgba(191, 226, 214, 0.38);
}

.floating-word {
  color: rgba(100, 73, 53, 0.075);
  font-family: var(--script);
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border: 1.5px dashed var(--wine);
  border-radius: 999px;
  color: var(--wine-dark);
  background: rgba(255, 253, 248, 0.7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--honey);
}

.hero h1 {
  flex-wrap: nowrap;
  gap: 0.08em;
  font-family: "Microsoft YaHei UI Light", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(52px, 6.8vw, 110px);
  font-weight: 300;
  letter-spacing: -0.09em;
  line-height: 1.02;
  white-space: nowrap;
}

.hero h1 .hero-name {
  text-shadow: 3px 3px 0 rgba(248, 206, 96, 0.26);
}

.hero h1 em {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0 0.08em;
  border: 0;
  border-radius: 0;
  color: var(--wine-dark);
  background: transparent;
  font-family: Constantia, Georgia, serif;
  font-size: 0.54em;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  transform: translateY(-0.16em);
}

.hero-intro {
  max-width: 530px;
  margin-top: 29px;
  color: #705b4c;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.95;
}

.hero-meta {
  padding: 8px 14px;
  border: 1.5px dashed rgba(75, 56, 42, 0.25);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.62);
  font-size: 9px;
}

.meta-dot {
  background: var(--wine);
}

.primary-button {
  min-height: 50px;
  padding: 0 26px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-light);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 700;
}

.primary-button:hover {
  color: var(--ink);
  background: var(--honey);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.primary-button.dark {
  color: var(--ink);
  background: var(--honey);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.primary-button.dark:hover {
  color: var(--ink);
  background: #ffdc86;
  border-color: var(--ink);
}

.hero-visual {
  height: min(64vw, 690px);
}

.arch-photo {
  right: 6%;
  width: 76%;
  border: 8px solid var(--cream-light);
  border-bottom-width: 17px;
  border-radius: 190px 190px 28px 28px;
  box-shadow: 10px 10px 0 rgba(75, 56, 42, 0.13);
  transform: rotate(2deg);
}

.arch-photo::after {
  background: linear-gradient(to top, rgba(74, 49, 33, 0.28), transparent 35%);
}

.photo-caption {
  display: flex;
  align-items: center;
  gap: 0;
  right: 15px;
  bottom: 15px;
  color: var(--ink);
  background: var(--cream-light);
  padding: 4px 7px;
  border: 1.5px solid rgba(75, 56, 42, 0.18);
  border-radius: 14px;
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.caption-heads {
  display: flex;
  align-items: center;
  gap: 2px;
}

.caption-bear-head {
  width: 34px;
  height: auto;
}

.caption-chick-head {
  width: 24px;
  height: auto;
}

.polaroid {
  bottom: 3%;
  left: 0;
  padding: 9px 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--cream-light);
  box-shadow: 6px 6px 0 rgba(75, 56, 42, 0.16);
}

.polaroid img {
  border-radius: 10px;
}

.polaroid p {
  color: var(--ink);
  font-size: 16px;
}

.tape {
  width: 70px;
  height: 24px;
  border-radius: 2px;
  background: rgba(248, 206, 96, 0.76);
}

.hero-stamp {
  top: 3%;
  left: -2%;
  width: 104px;
  height: 104px;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--honey-light);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-stamp text {
  fill: var(--ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.stamp-heart {
  stroke-width: 2;
}

.handwritten-note {
  right: -4%;
  bottom: 4%;
  color: var(--wine-dark);
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 21px);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  transform: rotate(-4deg);
}

.bear-mascot {
  position: absolute;
  z-index: 5;
  top: 24%;
  left: -7%;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 145px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bear-mascot > svg {
  width: 136px;
  overflow: visible;
  filter: drop-shadow(5px 6px 0 rgba(75, 56, 42, 0.12));
  transition: transform 0.25s ease;
}

.bear-mascot:hover > svg {
  transform: rotate(-4deg) scale(1.04);
}

.bear-mascot > span {
  margin-top: -7px;
  padding: 5px 11px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--cream-light);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transform: rotate(-3deg);
}

.bear-shadow {
  fill: #7f533b;
}

.bear-body,
.bear-head,
.bear-ear,
.bear-arm,
.bear-leg {
  fill: #a9714c;
}

.bear-ear-inner {
  fill: #fffdf8;
}

.bear-ear-inner {
  fill: #f8d34e;
}

.bear-muzzle {
  fill: #a9714c;
}

.bear-belly {
  fill: #fffdf8;
}

.bear-eye {
  fill: var(--ink);
}

.bear-mouth,
.bear-paw,
.bear-zipper {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.bear-nose {
  fill: var(--ink);
}

.bear-blush {
  fill: #ee9388;
  opacity: 0.8;
}

.bear-button {
  fill: var(--honey);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.bear-crew {
  position: absolute;
  z-index: 4;
  top: 23%;
  left: 90px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  transform: rotate(4deg);
}

.friend-chick {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 44% 44%;
  background: #f5d837;
  box-shadow: 3px 3px 0 rgba(75, 56, 42, 0.12);
}

.friend-chick i,
.friend-chick b {
  position: absolute;
  top: 14px;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
}

.friend-chick i {
  left: 9px;
}

.friend-chick b {
  right: 9px;
}

.friend-chick::after {
  position: absolute;
  top: 23px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  border-top: 7px solid #ed9843;
  content: "";
  transform: translateX(-50%);
}

.friend-chick::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 55% 0 55% 0;
  background: var(--ink);
  content: "";
  transform: translateX(-50%) rotate(25deg);
}

.bear-heart-particle {
  position: absolute;
  z-index: 8;
  top: 45%;
  left: 50%;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 20px;
  pointer-events: none;
  animation: bearHeartFloat 1.2s ease-out forwards;
}

@keyframes bearHeartFloat {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift)), -130px) scale(1.4) rotate(var(--spin));
  }
}

.scroll-cue {
  color: var(--ink);
  font-weight: 700;
}

.love-counter {
  padding: 44px clamp(20px, 5vw, 80px) 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 24%, rgba(255, 255, 255, 0.3) 0 34px, transparent 35px),
    radial-gradient(circle at 91% 75%, rgba(255, 255, 255, 0.22) 0 48px, transparent 49px),
    var(--honey);
}

.counter-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px clamp(28px, 4vw, 60px);
  border: 3px solid var(--ink);
  border-radius: 34px;
  color: var(--ink);
  background: var(--cream-light);
  box-shadow: 8px 8px 0 rgba(75, 56, 42, 0.17);
}

.mini-title {
  color: var(--wine-dark);
  font-size: 8px;
  font-weight: 800;
}

.counter-label p {
  font-size: 19px;
  font-weight: 800;
}

.time-grid > div:not(:last-child)::after {
  color: rgba(75, 56, 42, 0.24);
}

.time-grid strong {
  color: var(--wine-dark);
  font-weight: 800;
}

.time-grid span,
.counter-note p {
  color: var(--muted);
}

.counter-note .tiny-heart {
  color: var(--wine);
}

.marquee {
  margin: 28px -80px 0;
  padding: 11px 0;
  color: var(--ink);
  background: var(--peach);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-0.7deg);
}

.marquee span {
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.section {
  padding: clamp(95px, 10vw, 145px) clamp(24px, 7vw, 120px);
}

.section-heading {
  max-width: 1310px;
  margin-right: auto;
  margin-left: auto;
}

.section-heading h2,
.message-intro h2,
.modal-card h2,
.private-intro h2 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.065em;
}

.section-heading h2 em,
.message-intro h2 em,
.private-intro h2 em {
  position: relative;
  color: var(--wine-dark);
  font-style: normal;
  white-space: nowrap;
}

.section-heading h2 em::after,
.message-intro h2 em::after,
.private-intro h2 em::after {
  position: absolute;
  z-index: -1;
  right: -3px;
  bottom: 5px;
  left: -3px;
  height: 10px;
  border-radius: 999px;
  background: var(--honey);
  content: "";
  transform: rotate(-1.5deg);
}

.section-lead {
  padding: 17px 19px;
  border: 1.5px dashed rgba(75, 56, 42, 0.3);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.65);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.85;
}

.story {
  background:
    radial-gradient(circle at 93% 18%, rgba(248, 184, 170, 0.22) 0 100px, transparent 101px),
    var(--cream-light);
}

.story-layout {
  max-width: 1310px;
  margin: 0 auto;
}

.story-image > img {
  border: 5px solid white;
  border-radius: 34px;
  box-shadow: 8px 8px 0 #f0dfc2;
}

.image-index {
  top: 33px;
  left: 33px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  font-weight: 800;
}

.quote-card {
  right: -30px;
  bottom: -30px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  color: var(--ink);
  background: var(--peach);
  box-shadow: 6px 6px 0 rgba(75, 56, 42, 0.14);
}

.quote-card span {
  color: var(--wine-dark);
}

.quote-card p {
  font-family: var(--sans);
  font-weight: 650;
}

.timeline-item h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 800;
}

.timeline-item time {
  color: var(--wine-dark);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 800;
}

.timeline-item time::after {
  background: var(--honey);
  box-shadow: 0 0 0 1px var(--ink);
  border-color: var(--cream-light);
}

.timeline-item > div {
  border-left: 1.5px dashed rgba(75, 56, 42, 0.2);
}

.timeline-item p {
  font-family: var(--sans);
}

.gallery-section {
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.7), rgba(255, 248, 231, 0.8)),
    radial-gradient(rgba(233, 191, 104, 0.22) 1px, transparent 1.3px);
  background-size: auto, 21px 21px;
}

.gallery-grid {
  max-width: 1310px;
  margin: 0 auto;
  grid-auto-rows: 280px;
  gap: 22px;
}

.gallery-item {
  overflow: hidden;
  border: 4px solid white;
  border-radius: 27px;
  box-shadow: 6px 6px 0 rgba(75, 56, 42, 0.11);
  touch-action: manipulation;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 8px 8px 0 rgba(75, 56, 42, 0.16);
  transform: translateY(-4px) rotate(0.4deg);
}

.gallery-item::after {
  background: linear-gradient(to top, rgba(54, 40, 30, 0.66), transparent 58%);
}

.gallery-add-card {
  display: grid;
  min-height: 100%;
  padding: 24px;
  border: 3px dashed rgba(103, 72, 51, 0.38);
  border-radius: 27px;
  color: var(--wine-dark);
  background:
    radial-gradient(circle at 80% 16%, rgba(248, 206, 96, 0.34), transparent 32%),
    rgba(255, 252, 243, 0.92);
  cursor: pointer;
  place-content: center;
  text-align: center;
  touch-action: manipulation;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.gallery-add-card:hover {
  border-color: var(--wine);
  background-color: #fff5dc;
  transform: translateY(-3px);
}

.gallery-add-card > span {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  place-items: center;
}

.gallery-add-card > strong {
  font-family: var(--serif);
  font-size: 20px;
}

.gallery-add-card > small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.gallery-custom-item {
  position: relative;
  cursor: zoom-in;
}

.gallery-custom-remove {
  position: absolute;
  z-index: 7;
  top: 10px;
  right: 10px;
  display: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #fff;
  background: rgba(73, 47, 33, 0.82);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  place-items: center;
}

body.is-editing .gallery-custom-remove {
  display: grid;
}

.gallery-overlay {
  right: 22px;
  bottom: 20px;
  left: 22px;
}

.gallery-overlay small {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--honey);
  color: var(--ink);
  font-weight: 800;
}

.gallery-overlay strong {
  font-family: var(--serif);
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(44, 29, 21, 0.2);
}

.gallery-light {
  background: var(--honey-light);
}

.gallery-placeholder {
  border: 3px dashed rgba(169, 77, 67, 0.55);
  border-radius: 22px;
  color: var(--wine-dark);
}

.gallery-placeholder strong {
  font-weight: 800;
}

.mood-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 8%, rgba(248, 184, 170, 0.3) 0 120px, transparent 121px),
    radial-gradient(circle at 96% 84%, rgba(191, 226, 214, 0.43) 0 140px, transparent 141px),
    #f6f2de;
}

.mood-section::before,
.mood-section::after {
  position: absolute;
  color: rgba(75, 56, 42, 0.1);
  font-family: var(--serif);
  font-size: 40px;
  content: "♥";
  transform: rotate(-12deg);
}

.mood-section::before {
  top: 20%;
  left: 2%;
}

.mood-section::after {
  right: 2%;
  bottom: 12%;
  transform: rotate(15deg);
}

.mood-layout {
  display: grid;
  grid-template-columns: minmax(430px, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(28px, 5vw, 70px);
  max-width: 1180px;
  margin: 0 auto;
}

.mood-card,
.mood-journal {
  border: 3px solid var(--ink);
  border-radius: 32px;
  background: var(--cream-light);
  box-shadow: 8px 8px 0 rgba(75, 56, 42, 0.14);
}

.mood-card {
  padding: clamp(28px, 4vw, 45px);
}

.mood-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 19px;
  border-bottom: 1.5px dashed rgba(75, 56, 42, 0.25);
}

.mood-card-head > div {
  display: grid;
  gap: 4px;
}

.mood-card-head span:first-child,
.mood-journal-head span:first-child {
  color: var(--wine-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.mood-card-head strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
}

.mood-bear-mini {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: #a9714c;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  place-items: center;
  transform: rotate(5deg);
}

.mood-bear-mini::before,
.date-idea-bear::before {
  position: absolute;
  top: -5px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f8d34e;
  box-shadow: 34px 0 0 #f8d34e;
  content: "";
}

.mood-bear-mini,
.date-idea-bear {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mood-bear-mini::before,
.date-idea-bear::before {
  display: none;
}

.mood-bear-mini img,
.date-idea-bear img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mood-question {
  margin: 25px 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mood-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}

.mood-options.is-prompting {
  animation: moodPrompt 0.35s ease;
}

@keyframes moodPrompt {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-5px); }
  65% { transform: translateX(5px); }
}

.mood-option {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  min-height: 86px;
  padding: 12px 4px 9px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: #fffaf0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mood-option:hover {
  border-color: var(--ink);
  transform: translateY(-3px) rotate(-1deg);
}

.mood-option span {
  font-family: var(--sans);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 800;
  white-space: nowrap;
}

.mood-option b {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.mood-option.is-selected {
  border: 2px solid var(--ink);
  background: var(--honey);
  box-shadow: 3px 3px 0 rgba(75, 56, 42, 0.13);
  transform: translateY(-3px);
}

.mood-option.is-selected b {
  color: var(--ink);
}

.mood-note-label {
  display: block;
  margin-top: 23px;
}

.mood-note-label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mood-note-label textarea {
  width: 100%;
  min-height: 94px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: #fffaf0;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.8;
  resize: vertical;
}

.mood-note-label textarea:focus {
  border-color: var(--wine);
}

.mood-save {
  margin-top: 19px;
}

.mood-save > span {
  color: var(--wine-dark);
  font-size: 18px;
}

.mood-journal {
  display: flex;
  flex-direction: column;
  min-height: 490px;
  padding: 30px;
  background: #fff4d7;
}

.mood-journal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1.5px dashed rgba(75, 56, 42, 0.25);
}

.mood-journal-head > div {
  display: grid;
  gap: 3px;
}

.mood-journal-head strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 800;
}

.mood-journal-head > span {
  color: var(--muted);
  font-size: 8px;
}

.mood-list {
  display: grid;
  align-content: start;
  gap: 13px;
  margin-top: 18px;
  overflow-y: auto;
}

.mood-entry {
  position: relative;
  padding: 17px 18px 16px;
  border: 1.5px solid rgba(75, 56, 42, 0.16);
  border-radius: 18px;
  background: var(--cream-light);
}

.mood-entry:nth-child(even) {
  transform: rotate(-0.6deg);
}

.mood-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.mood-entry-head strong {
  color: var(--wine-dark);
  font-size: 11px;
  font-weight: 800;
}

.mood-entry-head span {
  color: #9f8e82;
  font-size: 8px;
}

.mood-entry p {
  margin: 0;
  color: #655044;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.75;
  word-break: break-word;
}

.mood-empty {
  display: grid;
  min-height: 285px;
  padding: 25px;
  color: var(--muted);
  text-align: center;
  place-items: center;
}

.mood-empty span {
  display: block;
  margin-bottom: 16px;
  color: var(--cocoa);
  font-size: 38px;
}

.mood-empty p {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
}

.private-intro {
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22) 0 115px, transparent 116px),
    var(--peach);
}

.private-intro::before,
.private-intro::after {
  position: absolute;
  border: 3px solid rgba(75, 56, 42, 0.1);
  border-radius: 50%;
  content: "";
}

.private-intro::before {
  top: -110px;
  left: -80px;
  width: 300px;
  height: 300px;
}

.private-intro::after {
  right: -70px;
  bottom: -80px;
  width: 250px;
  height: 250px;
}

.private-intro-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 68px);
  border: 3px solid var(--ink);
  border-radius: 40px;
  background: var(--cream-light);
  box-shadow: 9px 9px 0 rgba(75, 56, 42, 0.14);
  text-align: center;
}

.private-tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1.5px dashed var(--ink);
  border-radius: 999px;
  color: var(--wine-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.private-intro h2 {
  margin: 22px 0 15px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
}

.private-intro h2 em {
  color: var(--wine-dark);
  font-style: normal;
}

.private-intro-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.private-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 27px 0 18px;
}

.private-links a {
  padding: 9px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--honey-light);
  font-size: 10px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.private-links a:hover {
  background: var(--honey);
  transform: translateY(-2px);
}

.private-links a span {
  color: var(--wine-dark);
}

.private-intro-inner > small {
  color: #a18c7c;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.private-zone {
  background: var(--cream-light);
}

.relationship-tools {
  background:
    radial-gradient(circle at 8% 14%, rgba(199, 228, 239, 0.45) 0 130px, transparent 131px),
    radial-gradient(circle at 92% 85%, rgba(248, 206, 96, 0.25) 0 110px, transparent 111px),
    #f5f1e1;
}

.tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.wish-panel,
.date-idea-panel,
.special-dates-panel {
  border: 3px solid var(--ink);
  border-radius: 30px;
  background: var(--cream-light);
  box-shadow: 7px 7px 0 rgba(75, 56, 42, 0.13);
}

.wish-panel {
  min-height: 530px;
  padding: clamp(25px, 4vw, 40px);
}

.wish-panel-head,
.date-idea-head,
.special-dates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wish-panel-head > div:first-child,
.date-idea-head > div,
.special-dates-head > div {
  display: grid;
  gap: 3px;
}

.wish-panel-head span,
.date-idea-head span,
.special-dates-head span {
  color: var(--wine-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.wish-panel-head h3,
.date-idea-head h3,
.special-dates-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 800;
}

.wish-progress-copy {
  display: grid;
  justify-items: end;
}

.wish-progress-copy strong {
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.wish-progress-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.wish-progress {
  height: 11px;
  margin: 21px 0 19px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #f2e7cf;
}

.wish-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-right: 1.5px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--honey), var(--peach));
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0, 1);
}

.wish-form {
  display: flex;
  gap: 9px;
}

.wish-form input,
.special-date-form input {
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: #fffaf0;
  font-family: var(--sans);
  font-size: 11px;
}

.wish-form input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
}

.wish-form input:focus,
.special-date-form input:focus {
  border-color: var(--ink);
}

.wish-form button,
.date-idea-button,
.special-date-form button {
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  color: var(--ink);
  background: var(--honey);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wish-form button {
  padding: 0 16px;
}

.wish-form button:hover,
.date-idea-button:hover,
.special-date-form button:hover {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(1px, 1px);
}

.wish-list {
  display: grid;
  gap: 9px;
  max-height: 310px;
  margin-top: 19px;
  padding-right: 5px;
  overflow-y: auto;
}

.wish-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 53px;
  padding: 9px 11px;
  border: 1.5px dashed rgba(75, 56, 42, 0.22);
  border-radius: 15px;
  background: #fff8e8;
}

.wish-check {
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: transparent;
  background: var(--cream-light);
  cursor: pointer;
  font-size: 11px;
  place-items: center;
}

.wish-item.is-done .wish-check {
  color: var(--ink);
  background: var(--honey);
}

.wish-item-text {
  margin: 0;
  color: #614b3d;
  font-size: 11px;
  line-height: 1.6;
  word-break: break-word;
}

.wish-item.is-done .wish-item-text {
  color: #a18f81;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.wish-delete {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #a18f81;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.wish-delete:hover {
  color: var(--wine-dark);
  background: rgba(232, 111, 97, 0.12);
}

.wish-empty {
  padding: 55px 20px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}

.tools-stack {
  display: grid;
  gap: 24px;
}

.date-idea-panel {
  padding: 25px;
  background: var(--honey-light);
}

.date-idea-bear {
  position: relative;
  display: grid;
  width: 53px;
  height: 53px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: #a9714c;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0;
  place-items: center;
  transform: rotate(5deg);
}

.date-idea-text {
  min-height: 62px;
  margin: 21px 0 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}

.date-idea-text.is-drawing {
  animation: ideaPop 0.38s ease;
}

@keyframes ideaPop {
  0% { opacity: 0.2; transform: translateY(7px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.date-idea-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 43px;
  padding: 0 15px;
}

.mood-bear-mini,
.date-idea-bear {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mood-bear-mini::before,
.date-idea-bear::before {
  display: none;
}

.mood-bear-mini img,
.date-idea-bear img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.special-dates-panel {
  padding: 25px;
  background: var(--mint);
}

.special-dates-head > span {
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 23px;
}

.special-date-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 7px;
  margin: 17px 0 15px;
}

.special-date-form input {
  height: 40px;
  padding: 0 10px;
}

.special-date-form button {
  padding: 0 11px;
  background: var(--cream-light);
}

.special-date-list {
  display: grid;
  gap: 7px;
  max-height: 190px;
  overflow-y: auto;
}

.special-date-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(75, 56, 42, 0.14);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.72);
}

.special-date-item strong {
  font-size: 10px;
  font-weight: 800;
}

.special-date-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.special-date-item > span {
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.special-date-remove {
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
}

.special-date-remove:hover {
  color: var(--wine-dark);
  background: rgba(232, 111, 97, 0.12);
}

.special-date-empty {
  padding: 22px 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.anniversary {
  margin: 0 clamp(16px, 4vw, 54px);
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 42px;
  background:
    radial-gradient(circle at 7% 15%, rgba(255, 255, 255, 0.45) 0 92px, transparent 93px),
    radial-gradient(circle at 94% 87%, rgba(250, 204, 95, 0.38) 0 120px, transparent 121px),
    var(--mint);
}

.anniversary::after {
  inset: 16px;
  border: 2px dashed rgba(75, 56, 42, 0.22);
  border-radius: 30px;
}

.anniversary-content {
  width: min(880px, calc(100% - 40px));
  padding: 50px 30px 135px;
  border: 2px solid rgba(75, 56, 42, 0.15);
  border-radius: 35px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.55);
}

.eyebrow.light {
  color: var(--wine-dark);
  background: rgba(255, 253, 248, 0.62);
}

.anniversary h2 {
  font-weight: 800;
}

.anniversary-date {
  color: var(--wine-dark);
  font-family: var(--sans);
  font-weight: 800;
}

.anniversary-clock strong {
  color: var(--wine-dark);
  font-weight: 800;
}

.anniversary-clock span {
  color: var(--muted);
  font-weight: 700;
}

.anniversary-clock > i {
  color: rgba(75, 56, 42, 0.3);
}

.anniversary-note {
  color: var(--muted);
  font-family: var(--sans);
}

.anniversary-rings span {
  border-color: rgba(75, 56, 42, 0.075);
}

.mini-stats {
  bottom: 40px;
}

.mini-stats > div {
  padding: 8px 13px;
  border: 1.5px solid rgba(75, 56, 42, 0.16);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.58);
}

.mini-stats strong {
  color: var(--wine-dark);
  font-weight: 800;
}

.mini-stats small {
  color: var(--muted);
}

.coupons {
  background:
    radial-gradient(rgba(233, 191, 104, 0.18) 1.2px, transparent 1.2px),
    var(--cream-light);
  background-size: 24px 24px;
}

.coupon-grid {
  max-width: 1310px;
  margin: 0 auto;
  gap: 24px;
}

.coupon-front,
.coupon-back {
  border: 3px solid var(--ink);
  border-radius: 30px;
  box-shadow: 7px 7px 0 rgba(75, 56, 42, 0.13);
}

.coupon-front::after,
.coupon-back::after {
  inset: 13px;
  border: 1.5px dashed rgba(75, 56, 42, 0.23);
  border-radius: 21px;
}

.coupon:nth-child(2) .coupon-front {
  background: #fff1c4;
}

.coupon:nth-child(3) .coupon-front {
  background: #e2f1dc;
}

.coupon-back {
  border-color: var(--ink);
  background: var(--wine) !important;
}

.coupon-back::after {
  border-color: rgba(255, 253, 248, 0.37);
}

.coupon-icon {
  border: 2px solid var(--ink);
  background: var(--honey);
}

.coupon-icon svg {
  stroke: var(--ink);
}

.coupon-front > strong {
  font-family: var(--serif);
  font-weight: 800;
}

.coupon-no {
  font-weight: 800;
}

.coupon-front > small,
.coupon-back > small {
  font-family: var(--sans);
}

.coupon-back .coupon-no,
.coupon-back > small {
  color: #ffe5de;
}

.coupon-manager {
  max-width: 1310px;
  margin: 0 auto 24px;
  padding: 17px 19px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.91);
  box-shadow: 5px 5px 0 rgba(75, 56, 42, 0.12);
}

.coupon-manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.coupon-manager-head > div {
  display: grid;
  gap: 2px;
}

.coupon-manager-head span {
  color: var(--wine-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.coupon-manager-head strong {
  font-family: var(--serif);
  font-size: 17px;
}

.coupon-manager-head b {
  color: var(--wine);
}

.coupon-add-button,
.coupon-editor-actions button {
  min-height: 36px;
  padding: 0 15px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--honey);
  box-shadow: 2px 2px 0 rgba(75, 56, 42, 0.2);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.coupon-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(75, 56, 42, 0.22);
}

.coupon-editor[hidden] {
  display: none;
}

.coupon-editor label {
  display: grid;
  gap: 5px;
}

.coupon-editor label > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.coupon-editor input,
.coupon-editor textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: #fffdf8;
  font-family: var(--sans);
  font-size: 16px;
  resize: vertical;
}

.coupon-editor input:focus,
.coupon-editor textarea:focus {
  border-color: var(--wine-dark);
}

.coupon-editor-wide,
.coupon-editor-actions {
  grid-column: 1 / -1;
}

.coupon-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.coupon-editor-actions button:first-child {
  background: var(--cream-light);
}

.coupon-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.coupon {
  position: relative;
}

.coupon-flipper {
  display: block;
  width: 100%;
  min-height: 390px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
}

.coupon-card-actions {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 22px;
  display: flex;
  gap: 5px;
}

.coupon-card-actions button {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(75, 56, 42, 0.35);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.88);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.coupon-card-actions button:hover {
  background: var(--honey);
}

.coupon-card-actions .is-delete {
  color: var(--wine-dark);
}

.coupon-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px 20px;
  border: 2px dashed rgba(75, 56, 42, 0.22);
  border-radius: 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.message-section {
  background:
    radial-gradient(circle at 10% 90%, rgba(248, 206, 96, 0.25) 0 130px, transparent 131px),
    #f8efe4;
}

.message-layout {
  max-width: 1190px;
  margin: 0 auto;
}

.message-intro > p:not(.eyebrow) {
  padding: 15px 17px;
  border: 1.5px dashed rgba(75, 56, 42, 0.24);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.6);
  font-family: var(--sans);
}

.message-quote {
  padding: 23px 22px 20px 57px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--honey-light);
  box-shadow: 5px 5px 0 rgba(75, 56, 42, 0.1);
}

.message-quote p {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.message-panel {
  border: 3px solid var(--ink);
  border-radius: 32px;
  background: var(--cream-light);
  box-shadow: 8px 8px 0 rgba(75, 56, 42, 0.13);
}

.message-form input,
.message-form textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fffaf0;
  font-family: var(--sans);
}

.message-form input:focus,
.message-form textarea:focus {
  border-color: var(--ink);
}

.message-form .primary-button {
  border-radius: 999px;
}

.message-card {
  padding: 17px;
  border: 1.5px solid rgba(75, 56, 42, 0.15);
  border-radius: 17px;
}

.message-card:first-child {
  padding-top: 17px;
}

.message-card + .message-card {
  margin-top: 8px;
}

.message-card-head strong {
  font-family: var(--serif);
  font-weight: 800;
}

.message-card p {
  font-family: var(--sans);
}

.message-list {
  gap: 2px;
}

.site-footer {
  padding-top: 55px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1.2px),
    #5c4434;
  background-size: 18px 18px;
}

.footer-bears {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.footer-bear-head {
  width: 76px;
  height: auto;
}

.footer-chick-head {
  width: 57px;
  height: auto;
  margin-top: 11px;
}

.footer-bear {
  position: relative;
  width: 52px;
  height: 46px;
  border: 2px solid var(--cream-light);
  border-radius: 50% 50% 45% 45%;
  width: 72px;
  height: 62px;
  border-width: 3px;
  background: var(--cocoa);
}

.footer-bear::before,
.footer-bear::after {
  position: absolute;
  top: -10px;
  width: 26px;
  height: 26px;
  border: 3px solid var(--cream-light);
  border-radius: 50%;
  background: #f8d34e;
  content: "";
}

.footer-bear::before {
  left: 1px;
}

.footer-bear::after {
  right: 1px;
}

.footer-bear i,
.footer-bear b {
  position: absolute;
  z-index: 1;
  top: 26px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cream-light);
}

.footer-bear i {
  left: 20px;
}

.footer-bear b {
  right: 20px;
}

.footer-heart {
  color: var(--peach);
  font-size: 17px;
}

.footer-chick {
  position: relative;
  width: 45px;
  height: 41px;
  border: 2px solid var(--cream-light);
  border-radius: 50% 50% 44% 44%;
  background: #f5d837;
}

.footer-chick::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 60% 0 60% 0;
  background: var(--cream-light);
  content: "";
  transform: translateX(-50%) rotate(25deg);
}

.footer-chick::after {
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 6px solid #ed9843;
  content: "";
  transform: translateX(-50%);
}

.footer-chick i,
.footer-chick b {
  position: absolute;
  top: 16px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.footer-chick i {
  left: 12px;
}

.footer-chick b {
  right: 12px;
}

.footer-mark {
  font-weight: 800;
}

.modal-card {
  border: 3px solid var(--ink);
  border-radius: 30px;
  box-shadow: 9px 9px 0 rgba(29, 19, 13, 0.3);
}

.modal-card input {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fffaf0;
  font-family: var(--sans);
}

.modal-actions .primary-button {
  border-radius: 999px;
}

.music-preferences {
  margin-top: 26px;
  padding: 21px;
  border: 1.5px dashed rgba(75, 56, 42, 0.3);
  border-radius: 20px;
  background: var(--honey-light);
}

.music-preferences-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.music-preferences-head > div {
  display: grid;
  gap: 2px;
}

.music-preferences-head span:first-child {
  color: var(--wine-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.music-preferences-head strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
}

.music-preferences-head > span {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--cream-light);
  font-size: 19px;
  place-items: center;
}

.music-preferences > p {
  margin: 11px 0 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.music-setting-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.upload-music-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--cream-light);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.upload-music-button:hover {
  background: var(--honey);
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(1px, 1px);
}

.upload-music-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.music-preferences .music-track-status {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(75, 56, 42, 0.14);
}

.music-track-status strong {
  color: var(--ink);
  font-weight: 800;
}

.music-track-status.is-error {
  color: var(--wine-dark);
}

.background-preferences {
  margin-top: 14px;
  padding: 21px;
  border: 1.5px solid rgba(75, 56, 42, 0.22);
  border-radius: 20px;
  background: #f5e9d9;
}

.background-preferences-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.background-preferences-head > div {
  display: grid;
  gap: 2px;
}

.background-preferences-head span:first-child {
  color: var(--wine-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.background-preferences-head strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
}

.background-preferences-head > span {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--cream-light);
  font-size: 19px;
  place-items: center;
}

.background-preview {
  display: grid;
  min-height: 94px;
  margin-bottom: 13px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  color: var(--muted);
  background-color: var(--cream);
  background-position: center;
  background-size: cover;
  font-size: 9px;
  place-items: center;
  text-align: center;
}

.background-preview span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
}

.background-setting-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.background-strength {
  display: block;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(75, 56, 42, 0.14);
}

.background-strength > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.background-strength b {
  color: var(--wine-dark);
  font-weight: 800;
}

.background-strength input {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(90deg, var(--honey), var(--peach));
  accent-color: var(--wine);
  cursor: pointer;
}

.background-preferences .background-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.app-install-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 14px;
  padding: 18px 20px;
  border: 1.5px solid rgba(75, 56, 42, 0.2);
  border-radius: 20px;
  background: var(--mint);
}

.account-access-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 15px 18px;
  border: 1.5px solid rgba(75, 56, 42, 0.18);
  border-radius: 18px;
  background: #f3e8da;
}

.account-access-card > div {
  display: grid;
  gap: 2px;
}

.account-access-card span {
  color: var(--wine-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.account-access-card strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 800;
}

.account-access-card button {
  min-height: 32px;
  padding: 0 13px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-light);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.account-access-card button:hover {
  background: var(--honey);
}

.app-install-copy > span {
  color: var(--wine-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.app-install-copy > strong {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 800;
}

.app-install-copy > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.app-install-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-light);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.app-install-button:hover {
  background: var(--honey);
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(1px, 1px);
}

.app-install-banner {
  position: fixed;
  z-index: 220;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(420px, calc(100vw - 28px));
  padding: 14px 42px 14px 14px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 6px 6px 0 rgba(75, 56, 42, 0.18), 0 18px 55px rgba(75, 56, 42, 0.16);
  animation: installBannerIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  backdrop-filter: blur(16px);
}

.app-tabbar {
  display: none;
}

.app-install-banner[hidden] {
  display: none;
}

body.is-editing .app-install-banner {
  display: none;
}

.app-install-bear {
  display: grid;
  width: 45px;
  height: 45px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--honey-light);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 800;
  place-items: center;
}

.app-install-banner > div:not(.app-install-bear) {
  display: grid;
  gap: 2px;
}

.app-install-banner strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 800;
}

.app-install-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.app-install-close {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 18px;
}

.app-install-button.compact {
  min-height: 34px;
  padding: 0 13px;
  border-width: 1.5px;
}

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

@media (display-mode: standalone) {
  .app-install-banner,
  .app-install-card {
    display: none !important;
  }

  .site-header {
    top: max(14px, env(safe-area-inset-top));
  }
}

#backgroundAudio {
  display: none;
}

.lightbox-content img {
  border: 6px solid var(--cream-light);
  border-radius: 24px;
}

.lightbox {
  overscroll-behavior: contain;
  touch-action: manipulation;
}

.lightbox-content p {
  font-family: var(--sans);
}

.weather-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(248, 206, 96, 0.3) 0 150px, transparent 151px),
    radial-gradient(circle at 92% 84%, rgba(191, 226, 214, 0.42) 0 180px, transparent 181px),
    #f7f1df;
}

.weather-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.weather-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.partner-weather-card {
  background:
    linear-gradient(145deg, rgba(229, 245, 243, 0.7), transparent 65%),
    var(--cream-light);
}

.weather-card,
.reminder-panel {
  border: 3px solid var(--ink);
  border-radius: 34px;
  background: var(--cream-light);
  box-shadow: 8px 8px 0 rgba(75, 56, 42, 0.13);
}

.weather-card {
  position: relative;
  padding: clamp(25px, 4vw, 40px);
  overflow: hidden;
}

.weather-card::after {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  border: 42px solid rgba(248, 206, 96, 0.22);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.weather-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.weather-kicker,
.reminder-head > div > span {
  color: var(--wine-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.weather-top h3,
.reminder-head h3 {
  margin: 4px 0 3px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}

.weather-top p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.weather-icon {
  display: grid;
  width: 76px;
  height: 76px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 4px 4px 0 rgba(75, 56, 42, 0.12);
  font-size: 39px;
  line-height: 1;
  place-items: center;
  transform: rotate(6deg);
}

.weather-city-form {
  position: relative;
  z-index: 1;
  margin: 19px 0 22px;
}

.weather-city-form label,
.reminder-form label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.weather-city-form > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weather-city-form input,
.reminder-form input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fffaf0;
  font-family: var(--sans);
  font-size: 11px;
}

.weather-city-form input {
  flex: 1;
  min-width: 135px;
}

.weather-city-form input:focus,
.reminder-form input:focus {
  border-color: var(--ink);
}

.weather-city-form button,
.weather-actions button,
.reminder-form button,
.reminder-toolbar button,
.reminder-share {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--honey);
  box-shadow: 2px 2px 0 rgba(75, 56, 42, 0.18);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.weather-city-form button {
  padding: 0 17px;
}

.weather-city-form .weather-locate-button {
  color: #fff;
  background: var(--wine-dark);
}

.weather-location-status {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.weather-current {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.weather-current > strong {
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: clamp(62px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.weather-current > div {
  display: grid;
  gap: 4px;
  padding-bottom: 8px;
}

.weather-current span {
  font-size: 16px;
  font-weight: 800;
}

.weather-current small {
  color: var(--muted);
  font-size: 9px;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.weather-details > div {
  padding: 11px 10px;
  border: 1px solid rgba(75, 56, 42, 0.14);
  border-radius: 14px;
  background: #fff8e8;
}

.weather-details span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.weather-details strong {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}

.weather-forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.forecast-day {
  padding: 12px 9px;
  border-radius: 15px;
  background: #f3e8d8;
  text-align: center;
}

.forecast-day span,
.forecast-day small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.forecast-day i {
  display: block;
  margin: 4px 0 2px;
  font-size: 22px;
  font-style: normal;
}

.forecast-day strong {
  font-family: var(--serif);
  font-size: 14px;
}

.weather-message {
  margin-top: 20px;
  padding: 16px;
  border: 1.5px dashed rgba(75, 56, 42, 0.28);
  border-radius: 17px;
  background: var(--honey-light);
}

.weather-message > span {
  color: var(--wine-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.weather-message p {
  margin: 7px 0 12px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  line-height: 1.75;
}

.weather-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.weather-actions button {
  min-height: 33px;
  padding: 0 11px;
  background: var(--cream-light);
}

.weather-actions button:first-child {
  background: var(--honey);
}

.weather-message > small {
  display: block;
  min-height: 14px;
  margin-top: 8px;
  color: var(--wine-dark);
  font-size: 8px;
}

.reminder-panel {
  padding: clamp(25px, 4vw, 36px);
  background: var(--mint);
}

.reminder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reminder-bell {
  display: grid;
  width: 53px;
  height: 53px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--cream-light);
  font-size: 25px;
  place-items: center;
  transform: rotate(-6deg);
}

.reminder-intro {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.reminder-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1.5px dashed rgba(75, 56, 42, 0.26);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.55);
}

.reminder-form input {
  width: 100%;
}

.reminder-form button {
  min-height: 39px;
}

.reminder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 10px;
}

.reminder-toolbar > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.reminder-toolbar button {
  min-height: 30px;
  padding: 0 11px;
  background: var(--cream-light);
}

.reminder-toolbar button.is-enabled {
  background: #d8ebcf;
}

.reminder-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.reminder-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(75, 56, 42, 0.16);
  border-radius: 14px;
  background: var(--cream-light);
}

.reminder-item.is-done {
  opacity: 0.58;
}

.reminder-item.is-done strong {
  text-decoration: line-through;
}

.reminder-check {
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: transparent;
  background: var(--cream-light);
  cursor: pointer;
  font-size: 10px;
  place-items: center;
}

.reminder-item.is-done .reminder-check {
  color: var(--ink);
  background: var(--honey);
}

.reminder-copy strong {
  display: block;
  font-size: 10px;
}

.reminder-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.reminder-copy b {
  color: var(--wine-dark);
  font-weight: 800;
}

.reminder-item-actions {
  display: flex;
  gap: 4px;
}

.reminder-share,
.reminder-delete {
  width: 27px;
  height: 27px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.reminder-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.65;
}

.weather-empty {
  padding: 30px 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.8;
  text-align: center;
}

.clock-tools {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: clamp(25px, 4vw, 38px);
  border: 3px solid var(--ink);
  border-radius: 34px;
  background: var(--cream-light);
  box-shadow: 8px 8px 0 rgba(75, 56, 42, 0.13);
}

.clock-tools-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.clock-tools-heading > div {
  display: grid;
  gap: 3px;
}

.clock-tools-heading span,
.alarm-sound-row > div > span {
  color: var(--wine-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.clock-tools-heading h3,
.alarm-sound-row strong {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 800;
}

.clock-tools-heading > p {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.clock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.clock-card {
  padding: 20px;
  border: 1.5px dashed rgba(75, 56, 42, 0.24);
  border-radius: 21px;
  background: #fff8e8;
}

.clock-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clock-card-title > span {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--honey);
  font-size: 20px;
  place-items: center;
}

.clock-card-title > div {
  display: grid;
  gap: 1px;
}

.clock-card-title strong {
  font-family: var(--serif);
  font-size: 18px;
}

.clock-card-title small {
  color: var(--muted);
  font-size: 8px;
}

.clock-form {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
  margin-top: 15px;
}

.clock-form input {
  min-width: 0;
  height: 39px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: var(--cream-light);
  font-size: 9px;
}

.clock-form input:focus {
  border-color: var(--ink);
}

.clock-form button {
  min-height: 37px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--honey);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.clock-repeat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8px;
}

.clock-repeat input {
  width: 14px;
  height: 14px;
}

.clock-list {
  display: grid;
  gap: 7px;
  max-height: 220px;
  margin-top: 13px;
  overflow-y: auto;
}

.clock-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(75, 56, 42, 0.14);
  border-radius: 12px;
  background: var(--cream-light);
}

.clock-item strong {
  display: block;
  font-size: 10px;
}

.clock-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.clock-item > span {
  color: var(--wine-dark);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.clock-remove {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
}

.clock-empty {
  margin: 0;
  padding: 22px 5px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.alarm-sound-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 22px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1.5px dashed rgba(75, 56, 42, 0.22);
}

.alarm-sound-row > div:first-child {
  display: grid;
  gap: 2px;
}

.alarm-sound-row strong {
  font-size: 17px;
}

.alarm-sound-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.alarm-sound-actions button {
  min-height: 37px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream-light);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.alarm-sound-row > small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 8px;
}

@media (max-width: 1080px) {
  .site-header {
    padding-right: 12px;
  }

  .nav-links a {
    padding-right: 10px;
    padding-left: 10px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.85fr);
  }

  .bear-mascot {
    left: -4%;
    width: 120px;
  }

  .bear-mascot > svg {
    width: 112px;
  }

  .mood-layout {
    grid-template-columns: 1fr 0.8fr;
  }

  .tools-layout {
    grid-template-columns: 1fr 0.8fr;
  }

  .special-date-form {
    grid-template-columns: 1fr 1fr;
  }

  .special-date-form button {
    grid-column: 1 / -1;
    min-height: 38px;
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 10px;
    right: 14px;
    left: 14px;
    padding: 8px 10px 8px 15px;
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .app-tabbar {
    position: fixed;
    z-index: 210;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    max-width: 540px;
    margin: 0 auto;
    padding: 6px;
    border: 1.5px solid var(--ink);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 4px 0 rgba(75, 56, 42, 0.14), 0 12px 30px rgba(75, 56, 42, 0.11);
    backdrop-filter: blur(14px);
  }

  .app-tabbar a {
    position: relative;
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 2px;
    padding: 6px 1px 5px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
  }

  .app-tabbar a span {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
  }

  .app-tabbar a svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    line-height: 1;
  }

  .app-tabbar a b {
    overflow: hidden;
    max-width: 100%;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }

  .app-tabbar-badge {
    position: absolute;
    top: 1px;
    right: 7px;
    display: grid;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 1.5px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #d9534f;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    place-items: center;
  }

  .app-tabbar-badge[hidden] {
    display: none;
  }

  .app-tabbar a.is-current {
    color: var(--ink);
    background: rgba(248, 206, 96, 0.92);
  }

  .app-tabbar a.is-current svg {
    stroke-width: 2;
  }

  body.is-editing .app-tabbar {
    display: none;
  }

  .nav-links {
    top: 60px;
    right: 0;
    left: 0;
    justify-items: stretch;
    width: 100%;
    padding: 14px;
    border: 2px solid var(--ink);
    border-radius: 24px;
    background: var(--cream-light);
    text-align: center;
  }

  .nav-links a {
    padding: 10px;
    font-family: var(--sans);
    font-size: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 135px;
  }

  .hero h1 {
    font-size: clamp(49px, 12vw, 88px);
  }

  .hero-visual {
    height: 610px;
  }

  .bear-mascot {
    top: 21%;
    left: -2%;
    width: 130px;
  }

  .bear-mascot > svg {
    width: 122px;
  }

  .counter-inner {
    grid-template-columns: 1fr;
  }

  .marquee {
    margin-right: -28px;
    margin-left: -28px;
  }

  .mood-layout {
    grid-template-columns: 1fr;
    max-width: 650px;
  }

  .weather-dashboard {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .weather-pair {
    grid-template-columns: 1fr;
  }

  .clock-grid {
    grid-template-columns: 1fr;
  }

  .tools-layout {
    grid-template-columns: 1fr;
    max-width: 650px;
  }

  .mood-journal {
    min-height: 420px;
  }

  .anniversary {
    margin: 0 14px;
  }

  .private-intro {
    padding-right: 20px;
    padding-left: 20px;
  }

  .gallery-grid {
    max-width: 650px;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 8px;
    right: 10px;
    left: 10px;
  }

  .mono-bear {
    width: 30px;
    height: 30px;
  }

  .mono-bear svg {
    width: 26px;
    height: 26px;
  }

  .monogram {
    font-size: 14px;
  }

  .hero {
    padding: 121px 19px 80px;
  }

  .standalone-page > :first-child {
    padding-top: 115px;
  }

  .private-page > .private-intro {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: clamp(38px, 11.5vw, 51px);
  }

  .hero h1 em {
    width: auto;
    height: auto;
  }

  .hero-intro {
    font-size: 13px;
  }

  .hero-meta {
    display: inline-flex;
    border-radius: 16px;
  }

  .hero-visual {
    height: 500px;
  }

  .arch-photo {
    right: 0;
    width: 84%;
    border-width: 5px;
    border-bottom-width: 12px;
  }

  .polaroid {
    width: 46%;
  }

  .bear-mascot {
    top: 13%;
    left: -4%;
    width: 105px;
  }

  .bear-mascot > svg {
    width: 99px;
  }

  .bear-mascot > span {
    font-size: 7px;
  }

  .hero-stamp {
    top: 1%;
    left: 2%;
    width: 78px;
    height: 78px;
  }

  .handwritten-note {
    right: -4px;
    font-size: 13px;
  }

  .love-counter {
    padding: 30px 13px 0;
  }

  .counter-inner {
    padding: 32px 20px;
    border-radius: 27px;
  }

  .marquee {
    margin-right: -13px;
    margin-left: -13px;
  }

  .section {
    padding: 82px 18px;
  }

  .section-heading h2,
  .message-intro h2 {
    font-size: clamp(39px, 12vw, 53px);
  }

  .section-heading h2 em {
    white-space: normal;
  }

  .section-lead {
    padding: 14px 15px;
    font-size: 12px;
  }

  .story-image > img {
    border-radius: 26px;
  }

  .quote-card {
    border-radius: 20px;
  }

  .gallery-item {
    border-radius: 23px;
  }

  .mood-card,
  .mood-journal {
    padding: 23px 18px;
    border-radius: 25px;
  }

  .weather-card,
  .reminder-panel {
    padding: 23px 18px;
    border-radius: 25px;
  }

  .weather-icon {
    width: 62px;
    height: 62px;
    font-size: 31px;
  }

  .weather-current > strong {
    font-size: 68px;
  }

  .weather-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .weather-actions button {
    min-height: 36px;
  }

  .clock-tools {
    padding: 23px 18px;
    border-radius: 25px;
  }

  .clock-tools-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .clock-form {
    grid-template-columns: 1fr;
  }

  .clock-repeat {
    min-height: 26px;
  }

  .alarm-sound-row {
    grid-template-columns: 1fr;
  }

  .alarm-sound-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .alarm-sound-actions .upload-music-button {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .wish-panel,
  .date-idea-panel,
  .special-dates-panel {
    border-radius: 25px;
  }

  .wish-panel {
    min-height: auto;
  }

  .wish-form {
    align-items: stretch;
    flex-direction: column;
  }

  .wish-form button {
    min-height: 40px;
  }

  .mood-card-head strong {
    font-size: 17px;
  }

  .mood-bear-mini {
    width: 49px;
    height: 49px;
    font-size: 10px;
  }

  .mood-options {
    gap: 6px;
  }

  .mood-option {
    min-height: 78px;
    padding-right: 2px;
    padding-left: 2px;
    border-radius: 15px;
  }

  .mood-option span {
    font-size: 12px;
  }

  .mood-option b {
    font-size: 8px;
  }

  .mood-save {
    width: 100%;
    justify-content: space-between;
  }

  .private-intro {
    padding: 65px 14px;
  }

  .private-intro-inner {
    padding: 36px 19px;
    border-radius: 30px;
  }

  .private-intro h2 {
    font-size: clamp(39px, 12vw, 52px);
  }

  .private-intro-inner > p {
    font-size: 11px;
    line-height: 1.8;
  }

  .private-links {
    gap: 7px;
  }

  .private-links a {
    padding: 8px 11px;
    font-size: 9px;
  }

  .anniversary {
    min-height: 730px;
    margin: 0 8px;
    border-radius: 31px;
  }

  .anniversary::after {
    inset: 9px;
    border-radius: 24px;
  }

  .anniversary-content {
    width: calc(100% - 20px);
    padding: 37px 12px 150px;
  }

  .anniversary h2 {
    font-size: clamp(40px, 11.8vw, 52px);
  }

  .anniversary-clock {
    gap: 4px;
  }

  .anniversary-clock > div {
    min-width: 54px;
  }

  .anniversary-clock strong {
    font-size: 35px;
  }

  .coupon-grid {
    gap: 24px;
  }

  .coupon-front,
  .coupon-back {
    border-radius: 25px;
  }

  .message-panel {
    border-radius: 26px;
  }

  .message-form .primary-button {
    border-radius: 999px;
  }

  .edit-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 12px;
    border-radius: 19px;
  }

  .edit-toolbar-copy {
    text-align: center;
  }

  .edit-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .edit-toolbar-actions button {
    padding: 0 5px;
    font-size: 8px;
  }

  .background-preferences {
    padding: 17px;
  }

  .app-install-card {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 17px;
  }

  .app-install-button {
    width: 100%;
  }

  .app-install-banner {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
    padding-left: 12px;
  }
}

.global-ai-launcher {
  position: fixed;
  z-index: 190;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, calc(14px + env(safe-area-inset-bottom)));
  display: grid;
  width: 54px;
  height: 54px;
  border: 2px solid var(--ink);
  border-radius: 19px;
  color: var(--ink);
  background: var(--honey);
  box-shadow: 4px 4px 0 var(--ink), 0 12px 28px rgba(75, 56, 42, 0.2);
  place-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.global-ai-launcher:hover {
  box-shadow: 2px 2px 0 var(--ink), 0 9px 22px rgba(75, 56, 42, 0.16);
  transform: translate(2px, 2px);
}

.global-ai-launcher img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.global-ai-launcher span {
  position: absolute;
  right: -3px;
  bottom: -4px;
  display: grid;
  width: 21px;
  height: 21px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  color: #fff;
  background: var(--wine-dark);
  font-size: 7px;
  font-weight: 900;
  place-items: center;
}

body[data-page="chat"] .global-ai-launcher {
  bottom: calc(66px + env(safe-area-inset-bottom));
}

body.chat-drawer-open .global-ai-launcher {
  display: none;
}

body[data-page="ai"] .global-ai-launcher {
  display: none;
}

@media (max-width: 620px) {
  .global-ai-launcher {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .global-ai-launcher img {
    width: 29px;
    height: 29px;
  }

  body[data-page="chat"] .global-ai-launcher {
    bottom: calc(62px + env(safe-area-inset-bottom));
  }
}
