#players { position: absolute; inset: 0; z-index: 108; pointer-events: none; }
.map-altar {
  position: absolute; z-index: 107; pointer-events: none;
  transform: translate(-50%, -50%); display: flex; gap: 2px;
  padding: 2px 3px; background: #888174; border: 1px solid #635c50;
  border-radius: 2px; box-shadow: 1px 2px 2px #29241a66;
}
.map-altar[hidden] { display: none; }
.map-altar span { display: block; width: 8px; height: 5px; }
.altar-flowers { background: #b7ae98; }
.map-altar:not([data-flowers="0"]) .altar-flowers {
  background: radial-gradient(circle at 30% 45%, #fff8dc 0 2px, transparent 2.5px), linear-gradient(25deg,#6c7850 45%,#b7ae98 46%);
}
.altar-incense, .altar-basin { background: #463a31; border: 1px solid #9a826d; border-radius: 50%; }
.map-altar:not([data-incense="0"]) .altar-incense::before {
  content: ''; display: block; width: 1px; height: 7px; margin: -5px auto 0; background: #b47752;
}
.map .caption { z-index: 110; pointer-events: none; }
.marker { z-index: 100; }
.marker:hover, .marker[aria-pressed=true] { z-index: 105; }
.player {
  position: absolute; width: 9%; min-width: 84px; max-width: 146px;
  aspect-ratio: 1; transform: translate(calc(-50% + var(--crowd-offset, 0px)), -75%);
  text-align: center;
}
.player canvas { position: relative; display: block; width: 100%; height: 100%; }
.player span {
  position: absolute; top: 13%; left: 50%; transform: translate(-50%, -100%);
  white-space: nowrap; background: var(--shade); color: var(--ink);
  font-size: 12px; padding: 0 4px;
}
.actor-shadow {
  position: absolute; width: 32%; height: 8%; left: 34%; top: 72%;
  background: #241d16; border-radius: 50%; opacity: .32; filter: blur(1px);
}
.player .offering {
  position: absolute; width: 34%; height: 56%; left: 33%; top: 27%;
  transform: translate(calc(var(--offer-x, 0) * 57%), calc(var(--offer-y, -1) * 18%));
  overflow: visible; opacity: 0;
}
.stem, .smoke, .ember { fill: none; stroke: #fff8e9; stroke-width: 1.6; stroke-linecap: round; }
.petals { fill: #fff8e9; stroke: #9d8c65; stroke-width: .7; }
.fire, .paper-prop { fill: #f69b49; stroke: #91421e; stroke-width: .6; }
.ember { stroke: #fa9a58; stroke-width: 3; }
.fire, .smoke { transform-origin: 45px 50px; animation: flicker .5s ease-in-out infinite alternate; }
@keyframes flicker { to { transform: scale(.9, 1.1); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .fire, .smoke { animation: none; } }
