:root {
  --ink: #20231f;
  --muted: #858980;
  --soft: #f7f8f3;
  --paper: #ffffff;
  --line: #eceee8;
  --mint: #58c99d;
  --mint-deep: #35a779;
  --amber: #ffb33f;
  --coral: #ff6158;
  --leaf: #7bd9ad;
  --shadow: 0 18px 48px rgba(37, 46, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 247, 226, 0.9), rgba(237, 242, 234, 0.92) 46%, #e8eee6 100%);
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, #f7f7ef 0%, #f2f5ee 46%, #eef3eb 100%);
  box-shadow: 0 20px 80px rgba(28, 34, 29, 0.16);
}

.hidden {
  display: none !important;
}

.login-view,
.pet-view {
  min-height: 100vh;
}

.login-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 32px 24px;
  background:
    radial-gradient(circle at 24% 18%, rgba(116, 210, 165, 0.22), transparent 28%),
    linear-gradient(180deg, #fffef9 0%, #eef6ed 100%);
}

.login-copy h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.14;
}

.login-copy p:last-child {
  max-width: 340px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--mint-deep);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-egg-card {
  display: grid;
  place-items: center;
  min-height: 220px;
}

.login-habitat {
  position: relative;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 82%, rgba(84, 168, 76, 0.2) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, rgba(114, 199, 156, 0.22), rgba(255, 255, 255, 0.3) 64%);
}

.login-egg {
  position: relative;
  width: 88px;
  height: 116px;
  border-radius: 48% 48% 44% 44% / 58% 58% 42% 42%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.95), transparent 16%),
    radial-gradient(circle at 73% 64%, rgba(255, 255, 255, 0.6), transparent 9%),
    linear-gradient(145deg, #fff9e9 0%, #f7dfaa 74%, #e6ba72 100%);
  border: 1px solid rgba(188, 142, 70, 0.42);
  box-shadow: 0 16px 28px rgba(126, 93, 48, 0.16);
}

.login-egg span::before,
.login-egg span::after {
  content: "";
  position: absolute;
  top: 58px;
  width: 6px;
  height: 10px;
  border-radius: 999px;
  background: #30302a;
}

.login-egg span::before {
  left: 32px;
}

.login-egg span::after {
  right: 32px;
}

.login-sprout {
  position: absolute;
  bottom: 42px;
  width: 44px;
  height: 32px;
  border-radius: 70% 26% 70% 28%;
  background: linear-gradient(145deg, #89da7e, #4aa44f);
}

.login-sprout.sprout-left {
  left: 32px;
  transform: rotate(-28deg);
}

.login-sprout.sprout-right {
  right: 32px;
  transform: rotate(32deg);
}

.login-form,
.wechat-login-panel {
  padding: 18px;
  border: 1px solid rgba(221, 226, 216, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(50, 58, 48, 0.08);
}

.wechat-button {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: #1f9d5a;
  color: #fff;
  font-weight: 800;
}

.wechat-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 13px;
}

.qr-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(38, 135, 90, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.qr-panel img {
  width: min(100%, 246px);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.qr-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.login-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.password-row,
.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.password-row input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.password-row button {
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #243126;
  color: #fff;
  font-weight: 700;
}

.form-note {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--coral);
  font-size: 12px;
}

.form-note.neutral {
  color: var(--mint-deep);
}

.pet-view {
  position: relative;
  padding: 0 0 188px;
  overflow: hidden;
}

.topbar {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pet-title p {
  margin: 5px 0 0;
  color: rgba(30, 36, 31, 0.55);
  font-size: 11px;
  font-weight: 700;
}

.pet-name-button {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.pet-name-button span {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}

.pet-name-button small {
  color: rgba(30, 36, 31, 0.48);
  font-size: 11px;
  font-weight: 800;
}

.stage-line {
  display: grid;
  grid-template-columns: auto minmax(76px, 110px) auto;
  align-items: center;
  gap: 7px;
  color: #565b53;
  font-size: 12px;
  font-weight: 800;
}

.mini-progress {
  height: 7px;
  border-radius: 999px;
  background: rgba(39, 48, 39, 0.12);
  overflow: hidden;
}

.mini-progress span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--amber));
}

.top-actions {
  display: flex;
  gap: 9px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #26302a;
  box-shadow: 0 10px 24px rgba(42, 52, 41, 0.12);
}

.icon-button svg,
.input-row button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 512px;
  padding: 84px 18px 22px;
  background:
    radial-gradient(circle at 56% 26%, rgba(255, 250, 231, 0.72), transparent 40%),
    linear-gradient(180deg, #f7f7ef 0%, #eef4ea 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 126px;
  background: linear-gradient(180deg, rgba(247, 248, 243, 0), rgba(247, 248, 243, 0.96) 72%, var(--soft));
  pointer-events: none;
}

.visual-stage {
  position: relative;
  height: 405px;
  max-width: 390px;
  margin: 0 auto;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(180deg, #fff8df 0%, #eef6e9 62%, #e4f0df 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 28px 70px rgba(65, 73, 54, 0.12);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 76%, rgba(0, 0, 0, 0.88) 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, #000 0%, #000 76%, rgba(0, 0, 0, 0.88) 86%, transparent 100%);
  mask-composite: intersect;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.visual-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(250, 252, 246, 0.55) 0%, rgba(250, 252, 246, 0.08) 34%, rgba(247, 248, 243, 0) 62%, rgba(247, 248, 243, 0.72) 100%),
    linear-gradient(90deg, rgba(247, 248, 243, 0.45) 0%, rgba(247, 248, 243, 0) 10%, rgba(247, 248, 243, 0) 90%, rgba(247, 248, 243, 0.45) 100%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.34), transparent 22%);
  pointer-events: none;
}

.visual-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease;
}

.visual-stage.outfit-morning::before {
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(255, 244, 204, 0.42), rgba(255, 255, 255, 0.04) 45%, rgba(174, 220, 188, 0.14)),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.5), transparent 26%);
}

.visual-stage.outfit-warm::before {
  opacity: 1;
  background:
    radial-gradient(circle at 78% 34%, rgba(255, 213, 132, 0.34), transparent 22%),
    linear-gradient(180deg, rgba(255, 241, 205, 0.18), rgba(255, 255, 255, 0.02) 62%, rgba(244, 234, 210, 0.24));
}

.visual-stage.outfit-night::before {
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(34, 61, 68, 0.2), rgba(20, 38, 40, 0.12)),
    radial-gradient(circle at 78% 34%, rgba(156, 214, 194, 0.24), transparent 24%);
}

.visual-stage.outfit-rain::before {
  opacity: 1;
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 16%, rgba(255, 255, 255, 0.34) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 48%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px),
    linear-gradient(180deg, rgba(208, 225, 218, 0.18), rgba(255, 255, 255, 0.02) 58%, rgba(225, 235, 226, 0.24));
  background-size: auto, auto, auto, 100% 100%;
}

.visual-stage.time-dawn:not(.is-manual-outfit)::before {
  opacity: 1;
  background:
    linear-gradient(145deg, rgba(255, 235, 186, 0.34), rgba(255, 255, 255, 0.06) 45%, rgba(188, 222, 199, 0.18)),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.48), transparent 28%);
}

.visual-stage.time-morning:not(.is-manual-outfit)::before {
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(255, 246, 211, 0.28), rgba(255, 255, 255, 0.02) 52%, rgba(174, 220, 188, 0.12)),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.42), transparent 24%);
}

.visual-stage.time-noon:not(.is-manual-outfit)::before {
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 252, 235, 0.08) 52%, rgba(247, 248, 243, 0.16)),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.42), transparent 30%);
}

.visual-stage.time-evening:not(.is-manual-outfit)::before {
  opacity: 1;
  background:
    radial-gradient(circle at 78% 34%, rgba(255, 207, 132, 0.26), transparent 24%),
    linear-gradient(180deg, rgba(255, 238, 204, 0.16), rgba(255, 255, 255, 0.02) 58%, rgba(241, 225, 202, 0.22));
}

.visual-stage.time-night:not(.is-manual-outfit)::before,
.visual-stage.time-late:not(.is-manual-outfit)::before {
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(35, 56, 61, 0.18), rgba(22, 40, 41, 0.1)),
    radial-gradient(circle at 78% 34%, rgba(165, 220, 198, 0.2), transparent 24%);
}

