/* =========================================================
   only us — a small private room for two
   Mobile first · cream, strawberry, warm brown
   ========================================================= */

:root {
  --cream: #fff7f3;
  --cream-deep: #fff1eb;
  --cream-soft: #fffaf7;
  --card: #ffffff;
  --pink: #ff7a9e;
  --berry: #ff4d6d;
  --pink-soft: #ffd6e0;
  --pink-wash: #fff0f3;
  --peach: #ffe8cc;
  --peach-wash: #fff7e8;
  --ink: #5b4a4a;
  --ink-deep: #48383a;
  --muted: #987f7d;
  --faint: #b9a4a1;
  --line: #f4e2dd;
  --line-strong: #edd2cd;
  --sage: #88a17a;
  --shadow: 0 8px 24px rgba(255, 122, 158, 0.12);
  --shadow-soft: 0 4px 14px rgba(255, 122, 158, 0.09);
  --shadow-lift: 0 16px 38px rgba(255, 122, 158, 0.18);
  --radius: 24px;
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.22, 0.8, 0.3, 1);
  --font-body: "HarmonyOS Sans SC", "HarmonyOS Sans", "Source Han Sans SC",
    "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue",
    sans-serif;
  --font-display: "LXGW WenKai", "LXGW WenKai Screen", "Songti SC",
    "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "STKaiti", serif;
  --font-hand: "LXGW WenKai", "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif CJK SC",
    cursive;
  --font-num: "Bodoni 72", "Didot", "Georgia", "Times New Roman", serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 85% -8%, rgba(255, 214, 224, 0.5), transparent 70%),
    radial-gradient(ellipse 60% 50% at -12% 42%, rgba(255, 232, 204, 0.65), transparent 72%),
    var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: rgba(255, 122, 158, 0.25);
  color: var(--ink-deep);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid rgba(255, 77, 109, 0.6);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 20px;
  background: #edcfd2;
  background-clip: padding-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  color: #b25569;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow .eyebrow-number {
  color: var(--berry);
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
}

.ambient-a {
  top: -28vw;
  right: -24vw;
  width: 74vw;
  height: 74vw;
  background: radial-gradient(circle, rgba(255, 214, 224, 0.6), transparent 67%);
}

.ambient-b {
  left: -30vw;
  top: 42vh;
  width: 66vw;
  height: 66vw;
  background: radial-gradient(circle, rgba(255, 232, 204, 0.55), transparent 66%);
}

.ambient-c {
  right: -10vw;
  bottom: -25vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 214, 224, 0.28), transparent 70%);
}

/* ---------------------------------------------------------------- boot */

.boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    radial-gradient(circle at 50% 42%, #fffdfb 0, #fff7f3 45%, #fff1eb 100%);
  transition: opacity 0.4s var(--ease-soft), visibility 0.4s;
}

body:not(.is-booting) .boot {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.boot-mark {
  width: 54px;
  filter: drop-shadow(0 12px 24px rgba(255, 122, 158, 0.24));
  animation: bootBob 2s var(--ease-soft) infinite;
}

.boot-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.boot p {
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.loading-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 4px;
  vertical-align: baseline;
}

.loading-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--pink);
  animation: dotBlink 1.2s infinite;
}
.loading-dots i:nth-child(2) {
  animation-delay: 0.16s;
}
.loading-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes bootBob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}

@keyframes dotBlink {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* ---------------------------------------------------------------- shared */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-deep);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 31px;
  height: 35px;
  flex: none;
  filter: drop-shadow(0 5px 10px rgba(255, 122, 158, 0.16));
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-type {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.brand-type strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-type small {
  margin-top: 4px;
  color: var(--faint);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.brand-light {
  color: var(--ink-deep);
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 0 21px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.24s var(--ease),
    box-shadow 0.24s var(--ease-soft),
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn:hover {
  transform: scale(1.03);
}

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

.btn:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6c91 0%, var(--berry) 100%);
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.24);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 11px 28px rgba(255, 77, 109, 0.34), 0 0 0 5px rgba(255, 122, 158, 0.08);
}

.btn-soft {
  border: 1px solid rgba(255, 122, 158, 0.16);
  background: var(--pink-wash);
  color: #b33e58;
}

.btn-soft:hover {
  background: #ffe7ec;
  box-shadow: 0 7px 18px rgba(255, 122, 158, 0.14);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--pink-soft);
  background: #fffaf9;
  box-shadow: var(--shadow-soft);
}

.btn-small {
  min-height: 39px;
  padding: 0 15px;
  font-size: 12.5px;
}

.btn-small .icon {
  width: 16px;
  height: 16px;
}

.btn-block {
  width: 100%;
}

.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 10px;
  background: transparent;
  color: var(--faint);
  font-size: 11.5px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.quiet-button .icon {
  width: 14px;
  height: 14px;
}

.quiet-button:hover {
  background: rgba(255, 122, 158, 0.08);
  color: #b54a62;
}

.quiet-button--tiny {
  font-size: 10.5px;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 122, 158, 0.16);
  border-radius: 999px;
  background: rgba(255, 245, 246, 0.86);
  color: #a8455c;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.online-pill i {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--berry);
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.12);
  animation: onlinePulse 2.4s ease-in-out infinite;
}

@keyframes onlinePulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.1);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(255, 77, 109, 0.04);
  }
}

.avatar {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border: 2px solid #fffdfa;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(122, 77, 69, 0.13);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.avatar-a {
  background: linear-gradient(145deg, #ffe7eb 0%, #ffb9c8 100%);
  color: #a52e48;
}

.avatar-b {
  background: linear-gradient(145deg, #fff2dc 0%, #ffd19a 100%);
  color: #8a5b2e;
}

.avatar-large {
  width: 49px;
  height: 49px;
  border-width: 2px;
  font-size: 18px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack .avatar + .avatar {
  margin-left: -10px;
}

.presence-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #e7d5d0;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.is-partner-online .presence-dot,
.is-online .presence-dot {
  background: var(--berry);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.1);
}

/* ------------------------------------------------------------------ gate */

.gate {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
}

.gate-panel {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr);
}

.gate-story {
  display: none;
}

.gate-login {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  overflow-x: hidden;
  overflow-y: auto;
  padding:
    calc(18px + env(safe-area-inset-top, 0px))
    17px
    calc(20px + var(--safe-bottom));
}

.gate-login::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 122, 158, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.gate-login::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 224, 0.26), transparent 68%);
  pointer-events: none;
}

.login-mobile-top {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 430px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.01em;
}

.privacy-chip .icon {
  width: 12px;
  height: 12px;
}

.login-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 27px 21px 19px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 24px 60px rgba(183, 102, 100, 0.1),
    0 7px 20px rgba(255, 122, 158, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.login-seal {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(255, 122, 158, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff, transparent 60%),
    var(--pink-wash);
  color: var(--berry);
  box-shadow: 0 8px 20px rgba(255, 122, 158, 0.12);
  transform: rotate(-4deg);
}

.login-seal svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-inner h1 {
  margin-top: 8px;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.gate-lede {
  max-width: 33em;
  margin-top: 11px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

#codePanel,
#identityPanel {
  margin-top: 26px;
}

#gateForm label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}

.answer-field {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 5px 5px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffaf7;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.answer-field:focus-within {
  border-color: rgba(255, 122, 158, 0.64);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 122, 158, 0.1), 0 8px 22px rgba(255, 122, 158, 0.08);
}

.answer-field input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-deep);
  font-size: 16px;
}

