html:has(body.eg-pet-page) { overflow: hidden }
body.eg-pet-page, body.eg-shell.eg-pet-page {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: #231d2b;
  color: #fff1df;
}
@media (min-width: 761px) {
  body.eg-shell.eg-pet-page.eg-side-ready { padding-left: var(--eg-side-width) !important }
}
body > main.pet-page {
  --pet-paper: #fff1df;
  --pet-mute: #dcc7d9;
  --pet-warm: #e8bb9c;
  --pet-line: #edc7c447;
  --pet-surface: #2b2334ee;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  font: 500 14px/1.35 Outfit, system-ui, sans-serif;
  animation: none;
}
.pet-page *, .pet-page *::before, .pet-page *::after { box-sizing: border-box }
.pet-page [hidden] { display: none !important }
.pet-page :is(h1,h2,p,ul) { margin: 0 }
.pet-page ul { list-style: none; padding: 0 }
.pet-page button { cursor: pointer; font: inherit }
.pet-page button:disabled { cursor: default; opacity: .56 }
.pet-page :is(button,input):focus-visible { outline: 2px solid #ffe1c6; outline-offset: 2px }
.pet-page svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round }

.pet-world {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  height: 100svh;
  height: 100dvh;
  padding: 125px 18px max(12px,env(safe-area-inset-bottom),var(--pet-cookie-clearance,0px));
  width: 100%;
  background: #302638;
}
body.eg-pet-page:has(> #eg-cookie-notice:not([hidden])) .pet-world { --pet-cookie-clearance: 72px }
.pet-art, .pet-art img, .pet-art::after { position: absolute; inset: 0; width: 100%; height: 100% }
.pet-art { z-index: -1; pointer-events: none; overflow: hidden }
.pet-art picture { position: absolute; inset: 0; display: block }
.pet-art img { object-fit: cover; object-position: 50% 46%; font-size: 0 }
.pet-art picture[data-room-art=bath] img {
  inset: var(--bath-art-y,0px) auto auto var(--bath-art-x,0px);
  width: var(--bath-art-width,100%); height: var(--bath-art-height,100%); object-fit: fill;
}
.pet-art::after, .pet-bath-front::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,#221727cc 0%,#38294613 35%,#38294611 58%,#1b1429a8 83%,#161020ee 100%);
}
.pet-world[data-theme=apricot] .pet-art img,
.pet-world[data-theme=apricot] .pet-bath-front::before { filter: sepia(.21) saturate(1.17) brightness(1.05) }
.pet-world[data-theme=night] .pet-art img,
.pet-world[data-theme=night] .pet-bath-front::before { filter: hue-rotate(18deg) saturate(.74) brightness(.80) }
.pet-world[data-asleep=true] .pet-art::after,
.pet-world[data-asleep=true] .pet-bath-front::after {
  background: linear-gradient(180deg,#17142de6,#241e45aa 48%,#171228e8);
}

.pet-hud, .pet-console { width: min(100%, 590px); justify-self: center; min-width: 0 }
.pet-top {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.pet-top :is(h1,.pet-level) { text-shadow: 0 2px 6px #201626 }
.pet-identity { min-width: 0 }
.pet-identity-line { display: flex; align-items: center; gap: 7px; min-width: 0 }
.pet-identity h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pet-paper); font-size: clamp(22px,4vw,32px); font-weight: 650; letter-spacing: -.035em }
.pet-icon-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--pet-line);
  border-radius: 50%;
  background: var(--pet-surface);
  color: var(--pet-paper);
}
.pet-icon-button:hover { background: #513753 }
.pet-icon-button svg { width: 16px; height: 16px }
.pet-level { display: flex; align-items: center; gap: 7px; color: var(--pet-mute); font-size: 11px }
.pet-track { display: block; width: clamp(35px,12vw,88px); height: 4px; overflow: hidden; border-radius: 20px; background: #f5e0d42b }
.pet-track i, .pet-vital-bar i { width: 100%; height: 100%; display: block; transform-origin: left; background: #e8b496; transform: scaleX(0) }
.pet-wallet { display: flex; align-items: center; flex: none; gap: 5px; padding: 7px 10px; color: #f0d1a8; background: var(--pet-surface); border: 1px solid var(--pet-line); border-radius: 99px; font-variant-numeric: tabular-nums }
.pet-wallet svg { width: 18px; height: 18px }
.pet-vitals { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--pet-line); border-radius: 12px; background: #efceb43c }
.pet-vital { min-width: 0; padding: 6px 7px; background: #332739f5 }
.pet-vital-line { display: flex; justify-content: space-between; align-items: baseline; gap: 3px; min-width: 0; margin-bottom: 4px; color: var(--pet-mute); font-size: 10px; white-space: nowrap }
.pet-vital-line strong { font-variant-numeric: tabular-nums; color: var(--pet-paper); font-size: 11px; font-weight: 650 }
.pet-vital-bar { display: block; height: 4px; border-radius: 20px; background: #ecdfda25; overflow: hidden }
.pet-vital-bar i { background: var(--pet-vital,#e8b79c); transition: transform .32s ease }
.pet-vital[data-key=clean] { --pet-vital: #9fc8c9 }
.pet-vital[data-key=energy] { --pet-vital: #e3c88f }
.pet-vital[data-key=mood] { --pet-vital: #dca0c9 }
.pet-vital[data-key=health] { --pet-vital: #a9c797 }
.pet-vital.is-low .pet-vital-line strong { color: #ffd2c1 }
.pet-vital.is-low .pet-vital-bar i { background: #f0a89c }
.pet-page .pet-preparing {
  display: table; margin: 6px auto 0; padding: 3px 9px;
  color: var(--pet-paper); background: var(--pet-surface); border: 1px solid var(--pet-line);
  border-radius: 99px; font-size: 11px; text-align: center;
}

.pet-scene { position: relative; min-height: 0; display: grid; place-items: center; overflow: clip }
.pet-feedback {
  z-index: 3;
  position: absolute;
  inset: 5px auto auto 50%;
  translate: -50% 0;
  max-width: min(95%,400px);
  width: max-content;
  padding: 5px 11px;
  border: 1px solid var(--pet-line);
  border-radius: 14px;
  background: #251f31ee;
  color: var(--pet-paper);
  pointer-events: none;
  font-size: 12px;
  text-align: center;
}
.pet-feedback:empty, .pet-panel-feedback:empty { display: none }
.pet-character {
  position: relative;
  width: min(355px, 68vw, max(106px,calc(100dvh - 332px - var(--pet-cookie-clearance,0px))));
  aspect-ratio: 1;
  isolation: isolate;
  --mouth-x: 50%;
  --mouth-y: 45%;
  --chest-y: 60%;
  --outfit-width: 48%;
}
.pet-ground { position: absolute; z-index: -1; inset: auto 14% 3%; height: 12%; background: radial-gradient(ellipse,#23152b99,transparent 70%) }
.pet-bath-water, .pet-bath-front, .pet-lather { display: none; pointer-events: none }
.pet-world[data-room=bath][data-bath-ready] .pet-character {
  position: absolute; z-index: 1;
  left: var(--bath-pet-x); top: var(--bath-pet-y); width: var(--bath-pet-size);
}
.pet-world[data-room=bath][data-bath-ready] :is(.pet-bath-water,.pet-bath-front,.pet-lather) { display: block }
.pet-world[data-room=bath] .pet-ground { display: none }
.pet-bath-front {
  position: absolute; z-index: 2;
  left: var(--bath-world-x); top: var(--bath-world-y);
  width: var(--bath-world-width); height: var(--bath-world-height);
  clip-path: var(--bath-front-clip);
}
.pet-bath-front::before {
  content: ''; position: absolute; inset: 0;
  background: url('/care-bath-1440-v1.webp') var(--bath-art-x) var(--bath-art-y) / var(--bath-art-width) var(--bath-art-height) no-repeat;
}
.pet-bath-water {
  position: absolute; z-index: 0; left: var(--bath-water-x); top: var(--bath-water-y);
  width: var(--bath-water-width); height: var(--bath-water-height);
  border-radius: 50%; background: radial-gradient(ellipse,#c2e4df85,#9abdbf66 68%,transparent 74%);
  scale: 1 1; transition: scale .16s ease;
}
.pet-world[data-scrubbing] .pet-bath-water { scale: 1.04 1.22 }
.pet-world[data-scrubbing] .pet-motion { transform: rotate(-3deg) scale(.985,1.015) }
.pet-lather { position: absolute; inset: 0 }
.pet-lather i {
  position: absolute; left: var(--x); top: var(--y); width: var(--bubble-size); aspect-ratio: 1;
  border-radius: 50%; border: 1px solid #f5fffe8c;
  background: radial-gradient(circle at 32% 25%,#fff 3%,#edf9f1eb 31%,#a8dcdbc7 76%,#def4e6e0);
  box-shadow: 0 2px 4px #4b64772b;
  opacity: clamp(0,calc((var(--bath-progress,0) - var(--at)) * 5),1);
  transition: opacity .18s ease;
}
.pet-lather i:nth-child(1) { --x: 31%; --y: 57%; --bubble-size: 12%; --at: .03 }
.pet-lather i:nth-child(2) { --x: 39%; --y: 62%; --bubble-size: 10%; --at: .13 }
.pet-lather i:nth-child(3) { --x: 53%; --y: 59%; --bubble-size: 14%; --at: .22 }
.pet-lather i:nth-child(4) { --x: 61%; --y: 52%; --bubble-size: 10%; --at: .31 }
.pet-lather i:nth-child(5) { --x: 26%; --y: 49%; --bubble-size: 9%; --at: .40 }
.pet-lather i:nth-child(6) { --x: 28%; --y: 42%; --bubble-size: 6%; --at: .49 }
.pet-lather i:nth-child(7) { --x: 64%; --y: 45%; --bubble-size: 7%; --at: .58 }
.pet-lather i:nth-child(8) { --x: 49%; --y: 64%; --bubble-size: 9%; --at: .67 }
.pet-touch, .pet-familiar, .pet-motion, .pet-body { position: absolute; inset: 0; width: 100%; height: 100% }
.pet-touch { display: block; border: 0; padding: 0; background: none; border-radius: 24%; touch-action: manipulation; color: inherit }
.pet-touch-hint {
  position: absolute; left: 50%; bottom: 0; translate: -50% 25%;
  padding: 3px 10px; border: 1px solid #edc7c447; border-radius: 99px;
  background: #302438d9; color: #f4dfd6; font-size: 10px; font-weight: 650;
  text-align: center; white-space: nowrap; pointer-events: none;
}
.pet-world:not([data-room=greenhouse]):not([data-food=true]) .pet-touch-hint,
.pet-world[data-asleep=true] .pet-touch-hint,
.pet-world[data-drag=true] .pet-touch-hint,
.pet-world[data-reaction] .pet-touch-hint { display: none }
.pet-familiar, .pet-motion, .pet-body, .pet-clothes, .pet-mouth { display: block; pointer-events: none }
.pet-familiar { animation: pet-breathe 4.6s ease-in-out infinite; transform-origin: 50% 86% }
.pet-motion { transform-origin: 50% 76% }
.pet-body, .pet-clothes { object-fit: contain; user-select: none }
.pet-sleep-eyes { position: absolute; inset: 0; pointer-events: none }
.pet-sleep-eyes i {
  position: absolute; left: var(--eye-x); top: var(--eye-y);
  width: var(--eye-width); height: var(--eye-height);
  translate: -50% -50%; rotate: var(--eye-angle);
  background: radial-gradient(ellipse at 46% 30%,var(--lid-light),var(--lid-shadow) 86%);
  mask-image: radial-gradient(ellipse closest-side,#000 77%,transparent 100%);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .19s ease-out;
}
.pet-sleep-eyes i::after {
  content: ''; position: absolute; inset: 28% 13% 28%;
  border-bottom: clamp(1px,.17vw,2.5px) solid var(--lid-line);
  border-radius: 0 0 52% 52%;
}
.pet-world[data-asleep=true] .pet-sleep-eyes i { clip-path: inset(0) }
.pet-clothes { position: absolute; left: var(--mouth-x); top: var(--chest-y); width: var(--outfit-width); height: auto; translate: -50% -43% }
.pet-mouth {
  position: absolute;
  top: var(--mouth-y);
  left: var(--mouth-x);
  width: max(40px,31%);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px dashed #ffe8cca8;
  opacity: 0;
}
.pet-world[data-drag=true] .pet-mouth, .pet-world[data-food=true] .pet-mouth { opacity: 1 }
.pet-world[data-drop=true] .pet-mouth { background: #ffe5aa25; border: 2px solid #ffe6b8 }
.pet-world[data-asleep=true] .pet-familiar { animation-duration: 7s; rotate: -9deg }
.pet-world[data-room=bath][data-asleep=true] .pet-familiar { rotate: 0deg }
@keyframes pet-breathe { 0%,100% { transform: translateY(0) scale(1) } 50% { transform: translateY(-3px) scale(1.015,.987) } }
.pet-snores { display: none; position: absolute; bottom: 63%; left: 72%; width: 24px; height: 24px; color: #f2dff4; pointer-events: none }
.pet-world[data-asleep=true] .pet-snores { display: block }
.pet-snores i { position: absolute; font: 700 22px/1.1 Outfit,sans-serif; opacity: 0; animation: pet-snore 3.8s ease-out infinite }
.pet-snores i:nth-child(2) { animation-delay: 1.25s }
.pet-snores i:nth-child(3) { animation-delay: 2.5s }
@keyframes pet-snore { 0% { opacity: 0; transform: scale(.55) } 25% { opacity: .95 } 100% { opacity: 0; transform: translate(22px,-47px) scale(1.2) } }
.pet-effects { position: absolute; inset: 0; z-index: 2; pointer-events: none }
.pet-particle {
  position: absolute;
  font: 700 22px/1 system-ui,sans-serif;
  color: var(--particle-color,#ffc9ba);
  text-shadow: 0 2px 7px #38213a8f;
  animation: pet-particle 820ms cubic-bezier(.16,.55,.28,.92) both;
}
.pet-particle.is-bubble { width: var(--size,15px); aspect-ratio: 1; border: 1px solid #f2faff; border-radius: 50%; background: radial-gradient(circle at 34% 30%,#fff9 0%,#d7f5f950 20%,#99cddd21 50%,#a4d8f35e 100%); text-shadow: none }
@keyframes pet-particle {
  0% { opacity: 0; transform: translate(0,6px) scale(.55) }
  20% { opacity: 1 }
  70% { opacity: 1 }
  100% { opacity: 0; transform: translate(var(--dx),var(--dy)) rotate(var(--turn)) scale(.86) }
}

.pet-console { display: grid; grid-template-rows: auto minmax(58px,auto) auto; gap: 7px }
.pet-room-nav { display: flex; align-items: center; justify-content: center; gap: 7px }
.pet-room-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid #ead1c777; border-radius: 50%; background: #392a42;
  color: #ffe5cd; touch-action: manipulation;
}
.pet-room-arrow:hover, .pet-primary:hover { background: #654460 }
.pet-room-name {
  min-width: 130px; padding: 6px 12px; border: 1px solid var(--pet-line); border-radius: 99px;
  background: #2d2338f5; text-align: center; color: var(--pet-paper); font-size: 14px; font-weight: 650;
}
.pet-room-actions { min-width: 0; display: grid; align-items: stretch }
.pet-room-card {
  min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 6px 9px; background: var(--pet-surface); border: 1px solid var(--pet-line); border-radius: 12px;
}
.pet-room-card p { min-width: 0; color: var(--pet-mute); font-size: 11px }
.pet-room-card strong { color: var(--pet-paper); font-size: 13px; display: block; line-height: 1.18 }
.pet-room-card .pet-primary { max-width: 43%; flex: none }
.pet-room-card .pet-action-group { display: flex; gap: 5px; flex: none; max-width: 67% }
.pet-room-card .pet-action-group .pet-primary { max-width: none }
.pet-bath-controls { display: grid; gap: 3px; min-width: 0 }
.pet-bath-progress {
  display: block; width: 100%; max-width: 180px; height: 4px; margin: 2px 0;
  appearance: none; border: 0; border-radius: 8px; overflow: hidden;
  background: #f4e8e92b; color: #a8d6cc;
}
.pet-bath-progress::-webkit-progress-bar { background: #f4e8e92b }
.pet-bath-progress::-webkit-progress-value { background: #a8d6cc }
.pet-bath-progress::-moz-progress-bar { background: #a8d6cc }
.pet-bath-tool {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 0; min-height: 41px; padding: 3px 6px; border-radius: 8px;
  border: 1px solid var(--pet-line); background: #49364d; color: var(--pet-paper);
  touch-action: none;
}
.pet-bath-tool:is(:hover,[aria-pressed=true]) { background: #61465f; border-color: #d4b6b0 }
.pet-bath-tool span { white-space: nowrap; font-size: 11px }
.pet-scrubber { display: block; position: relative; flex: none; width: 24px; aspect-ratio: 1; pointer-events: none }
.pet-scrubber::before, .pet-scrubber::after { content: ''; position: absolute }
.pet-scrubber[data-tool=sponge]::before {
  inset: 17% 0 13%; rotate: -14deg; border-radius: 28% 35% 27% 30%;
  background: radial-gradient(circle at 30% 36%,#dca86b 7%,transparent 9%), radial-gradient(circle at 63% 65%,#e1a865 8%,transparent 10%), radial-gradient(circle at 73% 28%,#dfac70 6%,transparent 8%), linear-gradient(145deg,#f7dc98,#e8ae6f);
  box-shadow: inset 0 -3px #bd7a4b, inset 0 1px #fff3c3, 0 2px 2px #22182850;
}
.pet-scrubber[data-tool=brush]::before {
  inset: 41% 49% 27% 0; rotate: -25deg; border-radius: 45%;
  background: linear-gradient(#f5d5a7,#b67d5d); box-shadow: 0 1px 2px #22182850;
}
.pet-scrubber[data-tool=brush]::after {
  inset: 21% 0 32% 34%; rotate: -25deg; border-radius: 38%; border-top: 3px solid #d89b73;
  background: repeating-linear-gradient(93deg,#f3dbbb 0 2px,#bc9b85 2px 3px);
  box-shadow: 0 1px 2px #22182850;
}
.pet-primary, .pet-secondary {
  display: inline-grid; place-items: center; min-height: 37px; padding: 4px 9px;
  border: 1px solid #f0bfc36f; border-radius: 9px; text-align: center; font-size: 12px !important; line-height: 1.2 !important; font-weight: 650 !important;
  color: var(--pet-paper); background: #533b55; text-decoration: none;
}
.pet-secondary { border-color: var(--pet-line); background: #f4d9bb16; color: var(--pet-mute) }
.pet-secondary:hover { background: #efd3c32c }
.pet-pantry { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; min-width: 0 }
.pet-food-item {
  position: relative; display: grid; grid-template-columns: 33px minmax(0,1fr); align-items: center; justify-items: start; gap: 2px 5px;
  min-width: 0; min-height: 55px; padding: 4px 5px; border-radius: 9px; border: 1px solid var(--pet-line);
  background: var(--pet-surface); color: var(--pet-paper); text-align: left; touch-action: none; user-select: none;
}
.pet-food-item:hover, .pet-food-item[aria-pressed=true] { border-color: #f4c6a7; background: #52384eee }
.pet-food-item img { width: 33px; height: 33px; object-fit: contain; pointer-events: none }
.pet-food-item strong { display: block; min-width: 0; font-size: 11px; line-height: 1.05 }
.pet-food-item b { position: absolute; top: 3px; right: 4px; color: #f1cea9; font-size: 10px; line-height: 1 }
.pet-dock {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px;
  border: 1px solid var(--pet-line); border-radius: 12px; background: #f6d1c42b; overflow: hidden;
}
.pet-dock button {
  display: flex; justify-content: center; align-items: center; gap: 5px; min-width: 0; min-height: 40px;
  border: 0; padding: 3px; color: #f3e0d7; background: #2c2236fa; font-size: 12px;
}
.pet-dock button:hover { background: #493549 }
.pet-dock button:focus-visible { outline-offset: -3px }
.pet-dock svg { width: 17px; height: 17px; flex: none; color: #efc5ab }
.pet-food-ghost, .pet-bath-ghost {
  position: fixed; z-index: 12000; inset: 0 auto auto 0; width: 52px; height: 52px;
  object-fit: contain; pointer-events: none; will-change: transform; filter: drop-shadow(0 3px 5px #22182891);
}
.pet-bath-ghost { display: grid; place-items: center }
.pet-bath-ghost .pet-scrubber { width: 44px }
body.pet-care-dragging { user-select: none }

.pet-dialog {
  width: min(580px,calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: clamp(12px,3vw,18px); border: 1px solid #d8b3bf69; border-radius: 17px;
  background: #2b2234; color: var(--pet-paper); font: inherit; overflow: auto;
}
.pet-dialog::backdrop { background: #1d1524a8 }
.pet-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 11px }
.pet-dialog h2 { font-size: 25px; font-weight: 650; line-height: 1.12 }
.pet-dialog-head p { margin-top: 3px; font-size: 12px; color: var(--pet-mute) }
.pet-dialog-head .pet-icon-button { font-size: 24px }
.pet-tabs, .pet-pagination { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-block: 7px }
.pet-tabs { justify-content: flex-start; flex-wrap: wrap }
.pet-tabs [aria-pressed=true] { background: #58405a; color: var(--pet-paper); border-color: #efbdc189 }
.pet-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px }
.pet-card {
  display: grid; justify-items: center; align-items: center; gap: 2px; min-width: 0; min-height: 128px;
  padding: 6px; background: #3a2d43; border: 1px solid #e1bed139; border-radius: 10px; text-align: center;
}
.pet-card h3 { margin: 0; min-width: 0; font-size: 12px; line-height: 1.15; color: var(--pet-paper); overflow-wrap: anywhere }
.pet-card p { color: var(--pet-mute); font-size: 10px }
.pet-card img { width: 58px; height: 54px; object-fit: contain }
.pet-card .pet-primary, .pet-card .pet-secondary { min-height: 31px; width: 100%; padding-inline: 3px; font-size: 11px !important }
.pet-card-art { display: grid; place-items: center; width: 58px; height: 54px; color: #efc6aa; font-size: 20px }
.pet-card-art.is-tone { height: 32px; border-radius: 8px; background: linear-gradient(130deg,#9b7284,#513954) }
.pet-card-art[data-tone=apricot] { background: linear-gradient(130deg,#dfae86,#965d6f) }
.pet-card-art[data-tone=night] { background: linear-gradient(130deg,#8a83a8,#413754) }
.pet-pagination { margin-bottom: 0; font-size: 12px; color: var(--pet-mute) }
.pet-pagination button { min-height: 36px }
.pet-tasks { display: grid; gap: 5px }
.pet-task-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #3a2d43; min-height: 42px }
.pet-task-row strong { display: block; font-size: 12px }
.pet-task-row p { font-size: 11px; color: var(--pet-mute) }
.pet-task-row button { min-height: 30px; flex: none }
.pet-name-form { display: grid; gap: 8px }
.pet-name-form input { width: 100%; padding: 8px; min-height: 40px; border: 1px solid var(--pet-line); border-radius: 8px; background: #21192d; color: var(--pet-paper); font: inherit }
.pet-name-form button { justify-self: start }
.pet-panel-feedback { color: #ffd2be; padding-top: 8px; font-size: 12px; min-height: 16px; text-align: center }

@media (min-width: 761px) and (max-width: 1180px) {
  .pet-world { padding-top: 102px }
}
@media (max-width: 760px) {
  .pet-world { padding: max(77px,calc(env(safe-area-inset-top) + 68px)) 11px max(8px,env(safe-area-inset-bottom),var(--pet-cookie-clearance,0px)) }
  .pet-art img { object-position: 50% 48% }
  .pet-vital { padding: 6px 4px }
  .pet-dock button { min-height: 43px }
  .pet-room-actions { min-height: 56px }
  .pet-food-item { grid-template-columns: 1fr; justify-items: center; gap: 0; min-height: 56px; text-align: center }
  .pet-food-item img { width: 28px; height: 28px }
  .pet-food-item strong { font-size: 10px }
}
@media (max-width: 380px) {
  .pet-vital-line { display: grid; justify-content: center; text-align: center; gap: 0; margin-bottom: 3px }
  .pet-room-card .pet-action-group { max-width: 72% }
  .pet-room-card .pet-action-group button { padding-inline: 4px }
  .pet-bath-tool { gap: 2px }
  .pet-bath-tool .pet-scrubber { width: 19px }
  .pet-dock button { font-size: 11px; gap: 3px }
  .pet-dock svg { width: 14px; height: 14px }
}
@media (max-height: 610px) {
  .pet-console { gap: 4px }
  .pet-card { min-height: 110px }
  .pet-card img, .pet-card-art { height: 43px }
}
@media (max-height: 510px) and (orientation: landscape) {
  .pet-world { grid-template: auto minmax(0,1fr) / minmax(0,1fr) minmax(208px,35%); column-gap: 10px }
  .pet-hud { grid-column: 1/-1; display: grid; width: 100%; grid-template-columns: minmax(128px,1fr) minmax(0,2.65fr); align-items: center; gap: 8px }
  .pet-top { margin-bottom: 0 }
  .pet-page .pet-preparing { grid-column: 1/-1; margin-top: 0 }
  .pet-console { align-self: end }
  .pet-character { width: min(210px,35dvh) }
  .pet-room-card:has(.pet-bath-controls) { display: grid; gap: 4px; padding-block: 5px }
  .pet-room-card:has(.pet-bath-controls) .pet-action-group { max-width: none }
  .pet-bath-tool { min-height: 34px; flex: 1 }
  .pet-grid { grid-template-columns: repeat(6,minmax(0,1fr)) }
  .pet-dialog { width: min(720px,calc(100% - 24px)) }
}
@media (prefers-reduced-motion: reduce) {
  .pet-familiar, .pet-snores i, .pet-particle { animation: none }
  .pet-snores i:first-child, .pet-particle { opacity: 1 }
  .pet-vital-bar i { transition: none }
  .pet-bath-water, .pet-lather i { transition: none }
  .pet-sleep-eyes i { transition: none }
  .pet-world[data-scrubbing] .pet-motion { transform: none }
}
body.eg-performance-mode .pet-familiar,
body.eg-performance-mode .pet-snores i,
body.eg-performance-mode .pet-particle { animation: none }
body.eg-performance-mode .pet-snores i:first-child { opacity: 1 }
body.eg-performance-mode .pet-vital-bar i { transition: none }
body.eg-performance-mode :is(.pet-bath-water,.pet-lather i,.pet-sleep-eyes i) { transition: none }
body.eg-performance-mode .pet-world[data-scrubbing] .pet-motion { transform: none }
.pet-world.is-paused :is(.pet-familiar,.pet-snores i,.pet-particle) { animation-play-state: paused }
