.storage-site .bruno-find {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 100px;
  min-height: 44px;
  padding: 6px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #033982;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.bruno-find img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.storage-site .bruno-find:hover {
  background: #edf4fd;
}

.storage-site .bruno-find:focus-visible,
.bruno-close:focus-visible {
  outline: 2px solid #3685e3;
  outline-offset: 3px;
}

.bruno-encounter {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 16px;
  margin: 0;
  border: 0;
  overflow: auto;
  background: transparent;
  color: #fff;
  overscroll-behavior: contain;
}

.bruno-encounter[open] {
  display: grid;
  place-items: center;
}

.bruno-encounter::backdrop {
  background: radial-gradient(ellipse at 50% 45%, #244364f5, #091929fa 76%);
  animation: bruno-backdrop-in .35s ease-out both;
}

@keyframes bruno-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body:has(.bruno-encounter[open]) {
  overflow: hidden;
}

.bruno-filter {
  position: absolute;
  pointer-events: none;
}

.bruno-encounter-scene {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 550px);
  padding: 38px 12px 14px;
}

.bruno-close {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff4d;
  border-radius: 50%;
  background: #ffffff15;
  color: #fff;
  cursor: pointer;
  font: 400 28px/1 system-ui, sans-serif;
}

.bruno-close:hover {
  background: #ffffff32;
}

.bruno-stage {
  position: relative;
  width: min(100%, 370px, 60svh);
  aspect-ratio: 1;
  isolation: isolate;
}

.bruno-portrait {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 14px 20px #0616265c);
}

.bruno-portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bruno-smile,
.bruno-shadow,
.bruno-encounter-copy {
  opacity: 0;
}

.bruno-shadow {
  position: absolute;
  inset: auto 8% -1% 8%;
  height: 12%;
  background: radial-gradient(ellipse, #020a14a6, transparent 68%);
}

.bruno-arrived .bruno-shadow,
.bruno-smiling .bruno-smile,
.bruno-arrived .bruno-encounter-copy {
  opacity: 1;
  transition: opacity .2s ease-out;
}

.bruno-smiling .bruno-approach {
  opacity: 0;
  transition: opacity .2s ease-out;
}

.bruno-smiling .bruno-smile {
  filter: url(#bruno-wag);
}

.bruno-encounter-copy {
  margin-top: 16px;
  text-align: center;
}

.bruno-encounter-copy > span {
  color: #b3d5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.bruno-encounter-copy h2 {
  margin: 5px 0 3px;
  color: #fff;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.12;
}

.bruno-encounter-copy p {
  margin: 0;
  color: #dceafa;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .bruno-encounter::backdrop {
    animation: none;
  }

  .bruno-smiling .bruno-smile {
    filter: none;
  }
}