.answer-field input::placeholder {
  color: #c0aba8;
  font-family: var(--font-hand);
  font-size: 14px;
}

.gate-submit {
  flex: none;
  min-height: 45px;
  padding: 0 18px;
  font-size: 13px;
}

.gate-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #ab918f;
  font-size: 10.5px;
  line-height: 1.5;
}

.gate-hint span {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--peach-wash);
  color: #a8744d;
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
}

.tease {
  min-height: 24px;
  margin-top: 7px;
  color: #b3425b;
  font-family: var(--font-hand);
  font-size: 13px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.24s ease, transform 0.3s var(--ease);
}

.tease.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tease.is-shaking {
  animation: gentleShake 0.36s ease;
}

@keyframes gentleShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  65% {
    transform: translateX(3px);
  }
}

.gate-login-foot {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid rgba(244, 226, 221, 0.8);
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.01em;
  text-align: center;
}

.gate-login-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gate-login-foot .icon {
  width: 12px;
  height: 12px;
  color: var(--pink);
}

.identity-lede {
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 14px;
}

.identity-options {
  display: grid;
  gap: 9px;
}

.identity-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 13px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fffaf8;
  text-align: left;
  transition:
    transform 0.22s var(--ease),
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.22s ease;
}

.identity-card:hover {
  border-color: rgba(255, 122, 158, 0.42);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transform: scale(1.015);
}

.identity-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.identity-copy strong {
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.identity-copy small {
  color: var(--faint);
  font-size: 10.5px;
}

.identity-arrow {
  width: 17px;
  height: 17px;
  margin-left: auto;
  color: var(--pink);
  transition: transform 0.22s var(--ease);
}

.identity-card:hover .identity-arrow {
  transform: translateX(3px);
}

.identity-foot {
  margin-top: 12px;
  color: var(--faint);
  font-size: 10px;
  text-align: center;
}

/* ------------------------------------------------------------------- app */

.app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
}

.app::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  visibility: hidden;
  box-shadow:
    inset 0 0 100px rgba(255, 122, 158, 0.24),
    inset 0 0 24px rgba(255, 196, 130, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.app.is-partner-online::after {
  visibility: visible;
  opacity: 1;
}

.sidebar {
  display: none;
}

.main-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding:
    calc(13px + env(safe-area-inset-top, 0px))
    16px
    11px;
  border-bottom: 1px solid rgba(244, 226, 221, 0.55);
  background: rgba(255, 247, 243, 0.93);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
}

.mobile-header .brand-mark {
  width: 26px;
  height: 29px;
}

.mobile-header .brand-type strong {
  font-size: 13.5px;
}

.mobile-header .brand-type small {
  font-size: 6.5px;
}

.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-header .avatar {
  width: 29px;
  height: 29px;
  font-size: 11px;
}

.main {
  width: 100%;
  max-width: 1180px;
  flex: 1;
  margin: 0 auto;
  padding: 23px 15px 112px;
}

.app-footer {
  display: none;
}

.page {
  outline: none;
}

.page.is-active {
  animation: pageIn 0.3s var(--ease-soft) both;
}

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

.page-intro,
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.page-intro > div:first-child,
.page-head > div:first-child {
  min-width: 0;
}

.page-title {
  margin-top: 6px;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 6.8vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.page-sub {
  max-width: 34em;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 12.5px;
  line-height: 1.65;
}

.online-pill--desktop {
  display: none;
}

.page-head .btn {
  flex: none;
  margin-top: 5px;
}

/* ---------------------------------------------------------------- bottom nav */

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 7px 7px calc(5px + var(--safe-bottom));
  border-top: 1px solid rgba(244, 226, 221, 0.8);
  background: rgba(255, 251, 248, 0.9);
  box-shadow: 0 -12px 30px rgba(183, 102, 100, 0.07);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  backdrop-filter: blur(20px) saturate(1.1);
}

.bottom-link {
  position: relative;
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 5px 2px;
  border-radius: 14px;
  color: #a38b88;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.bottom-link .icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.65;
  transition: transform 0.25s var(--ease);
}

.bottom-link.is-active {
  background: linear-gradient(180deg, rgba(255, 240, 243, 0.9), rgba(255, 247, 243, 0.4));
  color: var(--berry);
}

.bottom-link.is-active .icon {
  transform: translateY(-1px);
}

.bottom-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--berry);
  transform: translateX(-50%);
}

/* ---------------------------------------------------------------- cards */

.card {
  position: relative;
  min-width: 0;
  padding: 21px;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 158, 0.07);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-head h2 {
  margin-top: 4px;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.card-head .card-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  color: #b45a6e;
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s var(--ease);
}

.card-head .card-link:hover {
  color: var(--berry);
  transform: translateX(2px);
}

.card-head .card-link .icon {
  width: 13px;
  height: 13px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  background: transparent;
  color: #b45a6e;
  font-size: 10.5px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.text-button:hover {
  color: var(--berry);
}

.text-button .icon {
  width: 13px;
  height: 13px;
}

.tiny-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 122, 158, 0.12);
  border-radius: 999px;
  background: rgba(255, 247, 247, 0.86);
  color: #b05b6c;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.tiny-pill .icon {
  width: 12px;
  height: 12px;
  color: var(--pink);
}

/* --------------------------------------------------------------- dashboard */

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
}

.hero-card {
  isolation: isolate;
  padding: 22px;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 214, 224, 0.52), transparent 38%),
    linear-gradient(145deg, #fffdfc 0%, #fff8f4 60%, #fff2ee 100%);
}

.hero-card::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 122, 158, 0.14);
  border-radius: 50%;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  z-index: -1;
  width: 180px;
  height: 180px;
  border: 1px dashed rgba(255, 122, 158, 0.14);
  border-radius: 50%;
}

.hero-art {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: -1;
  width: 110px;
  opacity: 0.09;
  transform: rotate(9deg);
  pointer-events: none;
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-since {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.day-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 9px 0 4px;
}

.day-number {
  display: inline-block;
  color: var(--berry);
  font-family: var(--font-num);
  font-size: clamp(5.5rem, 23vw, 7.4rem);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.95;
  transform-origin: left center;
  animation: dayNumberIn 0.55s var(--ease) both;
}

@keyframes dayNumberIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.day-unit {
  color: #a17676;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}

.hero-copy {
  max-width: 17em;
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 12.5px;
  line-height: 1.65;
}

.hero-copy small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.hero-bottom .btn {
  flex: none;
  min-height: 42px;
  padding: 0 17px;
  font-size: 12.5px;
}

.hero-bottom .btn .icon {
  width: 16px;
  height: 16px;
}

.countdown-card {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 232, 204, 0.72), transparent 45%),
    linear-gradient(145deg, #fffdfb, #fff8ee);
}

.countdown-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.countdown-top .icon {
  width: 21px;
  height: 21px;
  color: #d5a36f;
}

.countdown-card h2 {
  margin-top: 7px;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.countdown-days {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
}

.countdown-days strong {
  color: var(--berry);
  font-family: var(--font-num);
  font-size: 3.2rem;
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.countdown-days span {
  color: var(--muted);
  font-size: 12px;
}

.countdown-date {
  margin-top: 6px;
  color: #9b7672;
  font-size: 11px;
}

.countdown-progress {
  height: 4px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 214, 224, 0.5);
}

.countdown-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd0b5, var(--pink));
  transition: width 0.7s var(--ease-soft);
}

