/* ==========================================================================
   恋爱小屋 · Kitty 粉情侣空间
   ========================================================================== */

:root {
  --pink-25: #fffafc;
  --pink-50: #fff5f8;
  --pink-75: #ffedf3;
  --pink-100: #ffe2ec;
  --pink-150: #ffd5e3;
  --pink-200: #ffc4d8;
  --pink-300: #ffa3c2;
  --pink-400: #fb82ac;
  --pink-500: #f2679a;
  --pink-600: #df4e85;
  --pink-700: #c63e72;
  --ink: #4b2b3b;
  --ink-soft: #7d5d6c;
  --muted: #a48794;
  --muted-light: #c3a8b3;
  --cream: #fff9f2;
  --white: #fffdfd;
  --line: rgba(216, 141, 168, .18);
  --line-strong: rgba(216, 141, 168, .32);
  --shadow-xs: 0 4px 14px rgba(177, 89, 123, .06);
  --shadow-sm: 0 10px 28px rgba(177, 89, 123, .09);
  --shadow-md: 0 18px 46px rgba(177, 89, 123, .13);
  --shadow-lg: 0 30px 70px rgba(160, 72, 106, .2);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --font-rounded: "Yuanti SC", "YouYuan", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-display: "Yuanti SC", "YouYuan", "Microsoft YaHei", sans-serif;
  --nav-height: 76px;
  --ease-out: cubic-bezier(.2, .85, .3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: #f8dce6;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 16%, #ffe9f0 0 0, transparent 34%),
    radial-gradient(circle at 84% 16%, #ffe2ed 0 0, transparent 28%),
    radial-gradient(circle at 76% 88%, #ffeedf 0 0, transparent 35%),
    linear-gradient(145deg, #f7d9e4 0%, #f4e4e9 44%, #ecdce8 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
}
button, a { touch-action: manipulation; }
button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--pink-200); color: var(--ink); }
:focus-visible {
  outline: 3px solid rgba(242, 103, 154, .35);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   桌面摆台 & 手机壳
   -------------------------------------------------------------------------- */

.desktop-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.backdrop-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .8;
}
.orb-a {
  width: 420px; height: 420px;
  top: -160px; left: -110px;
  background: radial-gradient(circle at 60% 60%, rgba(255, 207, 225, .9), rgba(255, 207, 225, 0) 68%);
}
.orb-b {
  width: 500px; height: 500px;
  right: -190px; bottom: -160px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 230, 213, .9), rgba(255, 230, 213, 0) 66%);
}
.orb-c {
  width: 280px; height: 280px;
  left: 42%; bottom: -170px;
  background: radial-gradient(circle, rgba(255, 255, 255, .7), transparent 70%);
}
.backdrop-sticker {
  position: absolute;
  font-size: 42px;
  filter: saturate(.85);
  opacity: .55;
  animation: floatSlow 8s ease-in-out infinite;
}
.sticker-left { left: max(4vw, 20px); top: 22%; transform: rotate(-12deg); }
.sticker-right { right: max(4vw, 20px); top: 62%; transform: rotate(14deg); animation-delay: -3s; }
.backdrop-caption {
  position: absolute;
  left: 5vw;
  bottom: 4vh;
  font-family: var(--font-round);
  font-size: 11px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(122, 74, 92, .38);
}

.phone-shell {
  position: relative;
  width: 432px;
  height: min(920px, calc(100vh - 34px));
  height: min(920px, calc(100dvh - 34px));
  margin: 17px auto;
  display: flex;
  flex-direction: column;
  background: var(--pink-50);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 46px;
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, .22),
    0 28px 80px rgba(112, 48, 73, .24),
    0 4px 18px rgba(112, 48, 73, .12);
  overflow: hidden;
  isolation: isolate;
}
.status-bar {
  height: 38px;
  flex: 0 0 38px;
  background: #fff8fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 28px 0;
  color: #3e2a33;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1px;
  z-index: 5;
}
.status-icons { display: flex; align-items: center; gap: 6px; }
.status-icons svg { display: block; }

.screen {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--pink-50);
}
.screen-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .82), transparent 23%),
    radial-gradient(circle at 88% 10%, rgba(255, 228, 238, .8), transparent 26%),
    linear-gradient(180deg, #fff4f7 0%, #fff8fa 34%, #fff5f7 100%);
}
.screen-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(232, 167, 189, .17) .8px, transparent .9px);
  background-size: 17px 17px;
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 88%, transparent 100%);
}
.bg-paw, .bg-bow, .bg-cat { position: absolute; opacity: .42; }
.bg-paw.paw-a { width: 84px; left: 16px; top: 42%; transform: rotate(-16deg); opacity: .3; }
.bg-bow.bow-a { width: 150px; right: -35px; top: 35%; transform: rotate(16deg); opacity: .26; }
.bg-cat.cat-a { width: 380px; right: -150px; bottom: -100px; opacity: .2; }

.screen-scroll {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 2;
  -webkit-overflow-scrolling: touch;
}
.screen-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
.phone-shell.has-nav .screen-scroll { padding-bottom: calc(var(--nav-height) + 26px); padding-bottom: calc(var(--nav-height) + 26px + env(safe-area-inset-bottom)); }
#app { min-height: 100%; }

.nav-root {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 60;
  pointer-events: none;
}
.nav-root .bottom-nav { pointer-events: auto; }

/* --------------------------------------------------------------------------
   基础组件
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  padding: 0 16px 34px;
  margin-top: -17px;
}
.page.home-page { margin-top: -18px; }
.page.tasks-page { padding-top: 0; }
.page-enter { animation: pageIn .42s var(--ease-out) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 253, 253, .83);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px) saturate(1.03);
  -webkit-backdrop-filter: blur(16px) saturate(1.03);
}
.card-strong {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, .76);
  background: rgba(255, 253, 253, .78);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px) saturate(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.05);
}
.card + .card, .section-block + .section-block { margin-top: 14px; }

.kicker {
  display: inline-block;
  font-family: var(--font-rounded);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}
.section-heading.compact { margin-bottom: 12px; }
.section-heading h2 {
  margin-top: 3px;
  font-family: var(--font-rounded);
  font-size: 21px;
  line-height: 1.24;
  letter-spacing: -.03em;
  font-weight: 900;
  color: var(--ink);
}
.section-heading p {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}
.section-heading .section-action { flex: 0 0 auto; }

.soft-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 7px 10px 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .9);
  color: var(--pink-600);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(210, 107, 144, .06);
}
.arrow-icon { color: currentColor; flex: 0 0 auto; }
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 0;
}
.text-button:hover { color: var(--pink-600); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--font-rounded);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .18s var(--ease-out), box-shadow .18s, filter .18s;
}
.pill:active { transform: scale(.97); }
.pill.primary {
  color: #fff;
  background: linear-gradient(135deg, #fa8db6 0%, #f2679a 60%, #eb5a90 100%);
  box-shadow: 0 8px 18px rgba(226, 82, 134, .26), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.pill.primary:hover { filter: brightness(1.02); box-shadow: 0 10px 22px rgba(226, 82, 134, .32); }
.pill.soft {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .7);
  border-color: rgba(233, 176, 197, .32);
  box-shadow: 0 4px 12px rgba(190, 101, 132, .06);
}
.pill.soft:hover { color: var(--pink-600); background: #fff; }
.pill.light { background: rgba(255, 255, 255, .94); color: var(--pink-600); box-shadow: 0 7px 18px rgba(150, 54, 91, .15); }
.pill.danger { background: linear-gradient(135deg, #ff8799, #f16075); color: #fff; }
.pill.small { min-height: 35px; padding: 0 14px; font-size: 12px; gap: 5px; }
.pill.tiny { min-height: 30px; padding: 0 11px; font-size: 11px; gap: 3px; }
.pill.full { width: 100%; }
.pill:disabled { opacity: .55; cursor: not-allowed; }
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 29px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(229, 163, 187, .34);
  transition: .18s;
}
.mini-btn:hover { background: #fff; color: var(--pink-600); }
.mini-btn.accent { background: var(--pink-100); color: var(--pink-600); border-color: transparent; }
.round-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 4px 12px rgba(168, 84, 113, .08);
  transition: .18s;
}
.round-button:hover { background: #fff; color: var(--pink-600); }
.round-button.small { width: 32px; height: 32px; }

.ui-icon { display: block; flex: 0 0 auto; }
.emoji-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff1f6, #ffe5ef);
  font-size: 21px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

/* 小进度环 */
.progress-ring { position: relative; flex: 0 0 auto; display: grid; place-items: center; }
.progress-ring svg { transform: rotate(-90deg); overflow: visible; }
.progress-ring .ring-bg { fill: none; stroke: rgba(232, 175, 198, .22); stroke-width: 7; }
.progress-ring .ring-value {
  fill: none;
  stroke: url(#none);
  stroke: var(--pink-400);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset .5s var(--ease-out);
}
.progress-ring .ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-rounded);
  font-size: 12px;
  line-height: 1.05;
  font-weight: 900;
  color: var(--pink-600);
}
.progress-ring .ring-label small { color: var(--muted); font-size: 8px; font-weight: 700; }
.progress-ring .ring-label b { font-size: 22px; line-height: 1.1; }
.progress-track {
  height: 7px;
  border-radius: 99px;
  background: rgba(232, 175, 198, .25);
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffaecb, #f26c9e);
  transition: width .45s var(--ease-out);
}

/* --------------------------------------------------------------------------
   顶部粉色橱窗
   -------------------------------------------------------------------------- */

.chrome {
  position: relative;
  height: 158px;
  overflow: hidden;
  padding: 14px 15px 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, .35), transparent 26%),
    radial-gradient(circle at 88% 140%, rgba(255, 255, 255, .28), transparent 45%),
    linear-gradient(160deg, #ffd7e5 0%, #ffb4d0 42%, #ff84b1 100%);
  border-radius: 0 0 34px 34px;
  z-index: 1;
}
.chrome::before {
  content: "";
  position: absolute;
  left: -30px;
  right: -30px;
  bottom: -30px;
  height: 64px;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 244, 248, .5);
  filter: blur(12px);
}
.chrome::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  opacity: .75;
  background:
    radial-gradient(circle at 12px 16px, transparent 12px, rgba(255, 255, 255, .35) 13px, transparent 14px) 0 0 / 24px 16px repeat-x;
}
.home-chrome {
  height: 246px;
  padding-top: 14px;
  border-radius: 0 0 38px 38px;
}
.chrome-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  filter: blur(1px);
}
.chrome-orb.one { width: 95px; height: 95px; right: -22px; top: 70px; }
.chrome-orb.two { width: 39px; height: 39px; right: 42px; top: 36px; background: rgba(255, 255, 255, .18); }
.chrome-kitty {
  position: absolute;
  right: -26px;
  top: 72px;
  width: 180px;
  opacity: .15;
  pointer-events: none;
}
.chrome-kitty svg { width: 100%; height: auto; }
.chrome-spark {
  position: absolute;
  color: rgba(255, 255, 255, .4);
  font-size: 13px;
  pointer-events: none;
}
.chrome-spark.one { left: 18px; top: 104px; }
.chrome-spark.two { right: 96px; top: 122px; font-size: 9px; }
.chrome-ribbon {
  position: relative;
  height: 55px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .46);
  background: linear-gradient(180deg, rgba(255, 255, 255, .27), rgba(255, 255, 255, .12));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), 0 6px 18px rgba(181, 57, 105, .08);
  overflow: hidden;
}
.ribbon-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .1);
}
.ribbon-bars {
  flex: 1;
  height: 25px;
  opacity: .85;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .4) 0 2px, transparent 2px 8px);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 100%);
}
.ribbon-bars.right { mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%); }
.ribbon-bow {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .36);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .1);
}
.ribbon-bow-svg { width: 43px; filter: drop-shadow(0 2px 3px rgba(156, 49, 88, .17)); }

.hero-heading {
  position: relative;
  padding: 25px 12px 0;
  color: #fff;
  text-shadow: 0 2px 12px rgba(154, 37, 79, .13);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .82);
}
.hero-space { text-transform: uppercase; }
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: .02em;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  background: rgba(157, 48, 89, .14);
  border: 1px solid rgba(255, 255, 255, .18);
}
.online-pill i, .connection-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .52);
}
.online-pill i.on, .connection-dot.on { background: #8bf0c1; box-shadow: 0 0 0 3px rgba(139, 240, 193, .15); }
.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
}
.hero-title-row h1 {
  font-family: var(--font-rounded);
  font-size: 38px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -.04em;
}
.hero-title-row h1 span:not(.hero-heart) { font-size: 44px; }
.hero-heart { display: inline-flex; width: 29px; height: 29px; vertical-align: 4px; margin-left: 2px; filter: drop-shadow(0 3px 8px rgba(121, 33, 64, .18)); }
.hero-heart svg { width: 100%; height: 100%; overflow: visible; }
.hero-bow {
  display: grid;
  place-items: center;
  width: 78px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  transform: rotate(7deg);
}
.hero-bow-svg { width: 64px; opacity: .95; filter: drop-shadow(0 4px 8px rgba(140, 41, 77, .16)); }

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */

.love-hero {
  position: relative;
  padding: 20px 20px 19px;
  min-height: 268px;
  overflow: hidden;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .2), transparent 30%),
    linear-gradient(135deg, #ffa9c8 0%, #f97ca9 44%, #ed5e95 100%);
  box-shadow: 0 22px 46px rgba(211, 74, 124, .25);
  isolation: isolate;
}
.love-hero::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  right: -70px; top: -80px;
  border: 24px solid rgba(255, 255, 255, .07);
}
.love-hero::after {
  content: "LOVE";
  position: absolute;
  font-family: var(--font-display);
  font-size: 144px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.08em;
  right: -22px;
  bottom: -31px;
  color: rgba(255, 255, 255, .06);
  transform: rotate(-4deg);
  pointer-events: none;
}
.love-hero-glow {
  position: absolute;
  width: 190px; height: 170px;
  left: -80px; bottom: -90px;
  background: rgba(255, 226, 237, .18);
  border-radius: 50%;
  filter: blur(18px);
}
.love-hero-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  z-index: 2;
}
.greeting-badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 99px;
  font-weight: 700;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .2);
}
.today-badge { opacity: .8; padding-top: 3px; font-size: 10.5px; }
.love-hero h2 {
  position: relative;
  z-index: 2;
  margin-top: 19px;
  font-family: var(--font-rounded);
  font-size: 27px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -.035em;
  text-shadow: 0 2px 12px rgba(155, 51, 90, .15);
}
.love-quote {
  position: relative;
  z-index: 2;
  margin-top: 7px;
  width: 68%;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .86);
}
.love-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 9px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.love-actions .pill { min-height: 38px; padding: 0 15px; font-size: 12px; }
.love-actions .pill.soft {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}
.love-hero-bow {
  position: absolute;
  right: 19px;
  top: 16px;
  width: 62px;
  opacity: .78;
  transform: rotate(8deg);
}
.hero-corner-bow { width: 62px; }
.pet-inline {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: var(--ink);
  transition: transform .2s var(--ease-out);
}
.pet-inline:hover { transform: translateY(-3px) rotate(-1deg); }
.pet-inline .cat-svg, .pet-inline .pet-svg { width: 100%; height: auto; animation: catBob 3.8s ease-in-out infinite; }
.pet-inline .pet-name-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .94);
  color: #654350;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(119, 49, 74, .1);
  transform: translateY(-5px);
}
.hero-pet {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 111px;
  z-index: 3;
}
.hero-pet .pet-name-tag { margin-top: -2px; background: #fff; }

.anniversary-edit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 6px 2px;
  color: var(--muted);
  font-size: 10px;
}
.anniversary-edit .text-button { color: var(--ink-soft); font-size: 10.5px; }
.anniversary-edit span { text-align: right; opacity: .8; }

