.bank-exchange-preview {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: layout style paint;
}

.bank-exchange-preview--viewport {
  position: fixed;
  z-index: 1000;
}

.bank-exchange-coin,
.bank-exchange-note {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.bank-exchange-coin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #df9c0b;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #fffad0, #ffd040 48%, #d88706);
  box-shadow: inset 0 0 0 2px #fff5a2, 0 3px 8px #c17c1260;
  color: #a46904;
  font: 950 11px/1 Nunito, Arial, sans-serif;
  text-shadow: 0 1px 0 #fff0a8;
}

.bank-exchange-note {
  width: 110px;
  aspect-ratio: 2.75 / 1;
  border: 1px solid #7f8763;
  border-radius: 2px;
  /* Display the front banknote; the bundles above it stay outside the crop. */
  background: #e9e2bb url('/optimized-v1/home-banknotes-lion-100-v1.webp?v=fluid-1') 17% 75% / 130% 149% no-repeat;
  box-shadow: 0 3px 7px #07182c66;
}

.bank-exchange-glow {
  position: absolute;
  width: 88px;
  height: 64px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  background: radial-gradient(ellipse, #c2f1ff77, #63d5fd22 45%, transparent 72%);
  pointer-events: none;
}

@media (max-width: 560px) {
  .bank-exchange-note { width: 88px; }
  .bank-exchange-coin { width: 26px; height: 26px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .bank-exchange-coin,
  .bank-exchange-note { will-change: opacity; }
}
