/* Shadow coordinates use the visible subject, not the transparent frame edge.
   Cat: 900x720; dog: 640x600; scratcher: 567x567. Percentages preserve
   those contact points at every house size and throughout the existing videos. */
.cozy .scratcher-prop img {
  -webkit-mask: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22567%22%20height%3D%22567%22%20viewBox%3D%220%200%20567%20567%22%3E%3Cpath%20fill%3D%22white%22%20fill-rule%3D%22evenodd%22%20d%3D%22M0%200H567V567H0Z%20M371%20194%20L392%20194%20L391%20223%20L393%20228%20L396%20233%20L400%20239%20L405%20244%20L410%20248%20L417%20251%20L412%20252%20L402%20249%20L396%20246%20L390%20241%20L385%20236%20L381%20231%20L378%20226%20L375%20221%20L373%20215%20L372%20209%20Z%22%2F%3E%3C%2Fsvg%3E') center / 100% 100% no-repeat;
  mask: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22567%22%20height%3D%22567%22%20viewBox%3D%220%200%20567%20567%22%3E%3Cpath%20fill%3D%22white%22%20fill-rule%3D%22evenodd%22%20d%3D%22M0%200H567V567H0Z%20M371%20194%20L392%20194%20L391%20223%20L393%20228%20L396%20233%20L400%20239%20L405%20244%20L410%20248%20L417%20251%20L412%20252%20L402%20249%20L396%20246%20L390%20241%20L385%20236%20L381%20231%20L378%20226%20L375%20221%20L373%20215%20L372%20209%20Z%22%2F%3E%3C%2Fsvg%3E') center / 100% 100% no-repeat;
}
.cozy .unified-story .cat-story-scene .story-scratcher { left: 10%; }
.cozy .unified-story .cat-story-scene .story-scratcher::before,
.cozy .unified-story .cat-story-scene .story-scratcher::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  filter: none;
  z-index: -1;
  pointer-events: none;
}
.cozy .unified-story .cat-story-scene .story-scratcher::before {
  background: radial-gradient(ellipse 32% 4.8% at 66% 89%, #50301c65 0%, #50301c30 40%, #50301c00 100%);
}
.cozy .unified-story .cat-story-scene .story-scratcher::after {
  background: radial-gradient(ellipse 29% 2.8% at 49% 87.8%, #372415a0 0%, #37241565 32%, #37241500 100%);
}
.cozy .cozy-world .house .room.room-cats .cat-motion::before,
.cozy .cozy-world .house .room.room-cats .cat-motion::after,
.cozy .cozy-world .house .room.room-dogs .dog-motion::before,
.cozy .cozy-world .house .room.room-dogs .dog-motion::after,
.cozy .cozy-world .house .room.room-cats .scratcher-prop::before,
.cozy .cozy-world .house .room.room-cats .scratcher-prop::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  filter: none;
  pointer-events: none;
  z-index: -1;
  background: none;
}

/* Broad, soft cast shadows run away from the left window across the floor.
   Their falloff finishes inside the floor, above the wooden front fascia. */
.cozy .cozy-world .house .room.room-cats .cat-motion::before {
  background:
    radial-gradient(ellipse 24% 2.8% at 74% 94%, #50301c38 0%, #50301c1b 48%, #50301c00 100%),
    radial-gradient(ellipse 28% 3.5% at 53% 94%, #50301c42 0%, #50301c20 42%, #50301c00 100%),
    radial-gradient(ellipse 19% 2.5% at 77% 92%, #50301c30 0%, #50301c16 42%, #50301c00 100%);
}
.cozy .cozy-world .house .room.room-cats .cat-motion::after {
  background:
    radial-gradient(ellipse 7% 1.5% at 15.5% 94.8%, #37241599 0%, #37241560 25%, #37241500 100%),
    radial-gradient(ellipse 7% 1.5% at 28% 95.7%, #372415a3 0%, #37241565 25%, #37241500 100%),
    radial-gradient(ellipse 6% 1.5% at 42% 94.6%, #37241585 0%, #37241550 25%, #37241500 100%),
    radial-gradient(ellipse 14% 2% at 53% 92.7%, #37241569 0%, #37241530 35%, #37241500 100%),
    radial-gradient(ellipse 14% 1.7% at 79% 90.3%, #37241565 0%, #3724152b 35%, #37241500 100%);
}
.cozy .cozy-world .house .room.room-dogs .dog-motion::before {
  background:
    radial-gradient(ellipse 21% 2.3% at 76% 91.7%, #50301c40 0%, #50301c20 42%, #50301c00 100%),
    radial-gradient(ellipse 23% 3.2% at 55% 91.5%, #50301c50 0%, #50301c25 45%, #50301c00 100%),
    radial-gradient(ellipse 15% 2.2% at 70% 92.2%, #50301c26 0%, #50301c12 40%, #50301c00 100%);
}
.cozy .cozy-world .house .room.room-dogs .dog-motion::after {
  background:
    radial-gradient(ellipse 7.5% 1.5% at 37.5% 91.2%, #372415a3 0%, #37241565 25%, #37241500 100%),
    radial-gradient(ellipse 5.8% 1.4% at 53% 92.4%, #372415ad 0%, #37241570 25%, #37241500 100%),
    radial-gradient(ellipse 5.5% 1.4% at 67.5% 91.4%, #37241599 0%, #37241560 25%, #37241500 100%),
    radial-gradient(ellipse 11% 2.6% at 51% 89.3%, #37241570 0%, #37241530 40%, #37241500 100%);
}
.cozy .cozy-world .house .room.room-cats .scratcher-prop::before {
  background:
    radial-gradient(ellipse 32% 4.8% at 66% 89%, #50301c65 0%, #50301c30 40%, #50301c00 100%);
}
.cozy .cozy-world .house .room.room-cats .scratcher-prop::after {
  background:
    radial-gradient(ellipse 29% 2.8% at 49% 87.8%, #372415a0 0%, #37241565 32%, #37241500 100%);
}

/* Overhead room lamps give a more compact pool of shade after sunset. */
.cozy[data-time="night"] .cozy-world .house .room.room-cats .cat-motion::before {
  background: radial-gradient(ellipse 30% 3.3% at 43% 94%, #39271d62 0%, #39271d2b 45%, #39271d00 100%);
}
.cozy[data-time="night"] .cozy-world .house .room.room-dogs .dog-motion::before {
  background: radial-gradient(ellipse 23% 3.2% at 51% 91.5%, #39271d66 0%, #39271d30 45%, #39271d00 100%);
}
.cozy[data-time="night"] .cozy-world .house .room.room-cats .scratcher-prop::before {
  background: radial-gradient(ellipse 35% 5% at 46% 89%, #39271d59 0%, #39271d28 40%, #39271d00 100%);
}
