:root {
  color-scheme: light;
  font-family: Inter, ui-rounded, "SF Pro Rounded", "PingFang SC", "Noto Sans SC", sans-serif;
  font-synthesis: none;
  --ink: #2d302d;
  --muted: #7c8179;
  --paper: #f7f4ed;
  --panel: #fffefa;
  --coral: #df695e;
  --coral-soft: #f8ded7;
  --sage: #819b78;
  --line: #e7e2d8;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
button,
input,
textarea {
  font: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(360px, 52%) minmax(380px, 48%);
  height: 100dvh;
  overflow: hidden;
}
.pet-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: clamp(24px, 4vw, 54px);
  background: #f0d8c8;
  isolation: isolate;
}
.pet-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 42%;
  background: #dce6db;
  z-index: -2;
}
.pet-stage::after {
  content: "";
  position: absolute;
  inset: 42% 0 auto;
  height: 2px;
  background: rgb(80 92 76 / 10%);
  z-index: -1;
}
.stage-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 3;
}
.stage-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.camera-session {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 240px;
  padding: 6px 8px 6px 10px;
  border: 1px solid rgb(82 103 78 / 18%);
  border-radius: 6px;
  background: rgb(255 254 250 / 72%);
  color: #586354;
  font-size: 11px;
}
.camera-session[hidden] {
  display: none;
}
.camera-session.observing::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
  animation: camera-observing 1s ease-in-out infinite alternate;
}
.camera-button,
.reset-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 254 250 / 62%);
  color: #626960;
  cursor: pointer;
}
.camera-button:hover,
.reset-button:hover {
  background: rgb(255 254 250 / 88%);
}
.camera-button.active {
  background: #6d9469;
  color: #fff;
  box-shadow: 0 0 0 4px rgb(109 148 105 / 16%);
}
.camera-button.requesting {
  animation: camera-observing 0.8s ease-in-out infinite alternate;
}
.camera-button:disabled {
  cursor: wait;
  opacity: 0.7;
}
.camera-button svg,
.reset-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
h1,
h2,
p {
  margin: 0;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  font-weight: 760;
}
.stage-topline p {
  margin-top: 9px;
  color: #647061;
  font-size: 14px;
}
.online-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #6d9469;
  box-shadow: 0 0 0 5px rgb(109 148 105 / 15%);
}
.online-dot.offline {
  background: #aaa69f;
  box-shadow: none;
}