.section-block { margin-top: 22px; }
.h-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-right: -16px;
  padding-right: 16px;
  scroll-snap-type: x proximity;
}
.h-scroll::-webkit-scrollbar { display: none; }
.progress-card {
  flex: 0 0 auto;
  padding: 16px;
  scroll-snap-align: start;
}
.progress-habits { width: 288px; }
.progress-todos { width: 184px; background: linear-gradient(160deg, rgba(255, 252, 250, .92), rgba(255, 240, 244, .8)); }
.mini-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mini-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .03em;
}
.big-count {
  display: block;
  margin-top: 2px;
  font-family: var(--font-rounded);
  font-size: 35px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--pink-600);
}
.big-count small { font-size: 15px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.progress-todos .big-count { margin-top: 7px; }
.progress-todos .big-count small { font-size: 10px; white-space: nowrap; }
.habit-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 17px;
}
.habit-mini {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 12px;
  background: rgba(255, 246, 249, .62);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  transition: .2s;
}
.habit-mini.done { color: var(--pink-600); background: #ffeaf2; }
.habit-mini-emoji { font-size: 13px; }
.habit-mini > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.mini-check {
  display: grid;
  place-items: center;
  width: 13px; height: 13px;
  flex: 0 0 13px;
  border-radius: 50%;
  border: 1px solid rgba(226, 160, 184, .6);
  font-size: 8px;
  color: #fff;
}
.habit-mini.done .mini-check { background: var(--pink-400); border-color: var(--pink-400); }
.inline-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 13px;
  color: var(--pink-600);
  font-size: 10.5px;
  font-weight: 800;
}
.todo-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.todo-preview span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.todo-preview i {
  width: 7px; height: 7px;
  flex: 0 0 7px;
  border: 1px solid var(--pink-300);
  border-radius: 50%;
}
.todo-empty {
  margin-top: 17px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.7;
}
.todo-empty span { color: var(--muted-light); font-size: 9.5px; }
.todo-done-count {
  margin-top: 17px;
  color: var(--muted);
  font-size: 9.5px;
}
.tiny-add {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  color: var(--pink-500);
  font-size: 10px;
  font-weight: 800;
}
.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 13px;
}
.shortcut-card {
  position: relative;
  min-height: 142px;
  padding: 15px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 253, 253, .76);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .2s;
}
.shortcut-card:hover { transform: translateY(-2px); }
.weather-shortcut { background: linear-gradient(160deg, #fffdfb, #fff1f3); }
.period-shortcut { background: linear-gradient(160deg, #fffafc, #ffeaf2); }
.shortcut-emoji {
  display: grid;
  place-items: center;
  width: 43px; height: 43px;
  border-radius: 16px;
  background: #fff;
  font-size: 22px;
  box-shadow: 0 5px 14px rgba(176, 117, 133, .1);
}
.shortcut-arrow {
  position: absolute;
  top: 18px; right: 14px;
  color: var(--pink-300);
}
.shortcut-label {
  margin-top: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--muted);
}
.shortcut-card strong {
  margin-top: 1px;
  font-family: var(--font-rounded);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--ink);
}
.shortcut-card strong small { font-size: 11px; color: var(--pink-600); }
.shortcut-card p {
  margin-top: 4px;
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.whisper-card { margin-top: 14px; padding: 17px; }
.whisper-top {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}
.whisper-top small { margin-left: auto; font-size: 9px; color: var(--muted-light); font-weight: 500; }
.whisper-heart { filter: saturate(.8); }
.whisper-card > p {
  margin: 10px 2px 8px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.whisper-card .soft-link { padding-left: 0; background: none; border: none; box-shadow: none; font-size: 10.5px; }
.memory-section { margin-top: 21px; }
.memory-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.memory-thumb {
  position: relative;
  aspect-ratio: .82;
  border-radius: 17px;
  overflow: hidden;
  background: #ffe9f0;
  box-shadow: 0 6px 14px rgba(170, 86, 114, .08);
}
.memory-thumb img { width: 100%; height: 100%; object-fit: cover; }
.memory-thumb span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 7px 7px;
  font-size: 8.5px;
  color: #fff;
  background: linear-gradient(transparent, rgba(84, 39, 55, .64));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.memory-empty {
  grid-column: 1 / -1;
  min-height: 104px;
  border: 1.5px dashed rgba(224, 145, 174, .45);
  border-radius: 18px;
  background: rgba(255, 249, 251, .65);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
}
.daily-love-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 3px 4px;
  padding: 13px 17px;
  border-radius: 18px;
  border: 1px dashed rgba(223, 159, 181, .4);
  color: var(--muted);
  text-align: center;
  justify-content: center;
}
.daily-love-note p {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .02em;
}
.tiny-sparkle { color: var(--pink-300); font-size: 10px; }
.tiny-sparkle.right { opacity: .6; }
.home-footer {
  margin-top: 19px;
  text-align: center;
  color: var(--muted-light);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: .08em;
}

/* --------------------------------------------------------------------------
   底部导航
   -------------------------------------------------------------------------- */

.bottom-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  padding: 8px 5px 7px;
  border-radius: 29px;
  background: rgba(255, 252, 253, .91);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 12px 36px rgba(176, 81, 113, .17), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
}
.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  height: 56px;
  border-radius: 20px;
  color: var(--ink-soft);
  z-index: 1;
}
.nav-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 28px;
  transition: transform .22s var(--ease-out);
}
.nav-emoji { width: 29px; height: 29px; overflow: visible; }
.nav-label {
  font-family: var(--font-rounded);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: .02em;
  font-weight: 700;
  color: var(--muted);
  transition: color .2s;
}
.nav-item.active .nav-icon { transform: translateY(-2px) scale(1.06); }
.nav-item.active .nav-label { color: var(--pink-500); font-weight: 900; }
.nav-glow {
  position: absolute;
  inset: 0;
  border-radius: 19px;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 58%, rgba(255, 167, 197, .32), transparent 70%);
  box-shadow: 0 0 24px rgba(255, 132, 175, .13);
}

/* --------------------------------------------------------------------------
   任务中心
   -------------------------------------------------------------------------- */

.task-summary {
  padding: 22px 22px 20px;
  min-height: 194px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 90%, rgba(255, 232, 240, .8), transparent 30%),
    rgba(255, 253, 253, .8);
}
.task-summary::after {
  content: "CHECK";
  position: absolute;
  right: -15px;
  top: 34px;
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 900;
  letter-spacing: -.07em;
  color: rgba(250, 167, 196, .11);
  transform: rotate(-5deg);
  pointer-events: none;
}
.summary-copy { position: relative; z-index: 2; max-width: 75%; }
.task-summary h1 {
  margin-top: 4px;
  font-family: var(--font-rounded);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.04em;
}
.task-summary p {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.task-summary-stats {
  display: flex;
  gap: 29px;
  margin-top: 21px;
}
.task-summary-stats div { display: flex; flex-direction: column; gap: 1px; }
.task-summary-stats span { font-size: 10px; color: var(--muted); font-weight: 600; }
.task-summary-stats strong {
  font-family: var(--font-rounded);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--pink-500);
}
.summary-pet {
  position: absolute;
  right: 4px;
  bottom: 3px;
  width: 89px;
  z-index: 2;
}
.habit-list-card { margin-top: 14px; padding: 19px 17px 16px; }
.list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.list-heading h2 {
  margin-top: 4px;
  font-family: var(--font-rounded);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -.03em;
}
.list-heading h2 em {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 3px;
  letter-spacing: 0;
}
.heading-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; padding-top: 5px; }
.counter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ffa3c3, #f16e9f);
  box-shadow: 0 3px 9px rgba(226, 91, 137, .2);
}
.habit-list { margin-top: 12px; }
.habit-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(225, 168, 188, .13);
  animation: rowIn .4s var(--ease-out) both;
  animation-delay: calc(var(--i) * 25ms);
}
.habit-row:last-child { border-bottom: 0; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }
.habit-emoji-wrap {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  border-radius: 50%;
  font-size: 22px;
  background: linear-gradient(145deg, #fff4f7, #ffe4ee);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .2s;
}
.habit-emoji-wrap:active { transform: scale(.92); }
.habit-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.habit-copy strong {
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.35;
}
.habit-copy span {
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.habit-row.done .habit-copy strong { color: var(--pink-600); }
.habit-row.done .habit-emoji-wrap { opacity: .78; }
.streak-badge {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 8.5px;
  color: #d08343;
  background: #fff4e2;
  border: 1px solid #ffe8c8;
  white-space: nowrap;
}
.check-circle {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 50%;
  border: 1.8px solid rgba(236, 174, 196, .55);
  color: #fff;
  font-size: 14px;
  transition: .22s var(--ease-out);
  background: rgba(255, 252, 253, .65);
}
.check-circle.checked {
  background: linear-gradient(145deg, #ff9dbc, #f36b9c);
  border-color: transparent;
  box-shadow: 0 5px 12px rgba(228, 92, 139, .23);
  animation: checkPop .32s var(--ease-out);
}
@keyframes checkPop { 0% { transform: scale(.72); } 75% { transform: scale(1.12); } 100% { transform: scale(1); } }
.remove-mini {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border-radius: 50%;
  color: var(--muted-light);
  font-size: 15px;
  transition: .18s;
}
.remove-mini:hover { background: #ffe8ef; color: var(--pink-600); }
.dashed-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 39px;
  margin-top: 10px;
  border-radius: 13px;
  border: 1.5px dashed rgba(223, 158, 181, .45);
  color: var(--pink-500);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 247, 250, .6);
}
.habit-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted-light);
  font-size: 8.5px;
}
.todo-list-card { padding: 19px 17px 16px; }
.todo-list { margin-top: 12px; }
.todo-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(225, 168, 188, .13);
}
.todo-row:last-child { border: 0; }
.todo-check {
  display: grid;
  place-items: center;
  width: 21px; height: 21px;
  border-radius: 7px;
  border: 1.5px solid var(--pink-300);
  color: #fff;
  font-size: 11px;
  flex: 0 0 21px;
}
.todo-row.done .todo-check { background: var(--pink-400); border-color: var(--pink-400); }
.todo-row > span { flex: 1; font-size: 12px; color: var(--ink-soft); }
.todo-row.done > span { text-decoration: line-through; color: var(--muted-light); }
.done-todos-note { margin-top: 8px; color: var(--muted-light); font-size: 9.5px; }
.quote-card {
  position: relative;
  margin-top: 16px;
  padding: 23px 22px 18px;
  border-radius: 24px;
  color: var(--ink-soft);
  background: linear-gradient(145deg, #fff8f5, #ffeef4);
  border: 1px solid rgba(255, 255, 255, .9);
  overflow: hidden;
}
.quote-card::after {
  content: "🎀";
  position: absolute;
  right: 18px; bottom: 15px;
  font-size: 27px;
  opacity: .5;
}
.quote-mark {
  position: absolute;
  left: 14px;
  top: 1px;
  font-family: Georgia, serif;
  font-size: 44px;
  color: var(--pink-200);
}
.quote-card p {
  position: relative;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.8;
  z-index: 1;
}
.quote-sign {
  display: block;
  margin-top: 9px;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--muted-light);
}

/* --------------------------------------------------------------------------
   桌宠
   -------------------------------------------------------------------------- */

