.lost-souls-counter {
  --lsc-accent: #9cff57;
  --lsc-purple: #a879ff;
  --lsc-bg: #0d0f14;
  --lsc-panel: #11141d;
  --lsc-border: rgba(168, 121, 255, 0.42);
  box-sizing: border-box;
  max-width: 420px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lost-souls-counter *,
.lost-souls-counter *::before,
.lost-souls-counter *::after {
  box-sizing: inherit;
}

.lost-souls-counter--inline {
  margin: 1.25rem auto;
}

.lost-souls-counter--bottom-right,
.lost-souls-counter--bottom-left,
.lost-souls-counter--top-right,
.lost-souls-counter--top-left {
  position: fixed;
  z-index: 99999;
  width: min(360px, calc(100vw - 32px));
}

.lost-souls-counter--bottom-right { right: 16px; bottom: 16px; }
.lost-souls-counter--bottom-left { left: 16px; bottom: 16px; }
.lost-souls-counter--top-right { right: 16px; top: 16px; }
.lost-souls-counter--top-left { left: 16px; top: 16px; }

.lsc-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 24px 22px 22px;
  color: #f4f1ff;
  background:
    radial-gradient(circle at 50% 100%, rgba(168, 121, 255, 0.14), transparent 42%),
    linear-gradient(180deg, #151820 0%, var(--lsc-bg) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(168, 121, 255, 0.1);
}

.lsc-card::before,
.lsc-card::after {
  content: "";
  position: absolute;
  width: 98px;
  height: 98px;
  opacity: 0.28;
  background:
    linear-gradient(135deg, transparent 48%, rgba(255,255,255,0.35) 49%, transparent 51%),
    linear-gradient(25deg, transparent 48%, rgba(255,255,255,0.18) 49%, transparent 51%);
  pointer-events: none;
}

.lsc-card::before { top: -36px; left: -34px; transform: rotate(5deg); }
.lsc-card::after { top: -38px; right: -34px; transform: rotate(84deg); }

.lsc-mark {
  width: 36px;
  height: 28px;
  margin: 0 auto 2px;
  color: var(--lsc-purple);
  text-align: center;
  font-size: 25px;
  line-height: 1;
  opacity: 0.9;
}

.lsc-title {
  margin: 0 0 14px;
  color: #f5f0ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 2px 18px rgba(168, 121, 255, 0.18);
}

.lsc-live {
  position: relative;
  z-index: 1;
  display: inline-flex;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  gap: 7px;
  margin-bottom: -14px;
  padding: 7px 13px;
  color: var(--lsc-accent);
  background: #10141b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lsc-live span {
  width: 8px;
  height: 8px;
  background: var(--lsc-accent);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--lsc-accent);
  animation: lscPulse 1.7s ease-in-out infinite;
}

.lsc-panel {
  padding: 33px 22px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 65%, color-mix(in srgb, var(--lsc-accent) 14%, transparent), transparent 46%),
    rgba(5, 7, 12, 0.72);
  border: 1px solid var(--lsc-border);
  border-radius: 18px;
  box-shadow: inset 0 0 32px rgba(168, 121, 255, 0.07);
}

.lsc-label {
  margin-bottom: 12px;
  color: #c9adff;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lsc-label span {
  color: #c9c0dc;
  font-size: 0.92em;
  opacity: 0.85;
}

.lsc-count {
  color: var(--lsc-accent);
  font-size: clamp(4rem, 18vw, 6.8rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-shadow: 0 0 16px color-mix(in srgb, var(--lsc-accent) 75%, transparent), 0 0 42px color-mix(in srgb, var(--lsc-accent) 35%, transparent);
  font-variant-numeric: tabular-nums;
}

.lsc-subtext {
  margin-top: 18px;
  padding-top: 15px;
  color: rgba(244, 241, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.lsc-subtext::before,
.lsc-subtext::after {
  content: "✦";
  margin: 0 10px;
  color: var(--lsc-purple);
}

@keyframes lscPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (max-width: 480px) {
  .lost-souls-counter--bottom-right,
  .lost-souls-counter--bottom-left,
  .lost-souls-counter--top-right,
  .lost-souls-counter--top-left {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .lsc-card { padding: 20px 16px 18px; }
  .lsc-panel { padding-inline: 16px; }
}