.pet-scene {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 260px;
}
.sun-patch {
  position: absolute;
  width: min(76%, 560px);
  aspect-ratio: 1.7;
  border-radius: 50%;
  background: rgb(255 249 210 / 48%);
  transform: rotate(-8deg);
  filter: blur(2px);
  top: 22%;
}
.pet-shadow {
  position: absolute;
  width: min(48%, 330px);
  height: 46px;
  border-radius: 50%;
  background: rgb(74 55 43 / 17%);
  filter: blur(8px);
  bottom: 15%;
}
.pet-art {
  position: absolute;
  z-index: 2;
  display: block;
  width: min(72%, 470px);
  height: min(72%, 530px);
  object-fit: contain;
  transform-origin: 50% 90%;
  opacity: 0;
  transition: opacity 240ms ease;
  animation: pet-breathe 3.4s ease-in-out infinite;
}
.pet-art.active {
  opacity: 1;
}
.pet-scene[data-gaze="cursor"] .pet-art {
  translate: calc(var(--gaze-x, 0) * 4px) calc(var(--gaze-y, 0) * 3px);
}
.pet-art.missing {
  visibility: hidden;
}
.pet-thought {
  position: absolute;
  z-index: 4;
  top: 10%;
  left: 50%;
  translate: -50% 0;
  max-width: min(340px, 78%);
  padding: 9px 13px;
  border-radius: 16px 16px 16px 4px;
  background: rgb(255 254 250 / 88%);
  box-shadow: 0 8px 24px rgb(65 51 43 / 10%);
  font-size: 14px;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.pet-thought.show {
  opacity: 1;
  transform: translateY(0);
}

.css-cat {
  position: relative;
  z-index: 2;
  display: block;
  width: 280px;
  height: 300px;
  animation: pet-breathe 3.4s ease-in-out infinite;
}
.pet-scene[data-assets="ready"] .css-cat {
  display: none;
}
.cat-body {
  position: absolute;
  width: 188px;
  height: 188px;
  left: 48px;
  top: 105px;
  border-radius: 48% 52% 42% 44%;
  background: #efaa63;
  box-shadow:
    inset -21px -8px 0 #e79551,
    inset 18px 0 0 #f6c384;
}
.cat-head {
  position: absolute;
  display: block;
  width: 190px;
  height: 166px;
  left: 43px;
  top: 34px;
  border-radius: 46% 48% 50% 52%;
  background: #f1b36f;
  box-shadow:
    inset -16px -6px 0 #e99a55,
    inset 15px 0 0 #f8ca8b;
}
.ear {
  position: absolute;
  width: 72px;
  height: 83px;
  top: -28px;
  background: #eea965;
  clip-path: polygon(50% 0, 100% 100%, 0 81%);
}
.ear::after {
  content: "";
  position: absolute;
  inset: 22px 19px 15px;
  background: #d97e73;
  clip-path: inherit;
}
.ear.left {
  left: 3px;
  transform: rotate(-8deg);
}
.ear.right {
  right: 3px;
  transform: scaleX(-1) rotate(-8deg);
}
.eye {
  position: absolute;
  top: 72px;
  width: 13px;
  height: 20px;
  border-radius: 50%;
  background: #3b3a32;
  box-shadow: inset 3px 2px 0 rgb(255 255 255 / 65%);
}
.eye.left {
  left: 50px;
}
.eye.right {
  right: 50px;
}
.pet-scene[data-gaze="cursor"] .eye {
  translate: calc(var(--gaze-x, 0) * 2px) calc(var(--gaze-y, 0) * 1px);
}
.muzzle {
  position: absolute;
  width: 54px;
  height: 38px;
  left: 68px;
  top: 100px;
  border-radius: 50%;
  background: #f8d7ab;
}
.muzzle::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 6px;
  left: 23px;
  top: 7px;
  border-radius: 50% 50% 60% 60%;
  background: #8d6256;
}
.cat-tail {
  position: absolute;
  z-index: -1;
  width: 125px;
  height: 51px;
  right: -11px;
  bottom: 26px;
  border: 27px solid #e89b58;
  border-left: 0;
  border-bottom-color: transparent;
  border-radius: 0 80% 50% 0;
  transform: rotate(-15deg);
  transform-origin: left center;
}

.pet-scene[data-ambient="blink"] .eye {
  animation: cat-blink 420ms ease-in-out;
}
.pet-scene[data-ambient="tail"] .cat-tail {
  animation: tail-wave 800ms ease-in-out 2;
}
.pet-scene[data-ambient="stretch"] .pet-art,
.pet-scene[data-ambient="stretch"] .css-cat {
  animation: pet-stretch 2.4s ease-in-out;
}
.pet-scene[data-ambient="gaze-input"] .pet-art,
.pet-scene[data-ambient="gaze-input"] .css-cat {
  rotate: 2deg;
  translate: 4px 2px;
}
.pet-scene[data-ambient="doze"] .eye {
  height: 3px;
  top: 83px;
  box-shadow: none;
}

.pet-scene[data-expression="happy"] .pet-art,
.pet-scene[data-expression="happy"] .css-cat,
.pet-scene[data-expression="purring"] .pet-art,
.pet-scene[data-expression="purring"] .css-cat {
  animation:
    pet-happy 0.65s ease-in-out 2,
    pet-breathe 3.4s 1.3s ease-in-out infinite;
}
.pet-scene[data-expression="listening"] .pet-art,
.pet-scene[data-expression="listening"] .css-cat,
.pet-scene[data-expression="curious"] .pet-art,
.pet-scene[data-expression="curious"] .css-cat {
  transform: rotate(3deg);
}
.pet-scene[data-expression="sleepy"] .eye {
  height: 3px;
  top: 83px;
  box-shadow: none;
}
.stage-floor {
  height: 40px;
  position: relative;
  z-index: 2;
}
.toy-ball {
  position: absolute;
  left: 12%;
  bottom: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d9675f;
  box-shadow: inset -7px -3px 0 rgb(126 46 42 / 16%);
}
.plant {
  position: absolute;
  right: 8%;
  bottom: -54px;
  width: 72px;
  height: 90px;
  border-radius: 5px 5px 30px 30px;
  background: #b76d54;
}
.plant i {
  position: absolute;
  bottom: 60px;
  left: 28px;
  width: 25px;
  height: 72px;
  border-radius: 100% 0;
  background: #78946e;
  transform-origin: bottom;
}
.plant i:first-child {
  transform: rotate(-46deg);
}
.plant i:nth-child(2) {
  transform: rotate(-10deg);
}
.plant i:last-child {
  transform: rotate(35deg);
}

