.event-spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #173b3e;
  background: #cde9e2;
  border-bottom: 4px solid #edb951;
}
.event-spotlight-art {
  position: absolute;
  z-index: -1;
  inset: -22px;
  background: url("sensory-play/sensory-play-illustration.jpg") center / cover no-repeat;
  animation: sensory-drift 10s ease-in-out infinite alternate;
  animation-play-state: paused;
  will-change: transform;
}
.event-spotlight.is-moving .event-spotlight-art { animation-play-state: running; }
.event-spotlight-content {
  width: min(710px, 100%);
  margin-inline: auto;
  padding: 26px 28px 24px;
  text-align: center;
}
.event-spotlight p { margin: 0; }
.event-spotlight .event-spotlight-kicker {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
  text-transform: uppercase;
  color: #235c58;
  margin-bottom: 9px;
}
.event-spotlight h2 {
  margin: 0 0 10px;
  font: 800 40px/1.06 "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  letter-spacing: 0;
  color: #173b3e;
}
.event-spotlight .event-spotlight-date { font-size: 21px; font-weight: 800; color: #953939; }
.event-spotlight-date span { margin-inline: 8px; }
.event-spotlight .event-spotlight-place { margin-top: 3px; font-size: 15px; font-weight: 650; }
.event-spotlight .event-spotlight-details { margin-top: 4px; font-size: 14px; }
.event-register-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 6px;
  background: #176c67;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.event-spotlight .event-register-link { margin-top: 14px; }
.event-register-link:hover { background: #124f4b; }
.event-register-link svg { width: 18px; height: 18px; flex: 0 0 18px; }
.event-spotlight .event-walkins { margin-top: 7px; font-size: 12px; }
.event-motion-toggle, .event-invite-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #729d98;
  border-radius: 50%;
  background: #fff;
  color: #173b3e;
  cursor: pointer;
}
.event-motion-toggle { position: absolute; right: 18px; bottom: 18px; }
.event-motion-toggle svg, .event-invite-close svg { width: 20px; height: 20px; }
.event-motion-toggle:hover, .event-invite-close:hover { background: #e4f2ed; }
.event-spotlight :focus-visible, .event-invite :focus-visible { outline: 3px solid #953939; outline-offset: 4px; }
.event-invite {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: max(22px, env(safe-area-inset-bottom));
  width: min(354px, calc(100% - 32px));
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border: 1px solid #82afa8;
  border-radius: 8px;
  background: #fff;
  color: #173b3e;
  box-shadow: 0 12px 34px #173b3e38;
  animation: sensory-invite-in .55s cubic-bezier(.2,.8,.2,1) both;
}
.event-invite.is-leaving { animation: sensory-invite-out .3s ease-in both; }
.event-invite-art { width: 100%; height: 106px; object-fit: cover; object-position: center; }
.event-invite-close { position: absolute; right: 10px; top: 10px; }
.event-invite-copy { padding: 17px 20px 20px; }
.event-invite .event-invite-kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; color: #176c67; margin: 0 0 6px; }
.event-invite h2 { font: 800 23px/1.16 "Avenir Next", "Trebuchet MS", system-ui, sans-serif; color: #173b3e; letter-spacing: 0; text-wrap: balance; margin: 0 0 9px; }
.event-invite p { font-size: 13px; line-height: 1.55; margin: 0 0 14px; }
.event-invite .event-register-link { width: 100%; font-size: 14px; }
.event-spotlight[hidden], .event-invite[hidden], .event-motion-toggle[hidden], .event-motion-toggle svg[hidden] { display: none; }
@keyframes sensory-drift {
  from { transform: translate(-9px, -4px) scale(1.02) rotate(-.45deg); }
  to { transform: translate(10px, 5px) scale(1.07) rotate(.45deg); }
}
@keyframes sensory-invite-in { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sensory-invite-out { to { opacity: 0; transform: translateY(26px); } }
@media (max-width: 600px) {
  .event-spotlight-content { padding: 25px 26px 26px; }
  .event-spotlight-art { inset: -8px; background-size: auto 100%; }
  .event-spotlight h2 { font-size: 33px; }
  .event-spotlight .event-spotlight-date { font-size: 20px; }
  .event-spotlight .event-spotlight-details { max-width: 265px; margin-inline: auto; font-size: 13px; }
  .event-spotlight .event-walkins { max-width: 235px; margin-inline: auto; }
  .event-motion-toggle { bottom: 10px; right: 10px; width: 36px; height: 36px; padding: 7px; }
  .event-invite { right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .event-invite-art { height: 78px; }
  .event-invite-copy { padding: 13px 18px 16px; }
  .event-invite h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .event-spotlight-art, .event-invite, .event-invite.is-leaving { animation: none; transform: none; }
  .event-spotlight-art { will-change: auto; }
}
