.spf {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 1.25rem auto 0;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 16% 0%, rgba(88, 156, 255, 0.2), transparent 44%),
    linear-gradient(145deg, rgba(16, 27, 49, 0.94), rgba(8, 13, 25, 0.94));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #e9f1ff;
}

.spf__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.spf__label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8ebdff;
}

.spf__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(233, 241, 255, 0.84);
}

.spf__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19e58f;
  box-shadow: 0 0 0 0 rgba(25, 229, 143, 0.72);
  animation: spfPulse 1.9s ease-out infinite;
}

.spf__event {
  margin-top: 0.85rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.spf__line {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.4;
  color: #f2f6ff;
  margin: 0;
}

.spf__line-link {
  text-decoration: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 0.3rem 0.25rem;
  transition: background-color 160ms ease, transform 160ms ease;
}

.spf__line-link:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.spf__line-link:focus-visible {
  outline: 2px solid rgba(141, 201, 255, 0.95);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.spf__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.spf__icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spf__icon[data-event-type="review"] {
  color: #ffcc59;
}

.spf__icon[data-event-type="joined"] {
  color: #60d7ff;
}

.spf__icon[data-event-type="started"] {
  color: #8da8ff;
}

.spf__icon[data-event-type="completed"] {
  color: #48e59c;
}

.spf__icon[data-event-type="finished"] {
  color: #ff9e6b;
}

.spf__icon[data-event-type="unlocked"] {
  color: #d39cff;
}

.spf__name {
  color: #ffffff;
}

.spf__verb {
  color: #9dc4ff;
}

.spf__meta {
  margin-top: 0.42rem;
  font-size: 0.76rem;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(233, 241, 255, 0.75);
}

.spf.is-entering .spf__line,
.spf.is-entering .spf__meta {
  animation: spfIn 360ms ease both;
}

@keyframes spfIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes spfPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(25, 229, 143, 0.72);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(25, 229, 143, 0);
  }
}

@media (max-width: 768px) {
  .spf {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.9rem;
  }
}

@media (max-width: 600px) {
  .spf {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
    padding: 0.85rem;
  }
}

@media (max-width: 480px) {
  .spf {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    padding: 0.8rem;
  }

  .spf__line {
    font-size: 0.93rem;
  }
}

@media (prefers-color-scheme: dark) {
  .spf {
    border-color: rgba(255, 255, 255, 0.18);
    background:
      radial-gradient(circle at 14% 0%, rgba(85, 149, 255, 0.22), transparent 44%),
      linear-gradient(145deg, rgba(14, 24, 45, 0.96), rgba(6, 10, 20, 0.96));
  }
}

@media (prefers-reduced-motion: reduce) {
  .spf__dot,
  .spf.is-entering .spf__line,
  .spf.is-entering .spf__meta {
    animation: none !important;
  }
}