.conversation {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) max-content;
  overflow: hidden;
  background: var(--panel);
  border-left: 1px solid rgb(45 48 45 / 8%);
}
.conversation-header {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 24px clamp(22px, 4vw, 52px) 18px;
  border-bottom: 1px solid var(--line);
}
.conversation-header h2 {
  font-size: 20px;
  font-weight: 720;
}
.conversation-header p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.history {
  overflow-y: auto;
  min-height: 0;
  max-height: 100%;
  padding: 24px clamp(18px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: #d9d4ca transparent;
}
.welcome {
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.message {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: min(84%, 540px);
}
.message.pet {
  align-self: flex-start;
}
.message.user {
  align-self: flex-end;
  align-items: flex-end;
}
.message-text {
  padding: 11px 14px;
  border-radius: 6px 18px 18px 18px;
  background: #f2f0e9;
  color: #343733;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
}
.user .message-text {
  border-radius: 18px 6px 18px 18px;
  background: var(--coral-soft);
}
.message-image {
  display: block;
  width: min(100%, 320px);
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 18px 6px 18px 18px;
  background: #171916;
  object-fit: contain;
}
.message-meta {
  padding: 0 5px;
  color: #9b9d96;
  font-size: 11px;
}
.system-message {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.typing {
  display: flex;
  gap: 4px;
  align-items: center;
  width: 52px;
  height: 37px;
  padding: 0 14px;
  border-radius: 6px 18px 18px;
  background: #f2f0e9;
}
.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #999d94;
  animation: typing 1s ease-in-out infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.14s;
}
.typing i:nth-child(3) {
  animation-delay: 0.28s;
}

.voice-bar {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 9px;
  min-width: 154px;
  height: 42px;
  padding: 0 13px 0 9px;
  border: 0;
  border-radius: 7px 17px 17px;
  background: #e8ece6;
  color: #4d594b;
  cursor: pointer;
}
.user .voice-bar {
  border-radius: 17px 7px 17px 17px;
  background: #f2c6bc;
  color: #78514a;
}
.voice-bar:focus-visible,
.mic-button:focus-visible,
.consent-actions button:focus-visible {
  outline: 3px solid rgb(78 117 154 / 35%);
  outline-offset: 2px;
}
.play-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(255 255 255 / 70%);
  font-size: 12px;
}
.wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
}
.wave i {
  display: block;
  width: 2px;
  height: var(--h, 8px);
  border-radius: 3px;
  background: currentColor;
  opacity: 0.55;
}
.voice-bar.playing .wave i {
  animation: wave 0.55s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -45ms);
}
.voice-duration {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.moment-card {
  --card-accent: #d66f61;
  --card-soft: #fff0ec;
  position: relative;
  flex: 0 0 auto;
  align-self: flex-start;
  width: min(88%, 440px);
  overflow: hidden;
  padding: 18px 20px 16px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 28%, white);
  border-left: 5px solid var(--card-accent);
  border-radius: 6px;
  background: var(--card-soft);
  box-shadow: 0 10px 28px rgb(45 48 45 / 10%);
  animation: moment-card-in 480ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.moment-card::after {
  position: absolute;
  top: 13px;
  right: 16px;
  color: var(--card-accent);
  content: "✦";
  font-size: 20px;
  opacity: 0.72;
}
.moment-card[data-accent="sage"] {
  --card-accent: #6f8968;
  --card-soft: #eef4eb;
}
.moment-card[data-accent="sunny"] {
  --card-accent: #c68b2f;
  --card-soft: #fff6dc;
}
.moment-card[data-accent="sky"] {
  --card-accent: #527f9d;
  --card-soft: #edf6fa;
}
.moment-card-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--card-accent);
  font-size: 11px;
  font-weight: 720;
}
.moment-card h3 {
  max-width: calc(100% - 28px);
  font-size: 18px;
  line-height: 1.35;
}
.moment-card p {
  margin-top: 8px;
  color: #4f544e;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.moment-card-footer {
  display: block;
  margin-top: 13px;
  color: #858a82;
  font-size: 11px;
}

