/* House frame, top bar, toggle, rooms, wallpaper patterns, floors, walls */
.pch-wrap {
  position: relative;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  max-width: none !important;
}
.pch-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
}
.pch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font:
    800 15px/1 system-ui,
    -apple-system,
    sans-serif;
  color: #1b1715;
  background: #fffde4;
  border: 3px solid #1b1715;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 3px 3px 0 #1b1715;
  user-select: none;
}
.pch-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pch-sw {
  position: relative;
  width: 38px;
  height: 22px;
  border: 3px solid #1b1715;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
  transition: background 0.15s;
}
.pch-sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1b1715;
  transition: left 0.15s;
}
.pch-toggle input:checked + .pch-sw {
  background: #cdff00;
}
.pch-toggle input:checked + .pch-sw::after {
  left: 18px;
}
.pch-toggle input:focus-visible + .pch-sw {
  outline: 3px dashed #ff007a;
  outline-offset: 3px;
}
.pch {
  position: relative;
  height: max(720px, 72vw);
  overflow: hidden;
  background: #efe6d6;
  border-top: 6px solid #1b1715;
  border-bottom: 6px solid #1b1715;
  user-select: none;
  -webkit-user-select: none;
}
.pch-room {
  position: absolute;
  box-sizing: border-box;
}
.pch-room::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: rgba(27, 23, 21, 0.08);
}
.pch-dots {
  background-image: radial-gradient(
    rgba(27, 23, 21, 0.09) 2px,
    transparent 2.6px
  );
  background-size: 22px 22px;
}
.pch-stripes {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.6) 0 14px,
    transparent 14px 28px
  );
}
.pch-tiles {
  background-image:
    linear-gradient(rgba(27, 23, 21, 0.06) 2px, transparent 2px),
    linear-gradient(90deg, rgba(27, 23, 21, 0.06) 2px, transparent 2px);
  background-size: 24px 24px;
}
.pch-boards {
  background-image: repeating-linear-gradient(
    0deg,
    rgba(27, 23, 21, 0.07) 0 2px,
    transparent 2px 26px
  );
}
.pch-label {
  position: absolute;
  top: 10px;
  left: 12px;
  font:
    900 10px/1 system-ui,
    -apple-system,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(27, 23, 21, 0.38);
}
.pch-slab {
  position: absolute;
  height: 14px;
  background: #c98a4a;
  border-top: 3px solid #1b1715;
  border-bottom: 3px solid #1b1715;
  box-sizing: border-box;
  z-index: 2;
}
.pch-wall {
  position: absolute;
  width: 12px;
  background: #dccbb2;
  border: 3px solid #1b1715;
  border-top: 0;
  box-sizing: border-box;
  z-index: 2;
}
.pch-deco {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

/* This page only: hide footer peeking cat and footer lane cats */
.ct-footer [data-row="top"] .ct-container::before,
.ct-footer [data-row="top"] .ct-container-fluid::before {
  display: none !important;
}
.pcat-lanes {
  display: none !important;
}

/* Wool Hunt counter pill: hidden on the Furgoblin House page only */
body.page-id-7213 .wh-pill {
  display: none !important;
}

/* Action buttons, treats, hearts */
.pch-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.pch-bar .pch-btn {
  font:
    700 14px/1 system-ui,
    sans-serif !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  border: 3px solid #1b1715 !important;
  border-radius: 999px !important;
  background: #fffde4 !important;
  color: #1b1715 !important;
  box-shadow: 3px 3px 0 #1b1715 !important;
  cursor: pointer;
  min-height: 0 !important;
  height: auto !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.pch-bar .pch-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #1b1715 !important;
}
.pch-bar .pch-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #1b1715 !important;
}
.pch-bar .pch-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}
.pch-treat {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  animation: pch-treatdrop 0.55s steps(6);
}
.pch-treat svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-treat.gone {
  animation: pch-treateat 1.6s steps(4) forwards;
}
@keyframes pch-treatdrop {
  0% {
    transform: translateY(-90px);
  }
  75% {
    transform: translateY(0);
  }
  88% {
    transform: translateY(-10px);
  }
  100% {
    transform: none;
  }
}
@keyframes pch-treateat {
  to {
    transform: scale(0.2);
    opacity: 0;
  }
}
.pch-hearts {
  position: absolute;
  z-index: 7;
  pointer-events: none;
  width: 0;
  height: 0;
}
.pch-hearts b {
  position: absolute;
  left: -6px;
  top: 0;
  font:
    900 18px/1 system-ui,
    sans-serif;
  color: #ff007a;
  text-shadow: 2px 2px 0 #1b1715;
  animation: pch-heart 1.5s steps(7) both;
}
.pch-hearts b:nth-of-type(2) {
  left: 10px;
  animation-delay: 0.2s;
}
.pch-hearts b:nth-of-type(3) {
  left: -22px;
  animation-delay: 0.4s;
}
@keyframes pch-heart {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-44px);
  }
}

/* Catpops props: coffee steam, mug, table mug, mop */
.pch-steam {
  position: absolute;
  width: 0;
  height: 0;
  display: none;
}
.pch-steam.on {
  display: block;
}
.pch-steam i {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(27, 23, 21, 0.2);
  animation: pch-fizz 1.2s steps(6) infinite;
}
.pch-steam i:nth-of-type(2) {
  left: 7px;
  animation-delay: -0.4s;
}
.pch-steam i:nth-of-type(3) {
  left: -7px;
  animation-delay: -0.8s;
}
.pch-dadmug {
  position: absolute;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid #1b1715;
}
.pch-dadmug::before {
  content: "";
  position: absolute;
  left: 30%;
  top: -8px;
  width: 3px;
  height: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(27, 23, 21, 0.25);
  animation: pch-fizz 1.1s steps(5) infinite;
}
.pch-tablemug {
  position: absolute;
  display: none;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid #1b1715;
}
.pch-tablemug.on {
  display: block;
}
.pch-dadmug.mop {
  background: #a8743f;
  border: 0;
}
.pch-dadmug.mop::before {
  content: "";
  position: absolute;
  left: -7px;
  top: auto;
  bottom: -5px;
  width: 16px;
  height: 7px;
  background: #e8eef2;
  box-shadow: 0 0 0 2px #1b1715;
  animation: none;
}