.visual-stage.outfit-morning .sketch-habitat {
  filter: saturate(1.07) contrast(1.02) brightness(1.05);
}

.visual-stage.outfit-warm .sketch-habitat {
  filter: saturate(1.1) contrast(1.03) brightness(1.04);
}

.visual-stage.outfit-night .sketch-habitat {
  filter: saturate(0.96) contrast(1.05) brightness(0.88);
}

.visual-stage.outfit-rain .sketch-habitat {
  filter: saturate(0.98) contrast(1.04) brightness(0.98);
}

.visual-stage.time-dawn:not(.is-manual-outfit) .sketch-habitat,
.visual-stage.time-morning:not(.is-manual-outfit) .sketch-habitat {
  filter: saturate(1.06) contrast(1.02) brightness(1.04);
}

.visual-stage.time-noon:not(.is-manual-outfit) .sketch-habitat {
  filter: saturate(1.04) contrast(1.02) brightness(1.07);
}

.visual-stage.time-evening:not(.is-manual-outfit) .sketch-habitat {
  filter: saturate(1.08) contrast(1.03) brightness(1.01);
}

.visual-stage.time-night:not(.is-manual-outfit) .sketch-habitat,
.visual-stage.time-late:not(.is-manual-outfit) .sketch-habitat {
  filter: saturate(0.94) contrast(1.04) brightness(0.86);
}

.visual-stage.outfit-warm .light-orb {
  background: rgba(255, 231, 177, 0.9);
  box-shadow: 0 0 22px rgba(255, 198, 82, 0.65);
}

.visual-stage.outfit-night .light-orb {
  background: rgba(192, 232, 214, 0.8);
  box-shadow: 0 0 20px rgba(113, 195, 172, 0.55);
}

.visual-stage.outfit-rain .light-orb {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0 18px rgba(195, 214, 205, 0.52);
}

.habitat-photo {
  display: none;
}

.sketch-habitat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
  filter: saturate(1.04) contrast(1.02);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.sketch-dome {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 20px;
  bottom: 34px;
  border: 5px solid rgba(45, 48, 38, 0.14);
  border-bottom-width: 7px;
  border-radius: 190px 190px 48px 48px / 190px 190px 54px 54px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.44), transparent 18%, transparent 78%, rgba(255, 255, 255, 0.34)),
    radial-gradient(circle at 47% 10%, rgba(255, 255, 255, 0.42), transparent 28%),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.42),
    inset 18px 8px 0 rgba(255, 255, 255, 0.14),
    0 18px 28px rgba(79, 92, 70, 0.1);
}

.sketch-dome::before {
  content: "";
  position: absolute;
  left: 42px;
  top: 22px;
  width: 150px;
  height: 120px;
  border-left: 5px solid rgba(255, 255, 255, 0.52);
  border-top: 5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.sketch-dome::after {
  content: "";
  position: absolute;
  right: 74px;
  top: 44px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    20px 18px 0 -2px rgba(255, 255, 255, 0.66),
    -34px 10px 0 -3px rgba(255, 255, 255, 0.52);
}

.sketch-ground {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 44px;
  height: 106px;
  border: 4px solid rgba(43, 58, 36, 0.1);
  border-radius: 50% 50% 32px 32px;
  background:
    radial-gradient(circle at 16% 55%, rgba(255, 255, 255, 0.42) 0 4px, transparent 5px),
    radial-gradient(circle at 78% 38%, rgba(255, 255, 255, 0.3) 0 3px, transparent 4px),
    repeating-linear-gradient(165deg, rgba(100, 148, 60, 0.22) 0 7px, transparent 7px 14px),
    linear-gradient(180deg, #9ad466 0%, #62ad4c 58%, #4c9340 100%);
  box-shadow: inset 0 18px 0 rgba(255, 255, 255, 0.16);
}

.sketch-ground::after {
  content: "";
  position: absolute;
  left: 38%;
  bottom: 16px;
  width: 126px;
  height: 42px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(160deg, rgba(128, 80, 37, 0.42) 0 5px, rgba(238, 192, 105, 0.66) 5px 11px);
  box-shadow: 0 6px 0 rgba(87, 82, 43, 0.09);
  transform: translateX(-18%);
}

.sketch-plant {
  position: absolute;
  left: 34px;
  bottom: 100px;
  width: 122px;
  height: 176px;
  z-index: 1;
}

.sketch-plant::before {
  content: "";
  position: absolute;
  left: 56px;
  bottom: 0;
  width: 5px;
  height: 150px;
  border-radius: 999px;
  background: #3f8c48;
  transform: rotate(-8deg);
  box-shadow: 18px 38px 0 -1px #5fa554;
}

.sketch-plant span {
  position: absolute;
  width: 58px;
  height: 38px;
  border: 3px solid rgba(41, 88, 39, 0.18);
  border-radius: 72% 28% 70% 30%;
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.55) 0 4px, transparent 5px),
    linear-gradient(145deg, #9cdf78, #4fa64d);
  box-shadow: 0 8px 0 rgba(54, 108, 47, 0.08);
}

.sketch-plant span:nth-child(1) {
  left: 0;
  top: 22px;
  transform: rotate(-30deg);
}

.sketch-plant span:nth-child(2) {
  left: 54px;
  top: 48px;
  transform: rotate(30deg) scale(0.9);
}

.sketch-plant span:nth-child(3) {
  left: 3px;
  top: 90px;
  transform: rotate(-14deg) scale(1.08);
}

.sketch-plant span:nth-child(4) {
  left: 60px;
  top: 118px;
  transform: rotate(18deg) scale(0.82);
}

.sketch-lamp {
  position: absolute;
  right: 46px;
  bottom: 115px;
  z-index: 1;
  width: 76px;
  height: 132px;
}

.sketch-lamp::before {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 8px;
  width: 9px;
  height: 78px;
  border-radius: 999px;
  background: #5f735e;
  transform: rotate(10deg);
}

.sketch-lamp span {
  position: absolute;
  right: 5px;
  top: 22px;
  width: 64px;
  height: 44px;
  border: 4px solid rgba(50, 65, 52, 0.16);
  border-radius: 42px 42px 24px 24px;
  background: #8cae95;
  transform: rotate(-8deg);
  box-shadow: 0 8px 0 rgba(55, 68, 54, 0.1);
}

.sketch-lamp span::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: -4px;
  height: 14px;
  border-radius: 999px;
  background: #ffe09b;
  box-shadow: 0 0 26px rgba(255, 196, 73, 0.72);
}

