/* build 20261024-12591 */

/* Web 基础样式：重置、应用外壳、switch / modal / toast / 输入框等 */
html {
  font-size: min(13.3333vw, 80px); /* 1rem = 100rpx；宽屏封顶 600px 应用宽度 */
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  background-color: #fff6e9;
  background-image: radial-gradient(#ecdfc9 0.03rem, transparent 0.03rem);
  background-size: 0.46rem 0.46rem;
  color: #2b2438;
  font-size: 0.28rem;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

input {
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: max(16px, 0.27rem);
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

a {
  color: inherit;
}

.app-shell {
  position: relative;
  max-width: 7.5rem;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}

section.view {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(0.1rem + env(safe-area-inset-top));
}

section.view.active {
  display: block;
}

/* ---------- 底部导航：宽屏居中 ---------- */

.tabbar-inner {
  max-width: 7.06rem;
  margin: 0 auto;
}

.tab-item {
  cursor: pointer;
}

/* ---------- 开关 ---------- */

.switch {
  position: relative;
  flex-shrink: 0;
  width: 1.04rem;
  height: 0.62rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e3e3e3;
  transition: background 0.2s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 0.05rem;
  left: 0.05rem;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: left 0.2s ease;
}

.switch.on {
  background: #35cba8;
}

.switch.on::after {
  left: calc(100% - 0.57rem);
}

/* ---------- 确认弹窗 ---------- */

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 36, 56, 0.58);
}

.modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 6.2rem;
  padding: 0.38rem 0.34rem 0.3rem;
  background: #fffdf8;
  border: 0.04rem solid #2b2438;
  border-radius: 0.4rem;
  box-shadow: 0.1rem 0.12rem 0 rgba(0, 0, 0, 0.28);
  animation: boardIn 0.38s cubic-bezier(0.2, 1.1, 0.3, 1) both;
}

.modal-title {
  font-family: "Yuanti SC", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.34rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.modal-content {
  margin-top: 0.16rem;
  font-size: 0.25rem;
  line-height: 1.6;
  color: #746a85;
  text-align: center;
}

.modal-actions {
  display: flex;
  margin-top: 0.3rem;
}

.modal-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.84rem;
  border: 0.04rem solid #2b2438;
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: 0 0.06rem 0 #2b2438;
  font-size: 0.27rem;
  font-weight: 800;
}

.modal-btn + .modal-btn {
  margin-left: 0.18rem;
}

.modal-btn.primary {
  background: #ffc93c;
  color: #2b2438;
}

.modal-btn.danger {
  background: #ff6f61;
  color: #fff;
}

.modal-btn:active {
  transform: translateY(0.05rem);
  box-shadow: 0 0.01rem 0 #2b2438;
}

/* ---------- 轻提示 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(2.2rem + env(safe-area-inset-bottom));
  z-index: 300;
  max-width: 82vw;
  padding: 0.18rem 0.34rem;
  border-radius: 999px;
  background: rgba(43, 36, 56, 0.92);
  color: #fff;
  font-size: 0.24rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transform: translateX(-50%);
  animation: toastIn 0.22s ease both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 0.15rem);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ---------- 备案信息 ---------- */

.beian {
  padding: 0.34rem 0 0.1rem;
  text-align: center;
  font-size: 0.2rem;
  letter-spacing: 0.02rem;
  color: #a79db5;
}

.beian a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 徽章浮层（保证在宽屏也居中） ---------- */

.badge-backdrop {
  position: absolute;
  inset: 0;
}

.badge-board {
  position: relative;
  z-index: 1;
  max-width: 6.2rem;
}

/* ---------- 横向滑动区 ---------- */

.stage-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stage-scroll::-webkit-scrollbar {
  display: none;
}

/* ---------- 输入框 ---------- */

input::placeholder {
  color: #b8ad9c;
}

input {
  caret-color: #2b2438;
}




body {
  --ink: #2b2438;
  --ink-soft: #746a85;
  --ink-faint: #a79db5;
  --paper: #fff6e9;
  --card: #fffdf8;
  --coral: #ff6f61;
  --sun: #ffc93c;
  --mint: #35cba8;
  --sky: #57b6ff;
  --grape: #8e7cff;
  --pink: #ff8fb1;
  --line: #2b2438;

  min-height: 100%;
  background-color: #fff6e9;
  background-image: radial-gradient(#ecdfc9 0.03rem, transparent 0.03rem);
  background-size: 0.46rem 0.46rem;
  color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 0.28rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

div,
span,
input,
button,
div,
div {
  box-sizing: border-box;
}

.page {
  min-height: 100vh;
  padding: 0 0.32rem calc(2.3rem + env(safe-area-inset-bottom));
  overflow-x: hidden;
}


.h1,
.h2,
.task-title,
.hero-stage,
.alldone-title,
.balance-num,
.growth-name,
.stage-name,
.badge-title {
  font-family: "Yuanti SC", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.h1 {
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.01rem;
  line-height: 1.25;
}

.h2 {
  font-size: 0.34rem;
  font-weight: 800;
  letter-spacing: 0.01rem;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.26rem;
}

.ink {
  color: var(--ink);
}

.tape {
  position: absolute;
  height: 0.34rem;
  width: 1.48rem;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 201, 60, 0.55) 0,
    rgba(255, 201, 60, 0.55) 0.12rem,
    rgba(255, 227, 158, 0.55) 0.12rem,
    rgba(255, 227, 158, 0.55) 0.24rem
  );
  border-left: 0.03rem solid rgba(43, 36, 56, 0.12);
  border-right: 0.03rem solid rgba(43, 36, 56, 0.12);
  border-radius: 0.03rem;
  opacity: 0.95;
}

.card {
  position: relative;
  background: var(--card);
  border: 0.04rem solid var(--ink);
  border-radius: 0.38rem;
  box-shadow: 0.09rem 0.11rem 0 rgba(43, 36, 56, 0.12);
}

.card-press {
  transform: translate(0.04rem, 0.06rem);
  box-shadow: 0.04rem 0.05rem 0 rgba(43, 36, 56, 0.12);
}



.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.92rem;
  padding: 0 0.4rem;
  border: 0.04rem solid var(--ink);
  border-radius: 9.99rem;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.3rem;
  font-weight: 800;
  letter-spacing: 0.01rem;
  box-shadow: 0 0.08rem 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn.press {
  transform: translateY(0.07rem);
  box-shadow: 0 0.01rem 0 var(--ink);
}

.btn.small {
  height: 0.68rem;
  padding: 0 0.26rem;
  font-size: 0.26rem;
  box-shadow: 0 0.06rem 0 var(--ink);
}

.btn.mint {
  background: var(--mint);
}

.btn.coral {
  background: var(--coral);
  color: #fff;
}

.btn.sky {
  background: var(--sky);
  color: #fff;
}

.btn.disabled {
  background: #ece5d8;
  color: var(--ink-faint);
  box-shadow: 0 0.06rem 0 #c9bfae;
  border-color: #b9ae9c;
}



.bg-coral { background: var(--coral); }
.bg-sun { background: var(--sun); }
.bg-mint { background: var(--mint); }
.bg-sky { background: var(--sky); }
.bg-grape { background: var(--grape); }
.bg-pink { background: var(--pink); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 0.52rem;
  padding: 0 0.2rem;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  background: #fff;
  font-size: 0.24rem;
  font-weight: 700;
}

.chip.active {
  background: var(--ink);
  color: #fff;
}



.bar {
  position: relative;
  height: 0.3rem;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  background: #eee4d4;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 9.99rem;
  background-image: linear-gradient(90deg, #ffd84d, #ff8f5e);
  transition: width 0.7s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.bar-fill::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.04rem;
  height: 0.06rem;
  border-radius: 9.99rem;
  background: rgba(255, 255, 255, 0.45);
}



.status-bar {
  width: 100%;
}



@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(0.26rem) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bob {
  0%, 100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-0.14rem) rotate(1.5deg);
  }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes stampIn {
  0% {
    opacity: 0;
    transform: scale(2.1) rotate(-24deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.92) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-8deg);
  }
}

@keyframes boardIn {
  0% {
    opacity: 0;
    transform: scale(0.86) translateY(0.24rem);
  }
  70% {
    opacity: 1;
    transform: scale(1.02) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-0.18rem); }
  40% { transform: translateX(0.16rem); }
  60% { transform: translateX(-0.1rem); }
  80% { transform: translateX(0.08rem); }
}

@keyframes floatStar {
  0% {
    opacity: 0;
    transform: translate(-50%, 0.26rem) scale(0.6);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -1.5rem) scale(1.25);
  }
}

@keyframes fallA {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(-0.46rem, 108vh, 0) rotate(680deg);
  }
}

@keyframes fallB {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(0.52rem, 108vh, 0) rotate(-700deg);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(142, 124, 255, 0.45);
  }
  50% {
    box-shadow: 0 0 0 0.26rem rgba(142, 124, 255, 0);
  }
}



body {
  --ink: #2a1b4a;
  --ink-soft: #6c5c8a;
  --ink-faint: #9c8dbb;
  --paper: #e9e2ff;
  --card: rgba(255, 255, 255, 0.92);
  --line: rgba(138, 107, 255, 0.18);
  color: var(--ink);
  background-color: #cdeaff;
  background-image: linear-gradient(165deg, #bee7ff 0%, #e3d9ff 46%, #ffe4f3 76%, #fff7d6 100%);
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed;
}

.card {
  border: 0 !important;
  border-radius: 0.32rem !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)) !important;
  box-shadow:
    0 0.14rem 0.3rem rgba(86, 56, 160, 0.16),
    inset 0 0.03rem 0 rgba(255, 255, 255, 0.95) !important;
}

.tape {
  display: none !important;
}