.pet-page { padding-bottom: 30px; }
.pet-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 15px 16px 14px;
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 255, 255, .7), transparent 30%),
    linear-gradient(155deg, #fffaf6 0%, #ffeef3 44%, #ffe4ef 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-md);
}
.pet-scene {
  position: relative;
  min-height: 300px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 76%, rgba(255, 226, 236, .85), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 247, 249, .2));
  overflow: hidden;
}
.pet-theme-mint .pet-scene { background: radial-gradient(circle at 50% 76%, rgba(220, 246, 215, .9), transparent 43%), linear-gradient(180deg, rgba(255,255,255,.6), rgba(246,253,241,.2)); }
.pet-theme-berry .pet-scene { background: radial-gradient(circle at 50% 76%, rgba(255, 220, 228, .9), transparent 43%), linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,242,247,.2)); }
.pet-theme-cream .pet-scene { background: radial-gradient(circle at 50% 76%, rgba(255, 239, 207, .9), transparent 43%), linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,250,240,.2)); }
.pet-speech-bubble {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 38px;
  width: min(218px, 72%);
  padding: 10px 12px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 253, 254, .94);
  border: 1px solid rgba(234, 184, 201, .55);
  box-shadow: 0 8px 22px rgba(170, 100, 125, .12);
  color: #765363;
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
  transform: translateX(-50%);
  animation: bubbleIn .35s var(--ease-out) both;
}
.pet-speech-bubble.pop { animation: bubblePop .45s var(--ease-out) both; }
.pet-speech-bubble i { position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: rgba(255, 253, 254, .94); border-right: 1px solid rgba(234, 184, 201, .55); border-bottom: 1px solid rgba(234, 184, 201, .55); transform: translateX(-50%) rotate(45deg); }
.pet-speech-mint { background: #fbfff8; border-color: #bfe3bd; color: #567052; }
.pet-speech-mint i { background: #fbfff8; border-color: #bfe3bd; }
.pet-speech-berry { background: #fff8fb; border-color: #e6b1c2; color: #7c4559; }
.pet-speech-berry i { background: #fff8fb; border-color: #e6b1c2; }
.pet-speech-cream { background: #fffdf7; border-color: #e7d2a4; color: #7f6543; }
.pet-speech-cream i { background: #fffdf7; border-color: #e7d2a4; }
.pet-scene::before, .pet-scene::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}
.pet-scene::before { width: 7px; height: 7px; left: 21%; top: 24%; box-shadow: 85px -20px 0 1px rgba(255,255,255,.5), 215px 30px 0 -1px rgba(255,255,255,.5), 43px 120px 0 0 rgba(255,255,255,.4); }
.pet-scene::after { width: 5px; height: 5px; right: 27%; top: 45%; box-shadow: -60px 40px 0 1px rgba(255,255,255,.45), 50px 90px 0 0 rgba(255,255,255,.5); }
.pet-bubble-label {
  position: absolute;
  left: 14px; top: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 99px;
  color: #a17483;
  background: rgba(255, 255, 255, .64);
  border: 1px solid rgba(255, 255, 255, .8);
  font-size: 9px;
  letter-spacing: .06em;
  font-weight: 700;
}
.pet-stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 30px;
}
.big-cat, .big-pet {
  width: 175px;
  filter: drop-shadow(0 14px 18px rgba(161, 87, 107, .14));
  animation: catBob 4s ease-in-out infinite;
}
.pet-svg { display: block; overflow: visible; }
.big-pet.pet-frog { width: 185px; }
.big-pet.pet-spider { width: 188px; }
.big-pet.pet-dog { width: 182px; }
.big-pet .pet-svg, .big-cat { animation: catBob 4s ease-in-out infinite; }
.pet-heart-float {
  position: absolute;
  right: 28%;
  top: 12%;
  font-size: 19px;
  opacity: .7;
  animation: floatHeart 3.2s ease-in-out infinite;
}
.sparkle { position: absolute; color: #f3afc5; font-size: 15px; animation: twinkle 2.8s ease-in-out infinite; }
.sparkle.s1 { left: 18%; top: 34%; }
.sparkle.s2 { right: 18%; top: 25%; animation-delay: -1.2s; }
.sparkle.s3 { left: 25%; bottom: 18%; font-size: 10px; animation-delay: -2s; }
.pet-info {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5px 0 15px;
}
.level-chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 99px;
  background: #fff0f5;
  color: var(--pink-500);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
}
.pet-name-row { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 3px; }
.pet-info h1 {
  margin-top: 3px;
  font-family: var(--font-rounded);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #4f2e3c;
}
.pet-rename-mini { min-height: 20px; padding: 0 6px; font-size: 7px; color: var(--muted); }
.pet-info p { margin-top: 2px; color: var(--muted); font-size: 10px; }
.pet-page-mini {
  position: absolute;
  right: 9px;
  bottom: 4px;
  width: 72px;
  z-index: 3;
}
.pet-level-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 3px 0;
  color: var(--muted);
  font-size: 8.5px;
}
.pet-level-track {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: rgba(225, 170, 190, .28);
  overflow: hidden;
}
.pet-level-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffc1d6, #f26c9e); }
.pet-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 14px; }
.pet-stat {
  padding: 14px 15px 12px;
  border-radius: 23px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 253, 253, .8);
  box-shadow: var(--shadow-sm);
}
.pet-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pet-stat-emoji { font-size: 23px; }
.pet-stat-value {
  font-family: var(--font-rounded);
  font-size: 29px;
  line-height: 1;
  font-weight: 900;
  color: var(--pink-500);
  letter-spacing: -.03em;
}
.pet-stat-label { margin: 3px 0 8px; font-size: 9px; color: var(--muted); font-weight: 700; }
.pet-stat-bar { height: 6px; }
.pet-action-panel { margin-top: 14px; padding: 15px; }
.pet-dialogue {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 12px;
  border-bottom: 1px dashed rgba(225, 163, 185, .22);
}
.pet-dialogue .tiny-cat, .pet-dialogue .tiny-pet { width: 38px; flex: 0 0 38px; }
.pet-dialogue p { font-size: 10.5px; color: var(--ink-soft); line-height: 1.6; }
.pet-dialogue p small { display: block; margin-top: 2px; color: var(--muted-light); font-size: 7.5px; line-height: 1.5; }
.pet-actions { display: flex; justify-content: space-between; gap: 4px; padding-top: 13px; }
.pet-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 8px 3px 7px;
  border-radius: 16px;
  background: rgba(255, 247, 250, .65);
  transition: .18s var(--ease-out);
}
.pet-action:hover { background: #ffeaf2; transform: translateY(-2px); }
.pet-action:active { transform: scale(.94); }
.pet-action span { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 13px; background: #fff; font-size: 20px; box-shadow: 0 4px 10px rgba(177, 100, 126, .08); }
.pet-action small { color: var(--ink-soft); font-size: 9px; font-weight: 700; }
.pet-tip { display: flex; gap: 10px; margin-top: 13px; padding: 14px; }
.pet-tip .tip-emoji { font-size: 21px; }
.pet-tip strong { font-size: 11.5px; }
.pet-tip p { margin-top: 3px; font-size: 9.5px; line-height: 1.6; color: var(--muted); }

.pet-gallery { margin-top: 14px; padding: 16px 14px 13px; }
.pet-choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
.pet-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 7px 3px 6px;
  border-radius: 14px;
  border: 1px solid rgba(229, 174, 194, .22);
  background: rgba(255, 249, 252, .65);
  transition: .18s var(--ease-out);
}
.pet-choice:hover { background: #fff0f5; transform: translateY(-2px); }
.pet-choice.active { border-color: rgba(242, 125, 162, .55); background: #fff0f5; box-shadow: 0 5px 14px rgba(215, 100, 139, .1); }
.pet-choice-art { display: block; width: 58px; height: 62px; margin-bottom: 2px; }
.pet-choice-art .pet-svg, .pet-choice-art .cat-svg { width: 100%; height: 100%; object-fit: contain; }
.pet-choice-art .pet-svg { animation: catBob 4.6s ease-in-out infinite; }
.pet-choice strong { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: 8.5px; font-weight: 900; }
.pet-choice small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 20px; margin-top: 1px; color: var(--muted-light); font-size: 6.5px; line-height: 1.45; }
.pet-choice b { position: absolute; right: 3px; top: 3px; padding: 1px 4px; border-radius: 99px; color: #fff; background: #ef79a3; font-size: 6px; font-weight: 800; }
.pet-gallery-note { margin-top: 9px; color: var(--muted-light); font-size: 7.5px; line-height: 1.55; text-align: center; }
.pet-choice-art .cat-svg, .pet-choice-art .pet-svg { filter: drop-shadow(0 3px 3px rgba(130, 76, 94, .08)); }

@keyframes bubbleIn { from { opacity: 0; transform: translateX(-50%) translateY(5px) scale(.96); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes bubblePop { 0% { transform: translateX(-50%) scale(.92); } 60% { transform: translateX(-50%) scale(1.03); } 100% { transform: translateX(-50%) scale(1); } }

/* --------------------------------------------------------------------------
   情侣小游戏
   -------------------------------------------------------------------------- */

.games-hero { padding: 21px 20px 20px; overflow: hidden; min-height: 179px; }
.games-hero h1 {
  margin-top: 4px;
  font-family: var(--font-rounded);
  font-size: 27px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -.04em;
}
.room-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 9.5px;
  flex-wrap: wrap;
}
.room-label b { color: var(--ink-soft); letter-spacing: .06em; }
.room-status { display: inline-flex; align-items: center; gap: 5px; }
.room-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink-300); }
.room-status i.on { background: #79cfaa; box-shadow: 0 0 0 3px rgba(121, 207, 170, .13); }
.games-pet { position: absolute; right: 8px; bottom: 4px; width: 78px; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 13px; }
.game-card {
  position: relative;
  min-height: 176px;
  padding: 15px 14px;
  text-align: left;
  border-radius: 27px;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s var(--ease-out), box-shadow .22s;
}
.game-card:hover { transform: translateY(-3px) rotate(-.25deg); box-shadow: var(--shadow-md); }
.game-card::after {
  content: "";
  position: absolute;
  width: 105px; height: 105px;
  right: -40px; bottom: -42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
}
.game-rose { background: linear-gradient(150deg, #fff7f8, #ffe4ee); }
.game-peach { background: linear-gradient(150deg, #fffaf4, #ffe8e5); }
.game-pink { background: linear-gradient(150deg, #fff6fa, #ffe0ec); }
.game-lilac { background: linear-gradient(150deg, #fcf8ff, #f0e8fb); }
.game-emoji {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 25px;
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(172, 90, 117, .08);
}
.game-tag {
  position: absolute;
  right: 12px; top: 16px;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .55);
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}
.game-card strong {
  display: block;
  margin-top: 15px;
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--ink);
}
.game-card small { display: block; margin-top: 3px; max-width: 90%; font-size: 9.5px; line-height: 1.55; color: var(--muted); }
.game-go {
  position: absolute;
  right: 13px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: var(--pink-500);
  z-index: 1;
}
.game-invite-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 13px 14px; }
.game-invite-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.game-invite-copy strong { font-size: 11px; }
.game-invite-copy p { margin-top: 2px; max-width: 190px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.game-results { margin-top: 14px; padding: 18px 16px 13px; }
.mini-count { color: var(--muted-light); font-size: 9px; white-space: nowrap; padding-top: 5px; }
.game-result-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(225, 168, 188, .14); }
.game-result-row:last-child { border-bottom: 0; }
.result-emoji { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 13px; background: #fff0f5; font-size: 17px; }
.game-result-row > div { flex: 1; min-width: 0; }
.game-result-row strong { display: block; font-size: 11px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-result-row small { display: block; color: var(--muted-light); font-size: 8.5px; }
.result-score { font-family: var(--font-rounded); font-size: 20px; font-weight: 900; color: var(--pink-500); }
.result-score small { margin-left: 1px; font-size: 8px; color: var(--muted); }
.tiny-footnote { margin: 16px 10px 3px; color: var(--muted-light); font-size: 8.5px; line-height: 1.7; text-align: center; }

/* --------------------------------------------------------------------------
   天气
   -------------------------------------------------------------------------- */

.weather-hero {
  position: relative;
  overflow: hidden;
  padding: 17px 18px 14px;
  min-height: 302px;
  background:
    radial-gradient(circle at 92% 5%, rgba(255, 255, 255, .72), transparent 32%),
    linear-gradient(155deg, #fff8f6 0%, #fff0f3 50%, #ffe3ee 100%);
}
.weather-hero.weather-rain { background: linear-gradient(155deg, #fff9f7 0%, #f8edf2 55%, #e9e4f3 100%); }
.weather-hero.weather-cloud { background: linear-gradient(155deg, #fffaf5 0%, #fff0ef 55%, #f3e9ef 100%); }
.weather-hero.weather-storm { background: linear-gradient(155deg, #f7f2fa, #ede6f3 60%, #e3dfef); }
.weather-hero.weather-snow { background: linear-gradient(155deg, #fdfcff, #f2effa 55%, #e8edf7 100%); }
.weather-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.location-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pink-600);
  font-size: 10px;
  font-weight: 800;
  text-align: left;
}
.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255, 255, 255, .55);
  font-size: 9px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .8);
}
.weather-main { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 15px; }
.weather-temperature strong {
  display: block;
  font-family: var(--font-rounded);
  font-size: 80px;
  line-height: .9;
  font-weight: 900;
  letter-spacing: -.075em;
  color: #573245;
}
.weather-temperature sup { font-size: 34px; vertical-align: top; line-height: 1; letter-spacing: 0; }
.weather-temperature > span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-rounded);
  font-size: 19px;
  font-weight: 700;
  color: #7b5261;
}
.weather-temperature small { display: block; margin-top: 4px; font-size: 8px; color: var(--muted-light); }
.weather-emoji-bubble {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .57);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 12px 28px rgba(159, 130, 157, .1);
  font-size: 58px;
  filter: drop-shadow(0 6px 8px rgba(129, 98, 110, .12));
}
.weather-loading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}
.weather-loading span {
  width: 11px; height: 11px;
  border: 2px solid #ffd4e2;
  border-top-color: var(--pink-400);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.forecast-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(221, 160, 181, .2);
}
.forecast-day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.forecast-label { font-size: 9px; color: var(--muted); }
.forecast-icon { font-size: 24px; filter: saturate(.8); }
.forecast-temp { font-size: 10px; font-weight: 800; color: var(--ink-soft); letter-spacing: .03em; }
.weather-pet { position: absolute; right: 10px; bottom: 50px; width: 59px; opacity: .9; }
.weather-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 13px 6px 11px;
  border-radius: 21px;
  background: rgba(255, 253, 253, .68);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-xs);
}
.metric-card > span { font-size: 22px; }
.metric-card small { color: var(--muted); font-size: 8.5px; }
.metric-card strong { font-family: var(--font-rounded); font-size: 15px; font-weight: 900; color: var(--ink-soft); }
.weather-tips { margin-top: 13px; padding: 19px 18px 13px; }
.weather-tips h2 { font-family: var(--font-rounded); font-size: 18px; font-weight: 900; letter-spacing: -.02em; color: var(--pink-600); }
.tip-row { display: flex; gap: 9px; padding: 10px 0; border-bottom: 1px dashed rgba(222, 164, 184, .2); }
.tip-row:last-child { border-bottom: 0; }
.tip-row span { font-size: 16px; flex: 0 0 21px; }
.tip-row p { font-size: 10.5px; line-height: 1.65; color: var(--ink-soft); }
.weather-love-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 14px 14px;
  border-radius: 23px;
  background: linear-gradient(145deg, #fff6f0, #ffeaf1);
  border: 1px solid rgba(255, 255, 255, .8);
}
.love-note-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 14px; background: #fff; font-size: 19px; }
.weather-love-note > div:nth-child(2) { flex: 1; }
.weather-love-note strong { display: block; font-size: 10.5px; color: var(--ink-soft); }
.weather-love-note p { margin-top: 2px; color: var(--muted); font-size: 8.5px; line-height: 1.5; }

/* --------------------------------------------------------------------------
   例假
   -------------------------------------------------------------------------- */

.period-hero {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow: hidden;
  padding: 20px 17px 18px;
  background:
    radial-gradient(circle at 96% 8%, rgba(255, 255, 255, .8), transparent 28%),
    linear-gradient(150deg, #fffafc, #ffeaf2);
}
.period-hero-copy { position: relative; z-index: 2; max-width: 65%; }
.period-hero h1 {
  margin-top: 6px;
  font-family: var(--font-rounded);
  font-size: 23px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -.035em;
}
.period-hero p { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.period-hero-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.soft-chip {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .65);
  color: var(--pink-600);
  font-size: 8.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .8);
}
.cycle-ring-wrap { position: relative; z-index: 2; margin-left: auto; margin-top: 9px; }
.period-pet { position: absolute; right: 8px; bottom: 4px; width: 57px; opacity: .9; }
.calendar-card { margin-top: 13px; padding: 17px 15px 12px; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calendar-heading h2 { font-family: var(--font-rounded); font-size: 15px; font-weight: 900; color: var(--ink); }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 13px; }
.calendar-weekdays span { text-align: center; color: var(--muted-light); font-size: 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 5px; }
.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 10px;
  transition: .18s;
}
.calendar-day.outside { color: #dcc8d1; opacity: .5; }
.calendar-day.today span { font-weight: 900; color: var(--pink-600); }
.calendar-day.period { background: #ffe0ea; color: var(--pink-700); font-weight: 800; }
.calendar-day.fertile:not(.period) { background: #fff1e5; color: #b78458; }
.calendar-day.ovulation:not(.period) { box-shadow: inset 0 0 0 1px #eecda7; }
.calendar-day.selected { background: var(--pink-500); color: #fff; box-shadow: 0 4px 11px rgba(230, 83, 134, .25); }
.calendar-day.selected span { color: #fff; }
.record-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--pink-500); position: absolute; bottom: 4px; }
.calendar-day.selected .record-dot { background: #fff; }
.calendar-legend { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 7.5px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 3px; }
.calendar-legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.legend-period { background: #ffd1e0; }
.legend-fertile { background: #ffecd9; }
.legend-ovulation { border: 1px solid #e4c296; background: transparent; }
.legend-record { width: 4px !important; height: 4px !important; border-radius: 50% !important; background: var(--pink-500); }
.date-badge {
  padding: 3px 7px;
  border-radius: 8px;
  background: #f6edf0;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}
.period-record-card { margin-top: 13px; padding: 19px 17px 17px; }
.period-form { margin-top: 14px; }
.form-label {
  display: block;
  margin: 13px 0 6px;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-soft);
}
.form-label small { margin-left: 3px; font-size: 8px; color: var(--muted-light); font-weight: 400; }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.segment {
  min-height: 35px;
  border-radius: 11px;
  border: 1px solid rgba(232, 179, 199, .42);
  color: var(--muted);
  font-size: 10px;
  background: rgba(255, 252, 253, .7);
  transition: .18s;
}
.segment.selected {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #ffa8c5, #f477a3);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(220, 93, 137, .18);
}
.chip-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  min-height: 29px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid rgba(229, 176, 196, .4);
  background: rgba(255, 252, 253, .6);
  color: var(--muted);
  font-size: 9px;
  transition: .18s;
}
.chip.selected { color: #fff; background: linear-gradient(135deg, #fdaac6, #f175a1); border-color: transparent; box-shadow: 0 4px 10px rgba(224, 95, 139, .18); }
.chip.soft.selected { background: linear-gradient(135deg, #ffa8c8, #ee6e9f); }
.soft-textarea {
  width: 100%;
  resize: vertical;
  min-height: 75px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(230, 174, 195, .35);
  background: rgba(255, 251, 252, .85);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.7;
  outline: none;
}
.soft-textarea::placeholder { color: #c9aab5; }
.soft-textarea:focus { border-color: var(--pink-300); box-shadow: 0 0 0 3px rgba(243, 138, 172, .09); }
.period-form .pill.full { margin-top: 14px; }
.period-settings-card { margin-top: 13px; padding: 18px 17px; }
.period-settings-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.period-settings-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}
.period-settings-form input {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(229, 174, 195, .35);
  background: rgba(255, 252, 253, .8);
  font-size: 11px;
  outline: none;
}
.period-settings-form .full-row { grid-column: 1 / -1; }
.period-settings-form .pill { margin-top: 3px; }
.care-card { margin-top: 13px; padding: 18px 17px 10px; }
.care-list { margin-top: 7px; }
.care-item { border-bottom: 1px dashed rgba(223, 164, 185, .22); }
.care-item:last-child { border-bottom: 0; }
.care-item summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  list-style: none;
  cursor: pointer;
  font-size: 10.5px;
  color: var(--ink-soft);
}
.care-item summary::-webkit-details-marker { display: none; }
.care-item summary span { font-size: 15px; }
.care-item summary strong { flex: 1; font-weight: 800; }
.care-item summary .ui-icon { color: var(--muted-light); transition: transform .2s; }
.care-item[open] summary .ui-icon { transform: rotate(90deg); }
.care-item p { padding: 0 5px 12px 28px; color: var(--muted); font-size: 9.5px; line-height: 1.8; }

/* --------------------------------------------------------------------------
   管家
   -------------------------------------------------------------------------- */

.whisper-hero {
  position: relative;
  overflow: hidden;
  min-height: 169px;
  padding: 20px 18px;
  border-radius: 31px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 3%, rgba(255, 255, 255, .2), transparent 27%),
    linear-gradient(135deg, #ff9fbe 0%, #f474a2 55%, #ed5d92 100%);
  box-shadow: 0 20px 42px rgba(216, 81, 129, .21);
}
.whisper-hero::after {
  content: "LOVE";
  position: absolute;
  right: -10px; bottom: -26px;
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(255, 255, 255, .07);
}
.whisper-hero-inner { position: relative; z-index: 2; max-width: 74%; }
.whisper-hero .kicker { color: rgba(255, 255, 255, .7); }
.whisper-hero h1 {
  margin-top: 7px;
  font-family: var(--font-rounded);
  font-size: 25px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -.03em;
}
.whisper-hero p { margin-top: 6px; color: rgba(255, 255, 255, .82); font-size: 10px; line-height: 1.65; }
.butler-pet { position: absolute; right: 8px; bottom: 4px; width: 75px; z-index: 3; }
.advice-section { margin-top: 20px; }
.advice-list { display: flex; flex-direction: column; gap: 8px; }
.advice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  animation: rowIn .4s var(--ease-out) both;
  animation-delay: calc(var(--i) * 45ms);
}
.advice-number {
  display: grid;
  place-items: center;
  width: 23px; height: 23px;
  flex: 0 0 23px;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ffabc9, #f171a2);
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(228, 95, 139, .18);
}
.advice-item p { font-size: 10.5px; line-height: 1.7; color: var(--ink-soft); }
.avoid-card { margin-top: 9px; padding: 15px 16px; background: linear-gradient(145deg, #fffcf8, #fff8ef); }
.avoid-card h3, .say-card h3 { font-family: var(--font-rounded); font-size: 13px; font-weight: 900; }
.avoid-card p { margin-top: 7px; color: #92725a; font-size: 10px; line-height: 1.7; }
.say-card { margin-top: 9px; padding: 15px 16px; background: linear-gradient(145deg, #fffafd, #fff1f6); }
.say-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.say-card blockquote {
  margin: 10px 0 12px;
  padding: 12px 13px;
  border-radius: 13px;
  background: #ffe8f1;
  color: var(--pink-600);
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.7;
}
.say-status { display: flex; gap: 7px; flex-wrap: wrap; }
.say-status span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(229, 170, 190, .2);
  color: var(--muted);
  font-size: 8px;
}
.status-icon { font-style: normal; font-size: 10px; }
.note-composer-card { margin-top: 17px; padding: 18px 16px 14px; }
.note-form { display: flex; gap: 7px; margin-top: 12px; }
.note-form input {
  flex: 1;
  min-width: 0;
  height: 39px;
  padding: 0 12px;
  border-radius: 13px;
  border: 1px solid rgba(229, 173, 194, .32);
  background: rgba(255, 250, 252, .9);
  font-size: 10.5px;
  outline: none;
}
.note-form input:focus { border-color: var(--pink-300); box-shadow: 0 0 0 3px rgba(242, 138, 171, .08); }
.note-form .pill { flex: 0 0 auto; }
.note-feed { margin-top: 10px; }
.note-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(224, 167, 187, .2);
}
.note-item:last-child { border-bottom: 0; }
.note-avatar { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 10px; background: #fff0f5; font-size: 13px; }
.note-item > div { flex: 1; min-width: 0; }
.note-item p { font-size: 10.5px; line-height: 1.6; color: var(--ink-soft); }
.note-item small { display: block; margin-top: 2px; color: var(--muted-light); font-size: 8px; }
.empty-inline { padding: 12px 0 5px; color: var(--muted-light); font-size: 9.5px; text-align: center; }
.wish-card { margin-top: 13px; padding: 18px 16px 12px; }
.wish-list { margin-top: 10px; }
.wish-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(224, 167, 187, .2);
}
.wish-row:last-child { border-bottom: 0; }
.wish-emoji {
  display: grid;
  place-items: center;
  width: 37px; height: 37px;
  flex: 0 0 37px;
  border-radius: 13px;
  background: rgba(255, 240, 245, .75);
  font-size: 20px;
}
.wish-row p { flex: 1; min-width: 0; color: var(--ink-soft); font-size: 10.5px; line-height: 1.5; }
.wish-row.arranged p { color: var(--muted-light); text-decoration: line-through; }
.wish-copy { flex: 1; min-width: 0; }
.wish-copy p { font-size: 10.5px; }
.wish-copy small { display: block; margin-top: 1px; color: var(--muted-light); font-size: 8px; }
.wish-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.send-wish {
  min-height: 27px;
  padding: 0 9px;
  border-radius: 99px;
  background: linear-gradient(135deg, #ffa7c5, #f371a1);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(225, 91, 137, .16);
}
.arrange-wish {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  color: var(--pink-500);
  background: #fff0f5;
  font-size: 11px;
}
.arranged-badge { color: #7fae94; background: #eef8f2; border-radius: 99px; padding: 3px 7px; font-size: 8px; font-weight: 700; }
.butler-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 4px 9px; color: var(--muted); }
.butler-note-icon { font-size: 17px; }
.butler-note p { font-size: 9px; line-height: 1.7; }

/* --------------------------------------------------------------------------
   更多
   -------------------------------------------------------------------------- */

.more-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 151px;
  overflow: hidden;
  padding: 20px;
}
.more-intro h1 {
  margin-top: 4px;
  font-family: var(--font-rounded);
  font-size: 29px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.more-intro p { margin-top: 6px; color: var(--muted); font-size: 10.5px; }
.menu-square {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 15px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 5px 14px rgba(177, 82, 112, .08);
}
.more-pet { position: absolute; right: 16px; bottom: 4px; width: 73px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 13px; }
.more-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 142px;
  padding: 15px 14px;
  overflow: hidden;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, .92);
  background: rgba(255, 253, 253, .8);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.more-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.more-card::after {
  content: "";
  position: absolute;
  width: 90px; height: 90px;
  right: -32px; bottom: -36px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 237, 244, .8), rgba(255, 226, 237, .3));
}
.more-emoji {
  display: grid;
  place-items: center;
  width: 43px; height: 43px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff2f6, #ffe2ec);
  font-size: 21px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.more-card-body { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; z-index: 1; }
.more-card strong { font-family: var(--font-rounded); font-size: 15.5px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.more-card small { font-size: 9px; color: var(--muted); }
.more-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 25px; height: 25px;
  border-radius: 50%;
  color: var(--pink-500);
  background: #fff0f5;
  z-index: 2;
}
.more-card.wide { grid-column: 1 / -1; min-height: 105px; flex-direction: row; align-items: center; gap: 12px; }
.more-card.wide .more-card-body { margin-top: 0; }
.more-card.wide .more-arrow { top: 50%; bottom: auto; transform: translateY(-50%); right: 16px; }
.room-card { margin-top: 14px; padding: 15px; }
.room-card-top { display: flex; align-items: center; gap: 10px; }
.room-card-top > div { flex: 1; min-width: 0; }
.room-card-top strong { font-size: 11.5px; }
.room-card-top p { margin-top: 2px; color: var(--muted); font-size: 9px; }
.room-card-top b { color: var(--pink-600); letter-spacing: .06em; }
.room-card-actions { display: flex; gap: 7px; margin-top: 12px; }
.room-card-actions .pill { flex: 1; }

/* --------------------------------------------------------------------------
   相册
   -------------------------------------------------------------------------- */

.album-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 63px;
  padding: 8px 17px;
  background: rgba(255, 249, 251, .9);
  border-bottom: 1px solid rgba(227, 172, 191, .2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.album-back, .album-room-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  justify-self: start;
}
.album-room-toggle { justify-self: end; color: var(--muted); }
.album-topbar h1 {
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
}
.album-page { padding: 14px 14px 38px; margin-top: 0; min-height: calc(100% - 63px); }
.album-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 9px;
  scrollbar-width: none;
}
.album-filters::-webkit-scrollbar { display: none; }
.filter-chip {
  min-height: 29px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid rgba(228, 170, 191, .32);
  background: rgba(255, 255, 255, .6);
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.filter-chip.active { color: #fff; background: linear-gradient(135deg, #fdaac6, #f175a1); border-color: transparent; font-weight: 800; }
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 153px;
  padding: 18px;
  border-radius: 20px;
  border: 2px dashed rgba(229, 168, 189, .5);
  background: rgba(255, 249, 251, .62);
  color: var(--muted);
  transition: .2s;
}
.upload-zone:hover { background: rgba(255, 244, 248, .9); border-color: var(--pink-300); }
.upload-camera { font-size: 27px; filter: saturate(.7); }
.upload-zone strong { margin-top: 3px; font-size: 11px; color: var(--ink-soft); }
.upload-zone > span:not(.upload-camera):not(.upload-progress) { font-size: 8.5px; color: var(--muted-light); }
.upload-progress { margin-top: 5px; padding: 2px 8px; border-radius: 99px; background: #ffe8f1; color: var(--pink-600); font-size: 8px; font-weight: 700; }
.album-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 3px 7px;
  color: var(--muted);
  font-size: 8.5px;
}
.album-meta-row .text-button { font-size: 8.5px; color: var(--muted); }
.photo-grid { columns: 3; column-gap: 7px; margin-top: 2px; }
.photo-tile {
  position: relative;
  width: 100%;
  margin: 0 0 7px;
  padding: 0;
  border-radius: 9px;
  overflow: hidden;
  break-inside: avoid;
  background: #ffeaf1;
  box-shadow: 0 3px 9px rgba(157, 76, 102, .07);
  display: block;
  animation: photoIn .5s var(--ease-out) both;
  animation-delay: calc(var(--i) * 25ms);
}
@keyframes photoIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.photo-tile img { width: 100%; height: auto; min-height: 74px; object-fit: cover; }
.photo-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 6px 6px;
  text-align: left;
  color: #fff;
  background: linear-gradient(transparent, rgba(74, 35, 51, .62));
  opacity: 0;
  transition: opacity .2s;
}
.photo-tile:hover .photo-overlay { opacity: 1; }
.photo-overlay b { font-size: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-overlay small { font-size: 6.5px; opacity: .8; }
.demo-badge {
  position: absolute;
  top: 5px; right: 5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .76);
  color: #ad8390;
  font-size: 6px;
  backdrop-filter: blur(4px);
}
.photo-add-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 106px;
  margin: 0 0 7px;
  border-radius: 9px;
  border: 1.5px dashed rgba(226, 156, 181, .45);
  background: rgba(255, 249, 251, .42);
  color: var(--muted-light);
  break-inside: avoid;
  transition: .18s;
}
.photo-add-tile:hover { color: var(--pink-600); background: rgba(255, 245, 249, .8); }
.photo-add-tile > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff0f5; color: var(--pink-500); }
.photo-add-tile small { font-size: 7.5px; }
.demo-hint, .album-privacy { margin: 13px 2px 0; color: var(--muted-light); font-size: 8.5px; line-height: 1.6; text-align: center; }
.album-privacy { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 18px; }
.album-page .empty-state { margin-top: 25px; }

/* --------------------------------------------------------------------------
   纪念日
   -------------------------------------------------------------------------- */

.anniversary-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 21px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 255, 255, .8), transparent 34%),
    linear-gradient(155deg, #fffafc, #ffe9f1 75%, #ffdfea);
}
.anniversary-hero::after {
  content: "LOVE";
  position: absolute;
  left: -20px; bottom: -22px;
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 900;
  letter-spacing: -.05em;
  color: rgba(247, 173, 198, .12);
}
.together-heart { width: 55px; margin: 0 auto; }
.together-label { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.together-days {
  display: block;
  margin-top: -5px;
  font-family: var(--font-rounded);
  font-size: 96px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.09em;
  color: var(--pink-500);
  text-shadow: 0 6px 16px rgba(225, 97, 141, .12);
}
.together-unit { display: block; margin-top: -6px; color: var(--ink-soft); font-size: 12px; }
.anniversary-hero p { margin-top: 7px; color: var(--muted); font-size: 9px; }
.anniv-pet { position: absolute; right: 6px; bottom: 4px; width: 73px; z-index: 2; }
.anniv-hero-bow { position: absolute; left: 17px; top: 17px; width: 49px; opacity: .65; transform: rotate(-8deg); }
.anniversary-actions { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.anniversaries-list { margin-top: 13px; padding: 18px 16px 11px; }
.anniv-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px dashed rgba(224, 165, 186, .22);
}
.anniv-row:last-of-type { border-bottom: 0; }
.anniv-row.special { margin-top: 9px; padding: 12px 10px; border-radius: 15px; background: rgba(255, 244, 248, .7); border: 0; }
.anniv-emoji { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; border-radius: 13px; background: #fff0f5; font-size: 19px; }
.anniv-copy { flex: 1; min-width: 0; }
.anniv-copy strong { display: block; font-family: var(--font-rounded); font-size: 12.5px; font-weight: 900; color: var(--ink); }
.anniv-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.anniv-copy p { margin-top: 3px; color: var(--muted-light); font-size: 8px; line-height: 1.45; }
.anniv-countdown { flex: 0 0 auto; text-align: right; }
.anniv-countdown strong { display: block; color: var(--pink-600); font-size: 9.5px; font-weight: 800; }
.anniv-countdown small { display: block; color: var(--muted-light); font-size: 7.5px; }
.anniv-row .remove-mini { position: absolute; right: 0; top: 1px; }
.timeline-note { display: flex; gap: 10px; margin-top: 13px; padding: 14px; }
.timeline-note-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 14px; background: #fff1f5; font-size: 19px; }
.timeline-note strong { font-size: 10.5px; }
.timeline-note p { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.upcoming-card {
  margin-top: 13px;
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(145deg, #fff4f8, #ffecf2);
  border: 1px solid rgba(255, 255, 255, .8);
}
.upcoming-list { display: flex; flex-direction: column; gap: 6px; margin-top: 7px; }
.upcoming-list > div { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed rgba(224, 168, 188, .22); }
.upcoming-list > div:last-child { border: 0; }
.upcoming-list span { font-size: 14px; }
.upcoming-list p { display: flex; justify-content: space-between; flex: 1; font-size: 9.5px; color: var(--ink-soft); }
.upcoming-list small { color: var(--pink-600); font-size: 8.5px; font-weight: 700; }

/* --------------------------------------------------------------------------
   心情日记
   -------------------------------------------------------------------------- */

.mood-hero { overflow: hidden; padding: 21px 18px; background: linear-gradient(155deg, #fffafd, #ffeef3); }
.mood-hero h1 { margin-top: 4px; font-family: var(--font-rounded); font-size: 28px; font-weight: 900; letter-spacing: -.04em; }
.mood-hero p { margin-top: 5px; max-width: 72%; color: var(--muted); font-size: 10px; line-height: 1.7; }
.mood-pet { position: absolute; right: 8px; bottom: 4px; width: 70px; }
.mood-composer { margin-top: 13px; padding: 18px 16px 16px; }
.mood-form { margin-top: 12px; }
.mood-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mood-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 2px 7px;
  border-radius: 15px;
  border: 1px solid rgba(230, 175, 195, .28);
  background: rgba(255, 252, 253, .62);
  color: var(--muted);
  font-size: 8.5px;
  cursor: pointer;
  transition: .18s;
}
.mood-option input { position: absolute; opacity: 0; pointer-events: none; }
.mood-emoji { font-size: 22px; filter: saturate(.8); }
.mood-option.selected {
  border-color: transparent;
  color: var(--pink-700);
  background: color-mix(in srgb, var(--mood-color) 28%, white);
  box-shadow: 0 4px 12px rgba(201, 109, 139, .1);
  font-weight: 800;
}
.mood-option:hover { background: #fff8fb; }
.mood-form .pill.full { margin-top: 12px; }
.mood-week-card { margin-top: 13px; padding: 18px 15px 15px; }
.mood-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.mood-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 2px;
  border-radius: 11px;
  background: rgba(255, 248, 251, .55);
}
.mood-day.today { background: #ffe9f1; }
.mood-day > span { color: var(--muted-light); font-size: 7px; }
.mood-day > b { font-size: 19px; font-weight: 400; filter: saturate(.8); }
.mood-day > small { color: var(--muted); font-size: 6.5px; }
.mood-timeline { margin-top: 21px; }
.timeline-list { display: flex; flex-direction: column; gap: 8px; }
.timeline-item { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; }
.timeline-dot {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--dot) 22%, white);
  font-size: 18px;
}
.timeline-body { flex: 1; min-width: 0; }
.timeline-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.timeline-head strong { font-family: var(--font-rounded); font-size: 12px; font-weight: 900; }
.timeline-head span { color: var(--muted-light); font-size: 8px; }
.timeline-body p { margin-top: 4px; color: var(--ink-soft); font-size: 9.5px; line-height: 1.65; }
.timeline-body p.muted { color: var(--muted-light); }

/* --------------------------------------------------------------------------
   心愿小纸条
   -------------------------------------------------------------------------- */

.wishes-hero { overflow: hidden; padding: 21px 18px; background: linear-gradient(155deg, #fffafb, #ffeaf2); }
.wishes-hero h1 { margin-top: 4px; font-family: var(--font-rounded); font-size: 26px; font-weight: 900; letter-spacing: -.04em; }
.wishes-hero p { margin-top: 6px; max-width: 74%; color: var(--muted); font-size: 10px; line-height: 1.7; }
.wishes-hero-actions { display: flex; align-items: center; gap: 9px; margin-top: 13px; }
.wishes-hero-actions > span { color: var(--muted); font-size: 8px; }
.wishes-pet { position: absolute; right: 8px; bottom: 4px; width: 70px; }
.full-wish-card { margin-top: 13px; padding: 18px 16px 14px; }
.full-note-card { margin-top: 13px; padding: 18px 16px 14px; }
.full-note-card .note-feed { max-height: none; }
.wish-card .list-heading + .wish-list { margin-top: 8px; }

/* --------------------------------------------------------------------------
   两人地图
   -------------------------------------------------------------------------- */

.map-heading { overflow: hidden; padding: 21px 18px; background: linear-gradient(155deg, #fffaf8, #ffedf1); }
.map-heading h1 { margin-top: 4px; font-family: var(--font-rounded); font-size: 28px; font-weight: 900; letter-spacing: -.04em; }
.map-heading p { margin-top: 5px; max-width: 75%; color: var(--muted); font-size: 10px; line-height: 1.7; }
.map-heading-actions { display: flex; gap: 7px; margin-top: 12px; }
.map-pet { position: absolute; right: 8px; bottom: 4px; width: 65px; }
.map-canvas-card { margin-top: 13px; padding: 8px; border-radius: 30px; background: rgba(255, 253, 253, .78); border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow-sm); }
.map-canvas { position: relative; overflow: hidden; border-radius: 23px; }
.memory-map { width: 100%; height: auto; display: block; }
.map-pin { transform-origin: center; animation: pinIn .45s var(--ease-out) both; }
@keyframes pinIn { from { opacity: 0; transform: translateY(-8px) scale(.8); } to { opacity: 1; transform: none; } }
.map-stamp {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .62);
  color: #b68794;
  font-family: var(--font-display);
  font-size: 5.5px;
  line-height: 1.4;
  letter-spacing: .08em;
  border: 1px solid rgba(255, 255, 255, .7);
}
.map-stamp-bow { width: 20px; opacity: .68; }
.map-canvas-footer { display: flex; justify-content: space-between; padding: 8px 7px 2px; color: var(--muted-light); font-size: 7.5px; }
.places-section { margin-top: 20px; }
.place-list { display: flex; flex-direction: column; gap: 8px; }
.place-row { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; }
.place-emoji { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; border-radius: 13px; background: #fff0f5; font-size: 18px; }
.place-copy { flex: 1; min-width: 0; }
.place-copy strong { display: block; font-family: var(--font-rounded); font-size: 12px; font-weight: 900; }
.place-copy p { margin-top: 2px; color: var(--muted); font-size: 8.5px; line-height: 1.55; }
.place-copy small { display: block; margin-top: 4px; color: var(--muted-light); font-size: 7.5px; }

/* --------------------------------------------------------------------------
   设置
   -------------------------------------------------------------------------- */

.settings-topbar .settings-top-space { display: block; }
.settings-page { padding: 16px 14px 38px; margin-top: 0; }
.album-page, .settings-page { padding-bottom: calc(38px + env(safe-area-inset-bottom)); }
.profile-card { padding: 21px 18px; text-align: center; background: linear-gradient(155deg, #fffafd, #ffeef3); }
.couple-avatars { display: flex; align-items: center; justify-content: center; gap: 10px; }
.couple-avatars > span {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #fff;
  font-size: 33px;
  box-shadow: 0 7px 18px rgba(180, 94, 121, .1);
  border: 2px solid rgba(255, 255, 255, .9);
}
.couple-avatars > span:first-child { transform: rotate(-5deg); }
.couple-avatars > span:last-child { transform: rotate(5deg); }
.couple-avatars i { font-style: normal; font-size: 18px; animation: heartBeat 1.8s ease-in-out infinite; }
.profile-card h1 { margin-top: 12px; font-family: var(--font-rounded); font-size: 21px; font-weight: 900; letter-spacing: -.03em; }
.profile-card p { margin: 3px 0 12px; color: var(--muted); font-size: 9px; }
.settings-group { margin-top: 12px; padding: 17px 15px; }
.settings-heading { display: flex; align-items: center; gap: 9px; }
.settings-heading > div { flex: 1; min-width: 0; }
.settings-heading strong { font-size: 11.5px; }
.settings-heading p { margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.settings-rows { margin-top: 10px; }
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 1px;
  border-bottom: 1px dashed rgba(225, 166, 187, .22);
  color: var(--ink-soft);
  font-size: 9.5px;
  text-align: left;
}
.setting-row:last-child { border-bottom: 0; }
.setting-row b { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 8.5px; font-weight: 600; }
.setting-row.button-row:hover b { color: var(--pink-600); }
.invite-row { align-items: flex-start; }
.invite-row > div { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; max-width: 67%; }
.invite-row input {
  flex: 1;
  min-width: 0;
  height: 27px;
  border: 1px solid rgba(228, 170, 191, .3);
  border-radius: 7px;
  background: #fff;
  padding: 0 6px;
  font-size: 8px;
  color: var(--muted);
}
.settings-hint { margin-top: 8px; color: var(--muted-light); font-size: 8px; line-height: 1.6; }
.settings-group > .pill.full { margin-top: 10px; }
.about-group { text-align: center; padding: 22px 18px 18px; }
.about-logo { width: 54px; margin: 0 auto 3px; }
.about-bow { width: 54px; }
.about-group > strong { font-family: var(--font-rounded); font-size: 14px; font-weight: 900; }
.about-group > strong small { color: var(--muted-light); font-size: 8px; font-weight: 500; }
.about-group p { margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.about-sign { display: block; margin-top: 11px; color: var(--muted-light); font-size: 7.5px; letter-spacing: .08em; }
.danger-text { display: block; width: 100%; margin-top: 14px; color: #c68d9c; font-size: 8.5px; text-align: center; }

/* --------------------------------------------------------------------------
   空状态 & 通用内页
   -------------------------------------------------------------------------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 33px 22px 27px;
  border-radius: 25px;
  background: rgba(255, 251, 252, .64);
  border: 1px dashed rgba(226, 167, 187, .34);
}
.empty-emoji { font-size: 33px; filter: saturate(.7); }
.empty-state h3 { margin-top: 8px; font-family: var(--font-rounded); font-size: 15px; font-weight: 900; color: var(--ink-soft); }
.empty-state p { margin-top: 5px; max-width: 250px; color: var(--muted); font-size: 9.5px; line-height: 1.65; }
.empty-state .pill { margin-top: 13px; }
.sub-header { display: none; }
.names-row { display: flex; gap: 8px; }

/* --------------------------------------------------------------------------
   弹窗 / 抽屉
   -------------------------------------------------------------------------- */

.modal-root { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.modal-root.open { pointer-events: auto; }
.modal-layer { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(70, 37, 51, .4);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .25s;
}
.modal-root.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative;
  width: min(432px, 100%);
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  padding: 8px 0 calc(9px + env(safe-area-inset-bottom));
  border-radius: 34px 34px 0 0;
  background: #fffafc;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 -18px 60px rgba(81, 35, 51, .22);
  transform: translateY(102%);
  transition: transform .38s var(--ease-out);
  overflow: hidden;
}
.modal-card.visible { transform: translateY(0); }
.modal-grab { width: 37px; height: 4px; flex: 0 0 4px; margin: 1px auto 4px; border-radius: 99px; background: #ead7de; }
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px 8px;
  flex: 0 0 auto;
}
.modal-header h2 { font-family: var(--font-rounded); font-size: 19px; line-height: 1.3; font-weight: 900; letter-spacing: -.025em; color: var(--ink); }
.modal-header p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.modal-close {
  display: grid;
  place-items: center;
  width: 31px; height: 31px;
  flex: 0 0 31px;
  border-radius: 50%;
  background: rgba(248, 232, 238, .8);
  color: var(--muted);
  transition: .18s;
}
.modal-close:hover { background: #ffe5ed; color: var(--pink-600); }
.modal-body {
  padding: 8px 20px 13px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.modal-body::-webkit-scrollbar { display: none; }
.modal-footer {
  flex: 0 0 auto;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(226, 168, 188, .2);
  background: rgba(255, 250, 252, .9);
}
.modal-button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modal-form { display: flex; flex-direction: column; }
.field-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 11px;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 700;
}
.field-label input, .field-label textarea, .field-label select {
  width: 100%;
  min-height: 39px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(227, 169, 190, .35);
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  outline: none;
  font-weight: 400;
}
.field-label textarea { resize: vertical; min-height: 64px; line-height: 1.6; }
.field-label input:focus, .field-label textarea:focus, .field-label select:focus {
  border-color: var(--pink-300);
  box-shadow: 0 0 0 3px rgba(242, 137, 171, .08);
}
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modal-hint { color: var(--muted-light); font-size: 8.5px; line-height: 1.65; }
.emoji-radio-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 2px 0 12px; }
.emoji-radio { position: relative; cursor: pointer; }
.emoji-radio input { position: absolute; opacity: 0; pointer-events: none; }
.emoji-radio span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #fff8fa;
  border: 1px solid rgba(226, 166, 187, .2);
  font-size: 19px;
  transition: .15s;
}
.emoji-radio input:checked + span {
  background: #ffe7f0;
  border-color: var(--pink-300);
  box-shadow: 0 0 0 2px rgba(244, 126, 165, .1);
  transform: scale(1.03);
}
.wish-emojis { grid-template-columns: repeat(6, 1fr); }
.confirm-copy { display: flex; align-items: flex-start; gap: 11px; padding: 5px 1px 12px; }
.confirm-icon { font-size: 28px; }
.confirm-copy p { color: var(--ink-soft); font-size: 10.5px; line-height: 1.7; padding-top: 4px; }
.menu-sheet { display: flex; flex-direction: column; gap: 2px; margin: 0 -5px; }
.menu-sheet button, .menu-sheet a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 7px;
  border-radius: 14px;
  text-align: left;
  color: var(--ink-soft);
  transition: background .16s;
}
.menu-sheet button:hover, .menu-sheet a:hover { background: #fff1f6; }
.menu-sheet > button > span:first-child, .menu-sheet > a > span:first-child {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: #fff; font-size: 18px;
}
.menu-sheet > button > div, .menu-sheet > a > div { flex: 1; }
.menu-sheet strong { display: block; font-size: 11px; }
.menu-sheet small { display: block; margin-top: 1px; color: var(--muted-light); font-size: 8px; }
.menu-sheet .ui-icon { color: var(--muted-light); }

/* 分享 */
.share-illustration {
  position: relative;
  height: 125px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff1f5, #ffe0ec);
}
.share-bow { position: absolute; width: 48px; left: 30px; top: 18px; transform: rotate(-14deg); opacity: .8; }
.share-cats { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 2px; }
.share-cats .cat-svg { width: 92px; margin: 0 4px; }
.share-cats .cat-svg:first-child { transform: rotate(-4deg); }
.share-cats .cat-svg:last-child { transform: scaleX(-1) rotate(4deg); }
.share-room-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 13px 0;
  padding: 9px 13px;
  border-radius: 12px;
  background: #fff3f7;
  border: 1px dashed rgba(229, 164, 187, .4);
}
.share-room-code span { color: var(--muted); font-size: 9px; }
.share-room-code strong { color: var(--pink-600); font-family: var(--font-rounded); font-size: 18px; letter-spacing: .1em; }
.share-tip { display: flex; align-items: flex-start; gap: 5px; margin-top: 9px; color: var(--muted); font-size: 8.5px; line-height: 1.5; }
.lan-address { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; padding: 7px 9px; border-radius: 9px; background: #fff3f7; color: var(--muted); font-size: 7.5px; line-height: 1.7; word-break: break-all; }
.lan-address span { flex: 0 0 100%; color: var(--muted-light); }
.lan-address code { flex: 1; min-width: 0; font-family: Consolas, monospace; font-size: 7px; color: var(--ink-soft); }
.lan-address .mini-btn { flex: 0 0 auto; min-height: 22px; padding: 0 7px; font-size: 7px; }
.local-mode-note { padding: 12px; border-radius: 13px; background: #fff4e9; border: 1px solid #ffe6cb; }
.local-mode-note strong { color: #a87646; font-size: 10px; }
.local-mode-note p { margin-top: 4px; color: #b28c68; font-size: 8.5px; line-height: 1.7; }
.install-guide { text-align: center; }
.install-cat { width: 105px; margin: 0 auto 6px; }
.install-guide h3 { font-family: var(--font-rounded); font-size: 16px; font-weight: 900; }
.install-guide p { margin: 6px auto 11px; max-width: 280px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.install-steps { display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 8px; flex-wrap: wrap; }
.install-steps span { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #ffe8f0; color: var(--pink-600); font-size: 7.5px; font-weight: 800; }

/* 城市 */
.city-current { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; color: var(--ink-soft); font-size: 10px; }
.city-current .mini-btn { margin-left: auto; }
.city-search-form { display: flex; gap: 6px; }
.city-search-form input { flex: 1; min-width: 0; height: 38px; padding: 0 11px; border-radius: 11px; border: 1px solid rgba(228, 169, 190, .35); background: #fff; font-size: 10px; outline: none; }
.city-results { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.city-result { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px; border-radius: 10px; text-align: left; }
.city-result:hover { background: #fff2f6; }
.city-result > span:first-child { color: var(--pink-400); }
.city-result > div { flex: 1; }
.city-result strong { display: block; color: var(--ink-soft); font-size: 10px; }
.city-result small { display: block; color: var(--muted-light); font-size: 7.5px; }
.city-arrow { color: var(--muted-light); }

/* 照片灯箱 */
.photo-modal .modal-body { padding-top: 3px; }
.photo-lightbox { position: relative; max-height: 47vh; overflow: hidden; border-radius: 18px; background: #f5e4ea; }
.photo-lightbox img { width: 100%; max-height: 47vh; object-fit: contain; position: relative; z-index: 1; }
.photo-lightbox-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0, rgba(255, 226, 236, .8), transparent 60%); }
.photo-edit-form { margin-top: 10px; }
.photo-edit-form .field-label { margin-bottom: 8px; }
.photo-modal-actions { display: flex; justify-content: space-between; gap: 8px; }
.place-geo-row { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; }
.place-geo-row span { color: var(--muted-light); font-size: 8px; }
.coordinate-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

/* --------------------------------------------------------------------------
   小游戏弹窗
   -------------------------------------------------------------------------- */

.game-modal {
  max-height: 91dvh;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 226, 238, .8), transparent 26%),
    linear-gradient(180deg, #fffafd 0%, #fff5f8 100%);
}
.game-modal .modal-body { padding: 0 17px 17px; }
.game-body { min-height: 390px; display: flex; flex-direction: column; }
.game-session { display: flex; flex-direction: column; flex: 1; }
.game-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8.5px; }
.game-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  background: #ffe9f1;
  color: var(--pink-600);
  font-weight: 700;
}
.game-dots { display: flex; gap: 4px; margin-top: 8px; }
.game-dots i { flex: 1; height: 3px; border-radius: 99px; background: #f5dfe6; transition: .2s; }
.game-dots i.done { background: #ffc1d6; }
.game-dots i.active { background: var(--pink-400); box-shadow: 0 0 6px rgba(242, 105, 154, .3); }
.game-turn { margin-top: 16px; text-align: center; color: var(--muted); font-size: 9.5px; }
.game-turn strong { color: var(--pink-600); font-size: 10.5px; }
.quiz-card {
  position: relative;
  margin-top: 10px;
  padding: 26px 22px;
  min-height: 151px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 23px;
  background: linear-gradient(145deg, #fff, #fff1f6);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.quiz-card::after {
  content: "";
  position: absolute;
  width: 100px; height: 100px;
  right: -38px; top: -35px;
  border-radius: 50%;
  background: rgba(255, 194, 215, .22);
}
.quiz-card p { font-family: var(--font-display); font-size: 15px; line-height: 1.75; color: var(--ink); letter-spacing: .01em; }
.quiz-mark { position: absolute; left: 12px; top: 2px; font-family: Georgia, serif; font-size: 43px; color: #f6bdd0; line-height: 1; }
.quiz-mark.end { left: auto; right: 16px; top: auto; bottom: -7px; }
.quiz-cat { width: 55px; margin: 9px auto -2px; opacity: .75; }
.game-hint { margin: 8px 0 11px; text-align: center; color: var(--muted-light); font-size: 8.5px; line-height: 1.6; }
.game-session > .pill.full { margin-top: auto; }
.duo-question {
  margin-top: 11px;
  padding: 20px 16px;
  border-radius: 21px;
  text-align: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.65;
  background: linear-gradient(145deg, #fff, #fff0f5);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
}
.duo-private { margin-top: 7px; text-align: center; color: var(--muted-light); font-size: 7.5px; }
.duo-options { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 13px; }
.duo-options.two { grid-template-columns: 1fr 1fr; }
.duo-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 9px 12px;
  text-align: left;
  border-radius: 16px;
  background: rgba(255, 253, 253, .82);
  border: 1px solid rgba(228, 170, 191, .28);
  box-shadow: 0 4px 12px rgba(180, 97, 124, .05);
  transition: .18s var(--ease-out);
}
.duo-option:hover { border-color: var(--pink-300); background: #fff; transform: translateY(-1px); }
.duo-option:active { transform: scale(.98); }
.duo-option > span {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  flex: 0 0 24px;
  border-radius: 8px;
  background: #ffeaf2;
  color: var(--pink-600);
  font-size: 9px;
  font-weight: 900;
}
.duo-option strong { flex: 1; color: var(--ink-soft); font-size: 10.5px; font-weight: 700; line-height: 1.5; }
.duo-options.two .duo-option { flex-direction: column; justify-content: center; min-height: 83px; text-align: center; }
.duo-options.two .duo-option > span { margin-bottom: 3px; }
.duo-cat { width: 47px; margin: 12px auto 0; opacity: .6; }
.duo-result { text-align: center; padding: 25px 13px 18px; border-radius: 23px; background: linear-gradient(145deg, #fff, #ffeef4); border: 1px solid #fff; box-shadow: var(--shadow-sm); }
.duo-result.match { background: linear-gradient(145deg, #fffafd, #ffe4ee); }
.result-heart { font-size: 38px; display: block; animation: heartBeat 1.9s ease-in-out infinite; }
.duo-result h2 { margin-top: 4px; font-family: var(--font-rounded); font-size: 21px; font-weight: 900; color: var(--pink-600); }
.duo-answers { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 13px; }
.duo-answers > div { display: flex; flex-direction: column; gap: 2px; min-width: 76px; padding: 8px 7px; border-radius: 12px; background: rgba(255, 255, 255, .7); }
.duo-answers small { color: var(--muted-light); font-size: 7px; }
.duo-answers strong { color: var(--ink-soft); font-size: 9.5px; }
.duo-answers > span { color: var(--pink-300); font-size: 15px; }
.duo-result > p { margin: 11px auto 0; max-width: 255px; color: var(--muted); font-size: 8.5px; line-height: 1.6; }
.duo-session > .pill.full { margin-top: 13px; }
.dare-card {
  position: relative;
  margin-top: 12px;
  padding: 24px 18px 18px;
  text-align: center;
  border-radius: 23px;
  background: linear-gradient(155deg, #fff, #ffeaf2);
  border: 1px solid #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dare-ribbon { position: absolute; left: 14px; top: 8px; width: 48px; opacity: .6; transform: rotate(-12deg); }
.dare-bow { width: 48px; }
.dare-emoji { display: block; font-size: 35px; }
.dare-card p { margin: 8px auto 7px; max-width: 275px; font-family: var(--font-display); font-size: 15px; line-height: 1.7; color: var(--ink); }
.dare-time { color: var(--muted-light); font-size: 8.5px; }
.dare-timer { margin-top: 8px; font-family: var(--font-rounded); font-size: 22px; font-weight: 900; color: var(--pink-500); letter-spacing: .03em; }
.game-dare-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.dare-cat { width: 46px; margin: 7px auto 0; opacity: .55; }
.game-final { text-align: center; padding: 19px 4px 8px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.final-confetti { font-size: 21px; letter-spacing: 9px; animation: softFloat 2.5s ease-in-out infinite; }
.final-bow { width: 66px; margin: 2px auto 5px; }
.final-bow svg { width: 66px; }
.game-final .kicker { color: var(--muted-light); }
.game-final h2 { margin-top: 7px; font-family: var(--font-rounded); font-size: 24px; font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.final-score { margin: 12px auto 9px; display: flex; flex-direction: column; align-items: center; }
.final-score strong { font-family: var(--font-rounded); font-size: 50px; line-height: 1; font-weight: 900; letter-spacing: -.05em; color: var(--pink-500); }
.final-score span { margin-top: 4px; color: var(--muted); font-size: 8.5px; }
.game-final > p { margin: 0 auto 12px; max-width: 270px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.final-stats { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin-bottom: 17px; }
.final-stats span { padding: 4px 8px; border-radius: 99px; background: #fff0f5; color: var(--muted); font-size: 7.5px; }
.game-final .modal-button-row { margin-top: auto; }

/* --------------------------------------------------------------------------
   Toast / 动效
   -------------------------------------------------------------------------- */

.toast-root {
  position: fixed;
  top: auto;
  bottom: calc(100px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: min(380px, calc(100vw - 28px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 15px;
  background: rgba(255, 252, 253, .94);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 12px 32px rgba(105, 45, 66, .17);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transition: .25s var(--ease-out);
}
.toast.visible { opacity: 1; transform: translateY(0) scale(1); }
body.modal-open .toast-root { top: calc(78px + env(safe-area-inset-top)); bottom: auto; }
.toast-emoji { font-size: 15px; line-height: 1.3; flex: 0 0 auto; }
.toast-success { border-color: rgba(171, 218, 190, .6); }
.toast-error { border-color: rgba(244, 165, 176, .6); background: #fff9fa; }
.toast-info { border-color: rgba(255, 214, 228, .7); }

.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 450; overflow: hidden; }
.heart-pop {
  position: fixed;
  font-size: 18px;
  will-change: transform, opacity;
  animation: heartPop 1.45s var(--ease-out) forwards;
}
@keyframes heartPop {
  0% { opacity: 0; transform: translate(0, 0) scale(.5) rotate(0); }
  16% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.18) rotate(18deg); }
}
.confetti-piece {
  position: fixed;
  top: 33%;
  border-radius: 3px;
  will-change: transform, opacity;
  animation: confettiFall 2.1s cubic-bezier(.25, .7, .35, 1) forwards;
}
@keyframes confettiFall {
  0% { opacity: 0; transform: translate(0, -40px) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), 62vh) rotate(var(--r)); }
}
@keyframes catBob { 0%, 100% { transform: translateY(0) rotate(-.7deg); } 50% { transform: translateY(-5px) rotate(.6deg); } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0) rotate(-9deg); } 50% { transform: translateY(-11px) rotate(-5deg); } }
@keyframes floatHeart { 0%, 100% { transform: translateY(0) scale(.95); opacity: .55; } 50% { transform: translateY(-8px) scale(1.08); opacity: .9; } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: .85; transform: scale(1.1); } }
@keyframes softFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.16); } 40% { transform: scale(1); } 60% { transform: scale(1.09); } }
@keyframes catZzz { 0% { opacity: 0; transform: translate(0, 3px); } 50% { opacity: .85; } 100% { opacity: 0; transform: translate(3px, -5px); } }
.cat-zzz text { animation: catZzz 3s ease-in-out infinite; }
.cat-zzz text:nth-child(2) { animation-delay: .6s; }
.cat-zzz text:nth-child(3) { animation-delay: 1.2s; }

/* --------------------------------------------------------------------------
   启动页
   -------------------------------------------------------------------------- */

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, #fff9fb 0%, transparent 37%),
    radial-gradient(circle at 14% 84%, #fff0e6 0%, transparent 32%),
    linear-gradient(160deg, #ffd9e6 0%, #ffbfd5 48%, #f79fc1 100%);
  transition: opacity .55s ease, visibility .55s;
}
.boot-screen.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .26); filter: blur(22px); }
.boot-bow { position: absolute; top: 18%; font-size: 23px; opacity: .6; animation: softFloat 3s ease-in-out infinite; }
.boot-cat { position: relative; z-index: 1; margin-top: -12px; filter: drop-shadow(0 13px 18px rgba(130, 59, 83, .16)); animation: catBob 3.5s ease-in-out infinite; }
.boot-screen h1 { position: relative; z-index: 1; margin-top: 12px; color: #fff; font-family: var(--font-rounded); font-size: 27px; font-weight: 900; letter-spacing: .05em; text-shadow: 0 3px 14px rgba(146, 53, 84, .17); }
.boot-screen > p { position: relative; z-index: 1; margin-top: 6px; color: rgba(255, 255, 255, .8); font-size: 10px; letter-spacing: .06em; }
.boot-dots { display: flex; gap: 5px; margin-top: 17px; }
.boot-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .85); animation: bootBounce 1.4s ease-in-out infinite; }
.boot-dots i:nth-child(2) { animation-delay: .16s; }
.boot-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes bootBounce { 0%, 100% { transform: translateY(0); opacity: .5; } 45% { transform: translateY(-5px); opacity: 1; } }
.boot-note { position: absolute; bottom: 7%; color: rgba(255, 255, 255, .55); font-family: var(--font-display); font-size: 8px; letter-spacing: .16em; }
.noscript { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: #fff5f8; color: #7c4e5f; font-size: 13px; text-align: center; }

/* --------------------------------------------------------------------------
   异地空间 / 一起听 / 抽象崽 / 留言墙
   -------------------------------------------------------------------------- */

.feature-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 3px 10px;
  color: var(--ink-soft);
  font-family: var(--font-rounded);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.feature-section-label::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, rgba(226, 160, 183, .28), transparent); }
.feature-section-label b {
  order: 2;
  padding: 2px 6px;
  border-radius: 99px;
  color: #fff;
  background: linear-gradient(135deg, #ff9fbe, #ed6697);
  font-size: 7px;
  letter-spacing: .08em;
}
.more-long-grid .long-feature { background: linear-gradient(150deg, #fffafb, #ffeaf2); }
.more-long-grid .long-feature:nth-child(2) { background: linear-gradient(150deg, #fffaf7, #ffecdd); }
.more-long-grid .long-feature:nth-child(3) { background: linear-gradient(150deg, #fcf8ff, #eee5fa); }
.more-long-grid .long-feature:nth-child(4) { background: linear-gradient(150deg, #f8fffb, #e7f6ee); }

.distance-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding: 10px 13px;
  border-radius: 17px;
  background: linear-gradient(120deg, rgba(255, 251, 253, .9), rgba(255, 236, 243, .8));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-xs);
}
.distance-strip-cities { display: flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.distance-strip-cities i { font-style: normal; font-size: 11px; }
.distance-strip strong { margin-left: auto; color: var(--pink-600); font-family: var(--font-rounded); font-size: 13px; font-weight: 900; white-space: nowrap; }
.distance-strip small { color: var(--muted-light); font-size: 8px; white-space: nowrap; }
.home-extra-row { display: flex; gap: 7px; margin-top: 9px; }
.home-extra-row a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  min-height: 31px;
  border-radius: 12px;
  background: rgba(255, 252, 253, .7);
  border: 1px solid rgba(233, 176, 197, .25);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
}
.home-extra-row span { font-size: 13px; }
.home-extra-row b { font-weight: 800; }

/* 异地空间 */
.long-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 16px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .8), transparent 28%),
    linear-gradient(155deg, #fffafd 0%, #ffeaf2 60%, #ffe0ec 100%);
}
.long-hero h1 {
  margin-top: 5px;
  font-family: var(--font-rounded);
  font-size: 28px;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: -.045em;
  color: var(--ink);
}
.long-sub { margin-top: 7px; color: var(--muted); font-size: 9.5px; line-height: 1.7; max-width: 78%; }
.distance-route { display: flex; align-items: center; gap: 4px; margin-top: 17px; }
.city-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 76px;
  flex: 0 0 76px;
}
.city-emoji { font-size: 21px; filter: saturate(.75); }
.city-stop strong { color: var(--ink); font-family: var(--font-rounded); font-size: 12px; font-weight: 900; white-space: nowrap; }
.city-stop small { color: var(--muted-light); font-size: 7px; }
.city-stop time { margin-top: 4px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .65); color: var(--ink-soft); font-family: var(--font-rounded); font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.route-line {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding-top: 11px;
}
.route-line::before { content: ""; position: absolute; left: 0; right: 0; top: 25px; border-top: 1.5px dashed rgba(223, 130, 164, .55); }
.route-plane { position: relative; z-index: 1; font-size: 16px; }
.route-line strong { position: relative; z-index: 1; margin-top: 1px; padding: 1px 5px; border-radius: 5px; background: #fff5f9; color: var(--pink-600); font-family: var(--font-rounded); font-size: 10px; font-weight: 900; white-space: nowrap; }
.route-line small { color: var(--muted-light); font-size: 6.5px; white-space: nowrap; }
.long-hero-actions { display: flex; gap: 6px; margin-top: 14px; }
.long-bow { position: absolute; right: 13px; top: 13px; width: 45px; opacity: .55; transform: rotate(8deg); }
.meeting-card { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 14px; background: linear-gradient(145deg, #fffcf9, #fff4ee); }
.meeting-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 13px; background: #fff; font-size: 18px; }
.meeting-copy { flex: 1; min-width: 0; }
.meeting-copy h2 { margin-top: 2px; font-family: var(--font-rounded); font-size: 12px; font-weight: 900; color: var(--ink); }
.meeting-copy h2 em { font-style: normal; color: var(--pink-600); font-size: 20px; }
.meeting-copy p { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.poke-card { margin-top: 12px; padding: 17px 15px 13px; }
.poke-tip { margin-top: 5px; color: var(--muted); font-size: 8.5px; line-height: 1.65; }
.poke-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 12px; }
.poke-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 3px 8px;
  border-radius: 14px;
  background: #fff8fb;
  border: 1px solid rgba(230, 171, 192, .22);
  transition: .18s;
}
.poke-button:hover { background: #ffeaf2; transform: translateY(-2px); }
.poke-button:active { transform: scale(.94); }
.poke-button > span { font-size: 24px; filter: saturate(.8); }
.poke-button small { color: var(--ink-soft); font-size: 8px; font-weight: 700; white-space: nowrap; }
.poke-button.poke-more { background: linear-gradient(145deg, #fff4f8, #ffe3ed); }
.poke-feed { margin-top: 11px; padding-top: 7px; border-top: 1px dashed rgba(225, 165, 185, .22); }
.poke-item { display: flex; align-items: flex-start; gap: 7px; padding: 5px 0; }
.poke-item > span { font-size: 15px; }
.poke-item p { flex: 1; color: var(--muted); font-size: 8.5px; line-height: 1.55; }
.poke-item b { color: var(--pink-600); }
.poke-item small { margin-left: 5px; color: var(--muted-light); font-size: 7px; }
.long-tool-grid { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 12px; }
.long-tool-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 252, 253, .8);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-xs);
}
.long-tool-card > span:first-child { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border-radius: 11px; background: #fff1f6; font-size: 17px; }
.long-tool-card > div { flex: 1; }
.long-tool-card strong { display: block; font-size: 10px; color: var(--ink-soft); }
.long-tool-card small { display: block; margin-top: 1px; color: var(--muted-light); font-size: 7.5px; }
.long-tool-card .ui-icon { color: var(--muted-light); }
.music-tool { background: linear-gradient(120deg, #fffaf5, #fff0e8); }
.board-tool { background: linear-gradient(120deg, #fbfffb, #eaf7ef); }
.blob-tool { background: linear-gradient(120deg, #fdf9ff, #f0e9fc); }
.ld-ideas { margin-top: 12px; padding: 17px 15px 14px; }
.ld-idea-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 4px; }
.ld-idea-list > div { display: flex; gap: 6px; align-items: flex-start; padding: 7px 5px; border-radius: 10px; background: rgba(255, 249, 252, .55); }
.ld-idea-list span { font-size: 15px; flex: 0 0 16px; }
.ld-idea-list p { color: var(--muted); font-size: 8px; line-height: 1.55; }
.ld-board-link { margin-top: 10px; background: none; border: 0; box-shadow: none; padding-left: 0; }
.city-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.city-picker button {
  display: grid;
  grid-template-columns: 16px 1fr;
  grid-template-rows: auto auto;
  gap: 0 6px;
  text-align: left;
  padding: 8px 9px;
  border-radius: 11px;
  border: 1px solid rgba(228, 170, 191, .26);
  background: #fffafc;
}
.city-picker button > span { grid-row: 1 / 3; color: var(--pink-400); align-self: center; }
.city-picker button strong { color: var(--ink-soft); font-size: 10px; }
.city-picker button small { color: var(--muted-light); font-size: 7px; }
.city-picker button:hover { background: #fff2f6; border-color: var(--pink-300); }

/* 一起听 */
.music-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 18px;
  border-radius: 31px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 4%, rgba(255, 255, 255, .22), transparent 28%),
    linear-gradient(135deg, #d67ab6 0%, #ae72bf 48%, #7863b7 100%);
  box-shadow: 0 20px 44px rgba(119, 75, 143, .22);
}
.music-hero::after { content: "SIDE A"; position: absolute; right: 14px; bottom: 8px; color: rgba(255, 255, 255, .12); font-family: var(--font-display); font-size: 29px; letter-spacing: .08em; }
.music-hero .kicker { color: rgba(255, 255, 255, .68); }
.music-hero-top { display: flex; align-items: center; gap: 15px; margin-top: 12px; }
.album-cover {
  position: relative;
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
  border-radius: 19px;
  overflow: hidden;
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 12px 25px rgba(45, 24, 70, .3);
  border: 2px solid rgba(255, 255, 255, .3);
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.empty-album { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: #fff; }
.empty-album > span { font-size: 40px; }
.empty-album small { font-size: 8px; opacity: .7; }
.vinyl-ring { position: absolute; top: 50%; left: 50%; width: 29px; height: 29px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .65); background: rgba(45, 28, 48, .7); transform: translate(-50%, -50%); box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 0 0 22px rgba(255, 255, 255, .05); }
.playing-badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .8); color: #8f4a8f; font-size: 6px; font-weight: 900; letter-spacing: .1em; }
.music-now { min-width: 0; flex: 1; }
.music-eyebrow { color: rgba(255, 255, 255, .7); font-size: 8px; letter-spacing: .05em; }
.music-now h1 { margin-top: 3px; font-family: var(--font-rounded); font-size: 23px; line-height: 1.25; font-weight: 900; letter-spacing: -.035em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-now > p { margin-top: 2px; color: rgba(255, 255, 255, .72); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-progress { height: 4px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .22); }
.music-progress span { display: block; height: 100%; border-radius: 99px; background: #ffe0ee; transition: width .35s linear; }
.music-time { display: flex; justify-content: space-between; margin-top: 3px; color: rgba(255, 255, 255, .65); font-size: 7px; }
.music-controls { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.music-play-button { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; color: #9d4f92; background: #fff8fc; box-shadow: 0 7px 16px rgba(52, 29, 72, .22); transition: .18s; }
.music-play-button:hover { transform: scale(1.05); }
.music-skip { display: grid; place-items: center; width: 25px; height: 25px; color: rgba(255, 255, 255, .8); }
.music-apple-link { margin-left: auto; color: rgba(255, 255, 255, .72); font-size: 7px; white-space: nowrap; display: inline-flex; align-items: center; gap: 1px; }
.music-sync-hint { width: 100%; margin-top: 8px; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26); color: #fff; font-size: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.music-note { display: block; margin-top: 14px; color: rgba(255, 255, 255, .54); font-family: var(--font-display); font-size: 8px; letter-spacing: .05em; }
.music-orb { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.music-orb.one { width: 110px; height: 110px; right: -30px; bottom: -38px; }
.music-orb.two { width: 47px; height: 47px; left: -19px; top: 80px; }
.music-search { margin-top: 13px; padding: 17px 15px 12px; }
.music-search-row { display: flex; gap: 6px; margin-top: 10px; }
.music-search-row input { flex: 1; min-width: 0; height: 37px; padding: 0 11px; border-radius: 11px; border: 1px solid rgba(229, 170, 191, .34); background: #fffafc; font-size: 10px; outline: none; }
.music-search-row .pill { min-height: 37px; }
.music-suggestions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.music-suggestions button { padding: 3px 7px; border-radius: 99px; background: #fff4f8; color: var(--muted); font-size: 7.5px; border: 1px solid rgba(233, 179, 198, .25); }
.music-suggestions button:hover { color: var(--pink-600); }
.music-searching, .music-search-empty { padding: 11px 0 3px; color: var(--muted-light); font-size: 8.5px; text-align: center; }
.music-results { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; max-height: 210px; overflow-y: auto; scrollbar-width: none; }
.music-results::-webkit-scrollbar { display: none; }
.music-result { display: flex; align-items: center; gap: 7px; padding: 5px 0; border-bottom: 1px dashed rgba(224, 167, 187, .2); }
.music-result img { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 7px; object-fit: cover; background: #f4e6ec; }
.music-result > div { flex: 1; min-width: 0; }
.music-result strong { display: block; color: var(--ink-soft); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-result small { display: block; color: var(--muted-light); font-size: 7.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-add { display: inline-flex; align-items: center; gap: 2px; padding: 4px 7px; border-radius: 99px; background: #ffe9f1; color: var(--pink-600); font-size: 7.5px; font-weight: 700; }
.music-api-note { margin-top: 9px; color: var(--muted-light); font-size: 7px; line-height: 1.5; }
.queue-card { margin-top: 13px; padding: 17px 15px 12px; }
.music-queue { display: flex; flex-direction: column; gap: 2px; margin-top: 9px; }
.queue-row { display: flex; align-items: center; gap: 2px; width: 100%; padding: 3px; border-radius: 9px; background: transparent; }
.queue-main { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; padding: 3px 0; text-align: left; background: none; }
.queue-row:hover { background: #fff5f8; }
.queue-row.active { background: #fff0f5; }
.queue-index { display: grid; place-items: center; width: 20px; flex: 0 0 20px; color: var(--muted-light); font-size: 7.5px; }
.queue-row.active .queue-index { color: var(--pink-500); font-weight: 900; }
.queue-row img { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 7px; object-fit: cover; background: #f4e6ec; }
.queue-art-placeholder { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 7px; background: #f4e6ec; color: var(--pink-500); font-size: 14px; }
.queue-copy { flex: 1; min-width: 0; }
.queue-copy strong { display: block; font-size: 9.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-copy small { display: block; color: var(--muted-light); font-size: 7px; }
.queue-remove { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; color: var(--muted-light); font-size: 14px; }
.queue-remove:hover { background: #ffe6ee; color: var(--pink-600); }
.queue-clear { display: block; margin-left: auto; margin-top: 7px; font-size: 8px; color: var(--muted-light); }

/* 抽象崽 */
.blob-page { padding-bottom: 30px; }
.blob-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 16px;
  border-radius: 33px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, .85), transparent 33%),
    radial-gradient(circle at 80% 7%, rgba(200, 177, 255, .55), transparent 32%),
    linear-gradient(155deg, #fff5fb 0%, #ffe6f4 47%, #e8dfff 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-md);
}
.blob-hero::after { content: "ERROR 404: SANITY NOT FOUND"; position: absolute; left: 16px; bottom: 10px; color: rgba(149, 91, 153, .26); font-family: monospace; font-size: 6px; letter-spacing: .04em; }
.blob-kicker { display: inline-block; color: #a8759a; font-family: var(--font-rounded); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.blob-stars { position: absolute; right: 17px; top: 17px; color: #c695e3; font-size: 11px; opacity: .7; }
.blob-stars span { font-size: 7px; }
.blob-stage { position: relative; z-index: 1; display: flex; justify-content: center; margin-top: -1px; }
.blob-svg { width: 177px; height: auto; filter: drop-shadow(0 14px 18px rgba(142, 89, 151, .18)); animation: blobFloat 3.8s ease-in-out infinite; }
.blob-shadow { position: absolute; bottom: 0; left: 50%; width: 110px; height: 11px; border-radius: 50%; background: rgba(139, 90, 128, .13); transform: translateX(-50%); filter: blur(3px); }
.blob-name-row { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 5px; }
.blob-name-row h1 { font-family: var(--font-rounded); font-size: 27px; font-weight: 900; letter-spacing: -.03em; color: #5a3651; }
.blob-name-row .mini-btn { padding: 0 7px; min-height: 23px; font-size: 7.5px; }
.blob-level { display: flex; align-items: center; gap: 6px; max-width: 240px; margin: 5px auto 0; color: #aa819d; font-size: 7.5px; }
.blob-level > div { flex: 1; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(197, 151, 192, .25); }
.blob-level > div i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb1cc, #b995f1); }
.blob-quote { max-width: 290px; margin: 11px auto 0; padding: 7px 10px; border-radius: 11px; background: rgba(255, 255, 255, .55); color: #916885; font-family: var(--font-display); font-size: 9px; line-height: 1.55; }
.blob-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.blob-stat { padding: 11px 12px; border-radius: 18px; background: rgba(255, 253, 253, .8); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-xs); }
.blob-stat > span { float: right; font-size: 18px; }
.blob-stat small { display: block; color: var(--muted); font-size: 8px; }
.blob-stat strong { display: block; color: #8f5a9a; font-family: var(--font-rounded); font-size: 23px; line-height: 1.2; font-weight: 900; }
.blob-stat > div { height: 4px; margin-top: 5px; border-radius: 99px; background: rgba(197, 151, 192, .2); overflow: hidden; }
.blob-stat > div i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb1cd, #cba7f5); }
.blob-actions { margin-top: 12px; padding: 17px 14px 14px; }
.blob-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.blob-action-grid button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 3px 8px; border-radius: 15px; background: #fff8fc; border: 1px solid rgba(228, 174, 196, .22); transition: .18s; }
.blob-action-grid button:hover { background: #f8edff; transform: translateY(-2px); }
.blob-action-grid button:active { transform: scale(.94); }
.blob-action-grid span { font-size: 24px; filter: saturate(.8); }
.blob-action-grid small { color: var(--ink-soft); font-size: 8px; font-weight: 700; white-space: nowrap; }
.blob-poke-button { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; min-height: 34px; margin-top: 9px; border-radius: 12px; color: #9a63a5; background: rgba(241, 227, 255, .7); border: 1px dashed rgba(186, 146, 220, .5); font-size: 9px; font-weight: 700; }
.blob-message { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 14px; }
.blob-message-icon { font-size: 23px; }
.blob-message > div { flex: 1; }
.blob-message strong { font-size: 10px; }
.blob-message p { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.blob-message .soft-link { font-size: 8px; padding: 5px 7px; }

/* 留言墙 */
.board-hero { position: relative; overflow: hidden; padding: 20px 18px 18px; background: linear-gradient(155deg, #fffaf9, #ffeff2 60%, #ffeddf); }
.board-hero h1 { margin-top: 4px; font-family: var(--font-rounded); font-size: 27px; font-weight: 900; letter-spacing: -.04em; }
.board-hero > p { max-width: 78%; margin-top: 5px; color: var(--muted); font-size: 9.5px; line-height: 1.7; }
.board-hero-actions { display: flex; gap: 6px; margin-top: 12px; }
.board-sticker { position: absolute; right: 20px; bottom: 29px; font-size: 42px; transform: rotate(8deg); opacity: .75; filter: saturate(.7); }
.board-section { margin-top: 20px; }
.sticky-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sticky-note {
  position: relative;
  min-height: 137px;
  padding: 12px 12px 9px;
  border-radius: 7px 16px 16px 16px;
  box-shadow: 0 8px 18px rgba(155, 96, 105, .09);
  display: flex;
  flex-direction: column;
  animation: photoIn .4s var(--ease-out) both;
  animation-delay: calc(var(--i) * 35ms);
}
.sticky-note::after { content: ""; position: absolute; top: 0; right: 0; width: 17px; height: 17px; background: linear-gradient(225deg, rgba(255, 255, 255, .8) 48%, rgba(162, 120, 115, .09) 50%); border-radius: 0 15px 0 0; }
.sticky-note.color-pink { background: #ffe4ee; }
.sticky-note.color-cream { background: #fff3cd; }
.sticky-note.color-lilac { background: #eee4ff; }
.sticky-note.color-mint { background: #e2f6e9; }
.sticky-note.color-peach { background: #ffe8db; }
.sticky-top { display: flex; align-items: center; gap: 4px; }
.sticky-top > span { font-size: 14px; }
.sticky-top small { color: rgba(111, 81, 84, .65); font-size: 7px; }
.sticky-delete { margin-left: auto; color: rgba(111, 81, 84, .4); font-size: 15px; }
.sticky-note > p { margin-top: 8px; color: #5f3f4a; font-family: var(--font-display); font-size: 10.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; }
.sticky-reactions { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 8px; }
.sticky-reactions button { padding: 2px 5px; border-radius: 99px; background: rgba(255, 255, 255, .42); color: #7d5a5e; font-size: 9px; line-height: 1.4; }
.sticky-reactions button.active { background: rgba(255, 255, 255, .82); box-shadow: 0 0 0 1px rgba(201, 134, 149, .25); }
.sticky-reactions b { font-size: 7px; font-weight: 700; }
.poll-card { padding: 16px; margin-bottom: 9px; }
.poll-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.poll-head h3 { margin-top: 3px; font-family: var(--font-rounded); font-size: 13px; font-weight: 900; line-height: 1.45; }
.poll-head > small { flex: 0 0 auto; color: var(--muted-light); font-size: 7.5px; padding-top: 4px; }
.poll-options { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.poll-option { display: grid; grid-template-columns: 1fr 38px; grid-template-rows: auto 3px; gap: 3px 7px; width: 100%; padding: 7px 9px; border-radius: 10px; text-align: left; background: rgba(255, 249, 252, .65); border: 1px solid rgba(230, 175, 195, .2); }
.poll-option.chosen { border-color: rgba(239, 115, 158, .45); background: #fff0f5; }
.poll-option-label { grid-column: 1 / 3; color: var(--ink-soft); font-size: 9px; }
.poll-bar { grid-column: 1 / 2; height: 3px; align-self: center; overflow: hidden; border-radius: 99px; background: rgba(225, 170, 190, .2); }
.poll-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffa9c4, #ee78a5); }
.poll-option b { grid-column: 2 / 3; grid-row: 1 / 3; align-self: center; color: var(--pink-600); font-family: var(--font-rounded); font-size: 11px; text-align: right; }
.poll-option small { display: none; }
.poll-option:disabled { opacity: .65; }
.poll-remove { margin-top: 8px; font-size: 7.5px; color: var(--muted-light); }
.board-color-picker { display: flex; gap: 5px; flex-wrap: wrap; }
.board-color-label { cursor: pointer; }
.board-color-label input { position: absolute; opacity: 0; pointer-events: none; }
.board-color-label span { display: block; padding: 5px 9px; border-radius: 99px; border: 1px solid transparent; font-size: 8px; color: #6f4b55; }
.board-color-label.color-pink span { background: #ffe4ee; }
.board-color-label.color-cream span { background: #fff3cd; }
.board-color-label.color-lilac span { background: #eee4ff; }
.board-color-label.color-mint span { background: #e2f6e9; }
.board-color-label.color-peach span { background: #ffe8db; }
.board-color-label input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pink-300); }
.board-emoji-grid { margin-bottom: 6px; }

/* 三秒真心话 */
.quick-session { justify-content: flex-start; }
.quick-card { position: relative; margin-top: 13px; padding: 27px 18px 18px; text-align: center; border-radius: 23px; background: linear-gradient(155deg, #fffafc, #ffeaf2); border: 1px solid #fff; box-shadow: var(--shadow-sm); }
.quick-mark { position: absolute; left: 14px; top: 9px; font-size: 25px; opacity: .7; }
.quick-card p { max-width: 280px; margin: 0 auto; font-family: var(--font-display); font-size: 16px; line-height: 1.7; color: var(--ink); }
.quick-timer { display: grid; place-items: center; width: 54px; height: 54px; margin: 14px auto 0; border-radius: 50%; color: var(--pink-600); background: #fff; border: 2px solid #ffd0e0; font-family: var(--font-rounded); font-size: 24px; font-weight: 900; box-shadow: 0 5px 14px rgba(226, 105, 146, .12); }
.quick-timer.expired { width: 66px; height: 32px; border-radius: 99px; font-size: 11px; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.quick-cat { width: 43px; margin: 8px auto 0; opacity: .55; }

/* 心动转盘 */
.game-card.game-cream { background: linear-gradient(150deg, #fffdf4, #fff1d9); }
.wheel-session { align-items: center; text-align: center; }
.wheel-stage { position: relative; width: 220px; height: 220px; margin: 18px auto 3px; }
.wheel-disc { position: absolute; inset: 14px; border-radius: 50%; background: conic-gradient(#ffb4ce 0 45deg, #ffe3a8 45deg 90deg, #d9c8ff 90deg 135deg, #ffd9c2 135deg 180deg, #ffb4ce 180deg 225deg, #ffe3a8 225deg 270deg, #d9c8ff 270deg 315deg, #ffd9c2 315deg 360deg); border: 8px solid #fff8fb; box-shadow: 0 12px 27px rgba(182, 87, 125, .2), inset 0 0 0 2px rgba(255, 255, 255, .8); display: grid; place-items: center; transition: transform 1.35s cubic-bezier(.15, .7, .2, 1); }
.wheel-disc.spinning { transform: rotate(1380deg); }
.wheel-disc::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .7); }
.wheel-emoji { display: grid; place-items: center; width: 59px; height: 59px; border-radius: 50%; background: #fff8fc; box-shadow: 0 5px 13px rgba(160, 80, 110, .15); font-size: 29px; }
.wheel-pointer { position: absolute; left: 50%; top: 1px; z-index: 3; color: #f06094; font-size: 23px; transform: translateX(-50%); filter: drop-shadow(0 3px 3px rgba(155, 70, 100, .2)); }
.wheel-orbit { position: absolute; color: #e9b9d0; font-size: 13px; animation: twinkle 2.8s ease-in-out infinite; }
.wheel-orbit.o1 { left: -6px; top: 46px; }
.wheel-orbit.o2 { right: 0; top: 25px; animation-delay: -1.2s; }
.wheel-orbit.o3 { right: 12px; bottom: 20px; font-size: 9px; animation-delay: -2s; }
.wheel-result { width: 100%; padding: 13px 12px; border-radius: 16px; background: linear-gradient(145deg, #fff8fc, #ffe9f2); border: 1px solid #fff; box-shadow: var(--shadow-sm); animation: pageIn .32s var(--ease-out); }
.wheel-result span { display: block; color: var(--muted); font-size: 8px; }
.wheel-result strong { display: block; margin-top: 3px; color: var(--pink-600); font-family: var(--font-rounded); font-size: 17px; font-weight: 900; }
.wheel-result small { display: block; margin-top: 3px; color: var(--muted-light); font-size: 7.5px; }

@media (max-width: 370px) {
  .distance-strip { gap: 5px; padding: 9px 10px; }
  .distance-strip-cities { font-size: 8.5px; }
  .distance-strip strong { font-size: 11px; }
  .distance-strip small { display: none; }
  .long-hero h1 { font-size: 24px; }
  .city-stop { width: 64px; flex-basis: 64px; }
  .route-line strong { font-size: 9px; }
  .music-hero-top { gap: 10px; }
  .album-cover { width: 107px; height: 107px; flex-basis: 107px; }
  .music-now h1 { font-size: 19px; }
  .music-controls { gap: 5px; }
  .music-apple-link { display: none; }
  .blob-svg { width: 154px; }
  .blob-hero h1 { font-size: 23px; }
  .blob-action-grid span { font-size: 21px; }
  .poke-grid { grid-template-columns: repeat(3, 1fr); }
  .poke-button.poke-more { display: none; }
  .sticky-note { min-height: 128px; padding: 10px 10px 8px; }
  .sticky-note > p { font-size: 9.5px; }
  .board-hero h1 { font-size: 23px; }
  .ld-idea-list { grid-template-columns: 1fr; }
}

@keyframes blobFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1.3deg); }
}
.game-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 137px; }
.game-card:last-child:nth-child(odd) .game-emoji { float: left; margin-right: 11px; }
.game-card:last-child:nth-child(odd) strong { margin-top: 9px; }
.game-card:last-child:nth-child(odd) small { max-width: 68%; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 780px) {
  body { background: #fff5f8; }
  .desktop-backdrop { display: none; }
  .phone-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .status-bar { display: none; }
  .screen-scroll { padding-top: env(safe-area-inset-top); }
  .page { padding-left: 15px; padding-right: 15px; }
  .nav-root { left: 12px; right: 12px; bottom: calc(7px + env(safe-area-inset-bottom)); }
  .h-scroll { margin-right: -15px; padding-right: 15px; }
  .modal-card { width: 100%; }
  .toast-root { top: auto; bottom: calc(100px + env(safe-area-inset-bottom)); }
  body.modal-open .toast-root { top: calc(78px + env(safe-area-inset-top)); bottom: auto; }
}

@media (max-width: 370px) {
  .hero-title-row h1 { font-size: 33px; }
  .hero-title-row h1 span:not(.hero-heart) { font-size: 38px; }
  .love-hero h2 { font-size: 24px; }
  .love-quote { width: 72%; }
  .hero-pet { width: 94px; }
  .weather-temperature strong { font-size: 68px; }
  .weather-emoji-bubble { width: 96px; height: 96px; flex-basis: 96px; font-size: 49px; }
  .game-card { min-height: 164px; padding: 13px 12px; }
  .game-card strong { font-size: 15px; }
  .nav-item { height: 52px; }
  .nav-emoji { width: 26px; height: 26px; }
  .nav-label { font-size: 8.5px; }
  .progress-habits { width: 272px; }
  .progress-todos { width: 174px; }
  .two-fields { grid-template-columns: 1fr; gap: 0; }
}

@media (min-width: 781px) {
  .phone-shell { margin-top: max(17px, calc((100vh - min(920px, calc(100vh - 34px))) / 2)); margin-bottom: 0; }
  .modal-layer { align-items: center; padding: 20px; }
  .modal-card {
    border-radius: 32px;
    max-height: 88dvh;
    padding-bottom: 7px;
  }
  .modal-footer { padding-bottom: 11px; }
  .modal-card.visible { transform: translateY(0); }
  .modal-card { transform: translateY(24px) scale(.98); opacity: 0; transition: transform .35s var(--ease-out), opacity .25s; }
  .modal-card.visible { opacity: 1; transform: translateY(0) scale(1); }
  .game-modal { max-height: 88dvh; }
  .toast-root { bottom: 136px; }
}

/* iOS Safari：低于 16px 的输入框会自动放大页面，所以移动端统一补到 16px */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 780px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    textarea,
    select {
      font-size: 16px !important;
    }
    .note-form input { height: 42px; }
    .city-search-form input { height: 42px; }
    .setting-row { padding-top: 12px; padding-bottom: 12px; }
  }
}

/* --------------------------------------------------------------------------
   照片宠物 / 小游戏 / 备忘录
   -------------------------------------------------------------------------- */

.photo-pet-scene { min-height: 455px; }
.pet-3d-shell {
  position: relative;
  width: 238px;
  height: 286px;
  overflow: hidden;
  border-radius: 35px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .85), transparent 55%),
    linear-gradient(155deg, #fff7fb, #ffe6f0 60%, #f2e2ff);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 18px 34px rgba(132, 76, 95, .16), inset 0 0 0 5px rgba(255, 255, 255, .22);
}
.pet3d-canvas { position: absolute !important; inset: 0; display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.pet-3d-fallback { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fffafb; }
.pet-3d-shell.has-3d .pet-3d-fallback,
.pet-3d-shell.has-2d .pet-3d-fallback,
.home-pet-3d-frame.has-2d .pet-3d-fallback { display: none; }
.pet2d-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  padding: 5px;
  border-radius: 29px;
  background: #fffafb;
  filter: drop-shadow(0 9px 12px rgba(112, 62, 78, .13));
  transform-origin: 50% 92%;
  transition: opacity .14s ease;
  animation: pet2dBob 4.2s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}
.pet2d-image.is-switching { opacity: .28; }
.home-pet-3d-frame .pet2d-image { object-fit: cover; object-position: center top; padding: 0; border-radius: 25px; }
.pet2d-idle-pop { animation: pet2dPop .5s var(--ease-out), pet2dBob 4.2s ease-in-out infinite; }
.pet2d-image[data-action="feed"],
.pet2d-image[data-action="eat"],
.pet2d-image[data-action="snack"] { animation: pet2dNod .42s ease-in-out 4; }
.pet2d-image[data-action="water"] { animation: pet2dTilt .6s ease-in-out 3; }
.pet2d-image[data-action="play"] { animation: pet2dShake .32s ease-in-out 5; }
.pet2d-image[data-action="pet"],
.pet2d-image[data-action="hug"],
.pet2d-image[data-action="pose"] { animation: pet2dHappy .55s var(--ease-out) 3; }
.pet2d-image[data-action="tease"] { animation: pet2dGrumpy .32s ease-in-out 5; }
.pet2d-image[data-action="dance"],
.pet2d-image[data-action="sing"] { animation: pet2dDance .55s ease-in-out 4; }
.pet2d-image[data-action="jump"] { animation: pet2dJump .58s cubic-bezier(.2, .9, .3, 1) 3; }
.pet2d-image[data-action="spin"] { animation: pet2dSpin .7s ease-in-out 3; }
.pet2d-image[data-action="sleep"] { animation: pet2dSleep 3s ease-in-out infinite; }
.pet2d-image[data-action="talk"] { animation: pet2dTalk .4s ease-in-out 4; }
.pet2d-image[data-action="clean"] { animation: pet2dWiggle .42s ease-in-out 4; }

@keyframes pet2dBob { 0%, 100% { transform: translateY(0) rotate(-.4deg) scale(1); } 50% { transform: translateY(-5px) rotate(.5deg) scale(1.012); } }
@keyframes pet2dPop { 0% { transform: scale(.97); } 55% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes pet2dNod { 0%, 100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(3px) rotate(-2deg) scale(.985); } }
@keyframes pet2dTilt { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(5deg) translateY(-2px); } }
@keyframes pet2dShake { 0%, 100% { transform: rotate(0) translateX(0); } 25% { transform: rotate(-3deg) translateX(-4px); } 75% { transform: rotate(3deg) translateX(4px); } }
@keyframes pet2dHappy { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045) translateY(-4px) rotate(1.5deg); } }
@keyframes pet2dGrumpy { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
@keyframes pet2dDance { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-7px) scale(1.015); } }
@keyframes pet2dJump { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-18px) scale(1.035, .97); } 70% { transform: translateY(-8px) scale(.99, 1.02); } }
@keyframes pet2dSpin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(14deg) scale(.94, 1.04); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes pet2dSleep { 0%, 100% { transform: translateY(2px) rotate(-2deg) scale(.985); opacity: .92; } 50% { transform: translateY(4px) rotate(-1deg) scale(.975); opacity: .86; } }
@keyframes pet2dTalk { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px) scale(1.01); } }
@keyframes pet2dWiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-2deg); } 70% { transform: rotate(2deg); } }
.pet-3d-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  padding: 2px 7px;
  border-radius: 99px;
  color: #b2607d;
  background: rgba(255, 250, 252, .82);
  border: 1px solid rgba(255, 255, 255, .9);
  font-family: var(--font-rounded);
  font-size: 6.5px;
  font-weight: 900;
  letter-spacing: .08em;
  pointer-events: none;
}
.pet-3d-hint {
  position: absolute;
  left: 50%;
  bottom: 9px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 99px;
  color: rgba(133, 91, 108, .65);
  background: rgba(255, 255, 255, .38);
  font-size: 7px;
  white-space: nowrap;
  pointer-events: none;
}
.pet-3d-fx { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.pet3d-fx-item {
  position: absolute;
  left: var(--fx-x);
  bottom: 45%;
  font-size: 24px;
  animation: pet3dFx 1.3s var(--ease-out) forwards;
  filter: drop-shadow(0 4px 6px rgba(126, 61, 85, .13));
}
@keyframes pet3dFx {
  0% { opacity: 0; transform: translateY(8px) scale(.4) rotate(-8deg); }
  25% { opacity: 1; transform: translateY(-4px) scale(1.1) rotate(3deg); }
  100% { opacity: 0; transform: translateY(-80px) scale(.85) rotate(10deg); }
}
.pet-photo-stage {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 76px;
}
.pet-photo-frame {
  position: relative;
  width: 198px;
  height: 216px;
  padding: 7px;
  border-radius: 31px;
  background: rgba(255, 253, 254, .9);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 18px 34px rgba(132, 76, 95, .16);
  transform: rotate(-1.2deg);
}
.pet-photo-frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, .7);
  pointer-events: none;
}
.pet-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 25px;
  background: #fffafb;
  transform-origin: 50% 85%;
}
.pet-photo-sticker {
  position: absolute;
  right: 9px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 99px;
  color: #a9637d;
  background: rgba(255, 240, 246, .9);
  font-family: var(--font-rounded);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .08em;
}
.pet-frame-panda { transform: rotate(-1.2deg); }
.pet-frame-dog { transform: rotate(1.4deg); }
.pet-frame-yellow { transform: rotate(-.8deg); }
.pet-frame-spider { transform: rotate(1.8deg); }
.idle-sway { animation: petSway 4.2s ease-in-out infinite; }
.idle-breathe { animation: petBreathe 3.7s ease-in-out infinite; }
.idle-bob { animation: petBobIdle 3.1s ease-in-out infinite; }
.idle-flex { animation: petFlex 4.5s ease-in-out infinite; }
.pet-actioning { animation: petActionPop .55s var(--ease-out) both !important; }
.pet-photo-frame .pet-heart-float { right: 12px; top: 9px; }

.pet-inline-photo-frame {
  display: grid;
  place-items: center;
  width: 115px;
  height: 115px;
  overflow: hidden;
  border-radius: 31px;
  background: #fffafb;
  border: 4px solid rgba(255, 255, 255, .9);
  box-shadow: 0 9px 20px rgba(129, 65, 89, .15);
}
.home-pet-3d-frame {
  position: relative;
  display: block;
  width: 111px;
  height: 126px;
  border-radius: 29px;
  background: radial-gradient(circle at 50% 35%, #fff, #ffeaf2);
}
.home-pet-3d-frame .pet-3d-fallback { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 25px; }
.home-pet-3d-frame.has-3d .pet-3d-fallback { display: none; }
.home-pet-3d-frame .pet-3d-badge { left: 6px; top: 6px; padding: 1px 5px; font-size: 5.5px; background: rgba(255, 255, 255, .72); }
.photo-pet-inline { width: 124px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.home-pet-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 3px 0;
  padding: 8px 11px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 253, 254, .82);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 5px 14px rgba(138, 75, 98, .07);
  color: #78515f;
  font-family: var(--font-display);
  font-size: 9px;
  line-height: 1.5;
  animation: petNoteIn .35s var(--ease-out) both;
}
.home-pet-note img { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; object-fit: cover; background: #fff; border: 2px solid #fff; }
.home-pet-note span { flex: 1; }
.home-pet-note i { position: absolute; left: 20px; bottom: -6px; width: 11px; height: 11px; background: rgba(255, 253, 254, .82); border-right: 1px solid rgba(255, 255, 255, .9); border-bottom: 1px solid rgba(255, 255, 255, .9); transform: rotate(45deg); }
.home-pet-note.pop { animation: petNotePop .45s var(--ease-out) both; }
@keyframes petNoteIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes petNotePop { 0% { transform: scale(.98); } 60% { transform: scale(1.015); } 100% { transform: scale(1); } }
.photo-pet-inline .pet-inline-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo-pet-inline .pet-name-tag { margin-top: 3px; }
.pet-inline-bubble {
  position: absolute;
  right: 13px;
  bottom: calc(100% + 5px);
  z-index: 8;
  width: 150px;
  padding: 8px 9px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 253, 254, .95);
  border: 1px solid rgba(234, 184, 201, .55);
  box-shadow: 0 7px 18px rgba(130, 65, 89, .14);
  color: #795261;
  font-family: var(--font-display);
  font-size: 8.5px;
  line-height: 1.5;
  text-align: left;
  animation: bubbleIn .35s var(--ease-out) both;
}
.pet-inline-bubble i {
  position: absolute;
  right: 28px;
  bottom: -6px;
  width: 11px;
  height: 11px;
  background: rgba(255, 253, 254, .95);
  border-right: 1px solid rgba(234, 184, 201, .55);
  border-bottom: 1px solid rgba(234, 184, 201, .55);
  transform: rotate(45deg);
}
.pet-inline-bubble.pop { animation: bubblePop .45s var(--ease-out) both; }
.pet-bubble-panda { background: #fffdf9; border-color: #e7d1a5; color: #806346; }
.pet-bubble-dog { background: #fffdf7; border-color: #e8d3aa; color: #7d6746; }
.pet-bubble-yellow { background: #fffdf2; border-color: #ead88f; color: #796b36; }
.pet-bubble-spider { background: #fff7fa; border-color: #e6b4c4; color: #81495b; }

.photo-pet-hero .pet-info { padding-top: 5px; }
.photo-pet-hero .pet-info h1 { font-size: 28px; }
.photo-pet-hero .pet-info p { max-width: 90%; margin-left: auto; margin-right: auto; line-height: 1.5; }

.pet-actions-15 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.pet-actions-15 .pet-action { min-height: 62px; justify-content: center; }
.pet-actions-15 .pet-action[disabled] { opacity: .4; filter: grayscale(.5); }
.pet-actions-15 .pet-action span { width: 33px; height: 33px; font-size: 18px; }
.pet-actions-15 .pet-action small { font-size: 8.5px; }

.pet-dialogue-face { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; overflow: hidden; border-radius: 12px; background: #fffafb; }
.pet-dialogue-face img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.pet-choice-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 10px; background: #fffafb; }
.pet-choice-art { overflow: hidden; border-radius: 11px; }

.pet-care { margin-top: 14px; padding: 16px 15px 14px; }
.pet-care-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pet-care h2 { margin-top: 3px; font-family: var(--font-rounded); font-size: 18px; font-weight: 900; color: var(--ink); }
.pet-care h2 b { color: #e76b9b; font-size: 24px; }
.pet-care > p { margin-top: 5px; color: var(--muted); font-size: 8.5px; line-height: 1.6; }
.pet-care-actions { display: flex; gap: 7px; margin-top: 11px; }
.pet-care-actions .pill { flex: 1; min-height: 34px; font-size: 9px; }
.pet-game-last { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 9px; padding: 7px 9px; border-radius: 10px; background: #fff4f8; }
.pet-game-last span { color: var(--pink-600); font-size: 9px; font-weight: 900; }
.pet-game-last b { flex: 1; color: var(--ink-soft); font-size: 8px; font-weight: 600; }
.pet-game-last i { color: #b36d86; font-size: 8px; font-style: normal; }

.pet-game-modal { display: flex; flex-direction: column; gap: 11px; }
.pet-game-stats { display: flex; justify-content: space-between; padding: 9px 11px; border-radius: 11px; background: #fff4f8; color: var(--muted); font-size: 9px; }
.pet-game-stats b { color: var(--pink-600); font-size: 13px; }
.pet-game-tip, .pet-game-note { color: var(--muted); font-size: 8.5px; line-height: 1.6; }
.pet-game-note { text-align: center; }
.pet-game-result { padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, #fff8fb, #ffedf4); text-align: center; }
.pet-game-result strong { display: block; color: var(--pink-600); font-family: var(--font-rounded); font-size: 15px; }
.pet-game-result p { margin-top: 2px; color: var(--ink-soft); font-size: 9px; }
.pet-game-result small { display: block; margin-top: 2px; color: #b57289; font-size: 8px; }
.pet-game-block { padding: 11px; border-radius: 14px; background: #fffafc; border: 1px solid rgba(232, 176, 196, .25); }
.pet-game-block-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pet-game-block-head strong { color: var(--ink-soft); font-size: 10px; }
.pet-game-block-head small { color: var(--muted-light); font-size: 7px; }
.pet-game-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.pet-game-choices button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 3px; border-radius: 10px; background: #fff; border: 1px solid rgba(232, 176, 196, .22); font-size: 21px; }
.pet-game-choices button span { color: var(--ink-soft); font-size: 8px; }
.pet-game-choices button:active, .pet-dice-grid button:active { transform: scale(.94); }
.pet-dice-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 8px; }
.pet-dice-grid button { min-height: 34px; border-radius: 9px; background: #fff; border: 1px solid rgba(232, 176, 196, .25); color: var(--pink-600); font-family: var(--font-rounded); font-size: 13px; font-weight: 900; }

.memo-page { padding-bottom: 30px; }
.memo-hero { position: relative; overflow: hidden; padding: 21px 18px 18px; background: linear-gradient(150deg, #fffdf5, #fff5df 56%, #ffedf1); }
.memo-hero h1 { margin-top: 4px; font-family: var(--font-rounded); font-size: 29px; font-weight: 900; letter-spacing: -.04em; }
.memo-hero p { max-width: 78%; margin-top: 5px; color: var(--muted); font-size: 9.5px; line-height: 1.7; }
.memo-hero .pill { margin-top: 12px; }
.memo-sticker { position: absolute; right: 16px; bottom: 19px; font-size: 44px; transform: rotate(8deg); opacity: .75; filter: saturate(.7); }
.memo-section { margin-top: 18px; }
.memo-list { display: flex; flex-direction: column; gap: 9px; }
.memo-card { padding: 15px 15px 12px; background: linear-gradient(145deg, #fffefa, #fff9ec); }
.memo-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.memo-card-top h3 { font-family: var(--font-rounded); font-size: 13px; font-weight: 900; color: var(--ink); }
.memo-card-top span { flex: 0 0 auto; color: var(--muted-light); font-size: 7px; padding-top: 2px; }
.memo-card > p { margin-top: 7px; color: var(--muted); font-size: 9.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.memo-card > p.memo-empty-text { color: var(--muted-light); font-style: italic; }
.memo-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(216, 176, 140, .25); }
.memo-card-bottom small { color: var(--muted-light); font-size: 7px; }
.memo-card-bottom > div { display: flex; gap: 5px; }
.memo-card-bottom .mini-btn { min-height: 22px; padding: 0 7px; font-size: 7px; }
.memo-delete { color: #bd7189; }

@keyframes petSway { 0%, 100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(1.7deg) translateY(-4px); } }
@keyframes petBreathe { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.035) translateY(-3px); } }
@keyframes petBobIdle { 0%, 100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-7px) rotate(-.8deg); } 55% { transform: translateY(-7px) rotate(.8deg); } }
@keyframes petFlex { 0%, 100% { transform: rotate(-1deg) scale(1); } 40% { transform: rotate(2deg) scale(1.025) translateY(-3px); } 70% { transform: rotate(-2deg) scale(1.01); } }
@keyframes petActionPop { 0% { transform: scale(1) rotate(0); } 35% { transform: scale(1.08) rotate(-2deg); } 70% { transform: scale(.97) rotate(1deg); } 100% { transform: scale(1) rotate(0); } }

@media (max-width: 370px) {
  .photo-pet-scene { min-height: 415px; }
  .pet-photo-stage { padding-top: 66px; }
  .pet-3d-shell { width: 210px; height: 252px; border-radius: 29px; }
  .pet-photo-frame { width: 172px; height: 190px; }
  .pet-inline-photo-frame { width: 103px; height: 103px; border-radius: 27px; }
  .photo-pet-inline { width: 110px; }
  .pet-inline-bubble { width: 135px; font-size: 8px; }
  .pet-choice-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .pet-choice { flex-direction: column; text-align: center; padding: 8px 5px 7px; }
  .pet-choice-art { width: 68px; height: 68px; margin: 0 auto 2px; }
  .pet-actions-15 { grid-template-columns: repeat(3, 1fr); }
  .pet-action span { width: 32px; height: 32px; font-size: 17px; }
  .pet-action small { font-size: 8px; }
  .pet-dice-grid { grid-template-columns: repeat(3, 1fr); }
}

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

/* 小屏横向优化 */
@media (max-height: 690px) and (max-width: 780px) {
  .chrome { height: 140px; }
  .home-chrome { height: 224px; }
  .page { margin-top: -14px; }
  .page.home-page { margin-top: -15px; }
  .love-hero { min-height: 245px; }
}