.countdown-hint {
  margin-top: 10px;
  color: var(--faint);
  font-family: var(--font-hand);
  font-size: 10.5px;
  line-height: 1.6;
}

.birthday-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.birthday-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #fff0f3;
  color: #c44d65;
}

.birthday-icon .icon {
  width: 18px;
  height: 18px;
}

.birthday-copy {
  min-width: 0;
}

.birthday-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--ink-deep);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.birthday-name span {
  color: #a98b86;
  font-size: 9px;
  font-weight: 500;
}

.birthday-meta {
  margin-top: 1px;
  color: #9b7d79;
  font-size: 9.5px;
  line-height: 1.5;
}

.birthday-meta strong {
  color: var(--berry);
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
}

.question-card {
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 214, 224, 0.2), transparent 40%),
    #fff;
}

.question-number {
  flex: none;
  color: #c9a7a5;
  font-family: var(--font-num);
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.question-text {
  position: relative;
  margin: 15px 0 17px;
  padding-right: 4px;
  color: #594647;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.6;
}

.daily-form textarea,
.note-composer textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  background: #fffaf8;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.daily-form textarea::placeholder,
.note-composer textarea::placeholder {
  color: #c2adaa;
  font-family: var(--font-hand);
  font-size: 13px;
}

.daily-form textarea:focus,
.note-composer textarea:focus {
  border-color: rgba(255, 122, 158, 0.5);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 122, 158, 0.08);
}

.daily-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.form-count {
  color: var(--faint);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.daily-form .btn,
.note-composer .btn {
  min-height: 39px;
  padding: 0 16px;
  font-size: 12px;
}

.daily-answer {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fffaf8;
}

.daily-answer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.daily-answer-head .avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

.daily-answer-head strong {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
}

.daily-answer-head small {
  margin-left: auto;
  color: var(--faint);
  font-size: 9.5px;
}

.daily-answer p {
  color: #675254;
  font-family: var(--font-hand);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.daily-pair {
  display: grid;
  gap: 9px;
}

.daily-pair .daily-answer:nth-child(2) {
  background: #fff9ef;
  border-color: #f5e5d4;
}

.daily-locked {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px dashed #e9d8d3;
  border-radius: 16px;
  background: #fffaf7;
  color: var(--muted);
}

.daily-locked .lock-badge {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #fff1f2;
  color: var(--pink);
}

.daily-locked .lock-badge .icon {
  width: 15px;
  height: 15px;
}

.daily-locked p {
  font-size: 10.5px;
  line-height: 1.65;
}

.daily-locked strong {
  color: #94706f;
  font-weight: 650;
}

.daily-wait {
  margin-top: 10px;
  color: var(--faint);
  font-family: var(--font-hand);
  font-size: 11px;
  line-height: 1.6;
}

.mood-card {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 232, 204, 0.28), transparent 45%),
    #fff;
}

.mood-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 17px;
}

.mood-emoji {
  display: grid;
  width: 61px;
  height: 61px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 122, 158, 0.11);
  border-radius: 21px;
  background:
    radial-gradient(circle at 35% 25%, #fff, transparent 55%),
    #fff5f3;
  font-size: 28px;
  line-height: 1;
  box-shadow: inset 0 1px 0 #fff;
}

.mood-copy {
  min-width: 0;
}

.mood-copy strong {
  display: block;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.mood-copy p {
  margin-top: 4px;
  color: #7f6868;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.mood-time {
  margin-top: 6px;
  color: var(--faint);
  font-size: 9.5px;
}

.mood-own {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid rgba(244, 226, 221, 0.7);
  color: var(--muted);
  font-size: 10px;
}

.mood-own > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mood-own-emoji {
  font-size: 14px;
}

.mood-card .text-button {
  font-size: 10px;
}

.photo-card {
  padding: 21px;
}

.photo-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 218px;
  padding: 23px 14px 17px;
  text-align: center;
}

.photo-empty .empty-illustration {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
}

.photo-empty h3 {
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.photo-empty p {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 12px;
  line-height: 1.7;
}

.photo-empty .btn {
  margin-top: 13px;
}

.latest-photo {
  margin-top: 17px;
}

.polaroid {
  position: relative;
  display: block;
  width: 100%;
  padding: 8px 8px 0;
  border: 1px solid rgba(229, 210, 205, 0.66);
  border-radius: 6px;
  background: #fffefa;
  box-shadow:
    0 9px 22px rgba(137, 93, 79, 0.13),
    0 2px 5px rgba(137, 93, 79, 0.06);
}

.polaroid::after {
  content: "";
  display: block;
  height: 34px;
}

.polaroid .photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: #f5e7dd;
}

.polaroid .photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(91, 74, 74, 0.05);
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.polaroid-caption {
  position: absolute;
  right: 13px;
  bottom: 9px;
  left: 13px;
  color: #63504f;
  font-family: var(--font-hand);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-photo-layout {
  display: grid;
  grid-template-columns: minmax(120px, 54%) minmax(0, 1fr);
  align-items: end;
  gap: 15px;
}

.latest-photo .polaroid {
  transform: rotate(-2deg);
  transition: transform 0.35s var(--ease);
}

.latest-photo .polaroid:hover {
  transform: rotate(0) translateY(-2px);
}

.photo-side {
  min-width: 0;
  padding-bottom: 3px;
}

.photo-date {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  font-size: 9.5px;
}

.photo-date .icon {
  width: 12px;
  height: 12px;
}

.photo-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 10.5px;
}

.photo-author .avatar {
  width: 23px;
  height: 23px;
  font-size: 9px;
  border-width: 1.5px;
}

.photo-side-caption {
  margin-top: 11px;
  color: #7e6666;
  font-family: var(--font-hand);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.photo-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
}

.like-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(255, 122, 158, 0.16);
  border-radius: 999px;
  background: #fff9fa;
  color: #b2697a;
  font-size: 10px;
  font-weight: 650;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.like-button .icon {
  width: 14px;
  height: 14px;
}

.like-button:hover {
  background: #fff0f3;
  color: var(--berry);
  transform: scale(1.04);
  box-shadow: 0 5px 12px rgba(255, 122, 158, 0.12);
}

.like-button.is-liked {
  border-color: rgba(255, 77, 109, 0.2);
  background: #fff0f3;
  color: var(--berry);
}

.like-button.is-liked .icon {
  fill: currentColor;
}