.btn {
  border: 0 !important;
  border-radius: 9.99rem !important;
  background: linear-gradient(180deg, #ff9bd0, #ff5fae) !important;
  color: #fff !important;
  font-weight: 900 !important;
  text-shadow: 0 0.02rem 0 rgba(166, 35, 105, 0.3);
  box-shadow:
    0 0.08rem 0 #d93c8a,
    0 0.14rem 0.24rem rgba(255, 95, 174, 0.28),
    inset 0 0.03rem 0 rgba(255, 255, 255, 0.6) !important;
}

.btn.press {
  transform: translateY(0.06rem);
  box-shadow: 0 0.02rem 0 #d93c8a !important;
}

.btn.small {
  box-shadow:
    0 0.06rem 0 #d93c8a,
    0 0.1rem 0.18rem rgba(255, 95, 174, 0.24),
    inset 0 0.02rem 0 rgba(255, 255, 255, 0.6) !important;
}

.btn.mint,
.btn.sky {
  background: linear-gradient(180deg, #8ff5e0, #3fe0be) !important;
  color: #065c4b !important;
  text-shadow: none;
  box-shadow: 0 0.07rem 0 #159a80 !important;
}

.btn.disabled {
  background: linear-gradient(180deg, #e7e1f2, #d5cce8) !important;
  color: #9c8dbb !important;
  box-shadow: none !important;
}

.h1,
.h2,
.section-title,
.task-title,
.pet-name,
.card-title {
  color: var(--ink);
  font-weight: 900;
}

.h2,
.section-head .h2 {
  color: #5a3fb8 !important;
  -webkit-text-fill-color: #5a3fb8;
  background-image: none !important;
}


.hero {
  border: 0 !important;
  border-radius: 0.34rem !important;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 62%),
    linear-gradient(165deg, #baf3ff 0%, #dcd3ff 45%, #ffe0f2 100%) !important;
  box-shadow: 0 0.2rem 0.4rem rgba(86, 56, 160, 0.2), inset 0 0.03rem 0 #fff !important;
}

.hero-bubble {
  border: 0 !important;
  border-radius: 0.22rem !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #5a3fb8 !important;
  box-shadow: 0 0.08rem 0.16rem rgba(86, 56, 160, 0.14) !important;
}

.hero-scene {
  border: 0 !important;
  border-radius: 0.28rem !important;
  box-shadow: inset 0 -0.44rem 0.6rem rgba(63, 224, 190, 0.3), inset 0 0.3rem 0.5rem rgba(94, 200, 255, 0.24) !important;
}

.scene-sun {
  background: radial-gradient(circle at 35% 30%, #fffbe0, #ffd166 55%, #ff9b5e 100%) !important;
  box-shadow: 0 0 0.4rem rgba(255, 200, 80, 0.6);
}

.scene-hill.hill-a,
.scene-hill.hill-b,
.scene-hill.p-hill-a,
.scene-hill.p-hill-b {
  background: linear-gradient(180deg, #8cf5d8, #3fd6ae) !important;
}

.hero-bar,
.goal-bar,
.mood-bar,
.attr-bar,
.bar,
.task-progress {
  border: 0 !important;
  background: rgba(72, 46, 130, 0.13) !important;
  box-shadow: inset 0 0.03rem 0.08rem rgba(42, 27, 74, 0.14) !important;
}

.bar-fill,
.goal-fill,
.mood-fill,
.attr-fill,
.task-progress-fill {
  background-image: linear-gradient(90deg, #5ee7ff, #8a6bff 55%, #ff6fb5) !important;
  box-shadow: 0 0 0.14rem rgba(138, 107, 255, 0.4);
}

.hero-attr,
.attr-chip {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: #6a4fe0 !important;
  font-weight: 800 !important;
  box-shadow: inset 0 0.02rem 0 #fff, 0 0.04rem 0.1rem rgba(138, 107, 255, 0.14);
}

.quick,
.week,
.goals,
.chest-card,
.task,
.reminder {
  border: 0 !important;
  border-radius: 0.28rem !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)) !important;
  box-shadow:
    0 0.12rem 0.26rem rgba(86, 56, 160, 0.14),
    inset 0 0.03rem 0 #fff !important;
}

.chest-card {
  background: linear-gradient(135deg, #fff1a8, #ffd166 55%, #ffb347) !important;
}

.quick-num {
  color: #6a4fe0 !important;
  -webkit-text-fill-color: #6a4fe0;
  background-image: none !important;
  font-weight: 900;
}

.task {
  overflow: hidden;
}

.task::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0.16rem;
  bottom: 0.16rem;
  width: 0.08rem;
  border-radius: 9.99rem;
  background: linear-gradient(180deg, #5ec8ff, #8a6bff);
}

.task-emoji {
  border: 0 !important;
  box-shadow: 0 0.06rem 0.14rem rgba(86, 56, 160, 0.16), inset 0 0.03rem 0 #fff !important;
}

.task-star {
  border-radius: 9.99rem;
  background: #fff4c2;
  padding: 0.02rem 0.12rem;
  color: #8a5b00;
  font-weight: 900;
}

.task-cat {
  border-radius: 9.99rem;
  background: rgba(138, 107, 255, 0.1);
  padding: 0.02rem 0.12rem;
  color: #6a4fe0;
  font-weight: 800;
}

.task-check {
  border: 0.04rem solid rgba(138, 107, 255, 0.2) !important;
  background: radial-gradient(circle at 35% 30%, #fff, #efe8ff 60%, #dcd0ff) !important;
  box-shadow: inset 0 -0.05rem 0.08rem rgba(138, 107, 255, 0.16), 0 0.05rem 0.1rem rgba(138, 107, 255, 0.16) !important;
}

.task-check.checked {
  border-color: rgba(63, 224, 190, 0.45) !important;
  background: radial-gradient(circle at 35% 30%, #d8fff5, #3fe0be 60%, #14b394) !important;
  box-shadow: 0 0 0.2rem rgba(63, 224, 190, 0.5), inset 0 0.04rem 0 rgba(255, 255, 255, 0.7) !important;
}

.day-dot,
.week-dot {
  border: 0 !important;
  background: rgba(138, 107, 255, 0.12) !important;
}

.week-day.today .week-dot {
  box-shadow: 0 0 0.18rem rgba(255, 111, 181, 0.5);
}


.pet-stage-card,
.care-card,
.attrs-card,
.story-card {
  border: 0 !important;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 64%),
    linear-gradient(165deg, #c9f3ff, #e2d6ff 50%, #ffe3f4) !important;
  box-shadow: 0 0.2rem 0.4rem rgba(86, 56, 160, 0.18), inset 0 0.03rem 0 #fff !important;
}

.attrs-card,
.story-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)) !important;
}

.care-btn {
  border: 0 !important;
  border-radius: 0.24rem !important;
  background: linear-gradient(180deg, #fff, #f2ebff) !important;
  box-shadow:
    0 0.1rem 0 rgba(138, 107, 255, 0.18),
    0 0.16rem 0.28rem rgba(86, 56, 160, 0.14),
    inset 0 0.03rem 0 #fff !important;
}

.care-btn.disabled {
  opacity: 0.5;
  box-shadow: none !important;
}

.wardrobe-item {
  border: 0 !important;
  border-radius: 0.26rem !important;
  background: linear-gradient(180deg, #fff, #f5efff) !important;
  box-shadow: 0 0.1rem 0.22rem rgba(86, 56, 160, 0.15), inset 0 0.03rem 0 #fff !important;
}

.wardrobe-item.equipped {
  background: linear-gradient(180deg, #fffbe0, #ffe6a6) !important;
  box-shadow: 0 0.1rem 0 #e0a51e, 0 0.18rem 0.3rem rgba(255, 180, 60, 0.3) !important;
}

.wardrobe-btn {
  border: 0 !important;
  background: linear-gradient(180deg, #a8f7e6, #3fe0be) !important;
  color: #065c4b !important;
  font-weight: 900 !important;
  box-shadow: 0 0.04rem 0 #159a80 !important;
}

.wardrobe-btn.ghost {
  background: rgba(255, 255, 255, 0.72) !important;
  color: #8a79a8 !important;
  box-shadow: none !important;
}

.stage {
  border: 0 !important;
  border-radius: 0.24rem !important;
  background: linear-gradient(180deg, #fff, #f4efff) !important;
  box-shadow: 0 0.1rem 0.2rem rgba(86, 56, 160, 0.12) !important;
}

.stage.current {
  background: linear-gradient(180deg, #fffbe0, #ffe6a6) !important;
  box-shadow: 0 0.1rem 0 #e0a51e, 0 0.18rem 0.3rem rgba(255, 180, 60, 0.3) !important;
}

.mood-num {
  border: 0 !important;
  background: linear-gradient(180deg, #fff5e6, #ffe0b5) !important;
  color: #7a4a00 !important;
  font-weight: 900 !important;
}


.balance,
.badge-cell,
.reward,
.record,
.wish-box,
.lock,
.overview,
.panel {
  border: 0 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)) !important;
  box-shadow: 0 0.12rem 0.28rem rgba(86, 56, 160, 0.14), inset 0 0.03rem 0 #fff !important;
}

.balance {
  background:
    radial-gradient(90% 100% at 100% 0%, rgba(255, 209, 102, 0.4), rgba(255, 209, 102, 0) 60%),
    linear-gradient(160deg, #d8f7ff, #e6d9ff 55%, #ffe0f2) !important;
}

.badge-cell.earned {
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(255, 233, 160, 0.6), rgba(255, 233, 160, 0) 70%),
    linear-gradient(180deg, #fffdf2, #ffefc2) !important;
}

.key {
  border: 0 !important;
  background: linear-gradient(180deg, #fff, #efe8ff) !important;
  box-shadow: 0 0.06rem 0 rgba(138, 107, 255, 0.22), inset 0 0.03rem 0 #fff !important;
  font-weight: 900;
}

.field-input {
  border: 0 !important;
  background: #f4efff !important;
  box-shadow: inset 0 0.03rem 0.08rem rgba(86, 56, 160, 0.12) !important;
  font-weight: 700;
}

.wish-type.active {
  border: 0 !important;
  background: linear-gradient(180deg, #ff9bd0, #ff5fae) !important;
  color: #fff !important;
}

.panel-tip,
.muted,
.task-meta,
.week-sub {
  color: var(--ink-soft) !important;
}


[data-view="home"] .home {
  padding-top: 0;
}[data-view="home"] .topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.26rem 0.04rem 0.3rem;
}[data-view="home"] .hello {
  min-width: 0;
}[data-view="home"] .hello-date {
  font-size: 0.24rem;
  font-weight: 700;
  letter-spacing: 0.01rem;
  color: var(--ink-soft);
}[data-view="home"] .hello-title {
  margin-top: 0.06rem;
  font-family: "Yuanti SC", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.44rem;
  font-weight: 800;
  letter-spacing: 0.01rem;
  color: var(--ink);
}[data-view="home"] .hello-emoji {
  margin-left: 0.08rem;
  font-size: 0.36rem;
}[data-view="home"] .streak-chip {
  display: flex;
  align-items: center;
  padding: 0.1rem 0.18rem;
  background: #fffdf8;
  border: 0.04rem solid var(--ink);
  border-radius: 9.99rem;
  box-shadow: 0.05rem 0.06rem 0 rgba(43, 36, 56, 0.12);
  transform: rotate(2.5deg);
}[data-view="home"] .streak-fire {
  font-size: 0.3rem;
}[data-view="home"] .streak-num {
  margin-left: 0.06rem;
  font-size: 0.34rem;
  font-weight: 800;
  color: var(--coral);
}[data-view="home"] .streak-text {
  margin-left: 0.04rem;
  font-size: 0.2rem;
  font-weight: 700;
  color: var(--ink-soft);
}[data-view="home"] .hero {
  padding: 0.3rem 0.26rem 0.26rem;
  transform: rotate(-0.4deg);
  animation: popIn 0.5s ease-out both;
}[data-view="home"] .hero-tape {
  top: -0.18rem;
  left: 50%;
  margin-left: -0.74rem;
  transform: rotate(-2deg);
  z-index: 5;
}[data-view="home"] .hero-bubble {
  position: relative;
  margin: 0.02rem 0.04rem 0.22rem;
  padding: 0.16rem 0.22rem;
  min-height: 0.74rem;
  display: flex;
  align-items: center;
  background: #fff7dd;
  border: 0.03rem solid var(--ink);
  border-radius: 0.22rem;
  font-size: 0.26rem;
  font-weight: 700;
  color: #6b5327;
}[data-view="home"] .hero-bubble::after {
  content: "";
  position: absolute;
  left: 0.46rem;
  bottom: -0.16rem;
  width: 0;
  height: 0;
  border-left: 0.12rem solid transparent;
  border-right: 0.12rem solid transparent;
  border-top: 0.16rem solid var(--ink);
}[data-view="home"] .hero-scene {
  position: relative;
  height: 3.16rem;
  border: 0.04rem solid var(--ink);
  border-radius: 0.3rem;
  overflow: hidden;
  background-image: linear-gradient(180deg, #d8f1ff 0%, #e9f9f1 56%, #b8ebcf 57%, #a6e4c5 100%);
}[data-view="home"] .scene-press {
  opacity: 0.92;
}[data-view="home"] .scene-sun {
  position: absolute;
  top: 0.24rem;
  right: 0.38rem;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  background: var(--sun);
  border: 0.04rem solid var(--ink);
}[data-view="home"] .scene-cloud {
  position: absolute;
  background: #fff;
  border: 0.03rem solid rgba(43, 36, 56, 0.28);
  border-radius: 9.99rem;
}[data-view="home"] .cloud-a {
  width: 1.22rem;
  height: 0.46rem;
  top: 0.44rem;
  left: 0.42rem;
}[data-view="home"] .cloud-b {
  width: 0.84rem;
  height: 0.38rem;
  top: 1.04rem;
  left: 1.72rem;
  opacity: 0.85;
}[data-view="home"] .scene-hill {
  position: absolute;
  bottom: -0.76rem;
  border: 0.04rem solid var(--ink);
  border-radius: 50%;
}[data-view="home"] .hill-a {
  left: -0.74rem;
  width: 4rem;
  height: 2.3rem;
  background: #8fe0bd;
}[data-view="home"] .scene-ground {
  position: absolute;
  left: -0.06rem;
  right: -0.06rem;
  bottom: -0.06rem;
  height: 0.84rem;
  background: #5fc99f;
  border-top: 0.04rem solid var(--ink);
  border-radius: 0.7rem 0.7rem 0 0;
  z-index: 2;
}[data-view="home"] .hill-b {
  right: -0.86rem;
  width: 3.8rem;
  height: 2rem;
  background: #6fd3ab;
}[data-view="home"] .scene-hint {
  position: absolute;
  left: 0.22rem;
  bottom: 0.14rem;
  z-index: 4;
  font-size: 0.2rem;
  font-weight: 800;
  color: rgba(43, 36, 56, 0.5);
  letter-spacing: 0.01rem;
}[data-view="home"] .pet-wrap {
  position: absolute;
  left: 50%;
  bottom: 0.26rem;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}[data-view="home"] .pet-crown {
  position: absolute;
  top: -0.34rem;
  z-index: 4;
  font-size: 0.4rem;
  transform: rotate(-10deg);
}[data-view="home"] .pet-emoji {
  font-size: 1.4rem;
  line-height: 1;
  animation: bob 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0.12rem 0 rgba(43, 36, 56, 0.12));
}[data-view="home"] .pet-shadow {
  width: 1.5rem;
  height: 0.22rem;
  margin-top: -0.02rem;
  border-radius: 50%;
  background: rgba(43, 36, 56, 0.16);
}[data-view="home"] .pet-bounce {
  animation: petJump 0.36s ease-in-out 2;
}[data-view="home"] .pet-aura {
  animation: bob 2.2s ease-in-out infinite, glowPulse 2.6s ease-out infinite;
  border-radius: 50%;
}@keyframes petJump {0%, 100% {
    transform: translateY(0) scale(1);
  }40% {
    transform: translateY(-0.3rem) scale(1.08);
  }70% {
    transform: translateY(0) scale(0.96);
  }
}[data-view="home"] .hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.26rem 0.04rem 0.14rem;
}[data-view="home"] .hero-stage {
  font-size: 0.32rem;
  font-weight: 800;
}[data-view="home"] .hero-growth {
  font-size: 0.26rem;
  font-weight: 800;
  color: var(--ink-soft);
}[data-view="home"] .hero-bar {
  height: 0.3rem;
  margin: 0 0.04rem;
}[data-view="home"] .hero-next {
  margin: 0.14rem 0.04rem 0;
  font-size: 0.25rem;
  color: var(--ink-soft);
}[data-view="home"] .quick-row {
  display: flex;
  margin: 0.3rem -0.09rem 0;
}[data-view="home"] .quick {
  flex: 1;
  min-width: 0;
  margin: 0 0.09rem;
  padding: 0.18rem 0.08rem 0.16rem;
  text-align: center;
  border-radius: 0.28rem;
  box-shadow: 0.06rem 0.07rem 0 rgba(43, 36, 56, 0.1);
}[data-view="home"] .quick:nth-child(1) {
  transform: rotate(-1.4deg);
}[data-view="home"] .quick:nth-child(2) {
  transform: rotate(0.8deg);
}[data-view="home"] .quick:nth-child(3) {
  transform: rotate(-0.6deg);
}[data-view="home"] .quick-num {
  font-size: 0.36rem;
  font-weight: 800;
  line-height: 1.2;
}[data-view="home"] .quick-label {
  margin-top: 0.04rem;
  font-size: 0.22rem;
  font-weight: 700;
  color: var(--ink-soft);
}[data-view="home"] .week {
  margin-top: 0.3rem;
  padding: 0.22rem 0.24rem 0.24rem;
}[data-view="home"] .week-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.18rem;
}[data-view="home"] .week-title {
  font-family: "Yuanti SC", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.3rem;
  font-weight: 800;
}[data-view="home"] .week-sub {
  font-size: 0.22rem;
  color: var(--ink-soft);
}[data-view="home"] .week-row {
  display: flex;
  justify-content: space-between;
}[data-view="home"] .week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 0.76rem;
}[data-view="home"] .week-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.54rem;
  height: 0.54rem;
  border: 0.03rem dashed #c8bda9;
  border-radius: 50%;
  font-size: 0.26rem;
  background: #fff;
}[data-view="home"] .week-day.done .week-dot {
  border: 0.03rem solid var(--ink);
  background: #d9f7ec;
}[data-view="home"] .week-day.perfect .week-dot {
  border: 0.03rem solid var(--ink);
  background: #fff0bf;
}[data-view="home"] .week-day.today .week-dot {
  border: 0.04rem solid var(--coral);
  box-shadow: 0 0 0 0.05rem rgba(255, 111, 97, 0.16);
}[data-view="home"] .week-label {
  margin-top: 0.08rem;
  font-size: 0.22rem;
  font-weight: 700;
  color: var(--ink-soft);
}[data-view="home"] .week-day.today .week-label {
  color: var(--ink);
}[data-view="home"] .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.44rem 0.04rem 0.24rem;
}[data-view="home"] .task-count {
  padding: 0.04rem 0.2rem;
  background: #fffdf8;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  font-size: 0.24rem;
  font-weight: 800;
  box-shadow: 0.03rem 0.04rem 0 rgba(43, 36, 56, 0.12);
}[data-view="home"] .task-list {
  display: block;
}[data-view="home"] .task {
  display: flex;
  align-items: center;
  padding: 0.24rem 0.22rem;
  margin-bottom: 0.22rem;
  animation: popIn 0.5s ease-out both;
  transition: transform 0.12s ease, background 0.2s ease;
}[data-view="home"] .task-press {
  transform: translate(0.03rem, 0.05rem) scale(0.994);
  box-shadow: 0.04rem 0.05rem 0 rgba(43, 36, 56, 0.12);
}[data-view="home"] .task-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.94rem;
  height: 0.94rem;
  flex-shrink: 0;
  border: 0.03rem solid var(--ink);
  border-radius: 0.26rem;
  font-size: 0.48rem;
  transform: rotate(-4deg);
  box-shadow: 0.03rem 0.04rem 0 rgba(43, 36, 56, 0.16);
}[data-view="home"] .task-body {
  flex: 1;
  min-width: 0;
  margin: 0 0.2rem;
}[data-view="home"] .task-title {
  font-size: 0.32rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.005rem;
}[data-view="home"] .task-meta {
  display: flex;
  align-items: center;
  margin-top: 0.08rem;
}[data-view="home"] .task-star {
  font-size: 0.24rem;
  font-weight: 800;
  color: #c9861a;
}[data-view="home"] .task-cat {
  margin-left: 0.14rem;
  padding: 0.02rem 0.12rem;
  border-radius: 9.99rem;
  background: #f2ecdf;
  font-size: 0.21rem;
  font-weight: 700;
  color: var(--ink-soft);
}[data-view="home"] .task-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.82rem;
  height: 0.82rem;
  flex-shrink: 0;
  border: 0.04rem solid var(--ink);
  border-radius: 50%;
  background: #fff;
  color: #fff;
  font-size: 0.42rem;
  font-weight: 800;
  transition: background 0.18s ease, transform 0.18s ease;
}[data-view="home"] .task-check.checked {
  background: var(--mint);
  transform: rotate(6deg) scale(1.02);
}[data-view="home"] .task.is-done {
  background: #f5fbf7;
}[data-view="home"] .task.is-done .task-emoji {
  filter: grayscale(0.4);
  opacity: 0.72;
}[data-view="home"] .task.is-done .task-title {
  color: var(--ink-soft);
}[data-view="home"] .task-stamp {
  position: absolute;
  right: 0.16rem;
  top: -0.14rem;
  padding: 0.02rem 0.12rem;
  background: #fffdf8;
  border: 0.04rem solid var(--coral);
  border-radius: 0.1rem;
  color: var(--coral);
  font-size: 0.22rem;
  font-weight: 800;
  letter-spacing: 0.02rem;
  transform: rotate(-9deg);
  animation: stampIn 0.42s ease both;
}[data-view="home"] .empty {
  padding: 0.54rem 0.3rem;
  text-align: center;
}[data-view="home"] .empty-emoji {
  font-size: 0.76rem;
}[data-view="home"] .empty-title {
  margin-top: 0.12rem;
  font-size: 0.3rem;
  font-weight: 800;
}[data-view="home"] .empty-sub {
  margin-top: 0.06rem;
  font-size: 0.23rem;
  color: var(--ink-soft);
}[data-view="home"] .alldone {
  display: flex;
  align-items: center;
  margin-top: 0.1rem;
  padding: 0.26rem 0.24rem;
  background: #fff0c2;
  transform: rotate(0.6deg);
  animation: popIn 0.5s ease both;
}[data-view="home"] .alldone-emoji {
  font-size: 0.78rem;
  line-height: 1;
  animation: bob 2s ease-in-out infinite;
}[data-view="home"] .alldone-body {
  margin-left: 0.2rem;
  flex: 1;
}[data-view="home"] .alldone-title {
  font-size: 0.34rem;
  font-weight: 800;
}[data-view="home"] .alldone-sub {
  margin-top: 0.04rem;
  font-size: 0.23rem;
  color: #8a6a1c;
}[data-view="home"] .foot-tip {
  margin: 0.42rem 0 0.06rem;
  text-align: center;
  font-size: 0.21rem;
  font-weight: 700;
  letter-spacing: 0.02rem;
  color: var(--ink-faint);
}.float-star {
  position: fixed;
  left: 50%;
  top: 40%;
  z-index: 110;
  font-size: 0.52rem;
  font-weight: 800;
  color: var(--coral);
  text-shadow: 0.03rem 0.03rem 0 #fffdf8;
  pointer-events: none;
  animation: floatStar 1.25s ease-out both;
}.confetti-layer {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 105;
  overflow: hidden;
  pointer-events: none;
}.confetti-piece {
  position: absolute;
  top: 0;
  animation-name: fallA;
  animation-timing-function: linear;
  animation-fill-mode: both;
}.confetti-piece:nth-child(2n) {
  animation-name: fallB;
}.badge-overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem;
  background: rgba(43, 36, 56, 0.62);
}.badge-board {
  width: 100%;
  padding: 0.38rem 0.34rem 0.34rem;
  background: #fffdf8;
  border: 0.04rem solid var(--ink);
  border-radius: 0.44rem;
  box-shadow: 0.14rem 0.16rem 0 rgba(0, 0, 0, 0.28);
  animation: boardIn 0.42s cubic-bezier(0.2, 1.1, 0.3, 1) both;
  text-align: center;
}.badge-board-kicker {
  display: inline-block;
  padding: 0.08rem 0.24rem;
  background: var(--sun);
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  font-size: 0.24rem;
  font-weight: 800;
  letter-spacing: 0.02rem;
}.badge-board-list {
  margin-top: 0.26rem;
}.badge-board-item {
  display: flex;
  align-items: center;
  padding: 0.2rem 0;
  border-bottom: 0.02rem dashed #e4d9c6;
}.badge-board-item:last-child {
  border-bottom: none;
}.badge-board-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.04rem;
  height: 1.04rem;
  flex-shrink: 0;
  border: 0.03rem solid var(--ink);
  border-radius: 0.28rem;
  font-size: 0.54rem;
  transform: rotate(-4deg);
}.badge-board-text {
  flex: 1;
  margin-left: 0.22rem;
  text-align: left;
}.badge-board-title {
  font-size: 0.32rem;
  font-weight: 800;
}.badge-board-desc {
  margin-top: 0.04rem;
  font-size: 0.23rem;
  color: var(--ink-soft);
}.badge-board-btn {
  width: 100%;
  margin-top: 0.3rem;
}[data-view="home"] .vacation-chip {
  display: inline-block;
  margin-left: 0.12rem;
  padding: 0.02rem 0.12rem;
  background: var(--mint);
  border: 0.02rem solid var(--ink);
  border-radius: 9.99rem;
  font-size: 0.18rem;
  font-weight: 800;
  color: var(--ink);
  transform: rotate(-2deg);
}[data-view="home"] .reminder {
  margin-bottom: 0.24rem;
  padding: 0.16rem 0.22rem;
  background: #fff2c9;
  border: 0.03rem solid var(--ink);
  border-radius: 0.22rem;
  box-shadow: 0.04rem 0.05rem 0 rgba(43, 36, 56, 0.12);
  font-size: 0.23rem;
  font-weight: 700;
  color: #7a5b12;
}[data-view="home"] .goals {
  margin-top: 0.3rem;
  padding: 0.24rem 0.26rem;
}[data-view="home"] .goal-row + .goal-row {
  margin-top: 0.2rem;
}[data-view="home"] .goal-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.23rem;
  font-weight: 800;
  color: var(--ink);
}[data-view="home"] .goal-bar {
  height: 0.16rem;
  margin-top: 0.1rem;
  background: #efe4d3;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  overflow: hidden;
}[data-view="home"] .goal-fill {
  height: 100%;
  border-radius: 9.99rem;
  background-image: linear-gradient(90deg, #ffd84d, #ff8f5e);
  transition: width 0.5s ease;
}[data-view="home"] .goal-fill.weekly {
  background-image: linear-gradient(90deg, #7be0c3, #3ecfaf);
}[data-view="home"] .chest-card {
  display: flex;
  align-items: center;
  margin-top: 0.24rem;
  padding: 0.22rem 0.24rem;
  background: #fff0c2;
}[data-view="home"] .chest-card.opened {
  background: #f3ecdf;
  opacity: 0.9;
}[data-view="home"] .chest-emoji {
  font-size: 0.66rem;
  line-height: 1;
  animation: bob 2s ease-in-out infinite;
}[data-view="home"] .chest-body {
  flex: 1;
  min-width: 0;
  margin-left: 0.18rem;
}[data-view="home"] .chest-title {
  font-size: 0.28rem;
  font-weight: 800;
}[data-view="home"] .chest-sub {
  margin-top: 0.03rem;
  font-size: 0.21rem;
  color: #8a6a1c;
}[data-view="home"] .chest-spark {
  font-size: 0.34rem;
  animation: twinkle 2s ease-in-out infinite;
}[data-view="home"] .task-x2 {
  margin-left: 0.12rem;
  padding: 0.02rem 0.1rem;
  border-radius: 9.99rem;
  background: var(--coral);
  color: #fff;
  font-size: 0.18rem;
  font-weight: 800;
}[data-view="home"] .hero-chips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.14rem;
}[data-view="home"] .level-chip {
  padding: 0.06rem 0.2rem;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  background: var(--ink);
  color: #fffdf8;
  font-size: 0.22rem;
  font-weight: 800;
}[data-view="home"] .mood-chip {
  padding: 0.05rem 0.16rem;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  background: #fff7dd;
  font-size: 0.2rem;
  font-weight: 700;
}[data-view="home"] .home-care {
  position: absolute;
  right: 0.18rem;
  bottom: 0.18rem;
  z-index: 6;
  padding: 0.12rem 0.22rem;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  background: var(--sun);
  box-shadow: 0 0.05rem 0 var(--ink);
  font-size: 0.22rem;
  font-weight: 800;
}[data-view="home"] .hero-attrs {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.14rem;
}[data-view="home"] .hero-attr {
  margin: 0 0.12rem 0.08rem 0;
  padding: 0.06rem 0.14rem;
  border: 0.02rem dashed #d8ccb7;
  border-radius: 9.99rem;
  background: #fffaf0;
  font-size: 0.19rem;
  font-weight: 700;
  color: var(--ink-soft);
}[data-view="home"] .pet-art {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  animation: bob 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0.1rem 0 rgba(43, 36, 56, 0.12));
}[data-view="home"] .pet-wrap {
  z-index: 7;
}[data-view="home"] .pet-wrap {
  z-index: 3;
}[data-view="home"] .game-hud {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.18rem 0.04rem 0.22rem;
}[data-view="home"] .hud-avatar {
  position: relative;
  flex-shrink: 0;
  width: 0.92rem;
  height: 0.92rem;
  padding: 0.06rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd166, #ff6fb5 55%, #8a6bff);
  box-shadow: 0 0.12rem 0.24rem rgba(86, 56, 160, 0.24);
}[data-view="home"] .hud-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e8f8ff;
}[data-view="home"] .hud-level {
  position: absolute;
  right: -0.06rem;
  bottom: -0.04rem;
  min-width: 0.34rem;
  height: 0.3rem;
  padding: 0 0.08rem;
  border: 0.04rem solid #fff;
  border-radius: 9.99rem;
  background: linear-gradient(180deg, #ff9bd0, #8a6bff);
  color: #fff;
  font-size: 0.16rem;
  font-weight: 900;
  line-height: 0.22rem;
  text-align: center;
}[data-view="home"] .hud-info {
  flex: 1;
  min-width: 0;
}[data-view="home"] .hud-hello {
  font-size: 0.36rem;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}[data-view="home"] .hud-date {
  display: flex;
  align-items: center;
  gap: 0.08rem;
  margin-top: 0.04rem;
  font-size: 0.19rem;
  font-weight: 800;
  color: #6a4fe0;
}[data-view="home"] .hud-streak {
  padding: 0.02rem 0.1rem;
  border-radius: 9.99rem;
  background: #fff0c2;
  color: #8a5b00;
}[data-view="home"] .hud-pills {
  flex-shrink: 0;
}[data-view="home"] .hud-pill {
  padding: 0.08rem 0.18rem;
  border-radius: 9.99rem;
  background: linear-gradient(180deg, #fffdf2, #ffe6a6);
  box-shadow: 0 0.08rem 0.16rem rgba(86, 56, 160, 0.16), inset 0 0.02rem 0 #fff;
  font-size: 0.22rem;
  font-weight: 900;
}


[data-view="pet"] .page-head {
  padding: 0.26rem 0.04rem 0.3rem;
}[data-view="pet"] .page-head .muted {
  margin-top: 0.08rem;
}[data-view="pet"] .scene {
  height: 4.8rem;
  overflow: hidden;
  border-radius: 0.4rem;
  background-image: linear-gradient(180deg, #cdeeff 0%, #e4f7ff 42%, #b9e9d4 43%, #a7e2c8 100%);
}[data-view="pet"] .scene-sun {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 0.84rem;
  height: 0.84rem;
  border-radius: 50%;
  background: #ffd84d;
  border: 0.04rem solid var(--ink);
}[data-view="pet"] .scene-cloud {
  position: absolute;
  background: #fff;
  border: 0.03rem solid rgba(43, 36, 56, 0.28);
  border-radius: 9.99rem;
}[data-view="pet"] .p-cloud-a {
  width: 1.16rem;
  height: 0.42rem;
  top: 1.36rem;
  left: 0.3rem;
}[data-view="pet"] .p-cloud-b {
  width: 0.82rem;
  height: 0.34rem;
  top: 1.56rem;
  right: 1.26rem;
  opacity: 0.85;
}[data-view="pet"] .scene-spark {
  position: absolute;
  color: #fff;
  font-size: 0.26rem;
  opacity: 0.9;
  animation: twinkle 2.4s ease-in-out infinite;
}[data-view="pet"] .spark-a {
  top: 1.16rem;
  right: 1.96rem;
}[data-view="pet"] .spark-b {
  top: 1.96rem;
  right: 0.54rem;
  font-size: 0.18rem;
  animation-delay: 1.1s;
}@keyframes twinkle {0%, 100% { opacity: 0.25; transform: scale(0.8); }50% { opacity: 1; transform: scale(1.1); }
}[data-view="pet"] .scene-hill {
  position: absolute;
  bottom: -0.9rem;
  border: 0.04rem solid var(--ink);
  border-radius: 50%;
}[data-view="pet"] .p-hill-a {
  left: -0.9rem;
  width: 4.3rem;
  height: 2.5rem;
  background: #8fe0bd;
}[data-view="pet"] .p-hill-b {
  right: -1rem;
  width: 4.2rem;
  height: 2.2rem;
  background: #6fd3ab;
}[data-view="pet"] .scene-bubble {
  position: absolute;
  top: 0.26rem;
  left: 0.26rem;
  max-width: 4.3rem;
  padding: 0.14rem 0.2rem;
  background: #fffdf8;
  border: 0.03rem solid var(--ink);
  border-radius: 0.22rem;
  font-size: 0.23rem;
  font-weight: 700;
  color: #5e502f;
  transform: rotate(-1.6deg);
  z-index: 4;
  box-shadow: 0.04rem 0.05rem 0 rgba(43, 36, 56, 0.14);
}[data-view="pet"] .scene-ground {
  position: absolute;
  left: -0.06rem;
  right: -0.06rem;
  bottom: -0.06rem;
  height: 0.96rem;
  background: #5fc99f;
  border-top: 0.04rem solid var(--ink);
  border-radius: 0.8rem 0.8rem 0 0;
  z-index: 2;
}[data-view="pet"] .pet-center {
  position: absolute;
  left: 50%;
  bottom: 0.44rem;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}[data-view="pet"] .pet-crown {
  position: absolute;
  top: -0.4rem;
  z-index: 4;
  font-size: 0.44rem;
  transform: rotate(-9deg);
  animation: bob 2.8s ease-in-out infinite;
}[data-view="pet"] .pet-big {
  font-size: 2.06rem;
  line-height: 1;
  animation: bob 3s ease-in-out infinite;
  filter: drop-shadow(0 0.16rem 0 rgba(43, 36, 56, 0.13));
}[data-view="pet"] .bounce {
  animation: petHop 0.4s ease-in-out 2;
}[data-view="pet"] .aura {
  animation: bob 2.4s ease-in-out infinite, glowPulse 2.6s ease-out infinite;
  border-radius: 50%;
}@keyframes petHop {0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }35% {
    transform: translateY(-0.36rem) scale(1.07) rotate(-4deg);
  }70% {
    transform: translateY(0) scale(0.95) rotate(4deg);
  }
}[data-view="pet"] .pet-shadow {
  width: 1.7rem;
  height: 0.26rem;
  margin-top: 0.02rem;
  border-radius: 50%;
  background: rgba(43, 36, 56, 0.16);
}[data-view="pet"] .pet-press {
  opacity: 0.93;
}[data-view="pet"] .heart {
  position: absolute;
  bottom: 2.68rem;
  z-index: 4;
  font-size: 0.34rem;
  pointer-events: none;
  animation: heartUp 1.25s ease-out both;
}@keyframes heartUp {0% {
    opacity: 0;
    transform: translateY(0.2rem) scale(0.6);
  }25% {
    opacity: 1;
  }100% {
    opacity: 0;
    transform: translateY(-1.3rem) scale(1.15);
  }
}[data-view="pet"] .growth {
  margin-top: 0.3rem;
  padding: 0.26rem 0.26rem 0.24rem;
}[data-view="pet"] .growth-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.16rem;
}[data-view="pet"] .growth-name {
  font-size: 0.36rem;
  font-weight: 800;
}[data-view="pet"] .growth-stars {
  font-size: 0.26rem;
  font-weight: 800;
  color: var(--ink-soft);
}[data-view="pet"] .growth-bar {
  height: 0.3rem;
}[data-view="pet"] .growth-hint {
  margin-top: 0.14rem;
  font-size: 0.23rem;
  color: var(--ink-soft);
}[data-view="pet"] .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0.42rem 0.04rem 0.18rem;
}[data-view="pet"] .stage-scroll {
  width: 100%;
  white-space: nowrap;
}[data-view="pet"] .stage-track {
  display: inline-flex;
  padding: 0.12rem 0.04rem 0.18rem;
}[data-view="pet"] .stage {
  position: relative;
  width: 1.9rem;
  margin-right: 0.18rem;
  padding: 0.22rem 0.1rem 0.18rem;
  text-align: center;
  background: #fffdf8;
  border: 0.03rem solid var(--ink);
  border-radius: 0.28rem;
  box-shadow: 0.04rem 0.05rem 0 rgba(43, 36, 56, 0.1);
}[data-view="pet"] .stage.locked {
  border-style: dashed;
  opacity: 0.58;
}[data-view="pet"] .stage.locked .stage-emoji {
  filter: grayscale(1);
}[data-view="pet"] .stage.current {
  background: #fff0c2;
  transform: rotate(-2deg) translateY(-0.04rem);
  box-shadow: 0.07rem 0.08rem 0 rgba(43, 36, 56, 0.16);
}[data-view="pet"] .stage-emoji {
  font-size: 0.62rem;
  line-height: 1.15;
}[data-view="pet"] .stage-name {
  margin-top: 0.06rem;
  font-size: 0.26rem;
  font-weight: 800;
}[data-view="pet"] .stage-at {
  margin-top: 0.02rem;
  font-size: 0.21rem;
  color: var(--ink-soft);
}[data-view="pet"] .stage-tag {
  position: absolute;
  top: -0.16rem;
  right: -0.08rem;
  padding: 0.02rem 0.12rem;
  background: var(--coral);
  color: #fff;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  font-size: 0.18rem;
  font-weight: 800;
  transform: rotate(4deg);
}[data-view="pet"] .stage-tag.dim {
  background: var(--mint);
  color: var(--ink);
}[data-view="pet"] .archive-title {
  margin: 0.4rem 0.04rem 0.18rem;
}[data-view="pet"] .archive {
  display: flex;
  align-items: center;
  padding: 0.3rem 0.1rem;
}[data-view="pet"] .archive-item {
  flex: 1;
  text-align: center;
}[data-view="pet"] .archive-num {
  font-size: 0.44rem;
  font-weight: 800;
  line-height: 1.2;
}[data-view="pet"] .archive-label {
  margin-top: 0.04rem;
  font-size: 0.22rem;
  color: var(--ink-soft);
}[data-view="pet"] .archive-divider {
  width: 0.02rem;
  height: 0.56rem;
  border-left: 0.02rem dashed #ddd1bd;
}[data-view="pet"] .pet-tip {
  margin: 0.34rem 0.08rem 0.08rem;
  text-align: center;
  font-size: 0.22rem;
  line-height: 1.7;
  color: var(--ink-soft);
}[data-view="pet"] .pet-accessory {
  position: absolute;
  top: 16%;
  right: 4%;
  z-index: 4;
  font-size: 0.6rem;
  transform: rotate(8deg);
  animation: bob 2.6s ease-in-out infinite;
}[data-view="pet"] .feed {
  margin-top: 0.24rem;
  padding: 0.24rem 0.26rem;
}[data-view="pet"] .feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}[data-view="pet"] .feed-title {
  font-size: 0.3rem;
  font-weight: 800;
}[data-view="pet"] .feed-cost {
  font-size: 0.21rem;
  color: var(--ink-soft);
}[data-view="pet"] .feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.16rem;
}[data-view="pet"] .feed-affection {
  font-size: 0.24rem;
}[data-view="pet"] .feed-num {
  font-size: 0.34rem;
  font-weight: 800;
}[data-view="pet"] .feed-hint {
  margin-top: 0.12rem;
  font-size: 0.21rem;
  color: var(--ink-soft);
}[data-view="pet"] .accessory-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.14rem;
}[data-view="pet"] .accessory {
  margin: 0.06rem 0.12rem 0.06rem 0;
  padding: 0.06rem 0.14rem;
  border: 0.02rem dashed #c9bda8;
  border-radius: 9.99rem;
  font-size: 0.19rem;
  color: var(--ink-faint);
}[data-view="pet"] .accessory.on {
  border-style: solid;
  border-color: var(--ink);
  background: #fff0c2;
  color: var(--ink);
  font-weight: 700;
}[data-view="pet"] .pet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.16rem;
}[data-view="pet"] .head-sticker {
  flex-shrink: 0;
  margin-top: 0.06rem;
  padding: 0.06rem 0.14rem;
  border: 0.03rem solid var(--ink);
  background: rgba(255, 201, 60, 0.75);
  box-shadow: 0 0.04rem 0 rgba(43, 36, 56, 0.18);
  font-size: 0.19rem;
  font-weight: 800;
  transform: rotate(3deg);
}[data-view="pet"] .stage-card {
  padding: 0.2rem;
  margin-top: 0.08rem;
}[data-view="pet"] .stage-chips {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  margin-bottom: 0.14rem;
}[data-view="pet"] .level-chip {
  padding: 0.06rem 0.2rem;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  background: var(--ink);
  color: #fffdf8;
  font-size: 0.22rem;
  font-weight: 800;
}[data-view="pet"] .mood-chip, [data-view="pet"] .affection-chip {
  padding: 0.05rem 0.16rem;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  background: #fff7dd;
  font-size: 0.2rem;
  font-weight: 700;
}[data-view="pet"] .affection-chip {
  margin-left: auto;
}[data-view="pet"] .stage-card .scene {
  position: relative;
  height: 4rem;
  border: 0.03rem solid var(--ink);
  border-radius: 0.26rem;
  overflow: hidden;
}[data-view="pet"] .stage-card .pet-big {
  font-size: 1.9rem;
}[data-view="pet"] .stage-card .pet-accessory {
  top: 14%;
  right: 2%;
  font-size: 0.6rem;
}[data-view="pet"] .stage-body {
  padding-top: 0.18rem;
}[data-view="pet"] .name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.14rem;
}[data-view="pet"] .pet-name {
  font-size: 0.34rem;
  font-weight: 800;
}[data-view="pet"] .next-stage {
  flex-shrink: 0;
  font-size: 0.19rem;
  font-weight: 600;
  color: var(--ink-soft);
}[data-view="pet"] .exp-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.12rem;
  font-size: 0.2rem;
  font-weight: 600;
  color: var(--ink-soft);
}[data-view="pet"] .exp-bar {
  height: 0.2rem;
  margin-top: 0.08rem;
}[data-view="pet"] .exp-fill {
  height: 100%;
  border-radius: 9.99rem;
  background-image: linear-gradient(90deg, #ffd84d, #ff8f5e);
}[data-view="pet"] .exp-hint {
  margin-top: 0.08rem;
  font-size: 0.2rem;
  font-weight: 600;
  color: var(--ink-soft);
}[data-view="pet"] .attr-chips {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.14rem;
}[data-view="pet"] .attr-chip {
  margin: 0 0.12rem 0.08rem 0;
  padding: 0.06rem 0.14rem;
  border: 0.02rem dashed #d8ccb7;
  border-radius: 9.99rem;
  background: #fffaf0;
  font-size: 0.19rem;
  font-weight: 700;
  color: var(--ink-soft);
}[data-view="pet"] .care-card {
  margin-top: 0.22rem;
  padding: 0.2rem;
}[data-view="pet"] .care-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.12rem;
}[data-view="pet"] .card-title {
  font-size: 0.3rem;
  font-weight: 800;
}[data-view="pet"] .card-sub {
  margin-top: 0.04rem;
  font-size: 0.2rem;
  font-weight: 600;
  color: var(--ink-soft);
}[data-view="pet"] .mood-num {
  flex-shrink: 0;
  padding: 0.05rem 0.14rem;
  border: 0.02rem solid var(--ink);
  border-radius: 9.99rem;
  background: #fff7dd;
  font-size: 0.23rem;
  font-weight: 800;
}[data-view="pet"] .mood-bar {
  height: 0.18rem;
  margin-top: 0.14rem;
}[data-view="pet"] .mood-fill {
  height: 100%;
  border-radius: 9.99rem;
  background-image: linear-gradient(90deg, #ffd84d, #ff9f5e);
}[data-view="pet"] .mood-hint {
  margin-top: 0.08rem;
  font-size: 0.2rem;
  font-weight: 600;
  color: var(--ink-soft);
}[data-view="pet"] .care-grid {
  display: flex;
  margin-top: 0.18rem;
}[data-view="pet"] .care-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.16rem 0.08rem;
  border: 0.03rem solid var(--ink);
  border-radius: 0.22rem;
  background: #fffaf0;
  box-shadow: 0 0.06rem 0 rgba(43, 36, 56, 0.16);
}[data-view="pet"] .care-btn + .care-btn {
  margin-left: 0.12rem;
}[data-view="pet"] .care-btn.disabled {
  opacity: 0.48;
  box-shadow: none;
}[data-view="pet"] .care-emoji {
  font-size: 0.46rem;
  line-height: 1.15;
}[data-view="pet"] .care-title {
  margin-top: 0.02rem;
  font-size: 0.21rem;
  font-weight: 800;
}[data-view="pet"] .care-cost {
  font-size: 0.18rem;
  font-weight: 700;
  color: #a76b09;
}[data-view="pet"] .care-left {
  margin-top: 0.02rem;
  font-size: 0.16rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}[data-view="pet"] .attrs-card {
  margin-top: 0.22rem;
  padding: 0.2rem;
}[data-view="pet"] .attr-row {
  margin-top: 0.16rem;
}[data-view="pet"] .attr-head {
  display: flex;
  align-items: baseline;
  font-size: 0.22rem;
  font-weight: 700;
}[data-view="pet"] .attr-emoji {
  margin-right: 0.08rem;
  font-size: 0.26rem;
}[data-view="pet"] .attr-name {
  flex-shrink: 0;
}[data-view="pet"] .attr-tier {
  flex: 1;
  margin-left: 0.08rem;
  font-size: 0.18rem;
  font-weight: 600;
  color: var(--ink-soft);
}[data-view="pet"] .attr-value {
  font-weight: 800;
}[data-view="pet"] .attr-bar {
  height: 0.16rem;
  margin-top: 0.06rem;
}[data-view="pet"] .attr-fill {
  height: 100%;
  border-radius: 9.99rem;
}[data-view="pet"] .attr-body {
  background-image: linear-gradient(90deg, #ffb36b, #ff8f5e);
}[data-view="pet"] .attr-mind {
  background-image: linear-gradient(90deg, #9fd8ff, #5fb8f5);
}[data-view="pet"] .attr-heart {
  background-image: linear-gradient(90deg, #ff9db1, #ff6f91);
}[data-view="pet"] .attr-next {
  margin-top: 0.04rem;
  font-size: 0.17rem;
  font-weight: 600;
  color: var(--ink-faint);
}[data-view="pet"] .wardrobe-scroll {
  width: 100%;
  white-space: nowrap;
  margin-top: 0.04rem;
}[data-view="pet"] .wardrobe-track {
  display: inline-flex;
  padding-bottom: 0.1rem;
}[data-view="pet"] .wardrobe-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 1.9rem;
  margin-right: 0.14rem;
  padding: 0.14rem 0.1rem;
  border: 0.03rem solid var(--ink);
  border-radius: 0.22rem;
  background: #fffdf8;
  box-shadow: 0 0.06rem 0 rgba(43, 36, 56, 0.16);
  white-space: normal;
}[data-view="pet"] .wardrobe-item.locked {
  opacity: 0.6;
  background: #f7efe2;
  box-shadow: none;
}[data-view="pet"] .wardrobe-item.equipped {
  background: #fff3c9;
  border-color: var(--sun);
}[data-view="pet"] .wardrobe-emoji {
  font-size: 0.52rem;
  line-height: 1.2;
}[data-view="pet"] .wardrobe-name {
  font-size: 0.2rem;
  font-weight: 800;
  text-align: center;
}[data-view="pet"] .wardrobe-btn {
  width: 100%;
  margin-top: 0.06rem;
  padding: 0.06rem 0.08rem;
  border: 0.02rem solid var(--ink);
  border-radius: 9.99rem;
  background: var(--mint);
  text-align: center;
  font-size: 0.18rem;
  font-weight: 800;
}[data-view="pet"] .wardrobe-btn.ghost {
  background: #fffdf8;
  color: var(--ink-soft);
  font-weight: 600;
}[data-view="pet"] .story-card {
  margin-top: 0.24rem;
  padding: 0.2rem;
}[data-view="pet"] .story-latest {
  margin-top: 0.14rem;
  padding: 0.16rem;
  border: 0.02rem dashed #d8ccb7;
  border-radius: 0.2rem;
  background: #fffaf0;
}[data-view="pet"] .story-latest.empty {
  opacity: 0.8;
}[data-view="pet"] .story-label {
  font-size: 0.18rem;
  font-weight: 700;
  color: #a76b09;
}[data-view="pet"] .story-title {
  margin-top: 0.04rem;
  font-size: 0.27rem;
  font-weight: 800;
}[data-view="pet"] .story-text {
  margin-top: 0.05rem;
  font-size: 0.21rem;
  line-height: 1.65;
  color: var(--ink-soft);
}[data-view="pet"] .story-next {
  margin-top: 0.12rem;
  font-size: 0.19rem;
  font-weight: 600;
  color: var(--ink-soft);
}[data-view="pet"] .next-reward {
  margin-top: 0.12rem;
  padding: 0.1rem 0.14rem;
  border-radius: 0.16rem;
  background: #fff0c2;
  font-size: 0.19rem;
  font-weight: 700;
}[data-view="pet"] .pet-art {
  display: block;
  width: 3.3rem;
  height: 3.3rem;
  animation: bob 3s ease-in-out infinite;
  filter: drop-shadow(0 0.12rem 0 rgba(43, 36, 56, 0.13));
}[data-view="pet"] .stage-art {
  display: block;
  width: 0.84rem;
  height: 0.84rem;
  margin: 0 auto 0.04rem;
}[data-view="pet"] .stage.locked .stage-art {
  opacity: 0.45;
  filter: grayscale(0.65);
}[data-view="pet"] .pet-accessory.acc-hat {
  top: 38%;
  right: auto;
  left: 50%;
  z-index: 6;
  transform: translateX(-50%) rotate(-8deg);
  font-size: 0.54rem;
}[data-view="pet"] .pet-accessory.acc-glasses {
  top: 54%;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.44rem;
}[data-view="pet"] .pet-accessory.acc-scarf {
  top: 62%;
  right: 3%;
}[data-view="pet"] .pet-accessory.acc-halo {
  top: 18%;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
}[data-view="pet"] .pet-accessory.acc-wings {
  top: 34%;
  right: -2%;
  font-size: 0.64rem;
}[data-view="pet"] .pet-center {
  z-index: 7;
}[data-view="pet"] .pet-center {
  z-index: 3;
}[data-view="pet"] .pet-accessory.acc-hat {
  top: 38%;
  right: 4%;
  left: auto;
  transform: rotate(-8deg);
}[data-view="pet"] .species-panel {
  margin-bottom: 0.22rem;
  padding: 0.2rem;
}[data-view="pet"] .species-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.1rem;
}[data-view="pet"] .species-tip {
  flex-shrink: 0;
  padding: 0.04rem 0.12rem;
  border-radius: 9.99rem;
  background: rgba(138, 107, 255, 0.12);
  color: #6a4fe0;
  font-size: 0.18rem;
  font-weight: 800;
}[data-view="pet"] .species-row {
  display: flex;
  gap: 0.12rem;
  margin-top: 0.16rem;
}[data-view="pet"] .species-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.1rem 0.06rem 0.12rem;
  border-radius: 0.24rem;
  background: linear-gradient(180deg, #ffffff, #f4efff);
  box-shadow: 0 0.08rem 0.18rem rgba(86, 56, 160, 0.12);
}[data-view="pet"] .species-card.active {
  background: linear-gradient(180deg, #fffbe0, #ffe6a6);
  box-shadow: 0 0.08rem 0 #e0a51e, 0 0.16rem 0.28rem rgba(255, 180, 60, 0.28);
}[data-view="pet"] .species-card.locked {
  opacity: 0.72;
}[data-view="pet"] .species-art {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
}[data-view="pet"] .species-name {
  margin-top: 0.04rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.19rem;
  font-weight: 900;
}[data-view="pet"] .species-stage {
  margin-top: 0.02rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.17rem;
  font-weight: 700;
  color: var(--ink-soft);
}[data-view="pet"] .species-btn {
  margin-top: 0.06rem;
  padding: 0.03rem 0.12rem;
  border-radius: 9.99rem;
  background: linear-gradient(180deg, #a8f7e6, #3fe0be);
  color: #065c4b;
  font-size: 0.17rem;
  font-weight: 900;
}[data-view="pet"] .species-btn.adopt {
  background: linear-gradient(180deg, #ff9bd0, #ff5fae);
  color: #fff;
  box-shadow: 0 0.04rem 0 #d93c8a;
}[data-view="pet"] .species-btn.current {
  background: rgba(255, 255, 255, 0.75);
  color: #8a79a8;
}


[data-view="badges"] .page-head {
  padding: 0.26rem 0.04rem 0.3rem;
}[data-view="badges"] .page-head .muted {
  margin-top: 0.08rem;
}[data-view="badges"] .balance {
  padding: 0.3rem 0.3rem 0.24rem;
  margin-bottom: 0.04rem;
  transform: rotate(-0.5deg);
}[data-view="badges"] .balance-tape {
  top: -0.18rem;
  right: 0.4rem;
  margin: 0;
  width: 1.2rem;
  transform: rotate(4deg);
}[data-view="badges"] .balance-main {
  float: left;
}[data-view="badges"] .balance-num {
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.15;
}[data-view="badges"] .balance-side {
  float: right;
  text-align: right;
  padding-top: 0.06rem;
}[data-view="badges"] .balance-badge {
  font-size: 0.38rem;
  font-weight: 800;
  line-height: 1.15;
}[data-view="badges"] .balance-label {
  margin-top: 0.04rem;
  font-size: 0.21rem;
  font-weight: 700;
  color: var(--ink-soft);
}[data-view="badges"] .balance-sub {
  clear: both;
  padding-top: 0.18rem;
  font-size: 0.21rem;
  color: var(--ink-faint);
}[data-view="badges"] .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0.42rem 0.04rem 0.22rem;
}[data-view="badges"] .badge-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}[data-view="badges"] .badge-cell {
  width: 48.4%;
  margin-bottom: 0.2rem;
  padding: 0.24rem 0.14rem 0.2rem;
  text-align: center;
  background: #fffdf8;
  border: 0.03rem solid var(--ink);
  border-radius: 0.28rem;
  box-shadow: 0.05rem 0.06rem 0 rgba(43, 36, 56, 0.1);
  transition: transform 0.12s ease;
}[data-view="badges"] .cell-press {
  transform: translate(0.02rem, 0.04rem);
  box-shadow: 0.02rem 0.03rem 0 rgba(43, 36, 56, 0.1);
}[data-view="badges"] .badge-cell.locked {
  border-style: dashed;
  background: #f8f2e6;
}[data-view="badges"] .badge-cell.earned {
  background: #fffdf8;
}[data-view="badges"] .badge-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.88rem;
  height: 0.88rem;
  margin: 0 auto;
  border: 0.03rem solid var(--ink);
  border-radius: 0.24rem;
  font-size: 0.44rem;
  transform: rotate(-4deg);
  box-shadow: 0.03rem 0.04rem 0 rgba(43, 36, 56, 0.16);
}[data-view="badges"] .badge-cell.locked .badge-emoji {
  background: #e9e1d2;
  font-size: 0.34rem;
  transform: rotate(0deg);
  box-shadow: none;
}[data-view="badges"] .badge-title {
  margin-top: 0.16rem;
  font-size: 0.27rem;
  font-weight: 800;
  line-height: 1.3;
}[data-view="badges"] .badge-cell.locked .badge-title {
  color: var(--ink-soft);
}[data-view="badges"] .badge-sub {
  margin-top: 0.04rem;
  font-size: 0.22rem;
  color: var(--ink-soft);
}[data-view="badges"] .badge-bar {
  height: 0.12rem;
  margin: 0.12rem 0.12rem 0;
  border: 0.02rem solid #c9bda8;
  border-radius: 9.99rem;
  background: #efe7d8;
  overflow: hidden;
}[data-view="badges"] .badge-bar-fill {
  height: 100%;
  border-radius: 9.99rem;
  background: var(--mint);
  transition: width 0.6s ease;
}[data-view="badges"] .reward-list {
  display: block;
}[data-view="badges"] .reward {
  display: flex;
  align-items: center;
  padding: 0.2rem 0.22rem;
  margin-bottom: 0.18rem;
  animation: popIn 0.45s ease both;
}[data-view="badges"] .reward-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.76rem;
  height: 0.76rem;
  flex-shrink: 0;
  background: #fff0c2;
  border: 0.03rem solid var(--ink);
  border-radius: 0.22rem;
  font-size: 0.4rem;
  transform: rotate(-4deg);
}[data-view="badges"] .reward-body {
  flex: 1;
  min-width: 0;
  margin: 0 0.18rem;
}[data-view="badges"] .reward-title {
  font-size: 0.29rem;
  font-weight: 800;
}[data-view="badges"] .reward-cost {
  margin-top: 0.02rem;
  font-size: 0.22rem;
  font-weight: 800;
  color: #c9861a;
}[data-view="badges"] .record-list {
  display: block;
}[data-view="badges"] .record {
  display: flex;
  align-items: center;
  padding: 0.18rem 0.22rem;
  margin-bottom: 0.16rem;
  border-radius: 0.26rem;
  box-shadow: 0.05rem 0.06rem 0 rgba(43, 36, 56, 0.08);
}[data-view="badges"] .record-done {
  opacity: 0.72;
}[data-view="badges"] .record-emoji {
  font-size: 0.36rem;
  width: 0.58rem;
}[data-view="badges"] .record-body {
  flex: 1;
  min-width: 0;
}[data-view="badges"] .record-title {
  font-size: 0.27rem;
  font-weight: 800;
}[data-view="badges"] .record-sub {
  margin-top: 0.02rem;
  font-size: 0.22rem;
  color: var(--ink-soft);
}[data-view="badges"] .record-cost {
  font-size: 0.22rem;
  font-weight: 800;
  color: var(--ink-soft);
}[data-view="badges"] .foot-tip {
  margin: 0.44rem 0 0.06rem;
  text-align: center;
  font-size: 0.22rem;
  font-weight: 700;
  letter-spacing: 0.02rem;
  color: var(--ink-faint);
}[data-view="badges"] .wish-box {
  margin-top: 0.3rem;
  padding: 0.24rem;
}[data-view="badges"] .wish-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}[data-view="badges"] .wish-title {
  font-size: 0.32rem;
  font-weight: 800;
}[data-view="badges"] .wish-sub {
  font-size: 0.2rem;
  color: var(--ink-soft);
}[data-view="badges"] .wish-types {
  display: flex;
  margin-top: 0.16rem;
}[data-view="badges"] .wish-type {
  flex: 1;
  padding: 0.12rem 0;
  text-align: center;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  background: #fffdf8;
  font-size: 0.22rem;
  font-weight: 800;
}[data-view="badges"] .wish-type + .wish-type {
  margin-left: 0.14rem;
}[data-view="badges"] .wish-type.active {
  background: var(--sun);
}[data-view="badges"] .wish-row {
  display: flex;
  align-items: center;
  margin-top: 0.16rem;
}[data-view="badges"] .wish-input {
  flex: 1;
  min-width: 0;
  margin-right: 0.14rem;
  padding: 0.14rem 0.18rem;
  border: 0.03rem solid var(--ink);
  border-radius: 0.18rem;
  background: #fff6e3;
  font-size: 0.24rem;
}[data-view="badges"] .wish-list {
  margin-top: 0.14rem;
}[data-view="badges"] .wish-item {
  display: flex;
  align-items: center;
  padding: 0.1rem 0;
  border-top: 0.02rem dashed #e9deca;
  font-size: 0.21rem;
}[data-view="badges"] .wish-tag {
  flex-shrink: 0;
  margin-right: 0.12rem;
  padding: 0.02rem 0.1rem;
  border-radius: 9.99rem;
  background: #fff0c2;
  font-size: 0.17rem;
  font-weight: 800;
}[data-view="badges"] .wish-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}[data-view="badges"] .wish-status {
  flex-shrink: 0;
  margin-left: 0.12rem;
  font-size: 0.18rem;
  color: var(--ink-soft);
}[data-view="badges"] .wish-item.approved .wish-status {
  color: #1f9c7d;
}[data-view="badges"] .wish-item.rejected {
  opacity: 0.55;
}[data-view="badges"] .poster-row {
  margin-top: 0.22rem;
}[data-view="badges"] .poster-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.68rem;
  padding: 0 0.26rem;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  background: #fffdf8;
  font-size: 0.24rem;
  font-weight: 800;
  box-shadow: 0 0.06rem 0 var(--ink);
}[data-view="badges"] .poster-btn.press {
  transform: translateY(0.04rem);
  box-shadow: 0 0.02rem 0 var(--ink);
}[data-view="badges"] .poster-canvas {
  position: fixed;
  left: -20rem;
  top: 0;
  width: 7.5rem;
  height: 12rem;
  pointer-events: none;
}



