/* Live Nexa download counter (hero). Slot-machine digit reels - each digit is a strip of 0-9 that
   only ever rolls downward, like a mechanical counter. Hidden until real data arrives. */
.dlc {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--blue) 7%, transparent), transparent 62%),
    var(--glass-tint);
  box-shadow: 0 10px 28px rgba(18, 30, 55, .08), inset 0 1px 0 rgba(255, 255, 255, .55);
  position: relative;
  overflow: hidden;
}

.dlc[hidden] { display: none; }

/* download mark - the tray fill pulses gently so the card reads as live, not static */
.dlc-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, var(--field-sheen));
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--hairline));
  animation: dlc-pulse 3.2s ease-out infinite;
}

.dlc-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes dlc-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 34%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* the arrow dips on a fresh download, like something just landed */
.dlc.is-hit .dlc-icon svg { animation: dlc-drop .6s ease-out 1; }

@keyframes dlc-drop {
  0% { transform: translateY(0); }
  45% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

.dlc-num {
  display: inline-flex;
  align-items: flex-start;
  font-size: 23px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* one digit = a 1em window onto a 0-9 strip */
.dlc-d {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.dlc-d i {
  display: block;
  font-style: normal;
  transform: translateY(calc(var(--i, 0) * -1em));
  transition: transform var(--dur, 1000ms) cubic-bezier(.17, .84, .28, 1);
  transition-delay: var(--delay, 0ms);
  will-change: transform;
}

.dlc-d i b {
  display: block;
  height: 1em;
  line-height: 1;
  font-weight: inherit;
}

.dlc-sep { display: inline-block; }

.dlc-label {
  display: grid;
  gap: 1px;
  line-height: 1.1;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 650;
  letter-spacing: .02em;
}

.dlc-label small {
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .04em;
}

/* someone just clicked a download - one soft sweep, no bounce, no flash */
.dlc.is-hit { border-color: color-mix(in srgb, var(--blue) 42%, var(--hairline)); }

.dlc.is-hit::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--blue) 16%, transparent) 50%, transparent 80%);
  animation: dlc-sweep .9s ease-out 1;
}

@keyframes dlc-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* "Live" status flag - sits at the far right of the card in the Nexa sky blue, with a
   breathing dot, so the number reads as a live feed rather than a static figure. */
.dlc-live {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dlc-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: dlc-live-dot 2.4s ease-in-out infinite;
}

@keyframes dlc-live-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 45%, transparent); }
  55% { opacity: .55; box-shadow: 0 0 0 5px transparent; }
}

.dlc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .dlc-icon, .dlc.is-hit .dlc-icon svg, .dlc-live i { animation: none; }
  .dlc-d i { transition: none; }
  .dlc.is-hit::after { animation: none; opacity: 0; }
}