.connection-card {
  background:
    radial-gradient(circle at 0 100%, rgba(255, 214, 224, 0.3), transparent 45%),
    linear-gradient(145deg, #fffdfb, #fff9f5);
}

.connection-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 17px 0 12px;
  padding: 8px 0;
}

.connection-visual .avatar {
  width: 42px;
  height: 42px;
  font-size: 15px;
}

.connection-line {
  position: relative;
  width: 68px;
  height: 1px;
  margin: 0 6px;
  background: linear-gradient(90deg, rgba(255, 122, 158, 0.1), rgba(255, 122, 158, 0.5), rgba(255, 122, 158, 0.1));
}

.connection-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 122, 158, 0.1);
  transform: translate(-50%, -50%);
}

.connection-status {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 650;
  text-align: center;
}

.connection-sub {
  margin-top: 4px;
  color: var(--faint);
  font-size: 10px;
  text-align: center;
}

.connection-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 226, 221, 0.8);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.connection-note .eyebrow {
  font-size: 8.5px;
}

.connection-note p {
  margin-top: 5px;
  color: #7e6666;
  font-family: var(--font-hand);
  font-size: 12.5px;
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.connection-note .text-button {
  margin-top: 5px;
}

/* --------------------------------------------------------------- memories */

.memory-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 122, 158, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #987b78;
  font-size: 9.5px;
}

.summary-chip .icon {
  width: 12px;
  height: 12px;
  color: var(--pink);
}

.month-group {
  position: relative;
  padding-left: 20px;
}

.month-group + .month-group {
  margin-top: 30px;
}

.month-group::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: -38px;
  left: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 122, 158, 0.3), rgba(255, 214, 224, 0.12));
}

.month-group:last-child::before {
  display: none;
}

.month-heading {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 15px;
}

.month-heading::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -20px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 122, 158, 0.13);
}

.month-heading h2 {
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.month-heading span {
  color: var(--faint);
  font-size: 9.5px;
}

.memory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.memory-item {
  min-width: 0;
}

.memory-card {
  padding: 12px;
  border: 1px solid rgba(255, 122, 158, 0.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.memory-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.memory-card .polaroid {
  width: 100%;
  box-shadow:
    0 7px 18px rgba(137, 93, 79, 0.12),
    0 1px 3px rgba(137, 93, 79, 0.06);
  transform: rotate(-0.8deg);
  transition: transform 0.3s var(--ease);
}

.memory-card:nth-child(even) .polaroid {
  transform: rotate(0.8deg);
}

.memory-card:hover .polaroid {
  transform: rotate(0);
}

.memory-card .polaroid img {
  aspect-ratio: 4 / 5;
}

.memory-card .polaroid::after {
  height: 32px;
}

.memory-card .polaroid-caption {
  bottom: 8px;
  font-size: 10.5px;
}

.memory-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 3px 0;
}

.memory-author {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.memory-author .avatar {
  width: 23px;
  height: 23px;
  font-size: 9px;
  border-width: 1.5px;
}

.memory-footer .like-button {
  margin-left: auto;
}

.memory-delete {
  display: grid;
  width: 29px;
  height: 29px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #c7b0ad;
  opacity: 0.7;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.memory-delete .icon {
  width: 14px;
  height: 14px;
}

.memory-delete:hover {
  background: #fff0f1;
  color: var(--berry);
  opacity: 1;
}

.memory-date-label {
  margin: 7px 0 0 4px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------ empty */

.empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  padding: 30px 22px;
  border: 1px dashed #ead6d1;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 214, 224, 0.18), transparent 45%),
    rgba(255, 255, 255, 0.54);
  text-align: center;
}

.empty-illustration {
  position: relative;
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 50%;
  background: #fff8f4;
  box-shadow: 0 10px 24px rgba(255, 122, 158, 0.1);
}

.empty-illustration::before,
.empty-illustration::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 122, 158, 0.15);
}

.empty-illustration::before {
  inset: -8px;
}

.empty-illustration::after {
  inset: -17px;
  border-style: dashed;
  opacity: 0.6;
}

.empty-illustration svg {
  width: 27px;
  height: 31px;
}

.empty-state h3 {
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.empty-state p {
  max-width: 26em;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 12.5px;
  line-height: 1.7;
}

.empty-state .btn {
  margin-top: 17px;
}

/* ----------------------------------------------------------------- wishes */

.wish-overview {
  position: relative;
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  padding: 21px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 214, 224, 0.7), transparent 45%),
    linear-gradient(135deg, #fffaf8, #fff3ec);
  box-shadow: var(--shadow);
}

.wish-overview::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -66px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 122, 158, 0.17);
  border-radius: 50%;
}

.wish-overview h2 {
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.wish-progress-number {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}

.wish-progress-number strong {
  color: var(--berry);
  font-family: var(--font-num);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.wish-progress-number span {
  color: var(--muted);
  font-size: 11px;
}

.wish-progress-track {
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 2px rgba(163, 103, 103, 0.06);
}

.wish-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--berry));
  transition: width 0.6s var(--ease-soft);
}

.wish-progress-copy {
  margin-top: 9px;
  color: #9a7a75;
  font-family: var(--font-hand);
  font-size: 11.5px;
}

.wish-overview-art {
  position: absolute;
  top: 18px;
  right: 17px;
  width: 37px;
  opacity: 0.82;
}

.wish-overview-art svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 10px rgba(255, 122, 158, 0.15));
}

.wish-section + .wish-section {
  margin-top: 26px;
}

.wish-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 2px 12px;
}

.wish-section-head h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.wish-section-head span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 214, 224, 0.4);
  color: #b05c70;
  font-size: 9px;
  font-weight: 700;
}

.wish-list {
  display: grid;
  gap: 9px;
}

.wish-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 15px 15px 13px;
  border: 1px solid rgba(255, 122, 158, 0.07);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.wish-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.wish-check {
  position: relative;
  display: grid;
  width: 29px;
  height: 29px;
  flex: none;
  margin-top: 1px;
  place-items: center;
  border: 1.5px solid #e7d2ce;
  border-radius: 50%;
  background: #fffaf8;
  color: transparent;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--ease);
}

.wish-check::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}

.wish-check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.35s var(--ease-soft);
}

.wish-check:hover {
  border-color: var(--pink);
  transform: scale(1.06);
}

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

.wish-title {
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.55;
  overflow-wrap: anywhere;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.wish-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.5;
}

.wish-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff5ed;
  color: #ad7d56;
  font-size: 8.5px;
}

.wish-item.done {
  background: rgba(255, 251, 247, 0.72);
  box-shadow: none;
}

.wish-item.done .wish-check {
  border-color: var(--berry);
  background: var(--berry);
  color: #fff;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.2);
}

.wish-item.done .wish-check .icon {
  stroke-dashoffset: 0;
}

.wish-item.done .wish-title {
  color: #a48c88;
  text-decoration: line-through;
  text-decoration-color: rgba(164, 140, 136, 0.55);
  text-decoration-thickness: 1px;
}

.wish-item.done .wish-meta {
  color: #b9a6a2;
}

.wish-done-note {
  color: var(--faint);
  font-family: var(--font-hand);
  font-size: 9.5px;
}

