:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #241f1d;
  --muted: #6d645d;
  --line: rgba(36, 31, 29, 0.14);
  --paper: rgba(255, 255, 255, 0.9);
  --green: #37a58f;
  --blue: #3c85d6;
  --coral: #ee7f6f;
  --gold: #f2bd4b;
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d6c4b5' stroke-width='1' opacity='.42'%3E%3Cpath d='M0 40h120M0 80h120M40 0v120M80 0v120'/%3E%3C/g%3E%3C/svg%3E");
}

button,
input {
  font: inherit;
}

.desktop {
  min-height: 100vh;
  padding: 18px;
}

.workspace {
  position: relative;
  height: calc(100vh - 36px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(246, 250, 252, 0.84), rgba(255, 250, 239, 0.88)),
    radial-gradient(circle at 18% 16%, rgba(55, 165, 143, 0.18), transparent 25%),
    radial-gradient(circle at 84% 18%, rgba(238, 127, 111, 0.16), transparent 22%);
  box-shadow: 0 24px 60px rgba(45, 39, 34, 0.16);
}

.aurora,
.scanline,
.particle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aurora {
  background:
    conic-gradient(from 90deg at 22% 36%, rgba(55, 165, 143, 0.32), transparent, rgba(60, 133, 214, 0.24), transparent),
    conic-gradient(from 240deg at 78% 20%, rgba(238, 127, 111, 0.28), transparent, rgba(242, 189, 75, 0.24), transparent);
  filter: blur(34px) saturate(1.25);
  opacity: 0.9;
  animation: aurora-drift 12s ease-in-out infinite alternate;
}

.scanline {
  background: linear-gradient(180deg, transparent 0 46%, rgba(255, 255, 255, 0.42) 50%, transparent 54%);
  mix-blend-mode: overlay;
  opacity: 0.4;
  transform: translateY(-100%);
  animation: scanline 7s linear infinite;
}

.particle-field span {
  position: absolute;
  left: var(--x);
  bottom: -18px;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 18px rgba(55, 165, 143, 0.5);
  animation: particle-rise var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.topbar {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar strong {
  display: block;
  font-size: 18px;
}

.topbar span,
.dock span {
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 10px 22px rgba(45, 39, 34, 0.1);
  cursor: pointer;
}

.icon-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  z-index: 4;
  top: 92px;
  left: 50%;
  max-width: min(320px, calc(100vw - 64px));
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 32px rgba(45, 39, 34, 0.13);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.bubble-pop-enter-active,
.bubble-pop-leave-active {
  transition: opacity 180ms ease, transform 180ms ease;
}

.bubble-pop-enter-from,
.bubble-pop-leave-to {
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.96);
}

.bubble-pop-enter-to,
.bubble-pop-leave-from {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.model-panel {
  position: absolute;
  z-index: 5;
  top: 78px;
  right: 16px;
  width: min(300px, calc(100% - 32px));
  padding: 10px;
  border: 1px solid rgba(55, 165, 143, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 255, 250, 0.9)),
    radial-gradient(circle at 18% 0, rgba(55, 165, 143, 0.22), transparent 42%);
  box-shadow: 0 14px 30px rgba(45, 39, 34, 0.13), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.model-panel span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.model-panel strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.model-panel p {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}

.model-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.model-actions button {
  min-height: 32px;
  border: 1px solid rgba(36, 31, 29, 0.12);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #2e927f, #3c85d6);
  box-shadow: 0 10px 22px rgba(60, 133, 214, 0.2);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.model-actions button:only-child {
  grid-column: 1 / -1;
}

.conversion-panel {
  position: absolute;
  z-index: 4;
  top: 238px;
  left: 18px;
  width: min(330px, calc(100% - 36px));
  padding: 13px 14px;
  border: 1px solid rgba(60, 133, 214, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 250, 255, 0.9)),
    radial-gradient(circle at 8% 0, rgba(60, 133, 214, 0.2), transparent 44%);
  box-shadow: 0 18px 40px rgba(45, 39, 34, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.conversion-panel span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.conversion-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 22px;
}

.conversion-panel p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.conversion-panel.is-working::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(60, 133, 214, 0.14);
  box-shadow: inset 0 0 0 1px rgba(60, 133, 214, 0.08);
}

.conversion-panel.is-working::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--green), transparent);
  animation: conversion-loading 1.4s ease-in-out infinite;
}

