/* Open the photo to the edge of its circular crop in all map representations. */
.person-location-marker .location-person { box-sizing:border-box; overflow:hidden; padding:0; }
.person-location-marker .location-person > .avatar,
.together-map-marker .duet-face > .avatar {
  display:grid; place-items:center; width:100%; height:100%; min-width:0;
  padding:0; margin:0; border:0; border-radius:50%!important; overflow:hidden;
}
.person-location-marker .location-person .avatar img,
.together-map-marker .duet-face .avatar img {
  display:block; width:100%; height:100%; max-width:none; object-fit:cover; object-position:center;
}

.spark-celebrating .leaflet-marker-pane .orbita-map-marker { opacity:.19!important; transition:opacity .24s ease-out; }
.spark-celebration::backdrop { background:transparent; }
.spark-celebration {
  width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;box-sizing:border-box;
  position:fixed; inset:0; z-index:20010; isolation:isolate;
  display:grid; place-items:center; overflow:hidden; pointer-events:none;
  color:#fff5eb; font-family:Manrope,system-ui,sans-serif; text-align:center;
  pointer-events:auto;
  background:radial-gradient(ellipse at 50% 46%,#3b245bba 0%,#2a1d42bf 42%,#171322c4 100%);
}
.spark-celebration .celebration-close {
  position:absolute; top:calc(var(--orbita-tg-top,env(safe-area-inset-top,0px)) + 16px);
  right:calc(var(--orbita-tg-right,env(safe-area-inset-right,0px)) + 16px); z-index:2;
  width:44px; height:44px; display:grid; place-items:center; padding:0; border-radius:50%;
  border:1px solid #ffffff65; background:#241a30dc; color:#fff; font:400 29px/1 system-ui;
  cursor:pointer; pointer-events:auto;
}
.celebration-close:focus-visible { outline:3px solid #ffc98c; outline-offset:3px; }
.celebration-poster {
  position:relative; isolation:isolate; display:grid; justify-items:center; align-content:center;
  width:min(92%,440px); max-height:100%; --portrait-size:clamp(72px,min(24vw,17svh),116px);
}
.celebration-sticker {
  position:relative;display:grid;place-items:center;width:89%;aspect-ratio:400/158;z-index:1;
}
.celebration-burst {position:absolute;inset:0;background:url("assets/spark-prism.svg?v=c6fb84c57401c74c") center/contain no-repeat}
.celebration-sticker::before,.celebration-sticker::after {
  content:"";position:absolute;width:clamp(12px,4vw,19px);aspect-ratio:1;background:#fff2cc;
  clip-path:polygon(50% 0,62% 37%,100% 50%,62% 61%,50% 100%,39% 62%,0 50%,39% 39%);
}
.celebration-sticker::before {left:0;top:17%}
.celebration-sticker::after {right:0;top:17%;background:#ffe1f5}
.celebration-sticker strong {
  position:relative;isolation:isolate;padding:0 .12em .04em;transform:skewX(-4deg);
  color:#a56aab;font:900 clamp(53px,min(14vw,11svh),75px)/1 Manrope,system-ui,sans-serif;
  letter-spacing:-.055em;text-shadow:0 1px #daabc9,0 2px #a574a4,0 3px #734b77,0 4px 4px #150e26;
}
.celebration-sticker strong::after {
  content:attr(data-title);position:absolute;inset:0;padding:inherit;text-shadow:none;color:#fff;
  background-image:linear-gradient(112deg,#fff0ff 0%,#dfbbff 14%,#aff9ff 25%,#fff 36%,#ffa9e6 47%,#fff9ff 58%,#c0b2ff 73%,#bcfaff 86%,#fff 100%);background-size:240% 100%;background-position:0% 50%;
  background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.celebration-portraits {position:relative;display:flex;justify-content:center;align-items:center;margin:-1% 0 0;padding:0 5px}
.celebration-portrait {
  --outer:-42%;--contact:2%;--recoil:-22%;--rest:-8%;
  position:relative;isolation:isolate;display:grid;place-items:center;box-sizing:border-box;width:var(--portrait-size);aspect-ratio:1;
  padding:3px;border-radius:50%;color:#fff2ff;font-size:calc(var(--portrait-size)*.43);font-weight:800;line-height:1;
  --rim:conic-gradient(from 0deg,#ff65d5,#ffdeff 8%,#9c79ff 23%,#3bccef 36%,#ddffff 42%,#ba74ff 56%,#ff5fae 71%,#ffceee 83%,#60efff 93%,#ff65d5);
}
.celebration-portrait::before,.celebration-portrait::after {content:"";position:absolute;inset:0;border-radius:50%;background:var(--rim);pointer-events:none}
.celebration-portrait::before {z-index:-1;filter:blur(5px);opacity:.9;inset:-1px}
.celebration-portrait::after {z-index:0}
.celebration-face {
 position:relative;z-index:1;grid-area:1/1;display:grid;place-items:center;
 width:100%;height:100%;min-height:0;border-radius:50%;overflow:hidden;
 background:radial-gradient(at 35% 20%,#795983,#362747);
}
.celebration-face :is(img,.crowd-face) {position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:inherit}
.celebration-portrait img {object-fit:cover;object-position:center}
.celebration-portraits-static {--portrait-size:clamp(44px,14vw,64px);flex-wrap:wrap;gap:6px}
.celebration-face-next {opacity:0}
.celebration-portrait + .celebration-portrait {--outer:42%;--contact:-2%;--recoil:22%;--rest:8%;z-index:1}
.celebration-portraits::after {content:"";position:absolute;z-index:3;top:48%;left:50%;width:22px;height:22px;opacity:0;pointer-events:none;background:radial-gradient(ellipse,#fff 8%,#fff5fb 17%,#ffb3ea 33%,transparent 71%);clip-path:polygon(50% 0,60% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%)}
.celebration-dust {position:absolute;inset:0;overflow:hidden;pointer-events:none}
.celebration-dust i{position:absolute;left:var(--x);top:var(--y);width:12px;height:2px;border-radius:100%;opacity:0;color:#a7f6ff;background:linear-gradient(90deg,transparent,currentColor 85%,white)}
.celebration-dust i:nth-child(3n){width:5px;height:5px;background:#fff2ff;box-shadow:0 0 6px #ff7ddd}
.celebration-dust i:nth-child(3n+1){color:#ffc1ef}
.celebration-dust i:nth-child(4n){color:#fce3b1}
.celebration-names {display:grid;justify-items:center;gap:3px;max-width:94%;margin:15px 0 0;color:#fff5ff;text-shadow:0 1px 5px #24102e,0 1px 12px #1b1229}
.celebration-names b {font-size:clamp(18px,5vw,24px);letter-spacing:-.035em;line-height:1.25;overflow-wrap:anywhere}
.celebration-names span {font-size:14px;font-weight:600;color:#f2e2fb;line-height:1.4}
.celebration-blooms,.celebration-map-blooms {position:absolute;inset:0;pointer-events:none}
.celebration-blooms {z-index:2}
.celebration-map-blooms {inset:-12px -4px}
.celebration-map-static {
  inset:0;border-radius:100vmax;
  box-shadow:0 0 0 2px var(--glass-selection,#dfc5f5),0 0 14px #e5b5f875;
}
.celebration-firework {position:absolute;left:50%;top:65%;--burst-delay:.72s}
.celebration-firework:nth-child(2) {left:14%;top:38%;--burst-delay:1.02s}
.celebration-firework:nth-child(3) {left:84%;top:15%;--burst-delay:1.99s}
.celebration-firework i {
  position:absolute;width:17px;height:2px;transform-origin:0 50%;border-radius:60%;opacity:0;
  color:#ff7cd0;background:linear-gradient(to right,transparent 0%,currentColor 68%,#fff 100%);
}
.celebration-firework i::after {content:"";position:absolute;right:-1px;top:-1px;width:4px;height:4px;border-radius:50%;background:#fff3fa;box-shadow:0 0 5px 1px currentColor}
.celebration-firework i:nth-child(3n+1) {color:#75dcff}
.celebration-firework i:nth-child(3n+2) {color:#ffdc9b}
.celebration-firework i:nth-child(4n) {width:8px}
.celebration-map-blooms .celebration-firework {--burst-delay:.12s}
.celebration-map-blooms .celebration-firework:nth-child(2) {--burst-delay:.48s}
.celebration-map-blooms .celebration-firework:nth-child(3) {--burst-delay:.83s}
.celebration-map-blooms i {width:9px}
.spark-celebration-motion { animation:celebration-appear .19s ease-out both, celebration-settle .22s var(--celebration-settle-delay,3.28s) ease-in forwards; }
.spark-celebration-motion .celebration-sticker { animation:celebration-stamp .5s cubic-bezier(.18,.88,.27,1.12) both; }
.spark-celebration-motion .celebration-portraits { animation:celebration-pair .45s .1s cubic-bezier(.18,.88,.27,1.12) both; }
.spark-celebration-motion .celebration-portrait {animation:portrait-meeting 3.15s cubic-bezier(.37,0,.2,1) both}
.spark-celebration-motion .celebration-portrait::before,.spark-celebration-motion .celebration-portrait::after {animation:ring-light 3.15s cubic-bezier(.38,0,.32,1) both}
.spark-celebration-motion .celebration-portrait + .celebration-portrait::before,.spark-celebration-motion .celebration-portrait + .celebration-portrait::after {animation-direction:reverse}
.spark-celebration-motion .celebration-face-next {animation:celebration-appear .22s ease-out var(--face-delay) both}
.spark-celebration-motion .celebration-portraits::after {animation:meeting-light 3.15s ease-out both}
.spark-celebration-motion .celebration-sticker strong::after {animation:title-light 3.15s cubic-bezier(.38,0,.21,1) both}
.spark-celebration-motion .celebration-dust i {animation:passing-spark var(--life) var(--wait) ease-out both}
@keyframes portrait-meeting{
 0%{opacity:0;transform:translate(var(--outer),9%) scale(.82)}
 11%{opacity:1}
 26%{transform:translate(var(--contact),0) scale(1.025)}
 43%{transform:translate(var(--recoil),-3%) scale(.97)}
 65%{transform:translate(var(--contact),0) scale(1.015)}
 82%,100%{transform:translate(var(--rest),0) scale(1)}
}
@keyframes ring-light{0%{transform:rotate(-88deg)} 30%{transform:rotate(62deg)} 66%{transform:rotate(184deg)} 100%{transform:rotate(255deg)}}
@keyframes title-light{0%{background-position:0% 50%} 27%{background-position:91% 50%} 43%{background-position:100% 50%} 67%{background-position:13% 50%} 100%{background-position:0% 50%}}
@keyframes meeting-light{0%,17%,40%,56%,80%,100%{opacity:0;transform:translate(-50%,-50%) scale(.35)} 27%,66%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}}
@keyframes passing-spark{0%{opacity:0;transform:rotate(var(--angle)) translateX(0) scale(.45)} 25%{opacity:.85} 100%{opacity:0;transform:rotate(var(--angle)) translateX(var(--travel)) scale(.8)}}
.spark-celebration-motion .celebration-names { animation:celebration-appear .3s .22s ease-out both; }
.spark-celebration-motion .celebration-firework i,
.celebration-map-blooms .celebration-firework i { animation:celebration-bloom 1.1s calc(var(--burst-delay) + var(--stagger)) cubic-bezier(.16,.63,.29,1) both; }
@keyframes celebration-appear { from { opacity:0; } to { opacity:1; } }
@keyframes celebration-settle { from { opacity:1; } to { opacity:0; } }
@keyframes celebration-stamp { from { opacity:0; transform:scale(.75) translateY(10px) rotate(-4deg); } to { opacity:1; transform:none; } }
@keyframes celebration-pair { from { opacity:0; transform:translateY(10px) scale(.86); } to { opacity:1; transform:none; } }
@keyframes celebration-bloom {
  0% {opacity:0;transform:rotate(var(--bearing)) translateX(3px) scaleX(.2)}
  18% {opacity:1}
  68% {opacity:.92}
  100% {opacity:0;transform:rotate(var(--bearing)) translateX(var(--flight)) scaleX(.36)}
}
@media (max-height:400px) {
  .celebration-poster { width:min(80%,290px); --portrait-size:54px; }
  .celebration-sticker { width:66%; } .celebration-sticker strong { font-size:43px; }
  .celebration-names { margin-top:6px; padding:5px 12px; }
}
@media (prefers-reduced-motion:reduce) {
  .spark-celebration,.spark-celebration *,.spark-celebration *::before,.spark-celebration *::after { animation:none!important; }
  .spark-celebrating .leaflet-marker-pane .orbita-map-marker { transition:none!important; }
}
html[data-spark-motion="off"] .spark-celebration *,html[data-spark-motion="off"] .spark-celebration *::before,html[data-spark-motion="off"] .spark-celebration *::after { animation:none!important; }
html[data-spark-motion="off"] .celebration-map-blooms i { animation:none!important; }