.sketch-fence {
  position: absolute;
  right: 20px;
  bottom: 102px;
  z-index: 1;
  width: 92px;
  height: 56px;
  background:
    linear-gradient(90deg, transparent 0 8px, #fff2cc 8px 21px, transparent 21px 28px, #fff2cc 28px 41px, transparent 41px 48px, #fff2cc 48px 61px, transparent 61px 68px, #fff2cc 68px 81px, transparent 81px),
    linear-gradient(#e1cc96, #e1cc96) 0 28px / 100% 8px no-repeat;
  border-radius: 9px;
  filter: drop-shadow(0 8px 0 rgba(67, 62, 39, 0.08));
  opacity: 0.95;
}

.pet-layer {
  position: absolute;
  left: 50%;
  top: 62%;
  z-index: 3;
  width: 126px;
  height: 146px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: photoEggBreathe 3.6s ease-in-out infinite;
  pointer-events: none;
}

.pet-layer.is-hopping {
  animation: eggBounce 0.62s cubic-bezier(0.2, 1.35, 0.32, 1);
}

.pet-layer.is-wiggling {
  animation: eggWiggle 0.82s ease-in-out;
}

.pet-layer.is-glowing {
  animation: eggGlowPop 0.9s ease-out;
}

.pet-layer.is-shy {
  animation: eggShy 0.88s ease-in-out;
}

.pet-layer.is-sleepy {
  animation: eggSleepy 0.9s ease-in-out;
}

.pet-layer.is-focus {
  animation: eggFocus 0.86s ease-in-out;
}

.pet-layer.is-dance {
  animation: eggDance 1.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.pet-layer.is-proud {
  animation: eggProud 1.05s ease-in-out;
}

.pet-layer.is-sulk {
  animation: eggSulk 1.05s ease-in-out;
}

.pet-layer.is-startled {
  animation: eggStartled 0.72s cubic-bezier(0.2, 1.4, 0.25, 1);
}

.pet-layer.is-stretch {
  animation: eggStretch 0.96s ease-in-out;
}

.pet-layer.is-hungry {
  animation: eggHungry 0.96s steps(3, end);
}

.pet-layer.is-watch {
  animation: eggFocus 0.86s ease-in-out;
}

.rough-pet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 108px;
  height: 128px;
  border: 4px solid #2c281f;
  border-radius: 54% 48% 46% 50% / 62% 60% 40% 38%;
  background-color: #f4bf68;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.92) 0 10px, transparent 11px),
    radial-gradient(circle at 66% 72%, rgba(197, 121, 54, 0.16) 0 4px, transparent 5px),
    radial-gradient(circle at 24% 66%, rgba(197, 121, 54, 0.12) 0 3px, transparent 4px),
    linear-gradient(142deg, #fff0b9 0%, #f8c979 56%, #e6a94f 100%),
    #f4bf68;
  box-shadow:
    0 16px 0 rgba(72, 50, 26, 0.1),
    0 18px 22px rgba(78, 57, 36, 0.18),
    inset -12px -16px 0 rgba(172, 99, 43, 0.13),
    inset 9px 12px 0 rgba(255, 255, 255, 0.28);
  transform: translateX(-50%) rotate(-1deg);
  transform-origin: 50% 92%;
  animation: roughIdle 2.4s steps(2, end) infinite;
  isolation: isolate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.rough-fill {
  position: absolute;
  inset: 3px;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.95) 0 10px, transparent 11px),
    radial-gradient(circle at 66% 72%, rgba(197, 121, 54, 0.16) 0 4px, transparent 5px),
    radial-gradient(circle at 24% 66%, rgba(197, 121, 54, 0.12) 0 3px, transparent 4px),
    linear-gradient(142deg, #fff0b9 0%, #f8c979 56%, #e6a94f 100%),
    #f4bf68;
  transform: translateZ(0);
}

.rough-pet::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px dashed rgba(72, 52, 31, 0.15);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.pet-trait {
  position: absolute;
  display: none;
  z-index: 3;
  pointer-events: none;
}

.rough-eye {
  position: absolute;
  z-index: 2;
  top: 48px;
  width: 11px;
  height: 15px;
  border: 3px solid #252119;
  border-radius: 999px;
  background: #17140f;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.8);
  animation: roughBlink 4.8s steps(1, end) infinite;
}

.rough-eye.eye-left {
  left: 28px;
}

.rough-eye.eye-right {
  right: 27px;
}

.rough-mouth {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 69px;
  width: 24px;
  height: 13px;
  border: 3px solid #252119;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  transform: translateX(-50%) rotate(-2deg);
}

.rough-blush {
  position: absolute;
  z-index: 2;
  top: 67px;
  width: 13px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 116, 105, 0.42);
  opacity: 0;
}

.rough-blush.blush-left {
  left: 13px;
  transform: rotate(-11deg);
}

.rough-blush.blush-right {
  right: 12px;
  transform: rotate(11deg);
}

.rough-arm,
.rough-foot {
  position: absolute;
  z-index: 1;
  border: 3px solid #2c281f;
  background: #f4bf68;
  background-image: linear-gradient(145deg, #fff0b9, #f1b85f);
}

.rough-arm {
  top: 75px;
  width: 18px;
  height: 12px;
  border-radius: 999px;
  transform-origin: center;
  z-index: 1;
}

.rough-arm.arm-left {
  left: -12px;
  transform: rotate(-28deg);
}

.rough-arm.arm-right {
  right: -13px;
  transform: rotate(28deg);
}

.rough-foot {
  bottom: -8px;
  width: 24px;
  height: 12px;
  border-radius: 50%;
  z-index: -1;
}

.rough-foot.foot-left {
  left: 22px;
  transform: rotate(-8deg);
}

.rough-foot.foot-right {
  right: 19px;
  transform: rotate(8deg);
}

.pet-layer.is-hopping .rough-pet,
.pet-layer.is-glowing .rough-pet {
  animation: roughHop 0.62s cubic-bezier(0.2, 1.35, 0.32, 1);
}

.pet-layer.is-wiggling .rough-pet,
.pet-layer.expression-curious .rough-pet {
  animation: roughWiggle 0.82s steps(4, end);
}

.pet-layer.is-shy .rough-pet,
.pet-layer.expression-shy .rough-pet {
  animation: roughShy 0.9s ease-in-out;
}

.pet-layer.is-sleepy .rough-pet,
.pet-layer.expression-sleepy .rough-pet {
  animation: roughSleepy 1.2s ease-in-out infinite;
}

.pet-layer.is-focus .rough-pet,
.pet-layer.expression-focus .rough-pet,
.pet-layer.expression-careful .rough-pet {
  animation: roughFocus 0.9s steps(2, end);
}

.pet-layer.is-dance .rough-pet,
.pet-layer.expression-dance .rough-pet {
  animation: roughDance 1.45s steps(5, end);
}

.pet-layer.is-strong-action.is-dance .rough-pet {
  animation: roughBigDance 2.05s steps(6, end);
}

.pet-layer.is-strong-action .rough-blush {
  opacity: 1;
}

.pet-layer.is-proud .rough-pet,
.pet-layer.expression-proud .rough-pet {
  animation: roughProud 1.05s steps(3, end);
}

.pet-layer.is-sulk .rough-pet,
.pet-layer.expression-sulk .rough-pet {
  animation: roughSulk 1.05s ease-in-out;
}

.pet-layer.is-startled .rough-pet,
.pet-layer.expression-startled .rough-pet {
  animation: roughStartled 0.72s cubic-bezier(0.2, 1.4, 0.25, 1);
}

.pet-layer.is-stretch .rough-pet {
  animation: roughStretch 0.96s ease-in-out;
}

.pet-layer.is-hungry .rough-pet {
  animation: roughHungry 0.96s steps(3, end);
}

.pet-layer.is-watch .rough-pet {
  animation: roughFocus 0.9s steps(2, end);
}

.pet-layer.expression-happy .rough-mouth,
.pet-layer.expression-proud .rough-mouth,
.pet-layer.is-hopping .rough-mouth,
.pet-layer.is-glowing .rough-mouth,
.pet-layer.is-stretch .rough-mouth,
.pet-layer.is-proud .rough-mouth,
.pet-layer.is-dance .rough-mouth {
  top: 66px;
  width: 29px;
  height: 18px;
  background: #2b1d17;
  border-radius: 0 0 20px 20px;
}

.pet-layer.expression-happy .rough-mouth::after,
.pet-layer.expression-proud .rough-mouth::after,
.pet-layer.is-dance .rough-mouth::after,
.pet-layer.is-glowing .rough-mouth::after,
.pet-layer.is-stretch .rough-mouth::after,
.pet-layer.is-proud .rough-mouth::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 6px;
  border-radius: 50%;
  background: #ff7d70;
}

.pet-layer.expression-shy .rough-blush,
.pet-layer.is-shy .rough-blush,
.pet-layer.is-dance .rough-blush {
  opacity: 1;
}

.pet-layer.expression-sulk .rough-eye,
.pet-layer.is-sulk .rough-eye {
  top: 52px;
  height: 7px;
  transform: rotate(-9deg);
}

.pet-layer.expression-startled .rough-eye,
.pet-layer.is-startled .rough-eye {
  top: 48px;
  width: 11px;
  height: 13px;
  border: 2px solid #252119;
  background: #fff8df;
}

.pet-layer.expression-sleepy .rough-eye,
.pet-layer.is-sleepy .rough-eye {
  top: 54px;
  height: 4px;
  border-radius: 999px;
  background: #252119;
  box-shadow: none;
  animation: none;
}

.pet-layer.expression-sleepy .rough-mouth,
.pet-layer.is-sleepy .rough-mouth {
  top: 72px;
  width: 10px;
  height: 10px;
  border: 3px solid #252119;
  border-radius: 50%;
  background: transparent;
}

.pet-layer.expression-sulk .rough-mouth,
.pet-layer.is-sulk .rough-mouth {
  top: 73px;
  width: 18px;
  height: 8px;
  border-top: 4px solid #252119;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.pet-layer.expression-startled .rough-mouth,
.pet-layer.is-startled .rough-mouth {
  top: 70px;
  width: 12px;
  height: 14px;
  border: 3px solid #252119;
  border-radius: 50%;
  background: #fff6df;
}

.pet-layer.expression-focus .rough-eye,
.pet-layer.expression-careful .rough-eye,
.pet-layer.is-hungry .rough-eye,
.pet-layer.is-focus .rough-eye {
  top: 51px;
  height: 8px;
  border-radius: 8px;
  transform: skewX(-8deg);
}

.pet-layer.expression-focus .rough-mouth,
.pet-layer.expression-careful .rough-mouth,
.pet-layer.is-hungry .rough-mouth,
.pet-layer.is-focus .rough-mouth {
  top: 72px;
  width: 18px;
  height: 0;
  border-bottom: 4px solid #252119;
  border-left: 0;
  border-right: 0;
  border-radius: 999px;
  background: transparent;
}

.pet-layer.trait-bowl-mark .trait-bowl {
  display: block;
  left: 38px;
  top: 86px;
  width: 42px;
  height: 14px;
  border: 3px solid rgba(135, 92, 46, 0.62);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  transform: rotate(-4deg);
}

.pet-layer.trait-bowl-mark .trait-bowl::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 4px;
  height: 3px;
  border-radius: 999px;
  background: rgba(135, 92, 46, 0.45);
}

.pet-layer.trait-coin-pattern .trait-coin {
  display: block;
  right: 26px;
  top: 84px;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(176, 124, 42, 0.72);
  border-radius: 50%;
  background: rgba(255, 218, 111, 0.45);
  box-shadow: -9px 12px 0 -5px rgba(255, 218, 111, 0.48);
  transform: rotate(9deg);
}

.pet-layer.trait-clingy-scarf .trait-scarf {
  display: block;
  left: 18px;
  top: 94px;
  width: 84px;
  height: 18px;
  border-radius: 999px 999px 18px 18px;
  background: repeating-linear-gradient(90deg, #ef6461 0 12px, #ffd2c4 12px 20px);
  box-shadow: 0 6px 0 rgba(129, 60, 48, 0.12);
  transform: rotate(2deg);
}

.pet-layer.trait-noodle-radar .trait-noodle {
  display: block;
  left: 34px;
  top: -5px;
  width: 48px;
  height: 32px;
  border-radius: 50%;
  border: 4px solid rgba(212, 150, 47, 0.72);
  border-bottom-color: transparent;
  transform: rotate(-7deg);
}

.pet-layer.trait-noodle-radar .trait-noodle::before,
.pet-layer.trait-noodle-radar .trait-noodle::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 20px;
  height: 14px;
  border-top: 4px solid rgba(212, 150, 47, 0.72);
  border-radius: 50%;
}

.pet-layer.trait-noodle-radar .trait-noodle::before {
  left: 3px;
}

.pet-layer.trait-noodle-radar .trait-noodle::after {
  right: 3px;
}

.pet-layer.trait-drama-sniff .trait-drama {
  display: block;
  right: -5px;
  top: 38px;
  width: 28px;
  height: 22px;
  border: 3px solid rgba(63, 77, 83, 0.74);
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #9fd6f7 0 7px, #ffffff 7px 12px);
  transform: rotate(10deg);
}

.pet-layer.trait-sleep-eye .trait-sleep {
  display: block;
  left: 76px;
  top: 22px;
  color: #72849c;
  font-size: 18px;
  font-weight: 950;
}

.pet-layer.trait-sleep-eye .trait-sleep::before {
  content: "Z";
}

.pet-layer.trait-sweatband .trait-sweat {
  display: block;
  left: 23px;
  top: 34px;
  width: 74px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #53c890, #e7fff2);
  transform: rotate(-6deg);
}

.pet-layer.trait-soft-patch .trait-patch {
  display: block;
  left: 22px;
  top: 76px;
  width: 18px;
  height: 16px;
  border: 2px dashed rgba(218, 114, 111, 0.8);
  border-radius: 7px;
  background: rgba(255, 205, 199, 0.58);
  transform: rotate(-11deg);
}

.pet-layer::after {
  content: "";
  position: absolute;
  inset: 16px 8px;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 34px rgba(255, 208, 105, 0.62);
  transition: opacity 0.25s ease;
}

.pet-layer.is-warm::after {
  opacity: 0.5;
}

.pet-layer.is-glowing::after {
  opacity: 0.95;
  animation: eggHalo 0.9s ease-out;
}

.pet-layer.is-focus::after {
  opacity: 0.7;
  box-shadow: 0 0 32px rgba(94, 207, 157, 0.7);
}

.pet-layer.tone-bright::after {
  opacity: 0.75;
  box-shadow: 0 0 34px rgba(91, 220, 152, 0.62);
}

.pet-layer.tone-sleepy {
  filter: saturate(0.88) brightness(0.96);
}

.pet-layer.tone-careful::after {
  opacity: 0.58;
  box-shadow: 0 0 32px rgba(255, 182, 152, 0.55);
}

.pet-layer.tone-curious::after {
  opacity: 0.58;
  box-shadow: 0 0 32px rgba(134, 196, 255, 0.5);
}

.light-orb {
  position: absolute;
  z-index: 4;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: floatDot 4.8s ease-in-out infinite;
}

.lamp-glow {
  position: absolute;
  right: 34px;
  top: 118px;
  z-index: 5;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 137, 0.72), rgba(255, 224, 137, 0.22) 44%, transparent 72%);
  opacity: 0;
  transform: scale(0.72);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.visual-stage.has-lamp .lamp-glow {
  opacity: 1;
  transform: scale(1);
  animation: lampPulse 2.6s ease-in-out infinite;
}

.sticker-board {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.glass-sticker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 18px rgba(42, 54, 40, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  transform: rotate(-6deg);
  animation: stickerPop 0.45s ease both;
}

.glass-sticker.is-reward-pop {
  animation: rewardPop 1.1s cubic-bezier(0.17, 1.35, 0.32, 1) both;
}

.visual-stage.reward-burst::after {
  opacity: 0.78;
  animation: careRewardGlow 1.45s ease both;
}

.visual-stage.reward-burst-strong .sketch-ground {
  filter: saturate(1.18) brightness(1.08);
}

.visual-stage.reward-burst-strong .lamp-glow {
  opacity: 1;
  transform: scale(1.2);
  animation: lampPulse 0.78s ease-in-out infinite;
}

.visual-stage.event-night-lamp .lamp-glow,
.visual-stage.event-late-night-bubble .lamp-glow,
.visual-stage.event-yesterday-late-sleep .lamp-glow {
  opacity: 0.72;
  transform: scale(1.05);
}

.visual-stage.event-noon-bowl .sketch-ground,
.visual-stage.event-evening-home .sketch-ground {
  filter: saturate(1.12);
}

.visual-stage.event-streak-3::after,
.visual-stage.event-streak-4::after,
.visual-stage.event-streak-5::after,
.visual-stage.event-streak-6::after,
.visual-stage.event-streak-7::after {
  opacity: 0.58;
}

.glass-sticker i {
  display: block;
  width: 28px;
  height: 28px;
}

.sticker-lamp {
  right: 26px;
  top: 88px;
  width: 46px;
  height: 46px;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(145deg, rgba(255, 238, 182, 0.96), rgba(255, 199, 91, 0.86));
  transform: rotate(10deg);
}

.sticker-lamp i {
  width: 24px;
  height: 20px;
  border-radius: 18px 18px 8px 8px;
  background: #fff5cc;
  box-shadow: 0 14px 0 -8px #7c8d70;
}

.sticker-leaf {
  left: 46px;
  top: 138px;
  border-radius: 20px 28px 18px 28px;
  background: linear-gradient(145deg, rgba(226, 255, 238, 0.62), rgba(108, 213, 142, 0.58));
}

.sticker-leaf i {
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #37b872, #b9f3ce);
  transform: rotate(-28deg);
}

.sticker-blanket {
  left: 50%;
  bottom: 78px;
  z-index: 9;
  width: 92px;
  height: 34px;
  border: 2px solid rgba(85, 112, 138, 0.36);
  border-radius: 24px 24px 18px 18px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 248, 248, 0.92) 0 12px, rgba(232, 125, 112, 0.72) 12px 24px),
    linear-gradient(145deg, rgba(246, 252, 255, 0.9), rgba(132, 190, 232, 0.62));
  box-shadow: 0 12px 18px rgba(66, 72, 76, 0.14);
  transform: translateX(-50%) rotate(1deg);
}

