:root {
  --bg: #000;
  --ink: #e9ecef;
  --dim: #6b7280;
  --bili: #00aeec;
  --up: #2ad07a;
  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vh, 48px);
}

/* ---------- brand ---------- */
.brand {
  position: absolute;
  top: clamp(16px, 4vh, 44px);
  left: clamp(18px, 3.4vw, 52px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--bili);
}

.icon { width: clamp(26px, 2.8vw, 38px); height: auto; display: block; }

.wordmark { width: clamp(66px, 7.2vw, 106px); height: auto; display: block; }

.who {
  font-size: clamp(12px, 1.2vw, 16px);
  color: var(--dim);
  font-weight: 500;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- avatar ---------- */
.avatar-box {
  position: absolute;
  top: clamp(16px, 4vh, 44px);
  right: clamp(18px, 3.4vw, 52px);
}

.avatar {
  width: clamp(56px, 7vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #14171c;
  border: 1px solid #23272e;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- counter ---------- */
.counter-wrap { text-align: center; }

.counter {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  transition: color .45s ease, text-shadow .45s ease;
}

.counter .placeholder { font-size: clamp(48px, 12vw, 140px); color: #2b3038; }

.digit {
  display: block;
  height: 1em;
  overflow: hidden;
  width: .62em;
}

.strip {
  display: block;
  transform: translateY(0);
  transition: transform 1.1s cubic-bezier(.16, .84, .24, 1);
}

.strip i {
  display: block;
  height: 1em;
  line-height: 1;
  font-style: normal;
}

.comma { display: block; width: .34em; text-align: center; }

.counter.bump-up { color: #fff; text-shadow: 0 0 46px rgba(42, 208, 122, .45); }
.counter.bump-down { color: #fff; text-shadow: 0 0 46px rgba(255, 107, 129, .4); }

.label {
  margin: clamp(10px, 2.2vh, 26px) 0 0;
  font-size: clamp(11px, 1.15vw, 15px);
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--dim);
}

@media (max-width: 640px) {
  .who { display: none; }
}