.diary-card {
  --card-accent: #c65f55;
  --card-soft: #fff9f4;
  position: relative;
  flex: 0 0 auto;
  align-self: flex-start;
  width: min(92%, 500px);
  overflow: hidden;
  padding: 20px 22px 17px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 24%, white);
  border-left: 4px solid var(--card-accent);
  border-radius: 6px;
  background: var(--card-soft);
  box-shadow: 0 12px 30px rgb(45 48 45 / 11%);
  animation: moment-card-in 480ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.diary-card[data-accent="sage"] {
  --card-accent: #6f8968;
  --card-soft: #f8fbf6;
}
.diary-card[data-accent="sunny"] {
  --card-accent: #bd8128;
  --card-soft: #fffaf0;
}
.diary-card[data-accent="sky"] {
  --card-accent: #527f9d;
  --card-soft: #f5fafc;
}
.diary-card-eyebrow {
  display: block;
  margin-left: 25px;
  color: var(--card-accent);
  font-size: 11px;
  font-weight: 760;
}
.diary-card h3 {
  max-width: 100%;
  margin: 7px 0 0 25px;
  font-size: 20px;
  line-height: 1.35;
}
.diary-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0 0 25px;
  color: #72776f;
  font-size: 11px;
}
.diary-card p {
  margin: 13px 0 0 25px;
  color: #454a44;
  font-size: 14px;
  line-height: 2.2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.diary-card-footer {
  display: block;
  margin: 15px 0 0 25px;
  color: #858a82;
  font-size: 11px;
}

.camera-consent {
  align-self: flex-start;
  max-width: min(86%, 400px);
  padding: 13px 14px;
  border-left: 3px solid var(--sage);
  background: #f0f3ed;
  border-radius: 4px 8px 8px 4px;
}
.camera-consent p {
  font-size: 14px;
  line-height: 1.5;
}
.consent-actions {
  display: flex;
  gap: 8px;
  margin-top: 11px;
}
.consent-actions button {
  border: 1px solid #ccd5c8;
  border-radius: 5px;
  padding: 7px 13px;
  background: transparent;
  color: #536050;
  cursor: pointer;
}
.consent-actions .allow {
  background: #6f8968;
  border-color: #6f8968;
  color: white;
}

.composer {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
  align-items: end;
  min-height: 72px;
  padding: 15px clamp(18px, 4vw, 52px) max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgb(255 254 250 / 92%);
}
textarea {
  display: block;
  width: 100%;
  max-height: 126px;
  resize: none;
  border: 1px solid #d9d6ce;
  border-radius: 7px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  outline: none;
}
textarea:focus {
  border-color: #aeb8aa;
  box-shadow: 0 0 0 3px rgb(129 155 120 / 13%);
}
textarea::placeholder {
  color: #a4a69f;
}
.mic-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
.mic-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mic-button.recording {
  background: var(--coral);
}
.record-pulse {
  display: none;
  position: absolute;
  inset: -5px;
  border: 2px solid var(--coral);
  border-radius: 50%;
  animation: record-pulse 1.1s ease-out infinite;
}
.recording .record-pulse {
  display: block;
}
.mic-button:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: default;
}
.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 86px;
  translate: -50% 12px;
  max-width: min(420px, calc(100% - 32px));
  padding: 10px 15px;
  border-radius: 7px;
  background: #30332f;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    translate 0.18s;
}
.toast.show {
  opacity: 1;
  translate: -50% 0;
}
.reset-dialog,
.invite-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(45 48 45 / 22%);
}
.reset-dialog::backdrop,
.invite-dialog::backdrop {
  background: rgb(45 48 45 / 34%);
}
.reset-dialog form,
.invite-dialog form {
  padding: 24px;
}
.reset-dialog h2,
.invite-dialog h2 {
  font-size: 19px;
}
.reset-dialog p,
.invite-dialog p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.reset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
.reset-actions button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.reset-actions .danger {
  border-color: #bd5e55;
  background: #bd5e55;
  color: white;
}
.invite-dialog label {
  display: block;
  margin-top: 20px;
  color: #60655e;
  font-size: 12px;
  font-weight: 650;
}
.invite-dialog input {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid #d9d6ce;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  outline: none;
}
.invite-dialog input:focus {
  border-color: #879c80;
  box-shadow: 0 0 0 3px rgb(129 155 120 / 14%);
}
.invite-dialog .invite-error {
  min-height: 19px;
  margin-top: 7px;
  color: #b84f47;
  font-size: 12px;
}
.invite-submit {
  width: 100%;
  height: 42px;
  margin-top: 8px;
  border: 0;
  border-radius: 5px;
  background: #637c5c;
  color: white;
  cursor: pointer;
}
.invite-submit:disabled,
.invite-dialog input:disabled {
  opacity: 0.55;
  cursor: default;
}