.conversion-panel.is-failed {
  border-color: rgba(238, 127, 111, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 242, 239, 0.92)),
    radial-gradient(circle at 8% 0, rgba(238, 127, 111, 0.2), transparent 44%);
}

.conversion-panel.is-failed span {
  color: var(--coral);
}

.conversion-panel button {
  min-height: 34px;
  margin-top: 10px;
  padding: 0 13px;
  border: 1px solid rgba(36, 31, 29, 0.12);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--blue));
  box-shadow: 0 10px 22px rgba(238, 127, 111, 0.2);
  cursor: pointer;
}

.panel-rise-enter-active,
.panel-rise-leave-active {
  transition: opacity 180ms ease, transform 220ms ease;
}

.panel-rise-enter-from,
.panel-rise-leave-to {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.upload-panel {
  position: absolute;
  z-index: 4;
  top: 138px;
  left: 18px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: min(330px, calc(100% - 36px));
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(60, 133, 214, 0.28);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 249, 255, 0.88)),
    radial-gradient(circle at 18% 16%, rgba(60, 133, 214, 0.2), transparent 40%);
  box-shadow: 0 18px 42px rgba(45, 39, 34, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.upload-panel:hover,
.upload-panel:focus-within {
  border-color: rgba(55, 165, 143, 0.58);
  box-shadow: 0 22px 48px rgba(45, 39, 34, 0.18), 0 0 0 4px rgba(55, 165, 143, 0.12);
  transform: translateY(-2px);
}

.upload-panel.is-busy {
  cursor: wait;
}

.upload-panel input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-orb {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #ffffff 0 12%, transparent 13%),
    conic-gradient(from 210deg, var(--green), var(--blue), var(--coral), var(--gold), var(--green));
  box-shadow: 0 10px 24px rgba(60, 133, 214, 0.24);
  animation: upload-pulse 2.6s ease-in-out infinite;
}

.upload-orb::before,
.upload-orb::after {
  content: "";
  position: absolute;
  display: block;
}

.upload-orb::before {
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-left: 0;
  border-bottom: 0;
  transform: translate(-50%, -43%) rotate(-45deg);
}

.upload-orb::after {
  left: 50%;
  top: 18px;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  transform: translateX(-50%);
}

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

.upload-copy strong,
.upload-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-copy strong {
  font-size: 17px;
  line-height: 24px;
}

.upload-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}

.shadow-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.shadow-upload {
  position: absolute;
  z-index: 3;
  width: 152px;
  height: 34px;
  border: 1px solid rgba(36, 31, 29, 0.1);
  border-radius: 999px;
  color: rgba(36, 31, 29, 0);
  background:
    radial-gradient(ellipse at center, rgba(36, 31, 29, 0.22) 0 38%, rgba(36, 31, 29, 0.12) 55%, rgba(36, 31, 29, 0) 72%);
  cursor: pointer;
  transform-origin: center;
  transition: color 160ms ease, filter 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.shadow-upload span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  min-width: 74px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(45, 39, 34, 0.12);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 160ms ease, transform 160ms ease;
}

.shadow-upload:hover,
.shadow-upload:focus-visible {
  border-color: rgba(55, 165, 143, 0.36);
  color: var(--green);
  filter: drop-shadow(0 0 14px rgba(55, 165, 143, 0.24));
  transform: scale(1.08);
}