/* ------------------------------------------------------------------ notes */

.note-composer {
  position: relative;
  margin-bottom: 21px;
  padding: 22px 20px 18px;
  overflow: visible;
  border: 1px solid rgba(255, 122, 158, 0.08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.note-composer::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 70px;
  height: 18px;
  background: rgba(255, 232, 204, 0.78);
  box-shadow: 0 2px 4px rgba(137, 93, 79, 0.06);
  transform: translateX(-50%) rotate(-1.5deg);
}

.note-composer h2 {
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.note-composer .composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.composer-identity {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 9.5px;
}

.composer-identity .avatar {
  width: 25px;
  height: 25px;
  font-size: 9px;
}

.note-composer textarea {
  min-height: 92px;
  border-color: transparent;
  background: #fffaf8;
}

.note-composer textarea:focus {
  border-color: rgba(255, 122, 158, 0.4);
}

.note-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.note-composer-foot .form-hint {
  color: var(--faint);
  font-family: var(--font-hand);
  font-size: 10px;
}

.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.note-paper {
  position: relative;
  padding: 20px 18px 15px;
  border: 1px solid rgba(202, 163, 152, 0.12);
  border-radius: 17px;
  box-shadow: 0 8px 22px rgba(137, 93, 79, 0.08);
  transform: rotate(-0.6deg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.note-paper:nth-child(3n + 2) {
  transform: rotate(0.7deg);
}

.note-paper:nth-child(3n) {
  transform: rotate(-0.2deg);
}

.note-paper:hover {
  z-index: 1;
  box-shadow: 0 14px 30px rgba(137, 93, 79, 0.13);
  transform: rotate(0) translateY(-2px);
}

.note-paper::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  width: 46px;
  height: 14px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1px 2px rgba(137, 93, 79, 0.04);
  transform: rotate(-3deg);
}

.note-paper.tone-0 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 55%),
    #fff0f3;
}

.note-paper.tone-1 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 55%),
    #fff7e8;
}

.note-paper.tone-2 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent 55%),
    #fff5ef;
}

.note-paper.tone-3 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 55%),
    #fbf4f0;
}

.note-text {
  color: #5f4b4c;
  font-family: var(--font-hand);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.note-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed rgba(151, 112, 105, 0.15);
  color: #a08580;
  font-size: 9.5px;
}

.note-foot .avatar {
  width: 21px;
  height: 21px;
  font-size: 8px;
  border-width: 1px;
}

.note-foot strong {
  color: #8e706d;
  font-weight: 650;
}

.note-time {
  margin-left: auto;
  color: #b09a96;
  font-family: var(--font-body);
  font-size: 9px;
}

/* ------------------------------------------------------------------ about */

.about-stack {
  display: grid;
  gap: 14px;
}

.about-hero {
  position: relative;
  overflow: hidden;
  padding: 25px 22px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 232, 204, 0.8), transparent 36%),
    radial-gradient(circle at 10% 100%, rgba(255, 214, 224, 0.55), transparent 44%),
    linear-gradient(135deg, #fffdfb, #fff6f1);
  box-shadow: var(--shadow);
}

.about-hero::before {
  content: "&";
  position: absolute;
  right: 18px;
  bottom: -58px;
  color: rgba(255, 122, 158, 0.1);
  font-family: var(--font-num);
  font-size: 180px;
  font-style: italic;
  line-height: 1;
  pointer-events: none;
}

.about-hero-copy {
  position: relative;
  z-index: 1;
}

.about-avatars {
  display: flex;
  align-items: center;
  margin-bottom: 17px;
}

.about-avatars .avatar {
  width: 54px;
  height: 54px;
  font-size: 20px;
  border-width: 3px;
}

.about-avatars .avatar + .avatar {
  margin-left: -14px;
}

.about-avatars .together-heart {
  display: grid;
  width: 25px;
  height: 25px;
  margin-left: 8px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--berry);
  box-shadow: 0 4px 12px rgba(255, 122, 158, 0.14);
}

.together-heart .icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.about-hero h2 {
  max-width: 13em;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.about-hero h2 em {
  color: var(--berry);
  font-style: normal;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
}

.about-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 122, 158, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #9b7b77;
  font-size: 9.5px;
}

.about-meta .icon {
  width: 12px;
  height: 12px;
  color: var(--pink);
}

.about-quote {
  max-width: 32em;
  margin-top: 15px;
  color: #7d6464;
  font-family: var(--font-hand);
  font-size: 13px;
  line-height: 1.8;
}

.profile-grid {
  display: grid;
  gap: 14px;
}

.profile-card {
  padding: 22px;
  border: 1px solid rgba(255, 122, 158, 0.07);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-top .avatar {
  width: 51px;
  height: 51px;
  font-size: 19px;
}

.profile-name h3 {
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-name p {
  margin-top: 2px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.profile-bio {
  margin-top: 14px;
  color: #7a6363;
  font-size: 12px;
  line-height: 1.8;
}

.profile-note {
  margin-top: 15px;
  padding: 12px 13px;
  border-left: 2px solid var(--pink-soft);
  border-radius: 0 12px 12px 0;
  background: #fff9f6;
}

.profile-note span {
  display: block;
  color: #b26e7a;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.profile-note p {
  margin-top: 4px;
  color: #866d6b;
  font-family: var(--font-hand);
  font-size: 12px;
  line-height: 1.7;
}

.timeline-card {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.timeline-card .card-head {
  margin-bottom: 22px;
}

.timeline {
  position: relative;
  padding-left: 19px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 8px;
  left: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 122, 158, 0.4), rgba(255, 214, 224, 0.18));
}

.timeline-item {
  position: relative;
  padding-bottom: 23px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -19px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 122, 158, 0.12);
}

.timeline-item:first-child::before {
  background: var(--berry);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.1);
}

.timeline-date {
  color: #b08f8b;
  font-family: var(--font-num);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.04em;
}

