.london-life {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  container-type: inline-size;
  --bear-cycle: 23s;
}
.london-eye {
  position: absolute;
  left: 20.45%;
  top: 21.25%;
  width: 8.7cqw;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scaleX(.72);
}
.london-eye-rim, .london-eye-support {
  position: absolute;
  inset: 0;
}
.london-eye-support::before, .london-eye-support::after {
  content: "";
  position: absolute;
  left: 49%;
  top: 49%;
  width: 2%;
  height: 54%;
  background: linear-gradient(90deg, #874d43, #ffc990 65%, #f7aac0);
  transform: rotate(21deg);
  transform-origin: top center;
}
.london-eye-support::after { transform: rotate(-26deg); }
.london-eye-rim {
  border: .13cqw solid #ffc190;
  border-radius: 50%;
  box-shadow: 0 0 .5cqw #fd96627a, inset 0 0 .2cqw #ffcc7a79;
  animation: london-wheel 98s linear infinite;
}
.london-eye-rim span {
  position: absolute;
  inset: 0 49.7%;
  rotate: var(--angle);
}
.london-eye-rim span::before {
  content: "";
  position: absolute;
  inset: 0 0 50%;
  background: #e8af99a6;
}
.london-eye-rim b {
  position: absolute;
  top: 0;
  left: 50%;
  width: .57cqw;
  height: .38cqw;
  margin: -.19cqw 0 0 -.285cqw;
  border: 1px solid #ffc18b;
  background: #9e6d6c;
  border-radius: 45%;
  box-shadow: 0 0 .31cqw #ffd082ad;
  transform: rotate(calc(-1 * var(--angle)));
  animation: london-cabin 98s linear infinite;
}
.london-eye-hub {
  position: absolute;
  inset: 47.5%;
  border-radius: 50%;
  background: #ffcb97;
  box-shadow: 0 0 .3cqw #ffc68c;
}
@keyframes london-wheel { to { transform: rotate(360deg); } }
@keyframes london-cabin { to { transform: rotate(calc(-360deg - var(--angle))); } }

.london-chimney {
  position: absolute;
  left: var(--x);
  top: var(--y);
}
.london-chimney i {
  position: absolute;
  left: -2cqw;
  bottom: -1.2cqw;
  width: 4cqw;
  height: 2.4cqw;
  background: radial-gradient(ellipse at 42% 61%, #f8dcbba1, #c9dbea58 40%, transparent 73%),
    radial-gradient(ellipse at 62% 37%, #e2ebf782, #b9cee452 37%, transparent 66%);
  filter: blur(.12cqw);
  opacity: 0;
  animation: london-smoke 6.6s var(--phase) linear infinite;
}
@keyframes london-smoke {
  0% { transform: scale(.12); opacity: 0; }
  11% { opacity: .8; }
  50% { transform: translate(10%, -94%) scale(.7) rotate(-9deg); opacity: .65; }
  100% { transform: translate(57%, -248%) scale(1.45) rotate(-28deg); opacity: 0; }
}

.london-light {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 1.65cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff8d7 5%, var(--color) 17%, transparent 66%);
  mix-blend-mode: screen;
  opacity: .16;
  animation: london-twinkle var(--period) var(--phase) ease-in-out infinite alternate;
}
@keyframes london-twinkle { 70%,100% { opacity: .9; scale: 1.15; } }
.london-bus-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  mix-blend-mode: screen;
  animation: london-headlights 19s -4s ease-in-out infinite;
}
.london-bus-glow i, .london-bus-glow b {
  position: absolute;
  width: 3cqw;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff9dc 4%, #ffc24bbd 22%, transparent 68%);
  left: 77.05%;
  top: 58.4%;
}
.london-bus-glow i + i { left: 79.33%; }
.london-bus-glow b {
  left: 78.3%;
  top: 61.45%;
  width: 5.2cqw;
  height: 1.3cqw;
  background: radial-gradient(ellipse, #ffbe5d95, transparent 70%);
}
@keyframes london-headlights {
  0%, 19%, 30%, 100% { opacity: 0; }
  22%, 27% { opacity: .96; }
  24% { opacity: .25; }
}

.london-window {
  position: absolute;
  top: 49.15%;
  width: 6.1%;
  height: 12%;
  overflow: hidden;
  clip-path: polygon(0 100%, 1% 28%, 8% 17%, 22% 7%, 50% 0, 78% 7%, 93% 17%, 99% 29%, 100% 100%);
  mask-image: linear-gradient(90deg, #000 25%, transparent 25% 29%, #000 29% 50%, transparent 50% 54%, #000 54% 76%, transparent 76% 80%, #000 80%),
    linear-gradient(#000 37%, transparent 37% 41%, #000 41% 70%, transparent 70% 74%, #000 74%);
  mask-composite: intersect;
  mix-blend-mode: multiply;
}
.london-window-west { left: 36.75%; }
.london-window-east { left: 57.35%; --window-offset: -338%; }
.london-window i {
  position: absolute;
  bottom: -20%;
  left: -102%;
  width: 91%;
  height: 116%;
  background: #49281e;
  mask: url("north-village/santa-presents.webp") center bottom / contain no-repeat;
  opacity: .8;
  animation: london-santa-walk 27s linear infinite, london-santa-step .86s ease-in-out infinite alternate;
}
@keyframes london-santa-walk {
  0%, 5% { left: calc(-110% + var(--window-offset, 0%)); transform: scaleX(-1); }
  42%, 56% { left: calc(460% + var(--window-offset, 0%)); transform: scaleX(-1); }
  57% { transform: scaleX(1); }
  94%, 100% { left: calc(-110% + var(--window-offset, 0%)); transform: scaleX(1); }
}
@keyframes london-santa-step { to { translate: 0 -5%; } }

.london-sleigh {
  position: absolute;
  left: 26.2%;
  top: 76.9%;
  width: 17%;
  height: 10.7%;
}
.london-sleigh-body, .london-reindeer {
  position: absolute;
  bottom: 0;
  height: 100%;
  background-repeat: no-repeat;
}
.london-sleigh::before, .london-bear::before {
  content: "";
  position: absolute;
  inset: auto 7% -6%;
  height: 18%;
  background: radial-gradient(ellipse, #3334598c, #554d702b 43%, transparent 70%);
}
.london-sleigh-body {
  width: 53%;
  background: url("london-life/sleigh.webp") center bottom / contain no-repeat;
}
.london-hitch {
  position: absolute;
  width: 29%;
  top: 62%;
  left: 44%;
  border-top: .12cqw solid #bc894a;
  rotate: -10deg;
}
.london-reindeer {
  right: 0;
  width: 53%;
  aspect-ratio: 1.25;
  background: url("london-life/reindeer.webp") 0 0 / 200% 100% no-repeat;
  transform-origin: 50% 98%;
  animation: london-reindeer-idle 10.6s steps(1, end) infinite, london-reindeer-breath 3.4s ease-in-out infinite alternate;
}
@keyframes london-reindeer-idle {
  0%, 100% { background-position-x: 0; }
  32%, 54% { background-position-x: 100%; }
  46%, 66% { background-position-x: 0; }
}
@keyframes london-reindeer-breath { to { scale: 1 1.035; } }

.london-door-interior, .london-door-panel {
  position: absolute;
  inset: 0;
  clip-path: polygon(47.4% 67.6%, 47.4% 56.8%, 47.65% 54.6%, 48.3% 52.7%,
    49.25% 51.45%, 50.1% 51.3%, 51.2% 51.6%, 52.15% 53%, 52.65% 55%, 52.8% 57%, 52.8% 67.6%);
  opacity: 0;
}
.london-door-interior {
  background: radial-gradient(ellipse 3% 10% at 50% 57%, #7b452c, #26142c);
  animation: london-door-room var(--bear-cycle) step-end infinite;
}
.london-door-panel {
  transform-origin: 47.4% 67.6%;
  background: url("london-life/scene.webp") center / 100% 100% no-repeat;
  animation: london-door-panel var(--bear-cycle) ease-in-out infinite;
}
@keyframes london-door-room {
  0%, 62%, 100% { opacity: 0; }
  30% { opacity: 1; }
}
@keyframes london-door-panel {
  0%, 29.9%, 62%, 100% { opacity: 0; scale: 1 1; }
  30%, 61.8% { opacity: 1; scale: 1 1; }
  36%, 58% { opacity: 1; scale: .14 1; }
}
.london-bear-stage {
  position: absolute;
  inset: 0;
}
.london-bear {
  position: absolute;
  width: 4.7cqw;
  aspect-ratio: .84;
  opacity: 0;
  transform: translate(-50%, -98%);
}
.london-bear i {
  position: absolute;
  inset: 0;
  background: var(--bear-image) center bottom / contain no-repeat;
  transform-origin: center 94%;
  animation: london-bear-steps .52s ease-in-out infinite;
}
.london-bear-gift {
  --bear-image: url("london-life/bear-gift.webp");
  animation: london-bear-delivers var(--bear-cycle) linear infinite;
}
.london-bear-small {
  --bear-image: url("london-life/bear-small.webp");
  width: 3.9cqw;
  animation: london-bear-leaves var(--bear-cycle) linear infinite;
}
.london-bear-small i { animation-delay: -.23s; }
@keyframes london-bear-steps {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-4%) rotate(5deg); }
}
@keyframes london-bear-delivers {
  0%, 5% { left: 58%; top: 85%; opacity: 0; }
  9% { opacity: 1; }
  21% { left: 54.4%; top: 77.8%; }
  32% { left: 51.1%; top: 72.8%; }
  41% { left: 50.1%; top: 69%; opacity: 1; }
  48%, 100% { left: 50.1%; top: 64.7%; opacity: 0; }
}
@keyframes london-bear-leaves {
  0%, 53% { left: 50%; top: 64.5%; opacity: 0; }
  61% { left: 49.7%; top: 70.3%; opacity: 1; }
  74% { left: 46.9%; top: 77.3%; }
  90% { left: 46%; top: 86%; opacity: 1; }
  97%, 100% { left: 45.1%; top: 89.7%; opacity: 0; }
}

.london-bird {
  position: absolute;
  width: 3.15cqw;
  height: 3.2cqw;
  left: 60.85%;
  top: 79.3%;
  transform: translate(-50%,-98%);
  animation: london-bird-route 19s linear infinite;
}
.london-bird i, .london-bird b {
  position: absolute;
  inset: 0;
  background: url("london-life/robin-perch.webp") center bottom / contain no-repeat;
}
.london-bird i { animation: london-bird-perch 19s step-end infinite, london-bird-nod 1.15s ease-in-out infinite; }
.london-bird b {
  background-image: url("london-life/robin-flight.webp");
  animation: london-bird-fly 19s step-end infinite, london-bird-flap .25s ease-in-out infinite alternate;
}
.london-bird span {
  position: absolute;
  top: -35%;
  left: 15%;
  color: #fff0b9;
  font: 700 1.2cqw/1 sans-serif;
  text-shadow: 0 0 .32cqw #7d4518;
  opacity: 0;
  animation: london-bird-song 19s 4.2s linear infinite;
}
@keyframes london-bird-route {
  0% { left: 110%; top: 43%; }
  7% { left: 79%; top: 62%; }
  13% { left: 65%; top: 76%; }
  16%, 58% { left: 60.85%; top: 79.3%; }
  65% { left: 53%; top: 75%; }
  75% { left: 28%; top: 56%; }
  89%, 100% { left: -6%; top: 27%; }
}
@keyframes london-bird-perch { 0%, 58%, 100% { opacity: 0; } 16% { opacity: 1; } }
@keyframes london-bird-fly { 0%, 58%, 100% { opacity: 1; } 16% { opacity: 0; } }
@keyframes london-bird-nod { 0%, 70%, 100% { rotate: 0deg; } 78% { rotate: -6deg; } }
@keyframes london-bird-flap { from { scale: 1 .77; } to { scale: 1 1.05; } }
@keyframes london-bird-song {
  0%, 8%, 100% { opacity: 0; translate: 0 0; }
  1.5% { opacity: .91; }
  7.9% { opacity: 0; translate: -50% -65%; }
}

.london-sound.town-snow-toggle { right: calc(clamp(8px, 2vw, 18px) + 44px); }
@media (prefers-reduced-motion: reduce) {
  .london-life * { animation: none !important; }
  .london-bird b { opacity: 0; }
  .london-bird i { opacity: 1; }
  .london-window i { left: 12%; }
  .london-window-east i { opacity: 0; }
  .london-bear-gift { left: 54.4%; top: 77.8%; opacity: 1; }
}
