.streak-host {
  width: 100%;
}

.streak-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.streak-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.streak-label strong {
  font-family: var(--font-heading);
  font-weight: 700;
}

.streak-label .ui-icon {
  flex-shrink: 0;
}

.streak-dots {
  display: flex;
  gap: 4px;
  justify-content: space-between;
  width: 100%;
}

.streak-dot {
  width: 100%;
  max-width: 22px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #E5E5E5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.streak-dot.filled {
  background: var(--color-primary);
}

.streak-dot.today {
  background: var(--color-primary);
  animation: streakPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(61, 181, 74, 0.3);
}

.streak-dot.bonus {
  box-shadow: 0 0 0 2px var(--color-accent);
}

.streak-dot-label {
  position: absolute;
  bottom: -16px;
  font-size: 9px;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.streak-dot.bonus .streak-dot-label {
  color: var(--color-accent);
  font-weight: 700;
}

@keyframes streakPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@media (max-width: 374px) {
  .streak-label {
    font-size: 13px;
  }

  .streak-dots {
    gap: 3px;
  }

  .streak-dot {
    max-width: 19px;
  }

  .streak-dot-label {
    font-size: 8px;
    bottom: -14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .streak-dot.today {
    animation: none;
  }
}
