html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

:root {
  --card-bg: linear-gradient(145deg, rgba(4, 8, 18, .96), rgba(3, 7, 16, .92));
  --line: rgba(255,255,255,.08);
  --text: #f9fbff;
  --muted: #8b93a3;
  --pink-bg: rgba(160, 36, 95, .32);
  --pink-line: rgba(255, 83, 166, .34);
  --pink-glow: rgba(255, 60, 147, .40);
  --blue-bg: rgba(18, 86, 160, .34);
  --blue-line: rgba(62, 142, 255, .34);
  --blue-glow: rgba(38, 154, 255, .34);
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.overlay-wrap {
  width: 100%;
  padding: 12px 14px;
  box-sizing: border-box;
}

.overlay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.overlay-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: 0 16px 42px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(18px);
  padding: 16px 22px 18px;
  color: var(--text);
}

.overlay-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
  pointer-events: none;
}

.overlay-card::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -52px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: .45;
}

.overlay-card.viewers::after {
  background: radial-gradient(circle, rgba(255,40,140,.28), transparent 62%);
}

.overlay-card.likes::after {
  background: radial-gradient(circle, rgba(42,150,255,.22), transparent 62%);
}

.overlay-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overlay-title {
  color: #edf2ff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .015em;
  line-height: 1;
}

.overlay-value-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 10px;
}

.overlay-big-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  flex: 0 0 auto;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.overlay-big-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: white;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overlay-big-icon.eye {
  background: linear-gradient(180deg, rgba(92, 23, 63, .80), rgba(62, 15, 44, .88));
  border-color: var(--pink-line);
  box-shadow: 0 0 0 1px rgba(255,100,175,.05), 0 0 26px rgba(255,60,147,.16), inset 0 1px 0 rgba(255,255,255,.06);
}

.overlay-big-icon.like {
  background: linear-gradient(180deg, rgba(19, 70, 135, .85), rgba(14, 52, 103, .92));
  border-color: var(--blue-line);
  box-shadow: 0 0 0 1px rgba(88,168,255,.05), 0 0 26px rgba(38,154,255,.14), inset 0 1px 0 rgba(255,255,255,.06);
}

.overlay-big-icon.like svg {
  fill: white;
  stroke: none;
}

.overlay-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 78px;
  line-height: .92;
  letter-spacing: -.06em;
  text-shadow: 0 3px 14px rgba(0,0,0,.28);
}

.overlay-card small {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 600;
}

.overlay-card.is-updating {
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 22px rgba(255,255,255,.05), 0 18px 42px rgba(0,0,0,.28);
}

.overlay-card.viewers.is-updating {
  animation: cardGlowPink .55s ease;
}

.overlay-card.likes.is-updating {
  animation: cardGlowBlue .55s ease;
}

.overlay-big-icon.is-updating {
  animation: iconPulse .6s ease;
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  20% {
    transform: scale(1.08);
    filter: brightness(1.26);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes cardGlowPink {
  0% { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 42px rgba(0,0,0,.28), 0 0 0 rgba(255,60,147,0); }
  30% { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 42px rgba(0,0,0,.28), 0 0 34px rgba(255,60,147,.26); }
  100% { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 42px rgba(0,0,0,.28), 0 0 0 rgba(255,60,147,0); }
}

@keyframes cardGlowBlue {
  0% { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 42px rgba(0,0,0,.28), 0 0 0 rgba(38,154,255,0); }
  30% { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 42px rgba(0,0,0,.28), 0 0 34px rgba(38,154,255,.22); }
  100% { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 42px rgba(0,0,0,.28), 0 0 0 rgba(38,154,255,0); }
}
