.portrait-wrap.wojtek-watches-host {
  position: relative;
  width: min(233px, 100%);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 0.85rem;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 43%, rgba(231, 181, 50, 0.16), rgba(231, 181, 50, 0.04) 58%, transparent 72%),
    #111;
}

/* Never flash the fallback portrait before the interactive layer is ready. */
.portrait-wrap > .portrait,
.wojtek-watches-host > .portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(18%);
  pointer-events: none;
}

/* Small in-circle loader while the embedded portrait boots. */
.portrait-wrap.wojtek-watches-host::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid rgba(231, 181, 50, 0.22);
  border-top-color: var(--accent-soft, #e7b532);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(231, 181, 50, 0.12);
  animation: wojtekPortraitLoaderSpin 0.8s linear infinite;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.wojtek-watches-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  transition: opacity 220ms ease;
}

.wojtek-watches-host.is-loaded::after {
  opacity: 0;
  transform: scale(0.78);
  animation-play-state: paused;
}

.wojtek-watches-host.is-loaded .wojtek-watches-frame {
  opacity: 1;
}

@keyframes wojtekPortraitLoaderSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-wrap > .portrait,
  .wojtek-watches-frame,
  .portrait-wrap.wojtek-watches-host::after {
    transition: none;
  }

  .portrait-wrap.wojtek-watches-host::after {
    animation-duration: 1.4s;
  }
}