/* Bath party: bathroom flood */
.pch-flood {
  position: absolute;
  display: none;
  background: #7fd3ff;
  box-shadow: 0 0 0 2px #1b1715;
  transform-origin: 30% 50%;
}
.pch-flood.on {
  display: block;
  animation: pch-flood 4s steps(8) both;
}
.pch-flood.off {
  display: block;
  animation: pch-unflood 2.6s steps(6) forwards;
}
@keyframes pch-flood {
  from {
    transform: scaleX(0.1);
  }
  to {
    transform: none;
  }
}
@keyframes pch-unflood {
  from {
    transform: none;
  }
  to {
    transform: scaleX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-flood {
    animation: none !important;
  }
}

/* Piano wake-up chain: dancing cats, foot tapping, cake jiggle */
.pch-dance .pch-inner {
  animation: pch-dance 0.45s steps(2) infinite !important;
}
@keyframes pch-dance {
  0% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-6px) rotate(5deg);
  }
}
.pch-dad.pch-tap .pch-inner {
  animation: pch-tapf 0.45s steps(2) infinite;
}
@keyframes pch-tapf {
  50% {
    transform: translateY(-3px);
  }
}
.pch-item.pch-jiggle {
  animation: pch-jig 0.45s steps(2) infinite;
}
@keyframes pch-jig {
  0% {
    transform: rotate(-7deg);
  }
  50% {
    transform: translate(2px, -3px) rotate(7deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-dance .pch-inner,
  .pch-dad.pch-tap .pch-inner,
  .pch-item.pch-jiggle {
    animation: none !important;
  }
}

/* Dustpan, vase incident, mystery box, robot vacuum */
.pch-dadmug.pan {
  background: #5c6670;
  transform: skewX(-15deg);
}
.pch-dadmug.pan::before {
  display: none;
}
.pch-vase {
  position: absolute;
}
.pch-vase svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-vase.sliding {
  animation: pch-scoot 2.9s steps(1) forwards;
}
@keyframes pch-scoot {
  0% {
    transform: none;
  }
  25% {
    transform: translateX(calc(var(--mx) * 0.3));
  }
  50% {
    transform: translateX(calc(var(--mx) * 0.55));
  }
  75% {
    transform: translateX(calc(var(--mx) * 0.8));
  }
  100% {
    transform: translateX(var(--mx));
  }
}
.pch-vase.falling {
  animation: pch-vfall 0.5s steps(5) forwards;
}
@keyframes pch-vfall {
  from {
    transform: translateX(var(--mx));
  }
  to {
    transform: translate(calc(var(--mx) + 12px), var(--fy)) rotate(120deg);
  }
}
.pch-vase.gone {
  display: none;
}
.pch-vase.pch-back {
  animation: pch-back 0.6s steps(4);
}
.pch-shards {
  position: absolute;
  width: 0;
  height: 0;
  display: none;
}
.pch-shards.on {
  display: block;
}
.pch-shards i {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 5px;
  box-shadow: 0 0 0 1px #1b1715;
  animation: pch-shard 0.35s steps(4) both;
}
@keyframes pch-shard {
  from {
    transform: translate(8px, -6px);
  }
  to {
    transform: translate(var(--x), var(--y));
  }
}
.pch-shards b {
  position: absolute;
  left: -12px;
  top: -48px;
  font:
    900 18px/1 system-ui,
    sans-serif;
  color: #ffd400;
  text-shadow: 2px 2px 0 #1b1715;
  animation: pch-crash 1.2s steps(4) both;
}
@keyframes pch-crash {
  0% {
    opacity: 1;
    transform: scale(0.6);
  }
  30% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
.pch-boxfx {
  position: absolute;
  width: 0;
  height: 0;
}
.pch-deco.pch-wobble {
  animation: pch-wob 0.6s steps(3) infinite;
  transform-origin: 50% 100%;
}
.pch-deco.pch-wobble.hard {
  animation-duration: 0.28s;
}
@keyframes pch-wob {
  0%,
  100% {
    transform: rotate(-2.5deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
}
.pch-vac {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
}
.pch-vac svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-vac .led {
  animation: pch-led 1.2s steps(2) infinite;
}
.pch-vac.on .led {
  animation-duration: 0.3s;
}
@keyframes pch-led {
  50% {
    fill: #1b1715;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-vase,
  .pch-shards i,
  .pch-shards b,
  .pch-deco.pch-wobble,
  .pch-vac .led {
    animation: none !important;
  }
}

/* Napping z's, cat wheel, piano notes */
.pch-zzz {
  position: absolute;
  width: 0;
  height: 0;
  display: none;
}
.pch-zzz.on {
  display: block;
}
.pch-zzz b {
  position: absolute;
  left: 0;
  top: 0;
  font:
    900 14px/1 system-ui,
    sans-serif;
  color: #6a7bd8;
  text-shadow: 2px 2px 0 #fffde4;
  opacity: 0;
  animation: pch-z 2.4s steps(6) infinite;
}
.pch-zzz b:nth-of-type(2) {
  animation-delay: 0.8s;
  font-size: 17px;
}
.pch-zzz b:nth-of-type(3) {
  animation-delay: 1.6s;
  font-size: 21px;
}
@keyframes pch-z {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(16px, -40px);
  }
}
.pch-napping .pch-inner {
  animation: pch-breathe 2.4s steps(4) infinite;
}
@keyframes pch-breathe {
  50% {
    transform: scaleY(0.92) translateY(2px);
  }
}
.pch-wheel {
  position: absolute;
}
.pch-wheel svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pch-wheel .spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: pch-spin 1s steps(12) infinite;
  animation-play-state: paused;
}
.pch-wheel.on .spin {
  animation-play-state: running;
}
@keyframes pch-spin {
  to {
    transform: rotate(360deg);
  }
}
.pch-pfx {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  display: none;
}
.pch-pfx.on {
  display: block;
}
.pch-pfx b {
  position: absolute;
  font:
    900 20px/1 system-ui,
    sans-serif;
  color: #ff007a;
  text-shadow: 2px 2px 0 #1b1715;
  opacity: 0;
  animation: pch-note 1.8s steps(6) infinite;
}
.pch-pfx b:nth-of-type(2) {
  animation-delay: 0.45s;
  color: #6a7bd8;
}
.pch-pfx b:nth-of-type(3) {
  animation-delay: 0.9s;
  color: #ffd400;
}
.pch-pfx b:nth-of-type(4) {
  animation-delay: 1.35s;
  color: #7ad64b;
}
@keyframes pch-note {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-10deg);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--nx), -56px) rotate(10deg);
  }
}
.pch-pfx i {
  position: absolute;
  background: #ffd400;
  opacity: 0;
  animation: pch-key 0.5s steps(2) infinite;
}
.pch-pfx i:nth-of-type(2) {
  animation-delay: -0.2s;
}
.pch-pfx i:nth-of-type(3) {
  animation-delay: -0.35s;
}
.pch-pfx i:nth-of-type(4) {
  animation-delay: -0.1s;
}
@keyframes pch-key {
  50% {
    opacity: 0.9;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-zzz b,
  .pch-napping .pch-inner,
  .pch-wheel .spin,
  .pch-pfx b,
  .pch-pfx i {
    animation: none !important;
  }
}

/* Milk, spills, fridge, bath suds, wriggling */
.pch-dadmug.milk {
  border-top: 5px solid #7fd3ff;
}
.pch-dadmug.milk::before {
  display: none;
}
.pch-milk {
  position: absolute;
  display: none;
  box-sizing: border-box;
  background: #fff;
  border: 3px solid #1b1715;
  border-top: 6px solid #7fd3ff;
  transform-origin: 100% 100%;
}
.pch-milk.on {
  display: block;
}
.pch-milk.tipped {
  transform: rotate(90deg);
}
.pch-spill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  display: none;
}
.pch-spill.on {
  display: block;
}
.pch-spill i {
  position: absolute;
  background: #fff;
  box-shadow: 0 0 0 2px #1b1715;
}
.pch-spill .top,
.pch-spill .floor {
  transform-origin: 0 50%;
  animation: pch-spread 1.2s steps(6) both;
}
.pch-spill .floor {
  animation-delay: 0.8s;
}
.pch-spill .drip {
  width: 4px;
  transform-origin: 50% 0;
  animation: pch-drip 1s steps(6) both 0.3s;
}
.pch-spill .d2 {
  animation-delay: 0.6s;
}
@keyframes pch-spread {
  from {
    transform: scaleX(0.1);
  }
  to {
    transform: none;
  }
}
@keyframes pch-drip {
  from {
    transform: scaleY(0);
  }
  to {
    transform: none;
  }
}
.pch-fridgeopen {
  position: absolute;
  display: none;
}
.pch-fridgeopen.on {
  display: block;
}
.pch-fridgeopen svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-fridgeopen.nomilk .carton {
  display: none;
}
.pch-suds {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  display: none;
}
.pch-suds.on {
  display: block;
}
.pch-suds i {
  position: absolute;
  background: #fff;
  border: 2px solid #1b1715;
  border-radius: 50%;
  animation: pch-foam 0.8s steps(2) infinite;
}
.pch-suds i:nth-of-type(2n) {
  animation-delay: -0.4s;
  background: #eaf7ff;
}
@keyframes pch-foam {
  50% {
    transform: scale(1.12);
  }
}
.pch-suds b {
  position: absolute;
  border: 2px solid #1b1715;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  opacity: 0;
  animation: pch-rise 2.4s steps(8) infinite;
}
@keyframes pch-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
    transform: translateY(-110px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.4);
  }
}
.pch-wiggle .pch-inner {
  animation: pch-wig 0.5s steps(4) infinite !important;
}
@keyframes pch-wig {
  0% {
    transform: translateX(-3px);
  }
  25% {
    transform: translate(3px, -4px);
  }
  50% {
    transform: translateX(-3px);
  }
  75% {
    transform: translate(3px, -9px);
  }
  100% {
    transform: translateX(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-suds i,
  .pch-suds b,
  .pch-wiggle .pch-inner,
  .pch-spill i {
    animation: none !important;
  }
}

/* This page only: tighter top spacing */
body:has(.pch) .ct-container-full {
  padding-top: 14px !important;
}
.entry-content > p:has(+ .pch-wrap) {
  margin-bottom: 4px !important;
}
.pch-bar {
  padding-top: 2px !important;
  padding-bottom: 8px !important;
}

/* Catpops' laptop */
.pch-laptop {
  position: absolute;
  display: none;
}
.pch-laptop.on {
  display: block;
}
.pch-laptop svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-laptop.on rect:nth-of-type(3) {
  animation: pch-screen 1.4s steps(2) infinite;
}
@keyframes pch-screen {
  50% {
    fill: #e4f5ff;
  }
}

/* Catflaps, fish tank, fight cloud */
.pch-flap {
  position: absolute;
  box-sizing: border-box;
  background: #e0a868;
  border: 3px solid #1b1715;
  transform-origin: 50% 0;
}
.pch-flap.pch-flapgo {
  animation: pch-flap 0.9s steps(9);
}
@keyframes pch-flap {
  0% {
    transform: perspective(80px) rotateX(0);
  }
  18% {
    transform: perspective(80px) rotateX(75deg);
  }
  42% {
    transform: perspective(80px) rotateX(-50deg);
  }
  62% {
    transform: perspective(80px) rotateX(28deg);
  }
  82% {
    transform: perspective(80px) rotateX(-12deg);
  }
  100% {
    transform: perspective(80px) rotateX(0);
  }
}
.pch-tank .pch-swim {
  position: absolute;
  left: 6px;
  width: 24px;
  height: 12px;
  animation: pch-swim 7s steps(28) infinite;
}
.pch-tank .pch-swim svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-tank .pch-swim0 {
  top: 11px;
}
.pch-tank .pch-swim1 {
  top: 26px;
  animation-duration: 9.5s;
  animation-delay: -3s;
}
.pch-tank.pch-watched .pch-swim {
  animation-duration: 2.4s;
}
@keyframes pch-swim {
  0% {
    transform: translateX(0);
  }
  48% {
    transform: translateX(54px);
  }
  50% {
    transform: translateX(54px) scaleX(-1);
  }
  98% {
    transform: translateX(0) scaleX(-1);
  }
  100% {
    transform: translateX(0);
  }
}
.pch-tank .pch-fizz {
  position: absolute;
  left: 66px;
  top: 38px;
  width: 4px;
  height: 4px;
  background: #fff;
  opacity: 0.85;
  animation: pch-fizz 2.8s steps(8) infinite;
}
.pch-tank .pch-fizz2 {
  left: 22px;
  animation-delay: -1.4s;
}
.pch-fight {
  position: absolute;
  z-index: 6;
  width: 110px;
  height: 70px;
  margin-left: -55px;
  pointer-events: none;
  animation: pch-shake 0.16s steps(2) infinite;
}
.pch-fight i {
  position: absolute;
  background: #fffde4;
  border: 3px solid #1b1715;
  border-radius: 50%;
  animation: pch-puff 0.5s steps(3) infinite;
}
.pch-fight i:nth-of-type(1) {
  left: 6px;
  top: 22px;
  width: 44px;
  height: 40px;
}
.pch-fight i:nth-of-type(2) {
  left: 34px;
  top: 4px;
  width: 48px;
  height: 44px;
  animation-delay: -0.15s;
}
.pch-fight i:nth-of-type(3) {
  left: 60px;
  top: 24px;
  width: 44px;
  height: 40px;
  animation-delay: -0.3s;
}
.pch-fight i:nth-of-type(4) {
  left: 30px;
  top: 30px;
  width: 52px;
  height: 38px;
  animation-delay: -0.1s;
}
.pch-fight b {
  position: absolute;
  font:
    900 18px/1 system-ui,
    sans-serif;
  color: #ff007a;
  text-shadow: 2px 2px 0 #1b1715;
  animation: pch-pop 0.6s steps(2) infinite;
}
.pch-fight b:nth-of-type(1) {
  left: 6px;
  top: -8px;
}
.pch-fight b:nth-of-type(2) {
  left: 84px;
  top: -2px;
  color: #ffd400;
  animation-delay: -0.2s;
}
.pch-fight b:nth-of-type(3) {
  left: 46px;
  top: -18px;
  animation-delay: -0.4s;
}
.pch-fight b:nth-of-type(4) {
  left: 96px;
  top: 34px;
  color: #7fd3ff;
  animation-delay: -0.3s;
}
.pch-fight s {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #1b1715;
  animation: pch-pop 0.4s steps(2) infinite;
}
.pch-fight s:nth-of-type(1) {
  left: -6px;
  top: 40px;
}
.pch-fight s:nth-of-type(2) {
  left: 104px;
  top: 12px;
  animation-delay: -0.2s;
}
@keyframes pch-shake {
  0% {
    transform: translate(-2px, 1px);
  }
  100% {
    transform: translate(2px, -1px);
  }
}
@keyframes pch-puff {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}
@keyframes pch-pop {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.25;
    transform: scale(1.4);
  }
}

/* Baubles, splashes, knock-off items, paw tapping */
.pch-bauble {
  position: absolute;
  width: 6px;
  background: #1b1715;
  transform-origin: 50% 0;
  animation: pch-dangle 3.2s steps(8) infinite;
}
.pch-bauble i {
  position: absolute;
  left: -6px;
  top: 100%;
  width: 18px;
  height: 12px;
  background: var(--b);
}
.pch-bauble.pch-bat {
  animation: pch-batted 0.9s steps(9) infinite;
}
@keyframes pch-dangle {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}
@keyframes pch-batted {
  0% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(38deg);
  }
  45% {
    transform: rotate(-26deg);
  }
  70% {
    transform: rotate(16deg);
  }
  100% {
    transform: rotate(0);
  }
}
.pch-splash {
  position: absolute;
  width: 0;
  height: 0;
}
.pch-splash i {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  opacity: 0;
}
.pch-splash.pch-go i {
  animation: pch-drop 0.75s steps(8) forwards;
}
@keyframes pch-drop {
  0% {
    opacity: 1;
    transform: translate(0, 0);
  }
  55% {
    opacity: 1;
    transform: translate(var(--x), var(--y));
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--x) * 1.3), calc(var(--y) + 34px));
  }
}
.pch-item {
  position: absolute;
  display: block;
}
.pch-item svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-item.pch-knocked {
  animation: pch-knock 1.3s steps(13) forwards;
}
.pch-item.pch-back {
  animation: pch-back 0.6s steps(4);
}
@keyframes pch-knock {
  0% {
    transform: none;
  }
  45% {
    transform: translateX(var(--dx));
  }
  55% {
    transform: translate(calc(var(--dx) + 6px), 4px) rotate(30deg);
  }
  100% {
    transform: translate(var(--fx), var(--fy)) rotate(90deg);
  }
}
@keyframes pch-back {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-bauble,
  .pch-splash i,
  .pch-item {
    animation: none !important;
  }
}
@keyframes pch-fizz {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(-30px);
    opacity: 0;
  }
}
.pch-watching .pch-inner {
  animation: pch-paw 0.7s steps(2) infinite;
}
@keyframes pch-paw {
  50% {
    transform: translateY(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-flap,
  .pch-tank .pch-swim,
  .pch-tank .pch-fizz,
  .pch-watching .pch-inner {
    animation: none !important;
  }
}

/* Noise ripples, Catpops' stress */
.pch-ripple {
  position: absolute;
  z-index: 5;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pch-ripple i {
  position: absolute;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  border: 3px solid #fffde4;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 0 2px rgba(27, 23, 21, 0.35);
  animation: pch-ripple 1.1s ease-out forwards;
}
.pch-ripple i + i {
  animation-delay: 0.25s;
}
@keyframes pch-ripple {
  0% {
    opacity: 0.85;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(var(--s, 2.5));
  }
}
.pch-fume {
  position: absolute;
  bottom: 92%;
  width: 7px;
  height: 7px;
  margin-left: -3px;
  background: #e8e4dc;
  border: 2px solid #1b1715;
  border-radius: 50%;
  pointer-events: none;
  animation: pch-fume 1.2s ease-out forwards;
}
@keyframes pch-fume {
  0% {
    opacity: 0.9;
    transform: translateY(0) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translateY(-26px) scale(1.4);
  }
}
.pch-dad.pch-frazzled .pch-sprite {
  animation: pch-frazzle 0.18s steps(2) infinite;
}
@keyframes pch-frazzle {
  50% {
    translate: 1px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-ripple,
  .pch-fume {
    display: none;
  }
  .pch-dad.pch-frazzled .pch-sprite {
    animation: none;
  }
}

/* Day and night: shading, lamp glows, clock, Catpops asleep */
.pch-nightfx {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  /* The whole layer (shade + lamp glows) multiplies onto the house below.
     Blend modes on the children alone would only blend inside this layer. */
  mix-blend-mode: multiply;
}
.pch-shade {
  position: absolute;
  inset: 0;
  background: #fff;
}
.pch-lamps i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 190, 0.85) 0%, rgba(255, 222, 160, 0.4) 35%, rgba(255, 210, 140, 0) 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.2s;
}
.pch-nightfx.lamps-on .pch-lamps i {
  opacity: 1;
}
.pch-nightfx.lamps-low .pch-lamps i.pch-glow-lamp {
  opacity: 0.35;
}
.pch.pch-dark .pch-cat .pch-sprite {
  filter: brightness(var(--fgh-dim, 1));
}
.pch-clock {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #1b1715;
  color: #fffde4;
  border-radius: 999px;
  font:
    700 13px/1.2 system-ui,
    -apple-system,
    sans-serif;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Catpops lying in bed: sprite turned on its side, tucked under a duvet */
.pch-dad.pch-asleep .pch-sprite {
  transform: rotate(-90deg) !important;
}
.pch-dad.pch-asleep .pch-inner::after {
  content: "";
  position: absolute;
  left: 22%;
  right: -34%;
  top: 34%;
  bottom: 18%;
  background: #b9a6ff;
  border: 3px solid #1b1715;
  box-sizing: border-box;
}
.pch-dad.pch-asleep .pch-name {
  display: none;
}
/* TV off (89-tv-click.js: off at bedtime, or clicked off) and fire out (Catpops' job, 82-day-night.js) */
.pch.pch-tvoff .pch-glow,
.pch.pch-fireout .pch-flick {
  animation: none;
}
.pch.pch-tvoff .pch-glow rect[fill="#7fd3ff"] {
  fill: #1d2630;
}
.pch.pch-tvoff .pch-glow rect[fill="#ffffff"] {
  fill: #2f3b48;
}
.pch.pch-fireout .pch-flick rect[fill="#ffd400"] {
  fill: #2a1c16;
}
.pch.pch-fireout .pch-flick rect[fill="#ff8a00"] {
  fill: #5a2a18;
}
/* Asleep, Catpops (and his duvet) sits behind the cats and gets the night shading */
.pch button.pch-cat.pch-dad.pch-asleep {
  z-index: 4 !important;
}

/* Purrcival's sweetstick */
.pch button.pch-stick {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
  cursor: pointer;
  transform-origin: 50% 50%;
}
.pch-stick svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch button.pch-stick.held {
  z-index: 1;
  pointer-events: none;
}
.pch-stick.pch-nudge svg {
  animation: pch-stick-nudge 0.45s ease-out;
}
@keyframes pch-stick-nudge {
  0% {
    transform: translateX(0) rotate(0);
  }
  30% {
    transform: translateX(4px) rotate(-8deg);
  }
  60% {
    transform: translateX(-2px) rotate(5deg);
  }
  100% {
    transform: none;
  }
}
.pch button.pch-stick:focus-visible {
  outline: 3px solid #FF007A;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .pch-stick.pch-nudge svg {
    animation: none;
  }
}
/* Anything the settings switch off */
.pch-bar [hidden],
.pch [hidden].pch-cat,
.pch [hidden].pch-vac,
.pch-clock[hidden] {
  display: none !important;
}

/* Shower: frosted glass in front of Catpops, water and steam when it's running */
.pch-showerfx {
  position: absolute;
  inset: 0;
  /* Behind the cats (and darkened at night) normally; in front only while Catpops showers */
  z-index: 4;
  pointer-events: none;
}
.pch-showerfx.on {
  z-index: 6;
}
.pch-glass {
  position: absolute;
  box-sizing: border-box;
  background: rgba(214, 240, 255, 0.72);
  border: 3px solid #1b1715;
  border-bottom-width: 0;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
/* a little sheen on the glass */
.pch-glass b {
  position: absolute;
  left: 18%;
  top: 12%;
  width: 4px;
  height: 40%;
  background: rgba(255, 255, 255, 0.85);
  transform: skewX(-12deg);
}
.pch-showerfx.on .pch-glass {
  background: rgba(214, 240, 255, 0.82);
}
.pch-water,
.pch-showersteam {
  position: absolute;
  display: none;
}
.pch-showerfx.on .pch-water,
.pch-showerfx.on .pch-showersteam {
  display: block;
}
.pch-water i {
  position: absolute;
  top: 0;
  width: 3px;
  height: 8px;
  background: #7fd3ff;
  box-shadow: 0 0 0 1px rgba(27, 23, 21, 0.3);
  animation: pch-drop 0.55s linear infinite;
}
.pch-water i:nth-child(1) { left: 5%; animation-delay: -0.1s; }
.pch-water i:nth-child(2) { left: 28%; animation-delay: -0.35s; }
.pch-water i:nth-child(3) { left: 50%; animation-delay: -0.2s; }
.pch-water i:nth-child(4) { left: 72%; animation-delay: -0.45s; }
.pch-water i:nth-child(5) { left: 92%; animation-delay: -0.05s; }
@keyframes pch-drop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(var(--fall, 120px));
    opacity: 0.2;
  }
}
.pch-showersteam i {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(27, 23, 21, 0.35);
  animation: pch-showersteam 2.2s ease-out infinite;
}
.pch-showersteam i:nth-child(2) { left: 14px; animation-delay: -0.7s; }
.pch-showersteam i:nth-child(3) { left: -10px; animation-delay: -1.4s; }
@keyframes pch-showersteam {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.6);
  }
  30% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(1.5);
  }
}
/* Toothbrush */
.pch-dadmug.brush {
  background: #3fb6ff;
  border: 1px solid #1b1715;
}
.pch-dadmug.brush::before {
  left: auto;
  right: -2px;
  top: -5px;
  width: 6px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #1b1715, -6px -3px 0 -1px #fff, 4px -6px 0 -1px #fff;
  animation: pch-fizz 0.5s steps(3) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .pch-water i,
  .pch-showersteam i {
    animation: none;
  }
}
/* His clothes, slung over the top of the glass while he showers */
.pch-glass s {
  display: none;
  position: absolute;
  right: -3px;
  top: -9px;
  width: 38%;
  height: 22px;
  border: 3px solid #1b1715;
  box-sizing: border-box;
  background: linear-gradient(#4a7bd0 0 55%, #c9a96e 55%);
}
.pch-showerfx.clothes .pch-glass s {
  display: block;
}
.pch-showerfx.pjs .pch-glass s {
  background: #a9d6f5;
}

/* Catpops' phone, camera flash and barbell */
.pch-dadmug.phone {
  background: #1b1715;
  border: 1px solid #1b1715;
  border-radius: 2px;
}
.pch-dadmug.phone::before {
  display: none;
}
.pch-flash {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  animation: pch-flash 0.4s ease-out forwards;
}
@keyframes pch-flash {
  0% {
    opacity: 1;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}
.pch-dad.pch-lifting .pch-dadmug {
  display: none !important;
}
/* Barbell press: the bar goes from chest height to overhead and back */
.pch-dad.pch-lifting .pch-inner::before,
.pch-dad.pch-lifting .pch-inner::after {
  content: "";
  position: absolute;
  z-index: 1;
  animation: pch-press 1.6s ease-in-out infinite;
  pointer-events: none;
}
.pch-dad.pch-lifting .pch-inner::before {
  left: -34%;
  width: 168%;
  height: 4px;
  margin-top: 6px;
  background: #9aa0a6;
  box-shadow: 0 0 0 2px #1b1715;
}
.pch-dad.pch-lifting .pch-inner::after {
  left: -40%;
  width: 180%;
  height: 16px;
  background: linear-gradient(
    90deg,
    #1b1715 0 2%,
    #FF007A 2% 6%,
    #1b1715 6% 8%,
    transparent 8% 92%,
    #1b1715 92% 94%,
    #FF007A 94% 98%,
    #1b1715 98%
  );
}
@keyframes pch-press {
  0%,
  100% {
    top: 36%;
  }
  50% {
    top: 2%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-dad.pch-lifting .pch-inner::before,
  .pch-dad.pch-lifting .pch-inner::after {
    animation: none;
    top: 10%;
  }
}

/* Front door, doorbell and parcels */
.pch-frontdoor::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 4%;
  bottom: 0;
  background: linear-gradient(#9fd8ff 0 70%, #7ad64b 70%);
  opacity: 0;
}
.pch-frontdoor svg {
  position: relative;
  transform-origin: 0 50%;
  transition: transform 0.35s ease;
}
.pch-frontdoor.open::before {
  opacity: 1;
}
.pch-frontdoor.open svg {
  transform: scaleX(0.2);
}
.pch button.pch-bell {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  border: 3px solid #1b1715 !important;
  border-radius: 50% !important;
  background: #ffd400 !important;
  box-shadow: 2px 2px 0 #1b1715 !important;
  cursor: pointer;
}
.pch button.pch-bell:focus-visible {
  outline: 3px solid #FF007A;
  outline-offset: 2px;
}
.pch-bell.ring {
  animation: pch-ring 0.5s steps(4) 2;
}
@keyframes pch-ring {
  25% {
    rotate: -18deg;
  }
  75% {
    rotate: 18deg;
  }
}
.pch .pch-doorbub {
  bottom: auto;
  z-index: 7;
}
.pch-parcel {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  pointer-events: none;
}
.pch-parcel svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-parcel.drop svg {
  animation: pch-parcel-drop 0.45s ease-in;
}
@keyframes pch-parcel-drop {
  0% {
    transform: translate(-60%, -40%) rotate(-12deg);
  }
  80% {
    transform: translate(0, 4%) rotate(2deg);
  }
  100% {
    transform: none;
  }
}
.pch-parcel.open .flap {
  transform: translateY(-1px) rotate(-25deg);
  transform-box: fill-box;
  transform-origin: 0 100%;
}
.pch-parcel.open .flap + .flap {
  transform-origin: 100% 100%;
  transform: translateY(-1px) rotate(25deg);
}
@media (prefers-reduced-motion: reduce) {
  .pch-bell.ring,
  .pch-parcel.drop svg {
    animation: none;
  }
}
/* Knocking: the door rattles. Clicking the door knocks. */
.pch-frontdoor.knock svg {
  animation: pch-knock 0.18s steps(2) 4;
}
@keyframes pch-knock {
  50% {
    translate: 2px 0;
  }
}
.pch button.pch-doorbtn {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.pch button.pch-doorbtn:focus-visible {
  outline: 3px solid #FF007A;
  outline-offset: 2px;
}
/* The courier standing in the open doorway with a parcel */
.pch-courier {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
}
.pch-courier[hidden] {
  display: none;
}
.pch-courier svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
}
.pch-courierbox {
  position: absolute;
  left: -18%;
  top: 52%;
  width: 60%;
  height: 22%;
  background: #c98a4a;
  border: 3px solid #1b1715;
  box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) {
  .pch-frontdoor.knock svg {
    animation: none;
  }
}

/* Grooming room: clickable table, flying fluff, Catpops' brush and hairdryer */
.pch button.pch-groombtn {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.pch button.pch-groombtn:focus-visible {
  outline: 3px solid #FF007A;
  outline-offset: 2px;
}
.pch-fluff {
  position: absolute;
  z-index: 6;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pch-fluff i {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border: 2px solid rgba(27, 23, 21, 0.4);
  border-radius: 50%;
  animation: pch-fluff 1.6s ease-out infinite;
}
.pch-fluff i:nth-child(2) { animation-delay: -0.3s; left: 10px; }
.pch-fluff i:nth-child(3) { animation-delay: -0.6s; left: -12px; }
.pch-fluff i:nth-child(4) { animation-delay: -0.9s; left: 20px; }
.pch-fluff i:nth-child(5) { animation-delay: -1.2s; left: -4px; }
.pch-fluff i:nth-child(6) { animation-delay: -1.45s; left: 4px; background: #f2a65a; }
@keyframes pch-fluff {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-26px, -34px) scale(1.3) rotate(90deg);
  }
}
/* Pink hairdryer in Catpops' hand while grooming */
.pch-dad.pch-grooming .pch-dadmug {
  display: none !important;
}
.pch-dad.pch-grooming .pch-inner::before {
  content: "";
  position: absolute;
  left: -18%;
  top: 40%;
  width: 34%;
  height: 12%;
  background: #FF007A;
  border: 2px solid #1b1715;
  box-sizing: border-box;
  animation: pch-dryer 0.5s steps(2) infinite;
}
@keyframes pch-dryer {
  50% {
    translate: 0 -3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-fluff {
    display: none;
  }
  .pch-dad.pch-grooming .pch-inner::before {
    animation: none;
  }
}
/* Clickable fireplace */
.pch button.pch-firebtn {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.pch button.pch-firebtn:focus-visible {
  outline: 3px solid #FF007A;
  outline-offset: 2px;
}
/* Clickable TV, and the bird channel */
.pch button.pch-tvbtn {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.pch button.pch-tvbtn:focus-visible {
  outline: 3px solid #FF007A;
  outline-offset: 2px;
}
.pch-tvshow {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(#bfe6ff 0 65%, #7ad64b 65%);
}
.pch-tvshow[hidden] {
  display: none;
}
/* two little birds flapping across the screen */
.pch-tvshow i {
  position: absolute;
  top: 25%;
  left: -20%;
  width: 16%;
  height: 18%;
  background: #FF007A;
  border: 2px solid #1b1715;
  box-sizing: border-box;
  border-radius: 40% 60% 40% 40%;
  animation: pch-bird 3.2s linear infinite;
}
.pch-tvshow i + i {
  top: 45%;
  background: #ffd400;
  animation-duration: 4.4s;
  animation-delay: -2s;
}
@keyframes pch-bird {
  0% {
    left: -20%;
    transform: translateY(0);
  }
  25% {
    transform: translateY(-30%);
  }
  50% {
    transform: translateY(10%);
  }
  75% {
    transform: translateY(-20%);
  }
  100% {
    left: 110%;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-tvshow i {
    animation: none;
    left: 40%;
  }
}

/* Furniture: fire flicker, TV glow, chandelier swing */
.pch-deco svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-flick {
  animation: pch-flick 0.8s steps(2) infinite;
}
@keyframes pch-flick {
  50% {
    filter: brightness(1.2) saturate(1.3);
  }
}
.pch-glow {
  animation: pch-glow 2.6s steps(3) infinite;
}
@keyframes pch-glow {
  33% {
    filter: hue-rotate(70deg);
  }
  66% {
    filter: hue-rotate(170deg);
  }
}
.pch-swing {
  transform-origin: 50% 0;
  animation: pch-swing 3s ease-in-out infinite;
}
@keyframes pch-swing {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-flick,
  .pch-glow,
  .pch-swing {
    animation: none;
  }
}


/* Living room sisal pole: a little side-to-side shimmy while a cat climbs up or down */
.pch-cat.pch-climb .pch-inner > * { animation: pch-shimmy 0.32s steps(2) infinite; }
@keyframes pch-shimmy { 0% { transform: translateX(-1px); } 100% { transform: translateX(1px); } }

/* Bathroom lighting */
.pch-bathfx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
  background:
    linear-gradient(180deg, rgba(18, 52, 58, 0.2), rgba(18, 52, 58, 0) 14%),
    linear-gradient(0deg, rgba(18, 52, 58, 0.16), rgba(18, 52, 58, 0) 22%),
    linear-gradient(90deg, rgba(18, 52, 58, 0.26), rgba(18, 52, 58, 0) 20%, rgba(18, 52, 58, 0) 80%, rgba(18, 52, 58, 0.26));
}
.pch-bathfx i { position: absolute; display: block; }
.pch-bf-cone { left: calc(50% - 46%); top: 18px; width: 92%; bottom: 0;
  background: linear-gradient(180deg, rgba(255, 240, 196, 0.5), rgba(255, 240, 196, 0.12) 75%, rgba(255, 240, 196, 0));
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); filter: blur(4px); mix-blend-mode: screen;
  animation: pch-bathglow 6s ease-in-out infinite; }
.pch-bf-pool { left: 18%; right: 18%; bottom: -10px; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 244, 210, 0.55), rgba(255, 244, 210, 0) 70%); }
.pch-bf-contact { bottom: -3px; height: 8px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(10, 30, 35, 0.4), rgba(10, 30, 35, 0) 70%); }
.pch-bf-cast { bottom: 0; transform-origin: bottom center; border-radius: 6px 6px 0 0;
  background: rgba(18, 52, 58, 0.14); filter: blur(3px); }
@keyframes pch-bathglow { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }

/* Tap-to-open cupboard doors (kitchen counter, TV stand) */
.pch-cdoor { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; perspective: 120px; }
.pch-cdoor:focus-visible { outline: 2px solid #FF007A; outline-offset: 1px; }
.pch-cin { position: absolute; inset: 0; background: #2b2420; overflow: hidden; }
.pch-cin i { position: absolute; bottom: 12%; width: 32%; }
.pch-cin-food .pch-cin i { height: 55%; background: linear-gradient(180deg, #FF007A 0 28%, #f4ead8 28% 72%, #FF007A 72%); }
.pch-cin-food .pch-cin i:first-child { left: 14%; }
.pch-cin-food .pch-cin i:last-child { left: 54%; height: 42%; background: linear-gradient(180deg, #ffd400 0 30%, #f4ead8 30%); }
.pch-cin-games .pch-cin i:first-child { left: 10%; width: 62%; height: 30%; background: #111; box-shadow: inset 0 -2px 0 #3a3f45; }
.pch-cin-games .pch-cin i:last-child { left: 62%; width: 28%; height: 22%; border-radius: 3px; background: #5c6670; }
.pch-leaf { position: absolute; inset: 0; transition: transform 0.35s cubic-bezier(.3, 1.4, .5, 1); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.pch-leaf i { position: absolute; }
.pch-cdoor-l .pch-leaf { transform-origin: left center; }
.pch-cdoor-r .pch-leaf { transform-origin: right center; }
.pch-cdoor-l.open .pch-leaf { transform: rotateY(-78deg); filter: brightness(0.8); }
.pch-cdoor-r.open .pch-leaf { transform: rotateY(78deg); filter: brightness(0.8); }
@media (prefers-reduced-motion: reduce) { .pch-leaf, .pch-bf-cone { transition: none; animation: none; } }


/* Steamy bathroom mirror */
.pch-mirfog { position: absolute; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 14s ease-out;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(240,248,252,0.88) 60%, rgba(225,238,244,0.8)); }
.pch-mirfog.on { opacity: 1; transition: opacity 5s ease-in; }
.pch-mirfog i { position: absolute; top: -30%; width: 2px; height: 30%; background: rgba(191,230,255,0.9); border-radius: 0 0 2px 2px; }
.pch-mirfog.on i { animation: pch-drip 7s linear infinite; }
.pch-mirfog i:nth-child(1) { left: 22%; animation-delay: 3s !important; }
.pch-mirfog i:nth-child(2) { left: 58%; animation-delay: 5.5s !important; }
.pch-mirfog i:nth-child(3) { left: 78%; animation-delay: 8s !important; }
@keyframes pch-drip { 0% { top: -30%; } 70%, 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .pch-mirfog i { animation: none !important; } }


/* Recording studio ON AIR light */
.pch-onair { position: absolute; top: 14px; right: 44px; z-index: 2; pointer-events: none; padding: 2px 5px;
  font: 800 9px/1.1 system-ui, sans-serif; letter-spacing: 1px; color: #7a3a46; background: #3a1820; border: 2px solid #1a1a1a; }
.pch-onair.lit { color: #fff; background: #e0213f; box-shadow: 0 0 8px 2px rgba(255, 40, 70, 0.6); animation: pch-onair 2.4s ease-in-out infinite; }
@keyframes pch-onair { 0%, 100% { box-shadow: 0 0 8px 2px rgba(255, 40, 70, 0.6); } 50% { box-shadow: 0 0 12px 4px rgba(255, 40, 70, 0.8); } }


/* Room lights */
.pch-lampsw { position: absolute; top: 0; width: 18px; height: 26px; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; z-index: 3; }
.pch-lampsw .cord { position: absolute; left: 8px; top: 0; width: 2px; height: 12px; background: #1a1a1a; }
.pch-lampsw .shade { position: absolute; left: 0; top: 12px; width: 18px; height: 7px; background: #1a1a1a; clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); }
.pch-lampsw .bulb { position: absolute; left: 6px; top: 18px; width: 6px; height: 3px; background: #6b6b5a; transition: background .2s, box-shadow .2s; }
.pch-lampsw.lit .bulb { background: #fff3c4; box-shadow: 0 0 8px 3px rgba(255, 236, 170, 0.85), 0 6px 26px 10px rgba(255, 230, 160, 0.3); }
.pch-lampsw:hover .shade { background: #333; }
.pch-lampsw:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-lamphost { cursor: pointer; }
.pch-lamphost.lit { filter: drop-shadow(0 0 6px rgba(255, 230, 150, 0.9)); }
.pch-lamphost:focus-visible { outline: 2px solid #FF007A; }
.pch-bathfx.off .pch-bf-cone, .pch-bathfx.off .pch-bf-pool { opacity: 0; transition: opacity .4s; }
.pch-bf-cone, .pch-bf-pool { transition: opacity .4s; }
.pch-shh { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); padding: 3px 8px; border-radius: 10px; background: #fff; border: 2px solid #1a1a1a;
  font: 700 11px/1.2 system-ui, sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; z-index: 5; }
.pch-shh.go { animation: pch-shh 2.6s ease-out; }
@keyframes pch-shh { 0% { opacity: 0; transform: translate(-50%, 6px); } 15%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }


/* Kitchen lighting: warm white and cream */
.pch-kitchenfx {
  background:
    linear-gradient(180deg, rgba(92, 72, 40, 0.16), rgba(92, 72, 40, 0) 14%),
    linear-gradient(0deg, rgba(92, 72, 40, 0.12), rgba(92, 72, 40, 0) 22%),
    linear-gradient(90deg, rgba(92, 72, 40, 0.2), rgba(92, 72, 40, 0) 20%, rgba(92, 72, 40, 0) 80%, rgba(92, 72, 40, 0.2));
}
.pch-kitchenfx .pch-bf-cone { background: linear-gradient(180deg, rgba(255, 252, 240, 0.65), rgba(255, 246, 222, 0.16) 75%, rgba(255, 246, 222, 0)); }
.pch-kitchenfx .pch-bf-pool { background: radial-gradient(ellipse at center, rgba(255, 250, 232, 0.7), rgba(255, 250, 232, 0) 70%); }
.pch-kitchenfx .pch-bf-contact { background: radial-gradient(ellipse at center, rgba(60, 45, 25, 0.38), rgba(60, 45, 25, 0) 70%); }
.pch-kitchenfx .pch-bf-cast { background: rgba(92, 72, 40, 0.13); }

.pch-fittitle { position: absolute; display: flex; align-items: center; justify-content: center; pointer-events: none;
  color: #fff; font-family: system-ui, sans-serif; font-weight: 900; letter-spacing: 0.5px; line-height: 1; white-space: nowrap; }


/* Dining room: cosy and a little old-fashioned. Warm walls with a faint touch of age,
   soft corners, and a broad golden pool of light from the chandelier */
.pch-diningfx {
  background:
    linear-gradient(180deg, rgba(70, 40, 12, 0.18), rgba(70, 40, 12, 0) 18%),
    linear-gradient(0deg, rgba(70, 40, 12, 0.12), rgba(70, 40, 12, 0) 22%),
    linear-gradient(90deg, rgba(70, 40, 12, 0.2), rgba(70, 40, 12, 0) 22%, rgba(70, 40, 12, 0) 78%, rgba(70, 40, 12, 0.2));
}
.pch-dn-dinge { inset: 0;
  background:
    radial-gradient(ellipse 9% 16% at 14% 30%, rgba(150, 110, 50, 0.12), rgba(150, 110, 50, 0) 70%),
    radial-gradient(ellipse 12% 22% at 82% 18%, rgba(150, 110, 50, 0.1), rgba(150, 110, 50, 0) 70%),
    linear-gradient(rgba(255, 196, 120, 0.16), rgba(230, 160, 90, 0.14));
  mix-blend-mode: multiply; }
.pch-diningfx .pch-bf-cone { left: calc(var(--cx, 50%) - 46%); width: 92%; top: 26px;
  background: linear-gradient(180deg, rgba(255, 214, 140, 0.55), rgba(255, 200, 120, 0.16) 75%, rgba(255, 200, 120, 0));
  clip-path: polygon(44% 0, 56% 0, 96% 100%, 4% 100%); animation: pch-candle 4s ease-in-out infinite; }
.pch-diningfx .pch-bf-pool { left: calc(var(--cx, 50%) - 30%); right: auto; width: 60%;
  background: radial-gradient(ellipse at center, rgba(255, 210, 140, 0.6), rgba(255, 210, 140, 0) 70%); }
.pch-diningfx .pch-bf-contact { background: radial-gradient(ellipse at center, rgba(30, 20, 8, 0.45), rgba(30, 20, 8, 0) 70%); }
.pch-diningfx .pch-bf-cast { background: rgba(40, 28, 12, 0.2); }
@keyframes pch-candle { 0%, 100% { opacity: 0.85; } 30% { opacity: 1; } 55% { opacity: 0.78; } 80% { opacity: 0.95; } }

/* Wardrobe layers: keep the open interior and the swung doors above the wardrobe itself */
.pch-wardin { z-index: 4; }
.pch-warddoors { z-index: 5; }
.pch-wardpick { pointer-events: auto; cursor: pointer; }


/* Groceries: stocked kitchen cupboard, then new soap and loo roll in the bathroom */
.pch-cdoor.stocked .pch-cin i:first-child { height: 70%; }
.pch-cdoor.stocked .pch-cin::after { content: ""; position: absolute; right: 8%; bottom: 12%; width: 22%; height: 40%; background: #6f4a2a; box-shadow: inset 0 3px 0 #b5784a; }
.pch-newsoap { position: absolute; pointer-events: none; background: #ff7ab0; border: 2px solid #1b1715; box-sizing: border-box; border-radius: 2px 2px 0 0; }
.pch-newsoap::before { content: ""; position: absolute; left: 30%; top: -45%; width: 40%; height: 45%; background: #1b1715; }
.pch-newsoap.pop { animation: pch-soappop 0.6s ease-out; }
@keyframes pch-soappop { 0% { transform: translateY(-6px) scale(0.7); } 60% { transform: translateY(1px) scale(1.05); } }
.pch-looroll { position: absolute; pointer-events: none; }
.pch-looroll i { display: block; height: 50%; background: #fffdf4; border: 2px solid #1b1715; box-sizing: border-box; border-radius: 2px; }


/* Goldfish bowl (dining room): smaller swim inside the round bowl */
.pch-tank.pch-bowl .pch-swim { left: 9px; width: 15px; height: 8px; animation-name: pch-bowlswim; }
.pch-tank.pch-bowl .pch-swim0 { top: 16px; }
.pch-tank.pch-bowl .pch-swim1 { top: 28px; left: 13px; }
.pch-tank.pch-bowl .pch-fizz { left: 33px; top: 34px; }
.pch-tank.pch-bowl .pch-fizz2 { left: 18px; }
@keyframes pch-bowlswim { 0% { transform: translateX(0); } 48% { transform: translateX(20px); } 50% { transform: translateX(20px) scaleX(-1); } 98% { transform: translateX(0) scaleX(-1); } 100% { transform: translateX(0); } }

/* Washing machine spin cycle: a shudder every so often */
.pch-washer { animation: none; }
.pch-deco.pch-washer.running { animation: pch-washrun 0.28s steps(2) infinite; }
@keyframes pch-washrun { 0% { transform: translate(-1px, 0); } 50% { transform: translate(1px, -1px); } 100% { transform: translate(0, 0); } }
@keyframes pch-wash { 0%, 55%, 100% { transform: none; } 57%, 61%, 65%, 69%, 73%, 77%, 81%, 85% { transform: translate(-1px, 0); } 59%, 63%, 67%, 71%, 75%, 79%, 83% { transform: translate(1px, -1px); } }
@media (prefers-reduced-motion: reduce) { .pch-washer { animation: none; } }

/* Catpops' upright vacuum (kept in the cupboard under the stairs) */
.pch-hoover { position: absolute; right: -30%; bottom: 0; width: 40%; height: 58%; pointer-events: none; z-index: 2; }
.pch-hoover svg { display: block; width: 100%; height: 100%; }
.pch-dad.pch-hoovering .pch-hoover { animation: pch-hoover 0.9s ease-in-out infinite alternate; }
@keyframes pch-hoover { from { transform: translateX(-2px); } to { transform: translateX(3px); } }
.pch-cupin .vac { position: absolute; display: block; }


/* Spare sweetsticks lying around */
.pch-xstick { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; z-index: 3; transform-origin: 30% 80%; }
.pch-xstick svg { display: block; width: 100%; height: 100%; }
.pch-xstick:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-xstick.pch-play { animation: pch-xstick 0.35s ease-in-out infinite alternate; }
@keyframes pch-xstick { from { transform: rotate(-10deg) translateY(-2px); } to { transform: rotate(8deg) translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .pch-xstick.pch-play { animation: none; } }


/* Cats shut in cupboards: the door rattles and they meow */
.pch-cupmeow { position: absolute; transform: translate(-50%, -100%); z-index: 8; white-space: nowrap; pointer-events: none; }
.pch-rattle, .pch-cdoor.pch-rattle .pch-leaf { animation: pch-rattle 0.18s steps(2) infinite; }
@keyframes pch-rattle { 0% { translate: -1px 0; } 100% { translate: 1px 0; } }
@media (prefers-reduced-motion: reduce) { .pch-rattle, .pch-cdoor.pch-rattle .pch-leaf { animation: none; } }

/* High-up sweetsticks: a little wobble while waiting to be knocked down, a tumble when they fall */
.pch-xstick.pch-up:hover { transform: rotate(-6deg); }
.pch-xstick { transition: top 0.5s cubic-bezier(.5, 0, 1, .6), left 0.5s linear; }
.pch-xstick.pch-falling { animation: pch-xfall 0.6s ease-in; }
@keyframes pch-xfall { 0% { transform: rotate(0); } 60% { transform: rotate(160deg); } 100% { transform: rotate(180deg) scaleY(-1); } }

/* Dining room: the chandelier glow spreads wide and golden */
.pch-diningfx .pch-bf-cone { width: 110%; left: calc(var(--cx, 50%) - 55%);
  background: linear-gradient(180deg, rgba(255, 214, 140, 0.6), rgba(255, 196, 120, 0.22) 75%, rgba(255, 196, 120, 0.05)); }
.pch-diningfx .pch-bf-pool { width: 80%; left: calc(var(--cx, 50%) - 40%); height: 34px;
  background: radial-gradient(ellipse at center, rgba(255, 200, 120, 0.7), rgba(255, 200, 120, 0) 70%); }
.pch-diningfx::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 70% at var(--cx, 50%) 55%, rgba(255, 190, 110, 0.16), rgba(255, 190, 110, 0) 70%); }

/* Bookshelf: no more jolt */
.pch-deco.pch-idle-jolt { animation: none !important; }

/* Catpops carrying the washing basket */
.pch-dad.pch-carrybasket .pch-inner::after { content: ""; position: absolute; z-index: 2; left: 8%; top: 46%; width: 84%; height: 24%;
  background: linear-gradient(#4a7bd0 0 22%, #fffdf4 22% 40%, #d9b77a 40%); border: 2px solid #1b1715; box-sizing: border-box; }

/* Cats squeezing into and hopping out of cupboards */
.pch-cat.pch-cupenter .pch-inner { animation: pch-cupenter 0.55s ease-in forwards; }
.pch-cat.pch-cupexit .pch-inner { animation: pch-cupexit 0.5s ease-out; }
@keyframes pch-cupenter { to { transform: scale(0.4, 0.7) translateY(20%); opacity: 0; } }
@keyframes pch-cupexit { from { transform: scale(0.5, 0.8) translateY(15%); opacity: 0; } }

/* Cat sizes: Rabbitovitz is the base size, Purrcival 20% bigger, Lyle 44% bigger */
.pch-cat[aria-label^="Purrcival"] .pch-sprite { scale: 1.2; transform-origin: 50% 100%; }
.pch-cat[aria-label^="Lyle"] .pch-sprite { scale: 1.44; transform-origin: 50% 100%; }

/* Front door waiting to be answered: a soft pulse round the door */
.pch-answerable { cursor: pointer; animation: pch-answer 1.2s ease-in-out infinite; border-radius: 3px; }
@keyframes pch-answer { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 122, 0); } 50% { box-shadow: 0 0 0 3px rgba(255, 0, 122, 0.55); } }
@media (prefers-reduced-motion: reduce) { .pch-answerable { animation: none; box-shadow: 0 0 0 3px rgba(255, 0, 122, 0.55); } }


/* Meow bubbles from cupboards: above the door, clear of it, on top of everything */
.pch-bubble.pch-cupmeow { bottom: auto; transform: translate(-50%, -100%); z-index: 12; }
.pch-cup .pch-cupsay { z-index: 12; }
.pch-cup:has(.pch-cupsay:not([hidden])) { z-index: 12; }

/* Climbing the sisal pole: cat turned sideways, feet on the pole */
/* Feet against the pole (it's on the cat's left): head up going up, head down coming down */
.pch-cat.pch-climbup .pch-inner { rotate: 90deg; translate: 38% -10%; transform-origin: 50% 60%; scale: -1 1; }
.pch-cat.pch-climbdown .pch-inner { rotate: 90deg; translate: 38% -10%; transform-origin: 50% 60%; }

/* Catpops dancing under the disco ball */
.pch-dad.pch-dance .pch-inner { animation: pch-dance 0.45s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes pch-dance { 0% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-5px) rotate(0); } 100% { transform: translateY(0) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .pch-dad.pch-dance .pch-inner { animation: none; } }

/* Mopping: mop in hand, a bucket, a wet shiny floor that dries, and wet paw prints */
.pch-dad.pch-mopping .pch-mop { animation: pch-mopswish 0.5s ease-in-out infinite alternate; }
@keyframes pch-mopswish { from { transform: translateX(-4px) rotate(-6deg); } to { transform: translateX(4px) rotate(6deg); } }
.pch-mopbucket { position: absolute; pointer-events: none; z-index: 3; background: #4a7bd0; border: 2px solid #1b1715; box-sizing: border-box; border-radius: 0 0 3px 3px; }
.pch-mopbucket::before { content: ""; position: absolute; left: 10%; right: 10%; top: 8%; height: 18%; background: #9fd8ff; }
.pch-wetfloor { position: absolute; height: 5px; pointer-events: none; z-index: 2; border-radius: 3px;
  background: linear-gradient(90deg, rgba(160, 215, 255, 0.55), rgba(220, 245, 255, 0.85) 30%, rgba(160, 215, 255, 0.55) 60%, rgba(220, 245, 255, 0.8));
  box-shadow: 0 -2px 6px rgba(190, 230, 255, 0.5); transition: opacity 6s linear; }
.pch-wetfloor.dry { opacity: 0; }
.pch-pawprint { position: absolute; width: 5px; height: 4px; pointer-events: none; z-index: 2; border-radius: 50%; background: rgba(90, 110, 130, 0.45); animation: pch-pawfade 20s linear forwards; }
@keyframes pch-pawfade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.pch-cupin.pch-mopout .mop, .pch-cupin.pch-mopout .bucket { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .pch-dad.pch-mopping .pch-mop { animation: none; } }

/* Empty basket once the washing's put away */
.pch-dad.pch-carrybasket.pch-basketempty .pch-inner::after { background: #d9b77a; height: 16%; top: 54%; }


/* Mischief Score: a discreet button beside the House log, a panel in the same style as the
   log, a "+10" that floats off the button, and a toast for new achievements */
.pch-mscbtn { position: relative; }
.pch-msc-n { font-variant-numeric: tabular-nums; }
.pch-msc-pop { position: absolute; right: 6px; top: -4px; pointer-events: none; font: 900 12px/1 system-ui, sans-serif; color: #ff007a; animation: pch-mscpop 1.2s ease-out forwards; }
@keyframes pch-mscpop { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-22px); } }
.pch-mscpanel .pch-msc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 0 6px; }
.pch-mscpanel .pch-msc-top strong { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pch-mscpanel .pch-msc-top em { font-style: normal; font-weight: 900; color: #ff007a; }
.pch-msc-bar { height: 8px; border: 2px solid #1b1715; border-radius: 6px; background: #fff; overflow: hidden; }
.pch-msc-bar i { display: block; height: 100%; background: #ff007a; }
.pch-msc-next { font-size: 11.5px; opacity: 0.75; margin: 4px 0 10px; }
.pch-mscpanel ul.pch-msc-ach li { align-items: flex-start; }
.pch-mscpanel ul.pch-msc-ach li p { margin: 0 !important; }
.pch-mscpanel ul.pch-msc-ach li.locked { opacity: 0.55; }
.pch-msc-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; padding-bottom: 4px; }
.pch-msc-stats b { color: #ff007a; font-variant-numeric: tabular-nums; }
.pch-msc-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99999; display: grid; gap: 2px; max-width: min(340px, calc(100vw - 32px));
  padding: 10px 14px; background: #fffde4; color: #1b1715; border: 3px solid #1b1715; border-radius: 8px; box-shadow: 4px 4px 0 #1b1715;
  font: 600 13px/1.3 system-ui, -apple-system, sans-serif; animation: pch-toastin 0.35s ease-out; }
.pch-msc-toast b { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #ff007a; }
.pch-msc-toast strong { font-size: 16px; font-weight: 900; }
.pch-msc-toast.out { opacity: 0; transition: opacity 0.5s; }
@keyframes pch-toastin { from { transform: translate(-50%, 12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pch-msc-pop, .pch-msc-toast { animation: none; } }

/* Games room door window and the light it lets in */
.pch-doorwin { position: absolute; pointer-events: none; box-sizing: border-box; border: 2px solid #1b1715;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), #1b1715 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), #1b1715 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(160deg, #e9f7ff 0%, #bfe6ff 55%, #9fd3f5 100%); }
.pch-doorwin::after { content: ""; position: absolute; left: 12%; top: 10%; width: 14%; height: 30%; background: rgba(255, 255, 255, 0.85); }
.pch-doorwin[data-phase="golden"] { background:
    linear-gradient(90deg, transparent calc(50% - 1px), #1b1715 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), #1b1715 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(170deg, #ffd9a0 0%, #ffb07a 60%, #f58f7a 100%); }
.pch-doorwin[data-phase="night"] { background:
    linear-gradient(90deg, transparent calc(50% - 1px), #1b1715 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), #1b1715 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(circle at 72% 28%, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle at 26% 70%, #dfe8ff 0 1px, transparent 1.5px),
    linear-gradient(180deg, #1c2747, #2b3a63); }
.pch-doorwin[data-phase="night"]::after { background: rgba(255, 255, 255, 0.12); }
.pch-doorbeam { position: absolute; pointer-events: none; z-index: 1; filter: blur(2px);
  clip-path: polygon(80% 0, 100% 0, 100% 62%, 34% 100%, 0 100%);
  background: linear-gradient(200deg, rgba(255, 236, 160, 0.5), rgba(255, 232, 150, 0.28) 60%, rgba(255, 232, 150, 0.12));
  transition: opacity 2s; }
.pch-doorbeam[data-phase="golden"] { background: linear-gradient(200deg, rgba(255, 176, 100, 0.55), rgba(255, 160, 90, 0.3) 60%, rgba(255, 160, 90, 0.12)); }
.pch-doorbeam[data-phase="night"] { opacity: 0; }

.pch-msc-days { display: flex; gap: 16px; font-size: 12px; margin: -2px 0 6px; }
.pch-msc-days b { color: #ff007a; font-variant-numeric: tabular-nums; }

/* Stable door (games room): the top half swings open onto the garden */
.pch-doortop { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; perspective: 140px; }
.pch-doortop:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-doorout { position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(180deg, #bfe6ff 0%, #e9f7ff 55%, #7cc46a 55%, #5aa64c 100%); }
.pch-doorout i { position: absolute; right: 14%; top: 12%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #ffe066; box-shadow: 0 0 6px 2px rgba(255, 224, 102, 0.7); }
.pch-doortop[data-phase="golden"] .pch-doorout { background: linear-gradient(180deg, #ffcf94 0%, #ffb07a 55%, #6aa65a 55%, #4f8a44 100%); }
.pch-doortop[data-phase="golden"] .pch-doorout i { top: 34%; background: #ff9a4a; }
.pch-doortop[data-phase="night"] .pch-doorout { background: linear-gradient(180deg, #1c2747 0%, #2b3a63 55%, #22402a 55%, #1a3220 100%); }
.pch-doortop[data-phase="night"] .pch-doorout i { background: #f4f1d0; box-shadow: none; width: 16%; }
.pch-doorleaf { position: absolute; inset: 0; background: #c98a4a; transform-origin: left center; transition: transform 0.45s cubic-bezier(.3, 1.3, .5, 1); }
.pch-doorleaf::after { content: ""; position: absolute; left: calc(var(--u) * 5); top: calc(var(--u) * 7); width: var(--u); height: var(--u); background: #ffd400; }
.pch-doortop .pch-doorwin { left: var(--u); top: var(--u); width: calc(var(--u) * 5); height: calc(var(--u) * 6); }
.pch-doortop.open .pch-doorleaf { transform: rotateY(-78deg); filter: brightness(0.85); }
.pch-doorbeam.wide { clip-path: polygon(70% 0, 100% 0, 100% 66%, 20% 100%, 0 100%); opacity: 1; }
.pch-doorbeam.wide:not([data-phase="night"]) { background: linear-gradient(200deg, rgba(255, 236, 160, 0.65), rgba(255, 232, 150, 0.35) 60%, rgba(255, 232, 150, 0.15)); }
@media (prefers-reduced-motion: reduce) { .pch-doorleaf { transition: none; } }

/* "How the house works" info box below the house */
.pch-about { margin-top: 10px; }
.pch-about summary { cursor: pointer; font-size: 10.5px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; list-style: none; }
.pch-about summary::-webkit-details-marker { display: none; }
.pch-about summary::after { content: " +"; color: #ff007a; }
.pch-about[open] summary::after { content: " −"; }
.pch-about > p { margin: 8px 0 4px !important; }
.pch-about li { align-items: flex-start; }
.pch-about li p { margin: 0 !important; }

/* Robot vacuum: tappable */
.pch-vac.pch-vac-tap { pointer-events: auto; cursor: pointer; }
.pch-vac.pch-vac-tap:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }

/* Freezer: top door of the fridge, opens on its own */
.pch-freezer { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; perspective: 120px; }
.pch-freezer:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-frzin { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #d8f0ff, #b6e0f7); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); }
.pch-frzin i { position: absolute; display: block; }
.pch-frzin .peas { left: 10%; bottom: 8%; width: 34%; height: 40%; background: #4fb84a; border: 2px solid #1b1715; box-sizing: border-box; border-radius: 2px; }
.pch-frzin .tub { left: 52%; bottom: 8%; width: 36%; height: 32%; background: #ffd1e3; border: 2px solid #1b1715; box-sizing: border-box; box-shadow: inset 0 3px 0 #FF007A; }
.pch-frzin .tray { left: 10%; top: 12%; width: 78%; height: 18%; border: 2px solid #1b1715; box-sizing: border-box;
  background: repeating-linear-gradient(90deg, #ffffff 0 22%, #9fd3f5 22% 26%); }
.pch-frzin .mist { left: -10%; right: -10%; top: 30%; height: 50%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%); opacity: 0; }
.pch-freezer.open .pch-frzin .mist { animation: pch-mist 2.4s ease-out; }
@keyframes pch-mist { 0% { opacity: 0.9; transform: translateY(0) scale(0.8); } 100% { opacity: 0; transform: translateY(-40%) scale(1.3); } }
.pch-frzleaf { position: absolute; inset: 0; background: #e8f4ff; transform-origin: left center; transition: transform 0.4s cubic-bezier(.3, 1.3, .5, 1); }
.pch-postit { position: absolute; left: var(--u); top: var(--u); width: calc(var(--u) * 2); height: calc(var(--u) * 2); background: #FF007A; cursor: help; z-index: 1; }
.pch-postit::after { content: ""; position: absolute; inset: -4px; } /* a slightly bigger target than the note itself */
.pch-postit:hover { filter: brightness(1.15); transform: rotate(-6deg); }
.pch-postit:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-frzleaf::after { content: ""; position: absolute; left: calc(var(--u) * 6); top: calc(var(--u) * 2); width: var(--u); height: calc(var(--u) * 3); background: #1b1715; }
.pch-freezer.open .pch-frzleaf { transform: rotateY(-80deg); filter: brightness(0.85); }
@media (prefers-reduced-motion: reduce) { .pch-frzleaf { transition: none; } .pch-freezer.open .pch-frzin .mist { animation: none; } }

/* Wall art sits behind the cats, even a big cat tucked in on the sofa (St. Lyle was in front of Lyle) */
.pch-deco.pch-stlyle { z-index: 1; }
/* The "Show me" hint button is retired */
.pch-hint .pch-hintbtn { display: none !important; }

/* Washing machine you can open (when it's not running) */
.pch-washbtn { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; perspective: 140px; pointer-events: auto; }
.pch-washbtn:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-washbtn.running { cursor: not-allowed; }
.pch-washbtn.jolt { animation: pch-rattle 0.12s steps(2) 4; }
.pch-wdrum { position: absolute; left: calc(var(--u) * 3.3); top: calc(var(--u) * 4.8); width: calc(var(--u) * 5.4); height: calc(var(--u) * 5.4); overflow: hidden; background: #2b3a4a; display: none; }
.pch-washbtn.open .pch-wdrum, .pch-washbtn.running .pch-wdrum { display: block; }
.pch-wdrum i { position: absolute; inset: 12%; border-radius: 40%;
  background: conic-gradient(#ff7ab0 0 25%, #fffdf4 0 45%, #4a7bd0 0 70%, #ffd400 0 85%, #ff7ab0 0); }
.pch-washbtn.running .pch-wdrum i { animation: pch-tumble 0.9s linear infinite; }
.pch-washbtn.running .pch-wdrum::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(160, 210, 240, 0.55), rgba(140, 190, 230, 0.35)); }
@keyframes pch-tumble { to { transform: rotate(360deg); } }
.pch-wdoor { position: absolute; left: calc(var(--u) * 2.5); top: calc(var(--u) * 4); width: calc(var(--u) * 7); height: calc(var(--u) * 7); box-sizing: border-box;
  border: calc(var(--u) * 0.8) solid #1b1715; background: #8fb8d0; transform-origin: left center; transition: transform 0.4s cubic-bezier(.3, 1.3, .5, 1); }
.pch-wdoor::after { content: ""; position: absolute; left: 12%; top: 10%; width: 18%; height: 26%; background: #d6ecf7; }
.pch-washbtn.running .pch-wdoor { background: transparent; }
.pch-washbtn.open .pch-wdoor { transform: rotateY(-75deg); }
.pch-wlight { position: absolute; left: calc(var(--u) * 9); top: calc(var(--u) * 1.5); width: calc(var(--u) * 1.2); height: var(--u); background: #FF007A; }
.pch-washbtn.running .pch-wlight { background: #3fd15a; box-shadow: 0 0 4px #3fd15a; }
.pch-washbtn.done .pch-wlight { background: #ff2a2a; animation: pch-washdone 0.8s steps(2) infinite; }
@keyframes pch-washdone { 0% { box-shadow: 0 0 6px 2px #ff2a2a; opacity: 1; } 100% { box-shadow: none; opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .pch-washbtn.running, .pch-deco.pch-washer.running, .pch-washbtn.running .pch-wdrum i { animation: none; } }

/* The easel's canvas: tap for a new painting, drag to paint */
.pch-easelcv { position: absolute; image-rendering: pixelated; image-rendering: crisp-edges; cursor: crosshair; touch-action: none; }
.pch-easelcv:focus-visible { outline: 2px solid #FF007A; }
.pch-easelcv.dab { animation: pch-dab 0.35s ease-out; }
@keyframes pch-dab { 0% { filter: brightness(1.3); transform: rotate(-2deg); } 100% { filter: none; transform: none; } }

/* Wool harvest: Lyle's white wool filling the grooming vacuum's dome */
.pch-wooldome { position: absolute; pointer-events: none; overflow: hidden; }
.pch-wooldome i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transition: height 0.5s ease-out;
  background: radial-gradient(circle at 25% 30%, #fff 0 22%, transparent 24%), radial-gradient(circle at 70% 40%, #fff 0 26%, transparent 28%),
    radial-gradient(circle at 45% 75%, #fff 0 30%, transparent 32%), #f4f1ea; }

/* Lyle's wool ball on top of the grooming room scratching post */
.pch-woolball { position: absolute; border-radius: 50%; pointer-events: auto; cursor: pointer; padding: 0; margin: 0; border: 0;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 30%, #f6f3ec 55%, #e4dfd3 100%);
  box-shadow: 0 0 0 1px rgba(27, 23, 21, 0.35), 0 0 3px 1px rgba(255, 255, 255, 0.9), inset -2px -2px 0 rgba(0, 0, 0, 0.06); }
.pch-woolball::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px dotted rgba(255, 255, 255, 0.95); }
.pch-woolball.puff { animation: pch-woolpuff 0.7s ease-out; }
@keyframes pch-woolpuff { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pch-woolball.puff { animation: none; } }

/* Bathroom cabinet behind the mirror */
.pch-cabinet { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; perspective: 140px; }
.pch-cabinet:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-cabin { position: absolute; inset: 0; display: none; background: #e9dcc8; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
  background-image: linear-gradient(transparent 46%, #b98c5a 46% 52%, transparent 52% 92%, #b98c5a 92%); }
.pch-cabinet.open .pch-cabin { display: block; }
.pch-cabin i { position: absolute; display: block; border: 1px solid #1b1715; box-sizing: border-box; }
.pch-cabin .cup { left: 10%; top: 26%; width: 22%; height: 20%; background: #7fd3ff; }
.pch-cabin .cup::after { content: ""; position: absolute; left: 30%; top: -60%; width: 25%; height: 70%; background: #ff7ab0; border: 1px solid #1b1715; }
.pch-cabin .sham { left: 44%; top: 18%; width: 22%; height: 28%; background: #ff7ab0; border-radius: 2px 2px 0 0; }
.pch-cabin .pills { left: 74%; top: 30%; width: 18%; height: 16%; background: #ff9a3c; }
.pch-cabin .buds { left: 18%; top: 70%; width: 60%; height: 22%; background: #fffdf4; border-radius: 2px; }
.pch-cableaf { position: absolute; inset: 0; transform-origin: left center; transition: transform 0.4s cubic-bezier(.3, 1.3, .5, 1); }
.pch-cabinet.open .pch-cableaf { transform: rotateY(-80deg); background: linear-gradient(160deg, #e6f7ff, #a9d6ef); box-shadow: 0 0 0 2px #1b1715; }

.pch-woolball:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-bubble.pch-woolbub { text-align: center; }
.pch-bubble.pch-woolbub strong { display: block; color: #ff007a; font-weight: 900; }

/* Bedroom floor lamp (tap on/off) and the light it throws */
.pch-blamp { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; }
.pch-blamp:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-blamp::before { content: ""; position: absolute; left: var(--u); top: var(--u); width: calc(var(--u) * 4); height: calc(var(--u) * 3); background: #ffd400;
  box-shadow: 0 0 10px 4px rgba(255, 220, 90, 0.75); transition: background .25s, box-shadow .25s; }
.pch-blamp.off::before { background: #8a7a3a; box-shadow: none; }
.pch-blampglow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 30%), rgba(255, 226, 140, 0.32), rgba(255, 210, 120, 0.12) 28%, rgba(255, 210, 120, 0) 55%); }
.pch-blampglow.on { opacity: 0.6; }
.pch-blampglow.on.night { opacity: 1; }
.pch-blampdark { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: rgba(24, 14, 48, 0.32); }
.pch-blampdark.on { opacity: 1; }
/* Oven door: drops open */
.pch-ovendoor { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; perspective: 120px; }
.pch-ovendoor:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-ovenin { position: absolute; inset: 0; display: none; overflow: hidden; background: #2a1c16; box-shadow: inset 0 calc(var(--u) * -1) 0 #ff8a00; }
.pch-ovendoor.open .pch-ovenin { display: block; }
.pch-ovenin i { position: absolute; display: block; }
.pch-ovenin .rack { left: 8%; right: 8%; top: 58%; height: 2px; background: #9a9a9a; }
.pch-ovenin .dish { left: 26%; width: 48%; top: 34%; height: 24%; background: #c47a35; border: 2px solid #1b1715; border-radius: 40% 40% 10% 10%; box-sizing: border-box;
  box-shadow: inset 0 3px 0 #e6a25a; }
.pch-ovenin .heat { left: 20%; right: 20%; top: -10%; height: 50%; background: repeating-linear-gradient(90deg, rgba(255, 170, 90, .35) 0 2px, transparent 2px 6px);
  filter: blur(1px); animation: pch-heat 1.2s ease-in-out infinite alternate; }
@keyframes pch-heat { from { transform: translateY(2px) skewX(-6deg); opacity: .5; } to { transform: translateY(-3px) skewX(6deg); opacity: .9; } }
.pch-ovenleaf { position: absolute; inset: 0; background: #e0e0e0; transform-origin: bottom center; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.pch-ovenleaf i { position: absolute; left: var(--u); top: var(--u); right: var(--u); bottom: var(--u); background: #2a1c16; }
.pch-ovenleaf i::after { content: ""; position: absolute; left: var(--u); right: var(--u); top: var(--u); height: var(--u); background: #ff8a00; }
.pch-ovendoor.open .pch-ovenleaf { transform: rotateX(-78deg); filter: brightness(.85); }
@media (prefers-reduced-motion: reduce) { .pch-ovenleaf { transition: none; } .pch-ovenin .heat { animation: none; } }

/* Catpops' mug: tappable */
.pch-item.pch-mugtap { pointer-events: auto; cursor: pointer; }
.pch-item.pch-mugtap:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-item.pch-mugsteam::before, .pch-item.pch-mugsteam::after { content: ""; position: absolute; bottom: 100%; width: 3px; height: 12px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.85); animation: pch-steam 1.6s ease-out forwards; }
.pch-item.pch-mugsteam::before { left: 25%; }
.pch-item.pch-mugsteam::after { left: 60%; animation-delay: 0.25s; }
@keyframes pch-steam { 0% { opacity: 0; transform: translateY(4px) scaleY(0.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px) translateX(2px) scaleY(1.2); } }

/* Watering the plants: the can in his hand, filling, pouring, and a happy plant */
.pch-wcan { position: absolute; right: -26%; top: 48%; width: 32%; height: 22%; pointer-events: none; z-index: 2; transform-origin: 20% 60%; }
.pch-wcan svg { display: block; width: 100%; height: 100%; }
.pch-dad.pch-pouring .pch-wcan { transform: rotate(32deg); }
.pch-dad.pch-filling .pch-wcan { animation: pch-fill 0.5s ease-in-out infinite alternate; }
@keyframes pch-fill { from { transform: translateY(0); } to { transform: translateY(2px); } }
.pch-pour { position: absolute; height: 22px; pointer-events: none; z-index: 4; }
.pch-pour i { position: absolute; top: 0; width: 2px; height: 5px; border-radius: 1px; background: #7fd3ff; animation: pch-drop 0.55s linear infinite; }
.pch-pour i:nth-child(1) { left: 20%; } .pch-pour i:nth-child(2) { left: 50%; animation-delay: .18s; } .pch-pour i:nth-child(3) { left: 78%; animation-delay: .36s; }
@keyframes pch-drop { from { transform: translateY(0); opacity: 1; } to { transform: translateY(20px); opacity: 0; } }
.pch-deco.pch-perk { animation: pch-perk 0.7s ease-out; transform-origin: 50% 100%; }
@keyframes pch-perk { 40% { transform: scaleY(1.08); } }
@media (prefers-reduced-motion: reduce) { .pch-pour i, .pch-deco.pch-perk { animation: none; } }

/* Achievements as postage-stamp medals */
.pch-msc-medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 10px 8px; padding: 4px 2px 6px; }
.pch-medal { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 4px 6px; margin: 0;
  background: #fff; border: 3px dotted #fffde4; outline: 1px solid rgba(27, 23, 21, 0.18); outline-offset: -4px; border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); cursor: pointer; font: inherit; color: #1b1715; transform: rotate(-1deg); transition: transform .15s; }
.pch-medal:nth-child(2n) { transform: rotate(1.2deg); }
.pch-medal:nth-child(3n) { transform: rotate(-0.4deg); }
.pch-medal:hover, .pch-medal.sel { transform: rotate(0) scale(1.08); z-index: 1; }
.pch-medal:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-medal .face { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 2px;
  background: hsl(var(--hue), 70%, 82%); background-image: radial-gradient(circle at 50% 45%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%); }
.pch-medal .face i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-size: 18px; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #f0c33c 55%, #c8932a); box-shadow: 0 0 0 2px #1b1715, inset 0 0 0 3px rgba(255,255,255,.35); }
.pch-medal b { font-size: 8.5px; font-weight: 900; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.02em; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; }
.pch-medal.locked { cursor: help; }
.pch-medal.locked .face { background: #ece8de; filter: grayscale(1); }
.pch-medal.locked .face i { background: #d6d1c4; color: #8a8478; font-weight: 900; box-shadow: 0 0 0 2px #b9b3a5; }
.pch-medal.locked b { color: #9a9488; }
.pch-msc-detail { margin: 4px 0 10px !important; font-size: 12.5px; min-height: 1.4em; }
.pch-msc-detail b { color: #ff007a; }

/* Grooming room window */
.pch-gwin { position: absolute; z-index: 0; pointer-events: auto; cursor: pointer; }
.pch-gwin:focus-visible { outline: 2px solid #FF007A; outline-offset: 3px; }
.pch-gwin .glass { position: absolute; inset: 0; overflow: hidden; border: 3px solid #1b1715; background: #fffdf4; box-sizing: border-box; }
.pch-gwin .glass::before { content: ""; position: absolute; inset: 3px; border: 2px solid #fffdf4;
  background:
    linear-gradient(90deg, transparent calc(50% - 1.5px), #fffdf4 calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(0deg, transparent calc(50% - 1.5px), #fffdf4 calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(180deg, #a9dcf7, #dff3ff); box-shadow: inset 0 0 0 1px #1b1715; }
.pch-gwin .cloud { position: absolute; left: 18%; top: 22%; width: 34%; height: 12%; border-radius: 6px; background: #fff; box-shadow: 6px -3px 0 1px #fff; z-index: 1; }
.pch-gwin[data-phase="golden"] .glass::before { background:
    linear-gradient(90deg, transparent calc(50% - 1.5px), #fffdf4 calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(0deg, transparent calc(50% - 1.5px), #fffdf4 calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(180deg, #ffbe7a, #ffd9a0 60%, #ffe9c2); }
.pch-gwin[data-phase="golden"] .cloud { background: #ffe6cc; box-shadow: 6px -3px 0 1px #ffe6cc; }
.pch-gwin[data-phase="night"] .glass::before { background:
    linear-gradient(90deg, transparent calc(50% - 1.5px), #fffdf4 calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(0deg, transparent calc(50% - 1.5px), #fffdf4 calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    radial-gradient(circle at 72% 30%, #fff 0 1.5px, transparent 2px), radial-gradient(circle at 30% 64%, #dfe8ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, #f4f1d0 0 3px, transparent 3.5px), linear-gradient(180deg, #1c2747, #2b3a63); }
.pch-gwin[data-phase="night"] .cloud { display: none; }
.pch-gwin .cl, .pch-gwin .cr { position: absolute; top: -4px; width: 26%; height: 80%; background: #ff9ac4; border: 2px solid #1b1715; box-sizing: border-box; z-index: 2;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 6px); }
.pch-gwin .cl { left: -8%; border-radius: 0 0 60% 0; }
.pch-gwin .cr { right: -8%; border-radius: 0 0 0 60%; }
.pch-gwin .sill { position: absolute; left: -10%; right: -10%; bottom: -6px; height: 6px; background: #fffdf4; border: 2px solid #1b1715; box-sizing: border-box; }
.pch-gwinbeam { position: absolute; z-index: 0; pointer-events: none; filter: blur(2px); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 244, 200, 0.45), rgba(255, 240, 190, 0.12)); transition: opacity 2s; }
.pch-gwinbeam[data-phase="golden"] { background: linear-gradient(180deg, rgba(255, 190, 120, 0.45), rgba(255, 180, 110, 0.12)); }
.pch-gwinbeam[data-phase="night"] { opacity: 0; }

/* Cat portrait in the living room frame */
.pch-portrait { position: absolute; image-rendering: pixelated; image-rendering: crisp-edges; cursor: pointer; }
.pch-portrait:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-portrait.swap { animation: pch-portswap 0.4s ease-out; }
@keyframes pch-portswap { 0% { filter: brightness(2); } 100% { filter: none; } }

/* Watering can hotspot, and thirsty plants */
.pch-deco.pch-wcantap { pointer-events: auto; cursor: pointer; }
.pch-deco.pch-wcantap:hover { filter: brightness(1.1); }
.pch-deco.pch-wcantap:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-deco.pch-droop svg { transform: scaleY(0.93) skewX(-4deg); transform-origin: 50% 100%; filter: saturate(0.7); transition: transform 1s, filter 1s; }

/* The washing in the basket (when it's full), clothes flying out of the washer, empty drum */
.pch-basketpile { position: absolute; pointer-events: none; }
.pch-basketpile i { position: absolute; display: block; }
.pch-basketpile i:nth-child(1) { left: 11%; top: 20%; width: 33%; height: 67%; background: #4a7bd0; }
.pch-basketpile i:nth-child(2) { left: 40%; top: 0; width: 33%; height: 87%; background: #fffdf4; }
.pch-basketpile i:nth-child(3) { left: 67%; top: 33%; width: 27%; height: 60%; background: #ff7ab0; }
.pch-flyclothes { position: absolute; width: 9px; height: 7px; z-index: 9; pointer-events: none; border: 1px solid #1b1715; transition: transform 0.75s cubic-bezier(.3, -0.3, .6, 1); }
.pch-washbtn.empty .pch-wdrum i { display: none; }

/* Curtains drawn: each side slides across to meet in the middle */
.pch-gwin .cl, .pch-gwin .cr { transition: width 0.45s ease, border-radius 0.45s ease; }
.pch-gwin.drawn .cl { width: 58%; border-radius: 0; }
.pch-gwin.drawn .cr { width: 58%; border-radius: 0; }
.pch-gwinbeam.drawn { opacity: 0.15; }
@media (prefers-reduced-motion: reduce) { .pch-gwin .cl, .pch-gwin .cr { transition: none; } }

/* a plant shooting up after a watering */
.pch-deco.pch-grow svg { animation: pch-grow 0.8s ease-out; transform-origin: 50% 100%; }
@keyframes pch-grow { 0% { transform: scaleY(0.88); } 60% { transform: scaleY(1.04); } 100% { transform: none; } }

/* The note on the freezer, read out */
.pch-postitpop { position: absolute; z-index: 12; width: 112px; padding: 9px 9px 10px; background: #ff7ab8; color: #2a0f1d; pointer-events: none;
  font: 700 13px/1.25 "Comic Sans MS", "Chalkboard SE", "Marker Felt", cursive; box-shadow: 3px 4px 0 rgba(27, 23, 21, 0.35);
  transform: rotate(-4deg) scale(0.6); opacity: 0; transform-origin: 0 0; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
.pch-postitpop span { display: block; margin-top: 6px; font-weight: 400; font-size: 12px; text-align: right; }
.pch-postitpop.show { transform: rotate(-4deg) scale(1); opacity: 1; }

/* Kitchen sink tap */
.pch-ktap { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; }
.pch-ktap:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-ktap i { position: absolute; display: block; }
.pch-ktap .pipe { left: calc(var(--u) * 1.6); top: 0; width: var(--u); height: calc(var(--u) * 3.6); background: #c9d2da; box-shadow: 0 0 0 2px #1b1715; }
.pch-ktap .spout { left: calc(var(--u) * 0.2); top: 0; width: calc(var(--u) * 2.4); height: calc(var(--u) * 0.9); background: #c9d2da; box-shadow: 0 0 0 2px #1b1715; }
.pch-ktap .water { left: calc(var(--u) * 0.35); top: calc(var(--u) * 0.9); width: calc(var(--u) * 0.6); height: calc(var(--u) * 2.7); background: linear-gradient(#bfe6ff, #7fd3ff);
  transform: scaleY(0); transform-origin: top; transition: transform .25s; }
.pch-ktap.on .water { transform: scaleY(1); animation: pch-stream .3s linear infinite; }
@keyframes pch-stream { 50% { opacity: .7; } }

/* Standing desk: the whole desk rises; extra leg sections fill the gap underneath */
.pch-deco.pch-sdesk { pointer-events: auto; cursor: pointer; transition: translate .7s ease-in-out; }
.pch-deco.pch-sdesk.up { translate: 0 calc(var(--rise) * -1); }
.pch-deco.pch-sdesk:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-sdesklegs { position: absolute; pointer-events: none; }
.pch-sdesklegs i { position: absolute; bottom: 0; width: var(--u); height: calc(var(--u) * 3); background: #1b1715; transition: height .7s ease-in-out; }
.pch-sdesklegs i:first-child { left: calc(var(--u) * 0.5); }
.pch-sdesklegs i:last-child { left: calc(var(--u) * 8.5); }
.pch-sdesklegs.up i { height: calc(var(--u) * 3 + var(--rise)); box-shadow: inset 0 calc(var(--u) * -3) 0 #1b1715, inset calc(var(--u) * 0.25) 0 0 #4a4f57; }
@media (prefers-reduced-motion: reduce) { .pch-deco.pch-sdesk, .pch-sdesklegs i { transition: none; } }

/* The box pile by the front door */
.pch-pilebox { position: absolute; pointer-events: none; transition: transform .7s cubic-bezier(.4, 0, .6, 1), top .7s ease-in; transform-origin: 50% 100%; }
.pch-pilebox svg { display: block; width: 100%; height: 100%; }
.pch-pilebox:nth-child(odd) { transform: rotate(-2deg); }
.pch-pilebox.wobble { animation: pch-rattle 0.12s steps(2) 4; }
/* fallen: each box ends up on its side on the floor, scattered */
.pch-pilebox.fallen { transform: translate(calc((var(--i) * 26px) - 10px), calc(var(--i) * var(--h))) rotate(calc(80deg + var(--i) * 25deg)); }
.pch-pilehit { position: absolute; z-index: 5; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; }
.pch-pilehit:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }

/* Catpops walking through a door: no fade, the door opens */
.pch-dad.pch-gone { visibility: hidden; }
.pch-dooropen { position: absolute; left: 11%; top: 6%; width: 78%; height: 94%; background: #1b1312; opacity: 0; transition: opacity .15s; pointer-events: none; }
.pch-dooropen i { position: absolute; left: -4%; top: 0; width: 26%; height: 100%; background: #c98a4a; border: 2px solid #1b1715; box-sizing: border-box; transform: skewY(-8deg); transform-origin: 0 0; }
.pch-dooropen.on { opacity: 1; }

/* Bathroom tap: running water when Lyle has turned it on */
.pch-btap { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; }
.pch-btap:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-btap i { position: absolute; display: none; }
.pch-btap .water { left: calc(var(--u) * 0.6); top: calc(var(--u) * 1.4); width: calc(var(--u) * 0.6); height: calc(var(--u) * 3.3); background: linear-gradient(#bfe6ff, #7fd3ff); animation: pch-stream .3s linear infinite; }
.pch-btap .splash { left: calc(var(--u) * -0.4); top: calc(var(--u) * 4); width: calc(var(--u) * 2.6); height: var(--u);
  background: radial-gradient(circle at 20% 60%, #bfe6ff 0 18%, transparent 20%), radial-gradient(circle at 80% 40%, #bfe6ff 0 16%, transparent 18%); animation: pch-splash .5s steps(2) infinite; }
.pch-btap.on .water, .pch-btap.on .splash { display: block; }
@keyframes pch-splash { 50% { transform: translateY(-2px) scaleX(1.2); } }
@media (prefers-reduced-motion: reduce) { .pch-btap .water, .pch-btap .splash { animation: none; } }

.pch-deco.pch-onwasher { animation: pch-washrun 0.28s steps(2) infinite; }
@media (prefers-reduced-motion: reduce) { .pch-deco.pch-onwasher { animation: none; } }

/* The laundry basket fills up, then overflows, the more washes pile up in it */
.pch-basketpile { overflow: visible; }
.pch-basketpile i { display: none; border: 1px solid rgba(27, 23, 21, .55); box-sizing: border-box; }
.pch-basketpile i:nth-child(-n+3) { display: block; }
.pch-basketpile i:nth-child(4) { left: 20%; top: -45%; width: 30%; height: 60%; background: #7ad64b; }
.pch-basketpile i:nth-child(5) { left: 52%; top: -55%; width: 30%; height: 65%; background: #ffd400; }
.pch-basketpile i:nth-child(6) { left: 35%; top: -105%; width: 34%; height: 60%; background: #9b6bd6; }
.pch-basketpile i:nth-child(7) { left: 90%; top: 40%; width: 22%; height: 90%; background: #ff7ab0; transform: rotate(25deg); }
.pch-basketpile i:nth-child(8) { left: -22%; top: 205%; width: 26%; height: 35%; background: #4a7bd0; transform: rotate(-10deg); }
.pch-basketpile.lv2 i:nth-child(4), .pch-basketpile.lv2 i:nth-child(5) { display: block; }
.pch-basketpile.lv3 i:nth-child(-n+7) { display: block; }
.pch-basketpile.lv4 i { display: block; }
.pch-basketpile.lv4 i:nth-child(6) { top: -150%; height: 90%; }

/* Recycling: boxes flattened, then slid out of the front door */
.pch-pilebox.flat { transform: translateY(calc(var(--i) * var(--h))) scaleY(0.18) !important; }
.pch-pilebox.out { transform: translate(-70px, calc(var(--i) * var(--h))) scaleY(0.18) !important; opacity: 0; transition: transform 1.1s ease-in, opacity 1.1s ease-in; }

/* Teddy-bear cat on the bed, and its hearts */
.pch-teddy { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; transform-origin: 50% 100%; }
.pch-teddy svg { display: block; width: 100%; height: 100%; }
.pch-teddy:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-teddy.squish { animation: pch-squish 0.45s ease-out; }
@keyframes pch-squish { 30% { transform: scale(1.15, 0.8); } 60% { transform: scale(0.92, 1.1); } }
.pch-heart { position: absolute; z-index: 12; pointer-events: none; font-size: 15px; line-height: 1; transform: translate(-50%, 0); opacity: 0; animation: pch-heart 1.7s ease-out forwards; }
@keyframes pch-heart { 0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -60px) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .pch-teddy.squish { animation: none; } .pch-heart { animation-duration: 1.2s; } }

/* The cat wheel is see-through: just the rim, the track and the spokes, with the wall
   showing through behind */
.pch-wheel .spin > circle:first-child { fill-opacity: 0.12; }

/* Facing left with the watering can: it moves to the front hand, over the plant */
.pch-dad.pch-facel .pch-wcan { right: auto; left: -26%; transform: scaleX(-1); transform-origin: 80% 60%; }
.pch-dad.pch-facel.pch-pouring .pch-wcan { transform: scaleX(-1) rotate(32deg); }

/* "One job at a time" note when Catpops is already busy */
.pch-busynote { position: absolute; z-index: 30; max-width: 190px; transform: translate(-50%, -100%); padding: 6px 9px; background: #fffdf5; color: #1b1715; border: 2px solid #1b1715; border-radius: 8px; box-shadow: 2px 2px 0 #1b1715; font: 600 12px/1.3 system-ui, sans-serif; text-align: center; pointer-events: none; }
.pch-busynote.show { animation: pch-busypop 0.25s ease-out; }
@keyframes pch-busypop { from { opacity: 0; transform: translate(-50%, -85%); } }

/* Home gym: dark with the light off, bright and warm with it on; cats in the dark are just eyes */
.pch-gymdark { position: absolute; z-index: 4; pointer-events: none; background: rgba(12, 10, 24, 0.82); transition: background 0.35s ease; }
.pch-gymdark.lit { background: radial-gradient(ellipse 55% 95% at 49% 0%, rgba(255, 238, 170, 0.32), rgba(255, 230, 160, 0.08) 70%, transparent); mix-blend-mode: screen; }
.pch-cat.pch-indark .pch-sprite > svg { filter: brightness(0.07); transition: filter 0.35s ease; }
.pch-gloweyes { position: absolute; inset: 0; pointer-events: none; }
.pch-gloweyes[hidden] { display: none; }
.pch-gloweyes i { position: absolute; background: #e4ff6a; border-radius: 1px; box-shadow: 0 0 4px 2px rgba(214, 255, 90, 0.75); animation: pch-glowblink 4.5s infinite; }
@keyframes pch-glowblink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@media (prefers-reduced-motion: reduce) { .pch-gloweyes i { animation: none; } }

/* The robot vacuum drives in front of the kitchen's doors (oven, fridge, freezer, cupboards),
   not behind them */
.pch-vac { z-index: 5 !important; }

/* The poster's title sits under the gym's darkness like the rest of the poster */
.pch-fittitle { z-index: 3 !important; }

/* Handheld vacuum and the tufts of cat fur it's for */
.pch-handvac { position: absolute; left: -30%; top: 50%; width: 36%; height: 20%; pointer-events: none; z-index: 2; }
.pch-handvac svg { display: block; width: 100%; height: 100%; transform: scaleX(-1); }
.pch-dad.pch-zapping .pch-handvac { animation: pch-zap 0.12s linear infinite alternate; }
@keyframes pch-zap { from { transform: translate(0, 0) rotate(-6deg); } to { transform: translate(-2px, 1px) rotate(-10deg); } }
.pch-furtuft { position: absolute; z-index: 4; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; transform: translate(-50%, -70%); }
.pch-furtuft i { position: absolute; bottom: 0; width: 30%; height: 70%; border-radius: 50% 50% 40% 40%; background: #f4efe6; box-shadow: inset -1px -1px 0 #b9ad9c, 0 0 0 1px rgba(27, 23, 21, 0.55); }
.pch-furtuft i:nth-child(1) { left: 0; height: 55%; background: #9aa0a6; }
.pch-furtuft i:nth-child(2) { left: 32%; height: 80%; background: #1b1715; box-shadow: inset -1px -1px 0 #4a4444; }
.pch-furtuft i:nth-child(3) { left: 66%; height: 60%; }
.pch-furtuft:hover i { filter: brightness(1.1); }
.pch-furtuft:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
.pch-furtuft.going i { animation: pch-suck 2.4s ease-in forwards; }
@keyframes pch-suck { to { transform: translate(14px, -4px) scale(0.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pch-dad.pch-zapping .pch-handvac, .pch-furtuft.going i { animation: none; } }

/* Catpops on the exercise bike: up on the saddle, bobbing as he pedals */
.pch-dad.pch-riding .pch-inner { transform: translateY(-38%); animation: pch-pedal 0.32s ease-in-out infinite alternate; }
@keyframes pch-pedal { from { transform: translateY(-38%); } to { transform: translateY(-36%) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .pch-dad.pch-riding .pch-inner { animation: none; } }
/* Cats doing yoga on the mat: downward cat, a long stretch, a little cat-cow */
.pch-cat.pch-stretching .pch-sprite > svg { transform-origin: 50% 100%; animation: pch-yoga 4.2s ease-in-out infinite; }
@keyframes pch-yoga {
  0%, 100% { transform: none; }
  20%, 35% { transform: scale(1.18, 0.78) skewX(-8deg); }
  55%, 68% { transform: scale(1.28, 0.7); }
  82% { transform: scale(0.96, 1.06) skewX(5deg); }
}
@media (prefers-reduced-motion: reduce) { .pch-cat.pch-stretching .pch-sprite > svg { animation: none; transform: scale(1.2, 0.76); } }

/* Rubber duck squeeze */
.pch-duck.pch-quack { animation: pch-quack 0.4s ease-out; }
@keyframes pch-quack { 30% { transform: scale(1.2, 0.8); } 60% { transform: scale(0.9, 1.12) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .pch-duck.pch-quack { animation: none; } }
/* Home gym window: a blind that rolls down over the glass (down by default) */
.pch-gymwin { cursor: pointer; }
.pch-gymwin.night svg rect[fill="#bfe6ff"], .pch-gymwin.night svg rect[fill="#d8f0ff"] { fill: #1c2747; }
.pch-gymblind { position: absolute; left: 8.3%; right: 8.3%; top: 7.7%; height: 69.2%; pointer-events: none; overflow: hidden; transition: height 0.6s ease; }
.pch-gymblind::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, #e8dfcc 0 3px, #d3c8b2 3px 4px); border-bottom: 2px solid #1b1715; box-sizing: border-box; }
.pch-gymblind i { position: absolute; left: 46%; bottom: -1px; width: 8%; height: 4px; background: #1b1715; border-radius: 0 0 2px 2px; }
.pch-gymwin.open .pch-gymblind { height: 12%; }
/* Home gym wall lamp: glows when on */
.pch-gymlamp { cursor: pointer; }
.pch-gymlamp svg rect[fill="#ffd400"], .pch-gymlamp svg rect[fill="#fff3b0"] { fill: #8a7a3a; }
.pch-gymlamp.on svg rect[fill="#ffd400"] { fill: #ffd400; }
.pch-gymlamp.on svg rect[fill="#fff3b0"] { fill: #fff3b0; }
.pch-gymlamp.on { filter: drop-shadow(0 0 6px rgba(255, 220, 120, 0.9)); }
.pch-gymwin:focus-visible, .pch-gymlamp:focus-visible { outline: 2px solid #FF007A; outline-offset: 2px; }
/* Daylight through the window: dimmer than with a light on, but no longer dark */
.pch-gymdark.daylit { background: linear-gradient(100deg, rgba(255, 250, 220, 0.18), rgba(30, 30, 45, 0.28) 70%); }
/* Purrcival's existential crisis: flat on his back, paws up, big amber eyes wide open */
.pch-cat.pch-void .pch-sprite { transform: rotate(180deg) !important; transition: transform 0.35s ease; }
.pch-cat.pch-void .pch-gloweyes i { background: #f2b632; box-shadow: 0 0 0 1px #1b1715; transform: scale(1.5); animation: none; border-radius: 50%; }

/* Catpops running it off inside the cat wheel */
.pch-dad.pch-dadwheel .pch-inner { transform: translateY(var(--wl, -14px)); }
.pch-wheel.dadrun .spin { animation-play-state: running; animation-duration: 0.45s; }

/* Catpops on the sofa with a book */
.pch-dad.pch-onsofa .pch-inner { transform: translateY(var(--sl, -10px)); }
.pch-dadbook { position: absolute; left: 50%; top: 42%; width: 34%; height: 20%; pointer-events: none; z-index: 2; }
.pch-dadbook svg { display: block; width: 100%; height: 100%; }
.pch-dad:not(.pch-onsofa) .pch-dadbook { top: 48%; left: 58%; width: 26%; }

/* The easel's painting goes dark with the rest of the art studio at night */
.pch-easelcv { z-index: 3 !important; }

/* Phones: smaller room labels on one line (they were wrapping and overlapping in the narrow
   rooms) and a more compact patience meter that doesn't cover the art studio */
@media (max-width: 600px) {
  .pch-label { font-size: 7.5px !important; letter-spacing: 0.06em !important; padding: 1px 4px !important; white-space: nowrap !important; max-width: calc(100% - 10px); overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
  .pch-pat { transform: scale(0.72); transform-origin: top right; }
}
@media (max-width: 400px) {
  .pch-label { font-size: 6.5px !important; letter-spacing: 0.02em !important; }
  .pch-pat { transform: scale(0.62); }
}

/* Phones held upright: show the "turn sideways" card instead of the house */
.pch-rotate { display: none; }
@media (orientation: portrait) and (max-width: 760px) and (pointer: coarse) {
  .pch-wrap > :not(.pch-rotate) { display: none !important; }
  .pch-rotate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 70vh; min-height: 70svh; margin: 12px; padding: 32px 24px; text-align: center; background: #fff8ec; border: 3px solid #1b1715; border-radius: 18px; box-shadow: 4px 4px 0 #1b1715; color: #1b1715; font-family: inherit; }
  .pch-rotate b { font-size: 20px; }
  .pch-rotate span { font-size: 15px; max-width: 280px; line-height: 1.4; }
  .pch-rotate-phone { position: relative; width: 46px; height: 80px; border: 4px solid #1b1715; border-radius: 9px; background: #bfe6ff; animation: pch-turn 2.4s ease-in-out infinite; }
  .pch-rotate-phone i { position: absolute; left: 50%; bottom: 4px; width: 10px; height: 4px; margin-left: -5px; border-radius: 2px; background: #1b1715; }
  .pch-rotate-go { margin-top: 6px; padding: 10px 20px; border: 3px solid #1b1715; border-radius: 999px; background: #FF007A; color: #fff; font-weight: 700; font-size: 15px; box-shadow: 3px 3px 0 #1b1715; cursor: pointer; }
}
@keyframes pch-turn { 0%, 25% { transform: rotate(0); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .pch-rotate-phone { animation: none; transform: rotate(-90deg); } }
/* Phones on their side: the game takes over the whole screen (the house fills it edge to
   edge; the clock, log and score sit just below, a short swipe away) */
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  html.fgh-phonegame, html.fgh-phonegame body { overflow: hidden !important; }
  .pch-wrap { position: fixed !important; inset: 0 !important; z-index: 100000 !important; margin: 0 !important; padding: 0 !important; max-width: none !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; overflow-y: auto !important; overscroll-behavior: contain; background: #fff8ec; -webkit-overflow-scrolling: touch; }
  .pch { width: 100% !important; max-width: none !important; height: 100vh !important; height: 100dvh !important; min-height: 0 !important; margin: 0 !important; border-radius: 0 !important; }
  .pch-pat { transform: scale(0.68); transform-origin: top right; }
}
/* Full screen (from the button) */
.pch-wrap:fullscreen { background: #fff8ec; overflow: auto; }
.pch-wrap:fullscreen .pch { height: 100vh !important; }

/* Version number in the bottom-right corner of the house */
.pch-ver { position: absolute; right: 6px; bottom: 3px; z-index: 9; pointer-events: none; padding: 1px 6px; border-radius: 6px; background: rgba(255, 248, 236, 0.75); color: #1b1715; font: 600 10px/1.4 system-ui, sans-serif; letter-spacing: 0.04em; opacity: 0.7; }

/* Reset button: arms on the first tap, turns pink to confirm */
.pch-btn.pch-resetbtn.armed { background: #FF007A; color: #fff; border-color: #1b1715; }

/* Stairs layer, cat buttons, sprites, names, speech bubbles */
.pch-stairs {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.pch button.pch-cat {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  cursor: pointer;
  line-height: 0;
  will-change: transform;
}
.pch button.pch-cat:focus-visible {
  outline: 3px dashed #ff007a;
  outline-offset: 4px;
}
.pch-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.pch-sprite {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-sprite svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-hop .pch-inner {
  animation: pch-hop 0.35s ease-out;
}
@keyframes pch-hop {
  0%,
  100% {
    transform: none;
  }
  45% {
    transform: translateY(-12px);
  }
}
.pch-name {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 3px;
  display: none;
  white-space: nowrap;
  background: #fffde4;
  color: #1b1715;
  border: 2px solid #1b1715;
  border-radius: 999px;
  padding: 2px 7px;
  font:
    800 11px/1.2 system-ui,
    -apple-system,
    sans-serif;
}
.pch-names .pch-name {
  display: block;
}
.pch-bubble {
  position: absolute;
  z-index: 6;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 180px;
  text-align: center;
  padding: 5px 10px;
  background: #fffde4;
  color: #1b1715;
  border: 3px solid #1b1715;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #1b1715;
  font:
    600 13px/1.25 system-ui,
    -apple-system,
    sans-serif;
}
.pch-bubble strong {
  display: block;
  font-weight: 900;
  color: #ff007a;
}
.pch-names .pch-bubble {
  bottom: calc(100% + 28px);
}
.pch-bubble[hidden] {
  display: none;
}
/* A cat (or Catpops) that is talking comes to the front, so its speech bubble is never
   hidden behind the shower glass or other overlays. Catpops stays behind the glass while
   showering (his bubble sits above the glass anyway). */
.pch button.pch-cat:has(> .pch-inner > .pch-bubble:not([hidden])) {
  z-index: 7;
}
.pch button.pch-cat.pch-dad.pch-inshower {
  z-index: 5 !important;
}

/* ---- v1.7.1 tweaks ---- */
/* Mirrored furniture (the second dining chair faces the table) */
.pch-deco.pch-flipx svg {
  transform: scaleX(-1);
}
/* Doorbell sits flat on the front door like a brass knocker */
.pch button.pch-bell {
  z-index: 3;
  border-width: 2px !important;
  box-shadow: inset 0 0 0 2px #c79a00 !important;
}
/* Compact top bar */
.pch-bar {
  gap: 6px !important;
  padding: 8px 12px 4px !important;
}
.pch-bar .pch-btn {
  font:
    700 12.5px/1 system-ui,
    -apple-system,
    sans-serif !important;
  padding: 6px 11px !important;
  border-width: 2px !important;
  box-shadow: 2px 2px 0 #1b1715 !important;
}
.pch-bar .pch-btn:hover {
  background: #cdff00 !important;
  box-shadow: 3px 3px 0 #1b1715 !important;
}
.pch-bar .pch-toggle {
  font-size: 12.5px !important;
  gap: 7px;
  padding: 5px 10px;
  border-width: 2px;
  box-shadow: 2px 2px 0 #1b1715;
}
.pch-bar .pch-sw {
  width: 30px;
  height: 18px;
  border-width: 2px;
}
.pch-bar .pch-sw::after {
  width: 10px;
  height: 10px;
}
.pch-bar .pch-toggle input:checked + .pch-sw::after {
  left: 14px;
}
.pch-bar .pch-clock {
  font-size: 12px;
  padding: 6px 10px;
}
/* "The house is clickable" hint */
.pch-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  margin: 2px auto 10px;
  padding: 0 12px;
  font:
    600 13px/1.4 system-ui,
    -apple-system,
    sans-serif;
  color: #1b1715;
  text-align: center;
}
.pch-hint b {
  background: #ff007a;
  color: #fffde4;
  padding: 1px 7px;
  border-radius: 4px;
}
.pch-hint button.pch-hintbtn {
  font:
    700 12px/1 system-ui,
    -apple-system,
    sans-serif !important;
  padding: 4px 9px !important;
  margin: 0 !important;
  min-height: 0 !important;
  border: 2px dashed #1b1715 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #1b1715 !important;
  box-shadow: none !important;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.pch-hint button.pch-hintbtn:hover {
  background: #cdff00 !important;
  border-style: solid !important;
}
/* Hotspots: dashed outline on hover, and all of them flash when "Show me" is pressed */
.pch button.pch-firebtn:hover,
.pch button.pch-tvbtn:hover,
.pch button.pch-doorbtn:hover,
.pch button.pch-groombtn:hover {
  outline: 2px dashed #ff007a !important;
  outline-offset: 2px;
}
.pch.pch-hints button.pch-firebtn,
.pch.pch-hints button.pch-tvbtn,
.pch.pch-hints button.pch-doorbtn,
.pch.pch-hints button.pch-groombtn,
.pch.pch-hints button.pch-bell,
.pch.pch-hints .pch-stick,
.pch.pch-hints .pch-cat,
.pch.pch-hints .pch-dad {
  outline: 3px dashed #ff007a !important;
  outline-offset: 3px;
  animation: pch-hintpulse 0.6s steps(2) infinite;
}
@keyframes pch-hintpulse {
  50% {
    outline-color: #cdff00;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch.pch-hints * {
    animation: none !important;
  }
}
/* TV channels: little channel number when you switch */
.pch-tvshow::after {
  content: attr(data-ch);
  position: absolute;
  right: 3px;
  top: 2px;
  font: 800 8px/1 system-ui, sans-serif;
  color: #cdff00;
  text-shadow: 1px 1px 0 #1b1715;
  animation: pch-chfade 2s forwards;
}
@keyframes pch-chfade {
  70% { opacity: 1; }
  100% { opacity: 0; }
}
/* CH 2: Space Kitty - a rocket zooms past a ringed planet */
.pch-tvshow.pch-ch2 {
  background:
    radial-gradient(circle, #fffde4 0 1px, transparent 1.5px) 0 0 / 11px 9px,
    radial-gradient(circle, #fffde4 0 1px, transparent 1.5px) 5px 4px / 13px 11px,
    #1d1846;
}
.pch-tvshow.pch-ch2 i {
  top: 30%;
  width: 22%;
  height: 22%;
  background: #ff007a;
  border-radius: 2px 60% 60% 2px;
  box-shadow: -5px 0 0 -1px #ffd400;
  animation: pch-rocket 3s linear infinite;
}
.pch-tvshow.pch-ch2 i + i {
  top: 52%;
  left: 62%;
  width: 22%;
  height: 34%;
  background: #cdff00;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #1d1846, 0 0 0 3px #fffde4;
  animation: none;
}
@keyframes pch-rocket {
  0% { left: -25%; transform: translateY(0); }
  50% { transform: translateY(40%); }
  100% { left: 110%; transform: translateY(0); }
}
/* CH 3: Midnight Creature Feature - a bat flaps across the full moon over a spooky hill */
.pch-tvshow.pch-ch3 {
  background:
    radial-gradient(ellipse at 30% 120%, #1b1715 0 45%, transparent 46%),
    linear-gradient(#2a1840, #6b2f6b);
}
.pch-tvshow.pch-ch3 i {
  top: 10%;
  left: 60%;
  width: 26%;
  height: 46%;
  background: #fffde4;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 6px #fffde4;
  animation: none;
}
.pch-tvshow.pch-ch3 i + i {
  top: 30%;
  width: 18%;
  height: 12%;
  background: #1b1715;
  border: 0;
  border-radius: 50% 50% 0 0;
  box-shadow: none;
  animation: pch-bat 4s linear infinite, pch-batflap 0.3s steps(2) infinite;
}
@keyframes pch-bat {
  0% { left: -20%; top: 40%; }
  50% { top: 18%; }
  100% { left: 110%; top: 35%; }
}
@keyframes pch-batflap {
  50% { border-radius: 0 0 50% 50%; }
}

/* Overlap fix: newer speech bubbles float above older ones */
.pch-bubble {
  translate: var(--bub-dx, 0px) var(--bub-dy, 0px);
}

/* Secret stash behind the library bookshelf, opened by turning St. Lyle */
.pch-deco.pch-stlyle {
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pch-deco.pch-stlyle:hover,
.pch-deco.pch-stlyle:focus-visible {
  outline: 2px dashed #ff007a;
  outline-offset: 3px;
}
.pch.pch-hints .pch-deco.pch-stlyle {
  outline: 3px dashed #ff007a !important;
  outline-offset: 3px;
  animation: pch-hintpulse 0.6s steps(2) infinite;
}
/* The portrait tips about 25 degrees, then settles back straight */
.pch-deco.pch-stlyle.pch-tilt {
  animation: pch-tilt 1.3s ease-in-out;
}
@keyframes pch-tilt {
  0% { transform: rotate(0); }
  25% { transform: rotate(25deg); }
  55% { transform: rotate(25deg); }
  80% { transform: rotate(-3deg); }
  100% { transform: rotate(0); }
}
/* The real bookshelf is swapped for two half-doors that split down the middle and slide
   flat apart, left and right */
.pch-deco.pch-secretshelf {
  visibility: hidden;
}
.pch-deco.pch-shelfdoors {
  pointer-events: none;
}
.pch-shelfdoors > span {
  position: absolute;
  inset: 0;
  transition: transform 0.7s ease-in-out 0.35s;
}
.pch-shelfdoors > span svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-shelfdoors > .pch-door-l {
  clip-path: inset(0 50% 0 0);
}
.pch-shelfdoors > .pch-door-r {
  clip-path: inset(0 0 0 50%);
}
.pch.pch-stash-open .pch-shelfdoors > .pch-door-l {
  transform: translateX(-50%);
}
.pch.pch-stash-open .pch-shelfdoors > .pch-door-r {
  transform: translateX(50%);
}
.pch-deco.pch-stash {
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 1.05s;
}
.pch.pch-stash-open .pch-deco.pch-stash {
  visibility: visible;
  transition: none;
  filter: drop-shadow(0 0 6px rgba(255, 214, 0, 0.7));
}
@media (prefers-reduced-motion: reduce) {
  .pch-deco.pch-stlyle.pch-tilt,
  .pch-shelfdoors > span {
    animation: none;
    transition: none;
  }
}

/* Gym: Catpops lifts shirtless, showing off his six-pack */
.pch-dad.pch-lifting svg rect[fill="#4a7bd0"] {
  fill: #f1c27d;
}
.pch-dad.pch-lifting .pch-sprite {
  position: relative;
}
.pch-dad.pch-lifting .pch-sprite::after {
  content: "";
  position: absolute;
  left: 29%;
  top: 49%;
  width: 34%;
  height: 19%;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 44%, #b9814a 44% 56%, transparent 56%),
    linear-gradient(transparent 0 30%, #b9814a 30% 40%, transparent 40% 63%, #b9814a 63% 73%, transparent 73%),
    linear-gradient(transparent 0 0);
}
/* Feeding the fish: flakes drift down and the fish rush up to the surface */
.pch-deco.pch-tank {
  pointer-events: auto;
  cursor: pointer;
}
.pch-deco.pch-tank:hover,
.pch-deco.pch-tank:focus-visible {
  outline: 2px dashed #ff007a;
  outline-offset: 2px;
}
.pch.pch-hints .pch-deco.pch-tank {
  outline: 3px dashed #ff007a !important;
  outline-offset: 3px;
  animation: pch-hintpulse 0.6s steps(2) infinite;
}
.pch-tank .pch-swim0,
.pch-tank .pch-swim1 {
  transition: top 0.6s ease-out;
}
.pch-tank.pch-feeding .pch-swim0 {
  top: 6px;
  animation-duration: 1.6s;
}
.pch-tank.pch-feeding .pch-swim1 {
  top: 12px;
  animation-duration: 2s;
}
.pch-tank .pch-flake {
  position: absolute;
  top: 8%;
  width: 3px;
  height: 3px;
  pointer-events: none;
  animation: pch-flake 4.5s linear forwards;
}
@keyframes pch-flake {
  0% { top: 8%; opacity: 1; }
  40% { transform: translateX(3px); }
  80% { transform: translateX(-2px); opacity: 1; }
  100% { top: 62%; opacity: 0; }
}

/* Tap feedback burst */
.pch-burst {
  position: absolute;
  z-index: 9;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pch-burst::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border: 3px solid #ff007a;
  border-radius: 50%;
  box-sizing: border-box;
  animation: pch-ring-out 0.5s ease-out forwards;
}
.pch-burst i {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  background: #cdff00;
  border: 2px solid #1b1715;
  box-sizing: border-box;
  animation: pch-spark 0.55s ease-out forwards;
}
.pch-burst i:nth-child(2n) {
  background: #ff007a;
}
.pch-burst i:nth-child(1) { --sx: 0px; --sy: -26px; }
.pch-burst i:nth-child(2) { --sx: 22px; --sy: -13px; }
.pch-burst i:nth-child(3) { --sx: 22px; --sy: 13px; }
.pch-burst i:nth-child(4) { --sx: 0px; --sy: 26px; }
.pch-burst i:nth-child(5) { --sx: -22px; --sy: 13px; }
.pch-burst i:nth-child(6) { --sx: -22px; --sy: -13px; }
@keyframes pch-ring-out {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
@keyframes pch-spark {
  to {
    transform: translate(var(--sx), var(--sy));
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-burst i {
    display: none;
  }
}

/* ---- Idle life: every room has something going on ---- */
.pch-deco.pch-idle::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
/* Home gym + grooming shelf: dumbbells / bottles rattle now and then */
.pch-deco.pch-idle-rattle {
  transform-origin: 50% 100%;
  animation: pch-rattle 11s linear infinite;
}
@keyframes pch-rattle {
  0%, 90%, 100% { rotate: 0deg; }
  92% { rotate: -1.5deg; }
  94% { rotate: 1.5deg; }
  96% { rotate: -1deg; }
  98% { rotate: 0.5deg; }
}
/* Music room: notes float up from the record player */
.pch-deco.pch-idle-notes::after {
  content: "\266A";
  left: 55%;
  top: -10%;
  font: 900 15px/1 system-ui, sans-serif;
  color: #ff007a;
  text-shadow: 1px 1px 0 #1b1715;
  opacity: 0;
  animation: pch-recnote 5s ease-out infinite;
}
@keyframes pch-recnote {
  0%, 55% { opacity: 0; transform: translate(0, 0); }
  62% { opacity: 1; }
  100% { opacity: 0; transform: translate(10px, -34px) rotate(15deg); }
}
/* Art studio: the plant sways */
.pch-deco.pch-idle-sway {
  transform-origin: 50% 100%;
  animation: pch-sway 5s ease-in-out infinite;
}
@keyframes pch-sway {
  0%, 100% { rotate: -2deg; }
  50% { rotate: 2deg; }
}
/* Bedroom + games room lamps: the odd flicker */
.pch-deco.pch-idle-lamp {
  animation: pch-lampflick 13s steps(1) infinite;
}
@keyframes pch-lampflick {
  0%, 93%, 95%, 97%, 100% { filter: none; }
  94%, 96% { filter: brightness(0.75); }
}
/* Bathroom: the shower drips */
.pch-deco.pch-idle-drip::after {
  left: 29%;
  top: 20%;
  width: 8.4%;
  height: 3.4%;
  background: #7ad0ff;
  outline: 1px solid #1b1715;
  opacity: 0;
  animation: pch-showerdrip 3.6s ease-in infinite;
}
@keyframes pch-showerdrip {
  0%, 60% { opacity: 0; top: 20%; }
  64% { opacity: 1; top: 20%; }
  92% { opacity: 1; top: 87%; }
  93%, 100% { opacity: 0; top: 87%; }
}
/* Bathroom mirror: a glint sweeps across */
.pch-deco.pch-idle-glint {
  overflow: hidden;
}
.pch-deco.pch-idle-glint::after {
  top: 10%;
  bottom: 10%;
  width: 18%;
  left: -30%;
  background: rgba(255, 255, 255, 0.75);
  transform: skewX(-20deg);
  animation: pch-glint 7s ease-in-out infinite;
}
@keyframes pch-glint {
  0%, 80% { left: -30%; }
  95%, 100% { left: 115%; }
}
/* Living room: embers float up while the fire's lit, and it only flickers when lit */
.pch.pch-fireout .pch-deco.pch-flick {
  animation: none;
}
.pch:not(.pch-fireout) .pch-deco.pch-idle-embers::after {
  left: 48%;
  top: 55%;
  width: 5%;
  height: 6%;
  background: #ffd400;
  box-shadow: 8px 6px 0 #ff9a3c, -7px 10px 0 #ff007a;
  animation: pch-ember 2.4s ease-out infinite;
}
@keyframes pch-ember {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-26px); }
}
/* Library: the bookshelf gives a little jolt (is something behind it?) */
.pch-deco.pch-idle-jolt {
  animation: pch-jolt 17s linear infinite;
}
@keyframes pch-jolt {
  0%, 94%, 100% { translate: 0 0; }
  95% { translate: 1px -1px; }
  96% { translate: -1px 0; }
  97% { translate: 1px 0; }
}
/* Games room: the TV flicks between pictures whenever it's on */
.pch-deco.pch-idle-tvpics {
  animation: none;
}
.pch:not(.pch-tvoff) .pch-deco.pch-idle-tvpics::after {
  left: 6.25%;
  top: 8.4%;
  width: 87.5%;
  height: 66.7%;
  animation: pch-tvpics 12s steps(1) infinite;
}
@keyframes pch-tvpics {
  0% {
    background: linear-gradient(90deg, #ff007a 0 20%, #ffd400 20% 40%, #cdff00 40% 60%, #7ad0ff 60% 80%, #b9a6ff 80%);
  }
  25% {
    background: radial-gradient(circle at 75% 30%, #ffd400 0 12%, transparent 13%), radial-gradient(ellipse at 30% 115%, #7ad64b 0 55%, transparent 56%), #bfe6ff;
  }
  50% {
    background: repeating-linear-gradient(#d8d8d8 0 2px, #6a6a6a 2px 3px, #f4f4f4 3px 5px);
  }
  52% {
    background: repeating-linear-gradient(#6a6a6a 0 1px, #f4f4f4 1px 3px, #b8b8b8 3px 5px);
  }
  54% {
    background: linear-gradient(transparent 70%, #8a5a34 70%), radial-gradient(circle at 50% 42%, #f1c27d 0 13%, transparent 14%), radial-gradient(ellipse at 50% 80%, #ff007a 0 22%, transparent 23%), #2a4a8a;
  }
  78% {
    background: radial-gradient(circle at 30% 50%, #ff9a3c 0 12%, transparent 13%), radial-gradient(circle at 70% 40%, #ffd400 0 9%, transparent 10%), #1d6fa5;
  }
}
/* Kitchen: the fridge hums, the oven light pulses, the coffee steams */
.pch-deco.pch-idle-hum {
  animation: pch-hum 9s linear infinite;
}
@keyframes pch-hum {
  0%, 88%, 100% { translate: 0 0; }
  89%, 91%, 93%, 95% { translate: 0.6px 0; }
  90%, 92%, 94%, 96% { translate: -0.6px 0; }
}
.pch-deco.pch-idle-oven {
  animation: pch-oven 4s ease-in-out infinite;
}
@keyframes pch-oven {
  50% { filter: brightness(1.12) saturate(1.2); }
}
.pch-deco.pch-idle-steam::after {
  left: 40%;
  top: -12%;
  width: 14%;
  height: 14%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 4px -6px 0 rgba(255, 255, 255, 0.6);
  animation: pch-steam 2.8s ease-out infinite;
}
@keyframes pch-steam {
  0% { opacity: 0; transform: translate(0, 0); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(4px, -18px); }
}
/* Playroom: the wheel wobbles on its stand, the yarn ball rolls a little */
.pch-deco.pch-idle-wobble {
  transform-origin: 50% 100%;
  animation: pch-wobble 8s ease-in-out infinite;
}
@keyframes pch-wobble {
  0%, 84%, 100% { rotate: 0deg; }
  87% { rotate: 2.5deg; }
  90% { rotate: -2deg; }
  93% { rotate: 1deg; }
  96% { rotate: -0.5deg; }
}
.pch-deco.pch-idle-roll {
  animation: pch-roll 10s ease-in-out infinite;
}
@keyframes pch-roll {
  0%, 70%, 100% { translate: 0 0; rotate: 0deg; }
  80% { translate: 6px 0; rotate: 90deg; }
  90% { translate: 2px 0; rotate: 30deg; }
}
/* Random start offsets so nothing moves in sync */
.pch-deco.pch-idle,
.pch-deco.pch-idle::after {
  animation-delay: var(--idle-d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .pch-deco.pch-idle,
  .pch-deco.pch-idle::after {
    animation: none !important;
  }
}

/* Fit the whole house on one screen: full width, with the height capped by the window
   height so every room is visible without scrolling */
.pch {
  width: 100%;
  height: max(720px, min(72vw, calc(100vh - 70px)));
  height: max(720px, min(72vw, calc(100svh - 70px)));
  margin-left: auto;
  margin-right: auto;
}
.pch-bar {
  padding-top: 12px !important;
}
/* Room labels: bigger and easier to read */
.pch .pch-label {
  font-size: 12.5px !important;
  color: rgba(27, 23, 21, 0.8) !important;
  background: rgba(255, 253, 228, 0.85);
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 3;
}
/* Thinner pink site frame on this page */
body.page-id-7213[data-frame] {
  --theme-frame-size: 5px !important;
}

/* Fridge: a hotspot; open = lit, stocked inside, door swung out */
.pch-deco.pch-fridgedeco {
  pointer-events: auto;
  cursor: pointer;
}
.pch-deco.pch-fridgedeco:hover,
.pch-deco.pch-fridgedeco:focus-visible {
  outline: 2px dashed #ff007a;
  outline-offset: 2px;
}
.pch.pch-hints .pch-deco.pch-fridgedeco {
  outline: 3px dashed #ff007a !important;
  outline-offset: 3px;
  animation: pch-hintpulse 0.6s steps(2) infinite;
}
.pch-fridgein {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}
.pch-fridgein svg {
  overflow: visible;
}
.pch-deco.pch-fridge-open {
  z-index: 3;
}
.pch-deco.pch-fridge-open .pch-fridgein {
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 236, 140, 0.95));
}
/* Photos: a much bigger, unmistakable camera flash with light rays */
.pch .pch-flash {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  z-index: 8;
  background:
    radial-gradient(circle, #fff 0 18%, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 210, 0) 62%),
    conic-gradient(from 0deg, transparent 0 20deg, rgba(255, 255, 255, 0.9) 20deg 25deg, transparent 25deg 65deg, rgba(255, 255, 255, 0.9) 65deg 70deg, transparent 70deg 110deg, rgba(255, 255, 255, 0.9) 110deg 115deg, transparent 115deg 155deg, rgba(255, 255, 255, 0.9) 155deg 160deg, transparent 160deg 200deg, rgba(255, 255, 255, 0.9) 200deg 205deg, transparent 205deg 245deg, rgba(255, 255, 255, 0.9) 245deg 250deg, transparent 250deg 290deg, rgba(255, 255, 255, 0.9) 290deg 295deg, transparent 295deg 335deg, rgba(255, 255, 255, 0.9) 335deg 340deg, transparent 340deg);
  -webkit-mask: radial-gradient(circle, #000 0 55%, transparent 70%);
  mask: radial-gradient(circle, #000 0 55%, transparent 70%);
  filter: drop-shadow(0 0 4px #fff);
  animation: pch-flash 0.5s ease-out forwards;
}
/* ...and his phone screen lights up while he's taking pictures */
.pch .pch-dadmug.phone {
  box-shadow: inset 0 0 0 2px #1b1715, inset 0 0 0 4px #9fdcff;
}

/* Catpops' Patience HUD (top-right corner of the house) */
.pch-pat {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 8;
  width: 196px;
  padding: 8px 10px 9px;
  background: #fffde4;
  border: 3px solid #1b1715;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #1b1715;
  font: 600 12px/1.25 system-ui, -apple-system, sans-serif;
  color: #1b1715;
  pointer-events: none;
}
.pch-pat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.pch-pat-head span {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pch-pat-num {
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.pch-pat-bar {
  height: 10px;
  margin: 4px 0 5px;
  border: 2px solid #1b1715;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.pch-pat-bar i {
  display: block;
  height: 100%;
  background: #cdff00;
  transition: width 0.4s, background 0.4s;
}
.pch-pat.mid .pch-pat-bar i {
  background: #ffd400;
}
.pch-pat.low .pch-pat-bar i {
  background: #ff007a;
}
.pch-pat.low .pch-pat-num {
  color: #ff007a;
}
.pch-pat-mood {
  font-style: italic;
}
.pch-pat-chip {
  display: none;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
  width: max-content;
  max-width: 100%;
}
.pch-pat-chip.show {
  display: block;
  animation: pch-chipin 0.25s ease-out;
}
.pch-pat-chip.bad {
  background: #ff007a;
  color: #fffde4;
}
.pch-pat-chip.good {
  background: #cdff00;
  color: #1b1715;
}
@keyframes pch-chipin {
  from { transform: translateY(-4px); opacity: 0; }
}
/* Meltdown: Catpops shakes and goes red, the HUD flashes, the room gets a red tint */
.pch.pch-melting .pch-pat {
  animation: pch-patflash 0.3s steps(2) infinite;
}
@keyframes pch-patflash {
  50% { background: #ff007a; color: #fffde4; }
}
.pch-dad.pch-meltdown .pch-sprite {
  animation: pch-meltshake 0.12s linear infinite;
  filter: sepia(1) saturate(6) hue-rotate(-30deg);
}
.pch-dad.pch-meltdown .pch-inner::after {
  content: "\1F4A2";
  position: absolute;
  left: 60%;
  top: -18px;
  font-size: 22px;
  animation: pch-meltpop 0.4s ease-in-out infinite alternate;
}
@keyframes pch-meltshake {
  0%, 100% { translate: 0 0; }
  25% { translate: -2px 1px; }
  75% { translate: 2px -1px; }
}
@keyframes pch-meltpop {
  to { transform: scale(1.3); }
}
.pch.pch-melting::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: rgba(255, 0, 122, 0.12);
  animation: pch-patflash2 0.5s steps(2) infinite;
}
@keyframes pch-patflash2 {
  50% { background: rgba(255, 0, 122, 0.03); }
}
@media (max-width: 700px) {
  .pch-pat {
    width: 150px;
    right: 6px;
    top: 6px;
    padding: 6px 8px;
  }
  .pch-pat-num {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pch-dad.pch-meltdown .pch-sprite,
  .pch.pch-melting .pch-pat,
  .pch.pch-melting::after {
    animation: none;
  }
}

/* Patience levels: lime > yellow > orange > pink > meltdown */
.pch-pat[data-lv="1"] .pch-pat-bar i { background: #cdff00; }
.pch-pat[data-lv="2"] .pch-pat-bar i { background: #ffd400; }
.pch-pat[data-lv="3"] .pch-pat-bar i { background: #ff9a3c; }
.pch-pat[data-lv="4"] .pch-pat-bar i { background: #ff007a; }
.pch-pat[data-lv="2"] { background: #fff8cf; }
.pch-pat[data-lv="3"] { background: #ffe9d1; }
.pch-pat[data-lv="3"] .pch-pat-num { color: #e06a00; }
.pch-pat[data-lv="4"] { background: #ffe0ef; }
.pch-pat[data-lv="4"] .pch-pat-num,
.pch-pat[data-lv="4"] .pch-pat-mood { color: #ff007a; }
.pch-pat[data-lv="3"] .pch-pat-mood,
.pch-pat[data-lv="0"] .pch-pat-mood { font-style: normal; font-weight: 900; }
.pch-pat[data-lv="4"] .pch-pat-mood { font-weight: 800; }
.pch-pat[data-lv="0"] { background: #1b1715; color: #fffde4; }
.pch-pat[data-lv="0"] .pch-pat-num { color: #ff007a; }
.pch-pat[data-lv="0"] .pch-pat-bar { background: #3a2a22; }

/* Patience hits: the meter jolts and a "-15%" floats off it */
.pch-pat.hit {
  animation: pch-pathit 0.45s ease-out;
}
@keyframes pch-pathit {
  20% { translate: -4px 0; }
  40% { translate: 4px 0; }
  60% { translate: -2px 0; }
  80% { translate: 1px 0; }
}
.pch-pat-delta {
  position: absolute;
  right: 10px;
  top: 34px;
  font: 900 16px/1 system-ui, sans-serif;
  color: #ff007a;
  text-shadow: 1px 1px 0 #1b1715;
  animation: pch-delta 1.4s ease-out forwards;
}
@keyframes pch-delta {
  0% { opacity: 0; transform: translateY(4px); }
  15% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(26px); }
}
/* Catpops jumps a little when something breaks */
.pch-dad.pch-startle .pch-inner {
  animation: pch-startle 0.35s ease-out;
}
@keyframes pch-startle {
  40% { translate: 0 -6px; }
}
/* Leave room under the house for the controls */
.pch {
  height: max(640px, min(72vw, calc(100vh - 130px)));
  height: max(640px, min(72vw, calc(100svh - 130px)));
}

/* House log button + panel */
.pch-bar .pch-logbtn b {
  display: inline-block;
  min-width: 16px;
  margin-left: 4px;
  padding: 1px 4px;
  border-radius: 999px;
  background: #ff007a;
  color: #fffde4;
  font-size: 10.5px;
  line-height: 14px;
  text-align: center;
}
.pch-bar .pch-logbtn b[hidden] {
  display: none;
}
.pch-bar .pch-logbtn[aria-expanded="true"] {
  background: #cdff00 !important;
}
.pch-log {
  max-width: 520px;
  margin: 6px auto 4px;
  padding: 8px 12px 6px;
  background: #fffde4;
  border: 3px solid #1b1715;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #1b1715;
  font: 600 13px/1.35 system-ui, -apple-system, sans-serif;
  color: #1b1715;
}
.pch-log[hidden] {
  display: none;
}
.pch-log-head {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pch-log ul {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
.pch-log li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
  border-top: 1px dashed rgba(27, 23, 21, 0.25);
  margin: 0 !important;
}
.pch-log li:first-child {
  border-top: 0;
}
.pch-log li em {
  flex: none;
  min-width: 58px;
  font-style: normal;
  font-weight: 800;
  font-size: 11.5px;
  color: #ff007a;
  font-variant-numeric: tabular-nums;
}
.pch-log li.none {
  font-style: italic;
  opacity: 0.7;
}

/* House page opens straight onto the house: no site header, nav buttons, title or intro.
   The title and intro stay readable for screen readers and search engines. */
body.page-id-7213 #header,
body.page-id-7213 .entry-content > nav.ff-header-buttons {
  display: none !important;
}
body.page-id-7213 .entry-content > h1.fgh-title,
body.page-id-7213 .entry-content > h1.fgh-title + p {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.page-id-7213 .ct-container-full {
  padding-top: 0 !important;
}
body.page-id-7213 .pch-wrap { margin-top: 0 !important; }
/* Without a header there's more room: give the house more of the screen */
.pch {
  height: max(640px, min(72vw, calc(100vh - 125px)));
  height: max(640px, min(72vw, calc(100svh - 125px)));
}

/* Logo link back home, bottom-left under the house */
.pch-wrap {
  position: relative;
}
.pch-home {
  position: absolute;
  left: 14px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px 3px 3px;
  background: #fffde4;
  border: 2px solid #1b1715;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #1b1715;
  color: #1b1715 !important;
  font: 800 12.5px/1 system-ui, -apple-system, sans-serif;
  text-decoration: none !important;
  z-index: 2;
}
.pch-home img {
  width: 40px;
  height: 26px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 999px;
  display: block;
}
.pch-home:hover {
  background: #cdff00;
}
.pch-home:focus-visible {
  outline: 3px solid #ff007a;
  outline-offset: 2px;
}
/* On narrower screens it sits in the flow, centred, so it never covers the toolbar */
@media (max-width: 1100px) {
  .pch-home {
    position: static;
    width: max-content;
    margin: 4px auto 10px;
  }
}

/* Wide screens: keep the hint clear of the logo link (equal padding keeps it centred) */
@media (min-width: 1101px) {
  .pch-hint {
    padding-left: 180px;
    padding-right: 180px;
  }
}

/* Toolbar buttons: easier to hit, same row height */
.pch-bar .pch-btn,
.pch-bar .pch-toggle {
  position: relative;
  font-size: 13px !important;
}
.pch-bar .pch-btn::after {
  content: "";
  position: absolute;
  inset: -6px -3px;
}
.pch-bar .pch-ico {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  margin-right: 5px;
  vertical-align: -2px;
}
/* Fired: the button flashes lime and pops so you know it worked */
.pch-bar .pch-btn.pch-fired {
  background: #cdff00 !important;
  animation: pch-fired 0.5s ease-out;
}
@keyframes pch-fired {
  0% { transform: scale(0.92); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Old action buttons: hidden, the furniture does the job now */
.pch-bar .pch-btn.pch-hiddenbtn {
  display: none !important;
}
/* Furniture hotspots */
.pch-deco.pch-hot {
  pointer-events: auto;
  cursor: pointer;
}
.pch-deco.pch-hot:hover,
.pch-deco.pch-hot:focus-visible {
  outline: 2px dashed #ff007a;
  outline-offset: 2px;
}
.pch.pch-hints .pch-deco.pch-hot {
  outline: 3px dashed #ff007a !important;
  outline-offset: 3px;
  animation: pch-hintpulse 0.6s steps(2) infinite;
}
.pch-deco.pch-hot.pch-hotfired {
  filter: brightness(1.15) drop-shadow(0 0 5px #cdff00);
}

/* Patience drain: a pink "ghost" of the old level lingers, then drains away */
.pch-pat-bar {
  position: relative;
}
.pch-pat-bar i {
  position: relative;
  z-index: 1;
}
.pch-pat-ghost {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #ff007a;
  opacity: 0.45;
  text-decoration: none;
  transition: width 0.7s ease-in 0.5s;
}
/* House log: new entries stand out until you've looked at them */
.pch-log li.new {
  background: #fff0f7;
  box-shadow: inset 3px 0 0 #ff007a;
  padding-left: 7px;
  padding-right: 6px;
}
.pch-log li.seen {
  opacity: 0.6;
}
.pch-log li p {
  flex: 1;
  margin: 0 !important;
}
.pch-log .pch-new {
  flex: none;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fffde4;
  background: #ff007a;
  padding: 1px 5px;
  border-radius: 3px;
}
.pch-bar .pch-logbtn.pch-ping b {
  animation: pch-ping 0.6s ease-out 2;
}
@keyframes pch-ping {
  50% { transform: scale(1.45); }
}

/* Separate light sources (pch-litglow): a lit fire and a switched-on TV cast their own
   glow on the wall around them, stronger once it gets dark */
.pch:not(.pch-fireout) .pch-deco.pch-flick::before,
.pch:not(.pch-tvoff) .pch-deco.pch-idle-tvpics::before {
  content: "";
  position: absolute;
  left: -45%;
  right: -45%;
  top: -40%;
  bottom: -25%;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.35;
  transition: opacity 1.5s;
}
.pch:not(.pch-fireout) .pch-deco.pch-flick::before {
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 170, 60, 0.75), rgba(255, 170, 60, 0) 65%);
}
.pch:not(.pch-tvoff) .pch-deco.pch-idle-tvpics::before {
  background: radial-gradient(ellipse at 50% 40%, rgba(140, 200, 255, 0.7), rgba(140, 200, 255, 0) 65%);
}
.pch.pch-dark:not(.pch-fireout) .pch-deco.pch-flick::before,
.pch.pch-dark:not(.pch-tvoff) .pch-deco.pch-idle-tvpics::before {
  opacity: 0.85;
}
/* Lamps light their corner a touch more */
.pch-nightfx.lamps-on .pch-lamps i {
  opacity: 1;
  filter: brightness(1.15);
}

.pch-deco.pch-flick,
.pch-deco.pch-idle-tvpics {
  isolation: isolate;
}

/* Disco ball (music room) */
.pch button.pch-discoball {
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 52px;
  margin: 0 0 0 -15px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pch button.pch-discoball::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  width: 2px;
  height: 22px;
  background: #1b1715;
}
.pch-discoball i {
  position: absolute;
  left: 3px;
  top: 22px;
  width: 24px;
  height: 24px;
  border: 3px solid #1b1715;
  border-radius: 50%;
  box-sizing: border-box;
  background:
    repeating-linear-gradient(90deg, rgba(27, 23, 21, 0.35) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(27, 23, 21, 0.35) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 35% 30%, #ffffff 0 18%, #d6dbe3 40%, #9aa4b2 100%);
}
.pch button.pch-discoball:hover i,
.pch button.pch-discoball:focus-visible i {
  outline: 2px dashed #ff007a;
  outline-offset: 3px;
}
.pch.pch-hints button.pch-discoball i {
  outline: 3px dashed #ff007a;
  outline-offset: 3px;
}
.pch.pch-disco button.pch-discoball {
  transform: translateY(14px);
}
.pch.pch-disco .pch-discoball i {
  animation: pch-discospin 0.8s steps(4) infinite;
  box-shadow: 0 0 10px #fff, 0 0 18px #ff007a;
}
@keyframes pch-discospin {
  25% { background-position: 1px 0, 0 1px, 0 0; filter: hue-rotate(40deg) brightness(1.2); }
  50% { background-position: 2px 0, 0 2px, 0 0; }
  75% { background-position: 3px 0, 0 3px, 0 0; filter: hue-rotate(-40deg) brightness(1.2); }
}
/* Light spots sweeping round the room */
.pch-discolights {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
}
.pch.pch-disco .pch-discolights {
  opacity: 1;
  background:
    radial-gradient(circle, rgba(255, 0, 122, 0.55) 0 6px, transparent 7px) 0 0 / 70px 54px,
    radial-gradient(circle, rgba(205, 255, 0, 0.55) 0 5px, transparent 6px) 20px 18px / 90px 66px,
    radial-gradient(circle, rgba(120, 200, 255, 0.6) 0 5px, transparent 6px) 44px 30px / 80px 60px,
    rgba(40, 20, 80, 0.12);
  animation: pch-discolights 3s linear infinite;
}
@keyframes pch-discolights {
  to { background-position: 140px 54px, -180px 66px, 160px -60px, 0 0; }
}
/* Dancing cats bob up and down */
.pch-cat.pch-dance .pch-inner {
  animation: pch-dance 0.45s ease-in-out infinite alternate;
}
@keyframes pch-dance {
  from { translate: 0 0; rotate: -4deg; }
  to { translate: 0 -5px; rotate: 4deg; }
}
@media (prefers-reduced-motion: reduce) {
  .pch.pch-disco .pch-discoball i,
  .pch.pch-disco .pch-discolights,
  .pch-cat.pch-dance .pch-inner {
    animation: none;
  }
}

/* Full food bowls: a little heap of kibble on top */
.pch-deco.pch-bowls-full::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -35%;
  height: 45%;
  pointer-events: none;
  background:
    radial-gradient(circle, #a0622d 0 35%, transparent 40%) 0 0 / 6px 5px,
    radial-gradient(circle, #c47a3a 0 35%, transparent 40%) 3px 2px / 6px 5px;
  -webkit-mask: radial-gradient(ellipse at 25% 100%, #000 0 45%, transparent 47%), radial-gradient(ellipse at 75% 100%, #000 0 45%, transparent 47%);
  mask: radial-gradient(ellipse at 25% 100%, #000 0 45%, transparent 47%), radial-gradient(ellipse at 75% 100%, #000 0 45%, transparent 47%);
}

/* Night: a warm pool of light in a room someone's in (laid over the blue night tint) */
.pch-roomlight {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.6s ease-out;
  background:
    radial-gradient(ellipse 60% 75% at 50% 12%, rgba(255, 196, 120, 0.55), rgba(255, 190, 110, 0.22) 50%, rgba(255, 180, 100, 0) 78%);
}
.pch-roomlight.on {
  opacity: 1;
  transition: opacity 0.15s steps(2);
}
@media (prefers-reduced-motion: reduce) {
  .pch-roomlight {
    transition: none;
  }
}

/* Night: empty rooms go properly dim, so the lit ones glow by contrast */
.pch-roomlight.dark {
  opacity: 1;
  mix-blend-mode: multiply;
  background: rgba(36, 44, 86, 0.38);
  transition: opacity 1.2s ease-in;
}

.pch-roomlight.low {
  opacity: 0.55;
}

/* Daytime: inside rooms are only gently dim when empty, and the light is softer when on */
.pch-roomlight.day.dark {
  background: rgba(40, 46, 80, 0.2);
}
.pch-roomlight.day.on {
  opacity: 0.5;
}

/* Rubber duck on the tub rim: tap for Catpops' bubble bath */
.pch button.pch-duck {
  position: absolute;
  z-index: 4;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.pch-duck i {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#1b1715, #1b1715) 62% 30% / 12% 12% no-repeat,
    linear-gradient(#ff9a3c, #ff9a3c) 100% 42% / 26% 16% no-repeat,
    radial-gradient(circle at 60% 35%, #ffd400 0 26%, transparent 27%),
    radial-gradient(ellipse at 42% 78%, #ffd400 0 45%, transparent 46%);
  filter: drop-shadow(1px 0 0 #1b1715) drop-shadow(-1px 0 0 #1b1715) drop-shadow(0 1px 0 #1b1715) drop-shadow(0 -1px 0 #1b1715);
}
.pch button.pch-duck:hover,
.pch button.pch-duck:focus-visible {
  outline: 2px dashed #ff007a;
  outline-offset: 2px;
}
.pch.pch-hints button.pch-duck {
  outline: 3px dashed #ff007a !important;
  outline-offset: 3px;
  animation: pch-hintpulse 0.6s steps(2) infinite;
}
.pch.pch-dadbathing button.pch-duck {
  transform: translate(70%, 70%) rotate(-8deg);
  animation: pch-duckbob 1.6s ease-in-out infinite;
  z-index: 9;
}
@keyframes pch-duckbob {
  50% { translate: 0 -2px; }
}
/* Tub front + foam, laid over Catpops while he's in the bath */
.pch-bathfront {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  display: none;
}
.pch.pch-dadbathing .pch-bathfront {
  display: block;
}
.pch-tubclone {
  position: absolute;
  inset: 0;
  clip-path: inset(42% 0 0 0);
}
.pch-tubclone svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-foam {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 24%;
  height: 28%;
  background:
    radial-gradient(circle, #fff 0 45%, transparent 48%) 0 30% / 18% 70%,
    radial-gradient(circle, #e8f6ff 0 45%, transparent 48%) 9% 0 / 22% 80%,
    radial-gradient(circle, #fff 0 45%, transparent 48%) 4% 60% / 15% 60%;
  filter: drop-shadow(0 0 1px #9fd4f5);
  animation: pch-foam 2.4s ease-in-out infinite alternate;
}
@keyframes pch-foam {
  to { background-position: 4% 20%, 14% 6%, 0 55%; }
}
/* Catpops sinks down so only his head and shoulders show */
.pch-dad.pch-inbath .pch-sprite {
  transform: translateY(12%) !important;
  /* cut off at the tub floor, so nothing shows through the gap between its feet */
  clip-path: inset(0 0 calc(12% + 8px) 0);
}
.pch-dad.pch-inbath .pch-dadmug {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .pch-foam,
  .pch.pch-dadbathing button.pch-duck {
    animation: none;
  }
}

/* Wardrobe: the inside and two doors, shown only while it's open */
.pch-wardin,
.pch-warddoors {
  position: absolute;
  pointer-events: none;
  display: none;
}
.pch-wardin svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch.pch-ward-open .pch-wardin,
.pch.pch-ward-open .pch-warddoors {
  display: block;
}
.pch-warddoors > span {
  position: absolute;
  inset: 0;
}
.pch-warddoors > span svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pch-warddoors > .pch-door-l {
  clip-path: inset(0 50% 0 0);
  transform: translateX(-50%);
}
.pch-warddoors > .pch-door-r {
  clip-path: inset(0 0 0 50%);
  transform: translateX(50%);
}
/* A little flash when he changes */
.pch-dad.pch-change .pch-sprite {
  animation: pch-change 0.6s ease-out;
}
@keyframes pch-change {
  0% { filter: brightness(3); transform: scale(0.85, 1.1); }
  60% { filter: brightness(1.3); }
}
/* Gym: whatever shirt he's wearing comes off */
.pch-dad.pch-lifting svg rect[fill="#fffdf4"],
.pch-dad.pch-lifting svg rect[fill="#ff6fb3"] {
  fill: #f1c27d;
}

/* Cat deliveries: the cardboard scratcher and the catnip */
.pch-gift {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.pch-gift-scratcher i {
  position: absolute;
  inset: 0;
  border: 3px solid #1b1715;
  border-radius: 4px 4px 2px 2px;
  box-sizing: border-box;
  background: repeating-linear-gradient(90deg, #c8955a 0 3px, #a8743f 3px 5px);
  box-shadow: inset 0 -3px 0 #8a5a34;
  animation: pch-giftdrop 0.4s ease-out;
}
.pch-gift-catnip i {
  position: absolute;
  inset: 10% 15% 0;
  border: 3px solid #1b1715;
  border-radius: 3px 3px 4px 4px;
  box-sizing: border-box;
  background: linear-gradient(#7ad64b 0 30%, #fffde4 30% 45%, #7ad64b 45%);
  animation: pch-giftdrop 0.4s ease-out;
}
/* little green flakes drifting up out of the catnip */
.pch-gift-catnip b {
  position: absolute;
  left: 45%;
  top: 0;
  width: 4px;
  height: 4px;
  background: #4f9a2e;
  animation: pch-nipfloat 1.6s ease-out infinite;
}
.pch-gift-catnip b:nth-of-type(2) { left: 20%; animation-delay: -0.5s; }
.pch-gift-catnip b:nth-of-type(3) { left: 70%; animation-delay: -1s; }
@keyframes pch-nipfloat {
  0% { opacity: 0; transform: translate(0, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(6px, -26px) rotate(90deg); }
}
@keyframes pch-giftdrop {
  from { transform: translateY(-10px) scale(0.9); opacity: 0; }
}
/* Scratching: fast little paw shakes */
.pch-cat.pch-scratching .pch-inner {
  animation: pch-scratch 0.18s steps(2) infinite;
}
@keyframes pch-scratch {
  50% { translate: 1px -1px; rotate: -3deg; }
}
/* Catnip: rolling about, a bit wobbly and a lot happy */
.pch-cat.pch-nipped .pch-inner {
  animation: pch-nip 1.1s ease-in-out infinite;
}
@keyframes pch-nip {
  0%, 100% { rotate: 0deg; translate: 0 0; }
  25% { rotate: -20deg; translate: -3px -2px; }
  50% { rotate: 180deg; translate: 0 -1px; }
  75% { rotate: 20deg; translate: 3px -2px; }
}
.pch-cat.pch-nipped .pch-sprite {
  filter: hue-rotate(60deg) saturate(1.4);
}
@media (prefers-reduced-motion: reduce) {
  .pch-cat.pch-scratching .pch-inner,
  .pch-cat.pch-nipped .pch-inner,
  .pch-gift-catnip b {
    animation: none;
  }
}

/* Cupboard under the stairs */
.pch-cup {
  position: absolute;
  z-index: 4;
}
.pch-cupin {
  position: absolute;
  inset: 0;
  background: #2a1d17;
  border: 3px solid #1b1715;
  border-bottom: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.pch-cupin i {
  position: absolute;
  display: block;
}
.pch-cupin .mop {
  left: 14%;
  bottom: 0;
  width: 6%;
  height: 80%;
  background: #a0622d;
  box-shadow: 3px 0 0 -1px transparent;
}
.pch-cupin .mop::after {
  content: "";
  position: absolute;
  left: -120%;
  bottom: 0;
  width: 340%;
  height: 18%;
  background: #e8e2d0;
  border-radius: 2px 2px 0 0;
}
.pch-cupin .bucket {
  left: 30%;
  bottom: 0;
  width: 26%;
  height: 22%;
  background: #4a7bd0;
  border: 2px solid #1b1715;
  border-bottom: 0;
  box-sizing: border-box;
  border-radius: 2px 2px 0 0;
}
.pch-cupin .box {
  right: 8%;
  bottom: 0;
  width: 34%;
  height: 30%;
  background: #c8955a;
  border: 2px solid #1b1715;
  border-bottom: 0;
  box-sizing: border-box;
}
.pch-cupin .box::after {
  content: "";
  position: absolute;
  left: 20%;
  top: -40%;
  width: 22%;
  height: 40%;
  background: #ff007a;
  box-shadow: 9px 2px 0 #cdff00;
  border-radius: 50%;
}
/* Lyle's eyes glowing in the dark */
.pch-cupin .eyes {
  left: 58%;
  top: 34%;
  width: 7%;
  height: 7%;
  background: #ffd400;
  box-shadow: 7px 0 0 #ffd400;
  display: none;
  animation: pch-blink 3s steps(1) infinite;
}
.pch-cup.lyle .pch-cupin .eyes {
  display: block;
}
@keyframes pch-blink {
  0%, 92%, 100% { opacity: 1; }
  94%, 97% { opacity: 0; }
}
.pch button.pch-cupdoor {
  position: absolute;
  inset: 0;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  border: 3px solid #1b1715 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: #b77a3d !important;
  box-shadow: inset 0 0 0 3px #c98a4a !important;
  cursor: pointer;
  transform-origin: left center;
  transition: transform 0.35s ease-in-out;
}
/* a little vent grate and a round knob */
.pch-cupdoor i {
  position: absolute;
  left: 30%;
  top: 18%;
  width: 40%;
  height: 16%;
  background: repeating-linear-gradient(90deg, #1b1715 0 2px, #8a5a34 2px 5px);
  border: 2px solid #1b1715;
  box-sizing: border-box;
}
.pch-cupdoor i::after {
  content: "";
  position: absolute;
  right: -55%;
  top: 220%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd400;
  border: 2px solid #1b1715;
}
/* while Lyle's in there, the door sits slightly ajar with his eyes peeking out */
.pch-cup.lyle:not(.open) .pch-cupdoor {
  transform: translateX(-10%);
}
.pch-cup.open .pch-cupdoor {
  transform: translateX(-100%);
}
.pch button.pch-cupdoor:hover,
.pch button.pch-cupdoor:focus-visible {
  outline: 2px dashed #ff007a;
  outline-offset: 2px;
}
.pch.pch-hints button.pch-cupdoor {
  outline: 3px dashed #ff007a !important;
  outline-offset: 3px;
  animation: pch-hintpulse 0.6s steps(2) infinite;
}
.pch-cupsay {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 150px;
  padding: 4px 8px;
  background: #fffde4;
  border: 3px solid #1b1715;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #1b1715;
  font: 600 12px/1.25 system-ui, sans-serif;
  color: #1b1715;
  z-index: 6;
}
.pch-cupsay[hidden] {
  display: none;
}
/* Hiding cat is out of sight (its eyes show in the cupboard instead) */
.pch-cat.pch-incup {
  visibility: hidden;
}

/* Grocery bags: Catpops carries one, then the shopping pops out onto the counter */
.pch-dad.pch-carrybag .pch-inner::before {
  content: "";
  position: absolute;
  z-index: 2;
  right: -18%;
  top: 48%;
  width: 46%;
  height: 26%;
  background: #c8955a;
  border: 2px solid #1b1715;
  box-sizing: border-box;
  box-shadow: inset 0 3px 0 #7ad64b;
}
.pch-groc {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.pch-groc i {
  position: absolute;
  bottom: 0;
  border: 2px solid #1b1715;
  box-sizing: border-box;
  animation: pch-grocpop 0.35s ease-out backwards;
}
.pch-groc .bag { left: 2%; width: 22%; height: 95%; background: #c8955a; animation-delay: 0s; }
.pch-groc .milk { left: 28%; width: 10%; height: 85%; background: #fff; border-top: 5px solid #4a7bd0; animation-delay: 0.9s; }
.pch-groc .eggs { left: 41%; width: 16%; height: 35%; background: #f2e3c0; animation-delay: 1.8s; }
.pch-groc .bread { left: 60%; width: 17%; height: 50%; background: #d9a066; border-radius: 40% 40% 2px 2px; animation-delay: 2.7s; }
.pch-groc .apple { left: 80%; width: 8%; height: 30%; background: #ff007a; border-radius: 50%; animation-delay: 3.6s; }
.pch-groc .coffee { left: 90%; width: 9%; height: 60%; background: #6b4a2b; animation-delay: 4.5s; }
@keyframes pch-grocpop {
  from { transform: translateY(-14px); opacity: 0; }
}
.pch-groc.away i:not(.bag) {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease-in;
}
/* The meat stick packet on the counter: tap for Purrcival's treat */
.pch button.pch-meatstick {
  position: absolute;
  z-index: 5;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
  animation: pch-stickwiggle 1.6s ease-in-out infinite;
}
.pch-meatstick i {
  position: absolute;
  inset: 0;
  border: 2px solid #1b1715;
  border-radius: 3px;
  box-sizing: border-box;
  background:
    linear-gradient(90deg, transparent 0 15%, #8b2f1d 15% 85%, transparent 85%) 50% 70% / 100% 26% no-repeat,
    linear-gradient(#ff007a 0 30%, #fffde4 30%);
}
.pch-meatstick i::after {
  content: "MEAT";
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  font: 900 7px/1 system-ui, sans-serif;
  color: #fffde4;
  text-align: center;
  letter-spacing: 0.05em;
}
@keyframes pch-stickwiggle {
  0%, 80%, 100% { rotate: 0deg; }
  85% { rotate: -8deg; }
  90% { rotate: 8deg; }
}
.pch button.pch-meatstick:hover,
.pch button.pch-meatstick:focus-visible {
  outline: 2px dashed #ff007a;
  outline-offset: 2px;
}
.pch.pch-hints button.pch-meatstick {
  outline: 3px dashed #ff007a !important;
  outline-offset: 3px;
}
.pch button.pch-meatstick.taken {
  animation: none;
  opacity: 0.6;
}
/* Purrcival with his meat stick */
.pch-cat.pch-meatstick-eat .pch-inner::after {
  content: "";
  position: absolute;
  right: -12%;
  top: 45%;
  width: 30%;
  height: 10%;
  background: #8b2f1d;
  border: 2px solid #1b1715;
  box-sizing: border-box;
  border-radius: 3px;
  animation: pch-chomp 0.3s steps(2) infinite;
}
@keyframes pch-chomp {
  50% { width: 22%; }
}

/* CH 4: "Sir Floofington, Defender of the Snacks", a 16-second looping cartoon:
   title card, hero pose, the robot vacuum attack (he leaps it), victory at the box fortress */
.pch-tvshow.pch-ch4 {
  background: #8fd3ff;
}
.pch-tvshow .pch-sir {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.pch-sir .sc {
  opacity: 0;
  animation: 16s steps(1) infinite;
}
.pch-sir .s1 { animation-name: sir-s1; }
.pch-sir .s2 { animation-name: sir-s2; }
.pch-sir .s3 { animation-name: sir-s3; }
.pch-sir .s4 { animation-name: sir-s4; }
@keyframes sir-s1 { 0% { opacity: 1; } 18.75% { opacity: 0; } }
@keyframes sir-s2 { 0% { opacity: 0; } 18.75% { opacity: 1; } 43.75% { opacity: 0; } }
@keyframes sir-s3 { 0% { opacity: 0; } 43.75% { opacity: 1; } 75% { opacity: 0; } }
@keyframes sir-s4 { 0% { opacity: 0; } 75% { opacity: 1; } }
/* title wobbles in */
.pch-sir .ttl {
  transform-box: fill-box;
  transform-origin: center;
  animation: sir-ttl 0.5s ease-in-out infinite alternate;
}
@keyframes sir-ttl { to { transform: scale(1.06); } }
/* capes flap */
.pch-sir .cape {
  animation: sir-cape 0.35s steps(2) infinite;
}
@keyframes sir-cape { 50% { transform: translate(-0.5px, 0.4px); } }
/* hero raises his feather wand, light rays pulse */
.pch-sir .hero .wand {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: sir-raise 16s steps(1) infinite;
}
@keyframes sir-raise { 0%, 25% { transform: rotate(40deg); } 26.5% { transform: rotate(0deg); } }
.pch-sir .rays {
  animation: sir-rays 0.4s steps(2) infinite;
}
@keyframes sir-rays { 50% { opacity: 0.2; } }
/* the robot vacuum charges across, Sir Floofington leaps it */
.pch-sir .vac {
  animation: sir-vac 16s linear infinite;
}
@keyframes sir-vac {
  0%, 43.75% { transform: translateX(32px); }
  75% { transform: translateX(-6px); }
  100% { transform: translateX(-6px); }
}
.pch-sir .jumper {
  animation: sir-jump 16s ease-in-out infinite;
}
@keyframes sir-jump {
  0%, 55% { transform: translate(9px, 5px); }
  59% { transform: translate(9px, -1px); }
  63% { transform: translate(9px, 5px); }
  100% { transform: translate(9px, 5px); }
}
.pch-sir .boing {
  opacity: 0;
  animation: sir-boing 16s steps(1) infinite;
}
@keyframes sir-boing { 0% { opacity: 0; } 56% { opacity: 1; } 63% { opacity: 0; } }
.pch-sir .dust {
  animation: sir-cape 0.25s steps(2) infinite;
}
/* victory: champion bounces on the fortress, flag waves, sparkles */
.pch-sir .champ {
  animation: sir-champ 0.6s ease-in-out infinite alternate;
}
@keyframes sir-champ {
  from { transform: translate(10.5px, -2.2px); }
  to { transform: translate(10.5px, -3px); }
}
.pch-sir .flag {
  transform-box: fill-box;
  transform-origin: left center;
  animation: sir-flag 0.5s steps(2) infinite;
}
@keyframes sir-flag { 50% { transform: scaleX(0.8) skewY(8deg); } }
.pch-sir .spark {
  animation: sir-rays 0.3s steps(2) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .pch-sir .cape, .pch-sir .rays, .pch-sir .dust, .pch-sir .champ, .pch-sir .flag, .pch-sir .spark, .pch-sir .ttl { animation: none; }
}


/* CH 5: S'Lyle the Wizard, from our game. S'Lyle (red robe, orange hat, gold-orb staff)
   cackles at his tower while Princess Purrtricia calls for help; Knight Rabbitovitz hops the
   alligator water under a rogue pigeon, then dodges S'Lyle's spell. Ends on the 3D date. */
.pch-tvshow.pch-ch5 { background: #14301f; }
.pch-tvshow .pch-sl2 { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pch-sl2 .sc { opacity: 0; animation: 16s steps(1) infinite; }
.pch-sl2 .s1 { animation-name: sir-s1; }
.pch-sl2 .s2 { animation-name: sir-s2; }
.pch-sl2 .s3 { animation-name: sir-s3; }
.pch-sl2 .s4 { animation-name: sir-s4; }
.pch-sl2 .ttl { transform-box: fill-box; transform-origin: center; animation: sir-ttl 0.5s ease-in-out infinite alternate; }
.pch-sl2 .orb { animation: sir-rays 0.4s steps(2) infinite; }
.pch-sl2 .cackle { animation: sl2-cackle 0.3s steps(2) infinite; }
@keyframes sl2-cackle { 50% { transform: translate(9px, 4px); } }
.pch-sl2 .help { animation: sir-rays 0.5s steps(2) infinite; }
.pch-sl2 .princess { animation: sl2-wave 0.6s steps(2) infinite; }
@keyframes sl2-wave { 50% { transform: translateY(-0.3px); } }
/* knight hops the water */
.pch-sl2 .k-hop { animation: sl2-hop 16s ease-in-out infinite; }
@keyframes sl2-hop {
  0%, 46% { transform: translate(1px, 5px); }
  52% { transform: translate(6px, 5px); }
  57% { transform: translate(11px, -1px); }
  62% { transform: translate(18px, 5px); }
  100% { transform: translate(19px, 5px); }
}
.pch-sl2 .jaw { transform-box: fill-box; transform-origin: left bottom; animation: sl2-jaw 0.45s steps(2) infinite; }
@keyframes sl2-jaw { 50% { transform: rotate(-25deg); } }
.pch-sl2 .pigeon { animation: sl2-pigeon 4s linear infinite; }
@keyframes sl2-pigeon { from { transform: translateX(-4px); } to { transform: translateX(30px); } }
.pch-sl2 .wing { animation: sl2-flap 0.25s steps(2) infinite; }
@keyframes sl2-flap { 50% { transform: translateY(1.2px); } }
/* spell duel: beam fires, the knight jumps it */
.pch-sl2 .beam2, .pch-sl2 .zap2 { opacity: 0; }
.pch-sl2 .beam2 { animation: sl2-beam 16s steps(1) infinite; }
@keyframes sl2-beam { 0% { opacity: 0; } 82% { opacity: 1; } 87% { opacity: 0; } }
.pch-sl2 .zap2 { animation: sl2-zap 16s steps(1) infinite; }
@keyframes sl2-zap { 0% { opacity: 0; } 85% { opacity: 1; } 93% { opacity: 0; } }
.pch-sl2 .k-dodge { animation: sl2-dodge 16s ease-in-out infinite; }
@keyframes sl2-dodge {
  0%, 81% { transform: translate(2px, 5px); }
  84% { transform: translate(2px, -1px); }
  88% { transform: translate(2px, 5px); }
  100% { transform: translate(2px, 5px); }
}
.pch-sl2 .caster2 { animation: sl2-recoil 16s steps(1) infinite; }
@keyframes sl2-recoil { 0% { transform: translate(17px, 4.4px); } 82% { transform: translate(17.6px, 4.4px); } 85% { transform: translate(17px, 4.4px); } }
.pch-sl2 .soon { animation: sir-rays 0.5s steps(2) infinite; }
@media (prefers-reduced-motion: reduce) {
  .pch-sl2 .ttl, .pch-sl2 .orb, .pch-sl2 .cackle, .pch-sl2 .help, .pch-sl2 .princess, .pch-sl2 .jaw, .pch-sl2 .pigeon, .pch-sl2 .wing, .pch-sl2 .soon { animation: none; }
}

/* Wrestling (Purrcival never fights): the tumble cloud goes pink and playful */
.pch-fight.pch-wrestle b {
  color: #ff007a !important;
}
.pch-fight.pch-wrestle {
  filter: hue-rotate(-20deg) saturate(1.2);
}
/* Lite wrestle: bobbing, leaning in, little baps */
.pch-cat.pch-lite .pch-inner {
  animation: pch-lite 0.4s ease-in-out infinite alternate;
}
@keyframes pch-lite {
  from { translate: 0 0; rotate: 0deg; }
  to { translate: 2px -3px; rotate: 6deg; }
}
@media (prefers-reduced-motion: reduce) {
  .pch-cat.pch-lite .pch-inner { animation: none; }
}

/* Room labels sit in front of the furniture (shower pipe, grooming shelf) */
.pch .pch-label {
  z-index: 6 !important;
}

/* Grocery bags waiting by the front door */
.pch-grocbags {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.pch-grocbags i {
  position: absolute;
  bottom: 0;
  width: 42%;
  height: 90%;
  background: #c8955a;
  border: 2px solid #1b1715;
  box-sizing: border-box;
  box-shadow: inset 0 4px 0 #7ad64b;
}
.pch-grocbags i + i {
  left: 46%;
  height: 75%;
  box-shadow: inset 0 4px 0 #ff9a3c;
}
.pch-grocbags b {
  position: absolute;
  left: 52%;
  top: 10%;
  width: 10%;
  height: 22%;
  background: #fff;
  border-top: 3px solid #4a7bd0;
}

/* Wardrobe step 2: the clothes on the rail are tappable */
.pch button.pch-wardpick {
  position: absolute;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  pointer-events: auto;
  cursor: pointer;
  animation: pch-hintpulse 0.8s steps(2) infinite;
  outline: 2px dashed #ff007a;
  outline-offset: 1px;
}
.pch button.pch-wardpick:hover,
.pch button.pch-wardpick:focus-visible {
  outline: 2px solid #cdff00;
  background: rgba(205, 255, 0, 0.25) !important;
}

/* Catpops slipping through the shortcut door */
.pch-dad.pch-vanish {
  opacity: 0 !important;
  transition: opacity 0.35s;
}
.pch-dad.pch-appear {
  animation: pch-appear 0.4s ease-out;
}
@keyframes pch-appear {
  from { opacity: 0; }
}

/* The sofa stands in front of the staircase */
.pch-deco.pch-sofa {
  z-index: 4;
}

/* Bathroom steam (shower or bath) */
.pch-bathsteam {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 12s ease-out;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(240, 248, 252, 0.4) 55%, rgba(225, 238, 244, 0.5));
}
.pch-bathsteam.on { opacity: 1; transition: opacity 5s ease-in; }
.pch-bathsteam i {
  position: absolute;
  bottom: -20%;
  width: 22%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  opacity: 0;
}
.pch-bathsteam.on i { animation: pch-bsteam 5s ease-out infinite; }
.pch-bathsteam i:nth-child(1) { left: 2%; animation-delay: 0s; }
.pch-bathsteam i:nth-child(2) { left: 22%; animation-delay: -1.7s; }
.pch-bathsteam i:nth-child(3) { left: 42%; animation-delay: -3.1s; }
.pch-bathsteam i:nth-child(4) { left: 60%; animation-delay: -0.9s; }
.pch-bathsteam i:nth-child(5) { left: 78%; animation-delay: -2.4s; }
@keyframes pch-bsteam {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  25% { opacity: 0.9; }
  100% { transform: translateY(-260%) scale(1.5); opacity: 0; }
}
/* Tap left running: water rises over the floor, then drains when it's turned off */
.pch-tapwater {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.pch-tapwater b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: rgba(127, 211, 255, 0.6);
  border-top: 3px solid #1b1715;
  box-sizing: border-box;
  transition: height 4s ease-in;
  opacity: 0;
}
.pch-tapwater.rising b { opacity: 1; height: 100%; transition: height 45s linear; }
.pch-tapwater.draining b { opacity: 1; height: 0; transition: height 5s ease-in; }
.pch-tapwater.rising b::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 6px;
  background: repeating-linear-gradient(90deg, #bfe6ff 0 10px, transparent 10px 20px);
  animation: pch-slosh 1.2s steps(2) infinite;
}
@keyframes pch-slosh { to { transform: translateX(10px); } }
@media (prefers-reduced-motion: reduce) {
  .pch-bathsteam i, .pch-tapwater b::before { animation: none !important; }
}

/* Smaller speech bubbles, so they cover less of the house and collide less often */
.pch-bubble {
  font-size: 10.5px;
  line-height: 1.2;
  padding: 3px 7px;
  max-width: 118px;
  border-width: 2px;
  border-radius: 5px;
  box-shadow: 2px 2px 0 #1b1715;
  bottom: calc(100% + 5px);
}
.pch-names .pch-bubble {
  bottom: calc(100% + 22px);
}

/* House updates, v2.0.0 (Nov 2026). Pairs with assets/js/98-house-updates.js. */

/* ---- Steady captions -------------------------------------------------------------------
   Names and speech bubbles live inside .pch-inner, so any "body" animation on .pch-inner
   (tapping his foot, dancing, wiggling, pedalling, shimmying up a pole) used to shake them
   too. The movement now goes on the sprite only; the captions stay still. Bubble offsets
   (from the overlap logic) glide instead of jumping. */
.pch-bubble {
  transition: translate 0.18s ease-out;
}
.pch-dance .pch-inner,
.pch-dad.pch-dance .pch-inner,
.pch-wiggle .pch-inner,
.pch-dad.pch-tap .pch-inner {
  animation: none !important;
}
.pch-dance .pch-inner > .pch-sprite {
  transform-origin: 50% 100%;
  animation: pch-dance 0.45s steps(2) infinite;
}
.pch-wiggle .pch-inner > .pch-sprite {
  animation: pch-wig2 0.5s steps(4) infinite;
}
.pch-dad.pch-tap .pch-inner > .pch-sprite {
  animation: pch-tapf2 0.45s steps(2) infinite;
}
.pch-dad.pch-riding .pch-inner {
  animation: none !important;
}
.pch-dad.pch-riding .pch-inner > .pch-sprite {
  animation: pch-pedal2 0.32s ease-in-out infinite alternate;
}
.pch-cat.pch-climb .pch-inner > .pch-name,
.pch-cat.pch-climb .pch-inner > .pch-bubble,
.pch-cat.pch-climb .pch-inner > .pch-voidcap {
  animation: none;
}
@keyframes pch-wig2 {
  0%, 50%, 100% { translate: -3px 0; }
  25% { translate: 3px -4px; }
  75% { translate: 3px -9px; }
}
@keyframes pch-tapf2 {
  50% { translate: 0 -3px; }
}
@keyframes pch-pedal2 {
  from { translate: 0 0; rotate: 0deg; }
  to { translate: 0 2%; rotate: 1.5deg; }
}
@media (prefers-reduced-motion: reduce) {
  .pch-bubble { transition: none; }
  .pch-dance .pch-inner > .pch-sprite,
  .pch-wiggle .pch-inner > .pch-sprite,
  .pch-dad.pch-tap .pch-inner > .pch-sprite,
  .pch-dad.pch-riding .pch-inner > .pch-sprite { animation: none; }
}

/* ---- Purrcival's existential crisis ----------------------------------------------------
   He flips onto his back around his middle (it used to be around his feet, which put him
   upside down under the floor, on the ceiling of the room below), with a caption. */
.pch-cat.pch-void .pch-sprite {
  transform-origin: 50% 50% !important;
  translate: 0 -10%;
}
.pch-voidcap {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 3px;
  white-space: nowrap;
  background: #ff007a;
  color: #fffde4;
  border: 2px solid #1b1715;
  border-radius: 999px;
  padding: 2px 8px;
  font: 800 11px/1.2 system-ui, -apple-system, sans-serif;
  pointer-events: none;
  z-index: 5;
}
.pch-names .pch-void .pch-name {
  display: none;
}
.pch-void .pch-bubble {
  bottom: calc(100% + 28px);
}

/* ---- Catpops sitting up in bed ---------------------------------------------------------- */
.pch-dad.pch-situp .pch-inner::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -34%;
  top: 56%;
  bottom: 18%;
  background: #b9a6ff;
  border: 3px solid #1b1715;
  box-sizing: border-box;
}
.pch-dad.pch-situp .pch-name {
  display: none;
}
.pch button.pch-cat.pch-dad.pch-situp {
  z-index: 4 !important;
}

/* ---- Treat time in the secret stash ------------------------------------------------------ */
.pch.pch-stash-open .pch-deco.pch-stash {
  pointer-events: auto;
  cursor: pointer;
}
.pch.pch-stash-open .pch-deco.pch-stash:hover,
.pch.pch-stash-open .pch-deco.pch-stash:focus-visible {
  filter: drop-shadow(0 0 8px rgba(255, 214, 0, 0.95)) brightness(1.08);
  outline: none;
}

/* ---- Frosty kitchen --------------------------------------------------------------------- */
.pch-frost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4; /* above the kitchen furniture, below the cats */
  opacity: 0;
  transition: opacity 0.6s linear;
  overflow: hidden;
  container-type: size;
  --fr: 0;
  backdrop-filter: saturate(calc(1 - var(--fr) * 0.55)) brightness(calc(1 + var(--fr) * 0.06));
}
.pch-frost.on {
  opacity: calc(var(--fr) * 1);
}
/* icy white edges creeping in from the corners and walls, and a cold blue tint */
.pch-frost::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 calc(var(--fr) * 26px) calc(var(--fr) * 10px) rgba(255, 255, 255, 0.95),
    inset 0 0 0 calc(var(--fr) * 3px) #bfe3ff;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) calc(var(--fr) * 40%)),
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) calc(var(--fr) * 40%)),
    radial-gradient(circle at 0 100%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) calc(var(--fr) * 30%)),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) calc(var(--fr) * 30%)),
    rgba(110, 170, 235, calc(var(--fr) * 0.28));
}
/* icicles along the ceiling */
.pch-frost::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--fr) * 26px);
  background: repeating-linear-gradient(90deg, #f4fbff 0 5px, transparent 5px 12px);
  filter: drop-shadow(0 2px 0 #8cc4ec);
  -webkit-mask: linear-gradient(180deg, #000 35%, transparent);
  mask: linear-gradient(180deg, #000 35%, transparent);
}
/* a few drifting snowflakes once it's properly cold */
.pch-frost i {
  position: absolute;
  top: -6px;
  width: 4px;
  height: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(150, 190, 220, 0.6);
  opacity: calc((var(--fr) - 0.4) * 2);
  animation: pch-snow 5s linear infinite;
}
.pch-frost i:nth-child(1) { left: 14%; animation-delay: -1s; }
.pch-frost i:nth-child(2) { left: 38%; animation-delay: -3.2s; animation-duration: 6s; }
.pch-frost i:nth-child(3) { left: 63%; animation-delay: -2.1s; }
.pch-frost i:nth-child(4) { left: 86%; animation-delay: -4.4s; animation-duration: 6.5s; }
@keyframes pch-snow {
  from { transform: translate(0, 0); }
  50% { transform: translate(8px, 50cqh); }
  to { transform: translate(-4px, 100cqh); }
}
.pch-frosttoast {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  padding: 5px 12px;
  white-space: nowrap;
  background: #e8f6ff;
  color: #10324a;
  border: 3px solid #1b1715;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #1b1715;
  font: 800 12px/1.2 system-ui, -apple-system, sans-serif;
  cursor: pointer;
  animation: pch-toastpulse 1.2s ease-in-out infinite alternate;
}
.pch-frosttoast[hidden] {
  display: none;
}
@keyframes pch-toastpulse {
  to { box-shadow: 3px 3px 0 #1b1715, 0 0 0 4px rgba(127, 211, 255, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .pch-frost i, .pch-frosttoast { animation: none; }
}

/* ---- Baking bread ----------------------------------------------------------------------- */
/* empty when nothing's baking */
.pch-ovendoor:not(.baking):not(.ready) .pch-ovenin .dish {
  display: none;
}
/* baking: pale dough, slowly rising */
.pch-ovendoor.baking .pch-ovenin .dish {
  background: #f1dcae;
  box-shadow: inset 0 3px 0 #fff2d0;
  transform-origin: 50% 100%;
  animation: pch-rise 20s ease-in-out infinite alternate;
}
@keyframes pch-rise {
  from { transform: scale(0.8, 0.6); }
  to { transform: scale(1, 1); }
}
/* ready: golden loaf you can grab */
.pch-ovendoor.ready .pch-ovenin .dish {
  background: #c98a4a;
  box-shadow: inset 0 3px 0 #e8b06a;
  cursor: grab;
  filter: drop-shadow(0 0 4px rgba(255, 200, 80, 0.9));
}
/* ready and still shut: the oven light blinks */
.pch-ovendoor.ready:not(.open) .pch-ovenleaf i::after {
  animation: pch-ovenblink 0.8s steps(2) infinite;
}
.pch-ovendoor.ready:not(.open) {
  animation: pch-ovenglow 0.8s steps(2) infinite;
}
@keyframes pch-ovenblink {
  50% { background: #fff36b; box-shadow: 0 0 8px #ffd400; }
}
@keyframes pch-ovenglow {
  50% { filter: drop-shadow(0 0 6px rgba(255, 170, 0, 0.9)); }
}
/* the loaf cooling on the counter */
.pch-loaf {
  position: absolute;
  pointer-events: none;
}
.pch-loaf[hidden] {
  display: none;
}
.pch-loaf svg {
  display: block;
}
.pch-loaf i {
  position: absolute;
  bottom: 90%;
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.75);
  opacity: 0;
  animation: pch-loafsteam 2.4s ease-out infinite;
}
.pch-loaf i:nth-of-type(1) { left: 25%; }
.pch-loaf i:nth-of-type(2) { left: 50%; animation-delay: -0.8s; }
.pch-loaf i:nth-of-type(3) { left: 72%; animation-delay: -1.6s; }
@keyframes pch-loafsteam {
  0% { opacity: 0; transform: translate(0, 0); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(3px, -16px); }
}
@media (prefers-reduced-motion: reduce) {
  .pch-ovendoor.baking .pch-ovenin .dish,
  .pch-ovendoor.ready:not(.open),
  .pch-ovendoor.ready:not(.open) .pch-ovenleaf i::after,
  .pch-loaf i { animation: none; }
}

/* Toolbar lives inside the Catpops' Patience box (see js/99-hud-toolbar.js) */
.pch-pat.pch-pat-hasbar { width: 232px; }
.pch-pat .pch-bar {
  pointer-events: auto;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  align-items: center;
  gap: 5px !important;
  padding: 8px 0 0 !important;
  margin-top: 8px;
  border-top: 2px dashed rgba(27, 23, 21, 0.25);
}
.pch-pat .pch-bar .pch-btn {
  font: 700 11px/1 system-ui, sans-serif !important;
  padding: 5px 7px !important;
  border-width: 2px !important;
  box-shadow: 2px 2px 0 #1b1715 !important;
  white-space: nowrap;
}
.pch-pat .pch-bar .pch-clock { font-size: 11px; padding: 5px 8px; flex: 1 0 100%; text-align: center; }
.pch-pat .pch-bar .pch-toggle { font-size: 11px; padding: 4px 8px 4px 5px; gap: 5px; border-width: 2px; box-shadow: 2px 2px 0 #1b1715; }
.pch-pat .pch-bar .pch-toggle span:last-child { font-size: 11px; }
.pch-pat .pch-bar [hidden] { display: none !important; }
/* House log and score panels open just under the box */
.pch.pch-hud .pch-log, .pch > .pch-log {
  position: absolute;
  right: 12px;
  top: calc(var(--pch-pat-h, 150px) + 22px);
  width: min(340px, calc(100% - 24px));
  max-width: none;
  max-height: 60%;
  overflow: auto;
  margin: 0;
  z-index: 9;
  box-sizing: border-box;
}
.pch > .pch-log[hidden] { display: none; }

/* Achievement toast shows inside the box, not over the page */
.pch-pat .pch-msc-toast {
  position: static;
  transform: none;
  animation: pch-toastfade 0.35s ease-out;
  max-width: none;
  margin-top: 8px;
  padding: 6px 8px;
  border-width: 2px;
  box-shadow: none;
  background: #fff;
  font-size: 12px;
}
.pch-pat .pch-msc-toast strong { font-size: 14px; }
@keyframes pch-toastfade { from { opacity: 0; } }

/* "What goes on in here?" matches the Patience box width */
.pch.pch-hud .pch-log.pch-about, .pch > .pch-log.pch-about { width: 232px; max-width: calc(100% - 24px); font-size: 12px; }
.pch-about li { gap: 6px; }

/* No captions while a cat is climbing a pole */
.pch-climb .pch-bubble { display: none !important; }

/* Dirty washing poking out of the hamper (more of it as the hamper fills) */
.pch-hamperpile { position: absolute; pointer-events: none; overflow: visible; }
.pch-hamperpile i { position: absolute; display: none; border: 1px solid rgba(27, 23, 21, .6); box-sizing: border-box; }
.pch-hamperpile i:nth-child(1) { left: 6%; top: 30%; width: 20%; height: 130%; background: #9a7584; transform: rotate(-12deg); }
.pch-hamperpile i:nth-child(2) { left: 55%; top: 15%; width: 34%; height: 40%; background: #6b7f99; }
.pch-hamperpile i:nth-child(3) { left: 22%; top: -10%; width: 40%; height: 45%; background: #c7b48a; }
.pch-hamperpile i:nth-child(4) { left: 60%; top: -30%; width: 30%; height: 55%; background: #7d6f5a; transform: rotate(18deg); }
.pch-hamperpile i:nth-child(5) { left: 10%; top: -45%; width: 38%; height: 50%; background: #8e9e6f; }
.pch-hamperpile i:nth-child(6) { left: 82%; top: 40%; width: 18%; height: 160%; background: #b07a5a; transform: rotate(10deg); }
.pch-hamperpile.lv1 i:nth-child(1) { display: block; }
.pch-hamperpile.lv2 i:nth-child(-n+2) { display: block; }
.pch-hamperpile.lv3 i:nth-child(-n+4) { display: block; }
.pch-hamperpile.lv4 i { display: block; }

/* Hall Christmas tree: the lights twinkle */
.pch-xmastree svg rect[width="0.8"] { animation: pch-twinkle 1.6s steps(2) infinite; }
.pch-xmastree svg rect[width="0.8"]:nth-of-type(3n) { animation-delay: -0.5s; }
.pch-xmastree svg rect[width="0.8"]:nth-of-type(3n+1) { animation-delay: -1.1s; }
@keyframes pch-twinkle { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .pch-xmastree svg rect { animation: none !important; } }
.pch-deco.pch-xmastree { transform-origin: 100% 100%; transition: rotate 0.45s cubic-bezier(.55, 0, .9, .55); }
.pch-deco.pch-xmastree.pch-xwob { animation: pch-xwob 0.6s steps(6); }
.pch-deco.pch-xmastree.pch-xmasdown { rotate: 89deg; }
@keyframes pch-xwob { 25% { rotate: -4deg; } 75% { rotate: 4deg; } }
.pch-bauble { position: absolute; z-index: 6; border-radius: 50%; border: 1px solid #1b1715; box-sizing: border-box; pointer-events: none; transition: transform 0.9s cubic-bezier(.4, 0, .9, .5), opacity 0.8s; }

/* Supplies cupboard under the grooming-room stairs: tools and cat supplies */
.pch-cup2 .pch-cupin .hammer { left: 10%; top: 16%; width: 5%; height: 30%; background: #a0622d; }
.pch-cup2 .pch-cupin .hammer::after { content: ""; position: absolute; left: -110%; top: -8%; width: 320%; height: 18%; background: #8f969e; border: 1px solid #1b1715; box-sizing: border-box; }
.pch-cup2 .pch-cupin .scoop { left: 22%; top: 20%; width: 12%; height: 9%; background: #ff7ab0; border: 1px solid #1b1715; box-sizing: border-box; }
.pch-cup2 .pch-cupin .scoop::after { content: ""; position: absolute; left: 90%; top: 25%; width: 70%; height: 40%; background: #ff7ab0; border: 1px solid #1b1715; box-sizing: border-box; }
.pch-cup2 .pch-cupin .tools { left: 6%; bottom: 0; width: 40%; height: 18%; background: #d23a3a; border: 2px solid #1b1715; border-bottom: 0; box-sizing: border-box; }
.pch-cup2 .pch-cupin .tools::after { content: ""; position: absolute; left: 30%; top: -45%; width: 40%; height: 45%; border: 2px solid #1b1715; border-bottom: 0; box-sizing: border-box; }
.pch-cup2 .pch-cupin .litter { left: 48%; bottom: 0; width: 26%; height: 40%; background: #7fd3ff; border: 2px solid #1b1715; border-bottom: 0; box-sizing: border-box; border-radius: 3px 3px 0 0; }
.pch-cup2 .pch-cupin .litter::after { content: ""; position: absolute; left: 12%; top: 30%; width: 76%; height: 22%; background: #fffdf4; }
.pch-cup2 .pch-cupin .tins { right: 4%; bottom: 0; width: 18%; height: 16%; background: #ffd400; border: 2px solid #1b1715; border-bottom: 0; box-sizing: border-box; }
.pch-cup2 .pch-cupin .tins::after { content: ""; position: absolute; left: -2px; bottom: 100%; width: calc(100% + 4px); height: 100%; background: #3fb54a; border: 2px solid #1b1715; border-bottom: 0; box-sizing: border-box; }
/* this door slides right, along under the stairs (keeps the floor in front clear) */
.pch-cup2.open .pch-cupdoor { transform: translateX(100%) !important; }

/* Phones on their side only (phones held upright see the "turn sideways" card).
   Desktop and tablets keep the room names and the full-size Patience box.
   - Room names hidden: the rooms are easy to tell apart, and space is tight.
   - Patience box drawn small at its real size (no scale transform), so the
     "What goes on in here?" box and the House log open right under it. */
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  .pch .pch-label { display: none !important; }

  .pch .pch-pat,
  .pch .pch-pat.pch-pat-hasbar {
    transform: none;
    width: 126px;
    top: 5px;
    right: max(5px, env(safe-area-inset-right));
    padding: 4px 6px 5px;
    border-width: 2px;
    border-radius: 6px;
    box-shadow: 2px 2px 0 #1b1715;
  }
  .pch .pch-pat-head span { font-size: 7px; letter-spacing: 0.03em; }
  .pch .pch-pat-num { font-size: 12px; }
  .pch .pch-pat-bar { margin-top: 2px; }
  .pch .pch-pat-mood { display: none; }

  .pch .pch-pat .pch-bar {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 3px !important;
    padding: 4px 0 0 !important;
    margin-top: 4px;
    border-top-width: 1px;
  }
  .pch .pch-pat .pch-bar > * { flex: none !important; }
  .pch .pch-pat .pch-bar .pch-clock { font-size: 8px; padding: 2px 4px; white-space: normal; line-height: 1.2; }
  .pch .pch-pat .pch-bar .pch-btn {
    font: 700 8.5px/1.1 system-ui, sans-serif !important;
    padding: 2px 4px !important;
    border-width: 1.5px !important;
    box-shadow: 1px 1px 0 #1b1715 !important;
    min-height: 0 !important;
    margin: 0 !important;
    width: 100%;
    text-align: left;
  }
  .pch .pch-pat .pch-bar .pch-btn b { font-size: 7.5px !important; min-width: 0 !important; padding: 0 3px !important; margin-left: 2px !important; line-height: 1.3 !important; }
  .pch .pch-pat .pch-bar .pch-toggle {
    font-size: 8.5px;
    padding: 2px 5px 2px 3px;
    gap: 3px;
    border-width: 1.5px;
    box-shadow: 1px 1px 0 #1b1715;
    min-height: 0;
  }
  .pch .pch-pat .pch-bar .pch-toggle span:last-child { font-size: 8.5px; }
  .pch .pch-pat .pch-bar .pch-toggle { justify-content: flex-start; }
  .pch .pch-pat .pch-bar .pch-toggle .pch-sw { transform: scale(0.6); margin: -4px -7px -4px -5px; }
  .pch .pch-pat .pch-bar .pch-btn .pch-ico { font-size: 9px; margin-right: 2px; }
  .pch .pch-pat .pch-msc-toast { font-size: 9px; padding: 3px 5px; margin-top: 4px; }
  .pch .pch-pat .pch-msc-toast strong { font-size: 10px; }

  /* Panels under the box: start just below it, never run off the bottom */
  .pch.pch-hud .pch-log, .pch > .pch-log {
    right: max(5px, env(safe-area-inset-right));
    top: calc(var(--pch-pat-bottom, 120px) + 8px);
    width: min(240px, calc(100% - 10px));
    max-height: calc(100% - var(--pch-pat-bottom, 120px) - 14px);
    font-size: 9.5px;
  }
  .pch.pch-hud .pch-log.pch-about, .pch > .pch-log.pch-about { width: 126px; font-size: 9px; padding: 5px 8px; margin-top: 0; }
  .pch.pch-hud .pch-log.pch-about[open], .pch > .pch-log.pch-about[open] { width: min(220px, calc(100% - 10px)); }
  .pch .pch-about summary { font-size: 7.5px; letter-spacing: 0.04em; }
  .pch .pch-about p, .pch .pch-about li, .pch .pch-about li p { font-size: 9px; line-height: 1.35; }

  /* Catpops 25% smaller so his head clears the ceiling (shrinks from his feet; his speech
     bubble and name tag keep their normal size) */
  .pch .pch-dad .pch-inner { scale: 0.75; transform-origin: 50% 100%; }
  .pch .pch-dad .pch-inner > .pch-bubble,
  .pch .pch-dad .pch-inner > .pch-name { scale: 1.3333; transform-origin: 50% 100%; }
}

