/* ============================================================
   猫咪养成类 · 横屏 H5
   主色 #FF8A3D / 暖奶油猫屋
   ============================================================ */
:root {
  --orange: #FF8A3D;
  --orange-deep: #EF6A19;
  --orange-dark: #C8550C;
  --orange-soft: #FFB678;
  --cream: #FFF8EC;
  --cream-2: #FFEFD8;
  --cream-3: #FFE3C1;
  --ink: #4B2E1C;
  --ink-2: #80573C;
  --ink-3: #AD8A6D;
  --line: rgba(120, 75, 40, .14);
  --green: #63C58B;
  --green-deep: #33A464;
  --blue: #61BDF3;
  --blue-deep: #2D95D4;
  --pink: #FF7C9C;
  --pink-deep: #E94B73;
  --gold: #FFC94D;
  --gold-deep: #E39A16;
  --violet: #8C7BE8;
  --radius: 22px;
  --shadow: 0 12px 34px rgba(95, 52, 20, .22);
  --shadow-soft: 0 6px 18px rgba(95, 52, 20, .14);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #F6C98F;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

button, input {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(255, 138, 61, .55);
  outline-offset: 2px;
}
i.mp-icon { flex: none; }
img { display: block; }

.app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- 场景图：整张成品图铺满 ---------- */
.scene-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #F6C98F;
}
.scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, 150vh);
  width: max(100vw, 150dvh);
  height: max(100vh, 66.6667vw);
  height: max(100dvh, 66.6667vw);
  transform: translate(-50%, -50%);
  background-image: url("images/gen/gptimg_1795396676_look.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform-origin: center;
  transition: filter .7s ease, left .5s cubic-bezier(.22, .9, .3, 1);
  animation: roomBreathe 9s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes roomBreathe {
  from { transform: translate(-50%, -50%) scale(1.001); }
  to   { transform: translate(-50%, -50%) scale(1.008); }
}

.mood-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 44% 58%, rgba(255, 224, 160, .16), transparent 62%),
    radial-gradient(100% 100% at 50% 50%, transparent 52%, rgba(84, 44, 16, .16) 100%);
  transition: background .8s ease, opacity .8s ease;
}
.scene.mood-low .mood-tint {
  background:
    radial-gradient(80% 70% at 44% 55%, rgba(126, 162, 190, .18), transparent 64%),
    linear-gradient(180deg, rgba(60, 75, 100, .16), rgba(46, 56, 82, .22));
}
.scene.mood-low { filter: saturate(.72) brightness(.93); }
.scene.mood-great .mood-tint {
  background:
    radial-gradient(58% 48% at 46% 42%, rgba(255, 224, 140, .28), transparent 68%),
    radial-gradient(100% 100% at 50% 50%, transparent 56%, rgba(120, 62, 16, .14) 100%);
}

/* 脏污 */
.dirt-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
  background:
    radial-gradient(ellipse 3.4% 2.2% at 36% 76%, rgba(113, 70, 31, .44) 0 50%, transparent 72%),
    radial-gradient(ellipse 2.2% 1.5% at 44% 81%, rgba(113, 70, 31, .34) 0 50%, transparent 72%),
    radial-gradient(ellipse 4.2% 2.5% at 52% 74%, rgba(113, 70, 31, .30) 0 50%, transparent 72%),
    radial-gradient(ellipse 1.8% 1.3% at 60% 80%, rgba(113, 70, 31, .36) 0 50%, transparent 72%),
    radial-gradient(ellipse 2.6% 1.7% at 31% 68%, rgba(113, 70, 31, .25) 0 50%, transparent 72%),
    radial-gradient(ellipse 2.2% 1.4% at 67% 70%, rgba(113, 70, 31, .24) 0 50%, transparent 72%);
}