.shadow-upload:hover span,
.shadow-upload:focus-visible span,
.shadow-upload.is-busy span {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.shadow-upload.is-busy {
  cursor: wait;
}

.pet {
  position: absolute;
  z-index: 2;
  left: calc(50% - 110px);
  top: calc(50% - 130px);
  width: 220px;
  height: 250px;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  transform-origin: 50% 86%;
  transition: left 1600ms cubic-bezier(0.2, 0.8, 0.2, 1), top 1600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: pet-float 2.8s ease-in-out infinite;
}

.pet.is-run {
  animation: pet-run 360ms ease-in-out infinite;
}

.pet.is-exercise {
  animation: pet-exercise 720ms ease-in-out infinite;
}

.pet-model,
.pet-art,
.image-pet-wrap,
.custom-pet-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.image-pet-wrap {
  overflow: visible;
}

.pet-art {
  overflow: visible;
  filter: drop-shadow(0 16px 18px rgba(45, 39, 34, 0.22));
  transform-origin: 50% 86%;
}

.custom-pet-image {
  object-fit: contain;
  object-position: center bottom;
  border-radius: 8px;
}

.pet-tail {
  animation: tail-idle 2.8s ease-in-out infinite;
  transform-origin: 91px 170px;
}

.pet-head {
  animation: head-idle 3.4s ease-in-out infinite;
  transform-origin: 112px 122px;
}

.pet-eye {
  animation: blink 5s ease-in-out infinite;
  transform-origin: center;
}

.pet.is-sleep .pet-head,
.pet.is-sleep .pet-body {
  animation: sleep-breath 2.4s ease-in-out infinite;
}

.pet.is-sleep .pet-eye {
  animation: sleep-eye 2.4s ease-in-out infinite;
}

.pet.is-wave .pet-head {
  animation: wave-head 720ms ease-in-out infinite;
}

.pet.is-wave .pet-paw-right {
  animation: wave-paw 520ms ease-in-out infinite;
  transform-origin: 136px 204px;
}

.pet.is-run .pet-tail {
  animation: run-tail 320ms ease-in-out infinite;
}

.pet.is-run .pet-head {
  animation: run-head 360ms ease-in-out infinite;
}

.pet.is-drink .pet-head {
  animation: drink-head 1.2s ease-in-out infinite;
}

.pet.is-eat .pet-head {
  animation: eat-nod 520ms ease-in-out infinite;
}

.premium-cat .cat-left-ear,
.premium-cat .cat-right-ear,
.premium-cat .cat-bell,
.premium-cat .cat-fish,
.premium-cat .cat-scarf,
.premium-cat .cat-tail-tip,
.premium-cat .cat-whisker,
.premium-cat .cat-foot-left,
.premium-cat .cat-foot-right {
  transform-box: fill-box;
}

.premium-cat .cat-left-ear,
.premium-cat .cat-right-ear {
  animation: cat-ear-listen 4.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}

.premium-cat .cat-right-ear {
  animation-delay: 420ms;
}

.premium-cat .cat-bell {
  animation: cat-bell-idle 2.8s ease-in-out infinite;
  transform-origin: 50% 0;
}

.premium-cat .cat-fish {
  opacity: 0;
  transform: translate(12px, 7px) rotate(8deg) scale(0.82);
  transform-origin: 50% 50%;
  transition: opacity 180ms ease, transform 220ms ease;
}

.pet.is-eat .premium-cat .cat-fish {
  opacity: 1;
  animation: cat-fish-offer 680ms ease-in-out infinite;
}

.pet.is-wave .premium-cat .cat-bell {
  animation: cat-bell-wave 520ms ease-in-out infinite;
}

.pet.is-wave .premium-cat .cat-whisker {
  animation: cat-whisker-smile 720ms ease-in-out infinite;
  transform-origin: 50% 50%;
}

.pet.is-run .premium-cat .cat-foot-left,
.pet.is-run .premium-cat .cat-foot-right {
  animation: cat-foot-run 320ms ease-in-out infinite;
  transform-origin: 50% 50%;
}

.pet.is-run .premium-cat .cat-foot-right {
  animation-delay: 160ms;
}

.pet.is-sleep .premium-cat .cat-bell,
.pet.is-sleep .premium-cat .cat-fish {
  opacity: 0;
}

.premium-hamster .hamster-ear-left,
.premium-hamster .hamster-ear-right,
.premium-hamster .hamster-seed,
.premium-hamster .hamster-foot-left,
.premium-hamster .hamster-foot-right,
.premium-hamster .hamster-blush-left,
.premium-hamster .hamster-blush-right,
.premium-hamster .hamster-tail {
  transform-box: fill-box;
}

.premium-hamster .hamster-ear-left,
.premium-hamster .hamster-ear-right {
  animation: hamster-ear-soft 4.6s ease-in-out infinite;
  transform-origin: 50% 78%;
}

.premium-hamster .hamster-ear-right {
  animation-delay: 360ms;
}

.premium-hamster .hamster-seed {
  opacity: 0;
  transform: translate(8px, 7px) rotate(10deg) scale(0.86);
  transform-origin: 50% 50%;
  transition: opacity 180ms ease, transform 220ms ease;
}

.pet.is-eat .premium-hamster .hamster-seed {
  opacity: 1;
  animation: hamster-seed-nibble 680ms ease-in-out infinite;
}

.pet.is-wave .premium-hamster .hamster-paw-right {
  animation: hamster-wave-paw 520ms ease-in-out infinite;
  transform-origin: 144px 190px;
}

.pet.is-wave .premium-hamster .hamster-blush-left,
.pet.is-wave .premium-hamster .hamster-blush-right {
  animation: hamster-blush-pop 720ms ease-in-out infinite;
}

.pet.is-run .premium-hamster .hamster-foot-left,
.pet.is-run .premium-hamster .hamster-foot-right {
  animation: hamster-foot-run 320ms ease-in-out infinite;
  transform-origin: 50% 50%;
}

.pet.is-run .premium-hamster .hamster-foot-right {
  animation-delay: 160ms;
}

.pet.is-sleep .premium-hamster .hamster-seed {
  opacity: 0;
}

.sleep-badge {
  position: absolute;
  top: 26px;
  left: 56%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #2e6f76;
  background: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px) rotate(12deg);
  transition: opacity 160ms ease, transform 160ms ease;
}