[data-view="parent"] .lock-head {
  padding: 0.26rem 0.04rem 0.24rem;
}[data-view="parent"] .lock-head .muted {
  margin-top: 0.08rem;
}[data-view="parent"] .lock {
  padding: 0.4rem 0.3rem 0.34rem;
  text-align: center;
}[data-view="parent"] .lock-icon {
  font-size: 0.8rem;
  line-height: 1.2;
}[data-view="parent"] .lock-title {
  margin-top: 0.08rem;
  font-size: 0.3rem;
  font-weight: 800;
}[data-view="parent"] .dots {
  display: flex;
  justify-content: center;
  margin: 0.3rem 0 0.06rem;
}[data-view="parent"] .dot {
  width: 0.28rem;
  height: 0.28rem;
  margin: 0 0.16rem;
  border: 0.03rem solid var(--ink);
  border-radius: 50%;
  background: #fffdf8;
  transition: background 0.15s ease, transform 0.15s ease;
}[data-view="parent"] .dot.filled {
  background: var(--ink);
  transform: scale(1.12);
}[data-view="parent"] .pin-error .dots {
  animation: shake 0.45s ease;
}[data-view="parent"] .keypad {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.26rem;
}[data-view="parent"] .key {
  width: 30%;
  margin: 1.5%;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffdf8;
  border: 0.03rem solid var(--ink);
  border-radius: 0.24rem;
  box-shadow: 0 0.06rem 0 rgba(43, 36, 56, 0.16);
  font-size: 0.38rem;
  font-weight: 800;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}[data-view="parent"] .key-press {
  transform: translateY(0.05rem);
  box-shadow: 0 0.01rem 0 rgba(43, 36, 56, 0.16);
}[data-view="parent"] .key-ghost {
  font-size: 0.24rem;
  color: var(--ink-soft);
  background: #f6efe2;
}[data-view="parent"] .lock-hint {
  margin-top: 0.26rem;
  font-size: 0.22rem;
  color: var(--ink-faint);
}[data-view="parent"] .head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.26rem 0.04rem 0.26rem;
}[data-view="parent"] .head-row .muted {
  margin-top: 0.06rem;
}[data-view="parent"] .lock-btn {
  padding: 0.1rem 0.22rem;
  background: #fffdf8;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  font-size: 0.23rem;
  font-weight: 800;
  box-shadow: 0.04rem 0.05rem 0 rgba(43, 36, 56, 0.12);
}[data-view="parent"] .overview {
  display: flex;
  align-items: center;
  padding: 0.26rem 0.08rem;
}[data-view="parent"] .ov-item {
  flex: 1;
  text-align: center;
}[data-view="parent"] .ov-num {
  font-size: 0.34rem;
  font-weight: 800;
  line-height: 1.2;
}[data-view="parent"] .ov-label {
  margin-top: 0.04rem;
  font-size: 0.21rem;
  color: var(--ink-soft);
}[data-view="parent"] .ov-divider {
  width: 0.02rem;
  height: 0.48rem;
  border-left: 0.02rem dashed #e2d6c2;
}[data-view="parent"] .section-title {
  margin: 0.42rem 0.04rem 0.18rem;
  font-size: 0.32rem;
  font-weight: 800;
  letter-spacing: 0.01rem;
}[data-view="parent"] .section-sub {
  margin-left: 0.14rem;
  font-size: 0.22rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0;
}[data-view="parent"] .panel {
  padding: 0.04rem 0.26rem 0.08rem;
  margin-bottom: 0.04rem;
}[data-view="parent"] .field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.22rem 0;
  border-bottom: 0.02rem dashed #e9deca;
}[data-view="parent"] .field-label {
  font-size: 0.27rem;
  font-weight: 800;
}[data-view="parent"] .field-input {
  width: 3.3rem;
  text-align: right;
  font-size: 0.27rem;
  color: var(--ink-soft);
}[data-view="parent"] .field-input.full {
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.18rem 0.22rem;
  text-align: left;
  background: #fff6e3;
  border: 0.03rem solid var(--ink);
  border-radius: 0.2rem;
  color: var(--ink);
}[data-view="parent"] .row-between {
  justify-content: space-between;
}[data-view="parent"] .panel-tip {
  padding: 0.16rem 0 0.2rem;
  font-size: 0.22rem;
  line-height: 1.6;
  color: var(--ink-faint);
}[data-view="parent"] .prow {
  padding: 0.22rem 0.24rem;
  margin-bottom: 0.18rem;
}[data-view="parent"] .prow-top {
  display: flex;
  align-items: center;
}[data-view="parent"] .prow-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.76rem;
  height: 0.76rem;
  flex-shrink: 0;
  margin-right: 0.18rem;
  background: #fff2cc;
  border: 0.03rem solid var(--ink);
  border-radius: 0.2rem;
  font-size: 0.38rem;
  transform: rotate(-3deg);
}[data-view="parent"] .prow-info {
  flex: 1;
  min-width: 0;
  margin-right: 0.1rem;
}[data-view="parent"] .prow-title {
  font-size: 0.29rem;
  font-weight: 800;
  line-height: 1.3;
}[data-view="parent"] .prow-sub {
  margin-top: 0.04rem;
  font-size: 0.23rem;
  color: var(--ink-soft);
}[data-view="parent"] .prow-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.16rem;
  padding-top: 0.14rem;
  border-top: 0.02rem dashed #ece1cf;
}[data-view="parent"] .stepper {
  display: inline-flex;
  align-items: center;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  background: #fffdf8;
  overflow: hidden;
}[data-view="parent"] .step-btn {
  width: 0.64rem;
  height: 0.58rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff2cc;
  font-size: 0.34rem;
  font-weight: 800;
}[data-view="parent"] .step-press {
  background: #ffe8a3;
}[data-view="parent"] .step-num {
  min-width: 0.96rem;
  text-align: center;
  font-size: 0.25rem;
  font-weight: 800;
}[data-view="parent"] .del-btn {
  padding: 0.08rem 0.2rem;
  border: 0.03rem solid rgba(255, 111, 97, 0.55);
  border-radius: 9.99rem;
  color: var(--coral);
  font-size: 0.22rem;
  font-weight: 800;
}[data-view="parent"] .fulfill-btn {
  padding: 0.12rem 0.2rem;
  border: 0.03rem solid var(--ink);
  border-radius: 9.99rem;
  background: var(--mint);
  font-size: 0.22rem;
  font-weight: 800;
  flex-shrink: 0;
}[data-view="parent"] .fulfill-btn.is-done {
  background: #ece5d6;
  color: var(--ink-soft);
  border-color: #c9bda8;
}[data-view="parent"] .add-toggle {
  margin: 0.04rem 0 0.26rem;
  padding: 0.26rem;
  text-align: center;
  border: 0.03rem dashed #b8ab95;
  border-radius: 0.26rem;
  background: rgba(255, 253, 248, 0.6);
  font-size: 0.26rem;
  font-weight: 800;
  color: var(--ink-soft);
}[data-view="parent"] .form {
  padding: 0.24rem 0.24rem 0.28rem;
  margin-bottom: 0.28rem;
  animation: popIn 0.3s ease both;
}[data-view="parent"] .form-label {
  margin: 0.24rem 0 0.12rem;
  font-size: 0.22rem;
  font-weight: 800;
  color: var(--ink-soft);
}[data-view="parent"] .form-label.inline {
  margin: 0;
}[data-view="parent"] .emoji-picker {
  display: flex;
  flex-wrap: wrap;
}[data-view="parent"] .emoji-item {
  width: 0.74rem;
  height: 0.74rem;
  margin: 0 0.12rem 0.12rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.03rem solid #eadfc9;
  border-radius: 0.18rem;
  background: #fff6e3;
  font-size: 0.36rem;
}[data-view="parent"] .emoji-item.active {
  border-color: var(--ink);
  background: var(--sun);
  transform: scale(1.04);
}[data-view="parent"] .cat-picker {
  display: flex;
  flex-wrap: wrap;
}[data-view="parent"] .cat-picker .chip {
  margin: 0 0.12rem 0.12rem 0;
}[data-view="parent"] .form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.2rem 0 0.26rem;
}[data-view="parent"] .form-submit {
  width: 100%;
}[data-view="parent"] .danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.22rem 0;
  border-bottom: 0.02rem dashed #e9deca;
}[data-view="parent"] .danger-row.last {
  border-bottom: none;
}[data-view="parent"] .danger-copy {
  flex: 1;
  min-width: 0;
  margin-right: 0.18rem;
}[data-view="parent"] .danger-copy .panel-tip {
  padding: 0.06rem 0 0;
}[data-view="parent"] .danger-btn {
  padding: 0.12rem 0.24rem;
  border: 0.03rem solid var(--coral);
  border-radius: 9.99rem;
  color: var(--coral);
  font-size: 0.23rem;
  font-weight: 800;
  flex-shrink: 0;
}[data-view="parent"] .danger-btn.strong {
  background: var(--coral);
  color: #fff;
}[data-view="parent"] .pin-row {
  display: flex;
  align-items: center;
  padding: 0.22rem 0 0.06rem;
}[data-view="parent"] .pin-input {
  flex: 1;
  margin-right: 0.18rem;
  padding: 0.16rem 0.22rem;
  text-align: left;
  background: #fff6e3;
  border: 0.03rem solid var(--ink);
  border-radius: 0.2rem;
  font-size: 0.27rem;
  color: var(--ink);
}[data-view="parent"] .save-btn {
  flex-shrink: 0;
}[data-view="parent"] .parent-foot {
  margin: 0.44rem 0 0.08rem;
  text-align: center;
  font-size: 0.21rem;
  color: var(--ink-faint);
  letter-spacing: 0.01rem;
}[data-view="parent"] .forgot-link {
  margin-top: 0.3rem;
  text-align: center;
  font-size: 0.22rem;
  color: var(--ink-soft);
  text-decoration: underline;
}[data-view="parent"] .recovery-panel {
  margin-top: 0.24rem;
  padding: 0.24rem;
}[data-view="parent"] .tool-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.16rem;
}[data-view="parent"] .tool-actions .btn {
  margin: 0 0.12rem 0.12rem 0;
}[data-view="parent"] .btn.ghost {
  background: #fffdf8;
  color: var(--ink);
}[data-view="parent"] .tool-card {
  display: flex;
  align-items: center;
  margin-top: 0.26rem;
  padding: 0.24rem;
}[data-view="parent"] .task-press {
  transform: translate(0.03rem, 0.05rem) scale(0.994);
  opacity: 0.92;
}[data-view="parent"] .tool-emoji {
  font-size: 0.56rem;
  line-height: 1;
}[data-view="parent"] .tool-body {
  flex: 1;
  min-width: 0;
  margin-left: 0.18rem;
}[data-view="parent"] .tool-title {
  font-size: 0.3rem;
  font-weight: 800;
}[data-view="parent"] .tool-sub {
  margin-top: 0.04rem;
  font-size: 0.21rem;
  color: var(--ink-soft);
}[data-view="parent"] .tool-arrow {
  font-size: 0.44rem;
  font-weight: 800;
  color: var(--ink-soft);
}