/* ---------- 猫猫装扮层 ---------- */
.outfit-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.outfit {
  display: none;
  position: absolute;
  pointer-events: none;
}
.outfit.on {
  display: block;
  animation: equipPop .48s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes equipPop {
  0% { transform: scale(.6) translateY(8%); opacity: 0; }
  62% { transform: scale(1.07) translateY(-1%); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* 蝴蝶结 */
.outfit-bow {
  left: 36.6%;
  top: 46.4%;
  width: 12.2%;
  height: 7.6%;
  z-index: 8;
  transform-origin: 50% 90%;
  filter: drop-shadow(0 3px 4px rgba(128, 20, 35, .30));
}
.bow-loop {
  position: absolute;
  top: 13%;
  width: 43%;
  height: 72%;
  background: linear-gradient(155deg, #FF8FA0 0%, #F04F6B 48%, #D92F51 100%);
  border-radius: 62% 38% 54% 46% / 58% 64% 36% 42%;
  box-shadow: inset 0 -5px 8px rgba(151, 22, 47, .38), inset 0 2px 4px rgba(255, 255, 255, .45);
}
.bow-loop-l { left: 1%; transform: rotate(-11deg); }
.bow-loop-r { right: 1%; transform: rotate(11deg) scaleX(-1); }
.bow-knot {
  position: absolute;
  left: 40%;
  top: 20%;
  width: 21%;
  height: 60%;
  border-radius: 46%;
  background: radial-gradient(circle at 34% 30%, #FFA6B3 0%, #E23F5E 58%, #BE2443 100%);
  box-shadow: inset 0 -3px 4px rgba(130, 16, 39, .35), 0 2px 3px rgba(120, 30, 30, .2);
  z-index: 2;
}

/* 围巾 */
.outfit-scarf {
  left: 33.2%;
  top: 45.4%;
  width: 21%;
  height: 15%;
  z-index: 7;
  filter: drop-shadow(0 4px 6px rgba(150, 58, 12, .28));
}
.scarf-band {
  position: absolute;
  left: 5%;
  top: 4%;
  width: 90%;
  height: 30%;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFC07A 0%, #FF9B4A 42%, #F0772A 100%);
  border: 1px solid rgba(255, 239, 214, .55);
  box-shadow: inset 0 -5px 8px rgba(191, 87, 21, .30), inset 0 3px 3px rgba(255, 255, 255, .35);
  transform: rotate(-2deg);
}
.scarf-band::after {
  content: "";
  position: absolute;
  inset: 32% 4% auto;
  height: 18%;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(255, 242, 220, .7) 0 7%, transparent 7% 18%);
  opacity: .65;
}
.scarf-tail {
  position: absolute;
  left: 7%;
  top: 24%;
  width: 27%;
  height: 56%;
  border-radius: 8px 8px 12px 12px;
  background: linear-gradient(180deg, #FFA85C 0%, #F2762A 70%, #E4621D 100%);
  box-shadow: inset -4px 0 6px rgba(171, 70, 13, .25);
  transform: rotate(7deg);
  transform-origin: top center;
}
.scarf-fringe {
  position: absolute;
  left: 8%;
  top: 75%;
  width: 27%;
  height: 14%;
  transform: rotate(7deg);
  background: repeating-linear-gradient(90deg, #E4621D 0 18%, transparent 18% 36%);
  border-radius: 0 0 4px 4px;
}

/* 墨镜 */
.outfit-shades {
  left: 36.4%;
  top: 33.7%;
  width: 15.2%;
  height: 6.2%;
  z-index: 9;
  filter: drop-shadow(0 3px 5px rgba(45, 25, 30, .35));
}
.shade-lens {
  position: absolute;
  top: 6%;
  width: 44%;
  height: 82%;
  border-radius: 30% 30% 40% 40% / 36% 36% 58% 58%;
  background: linear-gradient(152deg, #5B4552 0%, #211720 46%, #0F0A0E 100%);
  border: 2px solid #E8B45D;
  box-shadow: inset 0 -4px 6px rgba(0, 0, 0, .55), inset 0 3px 4px rgba(255, 255, 255, .16);
}
.lens-left { left: 0; }
.lens-right { right: 0; }
.shade-bridge {
  position: absolute;
  left: 42%;
  top: 34%;
  width: 16%;
  height: 12%;
  border-radius: 99px;
  background: #E8B45D;
}
.shade-shine {
  position: absolute;
  top: 16%;
  width: 12%;
  height: 26%;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  transform: rotate(24deg);
  filter: blur(.3px);
}
.sh1 { left: 8%; }
.sh2 { right: 8%; }

/* 花环 */
.outfit-flower {
  left: 32.4%;
  top: 21.6%;
  width: 22.5%;
  height: 9.5%;
  z-index: 10;
  filter: drop-shadow(0 3px 5px rgba(143, 54, 84, .22));
}
.flower {
  position: absolute;
  width: 13%;
  padding-top: 13%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 16%, #FFF9F2 0 15%, transparent 16%),
    radial-gradient(circle at 84% 39%, #FFB6C8 0 26%, transparent 27%),
    radial-gradient(circle at 71% 82%, #FFB6C8 0 26%, transparent 27%),
    radial-gradient(circle at 29% 82%, #FFB6C8 0 26%, transparent 27%),
    radial-gradient(circle at 16% 39%, #FFB6C8 0 26%, transparent 27%),
    radial-gradient(circle at 50% 50%, #FFC94D 0 20%, transparent 21%);
}
.f1 { left: 4%; top: 38%; transform: rotate(-16deg); }
.f2 { left: 23%; top: 14%; transform: rotate(8deg) scale(.94); }
.f3 { left: 44%; top: 6%; transform: rotate(-4deg) scale(1.08); }
.f4 { left: 66%; top: 16%; transform: rotate(13deg) scale(.92); }
.f5 { left: 84%; top: 40%; transform: rotate(20deg); }
.flower-leaf {
  position: absolute;
  width: 10%;
  padding-top: 5%;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #8DD48D, #4FAF73);
  opacity: .9;
}
.l1 { left: 14%; top: 52%; transform: rotate(18deg); }
.l2 { left: 76%; top: 54%; transform: rotate(-18deg); }

/* 派对帽 */
.outfit-party {
  left: 38.2%;
  top: 7.4%;
  width: 10.4%;
  height: 18.4%;
  z-index: 11;
  filter: drop-shadow(0 4px 6px rgba(118, 53, 92, .28));
  transform-origin: 50% 100%;
}
.party-cone {
  position: absolute;
  left: 8%;
  bottom: 6%;
  width: 84%;
  height: 88%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, .38) 0 8%, transparent 8% 19%),
    linear-gradient(180deg, #FF9FC4 0%, #FF6C9E 56%, #E94681 100%);
}
.party-pom {
  position: absolute;
  left: 35%;
  top: 0;
  width: 30%;
  padding-top: 30%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #FFF8D9, #FFD34E 58%, #E6A31F);
  box-shadow: 0 2px 4px rgba(142, 88, 10, .35);
}
.party-trim {
  position: absolute;
  left: 5%;
  bottom: 2%;
  width: 90%;
  height: 10%;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFE6A5, #F6B82C);
  box-shadow: 0 2px 3px rgba(140, 80, 10, .3);
}

/* 皇冠 */
.outfit-crown {
  left: 37.2%;
  top: 18.4%;
  width: 12.6%;
  height: 7.2%;
  z-index: 11;
  filter: drop-shadow(0 3px 4px rgba(137, 89, 10, .34));
}
.crown-band {
  position: absolute;
  left: 2%;
  bottom: 0;
  width: 96%;
  height: 34%;
  border-radius: 6px;
  background: linear-gradient(180deg, #FFE58F, #F6B92B 60%, #DF9611);
  box-shadow: inset 0 -2px 2px rgba(151, 91, 5, .35);
}
.crown-peak {
  position: absolute;
  bottom: 28%;
  width: 23%;
  height: 66%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #FFEAA3, #F7BC32 65%, #E4A017);
}
.p1 { left: 7%; height: 56%; }
.p2 { left: 38.5%; }
.p3 { right: 7%; height: 56%; }
.crown-gem {
  position: absolute;
  left: 41%;
  bottom: 2%;
  width: 18%;
  height: 36%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #B6F0FF, #46BDE8 55%, #227FAE);
  box-shadow: 0 0 4px rgba(88, 213, 255, .8);
}

/* 星空披风 */
.outfit-cape {
  left: 26.5%;
  top: 44%;
  width: 37%;
  height: 39%;
  z-index: 2;
  filter: drop-shadow(0 8px 12px rgba(48, 32, 98, .30));
}
.cape-wing {
  position: absolute;
  top: 2%;
  width: 43%;
  height: 96%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 230, 153, .95) 0 1.1%, transparent 1.4%),
    radial-gradient(circle at 62% 42%, rgba(255, 230, 153, .8) 0 1%, transparent 1.3%),
    radial-gradient(circle at 42% 66%, rgba(255, 255, 255, .72) 0 .8%, transparent 1.1%),
    radial-gradient(circle at 70% 78%, rgba(255, 230, 153, .75) 0 1%, transparent 1.3%),
    linear-gradient(160deg, #8C7BE8 0%, #5F4DB7 50%, #35287C 100%);
}
.cape-left {
  left: 1%;
  border-radius: 18% 6% 54% 30% / 10% 8% 88% 30%;
  clip-path: polygon(0 0, 100% 9%, 87% 100%, 9% 92%);
  transform: rotate(4deg);
  transform-origin: top right;
}
.cape-right {
  right: 1%;
  border-radius: 6% 18% 30% 54% / 8% 10% 30% 88%;
  clip-path: polygon(0 9%, 100% 0, 91% 92%, 13% 100%);
  transform: rotate(-4deg);
  transform-origin: top left;
}
.cape-collar {
  position: absolute;
  left: 39%;
  top: 0;
  width: 22%;
  height: 10%;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFE08A, #E1A126);
  box-shadow: 0 2px 4px rgba(104, 65, 5, .35);
}
.cape-star {
  position: absolute;
  width: 2.4%;
  padding-top: 2.4%;
  background: #FFE79A;
  clip-path: polygon(50% 0, 61% 35%, 98% 38%, 69% 60%, 79% 98%, 50% 76%, 21% 98%, 31% 60%, 2% 38%, 39% 35%);
  filter: drop-shadow(0 0 3px rgba(255, 235, 160, .9));
}
.s1 { left: 22%; top: 24%; transform: rotate(12deg); }
.s2 { right: 18%; top: 46%; transform: rotate(-15deg) scale(.8); }
.s3 { left: 38%; top: 70%; transform: rotate(22deg) scale(.7); }

/* 云朵翅膀 */
.outfit-wings {
  left: 19%;
  top: 39.5%;
  width: 62%;
  height: 37%;
  z-index: 1;
  filter: drop-shadow(0 6px 10px rgba(97, 65, 22, .22));
}
.wing {
  position: absolute;
  top: 12%;
  width: 39%;
  height: 77%;
  transform-origin: center right;
  animation: wingFlap 3.6s ease-in-out infinite alternate;
}
.wing-right { right: 0; transform-origin: center left; animation-delay: -1.8s; }
.wing i {
  position: absolute;
  display: block;
  border-radius: 60% 40% 55% 45% / 68% 62% 38% 32%;
  background: linear-gradient(150deg, #FFFDF6 0%, #FFF1D4 55%, #EFCF9C 100%);
  box-shadow: inset 0 -4px 8px rgba(180, 136, 78, .22), inset 0 3px 4px rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .6);
}
.wing i:nth-child(1) { left: 0; top: 6%; width: 72%; height: 48%; transform: rotate(-18deg); }
.wing i:nth-child(2) { left: 6%; top: 42%; width: 66%; height: 42%; transform: rotate(-8deg); }
.wing i:nth-child(3) { left: 24%; top: 70%; width: 52%; height: 28%; transform: rotate(6deg); }
.wing-right i {
  border-radius: 40% 60% 45% 55% / 62% 68% 32% 38%;
}
.wing-right i:nth-child(1) { left: auto; right: 0; top: 6%; transform: rotate(18deg); }
.wing-right i:nth-child(2) { left: auto; right: 6%; top: 42%; transform: rotate(8deg); }
.wing-right i:nth-child(3) { left: auto; right: 24%; top: 70%; transform: rotate(-6deg); }
@keyframes wingFlap {
  from { transform: rotate(-2deg) scaleY(.97); }
  to   { transform: rotate(5deg) scaleY(1.03); }
}

/* 左侧小红点提示 */
.need-bubble {
  position: absolute;
  left: 49.5%;
  top: 13.5%;
  z-index: 12;
  width: clamp(34px, 4.6vw, 52px);
  height: clamp(34px, 4.6vw, 52px);
  border-radius: 50% 50% 50% 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FFFDF7, #FFE9C8);
  color: var(--orange-deep);
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(102, 52, 15, .30);
  opacity: 0;
  transform: scale(.4) rotate(-8deg);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2, 1.6, .4, 1);
  pointer-events: none;
}
.need-bubble i.mp-icon { width: 58%; height: 58%; }
.need-bubble.show { opacity: 1; transform: scale(1) rotate(-4deg); animation: needBob 2.2s ease-in-out infinite; }
@keyframes needBob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

/* 特效层 */
.fx-layer {
  position: absolute;
  inset: 0;
  z-index: 13;
  pointer-events: none;
  overflow: hidden;
}
.fx {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.fx-heart { animation: heartFloat 1.55s cubic-bezier(.2, .7, .3, 1) forwards; }
.fx-heart i.mp-icon { width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(180, 40, 75, .35)); }
@keyframes heartFloat {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(.4) rotate(-12deg); }
  18% { opacity: 1; transform: translate(-50%, -60%) scale(1.1) rotate(4deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 10px)), -300%) scale(.72) rotate(var(--rot, 12deg)); }
}
.fx-bubble {
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .95) 0 18%, transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(196, 240, 255, .26) 0 55%, rgba(120, 210, 255, .55) 72%, rgba(255, 255, 255, .7) 78%);
  border: 1.5px solid rgba(255, 255, 255, .75);
  box-shadow: 0 2px 6px rgba(47, 149, 205, .22);
  animation: bubbleRise 1.6s ease-out forwards;
}
@keyframes bubbleRise {
  0% { opacity: 0; transform: translate(-50%, 10%) scale(.3); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -260%) scale(1); }
}
.fx-bowl {
  left: 43%;
  top: 74%;
  width: clamp(56px, 8vw, 104px);
  aspect-ratio: 2 / 1;
  animation: bowlIn 2.2s ease forwards;
}
.fx-bowl::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 0;
  height: 66%;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(180deg, #FFFFFF 0 18%, #FFD9B0 18% 40%, #F38C3C 40% 100%);
  box-shadow: 0 5px 10px rgba(120, 58, 12, .3);
}
.fx-bowl::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 52%;
  height: 34%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 50%, #8C5A2B 0 18%, transparent 20%),
    radial-gradient(circle at 52% 38%, #B17A45 0 16%, transparent 18%),
    radial-gradient(circle at 76% 58%, #8C5A2B 0 14%, transparent 16%),
    linear-gradient(180deg, #E7B06F, #C98A4C);
}
@keyframes bowlIn {
  0% { opacity: 0; transform: translate(-50%, 24px) scale(.8); }
  16% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  78% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -8px) scale(.96); }
}
.fx-feather {
  left: 54%;
  top: 47%;
  width: clamp(46px, 6vw, 86px);
  color: #F3A62D;
  transform-origin: 20% 10%;
  animation: featherSwing 2.4s ease-in-out forwards;
}
.fx-feather i.mp-icon { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(120, 60, 10, .28)); }
@keyframes featherSwing {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-30deg) scale(.6); }
  18% { opacity: 1; }
  36% { transform: translate(-50%, -50%) rotate(16deg) scale(1); }
  58% { transform: translate(-50%, -50%) rotate(-14deg) scale(1.03); }
  80% { transform: translate(-50%, -50%) rotate(10deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-4deg) scale(.94); }
}
.fx-spark {
  color: #FFE08A;
  animation: sparkPop 1.1s ease-out forwards;
}
.fx-spark i.mp-icon { width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(255, 218, 112, .9)); }
@keyframes sparkPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(0); }
  28% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(40deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -60px))) scale(.5) rotate(140deg); }
}
.fx-text {
  color: #fff;
  font-weight: 900;
  font-size: clamp(14px, 2vw, 24px);
  text-shadow: 0 2px 0 rgba(156, 73, 13, .7), 0 5px 12px rgba(110, 49, 6, .45);
  animation: statFloat 1.4s ease-out forwards;
  white-space: nowrap;
}
@keyframes statFloat {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.7); }
  20% { opacity: 1; transform: translate(-50%, -22px) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -80px) scale(.95); }
}