.sticker-blanket i {
  width: 76px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.sticker-abacus {
  left: 58px;
  bottom: 86px;
  width: 54px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 241, 215, 0.98), rgba(213, 150, 78, 0.86));
  transform: rotate(-8deg);
}

.sticker-abacus i {
  width: 34px;
  height: 26px;
  border: 3px solid #86542c;
  border-radius: 5px;
  background:
    radial-gradient(circle at 25% 35%, #fff3d1 0 3px, transparent 4px),
    radial-gradient(circle at 52% 62%, #fff3d1 0 3px, transparent 4px),
    radial-gradient(circle at 77% 35%, #fff3d1 0 3px, transparent 4px),
    linear-gradient(#86542c 0 0) center/100% 3px no-repeat;
}

.sticker-star {
  right: 96px;
  top: 84px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 248, 202, 0.98), rgba(255, 202, 79, 0.9));
  transform: rotate(12deg);
}

.sticker-star i {
  background: #ffad2d;
  clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 56%, 80% 91%, 50% 70%, 20% 91%, 31% 56%, 2% 35%, 38% 34%);
}

.sticker-nest {
  left: 50%;
  bottom: 70px;
  z-index: 6;
  width: 122px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(235, 195, 126, 0.98), rgba(181, 129, 63, 0.84));
  transform: translateX(-50%) rotate(0);
}

