:root {
  color-scheme: light;
  font-family: Georgia, serif;
  background: #90d6c5;
  color: #38245b;
}
* { box-sizing: border-box; }
body { margin: 0; }
.home {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(#ae9cf5, #ffd3e7 52%, #90d6c5 70%, #57bfae);
}
.party-link {
  position: absolute;
  z-index: 2;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  padding: 0.65rem 0.85rem;
  border: 1px solid #38245b;
  border-radius: 100vw;
  background: #fff1b0;
  color: #38245b;
  font-size: 1rem;
  font-weight: 700;
  text-underline-offset: 0.2em;
}
.scene {
  position: relative;
  width: min(100vw, 150svh);
  margin: 0;
}
.illustration {
  display: block;
  width: 100%;
  height: auto;
}
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: max(44px, 19%);
  height: max(44px, 41%);
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 20%;
  background: transparent;
  color: #fff1bf;
  cursor: pointer;
}
.hotspot:hover { background: #fff5cc12; }
.hotspot:focus-visible, .party-link:focus-visible { outline: 3px solid #38245b; outline-offset: 3px; }
.elephant { --x: 20%; --y: 24%; height: max(44px, 29%); }
.panda { --x: 21%; --y: 64%; }
.marvin { --x: 42%; --y: 57%; }
.dolly { --x: 64%; --y: 56%; }

.flag { --x: 88%; --y: 38%; height: max(44px, 24%); }
.gloria { --x: 85%; --y: 72%; height: max(44px, 29%); }
.burst {
  display: none;
  pointer-events: none;
  position: absolute;
  left: var(--burst-x);
  top: var(--burst-y);
}
.burst.active { display: block; }
.burst i {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  background: #ffe682;
  border: 1px solid #38245b;
  border-radius: 0.18rem;
  animation: scatter 650ms ease-out both;
}
.burst i:nth-child(1) { --x: -4rem; --y: -2rem; }
.burst i:nth-child(2) { --x: -3rem; --y: 2rem; }
.burst i:nth-child(3) { --x: 0.3rem; --y: -3.4rem; }
.burst i:nth-child(4) { --x: 3rem; --y: -2.4rem; }
.burst i:nth-child(5) { --x: 4rem; --y: 0.3rem; }
.burst i:nth-child(6) { --x: 2rem; --y: 3rem; }
@keyframes scatter {
  from { opacity: 1; transform: scale(0.45); }
  to { opacity: 0; transform: translate(var(--x), var(--y)) rotate(95deg); }
}
figcaption {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  max-width: calc(100% - 1rem);
  width: max-content;
  transform: translateX(-50%);
  background: #38245b;
  color: #fff1bf;
  border-radius: 0.6rem;
  font-size: clamp(0.95rem, 2.25vw, 1.2rem);
  text-align: center;
}
figcaption:not(:empty) { padding: 0.55rem 0.8rem; }
@media (prefers-reduced-motion: reduce) {
  .burst.active { display: none; }
}
