.comment-invite {
  position: fixed;
  z-index: 90;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
  width: min(400px, calc(100% - 24px));
  padding: 8px;
  border: 1px solid #596653;
  border-radius: 19px;
  background: #171d23;
  color: #eff3f2;
  box-shadow: 3px 4px 0 #090c0f, 0 8px 24px #0004;
  animation: comment-invite-in 220ms ease-out both;
}
@property --comment-invite-sweep-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: -85deg;
}
.comment-invite-sweep {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  filter: drop-shadow(0 0 5px #c8ff3d) drop-shadow(0 0 9px #a4ff4370);
}
.comment-invite-sweep::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--comment-invite-sweep-angle, -85deg),
    transparent 0deg, #c8ff3d60 26deg, #c8ff3d 58deg, #f3ffd8 80deg, #c8ff3d 92deg, transparent 117deg);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: comment-invite-edge 580ms linear 90ms both;
}
@keyframes comment-invite-edge {
  0% { --comment-invite-sweep-angle: -85deg; opacity: 0; }
  18%, 78% { opacity: 1; }
  100% { --comment-invite-sweep-angle: 275deg; opacity: 0; }
}
.comment-invite-heading {
  margin-bottom: 7px;
  padding: 9px 12px 10px;
  border: 1px solid #36433c;
  border-radius: 12px;
  background:
    repeating-linear-gradient(132deg, #c8ff3d19 0 2px, transparent 2px 7px) right bottom / 63px 33px no-repeat,
    #222c2c;
}
.comment-invite-kicker {
  display: block;
  margin-bottom: 3px;
  color: #c8ff3d;
  font: 700 10px/1.3 'DM Mono', monospace;
  letter-spacing: .12em;
}
.comment-invite h2 {
  margin: 0 31px 0 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.comment-invite p { margin: 3px 0 0; color: #cbd5ce; font-size: 12px; line-height: 1.5; }
.comment-invite-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.comment-invite button {
  min-height: 44px;
  border-radius: 11px;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.comment-invite-choices button {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 66px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #10141a;
  background: #c8ff3d;
  color: #151922;
  box-shadow: 0 2px 0 #080c0f;
  text-align: start;
}
.comment-invite-choices button:nth-child(2) { background: #d2e6e3; }
.comment-invite-choices button:nth-child(3) { background: #d9d1f5; }
.comment-invite-choices strong { font-size: 15px; line-height: 1.2; font-weight: 900; }
.comment-invite-choices span { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.comment-invite button:focus-visible { outline: 2px solid #c8ff3d; outline-offset: 2px; }
.comment-invite button:active { filter: brightness(.92); transform: scale(.97); }
.comment-invite .comment-invite-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #cbd5ce;
  font-size: 19px;
}
@media (hover: hover) {
  .comment-invite-choices button:hover { filter: brightness(1.08); }
  .comment-invite-close:hover { background: #394542; }
}
@media (max-width: 850px) {
  .comment-invite { inset-inline: 0; margin-inline: auto; }
}
@keyframes comment-invite-in {
  from { transform: translateY(calc(100% + 32px)); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .comment-invite { animation: none; }
  .comment-invite-sweep { display: none; }
}
