/* One shared color makes the city fade into the atmosphere below it. */
:root {
  --scene-floor: #14282e;
  --scene-fade-height: clamp(150px, 14vw, 220px);
  --scene-fade: linear-gradient(
    180deg,
    #14282e00 0%,
    #14282e04 15%,
    #14282e0f 35%,
    #14282e33 60%,
    #14282e9e 82%,
    #14282ef0 94%,
    var(--scene-floor) 100%
  );
}
/* Clean CSS sky; the city artwork contains only transparent cutouts. */
.hero.menu-hero {
  display: block;
  height: auto;
  min-height: max(620px, var(--scene-min-height, 0px));
  min-height: max(620px, min(100svh, 1080px), var(--scene-min-height, 0px));
  max-height: none;
  background:
    var(--scene-fade) bottom / 100% var(--scene-fade-height) no-repeat,
    radial-gradient(ellipse at 82% 48%, #71887522, #71887500 58%),
    linear-gradient(180deg, #10262e 0%, #1b3943 46%, #2c4951 85%, #233e46 100%);
}
/* The background and both actors share one coordinate system. */
.menu-scene {
  --scene-default-bottom: -12vw;
  position: absolute;
  z-index: 0;
  isolation: isolate;
  left: 0;
  bottom: var(--scene-bottom, var(--scene-default-bottom));
  width: 100%;
  aspect-ratio: 1672 / 941;
  pointer-events: none;
}
.menu-scene picture,
.menu-scene .hero-art {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: fill;
  mask-image: none;
  -webkit-mask-image: none;
  z-index: 0;
}
/* Fade the artwork, keeping the separately animated cats fully visible. */
.menu-scene picture::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  bottom: calc(0px - var(--scene-bottom, var(--scene-default-bottom)));
  height: var(--scene-fade-height);
  background: var(--scene-fade);
}
/* Native SVG actors have clean edges at every device pixel ratio. */
.menu-detail {
  position: absolute;
  z-index: 1;
  display: block;
  height: auto;
}

.menu-detail--bulldog {
  left: 6.937799%;
  top: 42.933050%;
  width: 5.879702%;
  /* Follow the chimney and its projecting cornice, keeping the dog behind it. */
  clip-path: polygon(
    34.076% 0%,
    34.076% 41.786%,
    39.468% 45.476%,
    40.892% 48.571%,
    40.892% 56.667%,
    36.925% 60%,
    36.925% 92.619%,
    41.197% 95.952%,
    43.943% 100%,
    100% 100%,
    100% 0%
  );
}
.menu-detail--ginger {
  left: 74.940191%;
  top: 62.061637%;
  width: 6.921759%;
}
.menu-actor {
  position: absolute;
  z-index: 1;
  aspect-ratio: 1254 / 1470;
}
.menu-actor--murko {
  left: 8.19378%;
  top: 42.24442%;
  width: 16.5%;
}
.menu-actor--mira {
  left: 82.12679%;
  /* Lift four landscape source pixels onto the top of the coping. */
  top: 40.87673%;
  width: 15.75%;
  transform: scaleX(-1);
}
.menu-actor img,
.menu-actor canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.menu-actor canvas {
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.menu-actor.is-ready canvas {
  visibility: visible;
}
.menu-actor.is-ready img {
  visibility: hidden;
}
[data-hero-scene='custom'] .menu-actor,
[data-hero-scene='custom'] .menu-detail {
  display: none;
}
.menu-hero::after {
  content: none;
}
/* One continuous backdrop across story, chapters and credits. */
.story-backdrop {
  display: flow-root;
  background:
    linear-gradient(
      180deg,
      var(--scene-floor),
      #14282e00 260px,
      #101b1e00 calc(100% - 160px),
      var(--ink)
    ),
    radial-gradient(ellipse at 88% 14%, #2d505a80, #2d505a00 52%),
    radial-gradient(ellipse at 8% 57%, #3c534366, #3c534300 48%),
    radial-gradient(ellipse at 85% 88%, #24495170, #24495100 42%),
    var(--ink);
}
.menu-hero .hero-copy {
  padding-top: var(--hero-copy-top, clamp(140px, 24svh, 280px));
  padding-bottom: 0;
  text-shadow: 0 2px 12px #061820;
}
.menu-hero .hero-bottom {
  position: absolute;
  inset: auto 0 14px;
  z-index: 3;
  min-height: 0;
  padding: 8px 20px;
  background: none;
}
@media (max-width: 650px), (orientation: portrait) {
  .hero.menu-hero {
    min-height: max(580px, var(--scene-min-height, 0px));
    min-height: max(580px, min(100svh, 1100px), var(--scene-min-height, 0px));
  }
  .menu-hero .hero-copy {
    padding-top: var(--hero-copy-top, clamp(115px, 22svh, 270px));
  }
  .menu-scene {
    --scene-default-bottom: -20vw;
    aspect-ratio: 1024 / 1536;
  }

  .menu-detail--bulldog {
    left: 5.371094%;
    top: 51.041667%;
    width: 10.286197%;
    /* The portrait wall has a different outline, including the brick joints. */
    clip-path: polygon(
      27.817% 0%,
      28.007% 4.667%,
      26.298% 11.556%,
      23.925% 16.333%,
      22.69% 18.444%,
      25.444% 20.556%,
      27.912% 24.444%,
      27.912% 45%,
      28.577% 49.778%,
      26.013% 53.556%,
      23.355% 56.333%,
      26.203% 59%,
      27.817% 63.667%,
      27.817% 68.889%,
      26.298% 73.444%,
      27.342% 77.444%,
      26.868% 82%,
      24.874% 86.889%,
      22.501% 89.667%,
      24.779% 92.556%,
      27.437% 96.444%,
      27.912% 100%,
      100% 100%,
      100% 0%
    );
  }
  .menu-detail--ginger {
    left: 59.960938%;
    top: 58.593750%;
    width: 11.577592%;
  }
  .menu-actor--murko {
    left: 19.72656%;
    top: 54.98177%;
    width: 26.94141%;
  }
  .menu-actor--mira {
    left: 73.64844%;
    /* A two-pixel lift keeps her soles on the portrait coping's upper edge. */
    top: 54.86003%;
    width: 25.7168%;
  }
}