.timeline-item h3 {
  margin-top: 2px;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.timeline-item p {
  margin-top: 4px;
  color: #8a7170;
  font-size: 11px;
  line-height: 1.75;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 122, 158, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.about-actions p {
  color: var(--faint);
  font-family: var(--font-hand);
  font-size: 10.5px;
}

/* ------------------------------------------------------------------ modal */

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 14px;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(75, 54, 54, 0.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.22s ease both;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 530px);
  max-height: min(90vh, 90dvh);
  overflow: auto;
  padding: 27px 20px calc(20px + var(--safe-bottom));
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background: #fffdfb;
  box-shadow: 0 30px 80px rgba(91, 74, 74, 0.24);
  overscroll-behavior: contain;
  animation: modalIn 0.3s var(--ease) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #fff4f3;
  color: #ad8e8b;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.modal-close:hover {
  background: #ffe9eb;
  color: var(--berry);
  transform: rotate(4deg) scale(1.05);
}

.modal-close .icon {
  width: 16px;
  height: 16px;
}

.modal-head {
  padding-right: 33px;
}

.modal-head h2 {
  margin-top: 5px;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.modal-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.modal-body {
  margin-top: 19px;
}

.field {
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.input,
.select,
.modal-card textarea {
  display: block;
  width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #fffaf8;
  color: var(--ink-deep);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.modal-card textarea {
  min-height: 102px;
  resize: vertical;
  line-height: 1.7;
}

.input:focus,
.select:focus,
.modal-card textarea:focus {
  border-color: rgba(255, 122, 158, 0.5);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 122, 158, 0.08);
}

.field-hint {
  margin-top: 5px;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.modal-actions .btn {
  min-height: 42px;
  font-size: 12px;
}

.modal-toast-space {
  min-height: 18px;
  margin-top: 7px;
  color: #b24860;
  font-size: 10.5px;
}

.dropzone {
  position: relative;
  display: flex;
  min-height: 190px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 18px;
  border: 1.5px dashed #e8d1cc;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 214, 224, 0.18), transparent 60%),
    #fffaf7;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dropzone-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.dropzone-empty[hidden] {
  display: none !important;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.quick-chips button {
  min-height: 29px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf7;
  color: #a48783;
  font-size: 9.5px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s var(--ease);
}

.quick-chips button:hover {
  border-color: var(--pink-soft);
  background: #fff4f5;
  color: #a54860;
  transform: translateY(-1px);
}

.quick-chips button.is-selected {
  border-color: rgba(255, 122, 158, 0.35);
  background: #fff0f3;
  color: #a54860;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: var(--pink);
  background-color: #fff6f5;
}

.dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.dropzone-icon {
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f2;
  color: var(--pink);
}

.dropzone-icon .icon {
  width: 22px;
  height: 22px;
}

.dropzone strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.dropzone span {
  color: var(--faint);
  font-size: 10px;
}

.dropzone.has-preview {
  min-height: 0;
  padding: 8px;
  border-style: solid;
}

.dropzone-preview {
  display: block;
  width: 100%;
  max-height: 330px;
  border-radius: 15px;
  object-fit: contain;
  background: #f8ece4;
}

.dropzone-change {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.9);
  color: #9e7672;
  font-size: 9px;
  box-shadow: 0 4px 12px rgba(91, 74, 74, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.mood-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.mood-option {
  display: flex;
  min-height: 72px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffaf8;
  color: var(--muted);
  font-size: 9.5px;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.mood-option span {
  font-size: 22px;
  line-height: 1.2;
}

.mood-option:hover {
  border-color: var(--pink-soft);
  background: #fff;
  transform: translateY(-1px);
}

.mood-option.is-selected {
  border-color: rgba(255, 122, 158, 0.44);
  background: #fff0f3;
  color: #a4445b;
  box-shadow: 0 4px 12px rgba(255, 122, 158, 0.1);
}

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  bottom: calc(88px + var(--safe-bottom));
  left: 50%;
  z-index: 300;
  display: flex;
  width: max-content;
  max-width: min(92vw, 430px);
  align-items: center;
  gap: 8px;
  padding: 10px 15px 10px 10px;
  border: 1px solid rgba(255, 122, 158, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.96);
  box-shadow: 0 14px 34px rgba(113, 70, 72, 0.14);
  color: #755d5d;
  font-size: 11px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-mark {
  display: grid;
  width: 25px;
  height: 25px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #fff0f3;
}

.toast-mark svg {
  width: 15px;
  height: 17px;
}

/* ------------------------------------------------------------------- peek */

.peek {
  position: fixed;
  bottom: calc(64px + var(--safe-bottom));
  left: 14px;
  z-index: 250;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(135%);
  transition: transform 0.5s var(--ease), opacity 0.3s ease;
}

.peek.is-showing {
  opacity: 1;
  transform: translateY(0);
}

.peek-duck {
  display: block;
  width: 110px;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(151, 92, 66, 0.15));
  transform-origin: bottom center;
  animation: duckBob 2.8s ease-in-out infinite;
}

@keyframes duckBob {
  0%,
  100% {
    transform: rotate(-1deg) translateY(0);
  }
  50% {
    transform: rotate(1.5deg) translateY(-4px);
  }
}

.peek-bubble {
  position: relative;
  min-width: 146px;
  margin-bottom: 64px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 122, 158, 0.12);
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 253, 251, 0.97);
  box-shadow: 0 12px 27px rgba(113, 70, 72, 0.13);
  color: #775e5e;
  font-family: var(--font-hand);
  font-size: 11.5px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease 0.12s, transform 0.35s var(--ease) 0.12s;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.peek.is-showing .peek-bubble {
  opacity: 1;
  transform: translateY(0);
}

.peek-bubble small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--font-body);
  font-size: 8.5px;
}

.heart-layer {
  position: fixed;
  inset: 0;
  z-index: 320;
  overflow: hidden;
  pointer-events: none;
}

.floating-heart {
  position: fixed;
  color: var(--berry);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  animation: heartFloat 0.9s var(--ease-soft) forwards;
  filter: drop-shadow(0 3px 5px rgba(255, 77, 109, 0.18));
}

@keyframes heartFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.5) rotate(-8deg);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -12px) scale(1.1) rotate(6deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift, 12px)), -72px) scale(0.88) rotate(-6deg);
  }
}

.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lift);
  color: var(--ink);
  text-align: center;
}

/* ------------------------------------------------------------- responsive */

@media (min-width: 560px) {
  .gate-login {
    padding-right: 24px;
    padding-left: 24px;
  }

  .login-inner {
    padding: 31px 29px 23px;
  }

  .main {
    padding-right: 24px;
    padding-left: 24px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "hero hero"
      "countdown mood"
      "question question"
      "photo photo"
      "connection connection";
  }

  .hero-card {
    grid-area: hero;
  }

  .countdown-card {
    grid-area: countdown;
  }

  .question-card {
    grid-area: question;
  }

  .mood-card {
    grid-area: mood;
  }

  .photo-card {
    grid-area: photo;
  }

  .connection-card {
    grid-area: connection;
  }

  .hero-card {
    padding: 26px;
  }

  .latest-photo-layout {
    grid-template-columns: minmax(155px, 46%) minmax(0, 1fr);
    gap: 22px;
  }

  .photo-side-caption {
    -webkit-line-clamp: 4;
    font-size: 14px;
  }

  .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wish-overview {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.7fr);
    align-items: center;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-card {
    padding: 29px 27px 24px;
  }

  .mood-picker {
    grid-template-columns: repeat(6, 1fr);
  }

  .peek {
    bottom: calc(90px + var(--safe-bottom));
    left: 22px;
  }

  .peek-duck {
    width: 142px;
  }

  .toast {
    bottom: 92px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .bottom-nav {
    right: auto;
    bottom: 14px;
    left: 50%;
    width: min(560px, calc(100vw - 40px));
    padding: 7px 10px;
    border: 1px solid rgba(244, 226, 221, 0.9);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(113, 70, 72, 0.12);
    transform: translateX(-50%);
  }

  .bottom-link.is-active::after {
    bottom: 1px;
  }

  .main {
    padding-bottom: 120px;
  }

  .toast {
    bottom: 92px;
  }
}

@media (min-width: 760px) {
  .dashboard-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas: none;
    gap: 16px;
  }

  .hero-card,
  .countdown-card,
  .question-card,
  .mood-card,
  .photo-card,
  .connection-card {
    grid-area: auto;
  }

  .hero-card {
    grid-column: span 7;
  }

  .countdown-card {
    grid-column: span 5;
  }

  .question-card {
    grid-column: span 7;
  }

  .mood-card {
    grid-column: span 5;
  }

  .photo-card {
    grid-column: span 7;
  }

  .connection-card {
    grid-column: span 5;
  }

  .hero-card,
  .photo-card,
  .question-card,
  .connection-card {
    grid-column: span 7;
  }

  .countdown-card,
  .mood-card {
    grid-column: span 5;
  }

  .hero-card,
  .countdown-card,
  .question-card,
  .mood-card,
  .photo-card,
  .connection-card {
    padding: 24px;
  }

  .day-number {
    font-size: clamp(6.2rem, 15vw, 7.8rem);
  }

  .page-intro {
    align-items: flex-end;
  }

  .about-stack {
    gap: 17px;
  }

  .about-hero {
    padding: 32px;
  }

  .timeline-card {
    padding: 28px;
  }

  .timeline-item h3 {
    font-size: 17px;
  }

  .timeline-item p {
    font-size: 12px;
  }

  .wish-item {
    padding: 17px 18px;
  }

  .note-composer {
    padding: 24px 24px 20px;
  }
}