.pet.is-sleep .sleep-badge {
  opacity: 1;
  transform: translateY(0) rotate(12deg);
}

.prop {
  position: absolute;
  right: 14px;
  bottom: 54px;
  width: 34px;
  height: 34px;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity 160ms ease, transform 160ms ease;
}

.prop::before,
.prop::after {
  content: "";
  position: absolute;
  display: block;
}

.prop-drink,
.prop-eat,
.prop-exercise {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.prop-drink::before {
  left: 8px;
  bottom: 0;
  width: 18px;
  height: 25px;
  border: 3px solid #2f7987;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(#dffbff 0 42%, #6cc7d7 43% 100%);
}

.prop-eat::before {
  left: 1px;
  bottom: 4px;
  width: 30px;
  height: 20px;
  border: 3px solid #8a5d2a;
  border-radius: 50%;
  background: #f6c85e;
}

.prop-exercise::before {
  left: 2px;
  top: 15px;
  width: 30px;
  height: 5px;
  border-radius: 999px;
  background: #5570c7;
  box-shadow: 0 -8px 0 #ed7d72, 0 8px 0 #37a58f;
}

.dock {
  position: absolute;
  z-index: 3;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  max-width: 560px;
}

.dock > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 26px rgba(45, 39, 34, 0.1);
}

.dock strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

meter {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 8px;
}