/* ---------- 通用玻璃卡片 ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 251, 243, .95) 0%, rgba(255, 242, 223, .90) 100%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 12px 30px rgba(91, 51, 18, .20), inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(115% 85% at 50% 45%, transparent 46%, rgba(76, 38, 8, .17) 100%),
    linear-gradient(180deg, rgba(60, 31, 8, .20) 0%, transparent 17%, transparent 76%, rgba(60, 31, 8, .24) 100%);
}
.bottom-fade {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 108px;
  z-index: 8;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 243, 225, 0), rgba(255, 241, 219, .78) 58%, rgba(255, 239, 214, .95));
}

/* ---------- 顶部 HUD ---------- */
.hud-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1.4vw, 16px);
  padding: calc(9px + var(--safe-t)) calc(12px + var(--safe-r)) 26px calc(12px + var(--safe-l));
  background: linear-gradient(180deg, rgba(68, 36, 10, .26) 0%, rgba(68, 36, 10, .07) 52%, transparent 100%);
  pointer-events: none;
}
.hud-top > * { pointer-events: auto; }

.profile-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 6px;
  border-radius: 19px;
  min-width: 0;
}
.cat-avatar {
  position: relative;
  width: clamp(42px, 5.6vw, 54px);
  height: clamp(42px, 5.6vw, 54px);
  flex: none;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(145deg, #FFD98A, #FF8A3D 58%, #E86014);
  box-shadow: 0 4px 10px rgba(116, 51, 8, .28);
}
.cat-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFF9EF;
}
.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, .72);
  animation: ringSpin 14s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.profile-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cat-name {
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9em;
}
.profile-sub { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-3); }
.level-badge {
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  background: linear-gradient(180deg, #FFB15E, #F2761D);
  box-shadow: 0 2px 4px rgba(170, 81, 10, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
  white-space: nowrap;
}
.owner-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 8em; }

.growth-card {
  flex: 1 1 300px;
  max-width: 380px;
  margin: 0 auto;
  min-width: 0;
  padding: 7px 13px 8px;
  border-radius: 18px;
}
.growth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.growth-title { display: inline-flex; align-items: center; gap: 4px; }
.growth-title i.mp-icon { width: 13px; height: 13px; color: var(--orange-deep); }
.growth-num { font-weight: 900; color: var(--orange-deep); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.growth-track {
  position: relative;
  margin-top: 4px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(126, 76, 36, .16);
  box-shadow: inset 0 2px 3px rgba(103, 59, 24, .16);
}
.growth-track.slim { height: 8px; }
.growth-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #FFC14F 0%, #FF9838 52%, #FF7A22 100%);
  box-shadow: 0 0 8px rgba(255, 151, 50, .5);
  transition: width .55s cubic-bezier(.2, .8, .2, 1);
}
.growth-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .28) 0 6px, transparent 6px 13px);
  animation: stripeMove 1.4s linear infinite;
}
@keyframes stripeMove { to { transform: translateX(13px); } }
.growth-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 3px rgba(122, 63, 12, .18);
  pointer-events: none;
}
.growth-next {
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.2;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-buttons { display: flex; gap: 7px; margin-left: auto; }
.round-btn {
  width: clamp(36px, 4.6vw, 44px);
  height: clamp(36px, 4.6vw, 44px);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-deep);
  transition: transform .12s ease, box-shadow .12s ease;
}
.round-btn i.mp-icon { width: 54%; height: 54%; }
.round-btn:active { transform: scale(.92); box-shadow: 0 3px 8px rgba(91, 51, 18, .16); }
.round-btn.muted { color: var(--ink-3); }

