dialog.rep-sting {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  color: #14161c;
  font: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
dialog.rep-sting[open] { display: block; }
dialog.rep-sting:focus { outline: none; }
dialog.rep-sting::backdrop { background: transparent; }

.sting-veil {
  position: absolute;
  inset: 0;
  background: #f3f4f7;
  animation: sting-veil 2200ms linear both;
}
.sting-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sting-hold 2200ms linear both;
}
.sting-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 32px, 360px);
}
.sting-mark {
  position: relative;
  width: 72px;
  height: 72px;
}
.sting-mark::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 148px;
  height: 148px;
  margin: -74px 0 0 -74px;
  border-radius: 50%;
  background: radial-gradient(circle, #f3f4f7 0 46%, transparent 72%);
  animation: sting-wash 280ms ease 90ms both;
}
.sting-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 0;
  height: 0;
}
.sting-impact,
.sting-ring,
.sting-diamond {
  position: absolute;
  left: 0;
  top: 0;
}
.sting-impact {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #14161c;
  animation: sting-impact 520ms cubic-bezier(.18, .86, .22, 1) both;
}
.sting-ring {
  width: 132px;
  height: 132px;
  margin: -66px 0 0 -66px;
  border: 1.5px solid #14161c;
  border-radius: 50%;
  animation: sting-ring 920ms cubic-bezier(.16, .7, .2, 1) both;
}
.sting-ring.r1 { animation-delay: 70ms; }
.sting-ring.r2 {
  animation-delay: 180ms;
  border-color: rgba(20, 22, 28, .45);
}
.sting-diamond {
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  border: 1.5px solid #14161c;
  animation: sting-diamond 760ms cubic-bezier(.16, .8, .2, 1) 80ms both;
}
.ray {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform: rotate(var(--a));
}
.ray i {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 22px;
  border-radius: 1px;
  background: #14161c;
  animation: sting-ray 760ms cubic-bezier(.16, .72, .2, 1) both;
  animation-delay: calc(120ms + var(--i) * 28ms);
}
.ray.outline i {
  left: -4px;
  width: 8px;
  height: 8px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #14161c;
  animation-name: sting-ray-spin;
}
.sting-check {
  position: relative;
  z-index: 2;
  display: block;
  width: 72px;
  height: 72px;
  overflow: visible;
}
.sting-check circle {
  fill: none;
  stroke: #14161c;
  stroke-width: 1.6;
  stroke-linecap: butt;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  transform-origin: 36px 36px;
  transform: rotate(-90deg);
  animation: sting-circle 460ms cubic-bezier(.45, 0, .2, 1) 150ms forwards;
}
.sting-check path {
  fill: none;
  stroke: #0e7a45;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: sting-draw 360ms cubic-bezier(.4, 0, .15, 1) 320ms forwards;
}
.sting-word {
  display: flex;
  align-items: flex-start;
  margin: 22px 0 0;
  color: #14161c;
  font-size: 64px;
  font-weight: 760;
  line-height: .9;
  letter-spacing: -3px;
  animation: sting-word 620ms cubic-bezier(.16, .84, .28, 1) 380ms both;
}
.sting-dot {
  width: 9px;
  height: 9px;
  margin: 8px 0 0 4px;
  border-radius: 50%;
  background: #14161c;
  animation: sting-dot 360ms cubic-bezier(.2, .9, .24, 1.2) 620ms both;
}
.sting-rule {
  width: 36px;
  height: 2px;
  margin: 16px 0 0;
  background: #14161c;
  transform-origin: center;
  animation: sting-rule 380ms cubic-bezier(.2, .8, .2, 1) 560ms both;
}
dialog.rep-sting[data-kind="checkin"] .sting-rule {
  width: 48px;
  background: #0e7a45;
}
.sting-sub {
  margin: 12px 0 0;
  color: #6d7280;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .28em;
  text-indent: .28em;
  animation: sting-rise 420ms ease 700ms both;
}
.sting-detail {
  max-width: min(280px, 78vw);
  margin: 8px 0 0;
  color: #3a3e49;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-align: center;
  text-indent: 0;
  animation: sting-rise 420ms ease 820ms both;
}
.sting-hint {
  position: absolute;
  right: 0;
  bottom: calc(22px + env(safe-area-inset-bottom));
  left: 0;
  z-index: 3;
  margin: 0;
  color: #6d7280;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-align: center;
  animation: sting-hint 2200ms linear both;
}

@keyframes sting-veil {
  0% { opacity: 0; }
  4% { opacity: 1; }
  86% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes sting-hold {
  0%, 72% { opacity: 1; transform: none; }
  86%, 100% { opacity: 0; transform: scale(.985); }
}
@keyframes sting-wash {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sting-impact {
  0% { transform: scale(.25); opacity: 1; }
  42% { transform: scale(5.4); opacity: 1; }
  100% { transform: scale(8); opacity: 0; }
}
@keyframes sting-ring {
  0% { transform: scale(.42); opacity: 0; }
  16% { opacity: .9; }
  100% { transform: scale(2.25); opacity: 0; }
}
@keyframes sting-diamond {
  0% { transform: rotate(18deg) scale(.28); opacity: 0; }
  32% { opacity: .95; }
  100% { transform: rotate(45deg) scale(1.5); opacity: 0; }
}
@keyframes sting-ray {
  0% { transform: translateY(40px) scaleY(.3); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(148px) scaleY(1); opacity: 0; }
}
@keyframes sting-ray-spin {
  0% { transform: translateY(44px) rotate(0deg) scale(.35); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateY(140px) rotate(80deg) scale(1); opacity: 0; }
}
@keyframes sting-circle {
  to { stroke-dashoffset: 0; }
}
@keyframes sting-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes sting-word {
  0% { opacity: 0; letter-spacing: .42em; transform: translateY(10px); }
  58% { opacity: 1; letter-spacing: -3.5px; transform: translateY(0); }
  100% { opacity: 1; letter-spacing: -3px; transform: none; }
}
@keyframes sting-dot {
  0% { transform: scale(0); opacity: 0; }
  65% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes sting-rule {
  0% { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}
@keyframes sting-rise {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: none; }
}
@keyframes sting-hint {
  0%, 14% { opacity: 0; }
  24%, 60% { opacity: 1; }
  74%, 100% { opacity: 0; }
}

@media (max-width: 350px) {
  .sting-word { font-size: 56px; }
  .sting-dot { width: 8px; height: 8px; margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  dialog.rep-sting,
  dialog.rep-sting * {
    animation: none !important;
  }
}