@keyframes pet-breathe {
  0%,
  100% {
    transform: translateY(2px) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.012);
  }
}
@keyframes pet-happy {
  50% {
    transform: translateY(-13px) rotate(2deg);
  }
}
@keyframes pet-stretch {
  45% {
    transform: translateY(-6px) scaleX(1.045) scaleY(0.96) rotate(-2deg);
  }
}
@keyframes cat-blink {
  45%,
  60% {
    height: 3px;
    translate: 0 8px;
    box-shadow: none;
  }
}
@keyframes camera-observing {
  to {
    opacity: 0.35;
  }
}
@keyframes tail-wave {
  50% {
    transform: rotate(6deg);
  }
}
@keyframes typing {
  50% {
    transform: translateY(-4px);
    opacity: 0.45;
  }
}
@keyframes wave {
  to {
    transform: scaleY(0.45);
  }
}
@keyframes record-pulse {
  to {
    transform: scale(1.22);
    opacity: 0;
  }
}
@keyframes moment-card-in {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  body {
    overflow: hidden;
  }
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(245px, 39dvh) minmax(0, 61dvh);
  }
  .pet-stage {
    padding: 18px 20px 8px;
  }
  .pet-stage::before {
    height: 45%;
  }
  .pet-stage::after {
    top: 45%;
  }
  h1 {
    font-size: 28px;
  }
  .stage-topline p {
    margin-top: 5px;
  }
  .stage-actions {
    gap: 7px;
  }
  .camera-session {
    position: absolute;
    z-index: 5;
    top: 54px;
    right: 18px;
    max-width: 210px;
  }
  .pet-scene {
    min-height: 145px;
  }
  .pet-art {
    width: min(58%, 240px);
    height: min(95%, 235px);
  }
  .css-cat {
    scale: 0.58;
    width: 280px;
    height: 290px;
    margin: -45px;
  }
  .pet-shadow {
    width: 190px;
    height: 28px;
    bottom: 8%;
  }
  .sun-patch {
    width: 260px;
    top: 15%;
  }
  .pet-thought {
    top: 5%;
    left: 71%;
    max-width: 42%;
    font-size: 12px;
  }
  .stage-floor {
    height: 10px;
  }
  .toy-ball {
    width: 22px;
    height: 22px;
    bottom: 4px;
  }
  .plant {
    scale: 0.72;
    transform-origin: bottom right;
    right: 2%;
  }
  .conversation {
    grid-template-rows: minmax(0, 1fr) max-content;
    border-left: 0;
    border-top: 1px solid rgb(45 48 45 / 8%);
  }
  .conversation-header {
    display: none;
  }
  .history {
    padding: 18px 16px;
    gap: 15px;
  }
  .message {
    max-width: 88%;
  }
  .composer {
    padding: 11px 14px max(12px, env(safe-area-inset-bottom));
  }
  .toast {
    bottom: 76px;
  }
}

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