html[data-home-background="aquarium-cat"] { background: #040809; }
html[data-home-background="aquarium-cat"] :is(.landscape, .home-main, .skip-link) { display: none; }

.home-cat-aquarium {
  display: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #040809;
}

html[data-home-background="aquarium-cat"] .home-cat-aquarium { display: block; }

.home-cat-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, min(112vw, 159.778svh));
  aspect-ratio: 1585 / 992;
  transform: translate(-50%, -50%);
  background: url("assets/home/cat-aquarium-scene-v1.jpg") center / 100% 100% no-repeat;
}

.home-cat-water {
  position: absolute;
  left: 6.81%;
  top: 20.26%;
  width: 70.66%;
  height: 59.67%;
  clip-path: polygon(0 0, 100% 4.8%, 100% 96.8%, 0 100%);
  cursor: crosshair;
  touch-action: manipulation;
  filter: brightness(.62) saturate(.77);
}

.home-cat-actor {
  position: absolute;
  left: 64.984%;
  top: 39.919%;
  width: 35.016%;
  height: 48.589%;
  transform-origin: 65% 88%;
  pointer-events: none;
}

.home-cat-actor img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.home-cat-actor img[data-pose="idle"] { opacity: 1; }
.home-cat-actor[data-pose] img { opacity: 0; }
.home-cat-actor[data-pose="idle"] img[data-pose="idle"],
.home-cat-actor[data-pose="scratch-low"] img[data-pose="scratch-low"],
.home-cat-actor[data-pose="scratch-high"] img[data-pose="scratch-high"],
.home-cat-actor[data-pose="glance"] img[data-pose="glance"] { opacity: 1; }

.home-cat-actor img.home-cat-ear-detail {
  opacity: 1;
  transform-origin: 35% 15%;
  mask-image: radial-gradient(ellipse at 35% 10%, #000 0 5%, transparent 12%);
}
.home-cat-actor img.home-cat-tail-detail {
  opacity: 1;
  transform-origin: 70% 91%;
  mask-image: radial-gradient(ellipse 20% 8% at 52% 91%, #000 30%, transparent 100%);
}

.home-cat-scene > button {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.home-cat-ear { left: 75%; top: 40.8%; width: max(8.5%, 44px); height: max(12%, 44px); }
.home-cat-back { left: 81%; top: 54%; width: 16%; height: 26%; }

.home-cat-scene :is(button, canvas):focus-visible {
  outline: 2px solid #bbd9c3;
  outline-offset: -3px;
  border-radius: 5px;
}

.home-cat-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-aspect-ratio: 1 / 1) {
  .home-cat-scene { width: 134vw; transform: translate(-64%, -50%); }
}
