.rf-heads-up {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 12px));
  left: 50%;
  transform: translateX(-50%) translateY(-160%);
  z-index: 2147483646;
  width: min(420px, calc(100vw - 16px));
  pointer-events: none;
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.rf-heads-up.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.rf-heads-up__card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(248, 248, 252, 0.97);
  color: #111118;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  backdrop-filter: blur(16px);
}
.rf-heads-up__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #ddd;
}
.rf-heads-up__body {
  min-width: 0;
  flex: 1;
}
.rf-heads-up__top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.rf-heads-up__app {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ff174d;
  letter-spacing: 0.02em;
}
.rf-heads-up__time {
  font-size: 0.68rem;
  color: #7a7b88;
  font-weight: 700;
}
.rf-heads-up__title {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rf-heads-up__text {
  font-size: 0.84rem;
  line-height: 1.35;
  color: #3a3b48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-heads-up__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.rf-heads-up__btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}
.rf-heads-up__btn--primary {
  background: linear-gradient(135deg, #ff174d, #ff2ea6);
  color: #fff;
}
.rf-heads-up__btn--ghost {
  background: rgba(17, 17, 24, 0.08);
  color: #111118;
}
.rf-heads-up-guide {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
}
.rf-heads-up-guide.is-open {
  display: flex;
}
.rf-heads-up-guide__sheet {
  width: min(440px, 100%);
  border-radius: 22px 22px 18px 18px;
  background: #11111a;
  color: #fff;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rf-heads-up-guide__sheet h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.rf-heads-up-guide__sheet p,
.rf-heads-up-guide__sheet li {
  color: #c8c9d8;
  font-size: 0.86rem;
  line-height: 1.45;
}
.rf-heads-up-guide__sheet ol {
  margin: 10px 0 14px 18px;
  padding: 0;
}
.rf-heads-up-guide__actions {
  display: flex;
  gap: 10px;
}
.rf-heads-up-guide__actions button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}
.rf-heads-up-guide__primary {
  background: linear-gradient(135deg, #ff174d, #ff2ea6);
  color: #fff;
}
.rf-heads-up-guide__ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.rf-push-hint-link {
  border: 0;
  background: none;
  color: #ff6a92;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
}