/* ---------- 左侧状态 ---------- */
.stats-card {
  position: fixed;
  left: calc(12px + var(--safe-l));
  top: calc(82px + var(--safe-t));
  z-index: 24;
  width: clamp(158px, 21vw, 212px);
  padding: 10px 12px 11px;
  border-radius: 19px;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  color: var(--ink-2);
  letter-spacing: .02em;
}
.card-title > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.card-title i.mp-icon { width: 13px; height: 13px; color: var(--pink-deep); }
.mood-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  color: #B65C10;
  background: #FFE9C6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.mood-pill.low { color: #4E7C9D; background: #E1F1FB; }
.mood-pill.mid { color: #9A7615; background: #FFF1C7; }
.stat-row { margin-top: 7px; }
.stat-line { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 10px; }
.stat-name { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); font-weight: 700; }
.stat-name i.mp-icon { width: 12px; height: 12px; }
.stat-val { font-size: 11px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-track {
  margin-top: 3px;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(120, 75, 40, .13);
  box-shadow: inset 0 1px 2px rgba(93, 53, 20, .14);
}
.stat-fill {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  transition: width .5s cubic-bezier(.2, .8, .2, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.fill-food { background: linear-gradient(90deg, #FFB04D, #FF7B28); }
.fill-clean { background: linear-gradient(90deg, #7ED6FF, #3CA8E6); }
.fill-mood { background: linear-gradient(90deg, #FFB3C8, #F2547B); }
.stat-row.danger .stat-val { color: #E13F46; }
.stat-row.danger .stat-track { box-shadow: inset 0 1px 2px rgba(93, 53, 20, .14), 0 0 0 1px rgba(225, 63, 70, .28); }
.cat-tip {
  margin-top: 9px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .52);
  border: 1px solid rgba(255, 255, 255, .7);
}

/* ---------- 右侧照料台 ---------- */
.action-panel {
  position: fixed;
  top: calc(82px + var(--safe-t));
  bottom: calc(70px + var(--safe-b));
  right: calc(12px + var(--safe-r));
  z-index: 24;
  width: clamp(222px, 30vw, 302px);
  padding: 10px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.action-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 0 2px; }
.action-title { font-size: 12px; font-weight: 900; color: var(--ink); letter-spacing: .02em; }
.care-count { font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
  flex: 1;
  min-height: 0;
}
.care-btn {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 0;
  padding: 4px;
  color: var(--ink);
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF3E1 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 0 rgba(183, 118, 56, .18), 0 6px 12px rgba(99, 55, 19, .12), inset 0 1px 0 #fff;
  transition: transform .1s ease, box-shadow .1s ease, filter .2s ease;
}
.care-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(183, 118, 56, .18), 0 3px 6px rgba(99, 55, 19, .10), inset 0 1px 0 #fff;
}
.care-ico {
  width: clamp(29px, 4vw, 40px);
  height: clamp(29px, 4vw, 40px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .4), 0 3px 6px rgba(100, 54, 16, .18);
}
.care-ico i.mp-icon { width: 56%; height: 56%; }
.care-feed .care-ico { background: linear-gradient(150deg, #FFC15C, #F57B21); }
.care-clean .care-ico { background: linear-gradient(150deg, #7ED6FF, #2E9EDB); }
.care-play .care-ico { background: linear-gradient(150deg, #9FE0A8, #3EAF6D); }
.care-dress .care-ico { background: linear-gradient(150deg, #B7A6FF, #7359D8); }
.care-label { font-size: clamp(11px, 1.35vw, 14px); font-weight: 900; line-height: 1.1; margin-top: 1px; }
.care-sub { font-size: clamp(8px, .95vw, 9.5px); color: var(--ink-3); line-height: 1.1; white-space: nowrap; }
.care-feed { background: linear-gradient(180deg, #FFFDF7, #FFF0D4); }
.care-clean { background: linear-gradient(180deg, #FBFEFF, #E9F7FF); }
.care-play { background: linear-gradient(180deg, #FCFFF9, #EBF9E8); }
.care-dress {
  background: linear-gradient(180deg, #FFFDFE, #F2EDFF);
}
.dress-spark {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 12px;
  height: 12px;
  color: #FFC94D;
  animation: sparkle 1.8s ease-in-out infinite;
}
.dress-spark i.mp-icon { width: 100%; height: 100%; }
@keyframes sparkle {
  0%, 100% { transform: scale(.7) rotate(0); opacity: .55; }
  50% { transform: scale(1.15) rotate(45deg); opacity: 1; }
}
.cool-mask {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(63, 44, 31, .44), rgba(48, 31, 20, .62));
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}
.care-btn.cooling .cool-mask { display: flex; }
.care-btn.cooling { filter: saturate(.72); }
.care-btn.cooling .care-sub { opacity: .4; }
.care-btn.nope { animation: btnNope .4s ease; }
@keyframes btnNope {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-5px) rotate(-1deg); }
  44% { transform: translateX(5px) rotate(1deg); }
  66% { transform: translateX(-3px); }
  82% { transform: translateX(2px); }
}
.cool-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #FFF4E2;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: rgba(38, 24, 14, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.cool-mask::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 5px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #FFC15C var(--cool, 0%), rgba(255, 255, 255, .22) var(--cool, 0%));
}
.next-unlock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .65);
  font-size: 9.5px;
  color: var(--ink-2);
  min-width: 0;
}
.next-ico { display: flex; color: var(--orange-deep); }
.next-ico i.mp-icon { width: 15px; height: 15px; }
.next-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-text b { font-weight: 900; color: var(--ink); }
.next-text em { font-style: normal; color: var(--orange-deep); font-weight: 900; margin-left: 4px; }

/* ---------- 底部条 ---------- */
.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 26;
  height: calc(56px + var(--safe-b));
  padding: 0 calc(14px + var(--safe-r)) var(--safe-b) calc(14px + var(--safe-l));
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 20px 20px 0 0;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(255, 250, 241, .96) 0%, rgba(255, 239, 214, .98) 100%);
  box-shadow: 0 -8px 26px rgba(94, 53, 19, .16), inset 0 1px 0 #fff;
}
.bottom-status {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(99, 197, 139, .18);
  animation: statusPulse 2.4s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(99, 197, 139, .18); }
  50% { box-shadow: 0 0 0 6px rgba(99, 197, 139, .06); }
}
.outfit-dots { display: flex; align-items: center; gap: 5px; flex: none; }
.outfit-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #E8DBCB;
  box-shadow: inset 0 1px 2px rgba(101, 69, 38, .18);
  position: relative;
  transition: background .3s, transform .3s;
}
.outfit-dot.unlocked { background: linear-gradient(145deg, #FFC15C, #FF8A3D); box-shadow: 0 1px 3px rgba(186, 95, 18, .32), inset 0 1px 0 rgba(255, 255, 255, .5); }
.outfit-dot.equipped { transform: scale(1.14); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(255, 138, 61, .7); }
.outfit-dot.locked::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(128, 87, 56, .25);
}
.bottom-brand {
  flex: none;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--ink-3);
  opacity: .8;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(76px + var(--safe-b));
  z-index: 95;
  transform: translate(-50%, 14px);
  max-width: 78vw;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #FFF9EF;
  background: linear-gradient(180deg, rgba(80, 49, 27, .94), rgba(57, 33, 16, .96));
  box-shadow: 0 8px 24px rgba(51, 28, 10, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .3s cubic-bezier(.2, 1.2, .4, 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 弹层通用 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(12px + var(--safe-t)) calc(12px + var(--safe-r)) calc(12px + var(--safe-b)) calc(12px + var(--safe-l));
}
.modal.show { display: flex; }
.modal-veil, .drawer-veil {
  position: absolute;
  inset: 0;
  background: rgba(44, 24, 10, .48);
  -webkit-backdrop-filter: blur(8px) saturate(.85);
  backdrop-filter: blur(8px) saturate(.85);
  animation: veilIn .3s ease both;
}
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 领养 ---------- */
.adopt-card {
  position: relative;
  z-index: 1;
  width: min(780px, 94vw);
  max-height: 94vh;
  max-height: 94dvh;
  display: grid;
  grid-template-columns: 43% 57%;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #FFFCF6 0%, #FFF4E2 100%);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 70px rgba(45, 23, 6, .42), inset 0 1px 0 #fff;
  animation: cardIn .5s cubic-bezier(.18, 1.2, .32, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.adopt-hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #F6C98F;
}
.adopt-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  animation: heroFloat 6s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.045) translateY(-6px); }
}
.adopt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(88, 45, 12, .34) 100%);
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #6A3E10;
  background: rgba(255, 250, 236, .82);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 12px rgba(87, 47, 12, .18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-badge i.mp-icon { width: 13px; height: 13px; color: var(--orange-deep); }
.hero-glow {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 70%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 243, 197, .55), transparent 65%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.adopt-body {
  padding: clamp(16px, 2.6vw, 30px) clamp(18px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow-y: auto;
}
.eyebrow {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .24em;
  color: var(--orange-deep);
  opacity: .82;
}
.adopt-body h1 {
  margin: 5px 0 0;
  font-size: clamp(23px, 3.4vw, 36px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 900;
  color: var(--ink);
}
.adopt-desc {
  margin: 8px 0 0;
  font-size: clamp(11px, 1.35vw, 13.5px);
  line-height: 1.65;
  color: var(--ink-2);
}
.field { margin-top: clamp(10px, 1.6vw, 16px); min-width: 0; }
.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-2);
  letter-spacing: .04em;
}
.field input {
  width: 100%;
  height: clamp(38px, 5vw, 46px);
  padding: 0 13px;
  border-radius: 12px;
  border: 1.5px solid #EAD6BE;
  background: rgba(255, 253, 248, .9);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(112, 68, 30, .06);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, .16), inset 0 2px 4px rgba(112, 68, 30, .04);
}
.name-row { display: flex; align-items: center; gap: 8px; }
.name-row input { flex: 1 1 auto; min-width: 0; }
.name-chips { display: flex; gap: 5px; flex: none; }
.name-chips button {
  height: 30px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-2);
  background: #FFF6E8;
  border: 1px solid #EDD9C0;
  box-shadow: 0 2px 0 rgba(158, 109, 63, .12);
  transition: transform .1s, background .2s;
}
.name-chips button:active { transform: translateY(1px); background: #FFE9CB; }
.field-owner { margin-top: 9px; }
.field-owner input { height: clamp(34px, 4.4vw, 40px); font-size: 12.5px; }

.primary-btn {
  position: relative;
  width: 100%;
  height: clamp(44px, 6vw, 54px);
  margin-top: clamp(12px, 2vw, 18px);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 900;
  letter-spacing: .03em;
  background: linear-gradient(180deg, #FFAA5C 0%, #FF8A3D 42%, #F26E19 100%);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 5px 0 #C8550C, 0 10px 20px rgba(201, 85, 12, .33), inset 0 1px 0 rgba(255, 255, 255, .5);
  text-shadow: 0 1px 2px rgba(150, 67, 8, .3);
  transition: transform .1s, box-shadow .1s;
}
.primary-btn i.mp-icon { width: 20px; height: 20px; }
.primary-btn .arrow { width: 18px; height: 18px; margin-left: auto; margin-right: 12px; opacity: .8; }
.primary-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #C8550C, 0 4px 10px rgba(201, 85, 12, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.adopt-note {
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 9.5px;
  color: var(--ink-3);
}
.adopt-note i.mp-icon { width: 12px; height: 12px; }

/* ---------- 回归 ---------- */
.welcome-card {
  position: relative;
  z-index: 1;
  width: min(430px, 92vw);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(160deg, #FFFCF6, #FFF2DE);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 28px 64px rgba(45, 23, 6, .4), inset 0 1px 0 #fff;
  animation: cardIn .45s cubic-bezier(.18, 1.2, .32, 1) both;
}
.welcome-top { display: flex; align-items: center; gap: 12px; }
.welcome-avatar {
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #FFD98A, #FF8A3D);
  box-shadow: 0 5px 14px rgba(129, 60, 10, .28);
}
.welcome-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #FFF9EF; }
.welcome-top h2 { margin: 3px 0 0; font-size: 24px; line-height: 1.1; font-weight: 900; letter-spacing: -.02em; }
.welcome-top p { margin: 3px 0 0; font-size: 10.5px; color: var(--ink-3); }
.welcome-desc { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.welcome-deltas { display: flex; gap: 6px; margin-top: 12px; }
.delta-chip {
  flex: 1;
  padding: 7px 6px;
  border-radius: 11px;
  text-align: center;
  font-size: 9.5px;
  color: var(--ink-3);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .8);
}
.delta-chip b { display: block; margin-top: 2px; font-size: 13px; color: #D6532F; font-variant-numeric: tabular-nums; }

/* ---------- 装扮间 ---------- */
.drawer-modal { padding: 0; align-items: stretch; justify-content: flex-end; }
.drawer-veil {
  background: rgba(44, 24, 10, .18);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.app[data-dressing="true"] .scene { left: 37%; }
.wardrobe-drawer {
  position: relative;
  z-index: 1;
  width: min(430px, 46vw);
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(14px + var(--safe-t)) calc(14px + var(--safe-r)) calc(12px + var(--safe-b)) 14px;
  background: linear-gradient(165deg, #FFFCF5 0%, #FFF2DE 100%);
  border-left: 2px solid rgba(255, 255, 255, .9);
  box-shadow: -16px 0 50px rgba(54, 29, 9, .28);
  animation: drawerIn .42s cubic-bezier(.22, 1, .32, 1) both;
}
@keyframes drawerIn {
  from { transform: translateX(102%); }
  to { transform: translateX(0); }
}
.drawer-head { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.drawer-title-wrap { display: flex; align-items: center; gap: 9px; }
.drawer-ico {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(150deg, #B7A6FF, #7359D8);
  box-shadow: 0 4px 10px rgba(91, 65, 180, .28), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.drawer-ico i.mp-icon { width: 22px; height: 22px; }
.drawer-head h2 { margin: 0; font-size: 19px; line-height: 1.1; font-weight: 900; letter-spacing: -.02em; }
.drawer-head p { margin: 3px 0 0; font-size: 9.5px; color: var(--ink-3); }
.close-btn { flex: none; background: rgba(255, 255, 255, .7); box-shadow: 0 3px 8px rgba(91, 51, 18, .14); }
.drawer-progress {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .56);
  border: 1px solid rgba(255, 255, 255, .8);
}
.drawer-progress-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 9.5px; color: var(--ink-2); font-weight: 700; }
.drawer-progress-head b { font-size: 13px; color: var(--orange-deep); font-weight: 900; font-variant-numeric: tabular-nums; }
.drawer-progress .growth-track { margin-top: 4px; }
.drawer-progress p { margin: 4px 0 0; font-size: 9px; color: var(--ink-3); }
.wardrobe-grid {
  margin-top: 9px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 7px;
  padding: 1px 2px 8px;
  scrollbar-width: thin;
}
.wear-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  min-height: 64px;
  text-align: left;
  border-radius: 14px;
  background: rgba(255, 253, 247, .85);
  border: 1.5px solid rgba(255, 255, 255, .9);
  box-shadow: 0 3px 8px rgba(99, 58, 22, .09), inset 0 1px 0 #fff;
  transition: transform .1s, box-shadow .15s, border-color .2s, background .2s;
  overflow: hidden;
}
.wear-card:active { transform: scale(.97); }
.wear-card.unlocked:hover { border-color: #FFC28A; }
.wear-card.equipped {
  border-color: var(--orange);
  background: linear-gradient(150deg, #FFF7E8, #FFE8C6);
  box-shadow: 0 4px 12px rgba(226, 123, 31, .22), inset 0 1px 0 #fff;
}
.wear-card.locked { filter: saturate(.55); }
.wear-preview {
  position: relative;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  background: #FFE8C8;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), 0 2px 5px rgba(113, 70, 32, .14);
}
.mini-cat {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background-image: url("images/cat-face.png");
  background-size: cover;
  background-position: 50% 42%;
  overflow: hidden;
}
.mini-piece { position: absolute; pointer-events: none; }
.wear-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wear-name { font-size: 10.5px; font-weight: 900; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wear-state { font-size: 8.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wear-card.equipped .wear-state { color: var(--orange-deep); font-weight: 900; }
.wear-check {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 2px 4px rgba(187, 85, 10, .3);
}
.wear-check i.mp-icon { width: 11px; height: 11px; }
.wear-lock {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9A7C61;
  background: rgba(255, 255, 255, .78);
}
.wear-lock i.mp-icon { width: 11px; height: 11px; }
.drawer-foot { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(154, 104, 62, .12); }
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(154, 104, 62, .14);
  box-shadow: 0 2px 0 rgba(154, 104, 62, .08);
}
.ghost-btn i.mp-icon { width: 14px; height: 14px; }
.ghost-btn:active { transform: translateY(1px); }
.drawer-tip { font-size: 9px; color: var(--ink-3); margin-left: auto; }

/* 装扮缩略图 */
.mini-bow { left: 20%; top: 55%; width: 60%; height: 24%; }
.mini-bow::before, .mini-bow::after {
  content: "";
  position: absolute;
  top: 16%;
  width: 42%;
  height: 64%;
  background: linear-gradient(150deg, #FF8FA0, #D92F51);
  border-radius: 60% 40% 55% 45%;
}
.mini-bow::before { left: 0; transform: rotate(-9deg); }
.mini-bow::after { right: 0; transform: rotate(9deg); }
.mini-scarf { left: 17%; top: 54%; width: 66%; height: 34%; }
.mini-scarf::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 46%;
  border-radius: 99px;
  background: linear-gradient(180deg, #FFB15E, #EE6E22);
}
.mini-scarf::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 32%;
  width: 26%;
  height: 60%;
  border-radius: 4px 4px 6px 6px;
  background: #F2812E;
  transform: rotate(7deg);
}
.mini-shades { left: 17%; top: 39%; width: 66%; height: 20%; }
.mini-shades::before, .mini-shades::after {
  content: "";
  position: absolute;
  top: 0;
  width: 42%;
  height: 100%;
  border-radius: 30% 30% 42% 42%;
  background: linear-gradient(150deg, #4B3A46, #100B0F);
  border: 1.5px solid #E8B45D;
}
.mini-shades::before { left: 0; }
.mini-shades::after { right: 0; }
.mini-flower { left: 12%; top: 6%; width: 76%; height: 26%; }
.mini-flower::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 58%, #FFB6C8 0 11%, transparent 12%),
    radial-gradient(circle at 34% 30%, #FFB6C8 0 11%, transparent 12%),
    radial-gradient(circle at 58% 18%, #FFB6C8 0 11%, transparent 12%),
    radial-gradient(circle at 80% 34%, #FFB6C8 0 11%, transparent 12%),
    radial-gradient(circle at 90% 64%, #FFB6C8 0 10%, transparent 11%),
    radial-gradient(circle at 22% 74%, #4FAF73 0 6%, transparent 7%),
    radial-gradient(circle at 72% 78%, #4FAF73 0 6%, transparent 7%);
}
.mini-party { left: 32%; top: -4%; width: 38%; height: 46%; }
.mini-party::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(118deg, rgba(255, 255, 255, .4) 0 8%, transparent 8% 20%), linear-gradient(180deg, #FF9FC4, #E94681);
}
.mini-party::after {
  content: "";
  position: absolute;
  left: 36%;
  top: -12%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: #FFD34E;
}
.mini-crown { left: 25%; top: 2%; width: 50%; height: 28%; }
.mini-crown::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 100%, 0 26%, 20% 62%, 36% 0, 52% 52%, 68% 0, 84% 62%, 100% 26%, 100% 100%);
  background: linear-gradient(180deg, #FFE58F, #E4A017);
}
.mini-cape { left: 4%; top: 46%; width: 92%; height: 54%; }
.mini-cape::before, .mini-cape::after {
  content: "";
  position: absolute;
  top: 0;
  width: 44%;
  height: 100%;
  background: linear-gradient(160deg, #8C7BE8, #35287C);
}
.mini-cape::before { left: 0; border-radius: 16% 6% 50% 30%; clip-path: polygon(0 0, 100% 10%, 86% 100%, 8% 92%); }
.mini-cape::after { right: 0; border-radius: 6% 16% 30% 50%; clip-path: polygon(0 10%, 100% 0, 92% 92%, 14% 100%); }
.mini-wings { left: 0; top: 36%; width: 100%; height: 52%; }
.mini-wings::before, .mini-wings::after {
  content: "";
  position: absolute;
  top: 0;
  width: 42%;
  height: 100%;
  border-radius: 60% 40% 55% 45% / 68% 62% 38% 32%;
  background: linear-gradient(150deg, #FFFDF6, #EFCF9C);
  border: 1px solid rgba(255, 255, 255, .8);
}
.mini-wings::before { left: 0; transform: rotate(-18deg); }
.mini-wings::after { right: 0; transform: rotate(18deg) scaleX(-1); }

/* ---------- 玩法说明 ---------- */
.help-card {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(160deg, #FFFCF6, #FFF2DE);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 28px 64px rgba(45, 23, 6, .4), inset 0 1px 0 #fff;
  animation: cardIn .45s cubic-bezier(.18, 1.2, .32, 1) both;
}
.help-head { display: flex; align-items: center; gap: 9px; }
.help-ico {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(150deg, #FFC15C, #F57B21);
  box-shadow: 0 4px 10px rgba(190, 97, 16, .28);
}
.help-ico i.mp-icon { width: 21px; height: 21px; }
.help-head h2 { margin: 0; font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.help-head .close-btn { margin-left: auto; }
.help-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.help-list li { display: flex; gap: 10px; align-items: flex-start; }
.help-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: var(--orange-deep);
  background: #FFEBCF;
  border: 1px solid rgba(255, 255, 255, .8);
}
.help-list b { display: block; font-size: 12px; font-weight: 900; color: var(--ink); }
.help-list p { margin: 2px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--ink-2); }
.help-card .primary-btn { margin-top: 16px; height: 44px; }

/* ---------- 解锁横幅 ---------- */
.unlock-banner {
  position: fixed;
  left: 50%;
  top: calc(84px + var(--safe-t));
  z-index: 90;
  transform: translate(-50%, -22px) scale(.96);
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(360px, 82vw);
  padding: 9px 10px 9px 12px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #FF9A47 0%, #F26B17 60%, #E75B0B 100%);
  border: 1.5px solid rgba(255, 255, 255, .55);
  box-shadow: 0 14px 34px rgba(158, 68, 7, .4), inset 0 1px 0 rgba(255, 255, 255, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2, 1.3, .4, 1);
}
.unlock-banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.unlock-banner-ico {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A94B08;
  background: linear-gradient(160deg, #FFF3C9, #FFD25E);
  box-shadow: inset 0 1px 0 #fff;
}
.unlock-banner-ico i.mp-icon { width: 21px; height: 21px; }
.unlock-banner div { min-width: 0; flex: 1; }
.unlock-banner b { display: block; font-size: 11.5px; font-weight: 900; letter-spacing: .02em; }
.unlock-banner p { margin: 1px 0 0; font-size: 10px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unlock-banner button {
  flex: none;
  height: 30px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 900;
  color: #A94B08;
  background: #FFF3D5;
  box-shadow: 0 2px 0 rgba(126, 50, 4, .25);
}
.unlock-banner button:active { transform: translateY(1px); }

/* ---------- 小屏适配 ---------- */
@media (max-height: 430px) {
  .hud-top { padding-top: calc(6px + var(--safe-t)); padding-bottom: 16px; }
  .profile-card { padding: 4px 11px 4px 4px; border-radius: 16px; }
  .cat-avatar { width: 40px; height: 40px; }
  .cat-name { font-size: 13px; }
  .profile-sub { font-size: 9px; gap: 4px; }
  .growth-card { padding: 5px 10px 6px; border-radius: 15px; }
  .growth-head { font-size: 9px; }
  .growth-num { font-size: 9px; }
  .growth-track { height: 8px; margin-top: 3px; }
  .growth-next { font-size: 8px; margin-top: 2px; }
  .round-btn { width: 34px; height: 34px; }
  .stats-card { top: calc(68px + var(--safe-t)); padding: 8px 10px 9px; border-radius: 16px; width: clamp(146px, 20vw, 190px); }
  .card-title { font-size: 9.5px; margin-bottom: 5px; }
  .stat-row { margin-top: 5px; }
  .stat-line { font-size: 9px; }
  .stat-track { height: 6px; }
  .cat-tip { margin-top: 6px; font-size: 8.5px; padding: 5px 6px; }
  .action-panel { top: calc(68px + var(--safe-t)); bottom: calc(60px + var(--safe-b)); width: clamp(216px, 31vw, 286px); padding: 8px; gap: 6px; border-radius: 18px; }
  .action-title { font-size: 10.5px; }
  .care-count { font-size: 8.5px; }
  .action-grid { gap: 6px; }
  .care-btn { border-radius: 13px; }
  .care-ico { width: 27px; height: 27px; }
  .care-label { font-size: 10.5px; }
  .care-sub { font-size: 8px; }
  .next-unlock { padding: 4px 6px; font-size: 8.5px; }
  .bottom-bar { height: calc(50px + var(--safe-b)); gap: 8px; }
  .bottom-status { font-size: 9.5px; }
  .outfit-dot { width: 13px; height: 13px; }
  .bottom-brand { font-size: 8.5px; }
  .toast { bottom: calc(66px + var(--safe-b)); }
  .adopt-card { width: min(720px, 96vw); }
  .adopt-body { padding: 12px 20px; }
  .adopt-body h1 { font-size: 22px; }
  .adopt-desc { font-size: 10.5px; margin-top: 5px; line-height: 1.45; }
  .eyebrow { font-size: 8px; }
  .field { margin-top: 8px; }
  .field input { height: 34px; font-size: 12px; }
  .field label { font-size: 8.5px; margin-bottom: 3px; }
  .name-chips button { height: 27px; font-size: 9px; }
  .field-owner { margin-top: 6px; }
  .field-owner input { height: 32px; font-size: 11px; }
  .primary-btn { height: 40px; margin-top: 9px; font-size: 13px; border-radius: 12px; }
  .adopt-note { margin-top: 5px; font-size: 8.5px; }
  .hero-badge { font-size: 8.5px; padding: 4px 8px; }
  .unlock-banner { top: calc(66px + var(--safe-t)); }
  .wardrobe-drawer { width: min(430px, 52vw); }
  .wear-card { min-height: 56px; padding: 5px; }
  .wear-preview { width: 42px; height: 42px; }
  .wear-name { font-size: 9.5px; }
  .wear-state { font-size: 8px; }
  .drawer-progress { margin-top: 7px; padding: 6px 8px; }
  .drawer-progress p { display: none; }
  .wardrobe-grid { gap: 6px; }
}

@media (max-width: 760px) {
  .owner-name { display: none; }
  .bottom-brand { display: none; }
  .stats-card { width: clamp(146px, 23vw, 180px); }
  .growth-card { max-width: 300px; }
  .action-panel { width: clamp(214px, 32vw, 250px); }
}
@media (max-width: 620px) {
  .growth-next { display: none; }
  .profile-card { padding-right: 8px; }
  .bottom-status { font-size: 9px; }
  .outfit-dot { width: 12px; height: 12px; }
  .adopt-card { grid-template-columns: 36% 64%; }
  .name-chips button:nth-child(3) { display: none; }
}

/* 竖屏兜底：不挡板，仍可玩 */
@media (orientation: portrait) {
  .hud-top { gap: 6px; }
  .growth-card { flex-basis: 150px; }
  .growth-next { display: none; }
  .stats-card {
    top: calc(82px + var(--safe-t));
    width: min(42vw, 176px);
  }
  .action-panel {
    top: auto;
    bottom: calc(64px + var(--safe-b));
    width: min(45vw, 210px);
    height: min(210px, 26vh);
  }
  .bottom-bar { gap: 8px; }
  .bottom-brand { display: none; }
  .wardrobe-drawer { width: min(430px, 88vw); }
  .adopt-card { grid-template-columns: 1fr; width: min(430px, 94vw); }
  .adopt-hero { height: 30vh; }
  .adopt-body { padding: 16px 18px 20px; }
  .adopt-body h1 { font-size: 24px; }
}

/* 降低动态 */
@media (max-height: 350px) {
  .care-sub { display: none; }
  .next-unlock { display: none; }
  .action-panel { bottom: calc(56px + var(--safe-b)); }
  .stats-card .cat-tip { display: none; }
}

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

/* 摸摸热区与额外照料特效 */
.cat-hit {
  position: absolute;
  left: 27%;
  top: 17%;
  width: 40%;
  height: 68%;
  z-index: 14;
  border-radius: 42%;
  background: transparent;
}
.cat-hit:active {
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .16), transparent 62%);
}
.fx-brush {
  left: 55%;
  top: 47%;
  width: clamp(34px, 4.6vw, 64px);
  color: #FFF9EF;
  animation: brushSweep 1.4s ease-in-out forwards;
}
.fx-brush i.mp-icon {
  width: 100%; height: 100%;
  filter: drop-shadow(0 3px 5px rgba(92, 48, 10, .35));
}
@keyframes brushSweep {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-26deg) scale(.7); }
  18% { opacity: 1; }
  34% { transform: translate(-90%, -50%) rotate(-6deg) scale(1); }
  58% { transform: translate(-10%, -50%) rotate(14deg) scale(1); }
  82% { transform: translate(-60%, -50%) rotate(-2deg) scale(.98); opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(0) scale(.9); }
}
.fx-meal {
  color: #C97A31;
  animation: mealFly 1.15s cubic-bezier(.2, .7, .3, 1) forwards;
}
.fx-meal i.mp-icon {
  width: 100%; height: 100%;
  filter: drop-shadow(0 2px 3px rgba(107, 54, 8, .35));
}
@keyframes mealFly {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  22% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -40px))) scale(.7); }
}

/* 资料面板在首帧即不可见，初始化后由 app.js 移除并保留原布局占位。 */
.hud-top > .profile-card {
  visibility: hidden;
  pointer-events: none;
}

/* 围巾精修：与颈部居中，织纹、奶油色滚边与流苏统一。 */
.outfit-scarf {
  left: 34.1%; top: 45.4%; width: 19.2%; height: 15%;
  transform-origin: 50% 18%;
  filter: drop-shadow(0 2px 3px rgba(127,57,23,.25));
}
.outfit-scarf .scarf-band {
  left: 3%; top: 3%; width: 94%; height: 32%; z-index: 3;
  border-radius: 38% 38% 48% 48% / 35% 35% 65% 65%;
  border: 1px solid rgba(164,73,24,.3);
  background: repeating-linear-gradient(96deg,transparent 0 5px,rgba(255,241,209,.13) 5px 6px),linear-gradient(180deg,#ffd199 0%,#ffac60 27%,#ff8a3d 62%,#dd682d 100%);
  box-shadow: inset 0 2px 2px rgba(255,248,226,.7),inset 0 -3px 3px rgba(154,63,22,.23);
  transform: none;
}
.outfit-scarf .scarf-band::after {
  inset: auto 7% 18%; height: 12%; background: #ffe2b5; opacity: .8;
  box-shadow: 0 1px 0 rgba(177,78,30,.2);
}
.outfit-scarf .scarf-tail {
  left: 17%; top: 25%; width: 25%; height: 53%; z-index: 1;
  border-radius: 18% 22% 9% 12%;
  background: linear-gradient(180deg,transparent 0 69%,#ffe2b5 69% 76%,transparent 76% 83%,#ffe2b5 83% 88%,transparent 88%),repeating-linear-gradient(90deg,transparent 0 4px,rgba(255,235,199,.15) 4px 5px),linear-gradient(100deg,#e77733,#ffac60 45%,#f5863c 80%,#d7662b);
  box-shadow: inset 1px 0 1px rgba(255,226,183,.6),inset -2px 0 3px rgba(153,63,25,.2);
  transform: rotate(8deg); transform-origin: 50% 0;
}
.outfit-scarf .scarf-tail::before {
  content: ""; position: absolute; left: -7%; top: -7%; width: 114%; height: 30%;
  border-radius: 40%; background: linear-gradient(130deg,#ffc581,#fa9547 55%,#d96a2e);
  box-shadow: inset 0 1px 1px #ffe0ae,0 2px 2px rgba(139,57,22,.18);
}
.outfit-scarf .scarf-fringe {
  left: 11.2%; top: 75.5%; width: 24%; height: 9%; z-index: 2;
  background: repeating-linear-gradient(90deg,#ed853d 0 10%,#ffc17b 10% 15%,transparent 15% 21%);
  border-radius: 0 0 3px 3px; transform: rotate(8deg); transform-origin: 50% 0;
}