@keyframes pet-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes aurora-drift {
  0% {
    transform: scale(1) rotate(0deg);
  }
  100% {
    transform: scale(1.12) rotate(10deg);
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes particle-rise {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0.8);
  }
  14% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-110vh) translateX(38px) scale(1.35);
  }
}

@keyframes upload-pulse {
  0%,
  100% {
    filter: saturate(1);
    transform: scale(1);
  }
  50% {
    filter: saturate(1.25);
    transform: scale(1.06);
  }
}

@keyframes conversion-loading {
  0% {
    transform: translateX(-65%) scaleX(0.32);
  }
  50% {
    transform: translateX(0) scaleX(0.68);
  }
  100% {
    transform: translateX(65%) scaleX(0.32);
  }
}

@keyframes pet-run {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

@keyframes pet-exercise {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-16px) scaleY(0.96);
  }
}

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

@keyframes head-idle {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.12);
  }
}

@keyframes sleep-breath {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(3px) scaleY(0.97);
  }
}

@keyframes sleep-eye {
  0%,
  100% {
    transform: scaleY(0.08);
  }
}

@keyframes wave-head {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes wave-paw {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(-20deg) translateY(-10px);
  }
}

@keyframes run-tail {
  0%,
  100% {
    transform: rotate(-12deg);
  }
  50% {
    transform: rotate(18deg);
  }
}

@keyframes run-head {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(3deg) translateY(-3px);
  }
}

@keyframes drink-head {
  0%,
  100% {
    transform: rotate(3deg) translateY(0);
  }
  50% {
    transform: rotate(9deg) translateY(7px);
  }
}

@keyframes eat-nod {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes cat-ear-listen {
  0%,
  82%,
  100% {
    transform: rotate(0);
  }
  88% {
    transform: rotate(-7deg);
  }
  94% {
    transform: rotate(5deg);
  }
}

@keyframes cat-bell-idle {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@keyframes cat-bell-wave {
  0%,
  100% {
    transform: rotate(-13deg);
  }
  50% {
    transform: rotate(14deg);
  }
}

@keyframes cat-whisker-smile {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes cat-foot-run {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-5px) rotate(4deg);
  }
}

@keyframes cat-fish-offer {
  0%,
  100% {
    transform: translate(0, 0) rotate(2deg) scale(1);
  }
  50% {
    transform: translate(-4px, -3px) rotate(-4deg) scale(1.04);
  }
}

@keyframes hamster-ear-soft {
  0%,
  84%,
  100% {
    transform: rotate(0);
  }
  90% {
    transform: rotate(-5deg);
  }
  96% {
    transform: rotate(4deg);
  }
}

@keyframes hamster-wave-paw {
  0%,
  100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(-22deg) translateY(-8px);
  }
}

@keyframes hamster-blush-pop {
  0%,
  100% {
    opacity: 0.26;
    transform: scale(1);
  }
  50% {
    opacity: 0.38;
    transform: scale(1.08);
  }
}

@keyframes hamster-foot-run {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-5px) rotate(4deg);
  }
}

@keyframes hamster-seed-nibble {
  0%,
  100% {
    transform: translate(0, 0) rotate(2deg) scale(1);
  }
  50% {
    transform: translate(-3px, -2px) rotate(-5deg) scale(1.04);
  }
}

@media (max-width: 720px) {
  .desktop {
    padding: 10px;
  }

  .workspace {
    height: calc(100vh - 20px);
    min-height: 500px;
  }

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

  .dock {
    grid-template-columns: 1fr;
    right: auto;
    width: min(280px, calc(100% - 32px));
  }

  .model-panel {
    top: 86px;
    right: 12px;
    left: auto;
    width: min(300px, calc(100% - 24px));
  }

  .upload-panel {
    top: 124px;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .conversion-panel {
    top: 212px;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .pet {
    width: 180px;
    height: 205px;
  }

  .shadow-upload {
    width: 126px;
    height: 30px;
  }
}