.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0 0.22rem calc(0.16rem + env(safe-area-inset-bottom));
  pointer-events: none;
}

.tabbar-inner {
  display: flex;
  align-items: stretch;
  padding: 0.1rem 0.12rem;
  background: #fffdf8;
  border: 0.04rem solid #2b2438;
  border-radius: 0.44rem;
  box-shadow: 0 -0.02rem 0 rgba(43, 36, 56, 0.04), 0 0.14rem 0.3rem rgba(43, 36, 56, 0.18);
  pointer-events: auto;
}

.tab-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 1.06rem;
  border-radius: 0.32rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tab-emoji {
  font-size: 0.4rem;
  line-height: 1;
  filter: grayscale(0.35);
  opacity: 0.72;
  transition: transform 0.22s cubic-bezier(0.2, 1.4, 0.4, 1), opacity 0.2s ease;
}

.tab-label {
  margin-top: 0.08rem;
  font-size: 0.2rem;
  font-weight: 800;
  color: #8c8299;
  letter-spacing: 0.01rem;
}

.tab-item.active {
  background: #fff2c9;
}

.tab-item.active .tab-emoji {
  transform: translateY(-0.04rem) scale(1.14);
  filter: none;
  opacity: 1;
}

.tab-item.active .tab-label {
  color: #2b2438;
}