@media (min-width: 900px) {
  .gate {
    padding: 16px;
  }

  .gate-panel {
    grid-template-columns: minmax(0, 1.12fr) minmax(410px, 0.88fr);
    width: min(100%, 1480px);
    min-height: calc(100vh - 32px);
    min-height: calc(100dvh - 32px);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 32px;
    background: #fffdfb;
    box-shadow: 0 30px 90px rgba(129, 75, 81, 0.18);
  }

  .gate-story {
    position: relative;
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 30px 36px 22px;
    background:
      radial-gradient(circle at 83% 35%, rgba(255, 255, 255, 0.7), transparent 43%),
      radial-gradient(circle at 24% 90%, rgba(255, 232, 204, 0.82), transparent 46%),
      linear-gradient(145deg, #fff1ee 0%, #ffe7e6 49%, #ffdfe3 100%);
  }

  .gate-story::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -160px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    pointer-events: none;
  }

  .gate-story::after {
    content: "";
    position: absolute;
    top: -80px;
    left: -120px;
    width: 440px;
    height: 440px;
    border: 1px dashed rgba(255, 122, 158, 0.17);
    border-radius: 50%;
    pointer-events: none;
  }

  .gate-story-top {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .edition-chip {
    color: rgba(118, 76, 75, 0.55);
    font-family: var(--font-num);
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .gate-art {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 420px;
    margin: 13px 0 0;
  }

  .gate-script {
    position: absolute;
    top: 2%;
    left: -6px;
    z-index: 0;
    color: rgba(255, 255, 255, 0.53);
    font-family: var(--font-num);
    font-size: clamp(5.8rem, 10vw, 9rem);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.08em;
    line-height: 0.8;
    pointer-events: none;
  }

  .gate-script span {
    color: rgba(255, 77, 109, 0.42);
  }

  .gate-orb {
    position: absolute;
    top: 2%;
    right: -3%;
    width: min(35vw, 435px);
    min-width: 320px;
    max-width: 440px;
    aspect-ratio: 1;
    filter: drop-shadow(0 22px 30px rgba(166, 83, 95, 0.08));
    animation: gateOrbFloat 7s ease-in-out infinite;
  }

  .gate-still {
    display: block;
    width: 100%;
    height: 100%;
  }

  @keyframes gateOrbFloat {
    0%,
    100% {
      transform: translateY(0) rotate(0);
    }
    50% {
      transform: translateY(-8px) rotate(0.7deg);
    }
  }

  .gate-quote {
    position: absolute;
    bottom: 6%;
    left: 0;
    z-index: 2;
    width: min(320px, 72%);
    padding: 18px 21px 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 252, 249, 0.66);
    box-shadow: 0 16px 36px rgba(141, 82, 89, 0.1);
    -webkit-backdrop-filter: blur(13px);
    backdrop-filter: blur(13px);
    transform: rotate(-2.4deg);
  }

  .quote-mark {
    position: absolute;
    top: -22px;
    left: 12px;
    color: rgba(255, 122, 158, 0.33);
    font-family: var(--font-num);
    font-size: 54px;
    font-style: italic;
    line-height: 1;
  }

  .gate-quote p {
    color: #775a5b;
    font-family: var(--font-hand);
    font-size: 15px;
    line-height: 1.75;
  }

  .gate-quote small {
    display: block;
    margin-top: 9px;
    color: rgba(117, 82, 82, 0.55);
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .gate-stamp {
    position: absolute;
    right: 3%;
    bottom: 12%;
    z-index: 2;
    padding: 7px 9px;
    border: 1px solid rgba(148, 92, 91, 0.25);
    border-radius: 3px;
    color: rgba(148, 92, 91, 0.48);
    font-family: var(--font-num);
    font-size: 9px;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-align: center;
    transform: rotate(5deg);
  }

  .gate-story-foot {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 15px;
    border-top: 1px solid rgba(137, 84, 85, 0.13);
    color: rgba(111, 75, 75, 0.55);
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }

  .gate-story-foot span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--berry);
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.12);
  }

  .gate-login {
    min-height: 0;
    justify-content: center;
    padding: 42px 44px 30px;
    background:
      radial-gradient(circle at 100% 100%, rgba(255, 247, 240, 0.9), transparent 44%),
      #fffdfb;
  }

  .gate-login::before,
  .gate-login::after {
    display: none;
  }

  .login-mobile-top {
    display: none;
  }

  .login-inner {
    max-width: 390px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .login-seal {
    width: 47px;
    height: 47px;
    margin-bottom: 27px;
  }

  .login-inner h1 {
    font-size: clamp(2.9rem, 4.4vw, 3.35rem);
  }

  .gate-lede {
    margin-top: 14px;
    font-size: 13.5px;
  }

  #codePanel,
  #identityPanel {
    margin-top: 34px;
  }

  #gateForm label {
    font-size: 13.5px;
  }

  .gate-hint {
    margin-top: 12px;
  }

  .gate-login-foot {
    margin-top: 55px;
    padding-top: 17px;
    border-top-color: rgba(244, 226, 221, 0.9);
    font-size: 9px;
  }

  .gate-story-top .brand-type strong {
    font-size: 16px;
  }

  .gate-story-top .brand-mark {
    width: 34px;
    height: 38px;
  }
}