.sticker-nest i {
  width: 82px;
  height: 16px;
  border-radius: 50%;
  background: repeating-linear-gradient(-12deg, #875b32 0 3px, #d7ad68 3px 6px);
}

.visual-stage.routine-done .lamp-glow,
.visual-stage.has-star .lamp-glow {
  opacity: 1;
  transform: scale(1.08);
  animation: lampPulse 1.8s ease-in-out infinite;
}

.light-one {
  right: 82px;
  top: 138px;
  width: 10px;
  height: 10px;
}

.light-two {
  right: 62px;
  top: 158px;
  width: 6px;
  height: 6px;
  animation-delay: 1.2s;
}

.day-board {
  position: absolute;
  left: 42px;
  bottom: 78px;
  z-index: 6;
  width: 72px;
  height: 52px;
  padding-top: 9px;
  border: 3px solid rgba(154, 100, 53, 0.96);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 45%),
    #525642;
  color: #fff7df;
  text-align: center;
  transform: rotate(-7deg);
  box-shadow: 0 9px 18px rgba(65, 55, 34, 0.18);
  pointer-events: none;
}

.day-board::before,
.day-board::after {
  content: "";
  position: absolute;
  bottom: -24px;
  width: 6px;
  height: 24px;
  border-radius: 4px;
  background: rgba(161, 111, 61, 0.94);
}

.day-board::before {
  left: 15px;
}

.day-board::after {
  right: 15px;
}

.day-board span {
  display: block;
  color: rgba(255, 247, 223, 0.9);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
}

.day-board strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.glass-dome {
  position: relative;
  height: 376px;
  max-width: 390px;
  margin: 0 auto;
  border-radius: 190px 190px 36px 36px / 190px 190px 40px 40px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), transparent 23%, transparent 73%, rgba(255, 255, 255, 0.28)),
    radial-gradient(circle at 50% 98%, #54a84c 0 17%, #7fc960 18% 34%, transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.1));
  border: 2px solid rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 0 0 2px rgba(156, 168, 145, 0.15),
    inset 0 22px 46px rgba(255, 255, 255, 0.42),
    0 24px 55px rgba(53, 76, 51, 0.16);
  overflow: hidden;
}

.glass-dome::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 86px;
  border-radius: 50% 50% 26px 26px;
  background:
    radial-gradient(circle at 18% 42%, rgba(255, 255, 255, 0.42) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.32) 0 2px, transparent 3px),
    linear-gradient(180deg, #78bd4f 0%, #4d9a3e 100%);
  box-shadow: inset 0 16px 24px rgba(255, 255, 255, 0.18);
}

.dome-shine {
  position: absolute;
  top: 22px;
  left: 72px;
  width: 192px;
  height: 172px;
  border-top: 4px solid rgba(255, 255, 255, 0.68);
  border-left: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  opacity: 0.8;
}

.dome-shine::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: -28px 6px 0 rgba(255, 255, 255, 0.55), 24px 18px 0 rgba(255, 255, 255, 0.42);
}

.plant {
  position: absolute;
  left: 22px;
  bottom: 70px;
  width: 112px;
  height: 158px;
  z-index: 1;
}

.plant::before {
  content: "";
  position: absolute;
  left: 52px;
  bottom: 0;
  width: 4px;
  height: 140px;
  border-radius: 999px;
  background: #559d55;
  transform: rotate(-9deg);
}

.plant span {
  position: absolute;
  width: 52px;
  height: 34px;
  border-radius: 70% 26% 70% 28%;
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.48) 0 3px, transparent 4px),
    linear-gradient(145deg, #89da7e, #4aa44f);
  box-shadow: 0 7px 14px rgba(61, 113, 54, 0.16);
}

.plant span:nth-child(1) {
  left: 2px;
  top: 20px;
  transform: rotate(-28deg);
}

.plant span:nth-child(2) {
  left: 50px;
  top: 40px;
  transform: rotate(32deg) scale(0.9);
}

.plant span:nth-child(3) {
  left: 0;
  top: 78px;
  transform: rotate(-12deg) scale(1.08);
}

.plant span:nth-child(4) {
  left: 54px;
  top: 100px;
  transform: rotate(20deg) scale(0.82);
}

.lamp {
  position: absolute;
  right: 44px;
  bottom: 103px;
  width: 86px;
  height: 140px;
  z-index: 2;
}

.lamp-neck {
  position: absolute;
  right: 32px;
  bottom: 18px;
  width: 8px;
  height: 78px;
  border-radius: 999px;
  background: #798977;
  transform: rotate(10deg);
}

.lamp-head {
  position: absolute;
  right: 5px;
  top: 20px;
  width: 66px;
  height: 44px;
  border-radius: 42px 42px 26px 26px;
  background: #93ae9a;
  transform: rotate(-8deg);
  box-shadow: 0 8px 18px rgba(64, 77, 61, 0.18);
}

.lamp-head::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -3px;
  height: 13px;
  border-radius: 999px;
  background: #ffe6a6;
  box-shadow: 0 0 30px rgba(255, 199, 94, 0.7);
}