.tabbar-inner {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 0 !important;
  border-radius: 0.44rem !important;
  box-shadow:
    0 0.24rem 0.56rem rgba(70, 40, 130, 0.26),
    inset 0 0.03rem 0 rgba(255, 255, 255, 0.95) !important;
}

.tab-item {
  height: 1.12rem;
  border-radius: 0.32rem;
}

.tab-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #efe8ff);
  box-shadow: 0 0.05rem 0 rgba(138, 107, 255, 0.2), inset 0 0.02rem 0 #fff;
  font-size: 0.3rem;
  filter: none;
  opacity: 1;
}

.tab-label {
  color: #8a79a8;
  font-weight: 900;
}

.tab-item.active {
  background: linear-gradient(180deg, rgba(255, 139, 203, 0.18), rgba(138, 107, 255, 0.12)) !important;
}

.tab-item.active .tab-emoji {
  background: linear-gradient(180deg, #ff9bd0, #8a6bff);
  box-shadow: 0 0.06rem 0 #6a4fe0, 0 0 0.24rem rgba(255, 111, 181, 0.6);
}

.tab-item.active .tab-label {
  color: #6a4fe0;
}


/* 页面级覆盖：入场动画只播一次、按压反馈、宽屏细节 */

section.view {
  padding-top: calc(0.1rem + env(safe-area-inset-top));
}

/* 首次进入有入场动画；之后 setData 式的重渲染不再整页闪动 */
[data-view="home"].booted .hero,
[data-view="home"].booted .task,
[data-view="home"].booted .alldone {
  animation: none;
}

[data-view="badges"].booted .reward {
  animation: none;
}

[data-view="parent"].booted .form {
  animation: none;
}

/* 触屏按压反馈 */
.btn:active {
  transform: translateY(0.07rem);
  box-shadow: 0 0.01rem 0 var(--ink);
}

.task:active {
  transform: translate(0.03rem, 0.05rem) scale(0.994);
  box-shadow: 0.04rem 0.05rem 0 rgba(43, 36, 56, 0.12);
}

.quick:active {
  transform: translateY(0.02rem);
}

.key:active {
  transform: translateY(0.05rem);
  box-shadow: 0 0.01rem 0 rgba(43, 36, 56, 0.16);
}

.emoji-item:active,
.chip:active {
  transform: scale(0.96);
}

.tab-item:active .tab-emoji {
  transform: scale(0.92);
}

.del-btn:active,
.danger-btn:active,
.add-toggle:active,
.badge-cell:active,
.reward .btn:active {
  opacity: 0.82;
}

/* 宽屏下 tabBar 与内容同宽 */
.tabbar {
  padding-left: 0;
  padding-right: 0;
}

.tabbar-inner {
  width: calc(100% - 0.44rem);
}

/* 文本换行 */
.hero-next,
.growth-hint,
.pet-tip,
.panel-tip,
.badge-board-desc {
  word-break: break-word;
}

/* 桌面端悬停提示 */
@media (hover: hover) {
  .task:hover {
    box-shadow: 0.1rem 0.12rem 0 rgba(43, 36, 56, 0.16);
  }

  .btn:hover {
    filter: brightness(1.03);
  }

  .tab-item:hover .tab-label {
    color: #2b2438;
  }
}

/* iPad / 宽屏：放大一档，并给居中的「应用纸张」加一点存在感 */
@media (min-width: 768px) {
  html {
    font-size: 88px;
  }

  .app-shell {
    background: rgba(255, 253, 248, 0.5);
    border-radius: 0.5rem;
    box-shadow: 0 0 0 1px rgba(43, 36, 56, 0.06), 0 1.2rem 3rem rgba(43, 36, 56, 0.12);
    overflow: hidden;
  }

  .tabbar-inner {
    width: calc(100% - 1.1rem);
  }
}

/* ================= v2 功能样式 ================= */

/* 提醒条 / 假期 */
.reminder {
  margin: 0 0 0.24rem;
  padding: 0.16rem 0.22rem;
  background: #fff2c9;
  border: 0.03rem solid var(--ink);
  border-radius: 0.22rem;
  box-shadow: 0.04rem 0.05rem 0 rgba(43, 36, 56, 0.12);
  font-size: 0.23rem;
  font-weight: 700;
  color: #7a5b12;
  cursor: pointer;
}

.parent-reminder {
  margin-top: 0.24rem;
}

.vacation-chip {
  display: inline-block;
  margin-left: 0.12rem;
  padding: 0.02rem 0.12rem;
  background: var(--mint);
  border: 0.02rem solid var(--ink);
  border-radius: 999px;
  font-size: 0.18rem;
  font-weight: 800;
  color: var(--ink);
  transform: rotate(-2deg);
}

/* 目标 */
.goals {
  margin-top: 0.3rem;
  padding: 0.24rem 0.26rem;
}

.goal-row + .goal-row {
  margin-top: 0.2rem;
}

.goal-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.23rem;
  font-weight: 800;
  color: var(--ink);
}

.goal-bar {
  height: 0.16rem;
  margin-top: 0.1rem;
  background: #efe4d3;
  border: 0.03rem solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.goal-fill {
  height: 100%;
  border-radius: 999px;
  background-image: linear-gradient(90deg, #ffd84d, #ff8f5e);
  transition: width 0.5s ease;
}

.goal-fill.weekly {
  background-image: linear-gradient(90deg, #7be0c3, #3ecfaf);
}

/* 宝箱 */
.chest-card {
  display: flex;
  align-items: center;
  margin-top: 0.24rem;
  padding: 0.22rem 0.24rem;
  background: #fff0c2;
  cursor: pointer;
}

.chest-card.opened {
  background: #f3ecdf;
  opacity: 0.9;
  cursor: default;
}

.chest-emoji {
  font-size: 0.66rem;
  line-height: 1;
  animation: bob 2s ease-in-out infinite;
}

.chest-body {
  flex: 1;
  min-width: 0;
  margin-left: 0.18rem;
}

.chest-title {
  font-size: 0.28rem;
  font-weight: 800;
}

.chest-sub {
  margin-top: 0.03rem;
  font-size: 0.21rem;
  color: #8a6a1c;
}

.chest-spark {
  font-size: 0.34rem;
  animation: twinkle 2s ease-in-out infinite;
}

.task-x2 {
  margin-left: 0.12rem;
  padding: 0.02rem 0.1rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.18rem;
  font-weight: 800;
}

/* 心愿箱 */
.wish-box {
  margin-top: 0.3rem;
  padding: 0.24rem;
}

.wish-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.wish-title {
  font-size: 0.32rem;
  font-weight: 800;
}

.wish-sub {
  font-size: 0.2rem;
  color: var(--ink-soft);
}

.wish-types {
  display: flex;
  margin-top: 0.16rem;
}

.wish-type {
  flex: 1;
  padding: 0.12rem 0;
  text-align: center;
  border: 0.03rem solid var(--ink);
  border-radius: 999px;
  background: #fffdf8;
  font-size: 0.22rem;
  font-weight: 800;
  cursor: pointer;
}

.wish-type + .wish-type {
  margin-left: 0.14rem;
}

.wish-type.active {
  background: var(--sun);
}

.wish-row {
  display: flex;
  align-items: center;
  margin-top: 0.16rem;
}

.wish-input {
  flex: 1;
  min-width: 0;
  margin-right: 0.14rem;
  padding: 0.14rem 0.18rem;
  border: 0.03rem solid var(--ink);
  border-radius: 0.18rem;
  background: #fff6e3;
  font-size: max(16px, 0.23rem);
}

.wish-list {
  margin-top: 0.14rem;
}

.wish-item {
  display: flex;
  align-items: center;
  padding: 0.1rem 0;
  border-top: 0.02rem dashed #e9deca;
  font-size: 0.21rem;
}

.wish-tag {
  flex-shrink: 0;
  padding: 0.02rem 0.1rem;
  margin-right: 0.12rem;
  border-radius: 999px;
  background: #fff0c2;
  font-size: 0.17rem;
  font-weight: 800;
}

.wish-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wish-status {
  flex-shrink: 0;
  margin-left: 0.12rem;
  font-size: 0.18rem;
  color: var(--ink-soft);
}

.wish-item.approved .wish-status {
  color: #1f9c7d;
}

.wish-item.rejected {
  opacity: 0.55;
}

/* 宠物装饰 / 喂养 */
.pet-accessory {
  position: absolute;
  top: 18%;
  right: 2%;
  z-index: 4;
  font-size: 0.46rem;
  transform: rotate(8deg);
  animation: bob 2.6s ease-in-out infinite;
}

.pet-accessory.big {
  top: 14%;
  right: 4%;
  font-size: 0.6rem;
}

.feed {
  margin-top: 0.24rem;
  padding: 0.24rem 0.26rem;
}

.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.feed-title {
  font-size: 0.3rem;
  font-weight: 800;
}

.feed-cost {
  font-size: 0.21rem;
  color: var(--ink-soft);
}

.feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.16rem;
}

.feed-affection {
  font-size: 0.24rem;
}

.feed-affection b {
  font-size: 0.34rem;
}

.feed-hint {
  margin-top: 0.12rem;
  font-size: 0.21rem;
  color: var(--ink-soft);
}

.accessory-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.14rem;
}

.accessory {
  margin: 0.06rem 0.12rem 0.06rem 0;
  padding: 0.06rem 0.14rem;
  border: 0.02rem dashed #c9bda8;
  border-radius: 999px;
  font-size: 0.19rem;
  color: var(--ink-faint);
}

.accessory.on {
  border-style: solid;
  border-color: var(--ink);
  background: #fff0c2;
  color: var(--ink);
  font-weight: 700;
}

/* 找回密码 */
.forgot-link {
  margin-top: 0.3rem;
  text-align: center;
  font-size: 0.22rem;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
}

.recovery-panel {
  padding: 0.24rem;
}

.recovery-actions {
  display: flex;
  margin-top: 0.16rem;
}

.recovery-actions .btn + .btn {
  margin-left: 0.14rem;
}

/* 家长工具 / 调整 / 排期 */
.tool-actions,
.adjust-actions,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.16rem;
}

.tool-actions .btn,
.adjust-actions .btn,
.editor-actions .btn {
  margin: 0 0.12rem 0.12rem 0;
}

.btn.ghost {
  background: #fffdf8;
  color: var(--ink);
}

.adjust-log {
  margin-top: 0.14rem;
  padding-top: 0.1rem;
  border-top: 0.02rem dashed #e9deca;
}

.adjust-row {
  display: flex;
  padding: 0.03rem 0;
  font-size: 0.19rem;
  color: var(--ink-soft);
}

.adjust-date {
  width: 0.9rem;
  flex-shrink: 0;
}

.adjust-delta {
  width: 2rem;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--ink);
}