@media (min-width: 960px) {
  .app {
    display: grid;
    grid-template-columns: 262px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    padding: 28px 19px 18px;
    border-right: 1px solid rgba(244, 226, 221, 0.78);
    background:
      linear-gradient(180deg, rgba(255, 252, 249, 0.8), rgba(255, 247, 243, 0.7));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .sidebar .brand {
    padding: 0 7px;
  }

  .sidebar .brand-mark {
    width: 35px;
    height: 39px;
  }

  .sidebar .brand-type strong {
    font-size: 16px;
  }

  .sidebar-note {
    margin: 20px 7px 35px;
    color: #aa908d;
    font-family: var(--font-hand);
    font-size: 12.5px;
    line-height: 1.75;
  }

  .side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    border-radius: 15px;
    color: #927b78;
    text-decoration: none;
    transition:
      transform 0.22s var(--ease),
      color 0.2s ease,
      background-color 0.2s ease,
      box-shadow 0.22s ease;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.66);
    color: var(--ink);
    transform: translateX(2px);
  }

  .nav-icon {
    display: grid;
    width: 35px;
    height: 35px;
    flex: none;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.48);
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .nav-icon .icon {
    width: 18px;
    height: 18px;
  }

  .nav-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
  }

  .nav-copy strong {
    font-size: 12.5px;
    font-weight: 600;
  }

  .nav-copy small {
    color: #beaba8;
    font-size: 7px;
    font-weight: 650;
    letter-spacing: 0.11em;
  }

  .nav-dot {
    width: 5px;
    height: 5px;
    margin-left: auto;
    border-radius: 50%;
    background: transparent;
    transition: background-color 0.2s ease;
  }

  .nav-link.is-active {
    background: #fff;
    box-shadow: 0 6px 17px rgba(255, 122, 158, 0.11);
    color: var(--berry);
  }

  .nav-link.is-active .nav-icon {
    background: #fff0f3;
    color: var(--berry);
  }

  .nav-link.is-active .nav-copy strong {
    font-weight: 700;
  }

  .nav-link.is-active .nav-dot {
    background: var(--berry);
  }

  .sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
  }

  .sidebar-presence {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 10px;
    border: 1px solid rgba(255, 122, 158, 0.09);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 7px 18px rgba(255, 122, 158, 0.07);
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }

  .sidebar-presence.is-online {
    border-color: rgba(255, 122, 158, 0.2);
    background: #fff9f9;
  }

  .sidebar-presence .avatar {
    width: 27px;
    height: 27px;
    font-size: 10px;
  }

  .sidebar-presence-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
  }

  .sidebar-presence-copy strong {
    color: #7f6666;
    font-size: 10px;
    font-weight: 650;
  }

  .sidebar-presence-copy small {
    overflow: hidden;
    color: var(--faint);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-presence .presence-dot {
    margin-left: auto;
  }

  .sidebar-bottom > .quiet-button {
    align-self: flex-start;
    margin-left: 4px;
  }

  .mobile-header,
  .bottom-nav {
    display: none;
  }

  .main-shell {
    min-width: 0;
  }

  .main {
    width: 100%;
    max-width: 1240px;
    padding: 45px 34px 34px;
  }

  .page-intro,
  .page-head {
    margin-bottom: 26px;
  }

  .page-title {
    font-size: clamp(2.25rem, 3.6vw, 2.85rem);
  }

  .online-pill--desktop {
    display: inline-flex;
    margin-bottom: 5px;
  }

  .page-sub {
    font-size: 13px;
  }

  .dashboard-grid {
    gap: 17px;
  }

  .hero-card,
  .countdown-card,
  .question-card,
  .mood-card,
  .photo-card,
  .connection-card {
    padding: 25px;
  }

  .hero-card {
    grid-column: span 7;
  }

  .countdown-card {
    grid-column: span 5;
  }

  .question-card {
    grid-column: span 7;
  }

  .mood-card {
    grid-column: span 5;
  }

  .photo-card {
    grid-column: span 7;
  }

  .connection-card {
    grid-column: span 5;
  }

  .day-number {
    font-size: clamp(6.5rem, 10vw, 8.4rem);
  }

  .hero-art {
    right: 20px;
    bottom: 15px;
    width: 150px;
  }

  .latest-photo-layout {
    grid-template-columns: minmax(140px, 42%) minmax(0, 1fr);
    gap: 24px;
  }

  .photo-side-caption {
    font-size: 13.5px;
  }

  .app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 34px 24px;
    color: #c0aba7;
    font-size: 8.5px;
    letter-spacing: 0.11em;
  }

  .app-footer .quiet-button {
    letter-spacing: 0;
  }

  .month-grid,
  .memory-grid {
    gap: 19px;
  }

  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
  }

  .note-paper {
    min-height: 175px;
  }

  .about-hero {
    padding: 36px 38px;
  }

  .about-hero h2 {
    font-size: 2.35rem;
  }

  .timeline-card {
    padding: 30px 34px;
  }

  .modal-layer {
    padding: 24px;
  }

  .modal-card {
    width: min(100%, 550px);
    padding: 31px 30px 25px;
  }

  .toast {
    bottom: 26px;
  }

  .peek {
    bottom: 12px;
    left: 24px;
  }

  .peek-bubble {
    margin-bottom: 92px;
  }

  .peek-duck {
    width: 152px;
  }
}

@media (min-width: 1180px) {
  .app {
    grid-template-columns: 276px minmax(0, 1fr);
  }

  .sidebar {
    padding: 34px 23px 22px;
  }

  .main {
    padding: 50px 48px 36px;
  }

  .app-footer {
    padding-right: 48px;
    padding-left: 48px;
  }

  .dashboard-grid {
    gap: 19px;
  }

  .hero-card,
  .photo-card,
  .question-card,
  .connection-card {
    padding: 28px;
  }

  .countdown-card,
  .mood-card {
    padding: 27px;
  }

  .hero-bottom {
    margin-top: 20px;
  }

  .hero-copy {
    font-size: 13.5px;
  }

  .day-number {
    font-size: 8.8rem;
  }

  .latest-photo-layout {
    grid-template-columns: minmax(155px, 40%) minmax(0, 1fr);
    gap: 28px;
  }

  .memory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .note-paper {
    padding: 23px 21px 17px;
  }

  .note-text {
    font-size: 16.5px;
  }

  .about-stack {
    gap: 19px;
  }

  .about-hero {
    padding: 41px 44px;
  }
}

/* ------------------------------------------------------------- fine tuning */

@media (hover: hover) {
  .card {
    transition: box-shadow 0.28s ease, transform 0.28s var(--ease);
  }

  .card:not(.hero-card):not(.question-card):hover {
    box-shadow: var(--shadow-soft);
  }

  .latest-photo .polaroid:hover {
    box-shadow:
      0 13px 30px rgba(137, 93, 79, 0.17),
      0 2px 5px rgba(137, 93, 79, 0.07);
  }
}

@media (max-width: 374px) {
  .gate-submit {
    padding: 0 14px;
  }

  .gate-submit .icon {
    display: none;
  }

  .answer-field {
    padding-left: 13px;
  }

  .login-inner {
    padding-right: 17px;
    padding-left: 17px;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-bottom .btn {
    width: 100%;
  }

  .latest-photo-layout {
    grid-template-columns: 1fr;
  }

  .latest-photo .polaroid {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-height: 740px) and (max-width: 899px) {
  .gate-login {
    justify-content: flex-start;
  }
}

@media (max-height: 660px) and (min-width: 900px) {
  .gate-login {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .peek {
    transform: none !important;
    opacity: 1 !important;
  }

  .peek-duck {
    animation: none;
  }
}