.fence {
  position: absolute;
  right: 4px;
  bottom: 63px;
  width: 88px;
  height: 45px;
  z-index: 1;
  background:
    linear-gradient(90deg, transparent 0 8px, #f5f0dc 8px 20px, transparent 20px 27px, #f5f0dc 27px 39px, transparent 39px 46px, #f5f0dc 46px 58px, transparent 58px 65px, #f5f0dc 65px 77px, transparent 77px),
    linear-gradient(#e7dfc3, #e7dfc3) 0 22px / 100% 7px no-repeat;
  border-radius: 8px;
  opacity: 0.9;
}

.glass-dome .egg-stage {
  position: absolute;
  left: 50%;
  bottom: 58px;
  z-index: 3;
  width: 128px;
  height: 150px;
  transform: translateX(-50%);
}

.nest {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 126px;
  height: 38px;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    repeating-linear-gradient(165deg, rgba(188, 146, 82, 0.84) 0 5px, rgba(224, 187, 111, 0.9) 5px 10px);
  box-shadow: 0 11px 18px rgba(86, 82, 45, 0.18);
}

.egg {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 86px;
  height: 112px;
  border-radius: 48% 48% 44% 44% / 58% 58% 42% 42%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.95), transparent 16%),
    radial-gradient(circle at 73% 64%, rgba(255, 255, 255, 0.6), transparent 9%),
    radial-gradient(circle at 32% 70%, rgba(206, 150, 84, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 35%, rgba(206, 150, 84, 0.18) 0 2px, transparent 3px),
    linear-gradient(145deg, #fff9e9 0%, #f7dfaa 74%, #e6ba72 100%);
  border: 1px solid rgba(188, 142, 70, 0.42);
  box-shadow: 0 16px 28px rgba(126, 93, 48, 0.18);
  animation: breathe 3.4s ease-in-out infinite;
}

.egg-face {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 44px;
  height: 24px;
  transform: translate(-50%, -50%);
}

.egg-face::before,
.egg-face::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 6px;
  height: 10px;
  border-radius: 999px;
  background: #30302a;
}

.egg-face::before {
  left: 8px;
}

.egg-face::after {
  right: 8px;
}

.egg-face {
  border-bottom: 2px solid #30302a;
  border-radius: 0 0 50% 50%;
}

.wood-sign {
  position: absolute;
  left: 52px;
  bottom: 56px;
  z-index: 4;
  width: 66px;
  height: 48px;
  padding-top: 8px;
  border: 3px solid #a77943;
  border-radius: 5px;
  background: #5d5e4a;
  color: #fff8e4;
  text-align: center;
  transform: rotate(-3deg);
  box-shadow: 0 8px 15px rgba(61, 54, 34, 0.16);
}

.wood-sign::before {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -22px;
  width: 6px;
  height: 22px;
  background: #a77943;
}

.wood-sign span {
  display: block;
  font-size: 11px;
  font-weight: 800;
}

.wood-sign strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.outfit-button {
  position: absolute;
  right: 17px;
  bottom: 19px;
  z-index: 4;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(49, 62, 50, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #465147;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(41, 52, 39, 0.12);
}

.speech-card {
  position: absolute;
  top: 154px;
  right: 26px;
  z-index: 4;
  width: min(228px, calc(100% - 150px));
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(40, 51, 39, 0.12);
}

.speech-card::after {
  content: "";
  position: absolute;
  right: 44px;
  bottom: -12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 18px 16px 0 -3px rgba(255, 255, 255, 0.86);
}

.speech-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.speech-card.is-talking {
  animation: bubbleTalk 0.36s ease-out;
}

.care-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: -4px 18px 18px;
}

.care-card {
  position: relative;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(226, 231, 222, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(43, 50, 42, 0.06);
}

.care-card span {
  display: block;
  margin-bottom: 5px;
  color: #8a9287;
  font-size: 11px;
  font-weight: 900;
}

.care-card strong {
  display: block;
  margin-bottom: 5px;
  color: #243126;
  font-size: 15px;
  line-height: 1.25;
}

.care-card p {
  margin: 0;
  color: #60685f;
  font-size: 12px;
  line-height: 1.45;
}

.care-event {
  grid-column: 1 / -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 50%, rgba(255, 219, 124, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(246, 255, 240, 0.88), rgba(255, 255, 255, 0.7));
}

.care-event::after {
  content: attr(data-action);
  display: block;
  max-width: 100%;
  margin-top: 8px;
  overflow: hidden;
  color: #78a082;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.care-event.is-memory {
  background:
    radial-gradient(circle at 14% 50%, rgba(117, 210, 157, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(239, 255, 246, 0.9), rgba(255, 255, 255, 0.72));
}

.care-event.is-night {
  background:
    radial-gradient(circle at 16% 48%, rgba(255, 223, 145, 0.26), transparent 30%),
    linear-gradient(135deg, rgba(247, 248, 236, 0.9), rgba(255, 255, 255, 0.74));
}

.reward-shelf {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 9px 10px;
  border: 1px solid rgba(226, 231, 222, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 22px rgba(43, 50, 42, 0.04);
  scrollbar-width: none;
}

.reward-shelf::-webkit-scrollbar {
  display: none;
}

.reward-shelf strong,
.reward-shelf span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.reward-shelf strong {
  color: #6b7368;
  font-size: 11px;
  font-weight: 950;
}

.reward-shelf span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(231, 255, 244, 0.92);
  color: #277b5a;
  font-size: 12px;
  font-weight: 900;
}

.reward-shelf .reward-empty {
  background: transparent;
  color: #9aa197;
  font-weight: 800;
}

.care-quest::after {
  content: attr(data-reward);
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: 66px;
  overflow: hidden;
  color: #62b995;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.care-quest.is-done {
  background: linear-gradient(135deg, rgba(229, 255, 242, 0.92), rgba(255, 255, 255, 0.76));
}

.care-quest.is-strong-reward {
  box-shadow: 0 18px 34px rgba(70, 184, 132, 0.2), inset 0 0 0 1px rgba(111, 219, 165, 0.32);
}

.care-quest.is-strong-reward::after {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(219, 255, 236, 0.82);
  color: #1f8f67;
}

.meters {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 18px 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.meters article {
  min-width: 0;
  padding: 16px 12px 14px;
  border-right: 1px solid var(--line);
}

.meters article:last-child {
  border-right: 0;
}

.meter-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #686d65;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.meter-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  font-size: 0;
}

.meter-life .meter-icon {
  background:
    radial-gradient(circle at 62% 34%, #fff 0 2px, transparent 3px),
    linear-gradient(135deg, #baf3d7, #72dca8);
}

.meter-order .meter-icon {
  background:
    radial-gradient(circle at 50% 42%, #fff3ca 0 5px, transparent 6px),
    linear-gradient(135deg, #fff3d6, #ffc560);
}

.meter-hatch .meter-icon {
  background:
    radial-gradient(circle at 50% 50%, #fff 0 4px, transparent 5px),
    linear-gradient(135deg, #ffd1cc, #ff756d);
}

.meters strong {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 10px;
  font-size: 26px;
  line-height: 1;
}

.meters small {
  color: #a8aca5;
  font-size: 10px;
  font-weight: 800;
}

.meter-track {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: #edf0eb;
  overflow: hidden;
}

.meter-track span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
}

.meter-life .meter-track span {
  background: linear-gradient(90deg, #4ac18d, #9be4bd);
}

.meter-order .meter-track span {
  background: linear-gradient(90deg, #ffa928, #ffd071);
}

.meter-hatch .meter-track span {
  background: linear-gradient(90deg, #ff6057, #ff9a93);
}

.meters p {
  margin: 8px 0 0;
  color: #9a9e96;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat {
  margin: 0 18px 16px;
}

.view-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 18px 14px;
  padding: 5px;
  border: 1px solid rgba(226, 231, 222, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 26px rgba(43, 50, 42, 0.05);
}

.view-tabs button {
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7f877c;
  font-size: 14px;
  font-weight: 900;
}

.view-tabs button.active {
  background: #243126;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 49, 38, 0.16);
}

.growth-panel {
  margin: 0 18px 18px;
  padding-bottom: 84px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.section-title span {
  color: #8b9087;
  font-size: 12px;
  font-weight: 900;
}

.growth-summary-grid {
  display: grid;
  gap: 10px;
}

.opening-card,
.growth-event {
  border: 1px solid rgba(224, 231, 219, 0.92);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 226, 151, 0.28), transparent 34%),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(43, 50, 42, 0.06);
}

.opening-card {
  margin-bottom: 10px;
  padding: 14px 15px;
}

.opening-card span,
.growth-event span {
  display: block;
  margin-bottom: 6px;
  color: var(--mint-deep);
  font-size: 12px;
  font-weight: 950;
}

.opening-card strong {
  display: block;
  color: #243126;
  font-size: 15px;
  line-height: 1.45;
}

.growth-events {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.growth-event {
  padding: 13px 14px;
  animation: messageIn 0.28s ease both;
}

.growth-event p {
  margin: 0;
  color: #4d574d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.growth-event-streak-7 {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 201, 83, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(236, 255, 244, 0.92), rgba(255, 246, 213, 0.92));
}

.growth-summary-grid article,
.day-card {
  border: 1px solid rgba(226, 231, 222, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(43, 50, 42, 0.05);
}

.growth-summary-grid article {
  padding: 13px 14px;
}

.growth-summary-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--mint-deep);
  font-size: 12px;
  font-weight: 900;
}

.growth-summary-grid p,
.day-card p {
  margin: 0;
  color: #4b514a;
  font-size: 13px;
  line-height: 1.55;
}

.evolution-panel {
  margin: 12px 0 14px;
  padding: 15px;
  border: 1px solid rgba(216, 225, 210, 0.92);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 214, 126, 0.24), transparent 32%),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 30px rgba(43, 50, 42, 0.06);
}

.simple-evolution {
  padding: 16px;
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 221, 146, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 252, 245, 0.78));
}

.evolution-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.evolution-head span {
  color: #7d877a;
  font-size: 11px;
  font-weight: 950;
}

.evolution-head strong {
  color: #213026;
  font-size: 17px;
  font-weight: 950;
}

.evolution-panel p {
  margin: 0 0 12px;
  color: #4e584e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.evolution-routes {
  display: none;
  gap: 9px;
  margin-bottom: 12px;
}

.evolution-route div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  color: #4b554b;
  font-size: 12px;
  font-weight: 900;
}

.evolution-route span {
  color: #8b9388;
}

.evolution-route i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #51ca95, #ffc75d);
  box-shadow: 0 4px 10px rgba(74, 181, 132, 0.18);
}

.evolution-next {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(246, 250, 242, 0.88);
  color: #435044;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.simple-evolution .evolution-next {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(225, 232, 220, 0.9);
  background: rgba(255, 255, 255, 0.7);
}

.simple-evolution .evolution-next span {
  color: #8a9188;
  font-size: 11px;
  font-weight: 950;
}

.simple-evolution .evolution-next strong {
  color: #26382b;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.45;
}

.evolution-group {
  margin-top: 10px;
}

.evolution-group > span {
  display: block;
  margin-bottom: 7px;
  color: #7b8578;
  font-size: 11px;
  font-weight: 950;
}

.evolution-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evolution-features span,
.evolution-features em {
  padding: 7px 10px;
  border: 1px solid rgba(217, 224, 211, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #4d574e;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.evolution-features em {
  opacity: 0.72;
}

.evolution-exclusive {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px dashed rgba(76, 112, 86, 0.28);
  border-radius: 14px;
  background: rgba(248, 251, 245, 0.78);
  color: #526052;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}

.evolution-exclusive.is-ready {
  border-style: solid;
  background: linear-gradient(135deg, rgba(232, 255, 241, 0.92), rgba(255, 244, 208, 0.9));
  color: #203a2a;
}

.day-records {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.keepsakes {
  display: flex;
  gap: 8px;
  margin: 12px 0 2px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.keepsakes strong,
.keepsakes em {
  flex: 0 0 auto;
  align-self: center;
  color: #6f7a6d;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.keepsakes em {
  white-space: normal;
  line-height: 1.45;
}

.keepsakes::-webkit-scrollbar {
  display: none;
}

.keepsakes span {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(222, 226, 217, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #a0a69d;
  font-size: 12px;
  font-weight: 900;
}

.keepsakes span.unlocked {
  border-color: rgba(91, 201, 155, 0.32);
  background: rgba(231, 255, 244, 0.88);
  color: #277b5a;
  box-shadow: 0 8px 18px rgba(72, 181, 135, 0.1);
}

.day-card {
  padding: 13px 14px;
}

.day-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.day-card-head strong {
  font-size: 15px;
  line-height: 1.2;
}

.day-card-head span {
  min-width: 0;
  color: #9a9e96;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.note-list span,
.empty-record {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(238, 244, 234, 0.8);
  color: #757d73;
  font-size: 12px;
  line-height: 1.45;
}

.empty-record {
  margin: 0;
}

.messages {
  max-height: 360px;
  min-height: 220px;
  overflow: auto;
  padding: 2px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
}

.messages::-webkit-scrollbar {
  display: none;
}

.message-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  animation: messageIn 260ms ease-out both;
}

.message-row.user {
  justify-content: flex-end;
}

.message-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  margin-top: 2px;
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(145deg, #fff7d2, #eeb65b);
  border: 1px solid rgba(179, 131, 60, 0.22);
  box-shadow: 0 6px 12px rgba(88, 67, 35, 0.1);
}

.message-bubble {
  width: fit-content;
  max-width: min(78%, 310px);
  padding: 10px 13px;
  border-radius: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 8px 20px rgba(43, 50, 42, 0.05);
}

.message-row.pet .message-bubble {
  background: #fff;
  border: 1px solid rgba(226, 231, 222, 0.95);
  border-top-left-radius: 6px;
}

.message-row.user .message-bubble {
  background: #dff5e9;
  border: 1px solid rgba(93, 201, 150, 0.28);
  border-top-right-radius: 6px;
}

.message-bubble {
  transition: transform 180ms ease, opacity 180ms ease;
}

.composer {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: min(100%, 430px);
  padding: 12px 18px max(16px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(230, 234, 226, 0.88);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.composer-pet {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(214, 224, 210, 0.86);
  border-radius: 999px;
  background: rgba(246, 250, 243, 0.9);
  color: #475248;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(47, 57, 47, 0.06);
}

.composer-pet-egg {
  position: relative;
  width: 24px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.9), transparent 17%),
    linear-gradient(145deg, #fff7d1, #efb75d);
  border: 1px solid rgba(178, 128, 55, 0.2);
  box-shadow: 0 5px 10px rgba(90, 67, 34, 0.1);
  animation: miniEggNod 2.8s ease-in-out infinite;
}

.composer-pet-egg::before,
.composer-pet-egg::after {
  content: "";
  position: absolute;
  top: 13px;
  width: 3px;
  height: 4px;
  border-radius: 999px;
  background: rgba(42, 39, 32, 0.78);
}

.composer-pet-egg::before {
  left: 8px;
}

.composer-pet-egg::after {
  right: 8px;
}

#composerPetLine {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.name-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(34, 42, 35, 0.24);
  backdrop-filter: blur(8px);
}

.name-card {
  width: min(100%, 330px);
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(35, 47, 36, 0.22);
}

.name-card label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 900;
}

.name-row {
  display: flex;
  gap: 10px;
}

.name-row input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
}

.name-row button,
.name-close {
  height: 44px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.name-row button {
  padding: 0 16px;
  background: var(--mint);
  color: #fff;
}

.name-close {
  width: 100%;
  margin-top: 10px;
  background: #f3f5ef;
  color: #667066;
}

.input-row {
  align-items: flex-end;
}

.input-row textarea {
  min-width: 0;
  flex: 1;
  max-height: 112px;
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid #e4e8e0;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  outline: none;
  resize: none;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.input-row button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  box-shadow: 0 10px 22px rgba(73, 187, 139, 0.28);
}

@keyframes breathe {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  50% {
    transform: translateX(-50%) translateY(-5px) scale(1.018);
  }
}

@keyframes photoEggBreathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -53%) scale(1.018);
  }
}

@keyframes eggBounce {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  38% {
    transform: translate(-50%, -62%) scale(1.045, 0.96);
  }

  72% {
    transform: translate(-50%, -47%) scale(0.985, 1.025);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes eggWiggle {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  20% {
    transform: translate(-51%, -50%) rotate(-5deg) scale(1.01);
  }

  42% {
    transform: translate(-49%, -51%) rotate(5deg) scale(1.012);
  }

  64% {
    transform: translate(-50%, -49%) rotate(-3deg) scale(1);
  }
}

@keyframes eggGlowPop {
  0% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
  }

  45% {
    transform: translate(-50%, -54%) scale(1.045);
    filter: brightness(1.08) saturate(1.08);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
  }
}

@keyframes eggShy {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  35% {
    transform: translate(-54%, -51%) rotate(-7deg) scale(0.99);
  }

  68% {
    transform: translate(-48%, -50%) rotate(3deg) scale(1.015);
  }
}

@keyframes eggSleepy {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  36% {
    transform: translate(-50%, -47%) scale(1.025, 0.965);
  }

  72% {
    transform: translate(-50%, -49%) rotate(2deg) scale(0.995, 1.01);
  }
}

@keyframes eggFocus {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  28% {
    transform: translate(-50%, -52%) scale(1.028);
  }

  56% {
    transform: translate(-50%, -50%) scale(0.99);
  }
}

@keyframes eggDance {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  12% {
    transform: translate(-58%, -56%) rotate(-13deg) scale(1.04);
  }

  25% {
    transform: translate(-43%, -61%) rotate(15deg) scale(1.06, 0.96);
  }

  40% {
    transform: translate(-54%, -48%) rotate(-10deg) scale(0.98, 1.06);
  }

  56% {
    transform: translate(-46%, -58%) rotate(12deg) scale(1.05);
  }

  74% {
    transform: translate(-50%, -47%) rotate(-4deg) scale(0.99, 1.04);
  }
}

@keyframes eggProud {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  35% {
    transform: translate(-50%, -57%) rotate(-2deg) scale(1.07, 0.95);
  }

  70% {
    transform: translate(-50%, -48%) rotate(2deg) scale(0.98, 1.04);
  }
}

@keyframes eggSulk {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  38% {
    transform: translate(-53%, -48%) rotate(-8deg) scale(0.98, 1.02);
  }

  72% {
    transform: translate(-51%, -50%) rotate(-4deg) scale(1);
  }
}

@keyframes eggStartled {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  40% {
    transform: translate(-50%, -67%) scale(0.92, 1.12);
  }

  70% {
    transform: translate(-50%, -45%) scale(1.08, 0.9);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes eggHalo {
  0% {
    transform: scale(0.86);
    opacity: 0;
  }

  42% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes roughIdle {
  0%,
  100% {
    transform: translateX(-50%) rotate(-1deg) scale(1, 1);
  }

  38% {
    transform: translateX(-50%) rotate(1deg) scale(1.015, 0.99);
  }

  72% {
    transform: translateX(-50%) rotate(-2deg) scale(0.995, 1.015);
  }
}

@keyframes roughBlink {
  0%,
  88%,
  100% {
    transform: scaleY(1);
  }

  92% {
    transform: scaleY(0.16);
  }
}

@keyframes roughHop {
  0% {
    transform: translateX(-50%) translateY(0) rotate(-1deg) scale(1);
  }

  34% {
    transform: translateX(-50%) translateY(-22px) rotate(5deg) scale(1.05, 0.94);
  }

  72% {
    transform: translateX(-50%) translateY(4px) rotate(-4deg) scale(0.96, 1.07);
  }

  100% {
    transform: translateX(-50%) translateY(0) rotate(-1deg) scale(1);
  }
}

@keyframes roughWiggle {
  0%,
  100% {
    transform: translateX(-50%) rotate(-1deg);
  }

  25% {
    transform: translateX(-55%) rotate(-9deg);
  }

  50% {
    transform: translateX(-45%) rotate(8deg);
  }

  75% {
    transform: translateX(-52%) rotate(-5deg);
  }
}

@keyframes roughShy {
  0%,
  100% {
    transform: translateX(-50%) rotate(-1deg);
  }

  42% {
    transform: translateX(-56%) rotate(-10deg) scale(0.98);
  }

  72% {
    transform: translateX(-48%) rotate(4deg) scale(1.01);
  }
}

@keyframes roughSleepy {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-2deg) scale(1, 1);
  }

  50% {
    transform: translateX(-50%) translateY(5px) rotate(1deg) scale(1.04, 0.94);
  }
}

@keyframes roughFocus {
  0%,
  100% {
    transform: translateX(-50%) rotate(0deg) scale(1);
  }

  50% {
    transform: translateX(-50%) rotate(0deg) scale(1.04, 0.98);
  }
}

@keyframes roughDance {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-2deg) scale(1);
  }

  18% {
    transform: translateX(-63%) translateY(-17px) rotate(-16deg) scale(1.04, 0.96);
  }

  36% {
    transform: translateX(-38%) translateY(-24px) rotate(15deg) scale(1.07, 0.93);
  }

  56% {
    transform: translateX(-58%) translateY(2px) rotate(-10deg) scale(0.96, 1.08);
  }

  76% {
    transform: translateX(-43%) translateY(-14px) rotate(12deg) scale(1.04);
  }
}

@keyframes roughBigDance {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-2deg) scale(1);
  }

  14% {
    transform: translateX(-67%) translateY(-24px) rotate(-18deg) scale(1.08, 0.94);
  }

  30% {
    transform: translateX(-34%) translateY(-30px) rotate(18deg) scale(1.1, 0.92);
  }

  46% {
    transform: translateX(-50%) translateY(4px) rotate(0deg) scale(0.92, 1.12);
  }

  62% {
    transform: translateX(-62%) translateY(-20px) rotate(-14deg) scale(1.06);
  }

  80% {
    transform: translateX(-38%) translateY(-16px) rotate(14deg) scale(1.05);
  }
}

@keyframes careRewardGlow {
  0% {
    opacity: 0.2;
    transform: translateY(8px) scale(0.98);
  }

  34% {
    opacity: 0.85;
    transform: translateY(0) scale(1.02);
  }

  100% {
    opacity: 0.35;
    transform: translateY(0) scale(1);
  }
}

@keyframes roughProud {
  0%,
  100% {
    transform: translateX(-50%) rotate(-1deg) scale(1);
  }

  45% {
    transform: translateX(-50%) rotate(0deg) scale(1.06, 0.96);
  }
}

@keyframes roughSulk {
  0%,
  100% {
    transform: translateX(-50%) rotate(-1deg) scale(1);
  }

  48% {
    transform: translateX(-52%) rotate(-7deg) scale(0.98, 1.02);
  }
}

@keyframes roughStartled {
  0% {
    transform: translateX(-50%) scale(1);
  }

  45% {
    transform: translateX(-50%) translateY(-12px) scale(0.92, 1.12);
  }

  100% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes roughStretch {
  0%,
  100% {
    transform: translateX(-50%) rotate(-1deg) scale(1);
  }

  30% {
    transform: translateX(-50%) translateY(5px) rotate(0deg) scale(1.12, 0.86);
  }

  64% {
    transform: translateX(-50%) translateY(-10px) rotate(3deg) scale(0.94, 1.12);
  }
}

@keyframes roughHungry {
  0%,
  100% {
    transform: translateX(-50%) rotate(-1deg) scale(1);
  }

  22% {
    transform: translateX(-54%) rotate(-5deg) scale(1.03, 0.98);
  }

  48% {
    transform: translateX(-46%) rotate(5deg) scale(1.03, 0.98);
  }

  74% {
    transform: translateX(-50%) translateY(-5px) rotate(0deg) scale(0.98, 1.05);
  }
}

@keyframes petBlink {
  0%,
  88%,
  100% {
    transform: scaleY(1);
  }

  91%,
  94% {
    transform: scaleY(0.08);
  }
}

@keyframes petFaceLook {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }

  28% {
    transform: translate(-47%, -51%);
  }

  58% {
    transform: translate(-53%, -49%);
  }

  78% {
    transform: translate(-50%, -52%);
  }
}

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

  50% {
    transform: translate(-50%, -47%) rotate(1deg);
  }
}

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

  50% {
    transform: translate(-52%, -49%) rotate(-7deg);
  }
}

@keyframes petFaceCurious {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }

  42% {
    transform: translate(-44%, -53%) rotate(2deg);
  }

  72% {
    transform: translate(-54%, -50%) rotate(-1deg);
  }
}

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

  18% {
    transform: translate(-56%, -53%) rotate(-10deg);
  }

  36% {
    transform: translate(-44%, -55%) rotate(12deg);
  }

  58% {
    transform: translate(-53%, -48%) rotate(-6deg);
  }

  78% {
    transform: translate(-47%, -53%) rotate(7deg);
  }
}