.adjust-note {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prow-actions {
  display: flex;
  align-items: center;
}

.edit-btn {
  margin-right: 0.12rem;
  padding: 0.08rem 0.2rem;
  border: 0.03rem solid var(--ink);
  border-radius: 999px;
  background: #fff6e3;
  font-size: 0.21rem;
  font-weight: 800;
}

.sched-editor {
  margin-top: 0.18rem;
  padding-top: 0.16rem;
  border-top: 0.02rem dashed #e9deca;
}

.day-chips {
  display: flex;
  flex-wrap: wrap;
}

.day-chip {
  width: 0.62rem;
  height: 0.56rem;
  line-height: 0.56rem;
  margin: 0 0.12rem 0.12rem 0;
  text-align: center;
  border: 0.03rem solid #d8ccb7;
  border-radius: 0.14rem;
  background: #fffdf8;
  font-size: 0.22rem;
  font-weight: 800;
  color: var(--ink-soft);
  cursor: pointer;
}

.day-chip.on {
  border-color: var(--ink);
  background: var(--sun);
  color: var(--ink);
}

/* 补录 */
.backfill-days {
  display: flex;
  padding-bottom: 0.1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.backfill-days::-webkit-scrollbar {
  display: none;
}

.backfill-day {
  flex-shrink: 0;
  margin-right: 0.12rem;
  padding: 0.1rem 0.18rem;
  border: 0.03rem solid #d8ccb7;
  border-radius: 0.18rem;
  background: #fffdf8;
  font-size: 0.21rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.backfill-day small {
  display: block;
  font-size: 0.16rem;
  font-weight: 500;
}

.backfill-day.active {
  border-color: var(--ink);
  background: var(--sun);
  color: var(--ink);
}

.backfill-head {
  margin-top: 0.1rem;
  font-size: 0.22rem;
  font-weight: 800;
}

.backfill-list {
  margin-top: 0.1rem;
}

.backfill-task {
  display: flex;
  align-items: center;
  padding: 0.14rem 0.08rem;
  border-bottom: 0.02rem dashed #ece1cf;
  font-size: 0.22rem;
}

.backfill-task .bt-emoji {
  margin-right: 0.14rem;
}

.backfill-task .bt-title {
  flex: 1;
  min-width: 0;
}

.backfill-task .bt-star {
  margin-right: 0.16rem;
  color: #c9861a;
  font-weight: 700;
}

.backfill-task .bt-check {
  width: 0.4rem;
  height: 0.4rem;
  line-height: 0.4rem;
  text-align: center;
  border: 0.02rem solid #c9bda8;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
}

.backfill-task.done .bt-check {
  border-color: var(--mint);
  background: var(--mint);
}

.backfill-task.done .bt-title {
  color: var(--ink-soft);
}

/* 心愿审批 / 小徽标 */
.wish-actions {
  display: flex;
}

.wish-actions .mini-btn + .mini-btn {
  margin-left: 0.1rem;
}

.mini-btn {
  padding: 0.06rem 0.16rem;
  border: 0.02rem solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  font-size: 0.2rem;
  font-weight: 800;
}

.mini-btn.ghost {
  background: #fffdf8;
  color: var(--ink-soft);
}

.mini-badge {
  padding: 0.03rem 0.12rem;
  border-radius: 999px;
  background: #eee6d8;
  font-size: 0.18rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.mini-badge.ok {
  background: var(--mint);
  color: var(--ink);
}

/* 周报 */
.report-bars {
  display: flex;
  align-items: flex-end;
  height: 2rem;
  margin-top: 0.1rem;
}

.report-bar {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.report-bar-fill {
  width: 60%;
  min-height: 0.08rem;
  border: 0.02rem solid var(--ink);
  border-radius: 0.06rem 0.06rem 0 0;
  background-image: linear-gradient(180deg, #ffd84d, #ff9f5e);
}

.report-bar-label {
  margin-top: 0.06rem;
  font-size: 0.17rem;
  color: var(--ink-soft);
}

.report-bar-star {
  font-size: 0.16rem;
  font-weight: 700;
  color: var(--ink);
}

.report-stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.18rem;
  font-size: 0.21rem;
  color: var(--ink-soft);
}

.report-stats span + span {
  margin-left: 0.2rem;
}

.report-stats b {
  color: var(--ink);
}

.report-cats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.14rem;
}

.report-cat {
  margin: 0.06rem 0.12rem 0 0;
  padding: 0.05rem 0.14rem;
  border-radius: 999px;
  background: #fff6e3;
  font-size: 0.19rem;
}

.report-warn {
  margin-top: 0.14rem;
  font-size: 0.2rem;
  font-weight: 700;
  color: var(--coral);
}

.hidden-file {
  display: none;
}

/* 大字 / 减少动效 */
html.big-font {
  font-size: min(15.2vw, 92px);
}
html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

@media (min-width: 768px) {
  html.big-font {
    font-size: 100px;
  }

  [data-view="home"] .task-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.18rem;
  }

  [data-view="home"] .task-list .task {
    margin-bottom: 0;
    height: 100%;
  }

  [data-view="home"] .task-list .task:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* 首次进入的家长须知 */
.notice-layer {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem;
  background: rgba(43, 36, 56, 0.62);
}

.notice-card {
  width: 100%;
  max-width: 6.1rem;
  padding: 0.4rem 0.34rem 0.34rem;
  text-align: center;
  background: #fffdf8;
  border: 0.04rem solid var(--ink);
  border-radius: 0.42rem;
  box-shadow: 0.12rem 0.14rem 0 rgba(0, 0, 0, 0.28);
  animation: boardIn 0.42s cubic-bezier(0.2, 1.1, 0.3, 1) both;
}

.notice-emoji {
  font-size: 0.8rem;
}

.notice-title {
  margin-top: 0.06rem;
  font-size: 0.36rem;
  font-weight: 800;
}

.notice-body {
  margin-top: 0.14rem;
  font-size: 0.24rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.notice-link {
  display: inline-block;
  margin-top: 0.18rem;
  font-size: 0.22rem;
  color: #2b6fd6;
  text-decoration: underline;
}

.notice-btn {
  width: 100%;
  margin-top: 0.26rem;
}

.poster-row {
  margin-top: 0.2rem;
}

.privacy-link {
  display: inline-block;
  margin-top: 0.12rem;
  font-size: 0.21rem;
  color: #2b6fd6;
  text-decoration: underline;
}

.family-status {
  padding: 0.04rem 0 0.08rem;
  font-size: 0.23rem;
  color: var(--ink);
}

.family-status b {
  letter-spacing: 0.04rem;
}

.panel-tip.tight {
  padding: 0.04rem 0 0.08rem;
}

/* 多孩子档案 */
.profile-row {
  display: flex;
  align-items: center;
  padding: 0.16rem 0;
  border-bottom: 0.02rem dashed #e9deca;
  font-size: 0.26rem;
}

.profile-row.active {
  font-weight: 800;
}

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

.profile-tag {
  display: inline-block;
  margin-left: 0.12rem;
  padding: 0.02rem 0.12rem;
  border-radius: 999px;
  background: var(--sun);
  border: 0.02rem solid var(--ink);
  font-size: 0.17rem;
  font-weight: 800;
}

.profile-switch,
.profile-del {
  margin-left: 0.16rem;
  padding: 0.06rem 0.16rem;
  border: 0.02rem solid var(--ink);
  border-radius: 999px;
  background: #fffdf8;
  font-size: 0.2rem;
  font-weight: 700;
  cursor: pointer;
}

.profile-del {
  color: var(--coral);
  border-color: rgba(255, 111, 97, 0.55);
}



/* ============================================================
   v3 首页 / 养成中心（贴纸手账风的结构优化）
   ============================================================ */

.home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.2rem;
  padding: 0.12rem 0.04rem 0.2rem;
}

.head-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex-shrink: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.06rem;
  min-height: 0.56rem;
  padding: 0 0.18rem;
  border: 0.03rem solid var(--ink);
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: 0 0.05rem 0 rgba(43, 36, 56, 0.16);
  font-size: 0.24rem;
  font-weight: 800;
}

.streak-pill {
  background: #fff0c2;
}

.coin-pill {
  background: #fff7dd;
}

/* ---------- 首页：小怪兽主卡 ---------- */

.pet-hero {
  position: relative;
  padding: 0.2rem;
  background: var(--paper, #fffdf8);
  overflow: hidden;
}

.pet-hero-top {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.12rem;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 0.56rem;
  padding: 0 0.2rem;
  border: 0.03rem solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fffdf8;
  font-size: 0.24rem;
  font-weight: 800;
  letter-spacing: 0.02rem;
}

.mood-badge,
.affection-badge {
  display: inline-flex;
  align-items: center;
  min-height: 0.52rem;
  padding: 0 0.16rem;
  border: 0.03rem solid var(--ink);
  border-radius: 999px;
  background: #fff7dd;
  font-size: 0.22rem;
  font-weight: 700;
}

.pet-hero .hero-scene {
  position: relative;
  height: 3.3rem;
  margin: 0.16rem 0 0;
  border: 0.03rem solid var(--ink);
  border-radius: 0.26rem;
  overflow: hidden;
}

.hero-bubble {
  position: absolute;
  top: 0.16rem;
  left: 0.16rem;
  z-index: 5;
  max-width: 66%;
  padding: 0.1rem 0.18rem;
  border: 0.03rem solid var(--ink);
  border-radius: 0.2rem 0.2rem 0.2rem 0.04rem;
  background: #fffdf8;
  box-shadow: 0 0.04rem 0 rgba(43, 36, 56, 0.14);
  font-size: 0.23rem;
  font-weight: 700;
  line-height: 1.45;
}

.care-cta {
  position: absolute;
  right: 0.16rem;
  bottom: 0.16rem;
  z-index: 6;
  min-height: 0.8rem;
  padding: 0 0.22rem;
  border: 0.03rem solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 0 0.06rem 0 var(--ink);
  font: inherit;
  font-size: 0.25rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}

.care-cta:active {
  transform: translateY(0.04rem);
  box-shadow: 0 0.02rem 0 var(--ink);
}

.pet-hero-body {
  padding-top: 0.18rem;
}

.pet-hero-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.14rem;
  font-size: 0.32rem;
  font-weight: 800;
}

.pet-hero-lv {
  flex-shrink: 0;
  font-size: 0.22rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.exp-row {
  display: flex;
  justify-content: space-between;
  gap: 0.12rem;
  margin-top: 0.12rem;
  font-size: 0.21rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.exp-bar {
  height: 0.22rem;
  margin-top: 0.08rem;
  border: 0.03rem solid var(--ink);
  border-radius: 999px;
  background: #efe4d3;
  overflow: hidden;
}

.exp-bar.big {
  height: 0.28rem;
}

.exp-fill {
  height: 100%;
  border-radius: 999px;
  background-image: linear-gradient(90deg, #ffd84d, #ff8f5e);
  transition: width 0.45s ease;
}

.hero-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-top: 0.14rem;
}

.hero-attr {
  display: inline-flex;
  align-items: center;
  gap: 0.04rem;
  padding: 0.06rem 0.14rem;
  border: 0.02rem dashed #d8ccb7;
  border-radius: 999px;
  background: #fffaf0;
  font-size: 0.2rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero-attr-emoji {
  font-size: 0.22rem;
}

/* ---------- 首页：数据条 / 目标 / 任务 ---------- */

.stat-strip {
  display: flex;
  margin-top: 0.2rem;
  border: 0.03rem solid var(--ink);
  border-radius: 0.24rem;
  background: #fffdf8;
  box-shadow: 0 0.06rem 0 rgba(43, 36, 56, 0.14);
  overflow: hidden;
}

.stat-cell {
  flex: 1;
  min-width: 0;
  padding: 0.16rem 0.06rem;
  text-align: center;
}

.stat-cell + .stat-cell {
  border-left: 0.02rem dashed #e3d7c2;
}

.stat-num {
  font-size: 0.32rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-label {
  margin-top: 0.03rem;
  font-size: 0.19rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.goal-card {
  margin-top: 0.2rem;
  padding: 0.2rem;
}

.goal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.12rem;
}

.goal-card-title {
  font-size: 0.28rem;
  font-weight: 800;
}

.goal-card-note {
  padding: 0.03rem 0.12rem;
  border-radius: 999px;
  background: #fff0c2;
  font-size: 0.19rem;
  font-weight: 700;
}

.task-head {
  margin-top: 0.32rem;
}

.section-sub {
  margin-top: 0.04rem;
  font-size: 0.21rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.task-count-pill {
  flex-shrink: 0;
  min-width: 0.9rem;
  padding: 0.06rem 0.18rem;
  border: 0.03rem solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  text-align: center;
  font-size: 0.23rem;
  font-weight: 800;
}

.task-progress {
  height: 0.14rem;
  margin: 0.1rem 0 0.2rem;
  border: 0.02rem solid var(--ink);
  border-radius: 999px;
  background: #f0e6d4;
  overflow: hidden;
}

.task-progress-fill {
  height: 100%;
  border-radius: 999px;
  background-image: linear-gradient(90deg, #7be0c3, #35cba8);
  transition: width 0.4s ease;
}

[data-view="home"] .task {
  min-height: 0.98rem;
  padding: 0.18rem 0.2rem;
}

[data-view="home"] .task .task-title {
  font-size: 0.29rem;
}

[data-view="home"] .task .task-star {
  color: #a76b09;
}

/* ---------- 养成中心 ---------- */

.pet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.16rem;
}

.head-sticker {
  flex-shrink: 0;
  margin-top: 0.06rem;
  padding: 0.06rem 0.14rem;
  border: 0.03rem solid var(--ink);
  background: rgba(255, 201, 60, 0.75);
  box-shadow: 0 0.04rem 0 rgba(43, 36, 56, 0.18);
  font-size: 0.19rem;
  font-weight: 800;
  transform: rotate(3deg);
}

.pet-stage-card {
  padding: 0.2rem;
  margin-top: 0.06rem;
}

.pet-stage-top {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  margin-bottom: 0.14rem;
}

.pet-stage-top .affection-badge {
  margin-left: auto;
}

.pet-stage-card .pet-scene {
  position: relative;
  height: 3.7rem;
  border: 0.03rem solid var(--ink);
  border-radius: 0.26rem;
  overflow: hidden;
}

.pet-stage-card .pet-big {
  font-size: 1.85rem;
}

.pet-stage-card .pet-accessory.big {
  font-size: 0.6rem;
  top: 12%;
  right: 2%;
}

.pet-stage-body {
  padding-top: 0.2rem;
}

.pet-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.14rem;
}

.pet-name {
  font-size: 0.34rem;
  font-weight: 800;
}

.pet-next-stage {
  flex-shrink: 0;
  font-size: 0.2rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.exp-hint {
  margin-top: 0.08rem;
  font-size: 0.21rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.pet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12rem;
  margin-top: 0.18rem;
}

.pet-actions .btn {
  min-height: 0.72rem;
  padding: 0 0.22rem;
}

/* 照顾 */
.care-card {
  margin-top: 0.22rem;
  padding: 0.2rem;
}

.care-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.12rem;
}

.card-title {
  font-size: 0.3rem;
  font-weight: 800;
}

.card-sub {
  margin-top: 0.04rem;
  font-size: 0.21rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.mood-num {
  flex-shrink: 0;
  padding: 0.05rem 0.14rem;
  border: 0.02rem solid var(--ink);
  border-radius: 999px;
  background: #fff7dd;
  font-size: 0.24rem;
  font-weight: 800;
}

.mood-bar {
  height: 0.18rem;
  margin-top: 0.14rem;
  border: 0.025rem solid var(--ink);
  border-radius: 999px;
  background: #efe4d3;
  overflow: hidden;
}

.mood-fill {
  height: 100%;
  border-radius: 999px;
  background-image: linear-gradient(90deg, #ffd84d, #ff9f5e);
  transition: width 0.4s ease;
}

.mood-hint {
  margin-top: 0.08rem;
  font-size: 0.21rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.12rem;
  margin-top: 0.18rem;
}

.care-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.04rem;
  min-height: 1.5rem;
  padding: 0.16rem 0.08rem;
  border: 0.03rem solid var(--ink);
  border-radius: 0.22rem;
  background: #fffaf0;
  box-shadow: 0 0.06rem 0 rgba(43, 36, 56, 0.18);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.care-btn:active {
  transform: translateY(0.04rem);
  box-shadow: 0 0.02rem 0 rgba(43, 36, 56, 0.18);
}

.care-btn.disabled {
  opacity: 0.48;
  box-shadow: none;
  cursor: default;
}

.care-emoji {
  font-size: 0.5rem;
  line-height: 1.1;
}

.care-title {
  font-size: 0.23rem;
  font-weight: 800;
}

.care-cost {
  font-size: 0.19rem;
  font-weight: 700;
  color: #a76b09;
}

.care-left {
  font-size: 0.17rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

/* 属性 */
.attrs-card {
  margin-top: 0.22rem;
  padding: 0.2rem;
}

.attr-row {
  margin-top: 0.16rem;
}

.attr-head {
  display: flex;
  align-items: baseline;
  gap: 0.08rem;
  font-size: 0.23rem;
  font-weight: 700;
}

.attr-emoji {
  font-size: 0.28rem;
}

.attr-name {
  flex: 0 0 auto;
}

.attr-tier {
  flex: 1;
  font-size: 0.18rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.attr-value {
  font-weight: 800;
}

.attr-bar {
  height: 0.16rem;
  margin-top: 0.06rem;
  border: 0.025rem solid var(--ink);
  border-radius: 999px;
  background: #f0e6d4;
  overflow: hidden;
}

.attr-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.attr-body {
  background-image: linear-gradient(90deg, #ffb36b, #ff8f5e);
}

.attr-mind {
  background-image: linear-gradient(90deg, #9fd8ff, #5fb8f5);
}

.attr-heart {
  background-image: linear-gradient(90deg, #ff9db1, #ff6f91);
}

.attr-next {
  margin-top: 0.04rem;
  font-size: 0.18rem;
  font-weight: 600;
  color: var(--ink-faint, #a79db5);
}

/* 衣橱 */
.wardrobe-scroll {
  display: flex;
  gap: 0.14rem;
  margin: 0.02rem -0.06rem 0;
  padding: 0.04rem 0.06rem 0.16rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.wardrobe-scroll::-webkit-scrollbar {
  display: none;
}

.wardrobe-item {
  flex: 0 0 1.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  padding: 0.14rem 0.1rem;
  border: 0.03rem solid var(--ink);
  border-radius: 0.22rem;
  background: #fffdf8;
  box-shadow: 0 0.06rem 0 rgba(43, 36, 56, 0.16);
  scroll-snap-align: start;
}

.wardrobe-item.locked {
  opacity: 0.62;
  background: #f7efe2;
  box-shadow: none;
}

.wardrobe-item.equipped {
  background: #fff3c9;
  outline: 0.04rem solid var(--sun);
}

.wardrobe-emoji {
  font-size: 0.54rem;
  line-height: 1.2;
}

.wardrobe-name {
  font-size: 0.21rem;
  font-weight: 800;
  text-align: center;
}

.wardrobe-btn {
  width: 100%;
  min-height: 0.5rem;
  padding: 0.03rem 0.08rem;
  border: 0.025rem solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  font: inherit;
  font-size: 0.19rem;
  font-weight: 800;
  cursor: pointer;
}

.wardrobe-btn.ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffdf8;
  color: var(--ink-soft);
  font-weight: 600;
  cursor: default;
}

/* 故事 */
.story-card {
  margin-top: 0.24rem;
  padding: 0.2rem;
}

.story-latest {
  margin-top: 0.14rem;
  padding: 0.16rem;
  border: 0.025rem dashed #d8ccb7;
  border-radius: 0.2rem;
  background: #fffaf0;
}

.story-latest.empty {
  opacity: 0.8;
}

.story-label {
  font-size: 0.18rem;
  font-weight: 700;
  color: #a76b09;
}

.story-title {
  margin-top: 0.04rem;
  font-size: 0.27rem;
  font-weight: 800;
}

.story-text {
  margin-top: 0.05rem;
  font-size: 0.22rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.story-next {
  margin-top: 0.12rem;
  font-size: 0.2rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.next-reward {
  margin-top: 0.12rem;
  padding: 0.1rem 0.14rem;
  border-radius: 0.16rem;
  background: #fff0c2;
  font-size: 0.2rem;
  font-weight: 700;
}

/* 成长路线文字调整 */
.stage-at {
  font-size: 0.18rem !important;
}

/* 手机安全区 */
@supports (padding: env(safe-area-inset-bottom)) {
  .home-head,
  .pet-head {
    padding-top: max(0.1rem, env(safe-area-inset-top));
  }
}

/* iPad：任务卡改为紧凑的纵向布局，避免两栏里标题被挤成多行 */
@media (min-width: 768px) {
  [data-view="home"] .task {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    min-height: 1.35rem;
    padding: 0.16rem 0.18rem;
  }

  [data-view="home"] .task .task-emoji {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 0.18rem;
    font-size: 0.38rem;
  }

  [data-view="home"] .task .task-body {
    width: 100%;
    margin-top: 0.08rem;
  }

  [data-view="home"] .task .task-title {
    padding-right: 0.36rem;
    font-size: 0.25rem;
    line-height: 1.35;
  }

  [data-view="home"] .task .task-meta {
    flex-wrap: nowrap;
    margin-top: 0.05rem;
    font-size: 0.18rem;
  }

  [data-view="home"] .task .task-check {
    position: absolute;
    top: 0.16rem;
    right: 0.16rem;
    width: 0.4rem;
    height: 0.4rem;
  }

  [data-view="home"] .task .task-stamp {
    right: 0.14rem;
    bottom: 0.12rem;
  }
}

/* ============================================================
   v3.1 小怪兽手绘形态（SVG）
   ============================================================ */

.pet-art {
  display: block;
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
  animation: bob 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0.1rem 0 rgba(43, 36, 56, 0.12));
  -webkit-user-drag: none;
  user-select: none;
}

.pet-art.big {
  width: 3.45rem;
  height: 3.45rem;
  animation-duration: 3s;
  filter: drop-shadow(0 0.14rem 0 rgba(43, 36, 56, 0.13));
}

.pet-art.pet-bounce {
  animation: petJump 0.36s ease-in-out 2;
}

.pet-art.pet-aura,
.pet-art.aura {
  filter: drop-shadow(0 0.12rem 0 rgba(43, 36, 56, 0.14)) drop-shadow(0 0 0.16rem rgba(255, 210, 74, 0.75));
}

.stage-art {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
  margin: 0 auto 0.04rem;
  object-fit: contain;
}

.stage.locked .stage-art {
  opacity: 0.45;
  filter: grayscale(0.65);
}

/* 装饰按部件定位：帽子在头顶、墨镜在眼睛、围巾在脖子 */
.pet-accessory.acc-hat {
  top: 38%;
  right: auto;
  left: 50%;
  z-index: 6;
  transform: translateX(-50%) rotate(-8deg);
  font-size: 0.52rem;
}

.pet-accessory.big.acc-hat {
  top: 38%;
  z-index: 6;
  font-size: 0.62rem;
}

.pet-accessory.acc-glasses {
  top: 54%;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.4rem;
}

.pet-accessory.big.acc-glasses {
  top: 55%;
  font-size: 0.5rem;
}

.pet-accessory.acc-scarf {
  top: 62%;
  right: 3%;
}

.pet-accessory.acc-halo {
  top: 18%;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
}

.pet-accessory.big.acc-halo {
  top: 16%;
  font-size: 0.72rem;
}

.pet-accessory.acc-wings {
  top: 34%;
  right: -2%;
  font-size: 0.62rem;
}

.pet-accessory.big.acc-wings {
  top: 32%;
  font-size: 0.76rem;
}


/* 让宠物和装饰浮在气泡之上，帽子才不会被聊天气泡挡住 */
[data-view="home"] .pet-wrap {
  z-index: 7;
}

[data-view="pet"] .pet-center {
  z-index: 7;
}

/* 帽子戴在右侧头顶，避开左上角的聊天气泡 */
[data-view="home"] .pet-wrap,
[data-view="pet"] .pet-center {
  z-index: 3;
}

.pet-accessory.acc-hat {
  top: 38%;
  right: 4%;
  left: auto;
  z-index: 8;
  transform: rotate(-8deg);
}

.pet-accessory.big.acc-hat {
  top: 36%;
  right: 6%;
}

/* ============================================================
   v4 · 糖果星球主题（明亮 3D / 现代儿童游戏 HUD）
   ============================================================ */

:root {
  --ink: #2a1b4a;
  --ink-soft: #6c5c8a;
  --ink-faint: #9c8dbb;
  --candy-pink: #ff6fb5;
  --candy-purple: #8a6bff;
  --candy-mint: #3fe0be;
  --candy-yellow: #ffd166;
  --candy-orange: #ff9b5e;
  --candy-blue: #5ec8ff;
  --candy-shadow: 0 18px 38px rgba(86, 56, 160, 0.18);
}

html {
  background: #cdeaff;
}

body {
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, #fff7c2 0%, rgba(255, 247, 194, 0) 55%),
    radial-gradient(70% 50% at 8% 18%, rgba(255, 139, 203, 0.5), rgba(255, 139, 203, 0) 70%),
    radial-gradient(60% 45% at 94% 26%, rgba(94, 200, 255, 0.55), rgba(94, 200, 255, 0) 72%),
    radial-gradient(70% 60% at 50% 100%, rgba(63, 224, 190, 0.32), rgba(63, 224, 190, 0) 70%),
    linear-gradient(165deg, #bee7ff 0%, #e3d9ff 46%, #ffe4f3 76%, #fff7d6 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1.4px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1.2px, transparent 2px);
  background-size: 120px 120px, 80px 80px, 170px 170px;
  background-position: 0 0, 40px 60px, 90px 20px;
  opacity: 0.75;
  animation: candyTwinkle 6s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 5rem;
  height: 5rem;
  right: -1.8rem;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8d6, #ffd166 45%, #ff9b5e 100%);
  box-shadow: 0 0 1.2rem rgba(255, 180, 80, 0.55);
  opacity: 0.85;
  animation: candyFloat 8s ease-in-out infinite;
}

@keyframes candyTwinkle {
  from { opacity: 0.45; }
  to { opacity: 0.85; }
}

@keyframes candyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-0.3rem) rotate(6deg); }
}

.app-shell {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* ---------- 文字 / 标题 ---------- */

.home-head,
.pet-head {
  padding-top: max(0.14rem, env(safe-area-inset-top));
}

.hello-date {
  font-size: 0.21rem;
  font-weight: 800;
  letter-spacing: 0.01rem;
  color: #6a4fe0;
}

.hello-title {
  font-size: 0.46rem;
  font-weight: 900;
  letter-spacing: -0.01rem;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.85);
}

.hello-emoji {
  filter: drop-shadow(0 3px 0 rgba(255, 255, 255, 0.6));
}

.head-pills {
  gap: 0.1rem;
}

.pill {
  border: 0;
  background: linear-gradient(180deg, #ffffff, #f1e7ff);
  box-shadow:
    0 8px 18px rgba(86, 56, 160, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-weight: 900;
  min-height: 0.6rem;
  padding: 0 0.2rem;
}

.streak-pill {
  background: linear-gradient(180deg, #fff2b8, #ffd166);
}

.coin-pill {
  background: linear-gradient(180deg, #fffdf2, #ffe6a6);
}

.section-title,
.h1,
.h2 {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.01rem;
}

.section-sub,
.muted,
.week-sub,
.task-count {
  color: var(--ink-soft);
  font-weight: 700;
}

/* ---------- 卡片：糖果玻璃 ---------- */

[data-view] .card,
[data-view] .panel,
[data-view] .scene,
[data-view] .goal-card,
[data-view] .week,
[data-view] .task,
[data-view] .badge-cell,
[data-view] .reward,
[data-view] .record,
[data-view] .archive,
[data-view] .lock,
[data-view] .overview,
[data-view] .prow,
[data-view] .wish-box,
[data-view] .tool-card,
[data-view] .feed,
[data-view] .growth {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 0.3rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72));
  box-shadow:
    0 0.18rem 0.38rem rgba(86, 56, 160, 0.16),
    inset 0 0.03rem 0 rgba(255, 255, 255, 0.96),
    inset 0 -0.03rem 0 rgba(160, 120, 220, 0.08);
}

[data-view] .tape,
[data-view] .hero-tape,
[data-view] .balance-tape,
[data-view] .head-sticker,
[data-view] .sticker {
  display: none;
}

/* ---------- 按钮：果冻 3D ---------- */

.btn,
.btn.small {
  min-height: 0.66rem;
  padding: 0 0.26rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9bd0, #ff5fae);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.02rem;
  text-shadow: 0 2px 0 rgba(166, 35, 105, 0.35);
  box-shadow:
    0 0.09rem 0 #d93c8a,
    0 0.2rem 0.34rem rgba(255, 95, 174, 0.32),
    inset 0 0.03rem 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active,
.btn.small:active {
  transform: translateY(0.06rem) scale(0.985);
  box-shadow:
    0 0.03rem 0 #d93c8a,
    0 0.08rem 0.18rem rgba(255, 95, 174, 0.28);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.86);
  color: var(--candy-purple);
  text-shadow: none;
  box-shadow:
    0 0.07rem 0 rgba(138, 107, 255, 0.28),
    inset 0 0.03rem 0 #fff;
}

.btn.disabled,
.btn[disabled] {
  background: linear-gradient(180deg, #e7e1f2, #d5cce8);
  color: #9c8dbb;
  text-shadow: none;
  box-shadow: none;
}

.care-cta,
.home-care {
  border: 0;
  background: linear-gradient(180deg, #ffe89a, #ffb84d);
  color: #6b3d00;
  font-weight: 900;
  box-shadow:
    0 0.09rem 0 #e08a1e,
    0 0.22rem 0.36rem rgba(255, 158, 54, 0.36),
    inset 0 0.03rem 0 rgba(255, 255, 255, 0.8);
  text-shadow: none;
}

/* ---------- HUD 数据条 ---------- */

.stat-strip {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 0.28rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74));
  box-shadow: 0 0.16rem 0.32rem rgba(86, 56, 160, 0.16), inset 0 0.03rem 0 #fff;
}

.stat-cell + .stat-cell {
  border-left: 1px solid rgba(138, 107, 255, 0.14);
}

.stat-num {
  font-size: 0.34rem;
  font-weight: 900;
  background: linear-gradient(180deg, #6a4fe0, #b06bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--ink-soft);
  font-weight: 800;
}

/* ---------- 首页小怪兽舞台 ---------- */

[data-view="home"] .pet-hero {
  position: relative;
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 0.34rem;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 60%),
    linear-gradient(165deg, #baf3ff 0%, #dcd3ff 45%, #ffe0f2 100%);
  box-shadow:
    0 0.24rem 0.46rem rgba(86, 56, 160, 0.22),
    inset 0 0.04rem 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

[data-view="home"] .pet-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.8) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 70% 66%, rgba(255, 255, 255, 0.7) 0 1.4px, transparent 2.4px);
  opacity: 0.9;
}

.level-badge {
  border: 0;
  background: linear-gradient(180deg, #8f74ff, #6a4fe0);
  color: #fff;
  box-shadow: 0 0.06rem 0 #4b32b0, 0 0.14rem 0.26rem rgba(106, 79, 224, 0.35);
  font-weight: 900;
}

.mood-badge,
.affection-badge {
  border: 0;
  background: rgba(255, 255, 255, 0.76);
  color: #6a4fe0;
  box-shadow: inset 0 0.02rem 0 #fff, 0 0.06rem 0.14rem rgba(138, 107, 255, 0.16);
  font-weight: 800;
}

[data-view="home"] .hero-scene {
  border: 0;
  border-radius: 0.28rem;
  box-shadow:
    inset 0 -0.4rem 0.6rem rgba(63, 224, 190, 0.35),
    inset 0 0.3rem 0.6rem rgba(94, 200, 255, 0.25);
}

[data-view="home"] .scene-sun {
  background: radial-gradient(circle at 35% 30%, #fffbe0, #ffd166 55%, #ff9b5e 100%);
  box-shadow: 0 0 0.5rem rgba(255, 200, 80, 0.6);
}

[data-view="home"] .scene-hill.hill-a,
[data-view="home"] .scene-hill.hill-b {
  background: linear-gradient(180deg, #8cf5d8, #3fd6ae);
}

[data-view="home"] .hero-bubble {
  border: 0;
  border-radius: 0.22rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0.08rem 0.18rem rgba(86, 56, 160, 0.16), inset 0 0.02rem 0 #fff;
  color: #5a3fb8;
  font-weight: 800;
}

[data-view="home"] .hero-bubble::after {
  border-top-color: rgba(255, 255, 255, 0.86);
}

.pet-hero-name {
  font-weight: 900;
}

.exp-bar,
.bar {
  border: 0;
  background: rgba(72, 46, 130, 0.14);
  box-shadow: inset 0 0.03rem 0.08rem rgba(42, 27, 74, 0.18);
}

.exp-fill,
.bar-fill,
.goal-fill,
.mood-fill,
.attr-fill,
.task-progress-fill {
  background-image: linear-gradient(90deg, #5ee7ff, #8a6bff 55%, #ff6fb5);
  box-shadow: 0 0 0.16rem rgba(138, 107, 255, 0.45);
}

[data-view="home"] .goal-card {
  border: 0;
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(255, 209, 102, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72));
}

.goal-card-title {
  font-weight: 900;
}

.goal-card-note {
  background: linear-gradient(180deg, #ffe89a, #ffd166);
  color: #7a4a00;
  font-weight: 900;
  box-shadow: 0 0.05rem 0 #e0a51e;
}

.goal-head span:last-child,
.exp-row,
.hero-next,
.feed-hint,
.mood-hint,
.exp-hint {
  color: var(--ink-soft);
  font-weight: 700;
}

/* 宝箱 */
[data-view] .chest-card {
  border: 0;
  border-radius: 0.28rem;
  background: linear-gradient(135deg, #fff1a8, #ffd166 55%, #ffb347);
  box-shadow:
    0 0.18rem 0.34rem rgba(224, 138, 30, 0.28),
    inset 0 0.03rem 0 rgba(255, 255, 255, 0.9);
  color: #5c3400;
}

.chest-title {
  font-weight: 900;
}

.chest-sub {
  color: #7a4a00;
  font-weight: 700;
}

/* 任务 */
.task-head {
  margin-top: 0.34rem;
}

.task-count-pill {
  border: 0;
  background: linear-gradient(180deg, #9af3dd, #3fe0be);
  color: #075c4b;
  box-shadow: 0 0.06rem 0 #16a98c, 0 0.12rem 0.2rem rgba(63, 224, 190, 0.3);
  font-weight: 900;
}

.task-progress {
  border: 0;
  background: rgba(72, 46, 130, 0.12);
  box-shadow: inset 0 0.03rem 0.06rem rgba(42, 27, 74, 0.16);
}

[data-view="home"] .task {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 0.26rem;
  background: linear-gradient(180deg, #ffffff, #f7f2ff);
  box-shadow:
    0 0.12rem 0.24rem rgba(86, 56, 160, 0.14),
    inset 0 0.03rem 0 #fff;
  overflow: hidden;
}

[data-view="home"] .task::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0.14rem;
  bottom: 0.14rem;
  width: 0.06rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #5ec8ff, #8a6bff);
  opacity: 0.9;
}

[data-view="home"] .task.is-done {
  opacity: 0.66;
  background: linear-gradient(180deg, #f4efff, #e9e1ff);
}

.task-emoji,
[data-view] .badge-emoji,
.reward-emoji {
  border: 0 !important;
  background-image: linear-gradient(135deg, #ffffff, #ffe9f7);
  box-shadow:
    0 0.07rem 0.16rem rgba(86, 56, 160, 0.18),
    inset 0 0.03rem 0 #fff;
}

.bg-coral { background-image: linear-gradient(135deg, #ffb0a1, #ff6a88) !important; }
.bg-mint { background-image: linear-gradient(135deg, #a8f7e6, #3fe0be) !important; }
.bg-grape { background-image: linear-gradient(135deg, #cdbaff, #8a6bff) !important; }
.bg-sky { background-image: linear-gradient(135deg, #a8e4ff, #5ec8ff) !important; }
.bg-sun { background-image: linear-gradient(135deg, #fff0a8, #ffd166) !important; }
.bg-pink { background-image: linear-gradient(135deg, #ffc2dd, #ff6fb5) !important; }

.task-title {
  font-weight: 900;
  color: var(--ink);
}

.task-star {
  padding: 0.03rem 0.12rem;
  border-radius: 999px;
  background: #fff4c2;
  color: #8a5b00;
  font-weight: 900;
}

.task-cat {
  padding: 0.03rem 0.1rem;
  border-radius: 999px;
  background: rgba(138, 107, 255, 0.1);
  color: #6a4fe0;
  font-weight: 800;
}

.task-check {
  border: 0 !important;
  background: linear-gradient(180deg, #ffffff, #e9e2ff);
  box-shadow:
    0 0.06rem 0 rgba(138, 107, 255, 0.25),
    inset 0 0.02rem 0 #fff;
}

.task-check.checked {
  background: linear-gradient(180deg, #7cf5d6, #2fd0b2);
  box-shadow: 0 0.06rem 0 #159a80, 0 0 0.2rem rgba(63, 224, 190, 0.55);
  color: #fff;
}

.task-stamp {
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: #6a4fe0;
  box-shadow: 0 0.04rem 0 rgba(138, 107, 255, 0.2);
}

/* 提醒 / 周脚印 */
.reminder {
  border: 0;
  border-radius: 0.24rem;
  background: linear-gradient(135deg, #fff1b8, #ffd166);
  box-shadow: 0 0.12rem 0.24rem rgba(224, 138, 30, 0.2);
  color: #6b3d00;
  font-weight: 800;
}

[data-view] .week {
  border: 0;
}

.week-day {
  border-radius: 0.16rem;
}

.week-day.today {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.06rem 0.14rem rgba(86, 56, 160, 0.16);
}

.week-dot {
  border: 0;
  background: rgba(138, 107, 255, 0.12);
}

.week-day.done .week-dot {
  background: linear-gradient(180deg, #a8f7e6, #3fe0be);
}

.week-day.perfect .week-dot {
  background: linear-gradient(180deg, #ffe89a, #ffd166);
}

/* ---------- 养成中心 ---------- */

[data-view="pet"] .pet-stage-card {
  border: 0;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, 0.9), transparent 65%),
    linear-gradient(165deg, #c9f3ff, #e2d6ff 50%, #ffe3f4);
  box-shadow: 0 0.24rem 0.46rem rgba(86, 56, 160, 0.22), inset 0 0.04rem 0 #fff;
}

[data-view="pet"] .pet-scene {
  border: 0;
  box-shadow:
    inset 0 -0.5rem 0.7rem rgba(63, 224, 190, 0.32),
    inset 0 0.3rem 0.6rem rgba(94, 200, 255, 0.25);
}

[data-view="pet"] .scene-sun {
  background: radial-gradient(circle at 35% 30%, #fffbe0, #ffd166 55%, #ff9b5e 100%);
  box-shadow: 0 0 0.55rem rgba(255, 200, 80, 0.65);
}

[data-view="pet"] .scene-hill.p-hill-a,
[data-view="pet"] .scene-hill.p-hill-b {
  background: linear-gradient(180deg, #8cf5d8, #3fd6ae);
}

[data-view="pet"] .scene-bubble {
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0.08rem 0.18rem rgba(86, 56, 160, 0.16);
  color: #5a3fb8;
  font-weight: 800;
}

[data-view="pet"] .care-card,
[data-view="pet"] .attrs-card,
[data-view="pet"] .story-card {
  border: 0;
}

.care-btn {
  border: 0;
  border-radius: 0.24rem;
  background: linear-gradient(180deg, #fff, #f2ebff);
  box-shadow:
    0 0.1rem 0 rgba(138, 107, 255, 0.2),
    0 0.16rem 0.3rem rgba(86, 56, 160, 0.14),
    inset 0 0.03rem 0 #fff;
}

.care-btn:active {
  transform: translateY(0.05rem);
  box-shadow: 0 0.04rem 0 rgba(138, 107, 255, 0.2);
}

.care-btn.disabled {
  opacity: 0.5;
  box-shadow: none;
}

.care-cost {
  color: #8a5b00;
  font-weight: 900;
}

.mood-num {
  border: 0;
  background: linear-gradient(180deg, #fff5e6, #ffe0b5);
  color: #7a4a00;
  box-shadow: 0 0.05rem 0 rgba(224, 138, 30, 0.25);
  font-weight: 900;
}

.attr-tier {
  color: #6a4fe0;
  font-weight: 800;
}

.attr-body { background-image: linear-gradient(90deg, #ffd166, #ff9b5e); }
.attr-mind { background-image: linear-gradient(90deg, #8fe4ff, #5ec8ff); }
.attr-heart { background-image: linear-gradient(90deg, #ffb3d1, #ff6fb5); }

.wardrobe-item {
  border: 0;
  border-radius: 0.26rem;
  background: linear-gradient(180deg, #fff, #f5efff);
  box-shadow:
    0 0.1rem 0.22rem rgba(86, 56, 160, 0.16),
    inset 0 0.03rem 0 #fff;
}

.wardrobe-item.equipped {
  background:
    linear-gradient(180deg, #fffbe0, #ffe6a6);
  outline: 0.05rem solid #ffd166;
  box-shadow:
    0 0.1rem 0 #e0a51e,
    0 0.2rem 0.36rem rgba(255, 180, 60, 0.35);
}

.wardrobe-item.locked {
  background: linear-gradient(180deg, #f7f2ff, #ece4ff);
  opacity: 0.7;
}

.wardrobe-btn {
  border: 0;
  background: linear-gradient(180deg, #a8f7e6, #3fe0be);
  color: #065c4b;
  box-shadow: 0 0.04rem 0 #159a80;
  font-weight: 900;
}

.wardrobe-btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: #8a79a8;
  box-shadow: none;
}

.story-latest {
  border: 0;
  background: linear-gradient(180deg, #fffaf0, #fff2cf);
  box-shadow: inset 0 0.02rem 0 #fff;
}

.next-reward {
  background: linear-gradient(135deg, #fff1b8, #ffd166);
  color: #6b3d00;
  font-weight: 800;
}

.stage {
  border: 0;
  border-radius: 0.24rem;
  background: linear-gradient(180deg, #fff, #f4efff);
  box-shadow: 0 0.1rem 0.2rem rgba(86, 56, 160, 0.12);
}

.stage.current {
  background: linear-gradient(180deg, #fffbe0, #ffe6a6);
  box-shadow: 0 0.1rem 0 #e0a51e, 0 0.18rem 0.3rem rgba(255, 180, 60, 0.3);
}

[data-view] .archive {
  border: 0;
}

/* ---------- 收集册 ---------- */

[data-view="badges"] .balance {
  border: 0;
  background:
    radial-gradient(90% 100% at 100% 0%, rgba(255, 209, 102, 0.4), transparent 60%),
    linear-gradient(160deg, #d8f7ff, #e6d9ff 55%, #ffe0f2);
  box-shadow: 0 0.2rem 0.4rem rgba(86, 56, 160, 0.2);
}

.balance-num,
.balance-badge {
  font-weight: 900;
}

[data-view="badges"] .badge-cell {
  border: 0;
  border-radius: 0.26rem;
  background: linear-gradient(180deg, #fff, #f6f0ff);
  box-shadow:
    0 0.1rem 0.2rem rgba(86, 56, 160, 0.14),
    inset 0 0.03rem 0 #fff;
}

.badge-cell.earned {
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(255, 233, 160, 0.6), transparent 70%),
    linear-gradient(180deg, #fffdf2, #ffefc2);
}

[data-view="badges"] .reward {
  border: 0;
  background: linear-gradient(180deg, #fff, #f7f2ff);
  box-shadow: 0 0.1rem 0.2rem rgba(86, 56, 160, 0.14);
}

[data-view="badges"] .wish-box {
  border: 0;
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(255, 139, 203, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.74));
}

.wish-type.active {
  background: linear-gradient(180deg, #ff9bd0, #ff5fae);
  color: #fff;
  border: 0;
  box-shadow: 0 0.04rem 0 #d93c8a;
}

/* ---------- 大人模式 ---------- */

[data-view="parent"] .lock {
  border: 0;
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(255, 209, 102, 0.25), transparent 70%),
    linear-gradient(170deg, #e3f7ff, #e9ddff 60%, #ffe6f5);
  box-shadow: 0 0.22rem 0.44rem rgba(86, 56, 160, 0.18);
}

[data-view="parent"] .key {
  border: 0;
  background: linear-gradient(180deg, #fff, #efe8ff);
  box-shadow:
    0 0.06rem 0 rgba(138, 107, 255, 0.25),
    inset 0 0.03rem 0 #fff;
  font-weight: 900;
}

[data-view="parent"] .key:active {
  transform: translateY(0.04rem);
  box-shadow: none;
}

[data-view="parent"] .overview {
  border: 0;
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(94, 200, 255, 0.22), transparent 60%),
    linear-gradient(180deg, #fff, #f4efff);
}

.ov-num {
  font-weight: 900;
  color: #6a4fe0;
}

[data-view="parent"] .panel {
  border: 0;
}

[data-view="parent"] .field-input {
  border: 0;
  border-radius: 0.18rem;
  background: #f4efff;
  box-shadow: inset 0 0.03rem 0.08rem rgba(86, 56, 160, 0.12);
  font-weight: 700;
}

[data-view="parent"] .prow {
  border: 0;
}

[data-view="parent"] .mini-btn {
  border: 0;
  background: linear-gradient(180deg, #a8f7e6, #3fe0be);
  color: #065c4b;
  font-weight: 900;
}

[data-view="parent"] .mini-btn.ghost {
  background: rgba(255, 255, 255, 0.8);
  color: #8a79a8;
}

/* ---------- 底部游戏 Dock ---------- */

.tabbar {
  background: transparent !important;
  padding: 0 0.28rem calc(0.14rem + env(safe-area-inset-bottom)) !important;
  pointer-events: none;
}

.tabbar-inner {
  pointer-events: auto;
  display: flex;
  gap: 0.06rem;
  padding: 0.1rem 0.12rem;
  border-radius: 0.34rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0.24rem 0.5rem rgba(70, 40, 130, 0.26),
    inset 0 0.03rem 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.03rem;
  padding: 0.05rem 0;
  border-radius: 0.24rem;
  transition: transform 0.16s ease, background 0.16s ease;
}

.tab-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #efe8ff);
  box-shadow:
    0 0.05rem 0 rgba(138, 107, 255, 0.2),
    inset 0 0.02rem 0 #fff;
  font-size: 0.28rem;
  line-height: 1;
}

.tab-label {
  font-size: 0.18rem;
  font-weight: 900;
  color: #8a79a8;
}

.tab-item.active {
  background: linear-gradient(180deg, rgba(255, 139, 203, 0.18), rgba(138, 107, 255, 0.12));
}

.tab-item.active .tab-emoji {
  background: linear-gradient(180deg, #ff9bd0, #8a6bff);
  box-shadow:
    0 0.06rem 0 #6a4fe0,
    0 0 0.24rem rgba(255, 111, 181, 0.65);
}

.tab-item.active .tab-label {
  color: #6a4fe0;
}

/* ---------- 弹层 / 提示 ---------- */

.modal,
.notice-card,
.badge-board {
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 0.32rem !important;
  background: linear-gradient(180deg, #ffffff, #f6f0ff) !important;
  box-shadow:
    0 0.3rem 0.7rem rgba(42, 27, 74, 0.28),
    inset 0 0.04rem 0 #fff !important;
}

.toast {
  border: 0;
  border-radius: 999px;
  background: rgba(42, 27, 74, 0.9);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0.14rem 0.3rem rgba(42, 27, 74, 0.3);
}

.check-row,
.profile-row,
.prow {
  border-color: rgba(138, 107, 255, 0.14) !important;
}

/* ---------- 减少动效 ---------- */

html.reduce-motion body::before,
html.reduce-motion body::after {
  animation: none !important;
}

/* ---------- 玩家 HUD ---------- */

.game-hud {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  padding: max(0.12rem, env(safe-area-inset-top)) 0.04rem 0.2rem;
}

.hud-avatar {
  position: relative;
  flex-shrink: 0;
  width: 0.94rem;
  height: 0.94rem;
  padding: 0.055rem;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #ffd166 var(--exp, 0%), rgba(255, 255, 255, 0.42) 0);
  box-shadow:
    0 0.08rem 0.2rem rgba(86, 56, 160, 0.24),
    0 0 0.24rem rgba(255, 209, 102, 0.35);
}

.hud-avatar::after {
  content: '';
  position: absolute;
  inset: 0.055rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.05rem rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.hud-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: radial-gradient(circle at 40% 30%, #e8f8ff, #d9ccff);
}

.hud-level {
  position: absolute;
  right: -0.03rem;
  bottom: -0.02rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0.34rem;
  height: 0.3rem;
  padding: 0 0.07rem;
  border: 0.04rem solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9bd0, #8a6bff);
  box-shadow: 0 0.05rem 0 rgba(106, 79, 224, 0.45);
  color: #fff;
  font-size: 0.16rem;
  font-weight: 900;
  line-height: 1;
}

.hud-info {
  flex: 1;
  min-width: 0;
}

.hud-hello {
  font-size: 0.36rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}

.hud-date {
  margin-top: 0.04rem;
  display: flex;
  align-items: center;
  gap: 0.08rem;
  font-size: 0.19rem;
  font-weight: 800;
  color: #6a4fe0;
}

.hud-pills {
  display: flex;
  flex-direction: column;
  gap: 0.07rem;
  align-items: flex-end;
}

/* 舞台轨道 / 星星 */
.hero-orbit {
  position: absolute;
  left: 50%;
  z-index: 2;
  border-radius: 50%;
  border: 0.025rem solid rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.hero-orbit.orbit-a {
  width: 2.9rem;
  height: 0.8rem;
  bottom: 0.3rem;
  transform: translateX(-50%) rotate(-8deg);
  box-shadow: 0 0 0.18rem rgba(255, 255, 255, 0.5);
}

.hero-orbit.orbit-b {
  width: 3.5rem;
  height: 1rem;
  bottom: 0.16rem;
  transform: translateX(-50%) rotate(7deg);
  border-color: rgba(138, 107, 255, 0.35);
}

/* 目标 / 进度条统一去掉墨线 */
.goal-bar,
.mood-bar,
.attr-bar,
.task-progress,
.exp-bar {
  border: 0 !important;
  background: rgba(72, 46, 130, 0.13) !important;
  box-shadow: inset 0 0.025rem 0.06rem rgba(42, 27, 74, 0.16);
}

.goal-fill,
.mood-fill,
.attr-fill,
.task-progress-fill,
.exp-fill {
  box-shadow: 0 0 0.16rem rgba(138, 107, 255, 0.35);
}

/* 标题渐变 */
.section-head .h2,
.h2 {
  background-image: linear-gradient(100deg, #5a3fb8, #a34fd4 55%, #ff5fa8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 周脚印 */
.week-dot {
  border: 0 !important;
  background: rgba(138, 107, 255, 0.12);
  box-shadow: inset 0 0.02rem 0 rgba(255, 255, 255, 0.8);
}

.week-day.today {
  background: linear-gradient(180deg, #ffffff, #f3ebff);
  border-radius: 0.16rem;
  box-shadow: 0 0.06rem 0.16rem rgba(86, 56, 160, 0.16);
}

.week-day.today .week-label {
  color: #6a4fe0;
  font-weight: 900;
}

/* 底部安全区 + 背景 */
[data-view] {
  padding-bottom: 2.3rem;
}

[data-view="home"] .foot-tip {
  color: rgba(90, 63, 184, 0.6);
  font-weight: 700;
}

/* ---------- 糖果舞台：对话气泡移到底部，宠物头不被挡 ---------- */

[data-view="home"] .hero-bubble {
  top: auto;
  bottom: 1.02rem;
  left: 0.16rem;
  max-width: 58%;
  font-size: 0.22rem;
}

[data-view="home"] .hero-bubble::after {
  display: none;
}

[data-view="pet"] .scene-bubble {
  top: auto;
  bottom: 1.05rem;
  left: 0.16rem;
  right: auto;
  max-width: 62%;
}

/* 宠物脚下的能量光环 */
[data-view="home"] .pet-wrap::before,
[data-view="pet"] .pet-center::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 56%;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, rgba(255, 111, 181, 0), rgba(255, 111, 181, 0.55), rgba(94, 200, 255, 0.55), rgba(255, 209, 102, 0.55), rgba(255, 111, 181, 0));
  filter: blur(0.09rem);
  opacity: 0.55;
  animation: candySpin 9s linear infinite;
}

[data-view="pet"] .pet-center::before {
  width: 3.2rem;
  height: 3.2rem;
  top: 54%;
}

@keyframes candySpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 未完成任务：果冻能量球 */
.task-check {
  width: 0.5rem !important;
  height: 0.5rem !important;
  border: 0.05rem solid rgba(138, 107, 255, 0.22) !important;
  background:
    radial-gradient(circle at 35% 30%, #ffffff, #efe8ff 60%, #dcd0ff) !important;
  box-shadow:
    inset 0 -0.05rem 0.08rem rgba(138, 107, 255, 0.18),
    0 0.05rem 0.12rem rgba(138, 107, 255, 0.18) !important;
}

.task-check::after {
  content: '';
  display: block;
  width: 0.16rem;
  height: 0.16rem;
  margin: 0.12rem auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #ffd166);
  opacity: 0.9;
}

.task-check.checked {
  border-color: rgba(63, 224, 190, 0.5) !important;
  background:
    radial-gradient(circle at 35% 30%, #d8fff5, #3fe0be 60%, #14b394) !important;
  box-shadow:
    0 0 0.24rem rgba(63, 224, 190, 0.55),
    inset 0 0.04rem 0 rgba(255, 255, 255, 0.7) !important;
}

.task-check.checked::after {
  display: none;
}

/* 任务卡片轻微悬浮 */
@media (hover: hover) {
  [data-view="home"] .task:hover {
    transform: translateY(-0.03rem);
    box-shadow:
      0 0.2rem 0.36rem rgba(86, 56, 160, 0.2),
      inset 0 0.03rem 0 #fff;
  }
}

/* 强制气泡浮在舞台内（覆盖页面样式里的 relative） */
[data-view="home"] .hero-scene .hero-bubble {
  position: absolute;
  top: auto;
  bottom: 1.02rem;
  left: 0.16rem;
  right: auto;
  z-index: 8;
  max-width: 58%;
  margin: 0;
  font-size: 0.22rem;
}

[data-view="pet"] .pet-scene .scene-bubble {
  position: absolute;
  top: auto;
  bottom: 1.05rem;
  left: 0.16rem;
  right: auto;
  z-index: 8;
  max-width: 62%;
  margin: 0;
}

/* 云朵改成星星光点，避免一片空白胶囊 */
[data-view="home"] .scene-cloud,
[data-view="pet"] .scene-cloud {
  display: none;
}

[data-view="home"] .hero-scene::after,
[data-view="pet"] .pet-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 30%, rgba(255, 255, 255, 0.9) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 74% 70%, rgba(255, 255, 255, 0.8) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 24% 62%, rgba(255, 255, 255, 0.8) 0 1.2px, transparent 2.2px);
}

/* ---------- 小动物领养 / 切换 ---------- */

.species-panel {
  margin-bottom: 0.2rem;
  padding: 0.2rem;
}

.species-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.1rem;
}

.species-tip {
  flex-shrink: 0;
  padding: 0.04rem 0.12rem;
  border-radius: 999px;
  background: rgba(138, 107, 255, 0.12);
  color: #6a4fe0;
  font-size: 0.18rem;
  font-weight: 800;
}

.species-row {
  display: flex;
  gap: 0.12rem;
  margin-top: 0.16rem;
}

.species-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.1rem 0.06rem 0.12rem;
  border-radius: 0.24rem;
  background: linear-gradient(180deg, #ffffff, #f4efff);
  box-shadow: 0 0.08rem 0.18rem rgba(86, 56, 160, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.species-card:active {
  transform: scale(0.98);
}

.species-card.active {
  background: linear-gradient(180deg, #fffbe0, #ffe6a6);
  box-shadow: 0 0.08rem 0 #e0a51e, 0 0.16rem 0.28rem rgba(255, 180, 60, 0.28);
}

.species-card.locked {
  opacity: 0.72;
}

.species-card img {
  width: 0.9rem;
  height: 0.9rem;
  object-fit: contain;
  filter: drop-shadow(0 0.05rem 0.08rem rgba(58, 43, 92, 0.18));
}

.species-name {
  margin-top: 0.04rem;
  font-size: 0.19rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.species-stage {
  margin-top: 0.02rem;
  font-size: 0.17rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.species-btn {
  margin-top: 0.06rem;
  padding: 0.03rem 0.12rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #a8f7e6, #3fe0be);
  color: #065c4b;
  font-size: 0.17rem;
  font-weight: 900;
}

.species-btn.adopt {
  background: linear-gradient(180deg, #ff9bd0, #ff5fae);
  color: #fff;
  box-shadow: 0 0.04rem 0 #d93c8a;
}

.species-btn.current {
  background: rgba(255, 255, 255, 0.75);
  color: #8a79a8;
}