@keyframes petSpriteDance {
  0%,
  100% {
    background-position: 20% 0;
  }

  18% {
    background-position: 100% 0;
  }

  36% {
    background-position: 60% 0;
  }

  58% {
    background-position: 100% 0;
  }

  78% {
    background-position: 20% 0;
  }
}

@keyframes lampPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes stickerPop {
  from {
    opacity: 0;
    transform: translateY(8px) rotate(-12deg) scale(0.72);
  }

  to {
    opacity: 1;
  }
}

@keyframes rewardPop {
  0% {
    opacity: 0;
    filter: brightness(1);
  }

  36% {
    opacity: 1;
    filter: brightness(1.18);
  }

  68% {
    filter: brightness(1.06);
  }

  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

@keyframes bubbleTalk {
  0% {
    transform: translateY(4px) scale(0.985);
    opacity: 0.78;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes floatDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }

  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes miniEggNod {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-2px) rotate(-2deg);
  }
}

@media (min-width: 760px) {
  body {
    padding: 20px 0;
  }

  .shell {
    min-height: calc(100vh - 40px);
    border-radius: 24px;
    overflow: hidden;
  }

  .login-view,
  .pet-view {
    min-height: calc(100vh - 40px);
  }
}

@media (max-width: 390px) {
  .topbar {
    left: 16px;
    right: 16px;
  }

  .hero {
    min-height: 486px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .glass-dome {
    height: 360px;
  }

  .speech-card {
    top: 150px;
    right: 18px;
    width: min(214px, calc(100% - 136px));
  }

  .meters {
    margin-left: 12px;
    margin-right: 12px;
  }

  .meters article {
    padding: 14px 9px 12px;
  }

  .meter-head {
    font-size: 11px;
  }

  .meters strong {
    font-size: 23px;
  }

  .chat {
    margin-left: 12px;
    margin-right: 12px;
  }
}

@media (max-width: 350px) {
  .stage-line {
    grid-template-columns: auto minmax(56px, 76px) auto;
  }

  .speech-card {
    width: 198px;
  }

}
